@aceshooting/lyra-ui 32.0.0 → 33.0.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 +224 -1380
- package/README.md +36 -7
- package/custom-elements.slim.json +1 -0
- package/design-tokens.json +1 -1
- package/dist/accent-roles.css +1 -0
- 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 +54 -44
- 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/agent-tools/tool-call-chip/tool-call-chip.class.d.ts +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/chat-composer/chat-composer.class.d.ts +10 -0
- package/dist/components/conversation/code-block/code-block-base.class.d.ts +31 -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 +48 -3
- 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/code-block/code-grammar-registry.d.ts +35 -0
- package/dist/components/conversation/code-block/code-grammar-registry.js +1 -0
- 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 +12 -5
- package/dist/components/conversation/selection-toolbar/selection-toolbar.class.d.ts +1 -1
- 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/usage-badge/usage-badge.class.d.ts +1 -1
- package/dist/components/conversation/voice-picker/voice-picker.class.d.ts +12 -5
- 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 +64 -5
- package/dist/components/data/table/table-support.js +1 -1
- package/dist/components/data/table/table.class.d.ts +78 -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 +54 -8
- 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/catalog-picker-base.d.ts +14 -1
- package/dist/components/forms/checkbox/checkbox.class.js +1 -1
- package/dist/components/forms/checkbox-group/checkbox-group.class.d.ts +28 -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 +18 -3
- package/dist/components/forms/code-editor/code-editor.styles.js +1 -1
- package/dist/components/forms/color-picker/color-picker.class.d.ts +25 -5
- 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-option-html.js +1 -0
- package/dist/components/forms/combobox/combobox.class.d.ts +140 -12
- package/dist/components/forms/combobox/combobox.class.js +113 -22
- package/dist/components/forms/combobox/combobox.styles.js +1 -1
- package/dist/components/forms/country-picker/country-picker.class.d.ts +4 -3
- package/dist/components/forms/currency-picker/currency-picker.class.d.ts +4 -3
- package/dist/components/forms/date-picker/date-input.class.d.ts +53 -3
- 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 +14 -0
- package/dist/components/forms/emoji-picker/emoji-picker.class.js +1 -1
- package/dist/components/forms/icon-button/icon-button.class.d.ts +2 -1
- package/dist/components/forms/icon-button/icon-button.styles.js +1 -1
- package/dist/components/forms/input/input-shared.d.ts +24 -3
- package/dist/components/forms/input/input.styles.js +1 -1
- package/dist/components/forms/input/time-input.class.d.ts +19 -4
- package/dist/components/forms/input/time-input.styles.js +1 -1
- package/dist/components/forms/locale-picker/locale-picker.class.d.ts +17 -5
- package/dist/components/forms/locale-picker/locale-picker.styles.js +1 -1
- package/dist/components/forms/otp-input/otp-input.class.d.ts +8 -3
- package/dist/components/forms/otp-input/otp-input.styles.js +1 -1
- package/dist/components/forms/phone-input/phone-input.class.d.ts +18 -3
- package/dist/components/forms/phone-input/phone-input.styles.js +1 -1
- package/dist/components/forms/radio/radio-group.class.d.ts +23 -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/radio/radio.class.js +2 -2
- package/dist/components/forms/rubric-form/rubric-form.class.d.ts +4 -0
- package/dist/components/forms/select/select.class.d.ts +16 -4
- 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 +8 -3
- package/dist/components/forms/signature-pad/signature-pad.styles.js +1 -1
- package/dist/components/forms/slider/slider.class.d.ts +29 -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 +20 -3
- package/dist/components/forms/textarea/textarea.styles.js +1 -1
- package/dist/components/forms/time-zone-picker/time-zone-picker.class.d.ts +4 -3
- package/dist/components/forms/token-input/token-input.class.d.ts +99 -21
- 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 +4 -3
- 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/command-palette/command-palette.class.d.ts +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 +4 -1
- package/dist/components/layout/menu/menu.styles.js +1 -1
- package/dist/components/layout/navigation-menu-item/navigation-menu-item.class.d.ts +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 +102 -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 +8 -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 +67 -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-source.js +1 -1
- package/dist/components/media/lightbox/lightbox-types.d.ts +4 -1
- package/dist/components/media/lightbox/lightbox.class.d.ts +123 -30
- package/dist/components/media/lightbox/lightbox.class.js +18 -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 +6 -1
- package/dist/components/overlays/context-menu/context-menu.class.js +1 -1
- package/dist/components/overlays/dialog/dialog.class.d.ts +54 -6
- 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 +22 -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 +5 -1
- 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 +30 -4
- package/dist/components/overlays/overlay/popover.class.js +2 -2
- package/dist/components/overlays/overlay/tooltip.class.d.ts +7 -0
- package/dist/components/overlays/overlay/tooltip.class.js +4 -4
- package/dist/components/overlays/toast/toast-item.class.d.ts +3 -2
- 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/retrieval/citation-badge/citation-badge.class.d.ts +1 -1
- package/dist/components/retrieval/entity-chip/entity-chip.class.d.ts +1 -1
- package/dist/components/utility/copy-button/copy-button.class.d.ts +4 -1
- 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 +6 -1
- package/dist/components/utility/export-button/export-button.styles.js +1 -1
- package/dist/components/utility/icon/icon-library-bootstrap.d.ts +50 -0
- package/dist/components/utility/icon/icon-library-bootstrap.js +1 -0
- package/dist/components/utility/icon/icon-library-font-awesome.d.ts +68 -0
- package/dist/components/utility/icon/icon-library-font-awesome.js +1 -0
- 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 +14 -0
- package/dist/components/utility/mention-popover/mention-popover.class.d.ts +1 -1
- package/dist/components/utility/number-ticker/number-ticker.class.d.ts +66 -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/utility/tour/tour.class.d.ts +1 -1
- 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/accessibility-visibility.js +1 -1
- package/dist/internal/all-defined-arguments.d.ts +19 -0
- package/dist/internal/all-defined-arguments.js +1 -0
- package/dist/internal/autoloader-manifest.js +1 -1
- 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/declarative-overlay-action.js +1 -0
- 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-token-css.generated.js +10 -0
- package/dist/internal/document-tokens.generated.js +2 -11
- package/dist/internal/document-tokens.js +2 -2
- package/dist/internal/dom-guards.js +1 -1
- package/dist/internal/external-label-association.js +1 -0
- package/dist/internal/focus-navigation.js +1 -1
- package/dist/internal/form-control/chrome.styles.js +1 -1
- package/dist/internal/form-control-labels.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.d.ts +11 -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/internal/theme-observation.js +1 -1
- 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-citation-badge.md +1 -1
- package/llms/components/lr-code-block-core.md +39 -9
- package/llms/components/lr-code-block.md +59 -6
- package/llms/components/lr-code-editor.md +11 -1
- package/llms/components/lr-color-picker.md +19 -6
- package/llms/components/lr-combobox.md +81 -9
- package/llms/components/lr-context-menu.md +6 -4
- package/llms/components/lr-copy-button.md +6 -4
- package/llms/components/lr-counter.md +60 -0
- package/llms/components/lr-country-picker.md +4 -0
- package/llms/components/lr-currency-picker.md +4 -0
- 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 +101 -9
- package/llms/components/lr-divider.md +14 -5
- package/llms/components/lr-doughnut-chart.md +1 -1
- package/llms/components/lr-drawer.md +32 -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-entity-chip.md +1 -1
- package/llms/components/lr-export-button.md +6 -3
- 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 +104 -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 +119 -14
- 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-mention-popover.md +1 -1
- package/llms/components/lr-menu-item.md +1 -1
- package/llms/components/lr-menu-label.md +5 -2
- package/llms/components/lr-menu.md +22 -7
- package/llms/components/lr-model-select.md +13 -3
- 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 +60 -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 +26 -6
- 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 +11 -3
- package/llms/components/lr-selection-toolbar.md +1 -1
- 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 +67 -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 +9 -2
- package/llms/components/lr-time-zone-picker.md +4 -0
- package/llms/components/lr-timeline-item.md +1 -1
- package/llms/components/lr-timeline.md +47 -3
- package/llms/components/lr-toast-item.md +1 -1
- package/llms/components/lr-toast.md +8 -3
- package/llms/components/lr-token-input.md +68 -11
- package/llms/components/lr-tool-call-chip.md +1 -1
- package/llms/components/lr-tooltip.md +8 -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 +4 -0
- package/llms/components/lr-usage-badge.md +1 -1
- package/llms/components/lr-video.md +5 -4
- package/llms/components/lr-voice-picker.md +10 -2
- package/llms/components/lr-widget.md +2 -2
- package/llms/components/lr-zoomable-frame.md +8 -0
- package/llms/index.md +205 -201
- package/llms/migration.md +103 -16
- package/llms/peers.md +3 -3
- package/llms/shared/events-and-types.md +36 -0
- package/llms/shared/forms-and-accessibility.md +4 -1
- package/llms/shared/frameworks-and-ssr.md +10 -1
- package/llms/shared/imports-and-registration.md +68 -2
- package/llms/shared/localization-and-rtl.md +5 -0
- package/llms/shared/native-styles-and-utilities.md +142 -7
- package/llms/shared/styles-and-tokens.md +60 -6
- package/llms/shared/testing-and-utilities.md +30 -0
- package/llms/shared.md +354 -17
- package/llms/tokens.md +6 -1
- package/llms.txt +3 -3
- package/locales.json +1 -1
- package/package.json +48 -10
- package/registrations.json +1 -1
- package/skills/compose-lyra-interfaces/SKILL.md +1 -1
- package/skills/lyra-ui/SKILL.md +1 -1
- package/skills/lyra-ui/commands/migrate.md +1 -1
|
@@ -13,6 +13,12 @@ export interface LyraComboboxObjectValidatorResult{message:string;isValid:boolea
|
|
|
13
13
|
export interface LyraComboboxObjectValidator{
|
|
14
14
|
/** Host attributes that trigger a fresh validity check when they change.*/
|
|
15
15
|
observedAttributes?:string[];checkValidity:(input:never)=>LyraComboboxObjectValidatorResult;message?:string|((input:never)=>string);}export type LyraComboboxValidator=((value:string|string[],input:LyraCombobox)=>LyraComboboxValidatorResult)|{validate(value:string|string[],input:LyraCombobox):LyraComboboxValidatorResult;}|LyraComboboxObjectValidator;export interface ComboboxSourceRow{readonly value:string;readonly label:string;readonly sub?:string;
|
|
16
|
+
/** Optional rich markup shown in place of the plain label text. It always passes through the
|
|
17
|
+
* optional `dompurify` peer (plus a passive-content pass that drops interactive, network and
|
|
18
|
+
* styling hooks) before rendering. While the peer loads, or when it is missing or fails, the
|
|
19
|
+
* row shows the plain `label`. `label` stays the accessible name, filter text and committed
|
|
20
|
+
* text either way. At most 4,096 UTF-16 code units; longer markup is ignored. */
|
|
21
|
+
readonly html?:string;
|
|
16
22
|
/** Optional decorative leading visual. Its rendered subtree is inert and aria-hidden.*/
|
|
17
23
|
readonly icon?:unknown;
|
|
18
24
|
/** Leading adornment, mirroring `<lr-option>`'s `start`/`prefix` slots. Inert and aria-hidden,
|
|
@@ -38,6 +44,23 @@ export interface ComboboxSourceResult{readonly rows:readonly ComboboxSourceRow[]
|
|
|
38
44
|
* cancellation signal. A one-parameter `(query) => …` function remains assignable under
|
|
39
45
|
* TypeScript's ordinary function-parameter compatibility rules. */
|
|
40
46
|
export type ComboboxSource=(query:string,options:{signal:AbortSignal;limit:number;})=>Promise<readonly ComboboxSourceRow[]|ComboboxSourceResult>;export type LyraComboboxSelectionDirection=LyraSelectionDirection;
|
|
47
|
+
/** The single argument a {@link LyraCombobox.dataSource} provider receives: the query text and an
|
|
48
|
+
* `AbortSignal` that aborts when a newer request supersedes this one. */
|
|
49
|
+
export interface ComboboxRequest{readonly query:string;readonly signal:AbortSignal;}
|
|
50
|
+
/** One option object a `dataSource` provider may return. Every other `ComboboxSourceRow` field
|
|
51
|
+
* is accepted too. */
|
|
52
|
+
export interface ComboboxOption{readonly value:string;readonly label:string;
|
|
53
|
+
/** Optional sanitized rich content for the row; `label` stays its accessible name. See
|
|
54
|
+
* {@link ComboboxSourceRow.html}. */
|
|
55
|
+
readonly html?:string;readonly disabled?:boolean;}
|
|
56
|
+
/** What a `dataSource` provider may return: option objects, option elements, a `{ rows, total }`
|
|
57
|
+
* envelope, or a string of option markup. Elements and markup are read for their `value`, label
|
|
58
|
+
* text and `disabled` state only -- markup is parsed into an inert document and never inserted, so
|
|
59
|
+
* nothing in it runs. */
|
|
60
|
+
export type ComboboxOptions=readonly(ComboboxOption|ComboboxSourceRow|Element)[]|ComboboxSourceResult|string;
|
|
61
|
+
/** An upstream-shaped async option provider: one `{ query, signal }` argument, options or a
|
|
62
|
+
* promise of them back. */
|
|
63
|
+
export type ComboboxDataSource=(request:ComboboxRequest)=>Promise<ComboboxOptions> |ComboboxOptions;
|
|
41
64
|
/** Detail of `lr-filter`: the in-progress filter text, never the committed selection.*/
|
|
42
65
|
export interface ComboboxFilterDetail{value:string;}export type{LyraPickerDetailValue,LyraPickerValue};export interface LyraComboboxEventMap<Multiple extends boolean=boolean>{'lr-invalid':CustomEvent<null>;'lr-show':CustomEvent<null>;'lr-after-show':CustomEvent<null>;'lr-hide':CustomEvent<null>;'lr-after-hide':CustomEvent<null>;'lr-clear':CustomEvent<null>;'lr-create':CustomEvent<{inputValue:string;}>;'lr-filter':CustomEvent<ComboboxFilterDetail>;
|
|
43
66
|
/** `detail.data` is index-aligned with `detail.value`: `data[i]` is the opaque `data` payload
|
|
@@ -45,7 +68,11 @@ export interface ComboboxFilterDetail{value:string;}export type{LyraPickerDetail
|
|
|
45
68
|
* reference and never deep-cloned, or `undefined` for a value resolving to no live row/option. */
|
|
46
69
|
'lr-input':CustomEvent<LyraEventDetailSnapshot<{readonly value:LyraPickerDetailValue<Multiple>;readonly previousValue:LyraPickerDetailValue<Multiple>;readonly data:readonly unknown[];}>>;
|
|
47
70
|
/** Same detail as `lr-input`.*/
|
|
48
|
-
'lr-change':CustomEvent<LyraEventDetailSnapshot<{readonly value:LyraPickerDetailValue<Multiple>;readonly previousValue:LyraPickerDetailValue<Multiple>;readonly data:readonly unknown[];}>>;'lr-change-request':LyraComboboxEventMap<Multiple>['lr-change'];'lr-activate':CustomEvent<{value:string;}>;'lr-source-error':CustomEvent<{error:unknown;query:string;}>;
|
|
71
|
+
'lr-change':CustomEvent<LyraEventDetailSnapshot<{readonly value:LyraPickerDetailValue<Multiple>;readonly previousValue:LyraPickerDetailValue<Multiple>;readonly data:readonly unknown[];}>>;'lr-change-request':LyraComboboxEventMap<Multiple>['lr-change'];'lr-activate':CustomEvent<{value:string;}>;'lr-source-error':CustomEvent<{error:unknown;query:string;}>;
|
|
72
|
+
/** A `source` call is about to be made; `signal` aborts when the request is superseded.*/
|
|
73
|
+
'lr-options-request':CustomEvent<{query:string;signal:AbortSignal;}>;
|
|
74
|
+
/** A `source` call rejected; same moment as `lr-source-error`, in the upstream detail shape.*/
|
|
75
|
+
'lr-options-error':CustomEvent<{error:unknown;request:{query:string;};}>;'lr-retry-request':CustomEvent<null>;input:Event;change:Event;blur:FocusEvent;focus:FocusEvent;}
|
|
49
76
|
/**
|
|
50
77
|
* Stable per-event aliases, so a host can name one event's type without restating the detail
|
|
51
78
|
* schema (or re-deriving it from `LyraComboboxEventMap`). Each narrows with the same `Multiple`
|
|
@@ -74,6 +101,15 @@ export type LyraComboboxChangeEvent<Multiple extends boolean=boolean> =LyraCombo
|
|
|
74
101
|
* An async `source` failure renders as a disabled listbox row, not a shadow-root live region; each
|
|
75
102
|
* current post-mount rejection appends the localized `comboboxLoadError` message to the shared
|
|
76
103
|
* light-DOM assertive announcement sink. Raw caught error text is never exposed to users.
|
|
104
|
+
* An async row (from `source` or `dataSource`) may carry `html`, rich markup rendered in place of
|
|
105
|
+
* its label text as the `option-html` part. The markup always passes through the optional
|
|
106
|
+
* `dompurify` peer, then a passive-content pass that removes interactive elements, network and
|
|
107
|
+
* styling attributes and custom elements; a superseded result is never applied. The row keeps its
|
|
108
|
+
* text `label` as its accessible name, filter text and committed text, and the rich content is
|
|
109
|
+
* `aria-hidden`. While the peer loads, every row shows its plain label. When the peer is missing,
|
|
110
|
+
* unusable or throws, rows stay on their plain labels (never raw markup), the listbox shows the
|
|
111
|
+
* localized `comboboxRichContentUnavailable` note as `option-html-fallback`, and the same message
|
|
112
|
+
* is announced once through the shared polite announcement sink.
|
|
77
113
|
* The floating listbox is a nonmodal shared-overlay-manager entry. Visual stack order, Escape,
|
|
78
114
|
* outside-pointer dismissal, and focus handoff are therefore owned by only the newest Lyra
|
|
79
115
|
* overlay, including when another popup such as `lr-color-picker` remains open underneath it.
|
|
@@ -121,6 +157,12 @@ export type LyraComboboxChangeEvent<Multiple extends boolean=boolean> =LyraCombo
|
|
|
121
157
|
* expand icon — so consumer content never sits outboard of the dropdown chevron.
|
|
122
158
|
* @slot clear-icon - Replaces the clear button's built-in icon.
|
|
123
159
|
* @slot expand-icon - Replaces the dropdown indicator's built-in icon.
|
|
160
|
+
* @slot empty - Replaces the status row shown while no option is available and nothing has been
|
|
161
|
+
* typed. Falls back to `empty-text`, else the localized `noMatches` copy.
|
|
162
|
+
* @slot no-results - Replaces the status row shown while the typed query matches nothing. Falls
|
|
163
|
+
* back to `empty-text`, else the localized `noMatches` copy.
|
|
164
|
+
* @slot loading - Replaces the status row shown while options are loading. Falls back to
|
|
165
|
+
* `loading-text`, else the localized `loading` copy.
|
|
124
166
|
* @event {Event} input - Bubbling, composed, non-cancelable native input notification for filter
|
|
125
167
|
* edits or selection changes.
|
|
126
168
|
* @event {Event} change - Bubbling, composed, non-cancelable native notification that the user
|
|
@@ -148,10 +190,19 @@ export type LyraComboboxChangeEvent<Multiple extends boolean=boolean> =LyraCombo
|
|
|
148
190
|
* query, not necessarily `this.query`/`inputValue`, which may have moved on (or been cleared by
|
|
149
191
|
* closing the listbox) by the time the rejection settles. Not cancelable — the failure has
|
|
150
192
|
* already happened and the error row is already what rendered, so there is nothing to veto.
|
|
193
|
+
* @event lr-options-request - A `source`/`dataSource` call is about to be made, or a `server`-mode
|
|
194
|
+
* request starts, once per call and after the
|
|
195
|
+
* debounce. `detail: { query, signal }`; `signal` is the same `AbortSignal` the source receives and
|
|
196
|
+
* aborts when a newer request supersedes this one, when `source` is reassigned, or when the control
|
|
197
|
+
* is disconnected or adopted. Not cancelable. Emitted only while the call is still current.
|
|
198
|
+
* @event lr-options-error - An async `source` call rejected; fires with `lr-source-error`.
|
|
199
|
+
* `detail: { error, request: { query } }`. Not cancelable.
|
|
151
200
|
* @event lr-retry-request - Cancelable retry proposal before the default retry action. `detail: null`.
|
|
152
201
|
* The failed-load state's `[part='retry-button']` was activated. Cancelable —
|
|
153
202
|
* the built-in action calls `refresh()`, and `preventDefault()` leaves the failure on screen for
|
|
154
203
|
* a host that owns its own retry timing.
|
|
204
|
+
* @method reload - `reload(): void` -- alias of `refresh()`, which in `server` mode also
|
|
205
|
+
* announces a fresh `lr-options-request`.
|
|
155
206
|
* @method refresh - `refresh(): void` — re-runs the current `source` query without changing the
|
|
156
207
|
* source's identity, its debounce controller, or its delay. Queues for the next open when the
|
|
157
208
|
* listbox is closed; does not call a source while the query is below `minQueryLength`, and
|
|
@@ -191,9 +242,10 @@ export type LyraComboboxChangeEvent<Multiple extends boolean=boolean> =LyraCombo
|
|
|
191
242
|
* surface under a coarse or hover-less pointer, which stops mobile Safari zooming on focus. `0px`
|
|
192
243
|
* disables it.
|
|
193
244
|
* @cssprop [--lr-form-control-label-inline-size=30%] - Label column width while
|
|
194
|
-
* `label-placement="start"
|
|
195
|
-
* @cssprop [--lr-form-control-label-gap
|
|
196
|
-
*
|
|
245
|
+
* `label-placement="start"`; `auto` sizes the column to the label text.
|
|
246
|
+
* @cssprop [--lr-form-control-label-gap] - Space between the label and the field: the label
|
|
247
|
+
* column gap while `label-placement="start"` (default `var(--lr-space-m)`), and the gap under a
|
|
248
|
+
* label above the field, in top placement or a collapsed start row (default `var(--lr-space-xs)`).
|
|
197
249
|
* @cssprop [--lr-form-control-label-collapse-inline-size=var(--lr-size-20rem)] - Control width
|
|
198
250
|
* below which `label-placement="start"` returns the label above the field.
|
|
199
251
|
* @cssprop [--lr-form-control-invalid-border-color=var(--lr-color-danger)] - Resting border while the
|
|
@@ -203,6 +255,9 @@ export type LyraComboboxChangeEvent<Multiple extends boolean=boolean> =LyraCombo
|
|
|
203
255
|
* @cssprop [--lr-form-control-label-font-size=var(--lr-font-size-md-sm)] - Font size of the field label.
|
|
204
256
|
* @cssprop [--lr-form-control-label-font-weight=var(--lr-font-weight-semibold)] - Font weight of the field label.
|
|
205
257
|
* @cssprop [--lr-form-control-label-color=inherit] - Text color of the field label.
|
|
258
|
+
* @cssprop [--lr-form-control-label-line-height=inherit] - Line height of the field label.
|
|
259
|
+
* @cssprop [--lr-form-control-label-text-align=inherit] - Text alignment of the field label.
|
|
260
|
+
* @cssprop [--lr-form-control-label-text-transform=inherit] - Text transform of the field label.
|
|
206
261
|
* @csspart form-control-label - The `<label>` element.
|
|
207
262
|
* @csspart label - Compatibility wrapper around the visible label content.
|
|
208
263
|
* @csspart form-control-input - Compatibility wrapper around the editable control.
|
|
@@ -227,6 +282,10 @@ export type LyraComboboxChangeEvent<Multiple extends boolean=boolean> =LyraCombo
|
|
|
227
282
|
* @csspart option-badge - An async option row's optional trailing metadata badge, and the
|
|
228
283
|
* localized "not in catalog" badge on a synthetic unmatched-value row (`with-unknown-option`).
|
|
229
284
|
* @csspart option-overflow - The "+N more" indicator shown when rows are capped by `maxRender`.
|
|
285
|
+
* @csspart option-html - The sanitized rich content of an async row carrying `html`; hidden from
|
|
286
|
+
* assistive technology, which reads the row's text `label` instead.
|
|
287
|
+
* @csspart option-html-fallback - The localized note shown when rows carry `html` but the optional
|
|
288
|
+
* `dompurify` peer is missing or failed, so they fall back to their plain labels.
|
|
230
289
|
* @csspart unknown-value - Badge shown next to the closed single-select input, or a `multiple`-mode
|
|
231
290
|
* tag, when the committed value matches no current option/row (see `isUnknownValue()`).
|
|
232
291
|
* @csspart tags - The multi-select tag container.
|
|
@@ -237,12 +296,20 @@ export type LyraComboboxChangeEvent<Multiple extends boolean=boolean> =LyraCombo
|
|
|
237
296
|
* @csspart tag__content - Compatibility wrapper around a selected tag's visible content.
|
|
238
297
|
* @csspart tag__remove-button - A tag's remove button.
|
|
239
298
|
* @csspart tag__remove-button__base - Compatibility name on a tag's remove button.
|
|
299
|
+
* @csspart tag__remove-button__button - Web Awesome-named alias on the same remove button.
|
|
240
300
|
* @csspart tag-overflow - The "+N" indicator standing in for the selections past
|
|
241
301
|
* `max-options-visible`.
|
|
242
302
|
* @csspart clear-button - The clear button.
|
|
243
303
|
* @csspart expand-icon - The dropdown indicator.
|
|
244
304
|
* @csspart error - Ordinary form-validation text referenced by the internal input; it is not a
|
|
245
305
|
* live region, avoiding a second announcement alongside native validation/focus feedback.
|
|
306
|
+
* @csspart status - The status row shown in place of options; it also carries `empty`,
|
|
307
|
+
* `no-results` or `loading` naming which state it reports.
|
|
308
|
+
* @csspart empty - The status row shown while no option is available and nothing is typed.
|
|
309
|
+
* @csspart no-results - The status row shown while the typed query matches nothing.
|
|
310
|
+
* @csspart loading - The status row shown while options are loading.
|
|
311
|
+
* @csspart spinner - The decorative in-field spinner shown while options load and the listbox is
|
|
312
|
+
* not showing its own loading row.
|
|
246
313
|
* @csspart source-error-row - The listbox row holding the failed-`source` state.
|
|
247
314
|
* @csspart source-error - The shared failed-load state itself, with `source-error-base`,
|
|
248
315
|
* `source-error-icon`, `source-error-heading`, `source-error-description` and
|
|
@@ -311,6 +378,8 @@ export type LyraComboboxChangeEvent<Multiple extends boolean=boolean> =LyraCombo
|
|
|
311
378
|
* `box-shadow` while this control is focused. One name for every field-shaped control in the
|
|
312
379
|
* library, so a halo is configured once rather than per component. Additive: the focus outline and
|
|
313
380
|
* border cue are the accessibility answer to focus and are never replaced by it.
|
|
381
|
+
* @cssprop [--lr-form-control-transition=none] - Opt-in `transition` for this field's border and halo (for
|
|
382
|
+
* example `border-color 150ms, box-shadow 150ms`). Unset, nothing animates; reduced motion always disables it.
|
|
314
383
|
* @cssprop [--lr-form-control-required-content=' *'] - The required marker appended to
|
|
315
384
|
* `form-control-label` while `required` is set. Set it to `''` to suppress the marker, or to any
|
|
316
385
|
* other quoted string (`' (required)'`, a localized word) to replace it.
|
|
@@ -324,12 +393,16 @@ export type LyraComboboxChangeEvent<Multiple extends boolean=boolean> =LyraCombo
|
|
|
324
393
|
* @cssprop [--lr-overlay-border=var(--lr-color-border)] - Shared floating-surface edge colour, on
|
|
325
394
|
* the listbox popup. Unlike a floating panel's decorative edge, it defaults to
|
|
326
395
|
* the control tier: this popup belongs to the control it opens from.
|
|
327
|
-
* @cssprop [--lr-overlay-radius=var(--lr-radius)] - Shared floating-surface corner radius, on the
|
|
396
|
+
* @cssprop [--lr-overlay-radius=var(--lr-radius-container)] - Shared floating-surface corner radius, on the
|
|
328
397
|
* listbox popup.
|
|
329
398
|
* @cssprop [--lr-overlay-shadow-anchored=var(--lr-shadow-m)] - Elevation of the anchored listbox
|
|
330
399
|
* popup.
|
|
331
400
|
* @cssstate blank - Matches while no value is selected.
|
|
332
401
|
* @cssstate disabled - Matches while disabled directly or by an ancestor fieldset.
|
|
402
|
+
* @cssstate loading - Matches while options are loading: `loading` is set or a `source` or
|
|
403
|
+
* `dataSource` request is in flight.
|
|
404
|
+
* @cssstate showing-loading-row - Matches while the open listbox shows its loading row, which is
|
|
405
|
+
* when the in-field spinner is hidden.
|
|
333
406
|
* @cssstate required - Matches while `required` is set, so a consumer can mark the field without
|
|
334
407
|
* duplicating that flag in their own markup.
|
|
335
408
|
* @cssstate optional - Matches while `required` is not set (the complement of `required`).
|
|
@@ -352,6 +425,7 @@ export type LyraComboboxChangeEvent<Multiple extends boolean=boolean> =LyraCombo
|
|
|
352
425
|
* scrolling `listbox`; see `--lr-theme-scrollbar-width`.
|
|
353
426
|
* @cssprop [--lr-theme-scrollbar-color=auto] - Opt-in theme-level `scrollbar-color` (thumb then
|
|
354
427
|
* track) honored by the scrolling `listbox`; see `--lr-theme-scrollbar-width`.
|
|
428
|
+
* @cssprop [--lr-form-control-label-line-height=inherit] - Line height of the field label.
|
|
355
429
|
* @status stable
|
|
356
430
|
* @since 4.0.0
|
|
357
431
|
*/
|
|
@@ -359,7 +433,7 @@ export declare class LyraCombobox<Multiple extends boolean=boolean>extends LyraF
|
|
|
359
433
|
/** `data` carries opaque per-row caller payload -- preserve each item's identity through the
|
|
360
434
|
* frozen event envelope instead of recursively cloning unknown data, the same policy
|
|
361
435
|
* `<lr-prompt-queue>`'s `lr-queue-change` detail uses for its own `items`. */
|
|
362
|
-
protected static readonly identityEventDetailCollectionItems:Readonly<{'lr-input':readonly string[];'lr-change':readonly string[];'lr-change-request':readonly string[];}>;static formAssociated:boolean;static styles:import("lit").CSSResultGroup[];static properties:{customError:{attribute:string;reflect:boolean;noAccessor:boolean;};multiple:{type:BooleanConstructor;reflect:boolean;noAccessor:boolean;};disabled:{type:BooleanConstructor;reflect:boolean;noAccessor:boolean;};required:{type:BooleanConstructor;reflect:boolean;noAccessor:boolean;};readonly:{type:BooleanConstructor;reflect:boolean;noAccessor:boolean;};value:{noAccessor:boolean;};defaultValue:{attribute:string;noAccessor:boolean;};name:{reflect:boolean;noAccessor:boolean;converter:import("lit").ComplexAttributeConverter<string,unknown>;};maxOptionsVisible:{converter:import("lit").ComplexAttributeConverter<number,unknown>;attribute:string;noAccessor:boolean;};maxRender:{converter:import("lit").ComplexAttributeConverter<number,unknown>;attribute:string;noAccessor:boolean;};sourceDelay:{converter:import("lit").ComplexAttributeConverter<number,unknown>;attribute:string;noAccessor:boolean;};minQueryLength:{converter:import("lit").ComplexAttributeConverter<number,unknown>;attribute:string;noAccessor:boolean;};};
|
|
436
|
+
protected static readonly identityEventDetailCollectionItems:Readonly<{'lr-input':readonly string[];'lr-change':readonly string[];'lr-change-request':readonly string[];}>;static formAssociated:boolean;static styles:import("lit").CSSResultGroup[];static properties:{customError:{attribute:string;reflect:boolean;noAccessor:boolean;};multiple:{type:BooleanConstructor;reflect:boolean;noAccessor:boolean;};disabled:{type:BooleanConstructor;reflect:boolean;noAccessor:boolean;};required:{type:BooleanConstructor;reflect:boolean;noAccessor:boolean;};readonly:{type:BooleanConstructor;reflect:boolean;noAccessor:boolean;};value:{noAccessor:boolean;};defaultValue:{attribute:string;noAccessor:boolean;};name:{reflect:boolean;noAccessor:boolean;converter:import("lit").ComplexAttributeConverter<string,unknown>;};maxOptionsVisible:{converter:import("lit").ComplexAttributeConverter<number,unknown>;attribute:string;noAccessor:boolean;};maxRender:{converter:import("lit").ComplexAttributeConverter<number,unknown>;attribute:string;noAccessor:boolean;};sourceDelay:{converter:import("lit").ComplexAttributeConverter<number,unknown>;attribute:string;noAccessor:boolean;};filterDebounce:{converter:import("lit").ComplexAttributeConverter<number,unknown>;attribute:string;noAccessor:boolean;};minQueryLength:{converter:import("lit").ComplexAttributeConverter<number,unknown>;attribute:string;noAccessor:boolean;};};
|
|
363
437
|
/** Placeholder shown in the filter input while empty; hidden once a single-select value is chosen.*/
|
|
364
438
|
placeholder:string;label:string;
|
|
365
439
|
/**
|
|
@@ -393,8 +467,8 @@ allowCustomValue:boolean;
|
|
|
393
467
|
* option's label into `value` (so the form value is the text) and reports the option's `data` in
|
|
394
468
|
* the `lr-change` detail, typed text is committed on Enter or when focus leaves, and the text is
|
|
395
469
|
* kept after blur and is editable in place when the list reopens. `'text'` already accepts any
|
|
396
|
-
* text, so it needs no `allow-custom-value`.
|
|
397
|
-
* normalize to `'value'`.
|
|
470
|
+
* text, so it needs no `allow-custom-value`. An empty-string `value` is no value in this mode.
|
|
471
|
+
* Ignored while `multiple` is set. Unsupported values normalize to `'value'`.
|
|
398
472
|
* @default 'value'
|
|
399
473
|
*/
|
|
400
474
|
get commit():LyraComboboxCommit;set commit(next:LyraComboboxCommit);private _commit;
|
|
@@ -547,13 +621,55 @@ filter:OptionFilter|null;
|
|
|
547
621
|
/** Optional bounded async row source. Receives `{ signal, limit: 2000 }`; may return a legacy
|
|
548
622
|
* readonly row array or `{ rows, total? }`. Results are clone-normalized under row/text ceilings. */
|
|
549
623
|
source:ComboboxSource|null;
|
|
624
|
+
/**
|
|
625
|
+
* Async option provider in the single-argument call shape: it receives `{ query, signal }` and
|
|
626
|
+
* returns options, or a promise of them. Accepted results are option objects
|
|
627
|
+
* (`{ value, label, disabled? }`, plus any other `source` row field), option elements, a
|
|
628
|
+
* `{ rows, total }` envelope, or a string of option markup. Elements and markup contribute only
|
|
629
|
+
* their `value` attribute, label text and `disabled` state; markup is parsed into an inert
|
|
630
|
+
* document and is never inserted, so it cannot run script; only its top-level `<option>` or
|
|
631
|
+
* `*-option` elements become rows. Results then pass the same row and
|
|
632
|
+
* text ceilings as `source`.
|
|
633
|
+
*
|
|
634
|
+
* It drives the same async pipeline as {@link source} -- debounce, `lr-options-request`,
|
|
635
|
+
* cancellation, the loading and failed states -- and assigning either provider replaces the
|
|
636
|
+
* other: this property reads `null` once `source` is assigned. `source` keeps its own
|
|
637
|
+
* `(query, { signal, limit })` call shape.
|
|
638
|
+
* @default null
|
|
639
|
+
*/
|
|
640
|
+
get dataSource():((request:ComboboxRequest)=>Promise<ComboboxOptions> |ComboboxOptions)|null;set dataSource(next:((request:ComboboxRequest)=>Promise<ComboboxOptions> |ComboboxOptions)|null);private _dataSource;private dataSourceAdapter;
|
|
641
|
+
/**
|
|
642
|
+
* Server mode without a provider function: client-side filtering is switched off (`filter` is
|
|
643
|
+
* ignored and every `<lr-option>` child is shown), and each request is announced through
|
|
644
|
+
* `lr-options-request` instead. Typing requests after the `source-delay`/`filter-debounce`
|
|
645
|
+
* wait; opening the listbox and `reload()` request at once. Scheduling a request sets `loading`;
|
|
646
|
+
* the host replaces the `<lr-option>` children for `detail.query` and then sets `loading` back to
|
|
647
|
+
* `false`. A request whose `detail.signal` has aborted was superseded, so its answer should be
|
|
648
|
+
* dropped. While `loading` is set and options are already shown, they stay visible and the
|
|
649
|
+
* in-field `spinner` reports the request; the `loading` row appears only while no option is shown.
|
|
650
|
+
* A `source` or `dataSource` provider takes precedence over this flag.
|
|
651
|
+
* @default false
|
|
652
|
+
*/
|
|
653
|
+
server:boolean;
|
|
654
|
+
/**
|
|
655
|
+
* The option the keyboard is currently on (the `aria-activedescendant` row), or `undefined`
|
|
656
|
+
* while no row is active, the listbox is closed, or the active row has no `<lr-option>` behind
|
|
657
|
+
* it -- an async `source`/`dataSource` row or a synthetic create/unknown-value row. It becomes
|
|
658
|
+
* `undefined` as soon as that option stops being available, for example when a response removes
|
|
659
|
+
* it, and Enter then does nothing to it.
|
|
660
|
+
*
|
|
661
|
+
* Assigning an option moves the keyboard highlight to its row while the listbox is open and the
|
|
662
|
+
* option is shown and available; assigning anything else, including `undefined`, clears the
|
|
663
|
+
* highlight. The write selects nothing and emits no event.
|
|
664
|
+
*/
|
|
665
|
+
get currentOption():LyraOption|undefined;set currentOption(next:LyraOption|undefined);private get serverRequests();
|
|
550
666
|
/** Web Awesome's boolean `autocorrect` IDL; its HTML attribute uses `on`/`off`.*/
|
|
551
667
|
get autocorrect():boolean;set autocorrect(next:boolean);
|
|
552
668
|
/** Lowercase mapped IDL aliases for the remaining camel-case native spellings.*/
|
|
553
669
|
inputmode:string;enterkeyhint:string;
|
|
554
670
|
/** Live text in the native filter input. Programmatic writes are event-silent.
|
|
555
671
|
* @default '' */
|
|
556
|
-
get inputValue():string;set inputValue(next:string);private _query;private get query();private set query(value);private explicitInputValue;private textEdited;private activeIndex;private options;private optionsObserved;private touched;private validityRevision;private validatorAttributeObserver?;private readonly slotPresence;private sourceLoading;private sourceFailed;private sourceEverSettled;private asyncRows;private _sourceTotal;private _sourceTruncated;private readonly sourceErrorAnnouncements;private inputEl?;private optionsSlot?;private readonly sourceDebounce;private sourceToken;private refreshQueued;private sourceAbort?;private _sourceWarmed;private _selectedLabelCache;private _selectedRowCache;private pendingSelectedRowValues?;private _renderedRows;private internals;private _open;private validityController;
|
|
672
|
+
get inputValue():string;set inputValue(next:string);private _query;private get query();private set query(value);private explicitInputValue;private textEdited;private activeIndex;private options;private optionsObserved;private touched;private validityRevision;private validatorAttributeObserver?;private readonly slotPresence;private sourceLoading;private sourceFailed;private sourceEverSettled;private asyncRows;private _sourceTotal;private _sourceTruncated;private readonly sourceErrorAnnouncements;private rowHtml;private rowHtmlUnavailable;private inputEl?;private optionsSlot?;private readonly sourceDebounce;private sourceToken;private refreshQueued;private sourceAbort?;private _sourceWarmed;private _selectedLabelCache;private _selectedRowCache;private pendingSelectedRowValues?;private _renderedRows;private internals;private _open;private validityController;
|
|
557
673
|
/** Consumer-supplied validation message reflected through `custom-error`.*/
|
|
558
674
|
customError:string|null;private _fieldsetDisabled;private listId;private inputId;private cleanup?;private listboxPositioned;private positioningGeneration;private positioningReady;private resolvePositioningReady?;private overlayHandle?;private restoreFocusOnClose;private restoringOverlayFocus;private readonly popupController;private listboxHidden;private listboxRendered;private _isFirstUpdate;private openVetoed;private closeAfterPositioningFailure;private minimumQueryClosePending;private minimumQueryCloseUnpainted;private closeCleanupPending;private _selected;private multiplePreferences;private singleSelectedOption?;private readonly sourceOptionsByRow;private _valueDirty;private _multiple;private _disabled;private _required;private _readonly;private _defaultSelected;private _defaultCaptured;private explicitDefault;private _restoredStateActive;private _name;private validationTargetOverride?;
|
|
559
675
|
/**
|
|
@@ -615,7 +731,9 @@ get readonly():boolean;set readonly(next:boolean);
|
|
|
615
731
|
* Every string, including `''`, is instead a candidate value: `<lr-option value="">` (or a
|
|
616
732
|
* matching async row) is a legitimate row, and assigning `''` selects it when present,
|
|
617
733
|
* mirroring what picking that row already did. A `''`/string assignment that matches nothing
|
|
618
|
-
* still commits, exactly like any other unmatched string -- see `isUnknownValue()`.
|
|
734
|
+
* still commits, exactly like any other unmatched string -- see `isUnknownValue()`. Under
|
|
735
|
+
* `commit="text"` (a free-text field) `''` means no value instead, as clearing the text does:
|
|
736
|
+
* the placeholder shows and `required` reports `valueMissing`.
|
|
619
737
|
*
|
|
620
738
|
* `LyraPickerValue<Multiple>` narrows to `string` on a `LyraCombobox<false>` and `string[]` on a
|
|
621
739
|
* `LyraCombobox<true>`; the unnarrowed default resolves to the published union below, which is
|
|
@@ -653,6 +771,14 @@ get maxRender():number;
|
|
|
653
771
|
* duration clamped to `[0, browser-timer-ceiling]`; `0` fires on every keystroke, a
|
|
654
772
|
* non-finite value falls back to the `200` default. */
|
|
655
773
|
get sourceDelay():number;set sourceDelay(next:number);
|
|
774
|
+
/**
|
|
775
|
+
* Alias of {@link sourceDelay} (attribute `filter-debounce`): the typing debounce before a
|
|
776
|
+
* `source`/`dataSource` call or a `server`-mode request. Its default stays `200`, this
|
|
777
|
+
* component's established typing debounce, where Web Awesome waits `250`; set
|
|
778
|
+
* `filter-debounce="250"` to match that timing exactly.
|
|
779
|
+
* @default 200
|
|
780
|
+
*/
|
|
781
|
+
get filterDebounce():number;set filterDebounce(next:number);
|
|
656
782
|
/** Minimum Unicode code points in the trimmed query before suggestions or source calls are
|
|
657
783
|
* allowed. Counting never changes the displayed or provider query. Zero preserves unrestricted
|
|
658
784
|
* opening and selected-value source warmup; positive values also gate that empty-query warmup.
|
|
@@ -668,7 +794,7 @@ get sourceTruncated():boolean;
|
|
|
668
794
|
* first row, and the write is silent like `value`. A property binding that arrives before local
|
|
669
795
|
* options or async rows is deferred until that source resolves. Read rows remain detached
|
|
670
796
|
* snapshots. */
|
|
671
|
-
get selectedRows():ComboboxSourceRow[];private resolveSelectedRowSlots;private get multipleOccurrences();private rowForOccurrence;private get committed();private rowsByValue;private localRowsByValue;set selectedRows(next:readonly ComboboxSourceRow[]);private get barredFromValidation();private syncValidatorAttributeObserver;private updateValidity;private syncCustomStates;private syncFormValue;
|
|
797
|
+
get selectedRows():ComboboxSourceRow[];private resolveSelectedRowSlots;private get multipleOccurrences();private rowForOccurrence;private get committed();private rowsByValue;private localRowsByValue;set selectedRows(next:readonly ComboboxSourceRow[]);private get barredFromValidation();private syncValidatorAttributeObserver;private updateValidity;private syncCustomStates;private loadingRowShown;private syncLoadingStates;private syncFormValue;
|
|
672
798
|
/** Effective disabled state: this element's own `disabled` OR an ancestor
|
|
673
799
|
* `<fieldset disabled>`'s inherited state -- mirrors native `<input>`, whose
|
|
674
800
|
* own `disabled` IDL property/attribute is never mutated by a fieldset. */
|
|
@@ -715,4 +841,6 @@ hide():Promise<void>;private finalizeCloseState;private activateListboxOverlay;p
|
|
|
715
841
|
* the component's existing "only queries while open" behaviour. Without a `source` it does
|
|
716
842
|
* nothing at all -- local `<lr-option>` children are already live DOM.
|
|
717
843
|
*/
|
|
718
|
-
refresh():void;
|
|
844
|
+
refresh():void;
|
|
845
|
+
/** Alias of {@link refresh}.*/
|
|
846
|
+
reload():void;private runSource;private runSourceRequest;private sanitizeRowHtml;private clearSourceTimer;private onInputBlur;private onComboFocusOut;private onInputFocus;private onKeyDown;private onComboMouseDown;private onListboxMouseDown;private onListboxClick;private renderRows;private renderTag;private statusText;render():TemplateResult;}declare global{interface HTMLElementTagNameMap{'lr-combobox':LyraCombobox;}}
|