@slotted/angular 0.1.0-beta.8 → 0.1.0-beta.9
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/docs/code-block.json +92 -92
- package/docs/code-block.md +69 -69
- package/docs/currency-field.json +7 -0
- package/docs/currency-field.md +1 -0
- package/docs/data-grid.examples.md +1 -1
- package/docs/data-grid.json +21 -4
- package/docs/data-grid.md +1 -1
- package/docs/data-grid.props.md +5 -3
- package/docs/dialog.examples.md +138 -136
- package/docs/dialog.json +8 -8
- package/docs/filter-bar.json +118 -118
- package/docs/filter-bar.md +79 -79
- package/docs/guidelines/async-feedback.md +10 -0
- package/docs/guidelines/composition.md +11 -7
- package/docs/guidelines/index.md +6 -1
- package/docs/guidelines/list-pages.md +30 -0
- package/docs/guidelines/overviews.md +10 -0
- package/docs/markdown.json +79 -79
- package/docs/markdown.md +65 -65
- package/docs/page-header.json +1 -1
- package/docs/skills/compose-screen/SKILL.md +22 -10
- package/docs/skills/review-screen/SKILL.md +6 -0
- package/docs/skills/waiting-states/SKILL.md +4 -1
- package/docs/tags-input.json +28 -2
- package/docs/tags-input.md +4 -1
- package/docs/timeline.json +131 -131
- package/docs/timeline.md +123 -123
- package/fesm2022/slotted-angular-accordion.mjs +4 -2
- package/fesm2022/slotted-angular-accordion.mjs.map +1 -1
- package/fesm2022/slotted-angular-action-bar.mjs +21 -10
- package/fesm2022/slotted-angular-action-bar.mjs.map +1 -1
- package/fesm2022/slotted-angular-action-sheet.mjs +42 -29
- package/fesm2022/slotted-angular-action-sheet.mjs.map +1 -1
- package/fesm2022/slotted-angular-alert.mjs +17 -11
- package/fesm2022/slotted-angular-alert.mjs.map +1 -1
- package/fesm2022/slotted-angular-app-shell.mjs +52 -40
- package/fesm2022/slotted-angular-app-shell.mjs.map +1 -1
- package/fesm2022/slotted-angular-aspect-ratio.mjs +4 -2
- package/fesm2022/slotted-angular-aspect-ratio.mjs.map +1 -1
- package/fesm2022/slotted-angular-attachment.mjs +31 -20
- package/fesm2022/slotted-angular-attachment.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar-group.mjs +9 -6
- package/fesm2022/slotted-angular-avatar-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar.mjs +9 -6
- package/fesm2022/slotted-angular-avatar.mjs.map +1 -1
- package/fesm2022/slotted-angular-badge.mjs +14 -10
- package/fesm2022/slotted-angular-badge.mjs.map +1 -1
- package/fesm2022/slotted-angular-breadcrumb.mjs +26 -18
- package/fesm2022/slotted-angular-breadcrumb.mjs.map +1 -1
- package/fesm2022/slotted-angular-button-group.mjs +7 -4
- package/fesm2022/slotted-angular-button-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-button.mjs +53 -25
- package/fesm2022/slotted-angular-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-calendar.mjs +68 -26
- package/fesm2022/slotted-angular-calendar.mjs.map +1 -1
- package/fesm2022/slotted-angular-card.mjs +18 -16
- package/fesm2022/slotted-angular-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-carousel.mjs +22 -11
- package/fesm2022/slotted-angular-carousel.mjs.map +1 -1
- package/fesm2022/slotted-angular-cascader.mjs +158 -64
- package/fesm2022/slotted-angular-cascader.mjs.map +1 -1
- package/fesm2022/slotted-angular-chart.mjs +4 -2
- package/fesm2022/slotted-angular-chart.mjs.map +1 -1
- package/fesm2022/slotted-angular-checkbox-group.mjs +5 -3
- package/fesm2022/slotted-angular-checkbox-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-checkbox.mjs +13 -8
- package/fesm2022/slotted-angular-checkbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-code-block.mjs +29 -15
- package/fesm2022/slotted-angular-code-block.mjs.map +1 -1
- package/fesm2022/slotted-angular-collapsible.mjs +20 -15
- package/fesm2022/slotted-angular-collapsible.mjs.map +1 -1
- package/fesm2022/slotted-angular-color-picker.mjs +77 -22
- package/fesm2022/slotted-angular-color-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-column-manager.mjs +68 -31
- package/fesm2022/slotted-angular-column-manager.mjs.map +1 -1
- package/fesm2022/slotted-angular-combobox.mjs +77 -31
- package/fesm2022/slotted-angular-combobox.mjs.map +1 -1
- package/fesm2022/slotted-angular-command-palette.mjs +128 -51
- package/fesm2022/slotted-angular-command-palette.mjs.map +1 -1
- package/fesm2022/slotted-angular-container.mjs +6 -4
- package/fesm2022/slotted-angular-container.mjs.map +1 -1
- package/fesm2022/slotted-angular-context-menu.mjs +5 -4
- package/fesm2022/slotted-angular-context-menu.mjs.map +1 -1
- package/fesm2022/slotted-angular-currency-field.mjs +98 -32
- package/fesm2022/slotted-angular-currency-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-dashboard-grid.mjs +127 -44
- package/fesm2022/slotted-angular-dashboard-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-grid.mjs +309 -104
- package/fesm2022/slotted-angular-data-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-list.mjs +83 -50
- package/fesm2022/slotted-angular-data-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-field.mjs +38 -12
- package/fesm2022/slotted-angular-date-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-picker.mjs +19 -9
- package/fesm2022/slotted-angular-date-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-range-picker.mjs +41 -16
- package/fesm2022/slotted-angular-date-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-field.mjs +46 -14
- package/fesm2022/slotted-angular-datetime-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-picker.mjs +37 -23
- package/fesm2022/slotted-angular-datetime-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-range-picker.mjs +111 -42
- package/fesm2022/slotted-angular-datetime-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-description-list.mjs +33 -19
- package/fesm2022/slotted-angular-description-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-detail-panel.mjs +29 -18
- package/fesm2022/slotted-angular-detail-panel.mjs.map +1 -1
- package/fesm2022/slotted-angular-dialog.mjs +39 -28
- package/fesm2022/slotted-angular-dialog.mjs.map +1 -1
- package/fesm2022/slotted-angular-divider.mjs +7 -5
- package/fesm2022/slotted-angular-divider.mjs.map +1 -1
- package/fesm2022/slotted-angular-drawer.mjs +32 -24
- package/fesm2022/slotted-angular-drawer.mjs.map +1 -1
- package/fesm2022/slotted-angular-entity-picker.mjs +195 -67
- package/fesm2022/slotted-angular-entity-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-event-calendar.mjs +259 -102
- package/fesm2022/slotted-angular-event-calendar.mjs.map +1 -1
- package/fesm2022/slotted-angular-field-group.mjs +14 -7
- package/fesm2022/slotted-angular-field-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-field.mjs +35 -15
- package/fesm2022/slotted-angular-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-filter-bar.mjs +104 -43
- package/fesm2022/slotted-angular-filter-bar.mjs.map +1 -1
- package/fesm2022/slotted-angular-form.mjs +18 -10
- package/fesm2022/slotted-angular-form.mjs.map +1 -1
- package/fesm2022/slotted-angular-fullscreen.mjs +14 -8
- package/fesm2022/slotted-angular-fullscreen.mjs.map +1 -1
- package/fesm2022/slotted-angular-grid.mjs +4 -2
- package/fesm2022/slotted-angular-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-highlight.mjs +5 -3
- package/fesm2022/slotted-angular-highlight.mjs.map +1 -1
- package/fesm2022/slotted-angular-hover-card.mjs +5 -4
- package/fesm2022/slotted-angular-hover-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-icon.mjs +6 -3
- package/fesm2022/slotted-angular-icon.mjs.map +1 -1
- package/fesm2022/slotted-angular-image.mjs +13 -10
- package/fesm2022/slotted-angular-image.mjs.map +1 -1
- package/fesm2022/slotted-angular-import-export-center.mjs +167 -99
- package/fesm2022/slotted-angular-import-export-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline-message.mjs +10 -8
- package/fesm2022/slotted-angular-inline-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline.mjs +4 -2
- package/fesm2022/slotted-angular-inline.mjs.map +1 -1
- package/fesm2022/slotted-angular-kbd.mjs +11 -7
- package/fesm2022/slotted-angular-kbd.mjs.map +1 -1
- package/fesm2022/slotted-angular-link.mjs +5 -3
- package/fesm2022/slotted-angular-link.mjs.map +1 -1
- package/fesm2022/slotted-angular-list-item.mjs +21 -18
- package/fesm2022/slotted-angular-list-item.mjs.map +1 -1
- package/fesm2022/slotted-angular-list.mjs +14 -10
- package/fesm2022/slotted-angular-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-listbox.mjs +39 -21
- package/fesm2022/slotted-angular-listbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-loading-overlay.mjs +59 -22
- package/fesm2022/slotted-angular-loading-overlay.mjs.map +1 -1
- package/fesm2022/slotted-angular-markdown.mjs +31 -19
- package/fesm2022/slotted-angular-markdown.mjs.map +1 -1
- package/fesm2022/slotted-angular-menu.mjs +41 -27
- package/fesm2022/slotted-angular-menu.mjs.map +1 -1
- package/fesm2022/slotted-angular-menubar.mjs +4 -2
- package/fesm2022/slotted-angular-menubar.mjs.map +1 -1
- package/fesm2022/slotted-angular-message-scroller.mjs +28 -15
- package/fesm2022/slotted-angular-message-scroller.mjs.map +1 -1
- package/fesm2022/slotted-angular-message.mjs +113 -51
- package/fesm2022/slotted-angular-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-multi-select.mjs +133 -57
- package/fesm2022/slotted-angular-multi-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-navigation-menu.mjs +34 -26
- package/fesm2022/slotted-angular-navigation-menu.mjs.map +1 -1
- package/fesm2022/slotted-angular-notification-center.mjs +107 -65
- package/fesm2022/slotted-angular-notification-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-number-field.mjs +23 -11
- package/fesm2022/slotted-angular-number-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-otp-input.mjs +13 -8
- package/fesm2022/slotted-angular-otp-input.mjs.map +1 -1
- package/fesm2022/slotted-angular-page-header.mjs +72 -42
- package/fesm2022/slotted-angular-page-header.mjs.map +1 -1
- package/fesm2022/slotted-angular-page.mjs +18 -9
- package/fesm2022/slotted-angular-page.mjs.map +1 -1
- package/fesm2022/slotted-angular-pagination.mjs +35 -22
- package/fesm2022/slotted-angular-pagination.mjs.map +1 -1
- package/fesm2022/slotted-angular-popover.mjs +25 -18
- package/fesm2022/slotted-angular-popover.mjs.map +1 -1
- package/fesm2022/slotted-angular-progress-indicator.mjs +122 -30
- package/fesm2022/slotted-angular-progress-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-prompt-composer.mjs +24 -18
- package/fesm2022/slotted-angular-prompt-composer.mjs.map +1 -1
- package/fesm2022/slotted-angular-prose.mjs +14 -11
- package/fesm2022/slotted-angular-prose.mjs.map +1 -1
- package/fesm2022/slotted-angular-radio-group.mjs +15 -9
- package/fesm2022/slotted-angular-radio-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-rating.mjs +138 -82
- package/fesm2022/slotted-angular-rating.mjs.map +1 -1
- package/fesm2022/slotted-angular-result-state.mjs +16 -12
- package/fesm2022/slotted-angular-result-state.mjs.map +1 -1
- package/fesm2022/slotted-angular-saved-views.mjs +43 -16
- package/fesm2022/slotted-angular-saved-views.mjs.map +1 -1
- package/fesm2022/slotted-angular-scroll-area.mjs +9 -5
- package/fesm2022/slotted-angular-scroll-area.mjs.map +1 -1
- package/fesm2022/slotted-angular-section.mjs +34 -15
- package/fesm2022/slotted-angular-section.mjs.map +1 -1
- package/fesm2022/slotted-angular-segmented-control.mjs +15 -9
- package/fesm2022/slotted-angular-segmented-control.mjs.map +1 -1
- package/fesm2022/slotted-angular-select.mjs +135 -53
- package/fesm2022/slotted-angular-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-side-navigation.mjs +46 -35
- package/fesm2022/slotted-angular-side-navigation.mjs.map +1 -1
- package/fesm2022/slotted-angular-skeleton.mjs +32 -16
- package/fesm2022/slotted-angular-skeleton.mjs.map +1 -1
- package/fesm2022/slotted-angular-slider.mjs +31 -11
- package/fesm2022/slotted-angular-slider.mjs.map +1 -1
- package/fesm2022/slotted-angular-sparkline.mjs +29 -13
- package/fesm2022/slotted-angular-sparkline.mjs.map +1 -1
- package/fesm2022/slotted-angular-split-button.mjs +25 -11
- package/fesm2022/slotted-angular-split-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-splitter.mjs +11 -9
- package/fesm2022/slotted-angular-splitter.mjs.map +1 -1
- package/fesm2022/slotted-angular-stack.mjs +4 -2
- package/fesm2022/slotted-angular-stack.mjs.map +1 -1
- package/fesm2022/slotted-angular-stat-card.mjs +35 -28
- package/fesm2022/slotted-angular-stat-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-status-indicator.mjs +22 -8
- package/fesm2022/slotted-angular-status-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-stepper.mjs +40 -15
- package/fesm2022/slotted-angular-stepper.mjs.map +1 -1
- package/fesm2022/slotted-angular-switch.mjs +15 -10
- package/fesm2022/slotted-angular-switch.mjs.map +1 -1
- package/fesm2022/slotted-angular-table-of-contents.mjs +29 -21
- package/fesm2022/slotted-angular-table-of-contents.mjs.map +1 -1
- package/fesm2022/slotted-angular-table.mjs +135 -72
- package/fesm2022/slotted-angular-table.mjs.map +1 -1
- package/fesm2022/slotted-angular-tabs.mjs +31 -14
- package/fesm2022/slotted-angular-tabs.mjs.map +1 -1
- package/fesm2022/slotted-angular-tag.mjs +19 -12
- package/fesm2022/slotted-angular-tag.mjs.map +1 -1
- package/fesm2022/slotted-angular-tags-input.mjs +253 -28
- package/fesm2022/slotted-angular-tags-input.mjs.map +1 -1
- package/fesm2022/slotted-angular-text-field.mjs +49 -15
- package/fesm2022/slotted-angular-text-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-textarea.mjs +5 -3
- package/fesm2022/slotted-angular-textarea.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-field.mjs +46 -12
- package/fesm2022/slotted-angular-time-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-picker.mjs +28 -14
- package/fesm2022/slotted-angular-time-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-range-picker.mjs +109 -40
- package/fesm2022/slotted-angular-time-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-timeline.mjs +135 -64
- package/fesm2022/slotted-angular-timeline.mjs.map +1 -1
- package/fesm2022/slotted-angular-toast.mjs +42 -31
- package/fesm2022/slotted-angular-toast.mjs.map +1 -1
- package/fesm2022/slotted-angular-toggle-group.mjs +10 -6
- package/fesm2022/slotted-angular-toggle-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-toggle.mjs +9 -4
- package/fesm2022/slotted-angular-toggle.mjs.map +1 -1
- package/fesm2022/slotted-angular-toolbar.mjs +21 -10
- package/fesm2022/slotted-angular-toolbar.mjs.map +1 -1
- package/fesm2022/slotted-angular-tooltip.mjs +8 -5
- package/fesm2022/slotted-angular-tooltip.mjs.map +1 -1
- package/fesm2022/slotted-angular-top-navigation.mjs +64 -44
- package/fesm2022/slotted-angular-top-navigation.mjs.map +1 -1
- package/fesm2022/slotted-angular-tour.mjs +46 -21
- package/fesm2022/slotted-angular-tour.mjs.map +1 -1
- package/fesm2022/slotted-angular-transfer.mjs +69 -30
- package/fesm2022/slotted-angular-transfer.mjs.map +1 -1
- package/fesm2022/slotted-angular-tree.mjs +74 -26
- package/fesm2022/slotted-angular-tree.mjs.map +1 -1
- package/fesm2022/slotted-angular-typography.mjs +8 -4
- package/fesm2022/slotted-angular-typography.mjs.map +1 -1
- package/fesm2022/slotted-angular-upload.mjs +125 -57
- package/fesm2022/slotted-angular-upload.mjs.map +1 -1
- package/fesm2022/slotted-angular-visually-hidden.mjs +4 -2
- package/fesm2022/slotted-angular-visually-hidden.mjs.map +1 -1
- package/fesm2022/slotted-angular-wizard.mjs +163 -65
- package/fesm2022/slotted-angular-wizard.mjs.map +1 -1
- package/package.json +3 -3
- package/types/slotted-angular-accordion.d.ts.map +1 -1
- package/types/slotted-angular-action-bar.d.ts.map +1 -1
- package/types/slotted-angular-action-sheet.d.ts.map +1 -1
- package/types/slotted-angular-alert.d.ts +1 -1
- package/types/slotted-angular-alert.d.ts.map +1 -1
- package/types/slotted-angular-app-shell.d.ts.map +1 -1
- package/types/slotted-angular-aspect-ratio.d.ts.map +1 -1
- package/types/slotted-angular-attachment.d.ts +1 -1
- package/types/slotted-angular-attachment.d.ts.map +1 -1
- package/types/slotted-angular-avatar-group.d.ts.map +1 -1
- package/types/slotted-angular-avatar.d.ts.map +1 -1
- package/types/slotted-angular-badge.d.ts.map +1 -1
- package/types/slotted-angular-breadcrumb.d.ts.map +1 -1
- package/types/slotted-angular-button-group.d.ts.map +1 -1
- package/types/slotted-angular-button.d.ts.map +1 -1
- package/types/slotted-angular-calendar.d.ts.map +1 -1
- package/types/slotted-angular-card.d.ts.map +1 -1
- package/types/slotted-angular-carousel.d.ts.map +1 -1
- package/types/slotted-angular-cascader.d.ts.map +1 -1
- package/types/slotted-angular-chart.d.ts.map +1 -1
- package/types/slotted-angular-checkbox-group.d.ts.map +1 -1
- package/types/slotted-angular-checkbox.d.ts.map +1 -1
- package/types/slotted-angular-code-block.d.ts +1 -1
- package/types/slotted-angular-code-block.d.ts.map +1 -1
- package/types/slotted-angular-collapsible.d.ts +1 -1
- package/types/slotted-angular-collapsible.d.ts.map +1 -1
- package/types/slotted-angular-color-picker.d.ts.map +1 -1
- package/types/slotted-angular-column-manager.d.ts.map +1 -1
- package/types/slotted-angular-combobox.d.ts +1 -1
- package/types/slotted-angular-combobox.d.ts.map +1 -1
- package/types/slotted-angular-command-palette.d.ts.map +1 -1
- package/types/slotted-angular-container.d.ts.map +1 -1
- package/types/slotted-angular-context-menu.d.ts.map +1 -1
- package/types/slotted-angular-currency-field.d.ts +39 -13
- package/types/slotted-angular-currency-field.d.ts.map +1 -1
- package/types/slotted-angular-dashboard-grid.d.ts.map +1 -1
- package/types/slotted-angular-data-grid.d.ts +26 -2
- package/types/slotted-angular-data-grid.d.ts.map +1 -1
- package/types/slotted-angular-data-list.d.ts.map +1 -1
- package/types/slotted-angular-date-field.d.ts.map +1 -1
- package/types/slotted-angular-date-picker.d.ts.map +1 -1
- package/types/slotted-angular-date-range-picker.d.ts.map +1 -1
- package/types/slotted-angular-datetime-field.d.ts.map +1 -1
- package/types/slotted-angular-datetime-picker.d.ts.map +1 -1
- package/types/slotted-angular-datetime-range-picker.d.ts.map +1 -1
- package/types/slotted-angular-description-list.d.ts.map +1 -1
- package/types/slotted-angular-detail-panel.d.ts.map +1 -1
- package/types/slotted-angular-dialog.d.ts +2 -1
- package/types/slotted-angular-dialog.d.ts.map +1 -1
- package/types/slotted-angular-divider.d.ts.map +1 -1
- package/types/slotted-angular-drawer.d.ts.map +1 -1
- package/types/slotted-angular-entity-picker.d.ts.map +1 -1
- package/types/slotted-angular-event-calendar.d.ts.map +1 -1
- package/types/slotted-angular-field-group.d.ts.map +1 -1
- package/types/slotted-angular-field.d.ts.map +1 -1
- package/types/slotted-angular-filter-bar.d.ts.map +1 -1
- package/types/slotted-angular-form.d.ts.map +1 -1
- package/types/slotted-angular-fullscreen.d.ts.map +1 -1
- package/types/slotted-angular-grid.d.ts.map +1 -1
- package/types/slotted-angular-highlight.d.ts.map +1 -1
- package/types/slotted-angular-hover-card.d.ts.map +1 -1
- package/types/slotted-angular-icon.d.ts +1 -1
- package/types/slotted-angular-icon.d.ts.map +1 -1
- package/types/slotted-angular-image.d.ts.map +1 -1
- package/types/slotted-angular-import-export-center.d.ts.map +1 -1
- package/types/slotted-angular-inline-message.d.ts +1 -1
- package/types/slotted-angular-inline-message.d.ts.map +1 -1
- package/types/slotted-angular-inline.d.ts.map +1 -1
- package/types/slotted-angular-kbd.d.ts.map +1 -1
- package/types/slotted-angular-link.d.ts.map +1 -1
- package/types/slotted-angular-list-item.d.ts.map +1 -1
- package/types/slotted-angular-list.d.ts.map +1 -1
- package/types/slotted-angular-listbox.d.ts.map +1 -1
- package/types/slotted-angular-loading-overlay.d.ts.map +1 -1
- package/types/slotted-angular-markdown.d.ts.map +1 -1
- package/types/slotted-angular-menu.d.ts.map +1 -1
- package/types/slotted-angular-menubar.d.ts.map +1 -1
- package/types/slotted-angular-message-scroller.d.ts.map +1 -1
- package/types/slotted-angular-message.d.ts.map +1 -1
- package/types/slotted-angular-multi-select.d.ts +1 -1
- package/types/slotted-angular-multi-select.d.ts.map +1 -1
- package/types/slotted-angular-navigation-menu.d.ts.map +1 -1
- package/types/slotted-angular-notification-center.d.ts.map +1 -1
- package/types/slotted-angular-number-field.d.ts.map +1 -1
- package/types/slotted-angular-otp-input.d.ts.map +1 -1
- package/types/slotted-angular-page-header.d.ts +1 -1
- package/types/slotted-angular-page-header.d.ts.map +1 -1
- package/types/slotted-angular-page.d.ts.map +1 -1
- package/types/slotted-angular-pagination.d.ts.map +1 -1
- package/types/slotted-angular-popover.d.ts.map +1 -1
- package/types/slotted-angular-progress-indicator.d.ts.map +1 -1
- package/types/slotted-angular-prompt-composer.d.ts.map +1 -1
- package/types/slotted-angular-prose.d.ts.map +1 -1
- package/types/slotted-angular-radio-group.d.ts.map +1 -1
- package/types/slotted-angular-rating.d.ts.map +1 -1
- package/types/slotted-angular-result-state.d.ts.map +1 -1
- package/types/slotted-angular-saved-views.d.ts.map +1 -1
- package/types/slotted-angular-scroll-area.d.ts.map +1 -1
- package/types/slotted-angular-section.d.ts.map +1 -1
- package/types/slotted-angular-segmented-control.d.ts.map +1 -1
- package/types/slotted-angular-select.d.ts +1 -1
- package/types/slotted-angular-select.d.ts.map +1 -1
- package/types/slotted-angular-side-navigation.d.ts.map +1 -1
- package/types/slotted-angular-skeleton.d.ts.map +1 -1
- package/types/slotted-angular-slider.d.ts.map +1 -1
- package/types/slotted-angular-sparkline.d.ts.map +1 -1
- package/types/slotted-angular-split-button.d.ts.map +1 -1
- package/types/slotted-angular-splitter.d.ts.map +1 -1
- package/types/slotted-angular-stack.d.ts.map +1 -1
- package/types/slotted-angular-stat-card.d.ts.map +1 -1
- package/types/slotted-angular-status-indicator.d.ts +1 -1
- package/types/slotted-angular-status-indicator.d.ts.map +1 -1
- package/types/slotted-angular-stepper.d.ts +1 -1
- package/types/slotted-angular-stepper.d.ts.map +1 -1
- package/types/slotted-angular-switch.d.ts.map +1 -1
- package/types/slotted-angular-table-of-contents.d.ts.map +1 -1
- package/types/slotted-angular-table.d.ts.map +1 -1
- package/types/slotted-angular-tabs.d.ts.map +1 -1
- package/types/slotted-angular-tag.d.ts.map +1 -1
- package/types/slotted-angular-tags-input.d.ts +33 -1
- package/types/slotted-angular-tags-input.d.ts.map +1 -1
- package/types/slotted-angular-text-field.d.ts.map +1 -1
- package/types/slotted-angular-textarea.d.ts.map +1 -1
- package/types/slotted-angular-time-field.d.ts.map +1 -1
- package/types/slotted-angular-time-picker.d.ts.map +1 -1
- package/types/slotted-angular-time-range-picker.d.ts.map +1 -1
- package/types/slotted-angular-timeline.d.ts.map +1 -1
- package/types/slotted-angular-toast.d.ts +2 -2
- package/types/slotted-angular-toast.d.ts.map +1 -1
- package/types/slotted-angular-toggle-group.d.ts.map +1 -1
- package/types/slotted-angular-toggle.d.ts.map +1 -1
- package/types/slotted-angular-toolbar.d.ts.map +1 -1
- package/types/slotted-angular-tooltip.d.ts.map +1 -1
- package/types/slotted-angular-top-navigation.d.ts.map +1 -1
- package/types/slotted-angular-tour.d.ts.map +1 -1
- package/types/slotted-angular-transfer.d.ts.map +1 -1
- package/types/slotted-angular-tree.d.ts.map +1 -1
- package/types/slotted-angular-typography.d.ts.map +1 -1
- package/types/slotted-angular-upload.d.ts +2 -2
- package/types/slotted-angular-upload.d.ts.map +1 -1
- package/types/slotted-angular-visually-hidden.d.ts.map +1 -1
- package/types/slotted-angular-wizard.d.ts.map +1 -1
package/docs/code-block.json
CHANGED
|
@@ -84,103 +84,103 @@
|
|
|
84
84
|
"part": "root",
|
|
85
85
|
"element": "div",
|
|
86
86
|
"required": true,
|
|
87
|
-
"purpose": "
|
|
87
|
+
"purpose": "The frame: the sunken background, the edge and the radius that prose already draws on a fence. Carries data-ui=\"code-block\", data-language, data-wrap, data-revealed, data-line-numbers, data-loading, data-marks and the four runtime values."
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
"part": "header",
|
|
91
91
|
"element": "div",
|
|
92
92
|
"required": false,
|
|
93
|
-
"purpose": "
|
|
93
|
+
"purpose": "The file name, the language at the end and the controls. Exists when there is a title, a language, copy or consumer actions. Keeps the page direction."
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
96
|
"part": "icon",
|
|
97
97
|
"element": "span",
|
|
98
98
|
"required": false,
|
|
99
|
-
"purpose": "
|
|
99
|
+
"purpose": "The glyph of the file kind next to the title, chosen by fileKind from the name."
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
"part": "title",
|
|
103
103
|
"element": "span",
|
|
104
104
|
"required": false,
|
|
105
|
-
"purpose": "
|
|
105
|
+
"purpose": "The file name, in mono, truncated with an ellipsis. It is the name of the scroll region."
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
"part": "language",
|
|
109
109
|
"element": "span",
|
|
110
110
|
"required": false,
|
|
111
|
-
"purpose": "
|
|
111
|
+
"purpose": "The language in small caps, at the end of the header."
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
"part": "actions",
|
|
115
115
|
"element": "div",
|
|
116
116
|
"required": false,
|
|
117
|
-
"purpose": "
|
|
117
|
+
"purpose": "The controls: the consumer’s, projected by slCodeBlockAction, wrap and copy. Without a header it floats over the first line, at the end of the block."
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
"part": "wrap",
|
|
121
121
|
"element": "button",
|
|
122
122
|
"required": false,
|
|
123
|
-
"purpose": "aria-pressed:
|
|
123
|
+
"purpose": "aria-pressed: wraps the lines in the box. Drawn only while a line overflows, or while it is already wrapped."
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
126
|
"part": "copy",
|
|
127
127
|
"element": "button",
|
|
128
128
|
"required": false,
|
|
129
|
-
"purpose": "
|
|
129
|
+
"purpose": "The copy control: writes the code, not the DOM, without the removed lines; data-complete for two seconds with the check in place of the sheets."
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
132
|
"part": "body",
|
|
133
133
|
"element": "div",
|
|
134
134
|
"required": true,
|
|
135
|
-
"purpose": "
|
|
135
|
+
"purpose": "A scroll-area dressed as data-ui: the named region and tab stop only while the code overflows, the platform scrollbar, the veil at the end."
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
138
|
"part": "pre",
|
|
139
139
|
"element": "pre",
|
|
140
140
|
"required": true,
|
|
141
|
-
"purpose": "white-space: pre, direction: ltr
|
|
141
|
+
"purpose": "white-space: pre, direction: ltr whatever the page, pre-wrap under data-wrap."
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
144
|
"part": "code",
|
|
145
145
|
"element": "code",
|
|
146
146
|
"required": true,
|
|
147
|
-
"purpose": "class=\"language-<x>\",
|
|
147
|
+
"purpose": "class=\"language-<x>\", the convention of the HTML specification; a grid of lines."
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
"part": "line",
|
|
151
151
|
"element": "span",
|
|
152
152
|
"required": true,
|
|
153
|
-
"purpose": "
|
|
153
|
+
"purpose": "A row of the grid: number, marker, text. data-line, data-mark and data-dim; --slotted-code-block-indent under wrap."
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
156
|
"part": "number",
|
|
157
157
|
"element": "span",
|
|
158
158
|
"required": true,
|
|
159
|
-
"purpose": "
|
|
159
|
+
"purpose": "The number, aria-hidden and not selectable; hidden without lineNumbers, but in the DOM, so nothing moves when it is turned on."
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
162
|
"part": "marker",
|
|
163
163
|
"element": "span",
|
|
164
164
|
"required": true,
|
|
165
|
-
"purpose": "
|
|
165
|
+
"purpose": "The sign column: + and − on diff lines, written by CSS and outside any selection."
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
168
|
"part": "text",
|
|
169
169
|
"element": "span",
|
|
170
170
|
"required": true,
|
|
171
|
-
"purpose": "
|
|
171
|
+
"purpose": "The token run of the line, the third column. It is what an ng-template slCodeBlockLine replaces."
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
174
|
"part": "token",
|
|
175
175
|
"element": "span",
|
|
176
176
|
"required": false,
|
|
177
|
-
"purpose": "
|
|
177
|
+
"purpose": "A scoped token, data-token among the twelve; a token without a scope is plain text."
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
"part": "reveal",
|
|
181
181
|
"element": "button",
|
|
182
182
|
"required": false,
|
|
183
|
-
"purpose": "\"Show n more lines\"
|
|
183
|
+
"purpose": "\"Show n more lines\" when collapseAfter hides lines; \"Show less\" when they are revealed. Escape in the revealed block folds it."
|
|
184
184
|
}
|
|
185
185
|
],
|
|
186
186
|
"api": [
|
|
@@ -189,154 +189,154 @@
|
|
|
189
189
|
"type": "string",
|
|
190
190
|
"defaultValue": "—",
|
|
191
191
|
"appliesTo": "CodeBlock",
|
|
192
|
-
"description": "
|
|
192
|
+
"description": "The source, as text. Never HTML"
|
|
193
193
|
},
|
|
194
194
|
{
|
|
195
195
|
"name": "language",
|
|
196
196
|
"type": "string",
|
|
197
197
|
"defaultValue": "text",
|
|
198
198
|
"appliesTo": "CodeBlock",
|
|
199
|
-
"description": "data-language
|
|
199
|
+
"description": "data-language and class=\"language-<x>\""
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
202
|
"name": "highlight",
|
|
203
203
|
"type": "CodeHighlighter | null",
|
|
204
204
|
"defaultValue": "—",
|
|
205
205
|
"appliesTo": "CodeBlock",
|
|
206
|
-
"description": "
|
|
206
|
+
"description": "The engine; null refuses the injector’s"
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
209
|
"name": "tokens",
|
|
210
210
|
"type": "CodeLine[]",
|
|
211
211
|
"defaultValue": "—",
|
|
212
212
|
"appliesTo": "CodeBlock",
|
|
213
|
-
"description": "
|
|
213
|
+
"description": "Lines the consumer already tokenized"
|
|
214
214
|
},
|
|
215
215
|
{
|
|
216
216
|
"name": "title",
|
|
217
217
|
"type": "string",
|
|
218
218
|
"defaultValue": "—",
|
|
219
219
|
"appliesTo": "CodeBlock",
|
|
220
|
-
"description": "
|
|
220
|
+
"description": "The file name in the header, and the region name"
|
|
221
221
|
},
|
|
222
222
|
{
|
|
223
223
|
"name": "fileName",
|
|
224
224
|
"type": "string",
|
|
225
225
|
"defaultValue": "—",
|
|
226
226
|
"appliesTo": "CodeBlock",
|
|
227
|
-
"description": "
|
|
227
|
+
"description": "The name for the glyph, when the title is not the name"
|
|
228
228
|
},
|
|
229
229
|
{
|
|
230
230
|
"name": "lineNumbers",
|
|
231
231
|
"type": "boolean",
|
|
232
232
|
"defaultValue": "false",
|
|
233
233
|
"appliesTo": "CodeBlock",
|
|
234
|
-
"description": "
|
|
234
|
+
"description": "The counter in the gutter"
|
|
235
235
|
},
|
|
236
236
|
{
|
|
237
237
|
"name": "start",
|
|
238
238
|
"type": "number",
|
|
239
239
|
"defaultValue": "1",
|
|
240
240
|
"appliesTo": "CodeBlock",
|
|
241
|
-
"description": "
|
|
241
|
+
"description": "The number of the first line"
|
|
242
242
|
},
|
|
243
243
|
{
|
|
244
244
|
"name": "marks",
|
|
245
245
|
"type": "CodeMarks",
|
|
246
246
|
"defaultValue": "—",
|
|
247
247
|
"appliesTo": "CodeBlock",
|
|
248
|
-
"description": "highlight, add, remove, focus, error, warning —
|
|
248
|
+
"description": "highlight, add, remove, focus, error, warning — ranges \"1,4-6\" or lists"
|
|
249
249
|
},
|
|
250
250
|
{
|
|
251
251
|
"name": "wrap",
|
|
252
252
|
"type": "model<boolean | undefined>",
|
|
253
253
|
"defaultValue": "—",
|
|
254
254
|
"appliesTo": "CodeBlock",
|
|
255
|
-
"description": "[(wrap)]:
|
|
255
|
+
"description": "[(wrap)]: present means controlled, for the life of the block"
|
|
256
256
|
},
|
|
257
257
|
{
|
|
258
258
|
"name": "defaultWrap",
|
|
259
259
|
"type": "boolean",
|
|
260
260
|
"defaultValue": "false",
|
|
261
261
|
"appliesTo": "CodeBlock",
|
|
262
|
-
"description": "
|
|
262
|
+
"description": "Where an uncontrolled block starts"
|
|
263
263
|
},
|
|
264
264
|
{
|
|
265
265
|
"name": "collapseAfter",
|
|
266
266
|
"type": "number",
|
|
267
267
|
"defaultValue": "—",
|
|
268
268
|
"appliesTo": "CodeBlock",
|
|
269
|
-
"description": "
|
|
269
|
+
"description": "Visible lines before the reveal control"
|
|
270
270
|
},
|
|
271
271
|
{
|
|
272
272
|
"name": "revealed",
|
|
273
273
|
"type": "model<boolean | undefined>",
|
|
274
274
|
"defaultValue": "—",
|
|
275
275
|
"appliesTo": "CodeBlock",
|
|
276
|
-
"description": "[(revealed)]:
|
|
276
|
+
"description": "[(revealed)]: present means controlled"
|
|
277
277
|
},
|
|
278
278
|
{
|
|
279
279
|
"name": "defaultRevealed",
|
|
280
280
|
"type": "boolean",
|
|
281
281
|
"defaultValue": "false",
|
|
282
282
|
"appliesTo": "CodeBlock",
|
|
283
|
-
"description": "
|
|
283
|
+
"description": "Where an uncontrolled block starts"
|
|
284
284
|
},
|
|
285
285
|
{
|
|
286
286
|
"name": "maxLines",
|
|
287
287
|
"type": "number",
|
|
288
288
|
"defaultValue": "—",
|
|
289
289
|
"appliesTo": "CodeBlock",
|
|
290
|
-
"description": "
|
|
290
|
+
"description": "Lines before the body scrolls"
|
|
291
291
|
},
|
|
292
292
|
{
|
|
293
293
|
"name": "copy",
|
|
294
294
|
"type": "boolean",
|
|
295
295
|
"defaultValue": "true",
|
|
296
296
|
"appliesTo": "CodeBlock",
|
|
297
|
-
"description": "
|
|
297
|
+
"description": "The copy control"
|
|
298
298
|
},
|
|
299
299
|
{
|
|
300
300
|
"name": "copyRemoved",
|
|
301
301
|
"type": "boolean",
|
|
302
302
|
"defaultValue": "false",
|
|
303
303
|
"appliesTo": "CodeBlock",
|
|
304
|
-
"description": "
|
|
304
|
+
"description": "Keeps the removed lines in the copy"
|
|
305
305
|
},
|
|
306
306
|
{
|
|
307
307
|
"name": "loading",
|
|
308
308
|
"type": "boolean",
|
|
309
309
|
"defaultValue": "false",
|
|
310
310
|
"appliesTo": "CodeBlock",
|
|
311
|
-
"description": "Skeletons
|
|
311
|
+
"description": "Skeletons at the height of six lines, aria-busy, no copy"
|
|
312
312
|
},
|
|
313
313
|
{
|
|
314
314
|
"name": "tabSize",
|
|
315
315
|
"type": "number",
|
|
316
316
|
"defaultValue": "2",
|
|
317
317
|
"appliesTo": "CodeBlock",
|
|
318
|
-
"description": "
|
|
318
|
+
"description": "Width of a tab, for the continuation indent"
|
|
319
319
|
},
|
|
320
320
|
{
|
|
321
321
|
"name": "messages",
|
|
322
322
|
"type": "PartialMessages<CodeBlockMessages>",
|
|
323
323
|
"defaultValue": "—",
|
|
324
324
|
"appliesTo": "slCodeBlock",
|
|
325
|
-
"description": "
|
|
325
|
+
"description": "The family’s words over the current locale, key by key"
|
|
326
326
|
},
|
|
327
327
|
{
|
|
328
328
|
"name": "ng-template[slCodeBlockLine]",
|
|
329
|
-
"type": "
|
|
329
|
+
"type": "projection",
|
|
330
330
|
"defaultValue": "—",
|
|
331
331
|
"appliesTo": "CodeBlock",
|
|
332
|
-
"description": "
|
|
332
|
+
"description": "Replaces the token run of each line; receives the tokens, the number, the mark and the dimming"
|
|
333
333
|
},
|
|
334
334
|
{
|
|
335
335
|
"name": "[slCodeBlockAction]",
|
|
336
|
-
"type": "
|
|
336
|
+
"type": "projection",
|
|
337
337
|
"defaultValue": "—",
|
|
338
338
|
"appliesTo": "CodeBlock",
|
|
339
|
-
"description": "
|
|
339
|
+
"description": "Consumer controls next to copy and wrap"
|
|
340
340
|
}
|
|
341
341
|
],
|
|
342
342
|
"composition": [
|
|
@@ -345,72 +345,72 @@
|
|
|
345
345
|
"type": "slCodeBlock",
|
|
346
346
|
"defaultValue": "—",
|
|
347
347
|
"appliesTo": "CodeBlock",
|
|
348
|
-
"description": "
|
|
348
|
+
"description": "Reaches the instance from the template: #block=\"slCodeBlock\" and block.copyCode() or block.scrollToLine(12)"
|
|
349
349
|
},
|
|
350
350
|
{
|
|
351
351
|
"name": "ng-template[slCodeBlockLine]",
|
|
352
352
|
"type": "let-tokens, let-number=\"number\", let-mark=\"mark\", let-dim=\"dim\"",
|
|
353
353
|
"defaultValue": "—",
|
|
354
354
|
"appliesTo": "CodeBlock",
|
|
355
|
-
"description": "
|
|
355
|
+
"description": "The line the application’s way; the gutter stays the family’s"
|
|
356
356
|
},
|
|
357
357
|
{
|
|
358
358
|
"name": "[slCodeBlockAction]",
|
|
359
359
|
"type": "ng-content",
|
|
360
360
|
"defaultValue": "—",
|
|
361
361
|
"appliesTo": "CodeBlock",
|
|
362
|
-
"description": "
|
|
362
|
+
"description": "A \"Run\" or an \"Open in editor\" next to the controls"
|
|
363
363
|
},
|
|
364
364
|
{
|
|
365
365
|
"name": "provideCodeBlockDefaults()",
|
|
366
366
|
"type": "highlight | lineNumbers | copy",
|
|
367
367
|
"defaultValue": "—",
|
|
368
368
|
"appliesTo": "Injector",
|
|
369
|
-
"description": "
|
|
369
|
+
"description": "The engine loaded once, for every block below; an input on the block wins"
|
|
370
370
|
},
|
|
371
371
|
{
|
|
372
372
|
"name": "slTabs",
|
|
373
|
-
"type": "
|
|
373
|
+
"type": "composition",
|
|
374
374
|
"defaultValue": "—",
|
|
375
|
-
"appliesTo": "
|
|
376
|
-
"description": "
|
|
375
|
+
"appliesTo": "around",
|
|
376
|
+
"description": "Several files: one block per panel"
|
|
377
377
|
},
|
|
378
378
|
{
|
|
379
379
|
"name": "id, aria-*, data-*, (keydown)",
|
|
380
|
-
"type": "
|
|
380
|
+
"type": "native attributes",
|
|
381
381
|
"defaultValue": "—",
|
|
382
382
|
"appliesTo": "CodeBlock",
|
|
383
|
-
"description": "
|
|
383
|
+
"description": "Stay on the host element; the consumer’s listener runs alongside the family’s"
|
|
384
384
|
}
|
|
385
385
|
],
|
|
386
386
|
"events": [
|
|
387
387
|
{
|
|
388
388
|
"name": "(wrapChangeRequest)",
|
|
389
389
|
"payload": "ChangeRequest<boolean>",
|
|
390
|
-
"when": "
|
|
390
|
+
"when": "Before the lines wrap or unwrap; [(wrap)] is the other half, the value. The request carries the reason — pointer, keyboard or programmatic — and the source event; cancelling it moves nothing."
|
|
391
391
|
},
|
|
392
392
|
{
|
|
393
393
|
"name": "(revealedChangeRequest)",
|
|
394
394
|
"payload": "ChangeRequest<boolean>",
|
|
395
|
-
"when": "
|
|
395
|
+
"when": "Before the block reveals or folds the hidden lines; [(revealed)] is the value. The reason is pointer, keyboard, escape or programmatic."
|
|
396
396
|
},
|
|
397
397
|
{
|
|
398
398
|
"name": "(copyRequest)",
|
|
399
399
|
"payload": "{ value, copied, reason, source }",
|
|
400
|
-
"when": "
|
|
400
|
+
"when": "After the control, or copyCode(), writes to the clipboard. copied is false when the platform refused."
|
|
401
401
|
},
|
|
402
402
|
{
|
|
403
403
|
"name": "(highlightError)",
|
|
404
404
|
"payload": "unknown",
|
|
405
|
-
"when": "
|
|
405
|
+
"when": "When the engine rejects. The plain text stays."
|
|
406
406
|
}
|
|
407
407
|
],
|
|
408
408
|
"accessibility": [
|
|
409
|
-
"
|
|
410
|
-
"
|
|
411
|
-
"
|
|
412
|
-
"
|
|
413
|
-
"
|
|
409
|
+
"The block has no role: it is text, read as text. Carbon’s role=\"textbox\" with aria-readonly on a block nobody edits is refused in writing in the contract.",
|
|
410
|
+
"The body is a scroll-area: role=\"region\", tabindex=\"0\" and a name — the title, then aria-label, then \"Code\" — only while the code overflows, which is what SC 2.1.1 and scrollable-region-focusable ask for. The scroll keys are the platform’s; the family writes none.",
|
|
411
|
+
"The gutter of numbers and signs is aria-hidden and user-select: none: a screen reader hears the code and not a count, and a selection across the block copies code and nothing else.",
|
|
412
|
+
"The copy control announces \"Copied\" or \"Copy failed\" through the shared live-announcer and swaps the glyph as well as the color; the wrap control is aria-pressed; the reveal control carries aria-expanded and aria-controls pointing to the body.",
|
|
413
|
+
"Engine HTML never enters: the tokens are text in spans, and a <script> in a sample is the six characters it is."
|
|
414
414
|
]
|
|
415
415
|
}
|
|
416
416
|
},
|
|
@@ -487,129 +487,129 @@
|
|
|
487
487
|
{
|
|
488
488
|
"id": "playground",
|
|
489
489
|
"title": "Playground",
|
|
490
|
-
"note": "
|
|
490
|
+
"note": "A TypeScript file with a title, line numbers and a highlighted range, moved by the controls below the stage.",
|
|
491
491
|
"language": "html",
|
|
492
492
|
"source": "<div\n slCodeBlock\n [code]=\"source\"\n language=\"ts\"\n lineNumbers\n [marks]=\"{ highlight: '5-6' }\"\n title=\"group.ts\"\n></div>\n",
|
|
493
493
|
"verdict": "excerpt"
|
|
494
494
|
},
|
|
495
495
|
{
|
|
496
496
|
"id": "highlight",
|
|
497
|
-
"title": "
|
|
498
|
-
"note": "
|
|
497
|
+
"title": "Text first, tokens when they arrive",
|
|
498
|
+
"note": "The block draws the plain text on the first paint and swaps in the tokens line by line when the engine answers: the height does not change, because each line is a row of the grid. The colors are the theme’s --slotted-code-* scale, and change with the scheme.",
|
|
499
499
|
"language": "html",
|
|
500
500
|
"source": "<div slCodeBlock [code]=\"source\" [highlight]=\"tokenise\" language=\"ts\"></div>\n",
|
|
501
501
|
"verdict": "excerpt"
|
|
502
502
|
},
|
|
503
503
|
{
|
|
504
504
|
"id": "engines",
|
|
505
|
-
"title": "Prism
|
|
506
|
-
"note": "
|
|
505
|
+
"title": "Prism and Shiki come in through the mappings",
|
|
506
|
+
"note": "The family loads no grammar. fromPrismTokens folds the standard Prism names onto the twelve scopes; fromShikiTokens reads the last TextMate scope of each token. Engine HTML never enters: what arrives is text in spans.",
|
|
507
507
|
"language": "ts",
|
|
508
508
|
"source": "const prism = (code, lang) => fromPrismTokens(Prism.tokenize(code, Prism.languages[lang]));\nconst shiki = async (code, lang) =>\n fromShikiTokens(\n await codeToTokens(code, { includeExplanation: 'scopeName', lang, theme: 'none' }),\n );\n",
|
|
509
509
|
"verdict": "excerpt"
|
|
510
510
|
},
|
|
511
511
|
{
|
|
512
512
|
"id": "lineNumbers",
|
|
513
|
-
"title": "
|
|
514
|
-
"note": "lineNumbers
|
|
513
|
+
"title": "Line numbers",
|
|
514
|
+
"note": "lineNumbers draws a counter in a gutter wide enough for the last number, measured in ch; start says where it begins. The gutter is aria-hidden and user-select: none, so a selection across the block copies code and nothing else.",
|
|
515
515
|
"language": "html",
|
|
516
516
|
"source": "<div slCodeBlock [code]=\"source\" language=\"ts\" lineNumbers start=\"98\"></div>\n",
|
|
517
517
|
"verdict": "excerpt"
|
|
518
518
|
},
|
|
519
519
|
{
|
|
520
520
|
"id": "marks",
|
|
521
|
-
"title": "
|
|
522
|
-
"note": "marks
|
|
521
|
+
"title": "Marked lines",
|
|
522
|
+
"note": "marks takes ranges \"1,4-6\" or lists of numbers: highlight tints with the accent and a bar at the edge; error and warning with danger and warning. The tint is the tone’s text color at 7.5%, so no scope falls below 4.5:1.",
|
|
523
523
|
"language": "html",
|
|
524
524
|
"source": "<div\n slCodeBlock\n [code]=\"source\"\n language=\"sh\"\n [marks]=\"{ error: '3', highlight: '1', warning: [4] }\"\n></div>\n",
|
|
525
525
|
"verdict": "excerpt"
|
|
526
526
|
},
|
|
527
527
|
{
|
|
528
528
|
"id": "diff",
|
|
529
|
-
"title": "
|
|
530
|
-
"note": "add
|
|
529
|
+
"title": "A diff",
|
|
530
|
+
"note": "add and remove tint with success and danger and write + and − in the gutter, by CSS. The copy control leaves the removed lines out, because the code after the change is what gets pasted; copyRemoved keeps them.",
|
|
531
531
|
"language": "html",
|
|
532
532
|
"source": "<div\n slCodeBlock\n [code]=\"source\"\n language=\"css\"\n lineNumbers\n [marks]=\"{ add: '4-6', remove: '2-3' }\"\n></div>\n",
|
|
533
533
|
"verdict": "excerpt"
|
|
534
534
|
},
|
|
535
535
|
{
|
|
536
536
|
"id": "focus",
|
|
537
|
-
"title": "
|
|
538
|
-
"note": "focus
|
|
537
|
+
"title": "Focus on one part of the block",
|
|
538
|
+
"note": "focus dims and blurs the lines outside the range; the block lifts the veil with the pointer over it or focus inside, so whoever wants the rest gets it. Under reduced-motion the blur goes and the dimming stays, because the dimming is the information.",
|
|
539
539
|
"language": "html",
|
|
540
540
|
"source": "<div slCodeBlock [code]=\"source\" language=\"json\" [marks]=\"{ focus: '3-6' }\"></div>\n",
|
|
541
541
|
"verdict": "excerpt"
|
|
542
542
|
},
|
|
543
543
|
{
|
|
544
544
|
"id": "wrap",
|
|
545
|
-
"title": "
|
|
546
|
-
"note": "
|
|
545
|
+
"title": "Wrapping long lines",
|
|
546
|
+
"note": "The wrap control appears only while a line overflows — the Docusaurus rule — and is a pressed button. The continuation of a wrapped line indents to the code’s own indent, measured once per line in ch.",
|
|
547
547
|
"language": "html",
|
|
548
548
|
"source": "<div\n slCodeBlock\n [code]=\"command\"\n defaultWrap\n language=\"sh\"\n (wrapChangeRequest)=\"log($event.reason)\"\n></div>\n",
|
|
549
549
|
"verdict": "excerpt"
|
|
550
550
|
},
|
|
551
551
|
{
|
|
552
552
|
"id": "title",
|
|
553
|
-
"title": "
|
|
554
|
-
"note": "title
|
|
553
|
+
"title": "A named file",
|
|
554
|
+
"note": "title puts up the header with the name in mono, the glyph of the file kind — a text sheet for a .ts, a table sheet for a .csv — and the language at the end. The title is also the name of the scroll region.",
|
|
555
555
|
"language": "html",
|
|
556
556
|
"source": "<div slCodeBlock [code]=\"rows\" language=\"csv\" title=\"orders-2026-09.csv\"></div>\n",
|
|
557
557
|
"verdict": "excerpt"
|
|
558
558
|
},
|
|
559
559
|
{
|
|
560
560
|
"id": "collapse",
|
|
561
|
-
"title": "
|
|
562
|
-
"note": "collapseAfter
|
|
561
|
+
"title": "Folded behind \"Show more\"",
|
|
562
|
+
"note": "collapseAfter hides what goes past n lines behind a control; the last visible line fades into it. revealed is the state model; Escape inside the revealed block folds it and keeps focus. The hidden lines stay in the DOM and in a selection.",
|
|
563
563
|
"language": "html",
|
|
564
564
|
"source": "<div\n slCodeBlock\n [code]=\"source\"\n collapseAfter=\"6\"\n language=\"json\"\n [(revealed)]=\"revealed\"\n (revealedChangeRequest)=\"track($event.value)\"\n></div>\n",
|
|
565
565
|
"verdict": "excerpt"
|
|
566
566
|
},
|
|
567
567
|
{
|
|
568
568
|
"id": "maxLines",
|
|
569
|
-
"title": "
|
|
570
|
-
"note": "maxLines
|
|
569
|
+
"title": "Scrolling past a maximum",
|
|
570
|
+
"note": "maxLines limits the body height and the scroll-area scrolls the rest, with the region named and reachable by Tab. It composes with collapseAfter: a block folded at eight and, revealed, scrolling past forty.",
|
|
571
571
|
"language": "html",
|
|
572
572
|
"source": "<div slCodeBlock [code]=\"log\" language=\"text\" lineNumbers maxLines=\"12\"></div>\n",
|
|
573
573
|
"verdict": "excerpt"
|
|
574
574
|
},
|
|
575
575
|
{
|
|
576
576
|
"id": "copy",
|
|
577
|
-
"title": "
|
|
578
|
-
"note": "
|
|
577
|
+
"title": "Copying",
|
|
578
|
+
"note": "The control writes the code the consumer gave, never the DOM text: no numbers, no signs, no wraps. When done, the check stays two seconds in place of the sheets and \"Copied\" is announced; copy=\"false\" removes the control; copyCode() copies without it.",
|
|
579
579
|
"language": "html",
|
|
580
|
-
"source": "<div slCodeBlock [code]=\"source\" (copyRequest)=\"$event.copied && toast('
|
|
580
|
+
"source": "<div slCodeBlock [code]=\"source\" (copyRequest)=\"$event.copied && toast('Copied')\"></div>\n",
|
|
581
581
|
"verdict": "excerpt"
|
|
582
582
|
},
|
|
583
583
|
{
|
|
584
584
|
"id": "loading",
|
|
585
|
-
"title": "
|
|
586
|
-
"note": "loading
|
|
585
|
+
"title": "Code on the way, and no code",
|
|
586
|
+
"note": "loading draws the frame at the height of six lines with skeletons inside and aria-busy, without a copy control — not a spinner, which is for a region that already has content. An empty string is an empty line with its number.",
|
|
587
587
|
"language": "html",
|
|
588
588
|
"source": "<div slCodeBlock code=\"\" loading title=\"deploy.log\"></div>\n",
|
|
589
589
|
"verdict": "excerpt"
|
|
590
590
|
},
|
|
591
591
|
{
|
|
592
592
|
"id": "content",
|
|
593
|
-
"title": "
|
|
594
|
-
"note": "
|
|
593
|
+
"title": "Content the family did not choose",
|
|
594
|
+
"note": "A 400-character line scrolls and, under wrap, breaks inside an indivisible token instead of escaping the box; Arabic code on an RTL page reads from left to right; a <script> in the sample is six characters.",
|
|
595
595
|
"language": "html",
|
|
596
596
|
"source": "<div slCodeBlock [code]=\"'<script>alert(1)</script>'\" language=\"html\"></div>\n",
|
|
597
597
|
"verdict": "excerpt"
|
|
598
598
|
},
|
|
599
599
|
{
|
|
600
600
|
"id": "composition",
|
|
601
|
-
"title": "
|
|
602
|
-
"note": "
|
|
601
|
+
"title": "Composition",
|
|
602
|
+
"note": "Several files are tabs with one block per panel; a consumer action goes in actions next to copy, through slCodeBlockAction; an ng-template slCodeBlockLine draws a line the application’s way; provideCodeBlockDefaults hands the engine once to the injector.",
|
|
603
603
|
"language": "ts",
|
|
604
604
|
"source": "providers: [provideCodeBlockDefaults({ highlight: shiki, lineNumbers: true })];\n\n// <div slCodeBlock [code]=\"a\" language=\"ts\" title=\"a.ts\"></div>\n// <div slCodeBlock [code]=\"b\" language=\"css\" title=\"a.css\">\n// <button slCodeBlockAction slButton size=\"xs\" variant=\"ghost\">Run</button>\n// </div>\n",
|
|
605
605
|
"verdict": "excerpt"
|
|
606
606
|
},
|
|
607
607
|
{
|
|
608
608
|
"id": "keyboard",
|
|
609
|
-
"title": "
|
|
610
|
-
"note": "Tab: copy, wrap, reveal,
|
|
609
|
+
"title": "Keyboard",
|
|
610
|
+
"note": "Tab: copy, wrap, reveal, and the body when it overflows. In the body the arrows, Page, Home, End and Space are the platform’s; Enter and Space on the controls; Escape in a revealed block folds it and keeps focus.",
|
|
611
611
|
"language": "html",
|
|
612
|
-
"source": "<!-- \"group.ts, region\" —
|
|
612
|
+
"source": "<!-- \"group.ts, region\" — the title, because the body is a named region only while the code overflows. -->\n<div slCodeBlock [code]=\"wide\" language=\"ts\" title=\"group.ts\"></div>\n",
|
|
613
613
|
"verdict": "excerpt"
|
|
614
614
|
}
|
|
615
615
|
]
|