@aceshooting/lyra-ui 32.0.0 → 32.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +203 -0
- package/README.md +24 -6
- package/design-tokens.json +1 -1
- package/dist/all.d.ts +1 -1
- package/dist/all.js +1 -1
- package/dist/autoloader.d.ts +10 -0
- package/dist/autoloader.js +1 -1
- package/dist/cli/migrate-wa.mjs +45 -37
- package/dist/cli/migration-contract.json.gz +0 -0
- package/dist/components/agent-tools/budget-meter/budget-meter.class.d.ts +1 -0
- package/dist/components/agent-tools/budget-meter/budget-meter.styles.js +1 -1
- package/dist/components/charts/chart/box-plot.class.d.ts +3 -0
- package/dist/components/charts/chart/chart-band.js +1 -1
- package/dist/components/charts/chart/chart-input-projection.js +1 -1
- package/dist/components/charts/chart/chart-surface.styles.js +1 -1
- package/dist/components/charts/chart/chart-types.d.ts +16 -2
- package/dist/components/charts/chart/chart.class.d.ts +4 -1
- package/dist/components/charts/chart/chart.class.js +3 -3
- package/dist/components/charts/chart/lite-chart.class.d.ts +3 -0
- package/dist/components/charts/chart/lite-chart.styles.js +1 -1
- package/dist/components/conversation/code-block/code-block-base.class.d.ts +29 -3
- package/dist/components/conversation/code-block/code-block-base.class.js +1 -1
- package/dist/components/conversation/code-block/code-block-core.class.d.ts +46 -2
- package/dist/components/conversation/code-block/code-block-core.class.js +1 -1
- package/dist/components/conversation/code-block/code-block-shared.d.ts +6 -2
- package/dist/components/conversation/code-block/code-block-shared.js +5 -4
- package/dist/components/conversation/code-block/code-block.class.d.ts +45 -1
- package/dist/components/conversation/code-block/code-block.class.js +1 -1
- package/dist/components/conversation/code-block/code-block.styles.js +1 -1
- package/dist/components/conversation/markdown/markdown-core.class.d.ts +12 -0
- package/dist/components/conversation/markdown/markdown.class.d.ts +12 -0
- package/dist/components/conversation/markdown/markdown.styles.js +1 -1
- package/dist/components/conversation/model-select/model-select.class.d.ts +6 -0
- package/dist/components/conversation/suggestion-chips/suggestion-chips.class.d.ts +1 -0
- package/dist/components/conversation/suggestion-chips/suggestion-chips.styles.js +1 -1
- package/dist/components/conversation/thread-list/thread-list.class.d.ts +3 -0
- package/dist/components/conversation/thread-list/thread-list.styles.js +1 -1
- package/dist/components/conversation/voice-picker/voice-picker.class.d.ts +6 -0
- package/dist/components/data/graph-query-builder/graph-query-builder.class.d.ts +4 -0
- package/dist/components/data/heatmap/heatmap.class.d.ts +21 -2
- package/dist/components/data/heatmap/heatmap.class.js +2 -2
- package/dist/components/data/heatmap/heatmap.styles.js +1 -1
- package/dist/components/data/stat/stat.class.d.ts +24 -1
- package/dist/components/data/stat/stat.class.js +2 -2
- package/dist/components/data/stat/stat.styles.js +1 -1
- package/dist/components/data/table/table-row-attributes.js +1 -0
- package/dist/components/data/table/table-support.d.ts +65 -5
- package/dist/components/data/table/table-support.js +1 -1
- package/dist/components/data/table/table.class.d.ts +77 -7
- package/dist/components/data/table/table.class.js +10 -10
- package/dist/components/data/table/table.styles.js +1 -1
- package/dist/components/data/timeline/timeline-item.class.d.ts +27 -5
- package/dist/components/data/timeline/timeline-item.class.js +11 -7
- package/dist/components/data/timeline/timeline-item.styles.js +1 -1
- package/dist/components/data/timeline/timeline.class.d.ts +40 -5
- package/dist/components/data/timeline/timeline.class.js +11 -7
- package/dist/components/data/timeline/timeline.styles.js +1 -1
- package/dist/components/data/tree/tree-item.class.d.ts +2 -0
- package/dist/components/data/tree/tree-item.class.js +2 -2
- package/dist/components/data/tree/tree-item.styles.js +1 -1
- package/dist/components/forms/button/button.class.d.ts +13 -0
- package/dist/components/forms/button/button.styles.js +1 -1
- package/dist/components/forms/checkbox-group/checkbox-group.class.d.ts +29 -2
- package/dist/components/forms/checkbox-group/checkbox-group.class.js +3 -3
- package/dist/components/forms/checkbox-group/checkbox-group.styles.js +1 -1
- package/dist/components/forms/code-editor/code-editor.class.d.ts +6 -0
- package/dist/components/forms/color-picker/color-picker.class.d.ts +9 -0
- package/dist/components/forms/color-picker/color-picker.class.js +3 -3
- package/dist/components/forms/color-picker/color-picker.styles.js +1 -1
- package/dist/components/forms/combobox/combobox.class.d.ts +114 -7
- package/dist/components/forms/combobox/combobox.class.js +9 -7
- package/dist/components/forms/combobox/combobox.styles.js +1 -1
- package/dist/components/forms/country-picker/country-picker.class.d.ts +2 -0
- package/dist/components/forms/currency-picker/currency-picker.class.d.ts +2 -0
- package/dist/components/forms/date-picker/date-input.class.d.ts +41 -0
- package/dist/components/forms/date-picker/date-input.class.js +2 -2
- package/dist/components/forms/date-picker/date-input.styles.js +1 -1
- package/dist/components/forms/emoji-picker/emoji-picker.class.d.ts +4 -0
- package/dist/components/forms/icon-button/icon-button.styles.js +1 -1
- package/dist/components/forms/input/input-shared.d.ts +12 -0
- package/dist/components/forms/input/input.styles.js +1 -1
- package/dist/components/forms/input/time-input.class.d.ts +6 -0
- package/dist/components/forms/input/time-input.styles.js +1 -1
- package/dist/components/forms/locale-picker/locale-picker.class.d.ts +11 -0
- package/dist/components/forms/locale-picker/locale-picker.styles.js +1 -1
- package/dist/components/forms/otp-input/otp-input.class.d.ts +6 -0
- package/dist/components/forms/phone-input/phone-input.class.d.ts +6 -0
- package/dist/components/forms/phone-input/phone-input.styles.js +1 -1
- package/dist/components/forms/radio/radio-group.class.d.ts +24 -2
- package/dist/components/forms/radio/radio-group.class.js +2 -2
- package/dist/components/forms/radio/radio-group.styles.js +1 -1
- package/dist/components/forms/rubric-form/rubric-form.class.d.ts +4 -0
- package/dist/components/forms/select/select.class.d.ts +13 -0
- package/dist/components/forms/select/select.class.js +1 -1
- package/dist/components/forms/select/select.styles.js +1 -1
- package/dist/components/forms/signature-pad/signature-pad.class.d.ts +6 -0
- package/dist/components/forms/signature-pad/signature-pad.styles.js +1 -1
- package/dist/components/forms/slider/slider.class.d.ts +28 -2
- package/dist/components/forms/slider/slider.class.js +3 -3
- package/dist/components/forms/slider/slider.styles.js +1 -1
- package/dist/components/forms/switch/switch.class.d.ts +2 -0
- package/dist/components/forms/switch/switch.styles.js +1 -1
- package/dist/components/forms/textarea/textarea.class.d.ts +8 -0
- package/dist/components/forms/textarea/textarea.styles.js +1 -1
- package/dist/components/forms/time-zone-picker/time-zone-picker.class.d.ts +2 -0
- package/dist/components/forms/token-input/token-input.class.d.ts +96 -18
- package/dist/components/forms/token-input/token-input.class.js +11 -8
- package/dist/components/forms/token-input/token-input.styles.js +1 -1
- package/dist/components/forms/unit-picker/unit-picker.class.d.ts +2 -0
- package/dist/components/layout/app-rail/app-rail.class.d.ts +3 -0
- package/dist/components/layout/app-rail/app-rail.styles.js +1 -1
- package/dist/components/layout/button-group/button-group.class.d.ts +4 -0
- package/dist/components/layout/button-group/button-group.class.js +1 -1
- package/dist/components/layout/card/card.class.d.ts +15 -1
- package/dist/components/layout/card/card.styles.js +1 -1
- package/dist/components/layout/details/details.class.d.ts +6 -0
- package/dist/components/layout/details/details.styles.js +1 -1
- package/dist/components/layout/filter-bar/filter-bar.class.d.ts +6 -0
- package/dist/components/layout/filter-bar/filter-bar.styles.js +1 -1
- package/dist/components/layout/index.d.ts +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/layout/menu/dropdown-item.class.d.ts +8 -2
- package/dist/components/layout/menu/dropdown-item.class.js +1 -1
- package/dist/components/layout/menu/menu-item.class.d.ts +7 -0
- package/dist/components/layout/menu/menu-item.styles.js +1 -1
- package/dist/components/layout/menu/menu-label.class.d.ts +5 -0
- package/dist/components/layout/menu/menu-label.class.js +1 -1
- package/dist/components/layout/menu/menu.class.d.ts +3 -0
- package/dist/components/layout/menu/menu.styles.js +1 -1
- package/dist/components/layout/page/page.class.d.ts +9 -1
- package/dist/components/layout/page/page.class.js +2 -2
- package/dist/components/layout/segmented/segmented.class.d.ts +22 -3
- package/dist/components/layout/segmented/segmented.class.js +3 -4
- package/dist/components/layout/segmented/segmented.styles.js +1 -1
- package/dist/components/layout/stepper/step.class.d.ts +89 -0
- package/dist/components/layout/stepper/step.class.js +18 -0
- package/dist/components/layout/stepper/step.styles.js +1 -0
- package/dist/components/layout/stepper/stepper.class.d.ts +106 -13
- package/dist/components/layout/stepper/stepper.class.js +6 -2
- package/dist/components/layout/stepper/stepper.styles.js +1 -1
- package/dist/components/layout/tab-group/tab-group.class.d.ts +10 -1
- package/dist/components/layout/tab-group/tab-group.class.js +1 -1
- package/dist/components/layout/tab-group/tab-group.styles.js +1 -1
- package/dist/components/layout/tab-group/tab-panel.class.d.ts +1 -0
- package/dist/components/layout/tab-group/tab-panel.class.js +1 -1
- package/dist/components/layout/tab-group/tab.class.d.ts +4 -0
- package/dist/components/layout/widget/widget.class.d.ts +1 -0
- package/dist/components/layout/widget/widget.styles.js +1 -1
- package/dist/components/lr-code-block-core.d.ts +1 -1
- package/dist/components/lr-code-block.d.ts +1 -1
- package/dist/components/lr-counter.d.ts +1 -0
- package/dist/components/lr-counter.js +1 -0
- package/dist/components/lr-lightbox-item.d.ts +1 -0
- package/dist/components/lr-lightbox-item.js +1 -0
- package/dist/components/lr-lightbox.d.ts +1 -1
- package/dist/components/lr-lightbox.js +1 -1
- package/dist/components/lr-number-ticker.d.ts +1 -0
- package/dist/components/lr-number-ticker.js +1 -0
- package/dist/components/lr-step.d.ts +1 -0
- package/dist/components/lr-step.js +1 -0
- package/dist/components/media/file-input/file-input.class.d.ts +7 -1
- package/dist/components/media/file-input/file-input.class.js +2 -2
- package/dist/components/media/file-input/file-input.styles.js +1 -1
- package/dist/components/media/index.d.ts +1 -1
- package/dist/components/media/index.js +1 -1
- package/dist/components/media/lightbox/lightbox-item.class.d.ts +57 -0
- package/dist/components/media/lightbox/lightbox-item.class.js +9 -0
- package/dist/components/media/lightbox/lightbox-item.styles.js +1 -0
- package/dist/components/media/lightbox/lightbox.class.d.ts +90 -20
- package/dist/components/media/lightbox/lightbox.class.js +17 -12
- package/dist/components/media/lightbox/lightbox.styles.js +1 -1
- package/dist/components/media/map/map-anchor-avoid.js +1 -1
- package/dist/components/media/map/map-drawing-controller.js +1 -1
- package/dist/components/media/map/map.class.d.ts +137 -7
- package/dist/components/media/map/map.class.js +6 -6
- package/dist/components/media/map/map.styles.js +1 -1
- package/dist/components/media/sequence-playback/sequence-playback.class.d.ts +9 -0
- package/dist/components/media/sequence-playback/sequence-playback.class.js +2 -2
- package/dist/components/media/sequence-playback/sequence-playback.styles.js +1 -1
- package/dist/components/media/video/video.class.d.ts +4 -0
- package/dist/components/media/video/video.class.js +2 -2
- package/dist/components/media/video/video.styles.js +1 -1
- package/dist/components/media/zoomable-frame/zoomable-frame.class.d.ts +15 -0
- package/dist/components/media/zoomable-frame/zoomable-frame.class.js +2 -2
- package/dist/components/overlays/badge/badge.class.d.ts +2 -0
- package/dist/components/overlays/badge/badge.styles.js +1 -1
- package/dist/components/overlays/badge/tag.class.d.ts +2 -0
- package/dist/components/overlays/badge/tag.class.js +1 -1
- package/dist/components/overlays/chip/chip-group.class.d.ts +31 -4
- package/dist/components/overlays/chip/chip-group.class.js +3 -3
- package/dist/components/overlays/context-menu/context-menu.class.d.ts +5 -0
- package/dist/components/overlays/context-menu/context-menu.class.js +1 -1
- package/dist/components/overlays/dialog/dialog.class.d.ts +36 -4
- package/dist/components/overlays/dialog/dialog.class.js +3 -3
- package/dist/components/overlays/dialog/dialog.styles.js +1 -1
- package/dist/components/overlays/dialog/prompt.d.ts +60 -0
- package/dist/components/overlays/dialog/prompt.js +1 -0
- package/dist/components/overlays/drawer/drawer.class.d.ts +16 -1
- package/dist/components/overlays/drawer/drawer.class.js +1 -1
- package/dist/components/overlays/empty/empty.class.d.ts +1 -0
- package/dist/components/overlays/empty/empty.class.js +1 -1
- package/dist/components/overlays/overlay/dropdown.class.d.ts +4 -0
- package/dist/components/overlays/overlay/dropdown.class.js +1 -1
- package/dist/components/overlays/overlay/overlay.styles.js +1 -1
- package/dist/components/overlays/overlay/popover.class.d.ts +29 -3
- package/dist/components/overlays/overlay/popover.class.js +2 -2
- package/dist/components/overlays/overlay/tooltip.class.d.ts +2 -0
- package/dist/components/overlays/overlay/tooltip.class.js +2 -2
- package/dist/components/overlays/toast/toast-item.class.d.ts +1 -0
- package/dist/components/overlays/toast/toast-item.class.js +1 -1
- package/dist/components/overlays/toast/toast-item.styles.js +1 -1
- package/dist/components/overlays/toast/toast.class.d.ts +6 -0
- package/dist/components/overlays/toast/toast.class.js +1 -1
- package/dist/components/utility/copy-button/copy-button.class.d.ts +2 -0
- package/dist/components/utility/copy-button/copy-button.class.js +2 -2
- package/dist/components/utility/counter/counter-time.d.ts +15 -0
- package/dist/components/utility/counter/counter-time.js +1 -0
- package/dist/components/utility/counter/counter.class.d.ts +67 -0
- package/dist/components/utility/counter/counter.class.js +1 -0
- package/dist/components/utility/counter/counter.styles.js +1 -0
- package/dist/components/utility/divider/divider.class.d.ts +21 -3
- package/dist/components/utility/divider/divider.class.js +5 -1
- package/dist/components/utility/export-button/export-button.class.d.ts +5 -0
- package/dist/components/utility/export-button/export-button.styles.js +1 -1
- package/dist/components/utility/icon/icon-library.d.ts +14 -1
- package/dist/components/utility/icon/icon-library.js +1 -1
- package/dist/components/utility/icon/icon-sprite.js +1 -0
- package/dist/components/utility/icon/icon.class.d.ts +4 -2
- package/dist/components/utility/icon/icon.class.js +2 -2
- package/dist/components/utility/index.d.ts +1 -1
- package/dist/components/utility/index.js +1 -1
- package/dist/components/utility/known-date/known-date.class.d.ts +4 -0
- package/dist/components/utility/number-ticker/number-ticker.class.d.ts +58 -0
- package/dist/components/utility/number-ticker/number-ticker.class.js +1 -0
- package/dist/components/utility/number-ticker/number-ticker.styles.js +1 -0
- package/dist/components/viewers/include/include.class.d.ts +4 -1
- package/dist/components/viewers/include/include.class.js +1 -1
- package/dist/components/viewers/pdf-viewer/pdf-viewer.class.d.ts +10 -1
- package/dist/components/viewers/pdf-viewer/pdf-viewer.class.js +2 -2
- package/dist/components/viewers/pdf-viewer/pdf-viewer.styles.js +1 -1
- package/dist/custom-elements-jsx.d.ts +1 -1
- package/dist/event-classes.d.ts +2342 -0
- package/dist/event-classes.js +1 -0
- package/dist/events.d.ts +48 -22
- package/dist/framework-types.d.ts +2 -2
- package/dist/internal/all-defined-arguments.d.ts +19 -0
- package/dist/internal/all-defined-arguments.js +1 -0
- package/dist/internal/autoloader-tags.d.ts +1 -1
- package/dist/internal/autoloader-tags.js +1 -1
- package/dist/internal/checked-control-label.js +1 -1
- package/dist/internal/component-loaders.generated.js +1 -1
- package/dist/internal/dedent.js +7 -0
- package/dist/internal/default-strings/forms.generated.js +1 -1
- package/dist/internal/default-strings/layout.generated.js +1 -1
- package/dist/internal/dev-mode-attribute-warning.development.js +1 -1
- package/dist/internal/document-tokens.generated.js +3 -3
- package/dist/internal/form-control/chrome.styles.js +1 -1
- package/dist/internal/form-control.styles.js +1 -1
- package/dist/internal/interactive-control.styles.js +2 -2
- package/dist/internal/labeled-group.js +1 -1
- package/dist/internal/localization-runtime.d.ts +5 -0
- package/dist/internal/localization-runtime.js +1 -1
- package/dist/internal/localization-types.d.ts +1 -1
- package/dist/internal/localization.js +2 -2
- package/dist/internal/lyra-element.js +2 -2
- package/dist/internal/lyra-event.d.ts +22 -0
- package/dist/internal/lyra-event.js +1 -0
- package/dist/internal/overlay-shared.d.ts +5 -2
- package/dist/internal/overlay-shared.js +1 -1
- package/dist/internal/package-metadata.js +1 -1
- package/dist/internal/root-registration-allowlist.js +1 -1
- package/dist/internal/scoped-definitions.generated.js +1 -1
- package/dist/internal/shiki/core.d.ts +4 -1
- package/dist/internal/shiki/tokenize.js +1 -1
- package/dist/internal/srcset.js +1 -0
- package/dist/lyra.d.ts +1 -1
- package/dist/lyra.js +1 -1
- package/dist/ssr/all.d.ts +1 -1
- package/dist/ssr/all.js +1 -1
- package/dist/ssr.d.ts +5 -5
- package/dist/ssr.js +1 -1
- package/dist/styles/native.css +1 -1
- package/dist/styles/palette.css +1 -0
- package/dist/styles/tokens-root.css +1 -1
- package/dist/styles/utilities.css +1 -1
- package/dist/svelte.d.ts +1 -1
- package/dist/testing/happy-dom-shims.d.ts +11 -2
- package/dist/testing/happy-dom-shims.js +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +1 -1
- package/dist/testing/lyra-tag-event-map.d.ts +2 -2
- package/dist/testing/lyra-tag-event-map.js +1 -1
- package/dist/theme-core.css +1 -1
- package/dist/theme.css +1 -1
- package/dist/utilities/defined.d.ts +10 -1
- package/dist/utilities/defined.js +1 -1
- package/dist/utilities/form.d.ts +9 -0
- package/dist/utilities/form.js +1 -0
- package/dist/utilities/index.d.ts +1 -1
- package/dist/utilities/index.js +1 -1
- package/dist/vue.d.ts +1 -1
- package/llms/components/lr-app-rail.md +4 -2
- package/llms/components/lr-badge.md +4 -4
- package/llms/components/lr-bar-chart.md +1 -1
- package/llms/components/lr-box-plot.md +6 -1
- package/llms/components/lr-bubble-chart.md +1 -1
- package/llms/components/lr-budget-meter.md +2 -2
- package/llms/components/lr-button-group.md +7 -3
- package/llms/components/lr-button.md +11 -1
- package/llms/components/lr-card.md +11 -1
- package/llms/components/lr-chart.md +21 -7
- package/llms/components/lr-checkbox-group.md +11 -1
- package/llms/components/lr-chip.md +11 -1
- package/llms/components/lr-code-block-core.md +36 -8
- package/llms/components/lr-code-block.md +45 -6
- package/llms/components/lr-code-editor.md +11 -1
- package/llms/components/lr-color-picker.md +17 -4
- package/llms/components/lr-combobox.md +62 -6
- package/llms/components/lr-context-menu.md +5 -3
- package/llms/components/lr-copy-button.md +2 -1
- package/llms/components/lr-counter.md +60 -0
- package/llms/components/lr-country-picker.md +5 -1
- package/llms/components/lr-currency-picker.md +5 -1
- package/llms/components/lr-date-input.md +1 -1
- package/llms/components/lr-date-picker.md +25 -1
- package/llms/components/lr-details.md +6 -2
- package/llms/components/lr-dialog.md +72 -8
- package/llms/components/lr-divider.md +14 -5
- package/llms/components/lr-doughnut-chart.md +1 -1
- package/llms/components/lr-drawer.md +26 -7
- package/llms/components/lr-dropdown-item.md +1 -1
- package/llms/components/lr-dropdown.md +8 -4
- package/llms/components/lr-emoji-picker.md +10 -1
- package/llms/components/lr-empty.md +3 -2
- package/llms/components/lr-export-button.md +5 -2
- package/llms/components/lr-file-input.md +13 -1
- package/llms/components/lr-filter-bar.md +6 -2
- package/llms/components/lr-graph-query-builder.md +10 -1
- package/llms/components/lr-heatmap.md +20 -3
- package/llms/components/lr-histogram.md +7 -2
- package/llms/components/lr-icon-button.md +3 -1
- package/llms/components/lr-icon.md +8 -0
- package/llms/components/lr-include.md +3 -0
- package/llms/components/lr-input.md +9 -1
- package/llms/components/lr-known-date.md +10 -1
- package/llms/components/lr-lightbox-item.md +14 -0
- package/llms/components/lr-lightbox.md +84 -5
- package/llms/components/lr-line-chart.md +7 -2
- package/llms/components/lr-lite-chart.md +3 -2
- package/llms/components/lr-locale-picker.md +17 -1
- package/llms/components/lr-map.md +122 -11
- package/llms/components/lr-markdown-core.md +15 -4
- package/llms/components/lr-markdown.md +13 -4
- package/llms/components/lr-menu-item.md +1 -1
- package/llms/components/lr-menu-label.md +5 -2
- package/llms/components/lr-menu.md +21 -6
- package/llms/components/lr-model-select.md +11 -1
- package/llms/components/lr-native-time-input.md +11 -1
- package/llms/components/lr-number-input.md +11 -1
- package/llms/components/lr-number-ticker.md +55 -0
- package/llms/components/lr-otp-input.md +11 -1
- package/llms/components/lr-page.md +7 -1
- package/llms/components/lr-pagination.md +18 -0
- package/llms/components/lr-pdf-viewer.md +6 -1
- package/llms/components/lr-phone-input.md +11 -1
- package/llms/components/lr-pie-chart.md +1 -1
- package/llms/components/lr-polar-area-chart.md +1 -1
- package/llms/components/lr-popover.md +25 -5
- package/llms/components/lr-radar-chart.md +1 -1
- package/llms/components/lr-radio-group.md +11 -1
- package/llms/components/lr-rubric-form.md +7 -1
- package/llms/components/lr-scatter-chart.md +1 -1
- package/llms/components/lr-segmented.md +20 -2
- package/llms/components/lr-select.md +10 -2
- package/llms/components/lr-sequence-playback.md +8 -2
- package/llms/components/lr-signature-pad.md +8 -1
- package/llms/components/lr-slider.md +17 -4
- package/llms/components/lr-stat.md +20 -5
- package/llms/components/lr-step.md +61 -0
- package/llms/components/lr-stepper.md +64 -8
- package/llms/components/lr-suggestion-chips.md +3 -2
- package/llms/components/lr-switch.md +4 -3
- package/llms/components/lr-tab-group.md +10 -3
- package/llms/components/lr-tab-panel.md +2 -2
- package/llms/components/lr-table.md +87 -8
- package/llms/components/lr-tag.md +1 -1
- package/llms/components/lr-textarea.md +17 -1
- package/llms/components/lr-thread-list.md +4 -2
- package/llms/components/lr-time-input.md +8 -1
- package/llms/components/lr-time-zone-picker.md +5 -1
- package/llms/components/lr-timeline-item.md +1 -1
- package/llms/components/lr-timeline.md +38 -1
- package/llms/components/lr-toast-item.md +1 -1
- package/llms/components/lr-toast.md +7 -2
- package/llms/components/lr-token-input.md +64 -8
- package/llms/components/lr-tooltip.md +3 -3
- package/llms/components/lr-tree-item.md +1 -1
- package/llms/components/lr-tree.md +2 -1
- package/llms/components/lr-unit-picker.md +5 -1
- package/llms/components/lr-video.md +5 -4
- package/llms/components/lr-voice-picker.md +8 -1
- package/llms/components/lr-widget.md +2 -2
- package/llms/components/lr-zoomable-frame.md +8 -0
- package/llms/index.md +145 -141
- package/llms/migration.md +20 -12
- package/llms/peers.md +2 -2
- package/llms/shared/events-and-types.md +36 -0
- package/llms/shared/imports-and-registration.md +60 -1
- package/llms/shared/native-styles-and-utilities.md +109 -3
- package/llms/shared/styles-and-tokens.md +2 -2
- package/llms/shared/testing-and-utilities.md +21 -0
- package/llms/shared.md +227 -6
- package/llms/tokens.md +6 -1
- package/llms.txt +3 -3
- package/locales.json +1 -1
- package/package.json +38 -9
- package/registrations.json +1 -1
- package/skills/compose-lyra-interfaces/SKILL.md +1 -1
- package/skills/lyra-ui/SKILL.md +1 -1
package/llms/migration.md
CHANGED
|
@@ -1895,11 +1895,11 @@ For `lr-icon`, the retired `auto-width` attribute migrates to `canvas="auto"`. R
|
|
|
1895
1895
|
|
|
1896
1896
|
| Ecosystem | Exact | Rewritten | Warning required | Conceptual only | Unsupported | Automatic | Manual |
|
|
1897
1897
|
|---|---:|---:|---:|---:|---:|---:|---:|
|
|
1898
|
-
| Web Awesome | 30 |
|
|
1898
|
+
| Web Awesome | 30 | 44 | 21 | 0 | 0 | 74 | 21 |
|
|
1899
1899
|
| Shoelace | 18 | 28 | 12 | 0 | 0 | 46 | 12 |
|
|
1900
|
-
| **Total** | **48** | **
|
|
1900
|
+
| **Total** | **48** | **72** | **33** | **0** | **0** | **120** | **33** |
|
|
1901
1901
|
|
|
1902
|
-
## Web Awesome (
|
|
1902
|
+
## Web Awesome (95)
|
|
1903
1903
|
|
|
1904
1904
|
The pinned Web Awesome manifest is authoritative for this inventory; only rows marked automatic are codemod inputs.
|
|
1905
1905
|
|
|
@@ -1916,7 +1916,7 @@ The pinned Web Awesome manifest is authoritative for this inventory; only rows m
|
|
|
1916
1916
|
| `<wa-breadcrumb-item>` | `<lr-breadcrumb-item>` | `exact` | Automatic: tag and supported side-effect registration import. Responsive navigation trail. |
|
|
1917
1917
|
| `<wa-bubble-chart>` | `<lr-bubble-chart>` | `exact` | Automatic: tag and supported side-effect registration import. Typed `<lr-chart>` subclasses with tag-specific defaults and the full writable `LyraChartType` vocabulary — same optional peer deps as `<lr-chart>`. |
|
|
1918
1918
|
| `<wa-button>` | `<lr-button>` | `rewritten` | Automatic: tag/import plus events: wa-invalid → lr-invalid. Equivalent surface representation: name defaults null ≡ ; no source rewrite. |
|
|
1919
|
-
| `<wa-button-group>` | `<lr-button-group>` | `
|
|
1919
|
+
| `<wa-button-group>` | `<lr-button-group>` | `rewritten` | Automatic: tag/import plus parts: base → button-group. |
|
|
1920
1920
|
| `<wa-callout>` | `<lr-callout>` | `exact` | Automatic: tag and supported side-effect registration import. Dismissible inline status, warning, and error message surface. |
|
|
1921
1921
|
| `<wa-card>` | `<lr-card>` | `exact` | Automatic: tag and supported side-effect registration import. Generic bordered content container (`header`/`media`/`footer`/`actions` slots) — a direct `<lr-*>` counterpart to `wa-card`. |
|
|
1922
1922
|
| `<wa-carousel>` | `<lr-carousel>` | `warning-required` | Manual: Lyra accepts arbitrary HTMLElement slides, so its slide-change detail is wider than the upstream carousel-item class; in v9 the slides member is a read-only live composition count rather than a writable reflected attribute. Migrated handlers that rely on item-specific members or write slides require review. |
|
|
@@ -1924,18 +1924,20 @@ The pinned Web Awesome manifest is authoritative for this inventory; only rows m
|
|
|
1924
1924
|
| `<wa-chart>` | `<lr-chart>` | `exact` | Automatic: tag and supported side-effect registration import. Core Chart.js wrapper (`LyraChartSeries`-based, plus raw `config` passthrough) with bounded `appendData()` streaming and `exportData('csv'. |
|
|
1925
1925
|
| `<wa-checkbox>` | `<lr-checkbox>` | `rewritten` | Automatic: tag/import plus events: wa-invalid → lr-invalid. Equivalent surface representation: name defaults null ≡ ; no source rewrite. |
|
|
1926
1926
|
| `<wa-checkbox-group>` | `<lr-checkbox-group>` | `exact` | Automatic: tag and supported side-effect registration import. Form-associated group of checkboxes with array values and group validation. |
|
|
1927
|
-
| `<wa-
|
|
1927
|
+
| `<wa-code-highlighter>` | `<lr-code-block>` | `warning-required` | Manual: lr-code-block exposes its code as a named, focusable role="group" surface where wa-code-highlighter exposes a region landmark, so assistive-technology navigation that relies on the region landmark needs review. Highlighting also needs the optional shiki peer. |
|
|
1928
|
+
| `<wa-color-picker>` | `<lr-color-picker>` | `rewritten` | Automatic: tag/import plus events: wa-after-hide → lr-after-hide; events: wa-after-show → lr-after-show; events: wa-hide → lr-hide; events: wa-invalid → lr-invalid; events: wa-show → lr-show; parts: base → color-picker; parts: eyedropper-button__base → eyedropper-button__button; parts: format-button__base → format-button__button. Equivalent surface representation: name defaults null ≡ ; no source rewrite. |
|
|
1928
1929
|
| `<wa-combobox>` | `<lr-combobox>` | `warning-required` | Manual: Native input/change notifications on lr-combobox are bubbling, composed Event instances without a detail payload. Its lr-input/lr-change aliases carry the frozen readonly value, previousValue and row data, narrowed by the picker value generic; migrated handlers reading or mutating upstream CustomEvent detail must use the prefixed aliases and review the narrower single-select type. Its appearance also accepts the full shared LyraAppearance vocabulary (accent and plain in addition to the three upstream values) since 20.0.0; every upstream value keeps its meaning, so only exhaustive TypeScript switches over the narrower upstream union need review. |
|
|
1929
1930
|
| `<wa-comparison>` | `<lr-image-comparer>` | `exact` | Automatic: tag and supported side-effect registration import. Before/after slotted surfaces with a keyboard-accessible range divider. |
|
|
1930
1931
|
| `<wa-copy-button>` | `<lr-copy-button>` | `rewritten` | Automatic: tag/import plus events: wa-copy → lr-copy; events: wa-error → lr-error; insert feedback-duration=1000. Equivalent surface representation: feedbackDuration defaults 1000 ≡ 1500; no source rewrite. |
|
|
1932
|
+
| `<wa-counter>` | `<lr-counter>` | `rewritten` | Automatic: tag/import plus events: wa-finish → lr-finish. |
|
|
1931
1933
|
| `<wa-data-grid>` | `<lr-data-grid>` | `warning-required` | Manual: Lyra snapshots collection inputs and event details synchronously into frozen readonly values, removes the redundant wa-data-request alias, and deprecates the unprefixed request event in favor of lr-request. Migrated code that mutates arrays or event details in place, assigns derived collections, listens for the removed alias, or relies on the unprefixed request event must be reviewed. |
|
|
1932
1934
|
| `<wa-date-input>` | `<lr-date-input>` | `warning-required` | Manual: Since 20.0.0 lr-date-input accepts the full shared LyraAppearance vocabulary (accent and plain in addition to the three upstream values). Every upstream value keeps its meaning, so migrated markup is unaffected; only exhaustive TypeScript switches over the narrower upstream union need review. Its lr-hide is cancelable except when disabling the field or making it readonly closes an open popup, which a listener cannot veto; handlers that rely on vetoing every hide need review. |
|
|
1933
1935
|
| `<wa-date-picker>` | `<lr-date-picker>` | `rewritten` | Automatic: tag/import plus events: wa-focus-day → lr-focus-day; events: wa-view-change → lr-view-change. |
|
|
1934
1936
|
| `<wa-details>` | `<lr-details>` | `rewritten` | Automatic: tag/import plus events: wa-after-hide → lr-after-hide; events: wa-after-show → lr-after-show; events: wa-hide → lr-hide; events: wa-show → lr-show. |
|
|
1935
|
-
| `<wa-dialog>` | `<lr-dialog>` | `rewritten` | Automatic: tag/import plus events: wa-after-hide → lr-after-hide; events: wa-after-show → lr-after-show; events: wa-hide → lr-hide; events: wa-show → lr-show. |
|
|
1937
|
+
| `<wa-dialog>` | `<lr-dialog>` | `rewritten` | Automatic: tag/import plus events: wa-after-hide → lr-after-hide; events: wa-after-show → lr-after-show; events: wa-hide → lr-hide; events: wa-show → lr-show; parts: close-button__base → close-button__button. |
|
|
1936
1938
|
| `<wa-divider>` | `<lr-divider>` | `exact` | Automatic: tag and supported side-effect registration import. Horizontal or vertical semantic separator. |
|
|
1937
1939
|
| `<wa-doughnut-chart>` | `<lr-doughnut-chart>` | `exact` | Automatic: tag and supported side-effect registration import. Typed `<lr-chart>` subclasses with tag-specific defaults and the full writable `LyraChartType` vocabulary — same optional peer deps as `<lr-chart>`. |
|
|
1938
|
-
| `<wa-drawer>` | `<lr-drawer>` | `rewritten` | Automatic: tag/import plus events: wa-after-hide → lr-after-hide; events: wa-after-show → lr-after-show; events: wa-hide → lr-hide; events: wa-show → lr-show. |
|
|
1940
|
+
| `<wa-drawer>` | `<lr-drawer>` | `rewritten` | Automatic: tag/import plus events: wa-after-hide → lr-after-hide; events: wa-after-show → lr-after-show; events: wa-hide → lr-hide; events: wa-show → lr-show; parts: close-button__base → close-button__button. |
|
|
1939
1941
|
| `<wa-dropdown>` | `<lr-dropdown>` | `rewritten` | Automatic: tag/import plus events: wa-after-hide → lr-after-hide; events: wa-after-show → lr-after-show; events: wa-hide → lr-hide; events: wa-select → lr-select; events: wa-show → lr-show. |
|
|
1940
1942
|
| `<wa-dropdown-item>` | `<lr-dropdown-item>` | `rewritten` | Automatic: tag/import plus attributes: submenuOpen → submenu-open. |
|
|
1941
1943
|
| `<wa-file-input>` | `<lr-file-input>` | `warning-required` | Manual: Lyra exposes dragging and fileCount as getter-only derived state. Migrated code that assigned either upstream field must instead drive them through drag interaction or the selected-files input contract. |
|
|
@@ -1947,13 +1949,16 @@ The pinned Web Awesome manifest is authoritative for this inventory; only rows m
|
|
|
1947
1949
|
| `<wa-input>` | `<lr-input>` | `rewritten` | Automatic: tag/import plus events: wa-clear → lr-clear; events: wa-invalid → lr-invalid. Equivalent surface representation: name defaults null ≡ ; no source rewrite. |
|
|
1948
1950
|
| `<wa-intersection-observer>` | `<lr-intersection-observer>` | `rewritten` | Automatic: tag/import plus events: wa-intersect → lr-intersect. |
|
|
1949
1951
|
| `<wa-known-date>` | `<lr-known-date>` | `rewritten` | Automatic: tag/import plus events: wa-invalid → lr-invalid; parts: label → form-control-label. |
|
|
1952
|
+
| `<wa-lightbox>` | `<lr-lightbox>` | `rewritten` | Automatic: tag/import plus events: wa-after-hide → lr-after-hide; events: wa-after-show → lr-after-show; events: wa-hide → lr-hide; events: wa-item-change → lr-item-change; events: wa-show → lr-show. |
|
|
1953
|
+
| `<wa-lightbox-item>` | `<lr-lightbox-item>` | `exact` | Automatic: tag and supported side-effect registration import. Full-screen image and video viewer: slot `<lr-lightbox-item>` links (work without JavaScript) or drive it with `images`/`imageSource`; thumbnails, swipe, zoom, `lr-item-change`. |
|
|
1950
1954
|
| `<wa-line-chart>` | `<lr-line-chart>` | `exact` | Automatic: tag and supported side-effect registration import. Typed `<lr-chart>` subclasses with tag-specific defaults and the full writable `LyraChartType` vocabulary — same optional peer deps as `<lr-chart>`. |
|
|
1951
1955
|
| `<wa-markdown>` | `<lr-markdown>` | `warning-required` | Manual: The source and target light-DOM Markdown content models and optional-peer runtime requirements are not mechanically equivalent; migration leaves the use unchanged and reports the required review. |
|
|
1952
1956
|
| `<wa-mutation-observer>` | `<lr-mutation-observer>` | `rewritten` | Automatic: tag/import plus events: wa-mutation → lr-mutation. |
|
|
1953
1957
|
| `<wa-number-input>` | `<lr-number-input>` | `rewritten` | Automatic: tag/import plus events: wa-invalid → lr-invalid. Equivalent surface representation: name defaults null ≡ ; no source rewrite. |
|
|
1958
|
+
| `<wa-number-ticker>` | `<lr-number-ticker>` | `rewritten` | Automatic: tag/import plus events: wa-finish → lr-finish. Equivalent surface representation: easing defaults DEFAULT_EASING ≡ cubic-bezier(0.16, 1, 0.3, 1); no source rewrite. |
|
|
1954
1959
|
| `<wa-option>` | `<lr-option>` | `exact` | Automatic: tag and supported side-effect registration import. Filterable single/multi select, form-associated; options separate live `selected` from attribute-backed/reset `defaultSelected`; `xs`–`xl` sizing; async rich rows and retained selection payloads via `source`/`selectedRows`; virtual scrolling with `max-render`. |
|
|
1955
1960
|
| `<wa-otp-input>` | `<lr-otp-input>` | `rewritten` | Automatic: tag/import plus events: wa-clear → lr-clear; events: wa-complete → lr-complete; events: wa-invalid → lr-invalid. Equivalent surface representation: name defaults null ≡ ; no source rewrite. |
|
|
1956
|
-
| `<wa-page>` | `<lr-page>` | `warning-required` | Manual: Lyra returns a finite 0 for null and for an element in a detached document with no viewport; Web Awesome 3.
|
|
1961
|
+
| `<wa-page>` | `<lr-page>` | `warning-required` | Manual: Lyra returns a finite 0 for null and for an element in a detached document with no viewport; Web Awesome 3.15 returns null for null and measures detached-document geometry against the ambient page viewport. |
|
|
1957
1962
|
| `<wa-pagination>` | `<lr-pagination>` | `warning-required` | Manual: The page-change events are covered by deterministic member rewrites. `label` is now optional with no declared default (was `string = ''`) so an explicit empty string can suppress the localized fallback without a never-set value doing the same -- a default-value divergence with no rewrite rule to express it, so migrating consumers get a warning instead of a silent rename. |
|
|
1958
1963
|
| `<wa-pie-chart>` | `<lr-pie-chart>` | `exact` | Automatic: tag and supported side-effect registration import. Typed `<lr-chart>` subclasses with tag-specific defaults and the full writable `LyraChartType` vocabulary — same optional peer deps as `<lr-chart>`. |
|
|
1959
1964
|
| `<wa-polar-area-chart>` | `<lr-polar-area-chart>` | `exact` | Automatic: tag and supported side-effect registration import. Typed `<lr-chart>` subclasses with tag-specific defaults and the full writable `LyraChartType` vocabulary — same optional peer deps as `<lr-chart>`. |
|
|
@@ -1971,22 +1976,25 @@ The pinned Web Awesome manifest is authoritative for this inventory; only rows m
|
|
|
1971
1976
|
| `<wa-resize-observer>` | `<lr-resize-observer>` | `warning-required` | Manual: Lyra freezes the entries array into an immutable snapshot at dispatch time; migrated code that mutates the array in place must create its own copy. |
|
|
1972
1977
|
| `<wa-scatter-chart>` | `<lr-scatter-chart>` | `exact` | Automatic: tag and supported side-effect registration import. Typed `<lr-chart>` subclasses with tag-specific defaults and the full writable `LyraChartType` vocabulary — same optional peer deps as `<lr-chart>`. |
|
|
1973
1978
|
| `<wa-scroller>` | `<lr-scroller>` | `exact` | Automatic: tag and supported side-effect registration import. Responsive overflow surface with optional navigation controls. |
|
|
1974
|
-
| `<wa-select>` | `<lr-select>` | `rewritten` | Automatic: tag/import plus events: wa-after-hide → lr-after-hide; events: wa-after-show → lr-after-show; events: wa-clear → lr-clear; events: wa-hide → lr-hide; events: wa-invalid → lr-invalid; events: wa-show → lr-show. |
|
|
1979
|
+
| `<wa-select>` | `<lr-select>` | `rewritten` | Automatic: tag/import plus events: wa-after-hide → lr-after-hide; events: wa-after-show → lr-after-show; events: wa-clear → lr-clear; events: wa-hide → lr-hide; events: wa-invalid → lr-invalid; events: wa-show → lr-show; parts: label → form-control-label; parts: tag__remove-button__base → tag__remove-button__button. |
|
|
1975
1980
|
| `<wa-skeleton>` | `<lr-skeleton>` | `exact` | Automatic: tag and supported side-effect registration import. Loading placeholder (pulse/sheen). |
|
|
1976
|
-
| `<wa-slider>` | `<lr-slider>` | `rewritten` | Automatic: tag/import plus events: wa-invalid → lr-invalid. |
|
|
1981
|
+
| `<wa-slider>` | `<lr-slider>` | `rewritten` | Automatic: tag/import plus events: wa-invalid → lr-invalid; parts: tooltip__base → tooltip__tooltip. |
|
|
1977
1982
|
| `<wa-sparkline>` | `<lr-sparkline>` | `rewritten` | Automatic: tag/import plus parts: base → sparkline. |
|
|
1978
1983
|
| `<wa-spinner>` | `<lr-spinner>` | `exact` | Automatic: tag and supported side-effect registration import. Localized indeterminate busy indicator with reduced-motion support. |
|
|
1979
1984
|
| `<wa-split-panel>` | `<lr-split-panel>` | `rewritten` | Automatic: tag/import plus events: wa-reposition → lr-reposition. |
|
|
1985
|
+
| `<wa-step>` | `<lr-step>` | `exact` | Automatic: tag and supported side-effect registration import. Linear or free step navigation with per-step completed, loading, disabled and attention states; drive it with `<lr-step>` children or a `steps` array. |
|
|
1986
|
+
| `<wa-stepper>` | `<lr-stepper>` | `warning-required` | Manual: The pinned Web Awesome manifest lists an event named `detail` typed WaStepChangeEvent beside wa-before-step-change and wa-step-change. No documented API dispatches an event of that name: it is the step-change event class recorded a second time, so Lyra maps the two documented events and a listener for `detail` requires review. |
|
|
1980
1987
|
| `<wa-switch>` | `<lr-switch>` | `warning-required` | Manual: Native input notifications are Event instances. Migrated handlers must not require InputEvent-specific fields. |
|
|
1981
1988
|
| `<wa-tab>` | `<lr-tab>` | `exact` | Automatic: tag and supported side-effect registration import. Tab strip with `placement` (logical `start`/`end` turn it vertical) and `activation="auto"`/`"manual"`; composed from the upstream `<lr-tab>`/`<lr-tab-panel>` child pairs. |
|
|
1982
1989
|
| `<wa-tab-group>` | `<lr-tab-group>` | `rewritten` | Automatic: tag/import plus events: wa-tab-hide → lr-tab-hide; events: wa-tab-show → lr-tab-show. |
|
|
1983
|
-
| `<wa-tab-panel>` | `<lr-tab-panel>` | `
|
|
1990
|
+
| `<wa-tab-panel>` | `<lr-tab-panel>` | `rewritten` | Automatic: tag/import plus parts: base → tab-panel. |
|
|
1984
1991
|
| `<wa-tag>` | `<lr-tag>` | `rewritten` | Automatic: tag/import plus events: wa-remove → lr-remove. |
|
|
1992
|
+
| `<wa-tag-input>` | `<lr-token-input>` | `rewritten` | Automatic: tag/import plus events: wa-clear → lr-clear; events: wa-create → lr-create; events: wa-invalid → lr-invalid; parts: tag__remove-button__base → tag__remove-button__button. |
|
|
1985
1993
|
| `<wa-textarea>` | `<lr-textarea>` | `rewritten` | Automatic: tag/import plus events: wa-invalid → lr-invalid. Equivalent surface representation: name defaults null ≡ ; no source rewrite. |
|
|
1986
1994
|
| `<wa-time-input>` | `<lr-time-input>` | `rewritten` | Automatic: tag/import plus events: wa-after-hide → lr-after-hide; events: wa-after-show → lr-after-show; events: wa-clear → lr-clear; events: wa-hide → lr-hide; events: wa-invalid → lr-invalid; events: wa-show → lr-show. |
|
|
1987
1995
|
| `<wa-toast>` | `<lr-toast>` | `warning-required` | Manual: Lyra's create() overloads reference the Lyra*-prefixed LyraToastOptions/LyraToastCreateOptions type names (renamed from the unprefixed spellings in 9.0.0) instead of the upstream's own ToastCreateOptions text; the method's actual parameter count, order, and runtime shape are unchanged, only the printed TypeScript type names differ. |
|
|
1988
1996
|
| `<wa-toast-item>` | `<lr-toast-item>` | `rewritten` | Automatic: tag/import plus events: wa-after-hide → lr-after-hide; events: wa-after-show → lr-after-show; events: wa-hide → lr-hide; events: wa-show → lr-show. |
|
|
1989
|
-
| `<wa-tooltip>` | `<lr-tooltip>` | `rewritten` | Automatic: tag/import plus events: wa-after-hide → lr-after-hide; events: wa-after-show → lr-after-show; events: wa-hide → lr-hide; events: wa-show → lr-show. Equivalent surface representation: for defaults null ≡ ; no source rewrite. |
|
|
1997
|
+
| `<wa-tooltip>` | `<lr-tooltip>` | `rewritten` | Automatic: tag/import plus events: wa-after-hide → lr-after-hide; events: wa-after-show → lr-after-show; events: wa-hide → lr-hide; events: wa-show → lr-show; parts: base → tooltip; parts: base__popup → tooltip__popup; parts: base__arrow → tooltip__arrow. Equivalent surface representation: for defaults null ≡ ; no source rewrite. |
|
|
1990
1998
|
| `<wa-tree>` | `<lr-tree>` | `warning-required` | Manual: Lyra freezes each selection snapshot and exposes it as readonly so listeners cannot mutate component-owned selection state. Migrated handlers that modify the event array in place must create their own copy. |
|
|
1991
1999
|
| `<wa-tree-item>` | `<lr-tree-item>` | `rewritten` | Automatic: tag/import plus events: wa-after-collapse → lr-after-collapse; events: wa-after-expand → lr-after-expand; events: wa-collapse → lr-collapse; events: wa-expand → lr-expand; events: wa-lazy-change → lr-lazy-change; events: wa-lazy-load → lr-lazy-load. |
|
|
1992
2000
|
| `<wa-video>` | `<lr-video>` | `warning-required` | Manual: Lyra exposes playing as read-only live state that is reflected but not observed as an attribute; migrated code that assigned playing or authored the playing attribute must call play() or pause() instead. |
|
package/llms/peers.md
CHANGED
|
@@ -40,13 +40,13 @@ for the page.
|
|
|
40
40
|
| `@aceshooting/lyra-3d` | `^1.2.0` | `lr-chart-3d`, `lr-embedding-explorer`, `lr-graph`, `lr-image-viewer`, `lr-knowledge-graph-explorer`, `lr-model-viewer`, `lr-video` |
|
|
41
41
|
| `@aceshooting/lyra-flags` | `^2.3.1` | opt-in `lr-flag` entries `./components/media/flag/flag-peer-bulk-standard.js`, `./components/media/flag/flag-peer-bulk.js`, `./components/media/flag/flag-peer.js` |
|
|
42
42
|
| `@aceshooting/lyra-map` | `^1.5.2 \|\| ^2.0.0` | `lr-geojson-viewer`, `lr-map` |
|
|
43
|
-
| `@aceshooting/lyra-translations` | `^32.
|
|
43
|
+
| `@aceshooting/lyra-translations` | `^32.1.0` | _(not referenced by any component)_ |
|
|
44
44
|
| `@aiden0z/pptx-renderer` | `^1.4.0` | `lr-pptx-viewer` |
|
|
45
45
|
| `@sgratzl/chartjs-chart-boxplot` | `^4.0.0` | `lr-box-plot` |
|
|
46
46
|
| `chart.js` | `^4.0.1` | `lr-bar-chart`, `lr-box-plot`, `lr-bubble-chart`, `lr-chart`, `lr-doughnut-chart`, `lr-histogram`, `lr-line-chart`, `lr-pie-chart`, `lr-polar-area-chart`, `lr-radar-chart`, `lr-scatter-chart` |
|
|
47
47
|
| `chartjs-plugin-annotation` | `^3.0.0` | `lr-bar-chart`, `lr-bubble-chart`, `lr-chart`, `lr-doughnut-chart`, `lr-histogram`, `lr-line-chart`, `lr-pie-chart`, `lr-polar-area-chart`, `lr-radar-chart`, `lr-scatter-chart` |
|
|
48
48
|
| `chartjs-plugin-datalabels` | `^2.2.0` | `lr-bar-chart`, `lr-bubble-chart`, `lr-chart`, `lr-doughnut-chart`, `lr-histogram`, `lr-line-chart`, `lr-pie-chart`, `lr-polar-area-chart`, `lr-radar-chart`, `lr-scatter-chart` |
|
|
49
|
-
| `chartjs-plugin-zoom` | `^2.0.0` | `lr-bar-chart`, `lr-bubble-chart`, `lr-chart`, `lr-doughnut-chart`, `lr-histogram`, `lr-line-chart`, `lr-pie-chart`, `lr-polar-area-chart`, `lr-radar-chart`, `lr-scatter-chart` |
|
|
49
|
+
| `chartjs-plugin-zoom` | `^2.0.0 \|\| ^3.0.0` | `lr-bar-chart`, `lr-bubble-chart`, `lr-chart`, `lr-doughnut-chart`, `lr-histogram`, `lr-line-chart`, `lr-pie-chart`, `lr-polar-area-chart`, `lr-radar-chart`, `lr-scatter-chart` |
|
|
50
50
|
| `d3-drag` | `^3.0.1` | `lr-graph`, `lr-knowledge-graph-explorer` |
|
|
51
51
|
| `d3-force` | `^3.0.1` | `lr-graph`, `lr-knowledge-graph-explorer` |
|
|
52
52
|
| `d3-selection` | `^3.0.1` | `lr-graph`, `lr-knowledge-graph-explorer` |
|
|
@@ -78,6 +78,25 @@ Those nested detail fields are separate from deprecated event names and are not
|
|
|
78
78
|
type graph, so add it once (a root `main.ts`, or a `.d.ts` in the project's `include`). A direct
|
|
79
79
|
element reference never needs it — `LyraElement` overrides `addEventListener`, so
|
|
80
80
|
`table.addEventListener('lr-sort', …)` resolves through `LyraTableEventMap` first either way.
|
|
81
|
+
- **`instanceof` narrowing: `@aceshooting/lyra-ui/event-classes`.** Every event a component dispatches
|
|
82
|
+
is a `LyraEvent` (a bubbling, composed `CustomEvent`), and this subpath exports one class per event
|
|
83
|
+
name — `lr-step-change` → `LyraStepChangeEvent` — whose `instanceof` is true for exactly those events
|
|
84
|
+
and narrows `detail`. Each constructor takes `(detail, options?)`, where the options record is
|
|
85
|
+
`LyraEventOptions { cancelable?: boolean }`:
|
|
86
|
+
|
|
87
|
+
```ts
|
|
88
|
+
import { LyraChangeEvent } from "@aceshooting/lyra-ui/event-classes";
|
|
89
|
+
|
|
90
|
+
document.addEventListener("lr-change", (event) => {
|
|
91
|
+
if (event instanceof LyraChangeEvent) event.detail; // typed
|
|
92
|
+
});
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
A class is also constructible (`new LyraChangeEvent(detail, { cancelable })`) for tests or for
|
|
96
|
+
re-dispatching. The classes are side-effect free and tree-shakable, components never import them, and
|
|
97
|
+
the names match the type aliases in `@aceshooting/lyra-ui/events` (import from one subpath per
|
|
98
|
+
file). Events created for an element adopted into another window keep that window's `CustomEvent`
|
|
99
|
+
constructor but still match.
|
|
81
100
|
`LyraGlobalEventMap` is exported as well, for writing your own typed helper over it.
|
|
82
101
|
|
|
83
102
|
- **The surface is per-event type aliases, not runtime event classes.** `LyraSortEvent` and its
|
|
@@ -1140,6 +1159,7 @@ These named interfaces and helper signatures are available to typed integrations
|
|
|
1140
1159
|
'lr-control-group': LyraControlGroupReactProps;
|
|
1141
1160
|
'lr-conversation-item': LyraConversationItemReactProps;
|
|
1142
1161
|
'lr-copy-button': LyraCopyButtonReactProps;
|
|
1162
|
+
'lr-counter': LyraCounterReactProps;
|
|
1143
1163
|
'lr-country-picker': LyraCountryPickerReactProps;
|
|
1144
1164
|
'lr-csv-viewer': LyraCsvViewerReactProps;
|
|
1145
1165
|
'lr-currency-picker': LyraCurrencyPickerReactProps;
|
|
@@ -1220,6 +1240,7 @@ These named interfaces and helper signatures are available to typed integrations
|
|
|
1220
1240
|
'lr-knowledge-graph-explorer': LyraKnowledgeGraphExplorerReactProps;
|
|
1221
1241
|
'lr-known-date': LyraKnownDateReactProps;
|
|
1222
1242
|
'lr-lightbox': LyraLightboxReactProps;
|
|
1243
|
+
'lr-lightbox-item': LyraLightboxItemReactProps;
|
|
1223
1244
|
'lr-line-chart': LyraLineChartReactProps;
|
|
1224
1245
|
'lr-lite-chart': LyraLiteChartReactProps;
|
|
1225
1246
|
'lr-live-region': LyraLiveRegionReactProps;
|
|
@@ -1253,6 +1274,7 @@ These named interfaces and helper signatures are available to typed integrations
|
|
|
1253
1274
|
'lr-node-palette': LyraNodePaletteReactProps;
|
|
1254
1275
|
'lr-notebook-viewer': LyraNotebookViewerReactProps;
|
|
1255
1276
|
'lr-number-input': LyraNumberInputReactProps;
|
|
1277
|
+
'lr-number-ticker': LyraNumberTickerReactProps;
|
|
1256
1278
|
'lr-option': LyraOptionReactProps;
|
|
1257
1279
|
'lr-otp-input': LyraOtpInputReactProps;
|
|
1258
1280
|
'lr-page': LyraPageReactProps;
|
|
@@ -1322,6 +1344,7 @@ These named interfaces and helper signatures are available to typed integrations
|
|
|
1322
1344
|
'lr-spreadsheet-viewer': LyraSpreadsheetViewerReactProps;
|
|
1323
1345
|
'lr-stack-trace': LyraStackTraceReactProps;
|
|
1324
1346
|
'lr-stat': LyraStatReactProps;
|
|
1347
|
+
'lr-step': LyraStepReactProps;
|
|
1325
1348
|
'lr-stepper': LyraStepperReactProps;
|
|
1326
1349
|
'lr-stream-status': LyraStreamStatusReactProps;
|
|
1327
1350
|
'lr-streaming-text': LyraStreamingTextReactProps;
|
|
@@ -1588,6 +1611,7 @@ These named interfaces and helper signatures are available to typed integrations
|
|
|
1588
1611
|
'lr-control-group': LyraComponentTypeMap['lr-control-group']['element'];
|
|
1589
1612
|
'lr-conversation-item': LyraComponentTypeMap['lr-conversation-item']['element'];
|
|
1590
1613
|
'lr-copy-button': LyraComponentTypeMap['lr-copy-button']['element'];
|
|
1614
|
+
'lr-counter': LyraComponentTypeMap['lr-counter']['element'];
|
|
1591
1615
|
'lr-country-picker': LyraComponentTypeMap['lr-country-picker']['element'];
|
|
1592
1616
|
'lr-csv-viewer': LyraComponentTypeMap['lr-csv-viewer']['element'];
|
|
1593
1617
|
'lr-currency-picker': LyraComponentTypeMap['lr-currency-picker']['element'];
|
|
@@ -1668,6 +1692,7 @@ These named interfaces and helper signatures are available to typed integrations
|
|
|
1668
1692
|
'lr-knowledge-graph-explorer': LyraComponentTypeMap['lr-knowledge-graph-explorer']['element'];
|
|
1669
1693
|
'lr-known-date': LyraComponentTypeMap['lr-known-date']['element'];
|
|
1670
1694
|
'lr-lightbox': LyraComponentTypeMap['lr-lightbox']['element'];
|
|
1695
|
+
'lr-lightbox-item': LyraComponentTypeMap['lr-lightbox-item']['element'];
|
|
1671
1696
|
'lr-line-chart': LyraComponentTypeMap['lr-line-chart']['element'];
|
|
1672
1697
|
'lr-lite-chart': LyraComponentTypeMap['lr-lite-chart']['element'];
|
|
1673
1698
|
'lr-live-region': LyraComponentTypeMap['lr-live-region']['element'];
|
|
@@ -1701,6 +1726,7 @@ These named interfaces and helper signatures are available to typed integrations
|
|
|
1701
1726
|
'lr-node-palette': LyraComponentTypeMap['lr-node-palette']['element'];
|
|
1702
1727
|
'lr-notebook-viewer': LyraComponentTypeMap['lr-notebook-viewer']['element'];
|
|
1703
1728
|
'lr-number-input': LyraComponentTypeMap['lr-number-input']['element'];
|
|
1729
|
+
'lr-number-ticker': LyraComponentTypeMap['lr-number-ticker']['element'];
|
|
1704
1730
|
'lr-option': LyraComponentTypeMap['lr-option']['element'];
|
|
1705
1731
|
'lr-otp-input': LyraComponentTypeMap['lr-otp-input']['element'];
|
|
1706
1732
|
'lr-page': LyraComponentTypeMap['lr-page']['element'];
|
|
@@ -1770,6 +1796,7 @@ These named interfaces and helper signatures are available to typed integrations
|
|
|
1770
1796
|
'lr-spreadsheet-viewer': LyraComponentTypeMap['lr-spreadsheet-viewer']['element'];
|
|
1771
1797
|
'lr-stack-trace': LyraComponentTypeMap['lr-stack-trace']['element'];
|
|
1772
1798
|
'lr-stat': LyraComponentTypeMap['lr-stat']['element'];
|
|
1799
|
+
'lr-step': LyraComponentTypeMap['lr-step']['element'];
|
|
1773
1800
|
'lr-stepper': LyraComponentTypeMap['lr-stepper']['element'];
|
|
1774
1801
|
'lr-stream-status': LyraComponentTypeMap['lr-stream-status']['element'];
|
|
1775
1802
|
'lr-streaming-text': LyraComponentTypeMap['lr-streaming-text']['element'];
|
|
@@ -1907,6 +1934,7 @@ These named interfaces and helper signatures are available to typed integrations
|
|
|
1907
1934
|
'lr-control-group': LyraControlGroupSvelteProps;
|
|
1908
1935
|
'lr-conversation-item': LyraConversationItemSvelteProps;
|
|
1909
1936
|
'lr-copy-button': LyraCopyButtonSvelteProps;
|
|
1937
|
+
'lr-counter': LyraCounterSvelteProps;
|
|
1910
1938
|
'lr-country-picker': LyraCountryPickerSvelteProps;
|
|
1911
1939
|
'lr-csv-viewer': LyraCsvViewerSvelteProps;
|
|
1912
1940
|
'lr-currency-picker': LyraCurrencyPickerSvelteProps;
|
|
@@ -1987,6 +2015,7 @@ These named interfaces and helper signatures are available to typed integrations
|
|
|
1987
2015
|
'lr-knowledge-graph-explorer': LyraKnowledgeGraphExplorerSvelteProps;
|
|
1988
2016
|
'lr-known-date': LyraKnownDateSvelteProps;
|
|
1989
2017
|
'lr-lightbox': LyraLightboxSvelteProps;
|
|
2018
|
+
'lr-lightbox-item': LyraLightboxItemSvelteProps;
|
|
1990
2019
|
'lr-line-chart': LyraLineChartSvelteProps;
|
|
1991
2020
|
'lr-lite-chart': LyraLiteChartSvelteProps;
|
|
1992
2021
|
'lr-live-region': LyraLiveRegionSvelteProps;
|
|
@@ -2020,6 +2049,7 @@ These named interfaces and helper signatures are available to typed integrations
|
|
|
2020
2049
|
'lr-node-palette': LyraNodePaletteSvelteProps;
|
|
2021
2050
|
'lr-notebook-viewer': LyraNotebookViewerSvelteProps;
|
|
2022
2051
|
'lr-number-input': LyraNumberInputSvelteProps;
|
|
2052
|
+
'lr-number-ticker': LyraNumberTickerSvelteProps;
|
|
2023
2053
|
'lr-option': LyraOptionSvelteProps;
|
|
2024
2054
|
'lr-otp-input': LyraOtpInputSvelteProps;
|
|
2025
2055
|
'lr-page': LyraPageSvelteProps;
|
|
@@ -2089,6 +2119,7 @@ These named interfaces and helper signatures are available to typed integrations
|
|
|
2089
2119
|
'lr-spreadsheet-viewer': LyraSpreadsheetViewerSvelteProps;
|
|
2090
2120
|
'lr-stack-trace': LyraStackTraceSvelteProps;
|
|
2091
2121
|
'lr-stat': LyraStatSvelteProps;
|
|
2122
|
+
'lr-step': LyraStepSvelteProps;
|
|
2092
2123
|
'lr-stepper': LyraStepperSvelteProps;
|
|
2093
2124
|
'lr-stream-status': LyraStreamStatusSvelteProps;
|
|
2094
2125
|
'lr-streaming-text': LyraStreamingTextSvelteProps;
|
|
@@ -2160,6 +2191,7 @@ These named interfaces and helper signatures are available to typed integrations
|
|
|
2160
2191
|
`flattenCascadeLayers(css: string): string`
|
|
2161
2192
|
`installHappyDomAriaControlsShim(proto: object | undefined = globalThis.Element?.prototype): void`
|
|
2162
2193
|
`installHappyDomCascadeLayerShim(proto: SheetTextMethods | undefined = globalThis.CSSStyleSheet?.prototype, misbehaves: () => boolean = cascadeLayerRulesDropped): () => void`
|
|
2194
|
+
`installHappyDomResponseBytesShim(proto: BytesBody | undefined = globalThis.Response?.prototype as BytesBody | undefined): () => void`
|
|
2163
2195
|
`installHappyDomShims(): void`
|
|
2164
2196
|
`installStubInternalsForTest(host: Element): StubElementInternals`
|
|
2165
2197
|
|
|
@@ -2384,6 +2416,7 @@ These named interfaces and helper signatures are available to typed integrations
|
|
|
2384
2416
|
'lr-control-group': LyraControlGroupVueProps;
|
|
2385
2417
|
'lr-conversation-item': LyraConversationItemVueProps;
|
|
2386
2418
|
'lr-copy-button': LyraCopyButtonVueProps;
|
|
2419
|
+
'lr-counter': LyraCounterVueProps;
|
|
2387
2420
|
'lr-country-picker': LyraCountryPickerVueProps;
|
|
2388
2421
|
'lr-csv-viewer': LyraCsvViewerVueProps;
|
|
2389
2422
|
'lr-currency-picker': LyraCurrencyPickerVueProps;
|
|
@@ -2464,6 +2497,7 @@ These named interfaces and helper signatures are available to typed integrations
|
|
|
2464
2497
|
'lr-knowledge-graph-explorer': LyraKnowledgeGraphExplorerVueProps;
|
|
2465
2498
|
'lr-known-date': LyraKnownDateVueProps;
|
|
2466
2499
|
'lr-lightbox': LyraLightboxVueProps;
|
|
2500
|
+
'lr-lightbox-item': LyraLightboxItemVueProps;
|
|
2467
2501
|
'lr-line-chart': LyraLineChartVueProps;
|
|
2468
2502
|
'lr-lite-chart': LyraLiteChartVueProps;
|
|
2469
2503
|
'lr-live-region': LyraLiveRegionVueProps;
|
|
@@ -2497,6 +2531,7 @@ These named interfaces and helper signatures are available to typed integrations
|
|
|
2497
2531
|
'lr-node-palette': LyraNodePaletteVueProps;
|
|
2498
2532
|
'lr-notebook-viewer': LyraNotebookViewerVueProps;
|
|
2499
2533
|
'lr-number-input': LyraNumberInputVueProps;
|
|
2534
|
+
'lr-number-ticker': LyraNumberTickerVueProps;
|
|
2500
2535
|
'lr-option': LyraOptionVueProps;
|
|
2501
2536
|
'lr-otp-input': LyraOtpInputVueProps;
|
|
2502
2537
|
'lr-page': LyraPageVueProps;
|
|
@@ -2566,6 +2601,7 @@ These named interfaces and helper signatures are available to typed integrations
|
|
|
2566
2601
|
'lr-spreadsheet-viewer': LyraSpreadsheetViewerVueProps;
|
|
2567
2602
|
'lr-stack-trace': LyraStackTraceVueProps;
|
|
2568
2603
|
'lr-stat': LyraStatVueProps;
|
|
2604
|
+
'lr-step': LyraStepVueProps;
|
|
2569
2605
|
'lr-stepper': LyraStepperVueProps;
|
|
2570
2606
|
'lr-stream-status': LyraStreamStatusVueProps;
|
|
2571
2607
|
'lr-streaming-text': LyraStreamingTextVueProps;
|
|
@@ -126,7 +126,7 @@ The entry points, then:
|
|
|
126
126
|
or future exports. Prefer the owning entry for that component's complete contract and smaller
|
|
127
127
|
bundles.
|
|
128
128
|
|
|
129
|
-
- **`all.js` compatibility entry.** `import '@aceshooting/lyra-ui/all.js';` registers the
|
|
129
|
+
- **`all.js` compatibility entry.** `import '@aceshooting/lyra-ui/all.js';` registers the 306
|
|
130
130
|
root-included tags — everything **except** the 15 inventory-designated optional-peer-family tags:
|
|
131
131
|
`lr-chart` and its 8 typed subclasses (`lr-line-chart`, `lr-bar-chart`, `lr-pie-chart`,
|
|
132
132
|
`lr-doughnut-chart`, `lr-radar-chart`, `lr-polar-area-chart`, `lr-bubble-chart`,
|
|
@@ -278,6 +278,37 @@ exports `normalizeLyraSpanKind` and `normalizeLyraSpanStatus`; the widget regist
|
|
|
278
278
|
only `DEFAULT_WIDGET_TYPE_REGISTRY`. Import a component registration entry separately when the page
|
|
279
279
|
also renders that component.
|
|
280
280
|
|
|
281
|
+
### Single script tag (no build step, no import map)
|
|
282
|
+
|
|
283
|
+
`@aceshooting/lyra-cdn` is a companion package with a pre-bundled build of the same components: lit,
|
|
284
|
+
tslib and Floating UI are inlined into relative, code-split chunks, so one tag is the whole install.
|
|
285
|
+
Only the components the page renders are fetched (the autoloader's lazy loaders become chunks).
|
|
286
|
+
|
|
287
|
+
```html
|
|
288
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aceshooting/lyra-cdn@VERSION/dist/theme.css">
|
|
289
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aceshooting/lyra-cdn@VERSION/dist/lyra-ui.loader.js"></script>
|
|
290
|
+
|
|
291
|
+
<lr-button variant="primary">Save</lr-button>
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
It versions together with `@aceshooting/lyra-ui`; pin an exact version in production. Also published
|
|
295
|
+
beside the loader: `theme.css`, `theme-core.css`, `density.css`, `accents.css`, `design-tokens.css`,
|
|
296
|
+
`native.css` and `utilities.css`.
|
|
297
|
+
|
|
298
|
+
- The loader starts the autoloader on `DOMContentLoaded` (immediately when the document is already
|
|
299
|
+
parsed) and keeps watching insertions. It injects no styles or inline script.
|
|
300
|
+
- Script attributes: `data-lyra-optional-peers="dompurify,postal-mime"` (or `all`),
|
|
301
|
+
`data-lyra-autoload-events`, the opt-out `data-lyra-autoload="false"` (alias
|
|
302
|
+
`data-lyra-no-autoload`), which loads the module without starting it (it re-exports `start`,
|
|
303
|
+
`stop` and `discover`), and `data-lyra-cloak-timeout` (milliseconds, default `2000`).
|
|
304
|
+
- Cloaking: elements carrying class or attribute `lr-cloak` are revealed when the first scan
|
|
305
|
+
settles, or when the cloak timeout elapses, whichever comes first. Pair it with `.lr-fouce-hidden`
|
|
306
|
+
from `utilities.css` to hide not-yet-defined tags.
|
|
307
|
+
- Optional peers and the non-English catalogs of `@aceshooting/lyra-translations` are not bundled.
|
|
308
|
+
A component that needs one takes its usual localized fallback until the dependency resolves, for
|
|
309
|
+
example through an import map to a CDN URL.
|
|
310
|
+
- Bundler users keep importing `@aceshooting/lyra-ui` itself; the CDN build ships no source maps.
|
|
311
|
+
|
|
281
312
|
### Optional autoloader
|
|
282
313
|
|
|
283
314
|
`@aceshooting/lyra-ui/autoloader.js` exports `discover(root?, options?)`, `start(root?, options?)`
|
|
@@ -332,6 +363,34 @@ when `document` exists and reads `data-lyra-optional-peers="peer-a,peer-b"` plus
|
|
|
332
363
|
an ESM CDN executes the package entry behind a wrapper URL. Neither entry imports the root barrel,
|
|
333
364
|
and both are safe to import in plain Node.
|
|
334
365
|
|
|
366
|
+
### Loading from a CDN with no build step
|
|
367
|
+
|
|
368
|
+
An import map lets plain HTML use the same bare specifiers as an application. The ESM CDN rewrites
|
|
369
|
+
each package's own dependencies, so map only the entries you import:
|
|
370
|
+
|
|
371
|
+
```html
|
|
372
|
+
<script type="importmap">
|
|
373
|
+
{
|
|
374
|
+
"imports": {
|
|
375
|
+
"@aceshooting/lyra-ui/": "https://esm.sh/@aceshooting/lyra-ui@30/",
|
|
376
|
+
"lit": "https://esm.sh/lit@3",
|
|
377
|
+
"lit/": "https://esm.sh/lit@3/"
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
</script>
|
|
381
|
+
<script type="module">
|
|
382
|
+
import '@aceshooting/lyra-ui/autoloader-cdn.js'; // defines each lr-* tag when it first appears
|
|
383
|
+
import { allDefined } from '@aceshooting/lyra-ui/utilities/defined.js';
|
|
384
|
+
await allDefined({ timeout: 5000 }); // resolves after the page's lr-* tags are defined
|
|
385
|
+
</script>
|
|
386
|
+
<lr-button>Hello</lr-button>
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
Pin an exact version for production, and import `components/lr-<tag>.js` instead of the autoloader
|
|
390
|
+
when the page uses only a few tags. Add `data-lyra-autoloader` to the autoloader `<script>` if the
|
|
391
|
+
CDN serves the entry behind a wrapper URL. Without an import map, use the full CDN URL in each
|
|
392
|
+
`import`. `startLoader`/`stopLoader` are accepted aliases of the autoloader's `start`/`stop`.
|
|
393
|
+
|
|
335
394
|
## Optional native scoped registries
|
|
336
395
|
|
|
337
396
|
`utilities/scoped-registry.js` exports `supportsScopedRegistries()` and
|
|
@@ -42,13 +42,17 @@ the first connected Lyra element would otherwise adopt, available before any com
|
|
|
42
42
|
| Flex direction and wrapping | `lr-row`, `lr-column`, `lr-wrap`, `lr-nowrap`, `lr-grow`, `lr-grow-0`, `lr-shrink`, `lr-shrink-0` |
|
|
43
43
|
| Item alignment | `lr-items-start`, `lr-items-center`, `lr-items-end`, `lr-items-stretch`, `lr-items-baseline`, `lr-self-start`, `lr-self-center`, `lr-self-end`, `lr-self-stretch` |
|
|
44
44
|
| Distribution | `lr-justify-start`, `lr-justify-center`, `lr-justify-end`, `lr-justify-between`, `lr-justify-around` |
|
|
45
|
-
| Gaps | `lr-gap-0`, `lr-gap-xs`, `lr-gap-s`, `lr-gap-m`, `lr-gap-l`, `lr-gap-2xl`
|
|
45
|
+
| Gaps | `lr-gap-0`, `lr-gap-2xs`, `lr-gap-xs`, `lr-gap-s`, `lr-gap-m`, `lr-gap-l`, `lr-gap-xl`, `lr-gap-2xl`, `lr-gap-3xl`, `lr-gap-4xl` |
|
|
46
|
+
| Compositions | `lr-flank`, `lr-flank-end`, `lr-split`, `lr-split-column`, `lr-frame`, `lr-frame-square`, `lr-frame-landscape`, `lr-frame-portrait`, `lr-span-grid`, `lr-container` |
|
|
47
|
+
| Plain-element helpers | `lr-link-plain`, `lr-list-plain`, `lr-placeholder`, `lr-scroll-lock`, `lr-cloak` |
|
|
48
|
+
| Radius and case | `lr-radius-none`, `lr-radius-xs`, `lr-radius-m`, `lr-radius-container`, `lr-radius-pill`, `lr-radius-circle`, `lr-uppercase`, `lr-lowercase`, `lr-capitalize`, `lr-normal-case` |
|
|
49
|
+
| Variant and size | `lr-neutral`, `lr-brand`, `lr-success`, `lr-warning`, `lr-danger`; `lr-size-2xs`, `lr-size-xs`, `lr-size-s`, `lr-size-m`, `lr-size-l`, `lr-size-xl` (`lr-size-full` stays the 100% box) |
|
|
46
50
|
| Logical sizing | `lr-inline-full`, `lr-block-full`, `lr-size-full`, `lr-min-inline-0`, `lr-min-block-0`, `lr-max-inline-full`, `lr-max-inline-prose`, `lr-center` |
|
|
47
51
|
| Overflow | `lr-overflow-auto`, `lr-overflow-hidden` |
|
|
48
|
-
| Text alignment and size | `lr-text-start`, `lr-text-center`, `lr-text-end`, `lr-text-xs`, `lr-text-sm`, `lr-text-base`, `lr-text-lg`, `lr-text-xl`, `lr-text-quiet` |
|
|
52
|
+
| Text alignment and size | `lr-text-start`, `lr-text-center`, `lr-text-end`, `lr-text-xs`, `lr-text-sm`, `lr-text-base`, `lr-text-lg`, `lr-text-xl`, `lr-text-2xl` – `lr-text-5xl`, `lr-text-quiet` |
|
|
49
53
|
| Font | `lr-font-normal`, `lr-font-medium`, `lr-font-semibold`, `lr-font-bold`, `lr-font-mono` |
|
|
50
54
|
| Text flow | `lr-text-break`, `lr-text-nowrap`, `lr-truncate`, `lr-text-balance`, `lr-text-pretty`, `lr-prose` |
|
|
51
|
-
| Typography | `lr-typography`, `lr-not-typography`, `lr-heading-1`, `lr-heading-2`, `lr-heading-3`, `lr-heading-4`, `lr-inline-code` |
|
|
55
|
+
| Typography | `lr-typography`, `lr-not-typography`, `lr-heading-1`, `lr-heading-2`, `lr-heading-3`, `lr-heading-4`, `lr-heading-5`, `lr-heading-6`, `lr-inline-code` |
|
|
52
56
|
| Visibility and focus | `lr-visually-hidden`, `lr-visually-hidden-focusable`, `lr-fouce-hidden`, `lr-hidden` |
|
|
53
57
|
| Page allocation | `lr-page-mobile-only`, `lr-page-desktop-only` |
|
|
54
58
|
|
|
@@ -69,6 +73,43 @@ properties, so these two widths are fixed. Source order is reading order at ever
|
|
|
69
73
|
</section>
|
|
70
74
|
```
|
|
71
75
|
|
|
76
|
+
### Compositions and small utilities
|
|
77
|
+
|
|
78
|
+
All spacing here reads `--lr-layout-gap` (default `--lr-space-m`).
|
|
79
|
+
|
|
80
|
+
- **`lr-flank` / `lr-flank-end`** — a flex row where the first (or, for `-end`, the last) child keeps
|
|
81
|
+
its own width (`--lr-flank-inline-size`, default `auto`) and the other fills the rest. The filling
|
|
82
|
+
child wraps onto its own row below `--lr-flank-content-min-inline-size` (default `50%`).
|
|
83
|
+
- **`lr-split` / `lr-split-column`** — items pushed to the two ends of a wrapping row, or of a
|
|
84
|
+
column. Logical, so the ends swap under `dir="rtl"`.
|
|
85
|
+
- **`lr-frame`, `lr-frame-square` (1/1), `lr-frame-landscape` (16/9), `lr-frame-portrait` (3/4)** —
|
|
86
|
+
a clipped aspect-ratio box; a direct `img`, `picture`, `video`, `canvas`, `svg` or `iframe` child
|
|
87
|
+
fills it with `object-fit: cover`. A bare `lr-frame` reads `--lr-frame-ratio` (default `1 / 1`).
|
|
88
|
+
- **`lr-span-grid`** — takes the whole row of its grid parent, including inside `lr-grid-12` at every
|
|
89
|
+
container width. **`lr-container`** makes an element an inline-size query container.
|
|
90
|
+
- **`lr-link-plain`** — inherited colour, no underline until hover. **`lr-list-plain`** — no
|
|
91
|
+
marker, no indent, no margin (an `ul`/`ol` that keeps `role="list"` stays announced as a list).
|
|
92
|
+
- **`lr-placeholder`** — a quiet neutral block (`--lr-placeholder-block-size`, default `1em`) that
|
|
93
|
+
pulses only when `prefers-reduced-motion: no-preference`.
|
|
94
|
+
- **`lr-radius-*`** read the radius tokens; `lr-radius-circle` is `50%`. **`lr-uppercase`,
|
|
95
|
+
`lr-lowercase`, `lr-capitalize`, `lr-normal-case`** set `text-transform`.
|
|
96
|
+
- **Variants** `lr-neutral|brand|success|warning|danger` (the `variant` vocabulary) colour the
|
|
97
|
+
element's text and native-control accent with that tone's loud fill and publish
|
|
98
|
+
`--lr-variant-fill-quiet`, `--lr-variant-fill-loud`, `--lr-variant-on-quiet` and
|
|
99
|
+
`--lr-variant-border` for your own rules. **Sizes** `lr-size-2xs … lr-size-xl` (the `size` ladder;
|
|
100
|
+
`small`/`medium`/`large` spellings are not classes) set the type size and scale the native control
|
|
101
|
+
block size and padding that `.lr-native` reads.
|
|
102
|
+
- **`lr-scroll-lock`** is pure CSS (`overflow: hidden`, `overscroll-behavior: contain`, plus a stable
|
|
103
|
+
scrollbar gutter on `html`). Put it on `html`, `body` or a scroll container. It is independent of
|
|
104
|
+
the lock a modal component takes: both can be active, and the component's lock sees the stable
|
|
105
|
+
gutter and adds no padding.
|
|
106
|
+
- **`lr-cloak`** on `html`/`body` (or any root) hides the root with `visibility: hidden` while any
|
|
107
|
+
custom element beneath it still matches `:not(:defined)`, then reveals it as soon as they are
|
|
108
|
+
all defined. It fails open: after `--lr-cloak-timeout` (default `3s`) the root becomes visible
|
|
109
|
+
regardless, so a script that never loads cannot leave a blank page. The fail-open is a
|
|
110
|
+
visibility switch, not motion, so it needs no reduced-motion branch. Only light-DOM descendants
|
|
111
|
+
are seen; for a single element use `lr-fouce-hidden`.
|
|
112
|
+
|
|
72
113
|
`lr-fouce-hidden` hides only an opted-in custom element while it matches `:not(:defined)`, then
|
|
73
114
|
reveals it automatically after registration. `lr-visually-hidden-focusable` becomes visible on
|
|
74
115
|
focus or when a descendant receives focus, making it suitable for skip links.
|
|
@@ -380,3 +421,68 @@ the surface layer and disables Glass in the same way as an unlayered rule. Keep
|
|
|
380
421
|
`background` rules off `.lr-surface-chrome` elements, or exclude them with
|
|
381
422
|
`:not(.lr-surface-chrome)`. See [Cascade layers](styles-and-tokens.md#cascade-layers) for the full
|
|
382
423
|
order.
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
### Native control extensions
|
|
427
|
+
|
|
428
|
+
Inside `.lr-native`, `native.css` also styles: **checkbox, radio and range** (`accent-color` from the
|
|
429
|
+
brand token, a `--lr-native-check-size` box, hover shifts to the loud border tone); **colour and file
|
|
430
|
+
inputs** (control border and radius, a styled `::file-selector-button`, pointer cursor with hover);
|
|
431
|
+
**`progress` and `meter`** (a pill track of `--lr-native-meter-block-size`, brand bar, semantic
|
|
432
|
+
optimum/sub-optimum/even-less-good meter colours); **`details`/`summary`** (subtle bounded block, open
|
|
433
|
+
rule under the summary); **`dialog`** (overlay surface, container radius, `--lr-color-overlay` scrim);
|
|
434
|
+
**`mark`** (quiet warning fill and its paired foreground); and **lists** (`--lr-native-list-indent`
|
|
435
|
+
logical start inset, quiet markers). Disabled controls use `not-allowed`, every control shows the
|
|
436
|
+
shared focus ring, and `forced-colors: active` maps accents and bars to system colours. Dark mode
|
|
437
|
+
follows the tokens.
|
|
438
|
+
|
|
439
|
+
### Migrating Web Awesome and Shoelace classes and stylesheets
|
|
440
|
+
|
|
441
|
+
`lyra-ui-migrate` (no `--origin`) rewrites the upstream utility and theme classes that have a Lyra
|
|
442
|
+
counterpart, and only whole class tokens in class positions: `class`/`className` values,
|
|
443
|
+
`:class`, `[class]` and `[ngClass]` bindings, `className={...}`, `classMap()`, `classList.add/remove/
|
|
444
|
+
toggle/contains/replace()`, `.className =` and `setAttribute('class', ...)`. Selectors, prose, other
|
|
445
|
+
attributes and `${}`/`{{}}` interpolations are never read. A name the tool does not list is left alone,
|
|
446
|
+
because it is as likely your own class as an upstream one.
|
|
447
|
+
|
|
448
|
+
| Upstream | Lyra |
|
|
449
|
+
| -------- | ---- |
|
|
450
|
+
| `wa-stack`, `wa-cluster`, `wa-flank`, `wa-split`, `wa-frame` (with `:end`, `:column`, `:square`, `:landscape`, `:portrait`) | `lr-stack`, `lr-cluster`, `lr-flank`/`lr-flank-end`, `lr-split`/`lr-split-column`, `lr-frame`/`lr-frame-*` |
|
|
451
|
+
| `wa-grid`, `wa-span-grid` | `lr-grid-auto`, `lr-span-grid` |
|
|
452
|
+
| `wa-gap-<step>` | `lr-gap-<step>`, mapped by resolved length: the two spacing scales are offset by one step, so `wa-gap-m` (1rem) is `lr-gap-l` |
|
|
453
|
+
| `wa-align-items-*`, `wa-align-self-*`, `wa-justify-content-*`, `wa-flex-wrap`/`wa-flex-nowrap` | `lr-items-*`, `lr-self-*`, `lr-justify-*`, `lr-wrap`/`lr-nowrap` |
|
|
454
|
+
| `wa-text-*`, `wa-font-weight-*`, `wa-color-text-quiet`, `wa-link-plain`, `wa-list-plain`, `wa-prose`, `wa-visually-hidden`, `wa-cloak`, `wa-placeholder`, `wa-scroll-lock` | the same helper under `lr-`; see the inventory above |
|
|
455
|
+
| `wa-brand`, `wa-neutral`, `wa-success`, `wa-warning`, `wa-danger`, `wa-size-*` | `lr-brand`, `lr-neutral`, `lr-success`, `lr-warning`, `lr-danger`, `lr-size-*` |
|
|
456
|
+
| `wa-dark`, `wa-light`, `sl-theme-dark`, `sl-theme-light` | `lr-dark`, `lr-light` |
|
|
457
|
+
|
|
458
|
+
`wa-font-size-*`, `wa-body-*` and `wa-border-radius-s`/`-m` rewrite to the nearest class
|
|
459
|
+
(`lr-text-*`, `lr-radius-*`) and report `UPSTREAM_CLASS_APPROXIMATE_REVIEW`: the type and radius scales
|
|
460
|
+
are not value-aligned. `wa-heading-*`, `wa-caption-*`, `wa-longform-*`, the hue-pinned variants
|
|
461
|
+
(`wa-brand-blue`), `wa-theme-*`, the `native.css` opt-ins (`wa-button`, `wa-zebra-rows`, ...), the
|
|
462
|
+
`wa-form-control-*` classes and the gaps Lyra has no step for are reported as `UPSTREAM_CLASS_REVIEW`
|
|
463
|
+
with the nearest alternative and are not rewritten.
|
|
464
|
+
|
|
465
|
+
Stylesheet and loader imports (`import '...'` and CSS `@import`) map to real package subpaths:
|
|
466
|
+
`dist/styles/webawesome.css` becomes `theme.css`, `native.css` and `utilities.css`;
|
|
467
|
+
`styles/native.css`, `styles/utilities.css`, `styles/themes/default.css` and Shoelace
|
|
468
|
+
`themes/light.css`/`dark.css` become the matching one. `native.css` styles only inside `.lr-native`, and
|
|
469
|
+
`dark.css` is mode switching with `lr-dark`, so both carry an `UPSTREAM_ASSET_REVIEW` note. The
|
|
470
|
+
self-starting loaders (`webawesome.loader.js`, `shoelace-autoloader.js`) become
|
|
471
|
+
`@aceshooting/lyra-ui/autoloader-cdn.js` and, like the all-components entries (`webawesome.js`,
|
|
472
|
+
`shoelace.js`), are rewritten only when the scanned files have no manual uses left. `setBasePath` and
|
|
473
|
+
`utilities/base-path`, `layers.css`, the `awesome` and `shoelace` themes and the colour palettes have no
|
|
474
|
+
Lyra counterpart and are reported as `UPSTREAM_ASSET_REVIEW`.
|
|
475
|
+
|
|
476
|
+
### Hue palette
|
|
477
|
+
|
|
478
|
+
```css
|
|
479
|
+
@import "@aceshooting/lyra-ui/palette.css";
|
|
480
|
+
```
|
|
481
|
+
|
|
482
|
+
Declares static `--lr-color-<hue>-<step>` ramps on `:root` and every `[data-lr-theme-scope]`, for
|
|
483
|
+
hues `gray`, `red`, `orange`, `yellow`, `green`, `cyan`, `blue`, `purple` and `pink` and steps `05 10
|
|
484
|
+
20 30 40 50 60 70 80 90 95` (near-black to near-white). `gray`, `red`, `orange`, `green` and `blue`
|
|
485
|
+
are the neutral, danger, warning, success and brand tooling ramps; the others are the brand ramp
|
|
486
|
+
rotated in hue at the same lightness. The values do not change with light/dark mode: use them for
|
|
487
|
+
tags, charts, avatars and illustrations, and keep UI chrome on the semantic grid. To recolour the
|
|
488
|
+
semantic roles themselves, use `setLyraStyle({ accent: { success, warning, danger, neutral } })`.
|
|
@@ -320,10 +320,10 @@ needs to sit inside a Lyra UI without looking foreign, and the file's header lis
|
|
|
320
320
|
| Ambient colour | `--lr-color-surface`, `--lr-color-surface-raised`, `--lr-color-surface-overlay`, `--lr-color-overlay`, `--lr-color-text`, `--lr-color-text-quiet`, `--lr-color-border`, `--lr-color-border-strong`, `--lr-color-border-subtle` |
|
|
321
321
|
| The semantic grid | all 45 `--lr-color-{brand,success,warning,danger,neutral}-{fill,border,on}-{quiet,normal,loud}` slots |
|
|
322
322
|
| Flat colour aliases | `--lr-color-{brand,success,warning,danger,neutral}`, `--lr-color-{brand,success,warning,danger}-quiet`, `--lr-color-on-{brand,success,warning,danger,neutral}` |
|
|
323
|
-
| Spacing | `--lr-space-2xs`, `--lr-space-xs`, `--lr-space-s`, `--lr-space-m`, `--lr-space-l`, `--lr-space-2xl`
|
|
323
|
+
| Spacing | `--lr-space-2xs`, `--lr-space-xs`, `--lr-space-s`, `--lr-space-m`, `--lr-space-l`, `--lr-space-xl`, `--lr-space-2xl`, `--lr-space-3xl`, `--lr-space-4xl` (`xl`, `3xl`, `4xl` derive from the `l`/`2xl` theme inputs, so density and re-theming carry through) |
|
|
324
324
|
| Geometry | `--lr-radius-xs`, `--lr-radius`, `--lr-radius-pill`, `--lr-border-width-thin`, `--lr-border-width-medium`, `--lr-border-width-thick` |
|
|
325
325
|
| Elevation | `--lr-shadow-color`, `--lr-shadow-xs`, `--lr-shadow-s`, `--lr-shadow-m`, `--lr-shadow-l`, `--lr-shadow-xl`, `--lr-shadow` |
|
|
326
|
-
| Typography | `--lr-font`, `--lr-font-mono`, the
|
|
326
|
+
| Typography | `--lr-font`, `--lr-font-mono`, the twelve `--lr-font-size-*` steps (`--lr-font-size-4xl` and `-5xl` derive from the `3xl` theme input at 1.25x and 1.5x), the four `--lr-font-weight-*` steps |
|
|
327
327
|
| State and motion | `--lr-focus-ring`, `--lr-focus-ring-color`, `--lr-focus-ring-width`, `--lr-focus-ring-offset`, `--lr-opacity-disabled`, `--lr-opacity-muted`, `--lr-duration-fast`, `--lr-duration-base`, `--lr-easing-standard`, `--lr-easing-emphasized`, `--lr-transition-fast`, `--lr-transition-base`, `--lr-transition-interactive` |
|
|
328
328
|
|
|
329
329
|
The grid is stable as a whole because its [contrast contract](#semantic-colour-contrast-contract)
|
|
@@ -47,6 +47,12 @@ An existing platform collection is never replaced, and plain Node remains unchan
|
|
|
47
47
|
`Element.part` (Happy DOM), rendering does not throw, and highlighted lines keep their
|
|
48
48
|
`line-highlight` part wherever CSS parts exist. `installHappyDomShims()` does not install one.
|
|
49
49
|
|
|
50
|
+
`installHappyDomShims()` also calls `installHappyDomResponseBytesShim()`, which adds
|
|
51
|
+
`Response.prototype.bytes()` (read through `arrayBuffer()`) where Happy DOM 21 lacks it. Shiki's
|
|
52
|
+
inlined Oniguruma engine, which `lr-code-block` loads on demand, calls `bytes()` as it imports, so
|
|
53
|
+
without it each highlighter load leaves an unhandled rejection. It is a no-op where `bytes()`
|
|
54
|
+
exists, takes an optional prototype, and returns a function that removes the method again.
|
|
55
|
+
|
|
50
56
|
When Happy DOM lacks the HTML `dir="ltr"`/`dir="rtl"` presentational hints,
|
|
51
57
|
`installHappyDomShims()` adds zero-specificity direction rules to the document head. This restores
|
|
52
58
|
computed direction and inherited component direction while preserving explicit author CSS.
|
|
@@ -565,6 +571,18 @@ boolean; set defaultChecked(next: boolean) }`.
|
|
|
565
571
|
`RecencyBucket<T> { label; items }`.
|
|
566
572
|
The callable signature is `groupByRecency<T>(items: T[], options?:
|
|
567
573
|
GroupByRecencyOptions<T>): RecencyBucket<T>[]`.
|
|
574
|
+
- **`allDefined({ match?, additionalElements?, root?, timeout? })`** — options form of the helper
|
|
575
|
+
below. Without `match` it waits like the root form; with `match` it waits for every undefined
|
|
576
|
+
element under `root` (default `document`) whose lowercase tag the function accepts.
|
|
577
|
+
`additionalElements` (a tag or tags) names elements that may not be on the page yet. After
|
|
578
|
+
`timeout` ms (default `2000`, `Infinity` disables it) it logs a console warning listing the tags
|
|
579
|
+
still undefined and resolves anyway. A negative or `NaN` timeout throws `RangeError`. The
|
|
580
|
+
`(root, options)` form never times out.
|
|
581
|
+
- **`form` → `serialize(form): Record<string, FormDataEntryValue | FormDataEntryValue[]>`** — a
|
|
582
|
+
form's successful controls as a plain object; a name that occurs more than once becomes an array
|
|
583
|
+
in document order (`serializeFormData(formData: FormData): Record<string, FormDataEntryValue |
|
|
584
|
+
FormDataEntryValue[]>` is the same fold over any `FormData`). The result
|
|
585
|
+
has a `null` prototype, so a field named `__proto__` is just a key.
|
|
568
586
|
- **`defined` → `allDefined(root?, options?): Promise<void>`** — iteratively waits for every
|
|
569
587
|
currently rendered, inventory-known Lyra tag below a `Document`, `DocumentFragment`/open
|
|
570
588
|
`ShadowRoot`, or `Element` to be defined in its owning/scoped registry. It also waits for each
|
|
@@ -581,6 +599,9 @@ GroupByRecencyOptions<T>): RecencyBucket<T>[]`.
|
|
|
581
599
|
The exact options record is `AllDefinedOptions { readonly maxPasses?: number; readonly
|
|
582
600
|
maxElements?: number; readonly maxRoots?: number; readonly maxDepth?: number; readonly maxWork?:
|
|
583
601
|
number }`.
|
|
602
|
+
The options form takes `AllDefinedWaitOptions { readonly match?: (tagName: string) => boolean;
|
|
603
|
+
readonly additionalElements?: string | readonly string[]; readonly root?: LyraDefinitionRoot;
|
|
604
|
+
readonly timeout?: number }`.
|
|
584
605
|
- **`css-length` → `resolveCssLength(value, options?)`** — resolves finite numbers and CSS
|
|
585
606
|
`px`/`rem`/`em`/`%`/`vw`/`vh` lengths to pixels without allocating DOM. Supply `host` for live
|
|
586
607
|
font and owner-realm context, `percentBase` for percentages, and an optional `viewportBasis` for
|