@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
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 3 parts,
|
|
13
|
-
- **Tokens by part** (prefer these over a `::part()` rule) `list`: `--lr-menu-gap`, `--lr-menu-padding`, `--lr-theme-scrollbar-color`, `--lr-theme-scrollbar-gutter`, `--lr-theme-scrollbar-width`
|
|
12
|
+
- **Themeable via** 3 parts, 13 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
|
+
- **Tokens by part** (prefer these over a `::part()` rule) `list`: `--lr-menu-gap`, `--lr-menu-max-block-size`, `--lr-menu-padding`, `--lr-theme-scrollbar-color`, `--lr-theme-scrollbar-gutter`, `--lr-theme-scrollbar-width`
|
|
14
14
|
- **Documented with** `lr-menu-item`, `lr-dropdown-item` (same section below)
|
|
15
15
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
16
16
|
|
|
@@ -102,7 +102,12 @@ Row chrome is controlled through the menu-item properties listed below.
|
|
|
102
102
|
List density: `--lr-menu-padding` (default `var(--lr-space-xs)`) pads `[part="list"]` and
|
|
103
103
|
`--lr-menu-gap` (default `0`) spaces its rows. Both apply inside `lr-dropdown` too and are read only
|
|
104
104
|
through `var()` fallbacks, so one declaration on the menu or an ancestor retunes the list without a
|
|
105
|
-
`::part(list)` rule.
|
|
105
|
+
`::part(list)` rule. `--lr-menu-max-block-size` (default `var(--lr-size-20rem)`) is the list's
|
|
106
|
+
block-size ceiling, past which it scrolls; it also caps a submenu's surface. Inside `lr-dropdown`
|
|
107
|
+
the positioned available space still caps it, and a standalone menu can be raised above `20rem`.
|
|
108
|
+
To widen a dropdown's menu, set `--lr-overlay-min-inline-size` or `--lr-overlay-inline-size` on the
|
|
109
|
+
`lr-dropdown`, not a width on the `lr-menu`: a contained menu is `display: contents`, so its list
|
|
110
|
+
lays out directly in the popup and fills whatever width the popup takes. The scrolling list also honors the theme-level
|
|
106
111
|
`--lr-theme-scrollbar-width`/`--lr-theme-scrollbar-gutter`/`--lr-theme-scrollbar-color` hooks
|
|
107
112
|
(defaults `auto`/`auto`/`auto`), like every other internal scroll container.
|
|
108
113
|
|
|
@@ -240,7 +245,9 @@ expanding the popup.
|
|
|
240
245
|
**Themeable custom properties:** `--lr-menu-item-gap`, `--lr-menu-item-radius`,
|
|
241
246
|
`--lr-menu-item-danger-color`, `--lr-menu-item-danger-hover-bg`,
|
|
242
247
|
`--lr-menu-item-danger-active-bg`, `--lr-menu-item-checked-bg` (default `transparent`),
|
|
243
|
-
`--lr-menu-item-
|
|
248
|
+
`--lr-menu-item-color` (default `inherit`; a resting row's text, which danger, disabled and checked
|
|
249
|
+
rows override), `--lr-menu-item-checked-color` (default `inherit`, which follows `--lr-menu-item-color`),
|
|
250
|
+
`--lr-menu-item-checked-font-weight` (default
|
|
244
251
|
`inherit`), and `--submenu-offset`, plus shared size/focus/color/spacing tokens. The checked hooks
|
|
245
252
|
apply to a `type="checkbox" checked` or `type="radio" checked` row's `[part="base"]`, matching the
|
|
246
253
|
checked/selected-state hooks `<lr-option>`, `<lr-select>`, `<lr-combobox>`, and `<lr-tree-item>`
|
|
@@ -264,8 +271,12 @@ itself.
|
|
|
264
271
|
Row density hooks, also inline fallbacks: `--lr-menu-item-padding-block` (default
|
|
265
272
|
`var(--lr-form-control-padding-block)`), `--lr-menu-item-padding-inline` (default
|
|
266
273
|
`var(--lr-form-control-padding-inline)`), `--lr-menu-item-font-size` (default
|
|
267
|
-
`var(--lr-form-control-font-size)`)
|
|
268
|
-
|
|
274
|
+
`var(--lr-form-control-font-size)`), `--lr-menu-item-font-weight` (default `inherit`),
|
|
275
|
+
`--lr-menu-item-letter-spacing` (default `normal`), `--lr-menu-item-details-font-size` (default
|
|
276
|
+
`var(--lr-font-size-sm)`) and `--lr-menu-item-details-color` (default `var(--lr-color-text-quiet)`)
|
|
277
|
+
for `[part="details"]`, and `--lr-menu-item-icon-size` (default `inherit`), the font
|
|
278
|
+
size of `[part="icon"]`, which sizes a slotted `lr-icon` or any `1em` glyph. `lr-dropdown-item`
|
|
279
|
+
reads the same row tokens.
|
|
269
280
|
|
|
270
281
|
```html
|
|
271
282
|
<lr-menu style="--lr-menu-padding: 2px; --lr-menu-item-padding-block: 2px; --lr-menu-item-font-size: var(--lr-font-size-sm); --lr-menu-item-icon-size: 14px;">
|
|
@@ -337,6 +348,10 @@ the focusable host gains or loses focus, plus the shared menu-item events above.
|
|
|
337
348
|
**CSS parts:** the shared menu-item parts, except that the loading spinner is `spinner-base` (beside
|
|
338
349
|
`spinner`).
|
|
339
350
|
|
|
351
|
+
**Custom states:** `:state(active)` (the item has focus), `:state(checked)`, `:state(disabled)`,
|
|
352
|
+
`:state(has-submenu)` (content in the `submenu` slot), `:state(link)` (`href` resolves to a safe link)
|
|
353
|
+
and `:state(submenu-open)`, e.g. `lr-dropdown-item:state(submenu-open) { font-weight: 600; }`.
|
|
354
|
+
|
|
340
355
|
**Themeable custom properties:** every `<lr-menu-item>` hook above, including 16.0.0's
|
|
341
356
|
`--lr-menu-item-hover-bg`, `--lr-menu-item-active-bg`, `--lr-menu-item-icon-color` and
|
|
342
357
|
`--lr-menu-item-min-height`.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 16 parts,
|
|
12
|
+
- **Themeable via** 16 parts, 49 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Tokens by part** (prefer these over a `::part()` rule) `form-control-label`: `--lr-form-control-required-content`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -322,6 +322,9 @@ override documented on `<lr-popover>` each time it is positioned, falling back t
|
|
|
322
322
|
`positioning-strategy` property; set the token on `:root`, a theme, or an ancestor to retune its
|
|
323
323
|
listbox along with the other floating surfaces.
|
|
324
324
|
|
|
325
|
+
More themeable custom properties: `--lr-form-control-label-line-height` (default `inherit`): Line
|
|
326
|
+
height of the field label.
|
|
327
|
+
|
|
325
328
|
**Optional peer deps:** none.
|
|
326
329
|
|
|
327
330
|
```html
|
|
@@ -357,4 +360,11 @@ listbox along with the other floating surfaces.
|
|
|
357
360
|
to the rendered `hint`/`error` ids — set on whichever element (`trigger` or `combobox-input`) owns
|
|
358
361
|
`role="combobox"` for the active mode.
|
|
359
362
|
|
|
363
|
+
Further custom properties:
|
|
364
|
+
|
|
365
|
+
- `--lr-form-control-label-block-gap` (default `var(--lr-space-xs)`): Space between a label above the field and the field, in top placement and once a `label-placement="start"` row collapses.
|
|
366
|
+
- `--lr-form-control-label-line-height` (default `inherit`): Line height of the field label.
|
|
367
|
+
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
368
|
+
- `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
|
|
369
|
+
|
|
360
370
|
---
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 18 parts,
|
|
12
|
+
- **Themeable via** 18 parts, 40 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Tokens by part** (prefer these over a `::part()` rule) `input-wrapper`: `--lr-input-gap`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -112,3 +112,13 @@ entry for the flush and cancellation rules.
|
|
|
112
112
|
```
|
|
113
113
|
|
|
114
114
|
---
|
|
115
|
+
|
|
116
|
+
`--lr-form-control-label-line-height` (default `inherit`) sets the label line height, and `--lr-input-font-variant-numeric` (default `inherit`; for example `tabular-nums`) sets the field text's numeric figures, shared with `lr-input`.
|
|
117
|
+
|
|
118
|
+
Further custom properties:
|
|
119
|
+
|
|
120
|
+
- `--lr-form-control-label-block-gap` (default `var(--lr-space-xs)`): Space between a label above the field and the field, in top placement and once a `label-placement="start"` row collapses.
|
|
121
|
+
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
122
|
+
- `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
|
|
123
|
+
- `--lr-input-line-height` (default `inherit`): Line height of the native input text.
|
|
124
|
+
- `--lr-input-number-direction` (default `ltr`): Inline direction of numeric content (`type="number"`), which renders left-to-right by default so digits and signs keep their order. Set `rtl` to start the number at the right edge in a right-to-left layout. Set `tabular-nums` so digits share one width and a column of values lines up; `lr-number-input` shares the same field styles and honours it too.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 23 parts,
|
|
12
|
+
- **Themeable via** 23 parts, 40 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Tokens by part** (prefer these over a `::part()` rule) `input-wrapper`: `--lr-input-gap`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -213,3 +213,13 @@ The exact-320px RTL story keeps long label/hint copy and both fixed-size stepper
|
|
|
213
213
|
element is not reverted — use `lr-input` when the type has to change.
|
|
214
214
|
|
|
215
215
|
<a id="date-and-time-controls"></a>
|
|
216
|
+
|
|
217
|
+
`--lr-form-control-label-line-height` (default `inherit`) sets the label line height, and `--lr-input-font-variant-numeric` (default `inherit`; for example `tabular-nums`) sets the field text's numeric figures, shared with `lr-input`.
|
|
218
|
+
|
|
219
|
+
Further custom properties:
|
|
220
|
+
|
|
221
|
+
- `--lr-form-control-label-block-gap` (default `var(--lr-space-xs)`): Space between a label above the field and the field, in top placement and once a `label-placement="start"` row collapses.
|
|
222
|
+
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
223
|
+
- `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
|
|
224
|
+
- `--lr-input-line-height` (default `inherit`): Line height of the native input text.
|
|
225
|
+
- `--lr-input-number-direction` (default `ltr`): Inline direction of numeric content (`type="number"`), which renders left-to-right by default so digits and signs keep their order. Set `rtl` to start the number at the right edge in a right-to-left layout. Set `tabular-nums` so digits share one width and a column of values lines up; `lr-number-input` shares the same field styles and honours it too.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<!-- GENERATED by scripts/build-llms.mjs from llms/utility.md — do not edit this file. -->
|
|
2
|
+
|
|
3
|
+
# `lr-number-ticker`
|
|
4
|
+
|
|
5
|
+
- **Import** `import '@aceshooting/lyra-ui/components/lr-number-ticker.js';` (stable tag alias; registers the tag)
|
|
6
|
+
- **Class** `LyraNumberTicker`, also available unregistered from `@aceshooting/lyra-ui/components/utility/number-ticker/number-ticker.class.js`
|
|
7
|
+
- **Family** `components/utility/` — see `llms/index.md` for its siblings
|
|
8
|
+
- **Status** `experimental` since `32.1.0` — see the maturity and deprecation policy in `llms/shared.md`
|
|
9
|
+
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
|
+
- **Deprecations** none
|
|
11
|
+
- **Optional peers** none
|
|
12
|
+
- **Themeable via** 2 parts, 0 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
|
+
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## `lr-number-ticker`
|
|
18
|
+
|
|
19
|
+
Counts to `value` when at least half of it scrolls into view (or at once with `eager`), formatting
|
|
20
|
+
every frame with `Intl.NumberFormat` in the effective locale. It renders `startValue` before the
|
|
21
|
+
count and during SSR.
|
|
22
|
+
|
|
23
|
+
**Properties:**
|
|
24
|
+
|
|
25
|
+
- `value: number = 0`; `startValue: number = 0` (`start-value`) — first run and `restart()` begin here
|
|
26
|
+
- `duration: number = 2000` ms (`0` skips the animation); `delay: number = 0` ms (first run only);
|
|
27
|
+
`easing: string` — any CSS easing, an invalid one falls back to the default
|
|
28
|
+
- `eager: boolean = false`
|
|
29
|
+
- `type: 'decimal' | 'currency' | 'percent' = 'decimal'`; `currency: string = 'USD'`;
|
|
30
|
+
`currencyDisplay: 'symbol' | 'narrowSymbol' | 'code' | 'name' = 'symbol'` (`currency-display`)
|
|
31
|
+
- `withoutGrouping: boolean = false` (`without-grouping`)
|
|
32
|
+
- `minimumIntegerDigits`, `minimumFractionDigits`, `maximumFractionDigits`, `minimumSignificantDigits`,
|
|
33
|
+
`maximumSignificantDigits` (kebab-case attributes) — unset by default and clamped to Intl ranges;
|
|
34
|
+
one fraction option alone applies to both bounds; plain decimals keep a steady number of places
|
|
35
|
+
- `valueFormatter?: (value: number) => string` — property only; replaces Intl formatting
|
|
36
|
+
|
|
37
|
+
**Methods:** `restart()` — count again from `startValue`.
|
|
38
|
+
**Events:** `lr-finish` (`null` detail) — the ticker settled, including the instant paths. A later
|
|
39
|
+
`value` change counts on from the number shown.
|
|
40
|
+
**CSS parts:** `base`, `value`. **CSS state:** `:state(counting)`.
|
|
41
|
+
|
|
42
|
+
**Accessibility and motion:** the counting text is `aria-hidden` and the final value is visually
|
|
43
|
+
hidden text from the first paint; once settled the number renders once. A `value` change after the
|
|
44
|
+
first count is announced politely through the shared light-DOM live region. Under
|
|
45
|
+
`prefers-reduced-motion: reduce` (or `data-lr-motion="reduce"`) or `duration="0"` it jumps to the final
|
|
46
|
+
value and still emits `lr-finish`.
|
|
47
|
+
|
|
48
|
+
```html
|
|
49
|
+
<script type="module">
|
|
50
|
+
import '@aceshooting/lyra-ui/components/lr-number-ticker.js';
|
|
51
|
+
</script>
|
|
52
|
+
|
|
53
|
+
<lr-number-ticker value="12840"></lr-number-ticker>
|
|
54
|
+
<lr-number-ticker type="currency" currency="EUR" value="98765.43" eager></lr-number-ticker>
|
|
55
|
+
```
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 12 parts,
|
|
12
|
+
- **Themeable via** 12 parts, 32 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
14
14
|
|
|
15
15
|
---
|
|
@@ -202,6 +202,9 @@ Active and invalid states are independently themeable through
|
|
|
202
202
|
|
|
203
203
|
`--lr-otp-input-hover-border-color` (default `var(--lr-color-brand)`) is the border of a hovered segment that is neither active nor invalid.
|
|
204
204
|
|
|
205
|
+
More themeable custom properties: `--lr-form-control-label-line-height` (default `inherit`): Line
|
|
206
|
+
height of the field label.
|
|
207
|
+
|
|
205
208
|
**CSS custom states:** `blank` (the empty-value state every other Lyra text and date control
|
|
206
209
|
publishes), `--blank` (the same, kept for compatibility), `--filled`, `disabled`, and `readonly`,
|
|
207
210
|
plus the shared form-associated validity states. The host carries `data-invalid` while it is invalid
|
|
@@ -244,3 +247,10 @@ control cannot be edited and restores the current intrinsic result when editing
|
|
|
244
247
|
<a id="radio-group-controls"></a>
|
|
245
248
|
|
|
246
249
|
The start-placed label aligns to the first line of the field, measured with `--lr-form-control-height`.
|
|
250
|
+
|
|
251
|
+
Further custom properties:
|
|
252
|
+
|
|
253
|
+
- `--lr-form-control-label-block-gap` (default `var(--lr-space-xs)`): Space between a label above the field and the field, in top placement and once a `label-placement="start"` row collapses.
|
|
254
|
+
- `--lr-form-control-label-line-height` (default `inherit`): Line height of the field label.
|
|
255
|
+
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
256
|
+
- `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
|
|
@@ -49,6 +49,12 @@ and event listeners survive every breakpoint crossing.
|
|
|
49
49
|
- `autoStickyOffsets: boolean = false` (attribute `auto-sticky-offsets`, reflected) — positions
|
|
50
50
|
sticky regions below the measured banner, header, and subheader. Their height properties still
|
|
51
51
|
set minimum sizes and provide offsets during server rendering and before measurement.
|
|
52
|
+
- `disableSticky: string | null` (accessor over the existing `disable-sticky` attribute; reads `null` when absent, `null` removes it) — the
|
|
53
|
+
whitespace-separated regions whose sticky positioning is disabled (see below); `null` keeps every
|
|
54
|
+
region sticky.
|
|
55
|
+
- `nonce` (reflected, no default) — accepted so migrated `wa-page` markup keeps it; it changes
|
|
56
|
+
nothing, because the Page injects no `<style>` or `<script>` element (its styles are constructable
|
|
57
|
+
stylesheets, which a `style-src` nonce does not govern).
|
|
52
58
|
- `navigationPlacement: 'start' | 'end' = 'start'` (attribute `navigation-placement`, reflected) —
|
|
53
59
|
a logical placement: `start` is left in LTR and right in RTL; `end` is the reverse.
|
|
54
60
|
- `tabindex: string = '-1'` (reflected) — the host fragment target's native focusability. The Page
|
|
@@ -64,7 +70,7 @@ and event listeners survive every breakpoint crossing.
|
|
|
64
70
|
`toggleNavigation(): void` update `navOpen`. `visiblePixelsInViewport(element: HTMLElement | null):
|
|
65
71
|
number` returns the element's finite, viewport-clamped vertical intersection in CSS pixels (`0` for
|
|
66
72
|
`null`, invalid geometry, no intersection, or an element in a detached document with no viewport).
|
|
67
|
-
This is a deliberate owner-realm safety divergence from Web Awesome 3.
|
|
73
|
+
This is a deliberate owner-realm safety divergence from Web Awesome 3.15, whose method returns
|
|
68
74
|
`null` for a null input and measures detached-document geometry against the ambient page viewport;
|
|
69
75
|
code migrating from `wa-page` should treat Lyra's always-finite `number` result as canonical.
|
|
70
76
|
|
|
@@ -75,6 +75,24 @@ The pager revalidates the requested page after `lr-before-page-change` returns.
|
|
|
75
75
|
pager.offset = detail.offset;
|
|
76
76
|
});
|
|
77
77
|
```
|
|
78
|
+
|
|
79
|
+
**Migrating a page-first pager to offset-first.** `lr-page-change.detail` is `{ page, pageSize, offset }`
|
|
80
|
+
on every path of `<lr-pagination>` (numbered buttons, previous/next/first/last, the compact page jump) and
|
|
81
|
+
of `<lr-table>`'s built-in pager; `lr-page-size-change` carries the same triple for a size change. `page`
|
|
82
|
+
is one-based and `offset = (page - 1) * pageSize`, so the conversion lives in the component:
|
|
83
|
+
|
|
84
|
+
```js
|
|
85
|
+
// before: page-first, converting by hand
|
|
86
|
+
pager.addEventListener('lr-page-change', ({ detail }) => load({ page: detail.page, size: pager.pageSize }));
|
|
87
|
+
pager.page = state.page;
|
|
88
|
+
// after: offset-first, nothing to convert
|
|
89
|
+
pager.addEventListener('lr-page-change', ({ detail }) => load({ offset: detail.offset, limit: detail.pageSize }));
|
|
90
|
+
pager.pageSize = state.limit;
|
|
91
|
+
pager.offset = state.offset; // derives page = floor(offset / pageSize) + 1
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Drop the manual `(page - 1) * size` and `Math.floor(offset / size) + 1` conversions. `<lr-data-grid>` is
|
|
95
|
+
already offset-first with a zero-based `page`.
|
|
78
96
|
- `total: number = 0` (attribute `total`) — total item count; finite values are truncated
|
|
79
97
|
to a non-negative integer for display and page-count calculations, except for the exact sentinel
|
|
80
98
|
`-1`, which enters indeterminate mode (see below) instead of clamping to the ordinary empty state.
|
|
@@ -40,7 +40,12 @@ current page and
|
|
|
40
40
|
`zoom: number = 1` is clamped to `0.25`–`4`. `maxHeight: string = ''` (attribute `max-height`) is a
|
|
41
41
|
CSS length that, once set, overrides `--lr-pdf-viewer-height` — the block size of the virtualized
|
|
42
42
|
page list — declaratively, writing it inline on `[part="base"]`; invalid CSS `max-height` values,
|
|
43
|
-
declaration breaks, and `url()` are ignored. `
|
|
43
|
+
declaration breaks, and `url()` are ignored. `fill: boolean = false` (reflected) fills a parent with
|
|
44
|
+
a definite block size, such as a dialog body or a sized flex column: the host takes
|
|
45
|
+
`block-size: 100%`, the toolbar keeps its row, and the page list takes the rest and becomes the
|
|
46
|
+
single scroller, replacing the fixed `--lr-pdf-viewer-height` / `max-height` size while set.
|
|
47
|
+
Against an auto-height parent `100%` resolves to `auto`, so give the parent a height.
|
|
48
|
+
`workerSrc: string = ''` (attribute `worker-src`) is the
|
|
44
49
|
URL of the PDF.js web worker chunk — see **Configuring the PDF.js worker** below.
|
|
45
50
|
`anchorKinds: readonly LyraAnchorKind[] = ['page',
|
|
46
51
|
'text-quote', 'region']` (this viewer's supported `LyraAnchor.kind` values for the shared
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 15 parts,
|
|
12
|
+
- **Themeable via** 15 parts, 32 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
14
14
|
|
|
15
15
|
---
|
|
@@ -255,6 +255,9 @@ The native country selector's hover and press backgrounds are supplemented in fo
|
|
|
255
255
|
with dashed/solid `Highlight` outlines, so those states do not collapse when the UA flattens the
|
|
256
256
|
background tint to `Canvas`.
|
|
257
257
|
|
|
258
|
+
More themeable custom properties: `--lr-form-control-label-line-height` (default `inherit`): Line
|
|
259
|
+
height of the field label.
|
|
260
|
+
|
|
258
261
|
**Optional peer deps:** `libphonenumber-js` is declared optional but never imported by Lyra itself.
|
|
259
262
|
For full national parsing/formatting, install it in the consuming app and pass it through the
|
|
260
263
|
consumer-supplied lazy loader below. Because the import expression lives in consumer code, no
|
|
@@ -337,3 +340,10 @@ import "@aceshooting/lyra-ui/components/media/flag/flag-peer.js";
|
|
|
337
340
|
<a id="time-range-controls"></a>
|
|
338
341
|
|
|
339
342
|
The start-placed label aligns to the first line of the field, measured with `--lr-form-control-height`.
|
|
343
|
+
|
|
344
|
+
Further custom properties:
|
|
345
|
+
|
|
346
|
+
- `--lr-form-control-label-line-height` (default `inherit`): Line height of the field label.
|
|
347
|
+
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
348
|
+
- `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
|
|
349
|
+
- `--lr-form-control-label-block-gap` (default `var(--lr-space-xs)`): Space between a label above the field and the field, in top placement and once a `label-placement="start"` row collapses.
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md); family-wide breaking-change summaries: [charts](https://github.com/aceshooting/lyra-ui/blob/main/packages/lyra-ui/llms/charts.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** `chart.js`, `chartjs-plugin-annotation`, `chartjs-plugin-datalabels`, `chartjs-plugin-zoom` — see `llms/peers.md`
|
|
12
|
-
- **Themeable via** 19 parts,
|
|
12
|
+
- **Themeable via** 19 parts, 54 custom properties — see `lr-line-chart.md`
|
|
13
13
|
- **Documented with** `lr-line-chart`: see [lr-line-chart.md](./lr-line-chart.md).
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md); family-wide breaking-change summaries: [charts](https://github.com/aceshooting/lyra-ui/blob/main/packages/lyra-ui/llms/charts.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** `chart.js`, `chartjs-plugin-annotation`, `chartjs-plugin-datalabels`, `chartjs-plugin-zoom` — see `llms/peers.md`
|
|
12
|
-
- **Themeable via** 19 parts,
|
|
12
|
+
- **Themeable via** 19 parts, 54 custom properties — see `lr-line-chart.md`
|
|
13
13
|
- **Documented with** `lr-line-chart`: see [lr-line-chart.md](./lr-line-chart.md).
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 9 parts,
|
|
12
|
+
- **Themeable via** 9 parts, 14 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
|
+
- **Tokens by part** (prefer these over a `::part()` rule) `content`: `--lr-overlay-content-padding`
|
|
13
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
14
15
|
|
|
15
16
|
---
|
|
@@ -146,9 +147,18 @@ If the import fails, leave the native disclosure visible and usable.
|
|
|
146
147
|
if (row && card.forElement !== row) card.forElement = row;
|
|
147
148
|
});
|
|
148
149
|
```
|
|
149
|
-
- `anchor: Element | null = null` (property only) — positioning-only
|
|
150
|
-
over `for` and the interaction owner but never receiving click listeners or generated
|
|
151
|
-
`showAt()` virtual anchor still
|
|
150
|
+
- `anchor: Element | null = null` (property only) — positioning-only element anchor, taking
|
|
151
|
+
priority over `for` and the interaction owner but never receiving click listeners or generated
|
|
152
|
+
ARIA; a `showAt()` virtual anchor and a `virtualElement` still win.
|
|
153
|
+
- `virtualElement: LyraPopoverVirtualElement | null = null` (property only) — positioning-only
|
|
154
|
+
virtual element: any object with `getBoundingClientRect()` and an optional `contextElement`
|
|
155
|
+
(scroll, scale and direction context), such as a text-selection range or a cursor point. It wins
|
|
156
|
+
over `anchor`, `for` and the interaction owner; a `showAt()` virtual anchor still wins. Unlike
|
|
157
|
+
`showAt()`, it persists across close and reopen until replaced; assign a new object to move the
|
|
158
|
+
popover. Clearing it while open closes the popover when nothing else anchors it; a value with no
|
|
159
|
+
callable `getBoundingClientRect` is ignored. Web Awesome's `wa-popover` takes the virtual element
|
|
160
|
+
through `anchor` itself; here `anchor` keeps its element-only contract.
|
|
161
|
+
`popover.virtualElement = { getBoundingClientRect: () => range.getBoundingClientRect() };`
|
|
152
162
|
- `interactionBoundary: Element | null = null` (property only) — additional light-dismiss
|
|
153
163
|
containment for DOM anchoring. Pointer presses within this connected element and its composed
|
|
154
164
|
descendants keep the popup open, so a collection's own activation handler can change `.anchor`
|
|
@@ -168,6 +178,11 @@ If the import fails, leave the native disclosure visible and usable.
|
|
|
168
178
|
middle of the edge regardless of where the anchor is
|
|
169
179
|
- `arrowPadding: number = 0` (attribute `arrow-padding`) — keeps the arrow this many px from the
|
|
170
180
|
popup's corners
|
|
181
|
+
- `fullWidthTrigger: boolean = false` (attribute `full-width-trigger`, reflected) — lays the
|
|
182
|
+
trigger out at full width: the host becomes `display: block` and the `trigger` part and the
|
|
183
|
+
slotted trigger element stretch to the host's inline size (a trigger in a form column or
|
|
184
|
+
sidebar). Unset, the host and trigger stay `inline-block`. It does not size the popup; pair it
|
|
185
|
+
with `--lr-overlay-inline-size` (or `lr-dropdown`'s `sync`) for that.
|
|
171
186
|
- `accessibleLabel: string = ''` (attribute **`aria-label`**) — names the popup. An authored host
|
|
172
187
|
attribute wins by presence, including `aria-label=""` (whitespace-only is ignored); otherwise the property
|
|
173
188
|
or localized "Popover" ("Menu" when `popupRole` is `menu`) fallback apply
|
|
@@ -293,7 +308,12 @@ match; the state is in the part name.
|
|
|
293
308
|
|
|
294
309
|
**Themeable custom properties:** mapped `--max-width`, `--arrow-size`, `--show-duration`, and
|
|
295
310
|
`--hide-duration`, with retained `--lr-overlay-max-inline-size` and `--lr-overlay-arrow-size`
|
|
296
|
-
fallbacks. Arrow size is half the square's width.
|
|
311
|
+
fallbacks. Arrow size is half the square's width. `--lr-overlay-inline-size` (default `auto`, the
|
|
312
|
+
popup shrink-wraps) is an assertive popup width; with it set and no maximum given, the maximum
|
|
313
|
+
falls back to that width instead of `20rem`, and the available viewport space is always a hard
|
|
314
|
+
limit. `--lr-overlay-min-inline-size` (default `0px`) floors the popup for short content, itself
|
|
315
|
+
capped by the available space. `--lr-overlay-content-padding` (default `var(--lr-space-m)`) pads
|
|
316
|
+
`[part~="content"]`. Rendering the arrow switches `[part~="popup"]` to
|
|
297
317
|
`overflow: visible` so it is not clipped, moving the scroll container onto `[part~="content"]`.
|
|
298
318
|
|
|
299
319
|
The popup and its arrow paint from the **shared overlay-surface family** (16.0.0):
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md); family-wide breaking-change summaries: [charts](https://github.com/aceshooting/lyra-ui/blob/main/packages/lyra-ui/llms/charts.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** `chart.js`, `chartjs-plugin-annotation`, `chartjs-plugin-datalabels`, `chartjs-plugin-zoom` — see `llms/peers.md`
|
|
12
|
-
- **Themeable via** 19 parts,
|
|
12
|
+
- **Themeable via** 19 parts, 54 custom properties — see `lr-line-chart.md`
|
|
13
13
|
- **Documented with** `lr-line-chart`: see [lr-line-chart.md](./lr-line-chart.md).
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
11
11
|
- **Deprecations** none
|
|
12
12
|
- **Optional peers** none
|
|
13
|
-
- **Themeable via** 12 parts,
|
|
13
|
+
- **Themeable via** 12 parts, 18 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
14
14
|
- **Tokens by part** (prefer these over a `::part()` rule) `form-control-label`: `--lr-form-control-required-content`
|
|
15
15
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
16
16
|
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
|
|
19
19
|
## `lr-radio-group`
|
|
20
20
|
|
|
21
|
+
`label-placement="start"` (default `top`) puts the label in an inline-start column, shared with the other fields (see "Label beside the field"); the toolbar slot then follows the options.
|
|
22
|
+
|
|
21
23
|
Style the label with `--lr-form-control-label-font-size`, `--lr-form-control-label-font-weight`, and
|
|
22
24
|
`--lr-form-control-label-color`. The default label size follows `--lr-form-control-font-size`.
|
|
23
25
|
|
|
@@ -133,3 +135,11 @@ group has no selected radio. `focus()` moves focus to the selected (or first ena
|
|
|
133
135
|
`blur()` releases whichever owned radio currently contains deep focus, and `click()` mirrors
|
|
134
136
|
`focus()` by activating the selected/first enabled radio. All three are inert under direct or
|
|
135
137
|
fieldset disablement, so the group behaves like one native control.
|
|
138
|
+
|
|
139
|
+
`labelPlacement: 'top' | 'start' = 'top'` (attribute `label-placement`, reflected) puts the label in an inline-start column, sized by `--lr-form-control-label-inline-size`, `--lr-form-control-label-gap` and `--lr-form-control-label-collapse-inline-size`; every form-control label also reads `--lr-form-control-label-line-height` (default `inherit`). See "Label beside the field: `label-placement`".
|
|
140
|
+
|
|
141
|
+
Further custom properties:
|
|
142
|
+
|
|
143
|
+
- `--lr-form-control-label-block-gap` (default `var(--lr-space-xs)`): Space between a label above the field and the field, in top placement and once a `label-placement="start"` row collapses.
|
|
144
|
+
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
145
|
+
- `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 21 parts,
|
|
12
|
+
- **Themeable via** 21 parts, 21 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
14
14
|
|
|
15
15
|
---
|
|
@@ -141,3 +141,9 @@ paint use `--lr-rubric-form-submit-hover-bg`, `--lr-rubric-form-submit-hover-bor
|
|
|
141
141
|
`--lr-rubric-form-skip-active-bg` for its pointer states. All preserve the existing shared-token
|
|
142
142
|
and color-mix treatments as fallbacks. Disabled actions still dim through `--lr-opacity-disabled`,
|
|
143
143
|
the same library-wide token every other disabled control reads.
|
|
144
|
+
|
|
145
|
+
Further custom properties:
|
|
146
|
+
|
|
147
|
+
- `--lr-form-control-label-line-height` (default `inherit`): Line height of the field label.
|
|
148
|
+
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
149
|
+
- `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md); family-wide breaking-change summaries: [charts](https://github.com/aceshooting/lyra-ui/blob/main/packages/lyra-ui/llms/charts.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** `chart.js`, `chartjs-plugin-annotation`, `chartjs-plugin-datalabels`, `chartjs-plugin-zoom` — see `llms/peers.md`
|
|
12
|
-
- **Themeable via** 19 parts,
|
|
12
|
+
- **Themeable via** 19 parts, 54 custom properties — see `lr-line-chart.md`
|
|
13
13
|
- **Documented with** `lr-line-chart`: see [lr-line-chart.md](./lr-line-chart.md).
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 7 parts,
|
|
12
|
+
- **Themeable via** 7 parts, 30 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Tokens by part** (prefer these over a `::part()` rule) `base`: `--lr-segmented-track-bg`, `--lr-segmented-track-border-color`, `--lr-segmented-track-height`, `--lr-segmented-track-min-height`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -42,6 +42,12 @@ string; label: string; icon?: unknown; disabled?: boolean }`; `icon` renders as
|
|
|
42
42
|
action or accessible name. Input is read through a realm-neutral bounded schema snapshot (at most
|
|
43
43
|
256 positions); malformed/hostile entries are skipped, later duplicate values use
|
|
44
44
|
first-valid-value-wins, and the frozen returned array/records never alias caller-owned objects.
|
|
45
|
+
- `iconPlacement: LyraSegmentedIconPlacement = 'start'` (attribute `icon-placement`, reflected once
|
|
46
|
+
set) — `'start' | 'end'`, the logical side of the label each item's `icon` renders on; unsupported
|
|
47
|
+
values normalize to `'start'`.
|
|
48
|
+
- `fullWidth: boolean = false` (attribute `full-width`, reflected) — stretches the control across
|
|
49
|
+
its container and grows the segments to share the spare width, in every `layout`; a `'scroll'` row
|
|
50
|
+
whose segments no longer fit still scrolls.
|
|
45
51
|
- `value: string = ''` — the currently selected item's `value`.
|
|
46
52
|
- `label: string = ''` — field caption and accessible-name fallback. Property-only naming keeps
|
|
47
53
|
its existing `aria-label` value on the internal `role="radiogroup"`.
|
|
@@ -115,7 +121,8 @@ label-click action, form association or validation API.
|
|
|
115
121
|
**CSS parts:** `form-control` (caption, track and hint wrapper), `form-control-label` (caption),
|
|
116
122
|
`hint` (supporting text), `base` (the `role="radiogroup"` root and horizontal scroll owner),
|
|
117
123
|
`segment` (a single `role="radio"` button), `segment-icon` (an optional inert, `aria-hidden`
|
|
118
|
-
decorative
|
|
124
|
+
decorative icon, before the label or after it with `icon-placement="end"`), `segment-label` (the
|
|
125
|
+
segment's label text).
|
|
119
126
|
|
|
120
127
|
**Themeable custom properties:** `--lr-scroll-fade-size` (default `2rem`) — width of the mask fade
|
|
121
128
|
at each horizontal scroll edge of the track, painted only while the track actually overflows (a row
|
|
@@ -172,6 +179,9 @@ Otherwise shared tokens — `--lr-color-border`/`-surface`/`-text`/
|
|
|
172
179
|
`--lr-opacity-disabled`, `--lr-focus-ring-*`, and the `--lr-form-control-*` knobs the `size` tier
|
|
173
180
|
resolves.
|
|
174
181
|
|
|
182
|
+
More themeable custom properties: `--lr-form-control-label-line-height` (default `inherit`): Line
|
|
183
|
+
height of the field label.
|
|
184
|
+
|
|
175
185
|
**Optional peer deps:** none.
|
|
176
186
|
|
|
177
187
|
```html
|
|
@@ -209,6 +219,7 @@ resolves.
|
|
|
209
219
|
|
|
210
220
|
**Additional API surface:**
|
|
211
221
|
|
|
222
|
+
- `--lr-segmented-segment-min-size` — Minimum inline and block size of each segment's hit area. Default: `var(--lr-size-24px)`.
|
|
212
223
|
- `--lr-segmented-track-gap` — Gap between segments. Default: `var(--lr-size-0-125rem)`.
|
|
213
224
|
- `--lr-segmented-track-radius` — Track corner radius. Default: `var(--lr-radius)`.
|
|
214
225
|
- `--lr-segmented-segment-radius` — Each segment's own corner radius, independent of the track's.
|
|
@@ -219,4 +230,11 @@ resolves.
|
|
|
219
230
|
- `--lr-segmented-track-border-color` — Border color of the `base` track, which previously read
|
|
220
231
|
`--lr-color-border` as a literal with no override hook. Default: `var(--lr-color-border)`.
|
|
221
232
|
|
|
233
|
+
Further custom properties:
|
|
234
|
+
|
|
235
|
+
- `--lr-form-control-label-block-gap` (default `var(--lr-space-xs)`): Space between a label above the field and the field, in top placement and once a `label-placement="start"` row collapses.
|
|
236
|
+
- `--lr-form-control-label-line-height` (default `inherit`): Line height of the field label.
|
|
237
|
+
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
238
|
+
- `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
|
|
239
|
+
|
|
222
240
|
---
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via**
|
|
12
|
+
- **Themeable via** 36 parts, 59 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Tokens by part** (prefer these over a `::part()` rule) `form-control-label`: `--lr-form-control-required-content`; `listbox`: `--lr-theme-scrollbar-color`, `--lr-theme-scrollbar-gutter`, `--lr-theme-scrollbar-width`; `option-badge`: `--lr-select-option-badge-bg`; `tag__remove-button`: `--lr-select-tag-remove-hover-bg`; `unknown-value`: `--lr-select-unknown-value-border-style`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -368,7 +368,7 @@ text are part of the focused control's accessible description.
|
|
|
368
368
|
**CSS parts:** `form-control`, `form-control-label`, `label`, `form-control-input`, `combobox`,
|
|
369
369
|
`trigger`, `display-input`, `start`, `prefix`, `end`, `suffix`, `tags` (the legal sibling
|
|
370
370
|
`multiple`-mode chip row), `tag`/`tag__base` (one selected-value chip), `tag-label`/`tag__content`,
|
|
371
|
-
`tag__remove-button`/`tag__remove-button__base
|
|
371
|
+
`tag__remove-button`/`tag__remove-button__base`/`tag__remove-button__button` (all on the same button), and `tag-overflow` (the "+N" chip standing in for the selections past
|
|
372
372
|
`max-options-visible` — it carries **both** `tag` and `tag-overflow`, so `::part(tag)` styles every
|
|
373
373
|
chip while `::part(tag-overflow)` reaches only that one; state after `::part()` never matches, so it
|
|
374
374
|
is encoded in the part name instead), `unknown-value` (the dashed/italic badge shown next to the
|
|
@@ -586,3 +586,11 @@ state mixes from this same token. Scoped independently of `--lr-select-trigger-h
|
|
|
586
586
|
<a id="date-and-range-controls"></a>
|
|
587
587
|
|
|
588
588
|
The start-placed label aligns to the first line of the field, measured with `--lr-form-control-height`.
|
|
589
|
+
|
|
590
|
+
`--lr-form-control-focus-outline` (default the standard focus ring) replaces the trigger's keyboard outline, `--lr-form-control-transition` (default `none`) is the shared opt-in border and halo `transition`, `--lr-select-open-shadow` (default `--lr-form-control-focus-shadow`) is the halo while the listbox is open, and `--lr-form-control-label-line-height` (default `inherit`) sets the label line height.
|
|
591
|
+
|
|
592
|
+
Further custom properties:
|
|
593
|
+
|
|
594
|
+
- `--lr-form-control-label-block-gap` (default `var(--lr-space-xs)`): Space between a label above the field and the field, in top placement and once a `label-placement="start"` row collapses.
|
|
595
|
+
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
596
|
+
- `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 4 parts,
|
|
12
|
+
- **Themeable via** 4 parts, 9 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
|
+
- **Tokens by part** (prefer these over a `::part()` rule) `value`: `--lr-sequence-playback-value-font-family`, `--lr-sequence-playback-value-font-size`, `--lr-sequence-playback-value-font-weight`, `--lr-sequence-playback-value-min-width`, `--lr-sequence-playback-value-text-align`
|
|
13
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
14
15
|
|
|
15
16
|
---
|
|
@@ -45,6 +46,8 @@ keeps its own purpose name. A whitespace-only or empty host label leaves the hos
|
|
|
45
46
|
Mutating playback inside the callback discards its result without immediately retrying it.
|
|
46
47
|
- `withValue: boolean = false` (attribute `with-value`) — show a non-live position readout below
|
|
47
48
|
the range. Hidden by default; it duplicates the range's text and is `aria-hidden`.
|
|
49
|
+
- `fullWidth: boolean = false` (attribute `full-width`, reflected) — stretches the control across its
|
|
50
|
+
container, the range taking the spare width; off by default, so it keeps its content width.
|
|
48
51
|
- `hidden: boolean = false` (reflected; re-declared over the native IDL property so Lit's
|
|
49
52
|
change-tracking sees it and auto-pauses on `hidden = true`)
|
|
50
53
|
|
|
@@ -88,7 +91,10 @@ date, or state instead; enable `with-value` when sighted users also need that te
|
|
|
88
91
|
called at most once per render and both presentations share its result. The visible text wraps at narrow
|
|
89
92
|
allocations and is not a live region, avoiding unsolicited announcements on every timer tick.
|
|
90
93
|
|
|
91
|
-
**Themeable custom properties:** `--lr-sequence-playback-
|
|
94
|
+
**Themeable custom properties:** the `with-value` readout takes `--lr-sequence-playback-value-font-family`
|
|
95
|
+
(default `inherit`), `--lr-sequence-playback-value-font-size` (default `var(--lr-font-size-sm)`), `--lr-sequence-playback-value-font-weight` (default `inherit`),
|
|
96
|
+
`--lr-sequence-playback-value-min-width` (default `0`; reserve room so a changing number does not shift the slider) and `--lr-sequence-playback-value-text-align`
|
|
97
|
+
(default `inherit`). `--lr-sequence-playback-icon-size` (default
|
|
92
98
|
`calc(var(--lr-icon-button-size) * 0.35)` — the play/pause glyph's size; applied as the button's
|
|
93
99
|
`font-size`, and the inline SVG renders at `1em`).
|
|
94
100
|
`--lr-sequence-playback-play-button-active-bg` (default
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 8 parts,
|
|
12
|
+
- **Themeable via** 8 parts, 25 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
14
14
|
|
|
15
15
|
---
|
|
@@ -140,3 +140,10 @@ Color-picker's `lr-input` includes `{ value }`. Combobox filter typing keeps its
|
|
|
140
140
|
contract; typed value events describe committed selections, not the filter query.
|
|
141
141
|
|
|
142
142
|
The start-placed label aligns to the first line of the field, measured with `--lr-form-control-height`.
|
|
143
|
+
|
|
144
|
+
Further custom properties:
|
|
145
|
+
|
|
146
|
+
- `--lr-form-control-label-block-gap` (default `var(--lr-space-xs)`): Space between a label above the field and the field, in top placement and once a `label-placement="start"` row collapses.
|
|
147
|
+
- `--lr-form-control-label-line-height` (default `inherit`): Line height of the field label.
|
|
148
|
+
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
149
|
+
- `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
|