@aceshooting/lyra-ui 9.1.1 → 11.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 +785 -0
- package/custom-elements.json +1 -1
- package/design-tokens.json +13 -0
- package/dist/cli/migrate-wa.mjs +216 -1
- package/dist/cli/migration-contract.json +1 -1
- package/dist/components/agent-tools/activity-feed/activity-feed.class.js +1 -1
- package/dist/components/agent-tools/activity-feed/activity-feed.styles.js +0 -16
- package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.class.js +1 -1
- package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.styles.js +7 -5
- package/dist/components/agent-tools/agent-run/agent-run.class.js +2 -2
- package/dist/components/agent-tools/agent-run/agent-run.styles.js +0 -13
- package/dist/components/agent-tools/agent-trace/agent-trace.styles.js +7 -4
- package/dist/components/agent-tools/approval-queue/approval-queue.styles.js +7 -5
- package/dist/components/agent-tools/artifact-panel/artifact-panel.styles.js +0 -3
- package/dist/components/agent-tools/browser-frame/browser-frame.styles.js +3 -5
- package/dist/components/agent-tools/commit-card/commit-card.styles.js +0 -10
- package/dist/components/agent-tools/compare-panel/compare-panel.styles.js +11 -6
- package/dist/components/agent-tools/confirm-bar/confirm-bar.styles.js +0 -46
- package/dist/components/agent-tools/eval-dataset/eval-dataset.styles.js +0 -7
- package/dist/components/agent-tools/evaluation-run/evaluation-run.class.js +2 -2
- package/dist/components/agent-tools/prompt-studio/prompt-studio.styles.js +0 -15
- package/dist/components/agent-tools/result-card/result-card.styles.js +0 -7
- package/dist/components/agent-tools/result-card/result-field.styles.js +0 -5
- package/dist/components/agent-tools/schema-viewer/schema-viewer.styles.js +0 -3
- package/dist/components/agent-tools/span-waterfall/span-waterfall.styles.js +0 -15
- package/dist/components/agent-tools/stack-trace/stack-trace.styles.js +0 -20
- package/dist/components/agent-tools/subagent-panel/subagent-panel.class.js +2 -2
- package/dist/components/agent-tools/subagent-panel/subagent-panel.styles.js +0 -3
- package/dist/components/agent-tools/task-list/task-list.styles.js +0 -15
- package/dist/components/agent-tools/terminal/terminal.class.d.ts +11 -6
- package/dist/components/agent-tools/terminal/terminal.class.js +4 -4
- package/dist/components/agent-tools/terminal/terminal.styles.js +0 -46
- package/dist/components/agent-tools/test-results/test-results.class.js +2 -2
- package/dist/components/agent-tools/test-results/test-results.styles.js +0 -5
- package/dist/components/agent-tools/thinking-panel/thinking-panel.styles.js +0 -41
- package/dist/components/agent-tools/tool-approval-dialog/tool-approval-dialog.styles.js +0 -41
- package/dist/components/agent-tools/tool-call-chip/tool-call-chip.styles.js +0 -30
- package/dist/components/agent-tools/tool-param-form/tool-param-form.class.js +6 -6
- package/dist/components/agent-tools/tool-param-form/tool-param-form.styles.js +0 -5
- package/dist/components/agent-tools/tool-result-dialog/tool-result-dialog.styles.js +0 -20
- package/dist/components/agent-tools/tool-result-view/tool-result-view.styles.js +0 -4
- package/dist/components/agent-tools/tool-select-dialog/tool-select-dialog.styles.js +0 -21
- package/dist/components/agent-tools/trace-tree/trace-tree.styles.js +7 -31
- package/dist/components/charts/chart/box-plot.class.d.ts +27 -0
- package/dist/components/charts/chart/box-plot.class.js +14 -4
- package/dist/components/charts/chart/box-plot.styles.js +28 -20
- package/dist/components/charts/chart/chart-colors.d.ts +1 -1
- package/dist/components/charts/chart/chart-colors.js +1 -1
- package/dist/components/charts/chart/chart-core-loader.d.ts +1 -0
- package/dist/components/charts/chart/chart-core-loader.js +1 -1
- package/dist/components/charts/chart/chart-feature-loader.d.ts +35 -0
- package/dist/components/charts/chart/chart-feature-loader.js +1 -1
- package/dist/components/charts/chart/chart.class.d.ts +120 -0
- package/dist/components/charts/chart/chart.class.js +16 -6
- package/dist/components/charts/chart/chart.styles.js +28 -27
- package/dist/components/charts/chart/lite-chart.class.d.ts +20 -1
- package/dist/components/charts/chart/lite-chart.class.js +4 -4
- package/dist/components/charts/chart/lite-chart.styles.js +0 -27
- package/dist/components/conversation/agent-workspace/agent-workspace.class.d.ts +20 -0
- package/dist/components/conversation/agent-workspace/agent-workspace.class.js +3 -1
- package/dist/components/conversation/agent-workspace/agent-workspace.styles.js +3 -0
- package/dist/components/conversation/audio-visualizer/audio-visualizer.styles.js +0 -7
- package/dist/components/conversation/branch-picker/branch-picker.styles.js +0 -3
- package/dist/components/conversation/chat-composer/chat-composer.styles.js +0 -51
- package/dist/components/conversation/chat-message/chat-message.styles.js +7 -35
- package/dist/components/conversation/chat-viewport/chat-viewport.class.js +1 -1
- package/dist/components/conversation/chat-viewport/chat-viewport.styles.js +0 -33
- package/dist/components/conversation/checkpoint/checkpoint.class.js +1 -1
- package/dist/components/conversation/checkpoint/checkpoint.styles.js +0 -3
- package/dist/components/conversation/code-block/code-block-shared.d.ts +5 -2
- package/dist/components/conversation/code-block/code-block.class.js +1 -1
- package/dist/components/conversation/code-block/code-block.styles.js +4 -95
- package/dist/components/conversation/code-block/code-loader.d.ts +11 -0
- package/dist/components/conversation/code-block/code-loader.js +1 -1
- package/dist/components/conversation/code-block/shiki-types.d.ts +12 -0
- package/dist/components/conversation/code-block/shiki-types.js +1 -1
- package/dist/components/conversation/conversation-item/conversation-item.styles.js +8 -54
- package/dist/components/conversation/generation-metrics/generation-metrics.class.js +2 -2
- package/dist/components/conversation/generation-metrics/generation-metrics.styles.js +0 -17
- package/dist/components/conversation/markdown/markdown-base.class.js +1 -1
- package/dist/components/conversation/markdown/markdown.styles.js +0 -41
- package/dist/components/conversation/message-actions/message-actions.styles.js +0 -3
- package/dist/components/conversation/message-feedback/message-feedback.styles.js +0 -35
- package/dist/components/conversation/message-parts/message-parts.class.d.ts +1 -1
- package/dist/components/conversation/message-parts/message-parts.styles.js +0 -5
- package/dist/components/conversation/model-select/model-select.class.js +3 -3
- package/dist/components/conversation/model-select/model-select.styles.js +12 -47
- package/dist/components/conversation/model-settings-panel/model-settings-panel.styles.js +0 -6
- package/dist/components/conversation/prompt-input/prompt-input.class.d.ts +3 -0
- package/dist/components/conversation/prompt-input/prompt-input.styles.js +0 -10
- package/dist/components/conversation/push-to-talk/push-to-talk.styles.js +0 -8
- package/dist/components/conversation/selection-toolbar/selection-toolbar.styles.js +1 -11
- package/dist/components/conversation/stream-status/stream-status.styles.js +0 -16
- package/dist/components/conversation/streaming-text/streaming-text.styles.js +0 -15
- package/dist/components/conversation/suggestion-chips/suggestion-chips.styles.js +0 -5
- package/dist/components/conversation/thread-list/thread-list.styles.js +0 -23
- package/dist/components/conversation/transcript-feed/transcript-feed.class.d.ts +16 -4
- package/dist/components/conversation/transcript-feed/transcript-feed.class.js +1 -1
- package/dist/components/conversation/transcript-feed/transcript-feed.styles.js +0 -1
- package/dist/components/conversation/typing-indicator/typing-indicator.styles.js +0 -23
- package/dist/components/conversation/usage-badge/usage-badge.styles.js +0 -3
- package/dist/components/conversation/voice-picker/voice-picker.class.js +3 -3
- package/dist/components/conversation/voice-picker/voice-picker.styles.js +9 -29
- package/dist/components/conversation/widget-renderer/resolve.d.ts +2 -0
- package/dist/components/conversation/widget-renderer/resolve.js +1 -1
- package/dist/components/data/calendar/calendar.class.d.ts +15 -2
- package/dist/components/data/calendar/calendar.class.js +2 -2
- package/dist/components/data/calendar/calendar.styles.js +2 -28
- package/dist/components/data/condition-builder/condition-builder.class.d.ts +10 -6
- package/dist/components/data/condition-builder/condition-builder.class.js +2 -2
- package/dist/components/data/condition-builder/condition-builder.styles.js +0 -6
- package/dist/components/data/context-meter/context-meter.styles.js +0 -24
- package/dist/components/data/data-grid/data-grid.class.js +3 -3
- package/dist/components/data/data-grid/data-grid.styles.js +0 -22
- package/dist/components/data/document-library/document-library.class.js +2 -2
- package/dist/components/data/document-library/document-library.styles.js +0 -4
- package/dist/components/data/env-list/env-list.class.js +1 -1
- package/dist/components/data/env-list/env-list.styles.js +7 -4
- package/dist/components/data/file-tree/file-tree.class.d.ts +12 -0
- package/dist/components/data/flow-canvas/flow-canvas.styles.js +12 -19
- package/dist/components/data/flow-controls/flow-controls.class.js +2 -2
- package/dist/components/data/flow-controls/flow-controls.styles.js +3 -36
- package/dist/components/data/flow-minimap/flow-minimap.class.js +1 -1
- package/dist/components/data/flow-minimap/flow-minimap.styles.js +0 -9
- package/dist/components/data/flow-node/flow-node.styles.js +0 -23
- package/dist/components/data/flow-run-status/flow-run-status.class.js +1 -1
- package/dist/components/data/flow-run-status/flow-run-status.styles.js +0 -7
- package/dist/components/data/graph-query-builder/graph-query-builder.class.d.ts +0 -7
- package/dist/components/data/graph-query-builder/graph-query-builder.class.js +1 -1
- package/dist/components/data/graph-query-builder/graph-query-builder.styles.js +0 -10
- package/dist/components/data/heatmap/heatmap-scale.d.ts +20 -0
- package/dist/components/data/heatmap/heatmap-scale.js +1 -1
- package/dist/components/data/heatmap/heatmap.class.d.ts +117 -1
- package/dist/components/data/heatmap/heatmap.class.js +2 -2
- package/dist/components/data/heatmap/heatmap.styles.js +0 -54
- package/dist/components/data/pagination/pagination.styles.js +23 -46
- package/dist/components/data/sequence-strip/sequence-strip.class.d.ts +34 -1
- package/dist/components/data/sequence-strip/sequence-strip.class.js +5 -2
- package/dist/components/data/sequence-strip/sequence-strip.styles.js +14 -20
- package/dist/components/data/sparkline/sparkline.class.js +1 -1
- package/dist/components/data/stat/stat.styles.js +0 -67
- package/dist/components/data/table/table.class.d.ts +42 -3
- package/dist/components/data/table/table.class.js +4 -4
- package/dist/components/data/table/table.styles.js +20 -91
- package/dist/components/data/timeline/timeline-item.styles.js +0 -30
- package/dist/components/data/timeline/timeline.class.d.ts +89 -1
- package/dist/components/data/timeline/timeline.class.js +2 -2
- package/dist/components/data/timeline/timeline.styles.js +111 -31
- package/dist/components/data/tree/tree-item.styles.js +1 -28
- package/dist/components/data/tree/tree.class.js +2 -2
- package/dist/components/data/tree/tree.styles.js +0 -6
- package/dist/components/data/word-cloud/word-cloud.styles.js +0 -5
- package/dist/components/forms/button/button.class.js +1 -1
- package/dist/components/forms/button/button.styles.js +0 -105
- package/dist/components/forms/checkbox/checkbox.class.d.ts +3 -0
- package/dist/components/forms/checkbox/checkbox.class.js +1 -1
- package/dist/components/forms/checkbox/checkbox.styles.js +0 -39
- package/dist/components/forms/checkbox-group/checkbox-group.class.d.ts +21 -2
- package/dist/components/forms/checkbox-group/checkbox-group.class.js +1 -1
- package/dist/components/forms/checkbox-group/checkbox-group.styles.js +0 -18
- package/dist/components/forms/code-editor/code-editor.styles.js +0 -30
- package/dist/components/forms/color-picker/color-picker.class.js +2 -2
- package/dist/components/forms/color-picker/color-picker.styles.js +0 -69
- package/dist/components/forms/combobox/combobox.class.d.ts +71 -3
- package/dist/components/forms/combobox/combobox.class.js +5 -3
- package/dist/components/forms/combobox/combobox.styles.js +31 -111
- package/dist/components/forms/combobox/option.styles.js +7 -1
- package/dist/components/forms/date-picker/date-input.class.js +1 -1
- package/dist/components/forms/date-picker/date-input.styles.js +12 -67
- package/dist/components/forms/date-picker/date-picker.class.d.ts +47 -0
- package/dist/components/forms/date-picker/date-picker.class.js +36 -22
- package/dist/components/forms/date-picker/date-picker.styles.js +82 -29
- package/dist/components/forms/emoji-picker/emoji-data-loader.d.ts +6 -3
- package/dist/components/forms/emoji-picker/emoji-data-loader.js +1 -1
- package/dist/components/forms/emoji-picker/emoji-picker.class.d.ts +8 -1
- package/dist/components/forms/emoji-picker/emoji-picker.class.js +1 -1
- package/dist/components/forms/emoji-picker/emoji-picker.styles.js +3 -41
- package/dist/components/forms/icon-button/icon-button.class.js +1 -1
- package/dist/components/forms/icon-button/icon-button.styles.js +0 -16
- package/dist/components/forms/input/input.styles.js +0 -54
- package/dist/components/forms/input/number-input.styles.d.ts +4 -5
- package/dist/components/forms/input/number-input.styles.js +0 -11
- package/dist/components/forms/input/time-input-shared.d.ts +11 -0
- package/dist/components/forms/input/time-input-shared.js +1 -1
- package/dist/components/forms/input/time-input.class.d.ts +11 -2
- package/dist/components/forms/input/time-input.class.js +1 -1
- package/dist/components/forms/input/time-input.styles.js +0 -6
- package/dist/components/forms/locale-picker/locale-picker.class.js +2 -2
- package/dist/components/forms/locale-picker/locale-picker.styles.js +1 -26
- package/dist/components/forms/otp-input/otp-input.class.js +3 -3
- package/dist/components/forms/otp-input/otp-input.styles.js +0 -16
- package/dist/components/forms/phone-input/phone-input.class.d.ts +9 -1
- package/dist/components/forms/phone-input/phone-input.class.js +2 -2
- package/dist/components/forms/phone-input/phone-input.styles.js +0 -37
- package/dist/components/forms/radio/radio-button.styles.js +1 -30
- package/dist/components/forms/radio/radio-group.styles.js +0 -4
- package/dist/components/forms/radio/radio.styles.js +0 -44
- package/dist/components/forms/rubric-form/rubric-form.styles.js +0 -5
- package/dist/components/forms/select/select.class.js +1 -1
- package/dist/components/forms/select/select.styles.js +14 -114
- package/dist/components/forms/slider/slider.styles.js +0 -55
- package/dist/components/forms/swatch-picker/swatch-picker.class.d.ts +0 -11
- package/dist/components/forms/swatch-picker/swatch-picker.class.js +2 -2
- package/dist/components/forms/swatch-picker/swatch-picker.styles.js +0 -77
- package/dist/components/forms/switch/switch.class.d.ts +3 -0
- package/dist/components/forms/switch/switch.class.js +1 -1
- package/dist/components/forms/switch/switch.styles.js +0 -37
- package/dist/components/forms/textarea/textarea.styles.js +0 -28
- package/dist/components/forms/time-range/time-range.styles.js +12 -84
- package/dist/components/forms/token-input/token-input.class.d.ts +23 -9
- package/dist/components/forms/token-input/token-input.class.js +1 -1
- package/dist/components/forms/token-input/token-input.styles.js +1 -54
- package/dist/components/layout/app-rail/app-rail-item.class.js +2 -2
- package/dist/components/layout/app-rail/app-rail-item.styles.js +0 -13
- package/dist/components/layout/app-rail/app-rail.class.d.ts +5 -0
- package/dist/components/layout/app-rail/app-rail.class.js +1 -1
- package/dist/components/layout/app-rail/app-rail.styles.js +0 -46
- package/dist/components/layout/button-group/button-group.styles.js +0 -6
- package/dist/components/layout/card/card.class.d.ts +12 -0
- package/dist/components/layout/card/card.styles.js +3 -11
- package/dist/components/layout/carousel/carousel.styles.js +0 -1
- package/dist/components/layout/command-palette/command-palette.class.d.ts +8 -0
- package/dist/components/layout/command-palette/command-palette.class.js +3 -1
- package/dist/components/layout/command-palette/command-palette.styles.js +1 -13
- package/dist/components/layout/control-group/control-group.styles.js +0 -7
- package/dist/components/layout/dashboard-grid/dashboard-grid.styles.js +6 -25
- package/dist/components/layout/details/accordion.class.d.ts +13 -0
- package/dist/components/layout/details/accordion.class.js +1 -1
- package/dist/components/layout/details/details.class.js +1 -1
- package/dist/components/layout/details/details.styles.js +0 -12
- package/dist/components/layout/dock-panel/dock-panel.styles.js +0 -45
- package/dist/components/layout/drilldown-panel/drilldown-panel.class.d.ts +2 -0
- package/dist/components/layout/drilldown-panel/drilldown-panel.class.js +2 -2
- package/dist/components/layout/drilldown-panel/drilldown-panel.styles.js +0 -4
- package/dist/components/layout/filter-bar/filter-bar.class.js +1 -1
- package/dist/components/layout/filter-bar/filter-bar.styles.js +0 -9
- package/dist/components/layout/menu/menu-item.class.d.ts +5 -0
- package/dist/components/layout/menu/menu-item.class.js +1 -1
- package/dist/components/layout/menu/menu-item.styles.js +0 -49
- package/dist/components/layout/menu/menu-label.styles.js +0 -2
- package/dist/components/layout/menu/menu.styles.js +0 -18
- package/dist/components/layout/multi-split/multi-split.styles.js +0 -63
- package/dist/components/layout/page/page.class.d.ts +4 -0
- package/dist/components/layout/page/page.class.js +1 -1
- package/dist/components/layout/reorder-list/reorder-item.styles.js +0 -4
- package/dist/components/layout/responsive-panel/responsive-panel.styles.js +0 -27
- package/dist/components/layout/scroller/scroller.styles.js +0 -20
- package/dist/components/layout/segmented/segmented.class.d.ts +7 -1
- package/dist/components/layout/segmented/segmented.class.js +1 -1
- package/dist/components/layout/segmented/segmented.styles.js +69 -37
- package/dist/components/layout/split-panel/split-panel.styles.js +1 -7
- package/dist/components/layout/stepper/stepper.class.d.ts +8 -1
- package/dist/components/layout/stepper/stepper.class.js +1 -1
- package/dist/components/layout/stepper/stepper.styles.js +140 -41
- package/dist/components/layout/tab-group/tab-group.class.d.ts +4 -1
- package/dist/components/layout/tab-group/tab-group.styles.js +9 -75
- package/dist/components/layout/tab-group/tab.styles.js +0 -2
- package/dist/components/layout/virtual-list/virtual-list.class.d.ts +4 -4
- package/dist/components/layout/virtual-list/virtual-list.class.js +1 -1
- package/dist/components/layout/virtual-list/virtual-list.styles.js +0 -68
- package/dist/components/layout/widget/widget.class.d.ts +5 -1
- package/dist/components/layout/widget/widget.class.js +1 -1
- package/dist/components/layout/widget/widget.styles.js +97 -40
- package/dist/components/media/animated-image/animated-image.class.d.ts +3 -0
- package/dist/components/media/animated-image/animated-image.class.js +1 -1
- package/dist/components/media/animated-image/animated-image.styles.js +0 -28
- package/dist/components/media/attachment-chip/attachment-chip.class.d.ts +1 -1
- package/dist/components/media/attachment-chip/attachment-chip.class.js +1 -1
- package/dist/components/media/attachment-chip/attachment-chip.styles.js +0 -31
- package/dist/components/media/attachment-trigger/attachment-trigger.class.js +3 -3
- package/dist/components/media/attachment-trigger/attachment-trigger.styles.js +0 -40
- package/dist/components/media/av-player/av-player.class.d.ts +5 -6
- package/dist/components/media/av-player/av-player.class.js +1 -1
- package/dist/components/media/av-player/av-player.styles.js +0 -45
- package/dist/components/media/avatar/avatar.styles.js +3 -16
- package/dist/components/media/file-icon/file-icon.class.d.ts +1 -2
- package/dist/components/media/file-icon/file-icon.class.js +1 -1
- package/dist/components/media/file-input/file-input.class.d.ts +12 -0
- package/dist/components/media/file-input/file-input.styles.js +3 -24
- package/dist/components/media/flag/flag.class.d.ts +23 -1
- package/dist/components/media/flag/flag.class.js +4 -2
- package/dist/components/media/flag/flag.styles.js +7 -1
- package/dist/components/media/flag/language-map.d.ts +10 -0
- package/dist/components/media/flag/language-map.js +1 -1
- package/dist/components/media/image-comparer/image-comparer.styles.js +4 -33
- package/dist/components/media/image-viewer/image-viewer.class.js +0 -2
- package/dist/components/media/image-viewer/image-viewer.styles.js +7 -27
- package/dist/components/media/lightbox/lightbox.class.js +0 -2
- package/dist/components/media/lightbox/lightbox.styles.js +0 -21
- package/dist/components/media/map/map-loader.d.ts +19 -1
- package/dist/components/media/map/map-loader.js +1 -1
- package/dist/components/media/map/map.class.d.ts +178 -1
- package/dist/components/media/map/map.class.js +15 -3
- package/dist/components/media/map/map.styles.js +20 -17
- package/dist/components/media/media-card/media-card.class.d.ts +14 -3
- package/dist/components/media/media-card/media-card.class.js +1 -1
- package/dist/components/media/media-card/media-card.styles.js +2 -28
- package/dist/components/media/pan-zoom/pan-zoom.styles.js +0 -3
- package/dist/components/media/qr-code/qr-code.class.d.ts +3 -2
- package/dist/components/media/qr-code/qr-code.class.js +2 -2
- package/dist/components/media/qr-code/qr-code.styles.js +0 -3
- package/dist/components/media/sequence-playback/sequence-playback.class.d.ts +2 -0
- package/dist/components/media/sequence-playback/sequence-playback.class.js +2 -1
- package/dist/components/media/sequence-playback/sequence-playback.styles.js +0 -19
- package/dist/components/media/video/video.class.d.ts +23 -2
- package/dist/components/media/video/video.class.js +3 -3
- package/dist/components/media/video/video.styles.js +4 -2
- package/dist/components/media/zoomable-frame/zoomable-frame.class.d.ts +3 -2
- package/dist/components/media/zoomable-frame/zoomable-frame.class.js +2 -2
- package/dist/components/media/zoomable-frame/zoomable-frame.styles.js +0 -5
- package/dist/components/overlays/alert/alert.styles.js +4 -2
- package/dist/components/overlays/badge/badge.styles.js +4 -48
- package/dist/components/overlays/badge/tag.styles.js +0 -14
- package/dist/components/overlays/callout/callout.styles.js +0 -11
- package/dist/components/overlays/chip/chip-group.styles.js +0 -18
- package/dist/components/overlays/chip/chip.styles.js +6 -69
- package/dist/components/overlays/dialog/confirm.d.ts +1 -4
- package/dist/components/overlays/dialog/confirm.js +1 -1
- package/dist/components/overlays/dialog/dialog.class.d.ts +32 -9
- package/dist/components/overlays/dialog/dialog.class.js +1 -1
- package/dist/components/overlays/dialog/dialog.styles.js +0 -43
- package/dist/components/overlays/drawer/drawer.class.d.ts +2 -2
- package/dist/components/overlays/drawer/drawer.styles.js +0 -9
- package/dist/components/overlays/empty/empty.styles.js +0 -12
- package/dist/components/overlays/kbd/kbd.styles.js +0 -8
- package/dist/components/overlays/overlay/dropdown.class.d.ts +1 -6
- package/dist/components/overlays/overlay/dropdown.class.js +2 -2
- package/dist/components/overlays/overlay/overlay.styles.js +0 -28
- package/dist/components/overlays/overlay/popover.class.d.ts +28 -4
- package/dist/components/overlays/overlay/popover.class.js +2 -2
- package/dist/components/overlays/overlay/tooltip.class.d.ts +10 -0
- package/dist/components/overlays/overlay/tooltip.class.js +1 -1
- package/dist/components/overlays/popup/popup.class.d.ts +1 -0
- package/dist/components/overlays/popup/popup.class.js +1 -1
- package/dist/components/overlays/popup/popup.styles.js +0 -15
- package/dist/components/overlays/progress/progress-ring.class.d.ts +9 -1
- package/dist/components/overlays/progress/progress-ring.class.js +3 -3
- package/dist/components/overlays/progress/progress.styles.js +0 -21
- package/dist/components/overlays/rating/rating.styles.js +0 -25
- package/dist/components/overlays/skeleton/skeleton.styles.js +0 -4
- package/dist/components/overlays/spinner/spinner.styles.js +0 -3
- package/dist/components/overlays/toast/toast-item.styles.js +3 -45
- package/dist/components/retrieval/chunk-inspector/chunk-inspector.styles.js +0 -35
- package/dist/components/retrieval/citation-badge/citation-badge.class.d.ts +2 -2
- package/dist/components/retrieval/citation-badge/citation-badge.class.js +3 -3
- package/dist/components/retrieval/citation-badge/citation-badge.styles.js +0 -20
- package/dist/components/retrieval/claim-evidence/claim-evidence.styles.js +0 -8
- package/dist/components/retrieval/community-card/community-card.class.d.ts +1 -0
- package/dist/components/retrieval/community-card/community-card.styles.js +0 -6
- package/dist/components/retrieval/embedding-explorer/embedding-explorer.styles.js +8 -12
- package/dist/components/retrieval/entity-card/entity-card.class.d.ts +4 -3
- package/dist/components/retrieval/entity-card/entity-card.class.js +1 -1
- package/dist/components/retrieval/entity-card/entity-card.styles.js +0 -12
- package/dist/components/retrieval/entity-chip/entity-chip.class.d.ts +10 -4
- package/dist/components/retrieval/entity-chip/entity-chip.class.js +3 -3
- package/dist/components/retrieval/entity-chip/entity-chip.styles.js +6 -9
- package/dist/components/retrieval/entity-dossier/entity-dossier.class.d.ts +19 -5
- package/dist/components/retrieval/graph/graph.class.d.ts +5 -0
- package/dist/components/retrieval/graph/graph.class.js +1 -1
- package/dist/components/retrieval/graph/graph.styles.js +0 -30
- package/dist/components/retrieval/graph-legend/graph-legend.styles.js +0 -3
- package/dist/components/retrieval/ingestion-queue/ingestion-queue.styles.js +0 -25
- package/dist/components/retrieval/knowledge-base-admin/knowledge-base-admin.class.d.ts +2 -0
- package/dist/components/retrieval/knowledge-base-admin/knowledge-base-admin.styles.js +0 -7
- package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.d.ts +20 -6
- package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.js +2 -2
- package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.styles.js +0 -16
- package/dist/components/retrieval/mind-map/mind-map.class.d.ts +5 -3
- package/dist/components/retrieval/mind-map/mind-map.class.js +1 -1
- package/dist/components/retrieval/mind-map/mind-map.styles.js +0 -2
- package/dist/components/retrieval/neighbor-list/neighbor-list.class.d.ts +3 -2
- package/dist/components/retrieval/neighbor-list/neighbor-list.class.js +1 -1
- package/dist/components/retrieval/neighbor-list/neighbor-list.styles.js +0 -30
- package/dist/components/retrieval/node-palette/node-palette.styles.js +0 -11
- package/dist/components/retrieval/path-strip/path-strip.styles.js +0 -10
- package/dist/components/retrieval/provenance-panel/provenance-panel.class.d.ts +12 -3
- package/dist/components/retrieval/provenance-panel/provenance-panel.styles.js +0 -2
- package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.class.d.ts +3 -2
- package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.class.js +2 -2
- package/dist/components/retrieval/retrieval-results/retrieval-results.styles.js +0 -28
- package/dist/components/retrieval/retrieval-search/retrieval-search.styles.js +0 -4
- package/dist/components/retrieval/retrieval-trace/retrieval-trace.styles.js +0 -2
- package/dist/components/retrieval/source-card/source-card.styles.js +0 -13
- package/dist/components/retrieval/source-list/source-list.styles.js +0 -7
- package/dist/components/retrieval/source-picker/source-picker.styles.js +0 -7
- package/dist/components/utility/copy-button/copy-button.styles.js +0 -10
- package/dist/components/utility/diff-view/diff-view.styles.js +0 -14
- package/dist/components/utility/export-button/export-button.styles.js +0 -22
- package/dist/components/utility/icon/icon.styles.js +0 -6
- package/dist/components/utility/json-viewer/json-viewer.styles.js +2 -48
- package/dist/components/utility/known-date/known-date.class.d.ts +7 -3
- package/dist/components/utility/known-date/known-date.styles.js +10 -51
- package/dist/components/utility/live-region/live-region.styles.js +0 -4
- package/dist/components/utility/mention-popover/mention-popover.styles.js +0 -25
- package/dist/components/utility/poll-status/poll-status.styles.js +0 -4
- package/dist/components/utility/random-content/random-content.class.d.ts +22 -0
- package/dist/components/utility/random-content/random-content.class.js +3 -2
- package/dist/components/utility/random-content/random-content.styles.js +6 -13
- package/dist/components/utility/tour/tour.class.d.ts +4 -2
- package/dist/components/utility/tour/tour.class.js +3 -3
- package/dist/components/utility/tour/tour.styles.js +0 -13
- package/dist/components/utility/visually-hidden/visually-hidden.styles.js +0 -5
- package/dist/components/viewers/archive-viewer/archive-viewer.class.js +1 -1
- package/dist/components/viewers/archive-viewer/archive-viewer.styles.d.ts +2 -2
- package/dist/components/viewers/archive-viewer/archive-viewer.styles.js +0 -10
- package/dist/components/viewers/csv-viewer/csv-viewer.class.js +1 -1
- package/dist/components/viewers/csv-viewer/csv-viewer.styles.js +0 -19
- package/dist/components/viewers/dataset-viewer/dataset-viewer.class.js +1 -1
- package/dist/components/viewers/dataset-viewer/dataset-viewer.styles.js +0 -15
- package/dist/components/viewers/document-compare/document-compare.styles.js +0 -3
- package/dist/components/viewers/document-preview/document-preview.styles.js +0 -25
- package/dist/components/viewers/document-viewer/document-viewer.class.d.ts +2 -1
- package/dist/components/viewers/document-viewer/document-viewer.class.js +1 -1
- package/dist/components/viewers/document-viewer/document-viewer.styles.js +0 -5
- package/dist/components/viewers/docx-viewer/docx-viewer.styles.js +0 -17
- package/dist/components/viewers/ebook-viewer/ebook-viewer.styles.js +0 -4
- package/dist/components/viewers/email-viewer/email-viewer.styles.js +0 -7
- package/dist/components/viewers/geojson-view/geojson-view.styles.js +0 -5
- package/dist/components/viewers/highlight-layer/highlight-layer.styles.js +0 -3
- package/dist/components/viewers/notebook-viewer/notebook-viewer.class.js +1 -1
- package/dist/components/viewers/notebook-viewer/notebook-viewer.styles.js +0 -38
- package/dist/components/viewers/page-rail/page-rail.class.js +1 -1
- package/dist/components/viewers/page-rail/page-rail.styles.js +0 -13
- package/dist/components/viewers/pdf-viewer/pdf-loader.d.ts +13 -2
- package/dist/components/viewers/pdf-viewer/pdf-loader.js +1 -1
- package/dist/components/viewers/pdf-viewer/pdf-viewer.class.d.ts +32 -2
- package/dist/components/viewers/pdf-viewer/pdf-viewer.class.js +4 -4
- package/dist/components/viewers/pdf-viewer/pdf-viewer.styles.js +1 -27
- package/dist/components/viewers/pptx-viewer/pptx-viewer.styles.js +0 -3
- package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer.class.js +1 -1
- package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer.styles.js +0 -14
- package/dist/components/viewers/svg-viewer/svg-viewer.styles.js +0 -7
- package/dist/components/viewers/xml-viewer/xml-viewer.styles.js +2 -24
- package/dist/custom-elements-jsx.d.ts +72 -40
- package/dist/events.d.ts +43 -33
- package/dist/internal/agent-status-variants.d.ts +18 -0
- package/dist/internal/agent-status-variants.js +1 -0
- package/dist/internal/announcer.d.ts +8 -3
- package/dist/internal/announcer.js +1 -1
- package/dist/internal/autoloader-manifest.js +1 -1
- package/dist/internal/canvas-color.d.ts +16 -0
- package/dist/internal/canvas-color.js +1 -1
- package/dist/internal/catalog-picker.d.ts +0 -1
- package/dist/internal/catalog-picker.js +1 -1
- package/dist/internal/default-strings.generated.d.ts +1 -0
- package/dist/internal/default-strings.generated.js +1 -1
- package/dist/internal/dev-mode-attribute-warning.d.ts +27 -4
- package/dist/internal/dev-mode-attribute-warning.js +1 -1
- package/dist/internal/localization-runtime.js +1 -1
- package/dist/internal/localization-types.d.ts +1 -1
- package/dist/internal/localization.js +1 -1
- package/dist/internal/lyra-element.d.ts +13 -0
- package/dist/internal/lyra-element.js +1 -1
- package/dist/internal/media-controller.js +1 -1
- package/dist/internal/package-metadata.d.ts +1 -1
- package/dist/internal/package-metadata.js +1 -1
- package/dist/internal/scroll-overflow.d.ts +35 -13
- package/dist/internal/scroll-overflow.js +1 -1
- package/dist/internal/sizes.styles.js +0 -2
- package/dist/internal/specialist-tokens.styles.js +6 -11
- package/dist/internal/text-highlights.d.ts +4 -1
- package/dist/internal/text-highlights.js +1 -1
- package/dist/internal/tokens/palette.styles.js +0 -15
- package/dist/internal/tokens.styles.js +20 -113
- package/dist/lyra.d.ts +9 -6
- package/dist/styles/reservations.css +82 -0
- package/dist/svelte.d.ts +72 -40
- package/dist/translations/ar.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/pt-BR.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/zh-CN.js +1 -1
- package/dist/vue.d.ts +72 -40
- package/llms/components/lr-accordion-item.md +12 -3
- package/llms/components/lr-accordion.md +11 -2
- package/llms/components/lr-agent-eval-dashboard.md +1 -1
- package/llms/components/lr-agent-trace.md +3 -1
- package/llms/components/lr-agent-workspace.md +20 -0
- package/llms/components/lr-artifact-panel.md +10 -4
- package/llms/components/lr-attachment-chip.md +7 -4
- package/llms/components/lr-attachment-trigger.md +7 -4
- package/llms/components/lr-av-player.md +3 -1
- package/llms/components/lr-avatar.md +6 -6
- package/llms/components/lr-bar-chart.md +8 -6
- package/llms/components/lr-box-plot.md +15 -4
- package/llms/components/lr-browser-frame.md +7 -3
- package/llms/components/lr-bubble-chart.md +8 -6
- package/llms/components/lr-calendar.md +9 -2
- package/llms/components/lr-card.md +24 -0
- package/llms/components/lr-chart.md +45 -11
- package/llms/components/lr-chat-viewport.md +7 -2
- package/llms/components/lr-checkbox-group.md +13 -5
- package/llms/components/lr-checkbox.md +5 -2
- package/llms/components/lr-checkpoint.md +6 -2
- package/llms/components/lr-combobox.md +47 -8
- package/llms/components/lr-command-palette.md +4 -1
- package/llms/components/lr-confirm-bar.md +7 -3
- package/llms/components/lr-context-meter.md +12 -11
- package/llms/components/lr-conversation-item.md +7 -4
- package/llms/components/lr-date-input.md +22 -2
- package/llms/components/lr-date-picker.md +23 -3
- package/llms/components/lr-details.md +11 -2
- package/llms/components/lr-dialog.md +16 -10
- package/llms/components/lr-dock-panel.md +7 -10
- package/llms/components/lr-document-preview.md +6 -1
- package/llms/components/lr-document-viewer.md +3 -2
- package/llms/components/lr-doughnut-chart.md +8 -6
- package/llms/components/lr-drawer.md +3 -3
- package/llms/components/lr-entity-card.md +3 -3
- package/llms/components/lr-entity-chip.md +1 -1
- package/llms/components/lr-entity-dossier.md +4 -1
- package/llms/components/lr-file-input.md +2 -2
- package/llms/components/lr-flag.md +30 -8
- package/llms/components/lr-heatmap.md +46 -0
- package/llms/components/lr-histogram.md +7 -4
- package/llms/components/lr-icon.md +1 -1
- package/llms/components/lr-json-schema-viewer.md +2 -1
- package/llms/components/lr-knowledge-graph-explorer.md +8 -3
- package/llms/components/lr-known-date.md +4 -2
- package/llms/components/lr-line-chart.md +8 -6
- package/llms/components/lr-lite-chart.md +16 -6
- package/llms/components/lr-map.md +91 -10
- package/llms/components/lr-markdown-core.md +3 -2
- package/llms/components/lr-media-card.md +28 -12
- package/llms/components/lr-message-parts.md +2 -1
- package/llms/components/lr-model-select.md +9 -10
- package/llms/components/lr-model-settings-panel.md +9 -9
- package/llms/components/lr-neighbor-list.md +1 -1
- package/llms/components/lr-notebook-viewer.md +6 -3
- package/llms/components/lr-option.md +46 -7
- package/llms/components/lr-pdf-viewer.md +62 -2
- package/llms/components/lr-pie-chart.md +8 -6
- package/llms/components/lr-polar-area-chart.md +8 -6
- package/llms/components/lr-popover.md +25 -1
- package/llms/components/lr-progress-ring.md +8 -1
- package/llms/components/lr-prompt-studio.md +1 -1
- package/llms/components/lr-provenance-panel.md +4 -2
- package/llms/components/lr-qr-code.md +1 -1
- package/llms/components/lr-radar-chart.md +8 -6
- package/llms/components/lr-rag-eval-dashboard.md +2 -2
- package/llms/components/lr-random-content.md +13 -0
- package/llms/components/lr-reorder-item.md +6 -1
- package/llms/components/lr-reorder-list.md +6 -1
- package/llms/components/lr-responsive-panel.md +11 -7
- package/llms/components/lr-scatter-chart.md +8 -6
- package/llms/components/lr-sequence-strip.md +16 -2
- package/llms/components/lr-slider.md +12 -5
- package/llms/components/lr-sparkline.md +1 -1
- package/llms/components/lr-suggestion-chips.md +7 -2
- package/llms/components/lr-swatch-picker.md +5 -5
- package/llms/components/lr-switch.md +5 -2
- package/llms/components/lr-table.md +30 -4
- package/llms/components/lr-terminal.md +3 -1
- package/llms/components/lr-thread-list.md +8 -8
- package/llms/components/lr-time-input.md +6 -1
- package/llms/components/lr-timeline-item.md +24 -0
- package/llms/components/lr-timeline.md +25 -1
- package/llms/components/lr-token-input.md +7 -2
- package/llms/components/lr-tool-approval-dialog.md +7 -8
- package/llms/components/lr-tool-call-chip.md +5 -1
- package/llms/components/lr-tool-param-form.md +14 -12
- package/llms/components/lr-tool-result-dialog.md +11 -9
- package/llms/components/lr-tool-result-view.md +7 -6
- package/llms/components/lr-tool-select-dialog.md +18 -16
- package/llms/components/lr-trace-tree.md +3 -1
- package/llms/components/lr-usage-badge.md +4 -1
- package/llms/components/lr-video-playlist.md +1 -1
- package/llms/components/lr-virtual-list.md +22 -14
- package/llms/components/lr-voice-picker.md +8 -5
- package/llms/components/lr-widget-renderer.md +3 -3
- package/llms/components/lr-widget.md +1 -1
- package/llms/components/lr-word-cloud.md +6 -2
- package/llms/peers.md +12 -2
- package/llms/shared.md +70 -2
- package/llms/tokens.md +15 -1
- package/llms-full.txt +1335 -306
- package/package.json +17 -5
- package/vscode-css-data.json +93 -2
- package/vscode-html-data.json +513 -59
- package/web-types.json +457 -72
|
@@ -72,15 +72,15 @@ selector label), `temperature-row`, `temperature-label`, `temperature-value`
|
|
|
72
72
|
internally (both imported unconditionally as side effects, not optional).
|
|
73
73
|
|
|
74
74
|
```html
|
|
75
|
-
<lr-model-settings-panel
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
75
|
+
<lr-model-settings-panel provider="OpenAI" model="gpt-4o" temperature="0.7"></lr-model-settings-panel>
|
|
76
|
+
|
|
77
|
+
<lr-model-settings-panel layout="compact"></lr-model-settings-panel>
|
|
78
|
+
<script type="module">
|
|
79
|
+
const [panel, compactPanel] = document.querySelectorAll("lr-model-settings-panel");
|
|
80
|
+
panel.catalog = ["gpt-4o", "gpt-4o-mini", "gpt-4.1"];
|
|
81
|
+
panel.addEventListener("lr-change", (e) => console.log(e.detail));
|
|
82
|
+
compactPanel.catalog = catalog;
|
|
83
|
+
</script>
|
|
84
84
|
```
|
|
85
85
|
|
|
86
86
|
The internal `lr-slider` renders with its own value readout suppressed (`.showValue=${false}`);
|
|
@@ -30,7 +30,7 @@ graph data) and never mutates a graph.
|
|
|
30
30
|
- `label: string = ''` — fallback name for the stable group. A non-empty host `aria-label` makes
|
|
31
31
|
the host the sole overall owner; an explicitly empty host label stays empty on the group
|
|
32
32
|
|
|
33
|
-
**Events:** `lr-entity-
|
|
33
|
+
**Events:** `lr-entity-select` (`detail: { entityId }`, a row's node button was activated),
|
|
34
34
|
`lr-node-expand` (`detail: { nodeId }`, a row's expand button was activated — deliberately the same
|
|
35
35
|
name and detail shape as `lr-graph`'s own event, so one host handler serves both).
|
|
36
36
|
|
|
@@ -120,9 +120,12 @@ each tone's highlighted-cell background. `--lr-notebook-viewer-highlight-active-
|
|
|
120
120
|
`text/plain`).
|
|
121
121
|
|
|
122
122
|
```html
|
|
123
|
-
<lr-notebook-viewer
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
<lr-notebook-viewer max-height="30rem"></lr-notebook-viewer>
|
|
124
|
+
<script type="module">
|
|
125
|
+
const viewer = document.querySelector("lr-notebook-viewer");
|
|
126
|
+
viewer.notebook = result;
|
|
127
|
+
viewer.addEventListener("lr-load", (e) => console.log(e.detail.cellCount, "cells"));
|
|
128
|
+
</script>
|
|
126
129
|
```
|
|
127
130
|
|
|
128
131
|
A notebook major version outside 4.0–4.5, an invalid shape, or more than 2,000 cells renders a
|
|
@@ -24,6 +24,24 @@ An `lr-option` row remains bounded by its owning listbox: the default label elli
|
|
|
24
24
|
`start`/`end` (or `prefix`/`suffix`) adornment is capped at 40% of the row. Unbroken metadata
|
|
25
25
|
therefore cannot widen a 320px LTR or RTL picker.
|
|
26
26
|
|
|
27
|
+
**Adornments in the popup (fixed in 10.1.0).** Before 10.1.0 this paragraph described behavior the
|
|
28
|
+
code did not have: `lr-combobox` builds its popup from normalized row *data* rather than from the
|
|
29
|
+
light-DOM nodes, so a slotted `start`/`end`/`prefix`/`suffix` adornment had nowhere to land and
|
|
30
|
+
simply never rendered — the documented slots and their documented parts were both dead inside the
|
|
31
|
+
one component `lr-option` exists to feed. They now render. The nodes are **cloned** into the row
|
|
32
|
+
(`option-start` / `option-end` parts, inert and `aria-hidden`, so they never join the option's
|
|
33
|
+
accessible name), which means the author's own `<lr-option>` subtree is left exactly where they put
|
|
34
|
+
it rather than being moved into a shadow root as a side effect of opening a dropdown:
|
|
35
|
+
|
|
36
|
+
```html
|
|
37
|
+
<lr-combobox label="Country">
|
|
38
|
+
<lr-option value="fr"><lr-flag slot="start" country="fr"></lr-flag>France</lr-option>
|
|
39
|
+
<lr-option value="mt"><lr-flag slot="start" country="mt"></lr-flag>Malta</lr-option>
|
|
40
|
+
</lr-combobox>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
An async `source` row can carry the same two fields (`start`, `end`) alongside its existing `icon`.
|
|
44
|
+
|
|
27
45
|
### `lr-combobox`
|
|
28
46
|
|
|
29
47
|
**Properties:**
|
|
@@ -90,8 +108,21 @@ therefore cannot widen a 320px LTR or RTL picker.
|
|
|
90
108
|
mapped IDLs `inputmode` and `enterkeyhint` delegate to the corresponding camel-case native
|
|
91
109
|
properties
|
|
92
110
|
- `inputValue: string` — the live filter input text; programmatic writes are event-silent
|
|
93
|
-
- `maxOptionsVisible: number = 3` (attribute `max-options-visible` — caps how many selected tags
|
|
94
|
-
show before collapsing to `+N
|
|
111
|
+
- `maxOptionsVisible: number = 3` (attribute `max-options-visible` — caps how many selected **tags**
|
|
112
|
+
show before collapsing to `+N`; nothing to do with the suggestion list, see the three-caps note
|
|
113
|
+
below)
|
|
114
|
+
- `visibleOptions?: number` (attribute `visible-options`, new in 10.1.0) — bounds the popup to about
|
|
115
|
+
this many suggestion rows, leaving the rest reachable by scrolling. Purely presentational: every
|
|
116
|
+
row is still rendered. Measured from where row N actually starts rather than computed from a
|
|
117
|
+
token, because a row's height varies with `sub` lines, adornments and group labels. Unset imposes
|
|
118
|
+
no bound of its own and the listbox keeps exactly its previous max-height behavior; zero,
|
|
119
|
+
negative, and non-finite values normalize to unset rather than collapsing the popup
|
|
120
|
+
|
|
121
|
+
**The three caps, which are easy to confuse.** `visibleOptions` caps how many suggestion rows are
|
|
122
|
+
*visible* (presentation; the rest scroll). `maxRender` caps how many suggestion rows are *rendered
|
|
123
|
+
at all* (performance; the rest do not exist and are summarized by `option-overflow`).
|
|
124
|
+
`maxOptionsVisible` caps how many *selected tags* show in multi-select and never touches the
|
|
125
|
+
suggestion list.
|
|
95
126
|
- `emptyText?: string` (attribute `empty-text`) — omission displays localized `noMatches` (`"No
|
|
96
127
|
matches"` in the built-in English locale); any supplied string, including `''`, renders verbatim
|
|
97
128
|
- `loadingText?: string` (attribute `loading-text`) — shown while a `source` fetch is in flight;
|
|
@@ -154,9 +185,12 @@ every selection change and a `form.reset()` — like a native control, only anot
|
|
|
154
185
|
**8.0 migration:** the former camel-case string property `autoCorrect` is not retained as a public
|
|
155
186
|
alias. Set the boolean `autocorrect` IDL, or use `autocorrect="on"` / `autocorrect="off"` in markup.
|
|
156
187
|
|
|
157
|
-
`ComboboxSourceRow = { readonly value: string; readonly label: string; readonly sub?: string; readonly icon?: unknown; readonly
|
|
188
|
+
`ComboboxSourceRow = { readonly value: string; readonly label: string; readonly sub?: string; readonly icon?: unknown; readonly start?: unknown;
|
|
189
|
+
readonly end?: unknown; readonly badge?: string |
|
|
158
190
|
number; accessibleLabel?: string; data?: unknown; dotColor?: string; group?: string; disabled?:
|
|
159
|
-
boolean }` — the row shape used by the async `source` path. `
|
|
191
|
+
boolean }` — the row shape used by the async `source` path. `start` and `end` (new in 10.1.0) are
|
|
192
|
+
the async counterparts of `<lr-option>`'s `start`/`end` adornment slots and render as the
|
|
193
|
+
`option-start` / `option-end` parts, inert and aria-hidden exactly like `icon`. `icon` renders as a decorative leading
|
|
160
194
|
visual whose rendered subtree stays visible but is inert and hidden from assistive technology;
|
|
161
195
|
put independent actions outside it. `badge` renders as trailing metadata, `accessibleLabel` can
|
|
162
196
|
provide richer spoken text than the visible label, and `data` is retained without being rendered
|
|
@@ -264,7 +298,9 @@ adornment-slot wrappers, each `hidden` while nothing is slotted into it), `tags`
|
|
|
264
298
|
`lr-emoji-picker` so one rule styles every grouped list; it labels the `role="group"` wrapper here),
|
|
265
299
|
`option`,
|
|
266
300
|
`option-dot` (the leading status dot, when a row's `dotColor` is set), `option-icon` (the inert,
|
|
267
|
-
aria-hidden decorative leading visual for an async row), `option-
|
|
301
|
+
aria-hidden decorative leading visual for an async row), `option-start` and `option-end` (the inert,
|
|
302
|
+
aria-hidden adornments cloned from the source option's `start`/`prefix` and `end`/`suffix` slots, or
|
|
303
|
+
from an async row's `start`/`end`), `option-label`, `option-sub` (a row's
|
|
268
304
|
secondary line, when `sub` is set), `option-badge` (an async row's trailing metadata),
|
|
269
305
|
`option-overflow` (the "+N more" indicator from `maxRender`), `error`, `hint`
|
|
270
306
|
|
|
@@ -337,7 +373,10 @@ box visibly (nothing is clipped or made unreachable), so leave it unset there.
|
|
|
337
373
|
plain-text contract even when a separate WA `label` override is present.
|
|
338
374
|
|
|
339
375
|
**Events:** `lr-option-change` — bubbles when the option's label or selectable data changes so
|
|
340
|
-
its parent `lr-combobox` or `lr-select` can refresh its normalized option rows.
|
|
376
|
+
its parent `lr-combobox` or `lr-select` can refresh its normalized option rows. It is a private
|
|
377
|
+
child-to-parent refresh signal, not a picker event: the owning `lr-combobox`/`lr-select` consumes
|
|
378
|
+
it and stops it, so it never reaches a listener on the picker host (whose own contract is
|
|
379
|
+
`lr-change`/`lr-input`/`change`/`input`). Listen on the `<lr-option>` itself to observe it.
|
|
341
380
|
|
|
342
381
|
**Slots:** default (visible label), `start`/`end` (WA adornments), and `prefix`/`suffix` (Shoelace
|
|
343
382
|
aliases). `start` and `prefix` project into one leading wrapper; `end` and `suffix` project into one
|
|
@@ -433,6 +472,6 @@ synchronous and fires no `input`/`change`/`lr-change` event.
|
|
|
433
472
|
|
|
434
473
|
**Additional API surface:**
|
|
435
474
|
|
|
436
|
-
- `part="tag-label"` — The
|
|
475
|
+
- `part="tag-label"` — The selected-tag label. Kept on one line and truncated with an ellipsis at `--tag-max-size` (default `var(--lr-size-5rem)`), rather than wrapped. Note that `lr-select`'s tag of the same name defaults to `var(--lr-size-12rem)`, so the same `--tag-max-size` value yields a wider tag there.
|
|
437
476
|
|
|
438
477
|
---
|
|
@@ -32,7 +32,9 @@ current page and
|
|
|
32
32
|
`zoom: number = 1` is clamped to `0.25`–`4`. `maxHeight: string = ''` (attribute `max-height`) is a
|
|
33
33
|
CSS length that, once set, overrides `--lr-pdf-viewer-height` — the block size of the virtualized
|
|
34
34
|
page list — declaratively, writing it inline on `[part="base"]`; invalid CSS `max-height` values,
|
|
35
|
-
declaration breaks, and `url()` are ignored. `
|
|
35
|
+
declaration breaks, and `url()` are ignored. `workerSrc: string = ''` (attribute `worker-src`) is the
|
|
36
|
+
URL of the PDF.js web worker chunk — see **Configuring the PDF.js worker** below.
|
|
37
|
+
`anchorKinds: readonly LyraAnchorKind[] = ['page',
|
|
36
38
|
'text-quote', 'region']` (this viewer's supported `LyraAnchor.kind` values for the shared
|
|
37
39
|
anchor-target contract). The other inherited anchor-target properties are `highlights:
|
|
38
40
|
LyraHighlight[] = []` (property only; reassign after mutation), `activeHighlightId: string | null =
|
|
@@ -49,7 +51,8 @@ nonnegative dimensions.
|
|
|
49
51
|
- `lr-load` — `detail: { pageCount }` — the document reached `ready`. `page` is reset to `1` first.
|
|
50
52
|
- `lr-page-change` — `detail: { page, pageCount }` — fired for scroll-driven page crossings as well
|
|
51
53
|
as `page` assignments and `nextPage()`/`previousPage()`/`goToPage()`.
|
|
52
|
-
- `lr-zoom-change` — `detail: { zoom }
|
|
54
|
+
- `lr-zoom-change` — `detail: { zoom }` — fired for `zoom` assignments as well as
|
|
55
|
+
`zoomIn()`/`zoomOut()`. Never fired for the initial `1`, only for a transition away from it.
|
|
53
56
|
- `lr-search-change` — `detail: { query, matchCount, matchCountExact, activeIndex }` — from `search()`/`searchNext()`/
|
|
54
57
|
`searchPrevious()`/`clearSearch()` and effective-locale re-evaluation. A `src` change invalidates document-relative matches and emits
|
|
55
58
|
the canonical reset `{ query: '', matchCount: 0, matchCountExact: true, activeIndex: -1 }`.
|
|
@@ -64,6 +67,30 @@ nonnegative dimensions.
|
|
|
64
67
|
`pageViewerSnapshot` (`identity`, `status`, `page`, `pageCount`). `identity` changes for every load,
|
|
65
68
|
including same-count replacements.
|
|
66
69
|
|
|
70
|
+
**`lr-page-change`/`lr-zoom-change` are state broadcasts, not user-intent signals.** This differs
|
|
71
|
+
deliberately from the same-named `<lr-pagination>` event and from `<lr-pan-zoom>`'s `lr-zoom-change`,
|
|
72
|
+
and the distinction is worth internalizing before wiring a handler. Pagination and pan-zoom are
|
|
73
|
+
*controlled*: pagination never mutates its own `page`, so its event is a request the host applies,
|
|
74
|
+
and pan-zoom's `zoom` is bound by a parent, so echoing a programmatic write back would feed a loop.
|
|
75
|
+
This viewer instead *owns* `page` and `zoom` — scrolling the page list changes `page` with no
|
|
76
|
+
consumer action at all — so there is no useful "the user did this" subset to isolate, and every
|
|
77
|
+
accepted transition is announced identically: scrolling, `nextPage()`/`previousPage()`/`goToPage()`,
|
|
78
|
+
`zoomIn()`/`zoomOut()`, anchor resolution, the reset to page 1 when a new `src` finishes loading,
|
|
79
|
+
and a plain `viewer.page = 3` / `viewer.zoom = 2` assignment. A handler that mirrors the event back
|
|
80
|
+
into the property it came from is therefore idempotent rather than looping, but it is also
|
|
81
|
+
redundant — read the property, or `pageViewerSnapshot`, instead.
|
|
82
|
+
|
|
83
|
+
A write that clamps or rounds back onto the value already in effect is not a transition and stays
|
|
84
|
+
silent: on a 3-page document already showing page 1, `viewer.page = -7` and `viewer.page = 1.4` both
|
|
85
|
+
settle on page 1 and emit nothing, and `viewer.zoom = 999` at 4× emits nothing.
|
|
86
|
+
|
|
87
|
+
For page-addressed integrations prefer the atomic `pageViewerSnapshot` /
|
|
88
|
+
`lr-page-viewer-state-change` channel over this pair: it carries page, count, load status and
|
|
89
|
+
document `identity` together, and a late subscriber can read the current value synchronously instead
|
|
90
|
+
of having missed the announcement. `<lr-page-rail>` binds that channel for any viewer exposing
|
|
91
|
+
`pageViewerSnapshot` — including this one — and falls back to `lr-load`/`lr-page-change` only for
|
|
92
|
+
older structural sources that do not.
|
|
93
|
+
|
|
67
94
|
**Methods:** `nextPage()`, `previousPage()`, `zoomIn()`, and `zoomOut()` update the corresponding
|
|
68
95
|
controlled state within its supported range. `getPageText(page)` resolves the raw reading-order text
|
|
69
96
|
of one page (per-page LRU-cached, 64 pages), rejecting on no loaded document or an out-of-range page.
|
|
@@ -121,6 +148,39 @@ a PDF is opened. An absent `pdfjs-dist` fails closed and renders
|
|
|
121
148
|
`[part="error"]` with the localized `pdfViewerMissingLibrary` message — there is no partial PDF
|
|
122
149
|
rendering without it.
|
|
123
150
|
|
|
151
|
+
**Configuring the PDF.js worker.** PDF.js renders in a web worker and rejects every document with
|
|
152
|
+
`No "GlobalWorkerOptions.workerSrc" specified.` until it has been told where that worker lives. The
|
|
153
|
+
worker is a separate file inside the peer (`pdfjs-dist/build/pdf.worker.min.mjs`) that only the
|
|
154
|
+
application's own bundler can turn into a real URL — a bare package specifier does not resolve in a
|
|
155
|
+
browser without an import map, and resolving it against this library's own module URL would point
|
|
156
|
+
into `@aceshooting/lyra-ui`'s files, where no worker exists. So a bundled application supplies it,
|
|
157
|
+
either way round:
|
|
158
|
+
|
|
159
|
+
```ts
|
|
160
|
+
// 1. Per element, through the public property/attribute.
|
|
161
|
+
import workerUrl from 'pdfjs-dist/build/pdf.worker.min.mjs?worker&url'; // Vite; see your bundler
|
|
162
|
+
const viewer = document.querySelector('lr-pdf-viewer');
|
|
163
|
+
viewer.workerSrc = workerUrl;
|
|
164
|
+
// or, declaratively: <lr-pdf-viewer worker-src="/assets/pdf.worker.min.mjs"></lr-pdf-viewer>
|
|
165
|
+
|
|
166
|
+
// 2. Once for the whole application, on PDF.js's own singleton, before any viewer loads a document.
|
|
167
|
+
import { GlobalWorkerOptions } from 'pdfjs-dist';
|
|
168
|
+
GlobalWorkerOptions.workerSrc = workerUrl;
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
`workerSrc` accepts a document-relative URL (resolved against the document base) as well as an
|
|
172
|
+
absolute one; only `http:`, `https:`, `blob:` and `file:` URLs are accepted, and anything else — a
|
|
173
|
+
`javascript:` or `data:` URL in particular — is ignored rather than handed to `new Worker()`.
|
|
174
|
+
|
|
175
|
+
`GlobalWorkerOptions` is PDF.js's process-wide singleton and the PDF.js module itself is loaded once
|
|
176
|
+
per page, so `workerSrc` is applied only while that singleton is still unset. Two consequences worth
|
|
177
|
+
knowing before reaching for the per-element form: a worker the application configured itself is never
|
|
178
|
+
overwritten, and when several viewers carry different `workerSrc` values only the first one to load
|
|
179
|
+
PDF.js takes effect for the whole page. Assigning `workerSrc` after PDF.js has already loaded is not
|
|
180
|
+
silently dropped — it is re-applied on the next load — but it still cannot displace an
|
|
181
|
+
already-configured worker. Option 2 above is the right choice for an application that wants one
|
|
182
|
+
explicit worker everywhere.
|
|
183
|
+
|
|
124
184
|
Remote resources are capped at 25 MB; exceeding it surfaces the localized
|
|
125
185
|
`documentPreviewResourceTooLarge` message instead of the PDF.
|
|
126
186
|
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
- **Family** `components/charts/` — see `llms/index.md` for its siblings
|
|
8
8
|
- **Status** `stable` since `4.0.0` — see the maturity and deprecation policy in `llms/shared.md`
|
|
9
9
|
- **Deprecations** none
|
|
10
|
-
- **Optional peers** `chart.js`, `chartjs-plugin-datalabels`, `chartjs-plugin-zoom` — see `llms/peers.md`
|
|
11
|
-
- **Themeable via**
|
|
10
|
+
- **Optional peers** `chart.js`, `chartjs-plugin-annotation`, `chartjs-plugin-datalabels`, `chartjs-plugin-zoom` — see `llms/peers.md`
|
|
11
|
+
- **Themeable via** 16 parts, 35 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
12
12
|
- **Documented with** `lr-line-chart`, `lr-bar-chart`, `lr-doughnut-chart`, `lr-radar-chart`, `lr-polar-area-chart`, `lr-bubble-chart`, `lr-scatter-chart` (same section below)
|
|
13
13
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
14
14
|
|
|
@@ -25,7 +25,8 @@ and behavior there. **See `llms/components/lr-chart.md` for the details, code ex
|
|
|
25
25
|
of every entry in these lists.**
|
|
26
26
|
|
|
27
27
|
**Properties:** `description`, `grid`, `indexAxis` (`index-axis`), `label`, `hiddenDatasets`, `legendPosition`
|
|
28
|
-
(`legend-position`), `max`, `min`, `plugins`, `
|
|
28
|
+
(`legend-position`), `max`, `min`, `plugins`, `scaleType` (`scale-type`), `annotations`,
|
|
29
|
+
`stacked`, `withoutAnimation` (`without-animation`),
|
|
29
30
|
`withoutLegend` (`without-legend`), `withoutTooltip` (`without-tooltip`), `xLabel` (`x-label`),
|
|
30
31
|
`yLabel` (`y-label`), plus additive `labels`, `datasets`, `valueFormatter`, `formatter`, `area`, `zoom`,
|
|
31
32
|
`height`, `y2Label` (`y2-label`), `beginAtZero` (`begin-at-zero`), `dataLabels`
|
|
@@ -43,7 +44,7 @@ complete `hiddenDatasets` snapshot).
|
|
|
43
44
|
**Slots:** default JSON configuration script, `data-table`, `center`.
|
|
44
45
|
|
|
45
46
|
**CSS parts:** `base`, `plot`, `canvas`, `legend`, `legend-item`, `legend-item-hidden`, `legend-swatch`,
|
|
46
|
-
`reset-zoom-button`, `description`, `notices`, `data-table`, `data-truncation`, `feature-warning`, `center`, `error` (neutral visible message
|
|
47
|
+
`reset-zoom-button`, `description`, `notices`, `data-table`, `data-table-toggle`, `data-truncation`, `feature-warning`, `center`, `error` (neutral visible message
|
|
47
48
|
rendered in place of `canvas` when the optional `chart.js` peer dependency fails to load; the
|
|
48
49
|
failure transition is announced through the shared document-level light-DOM assertive sink — see
|
|
49
50
|
`llms/components/lr-chart.md`).
|
|
@@ -52,7 +53,8 @@ failure transition is announced through the shared document-level light-DOM asse
|
|
|
52
53
|
`--lr-chart-tick-color`, `--lr-chart-legend-color`, `--lr-chart-tooltip-bg`,
|
|
53
54
|
`--lr-chart-tooltip-text`, `--lr-chart-legend-item-hover-bg`,
|
|
54
55
|
`--lr-chart-legend-item-active-bg`, `--lr-chart-data-table-button-hover-bg`,
|
|
55
|
-
`--lr-chart-data-table-button-active-bg`, `--lr-chart-
|
|
56
|
+
`--lr-chart-data-table-button-active-bg`, `--lr-chart-data-table-toggle-hover-bg`,
|
|
57
|
+
`--lr-chart-data-table-toggle-active-bg`, `--lr-chart-reset-zoom-button-hover-bg`,
|
|
56
58
|
`--lr-chart-reset-zoom-button-active-bg`, `--lr-chart-canvas-hover-outline-width`, and
|
|
57
59
|
`--lr-chart-pattern-step`, plus `--lr-chart-legend-side-max` — all inherited from `LyraChart`, identical in meaning and default (see
|
|
58
60
|
`lr-chart` above); each of the eight variants below reads the same set, so one rule retunes them
|
|
@@ -66,7 +68,7 @@ together. The mirrored hooks are `--border-color-1`,
|
|
|
66
68
|
`zoom` is set, and `chartjs-plugin-datalabels` only once `data-labels`/`stack-totals` is set.
|
|
67
69
|
|
|
68
70
|
```html
|
|
69
|
-
<lr-bar-chart
|
|
71
|
+
<lr-bar-chart></lr-bar-chart>
|
|
70
72
|
<lr-pie-chart></lr-pie-chart>
|
|
71
73
|
<script>
|
|
72
74
|
document.querySelector('lr-bar-chart').labels = ['A', 'B'];
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
- **Family** `components/charts/` — see `llms/index.md` for its siblings
|
|
8
8
|
- **Status** `stable` since `4.0.0` — see the maturity and deprecation policy in `llms/shared.md`
|
|
9
9
|
- **Deprecations** none
|
|
10
|
-
- **Optional peers** `chart.js`, `chartjs-plugin-datalabels`, `chartjs-plugin-zoom` — see `llms/peers.md`
|
|
11
|
-
- **Themeable via**
|
|
10
|
+
- **Optional peers** `chart.js`, `chartjs-plugin-annotation`, `chartjs-plugin-datalabels`, `chartjs-plugin-zoom` — see `llms/peers.md`
|
|
11
|
+
- **Themeable via** 16 parts, 35 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
12
12
|
- **Documented with** `lr-line-chart`, `lr-bar-chart`, `lr-pie-chart`, `lr-doughnut-chart`, `lr-radar-chart`, `lr-bubble-chart`, `lr-scatter-chart` (same section below)
|
|
13
13
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
14
14
|
|
|
@@ -25,7 +25,8 @@ and behavior there. **See `llms/components/lr-chart.md` for the details, code ex
|
|
|
25
25
|
of every entry in these lists.**
|
|
26
26
|
|
|
27
27
|
**Properties:** `description`, `grid`, `indexAxis` (`index-axis`), `label`, `hiddenDatasets`, `legendPosition`
|
|
28
|
-
(`legend-position`), `max`, `min`, `plugins`, `
|
|
28
|
+
(`legend-position`), `max`, `min`, `plugins`, `scaleType` (`scale-type`), `annotations`,
|
|
29
|
+
`stacked`, `withoutAnimation` (`without-animation`),
|
|
29
30
|
`withoutLegend` (`without-legend`), `withoutTooltip` (`without-tooltip`), `xLabel` (`x-label`),
|
|
30
31
|
`yLabel` (`y-label`), plus additive `labels`, `datasets`, `valueFormatter`, `formatter`, `area`, `zoom`,
|
|
31
32
|
`height`, `y2Label` (`y2-label`), `beginAtZero` (`begin-at-zero`), `dataLabels`
|
|
@@ -43,7 +44,7 @@ complete `hiddenDatasets` snapshot).
|
|
|
43
44
|
**Slots:** default JSON configuration script, `data-table`, `center`.
|
|
44
45
|
|
|
45
46
|
**CSS parts:** `base`, `plot`, `canvas`, `legend`, `legend-item`, `legend-item-hidden`, `legend-swatch`,
|
|
46
|
-
`reset-zoom-button`, `description`, `notices`, `data-table`, `data-truncation`, `feature-warning`, `center`, `error` (neutral visible message
|
|
47
|
+
`reset-zoom-button`, `description`, `notices`, `data-table`, `data-table-toggle`, `data-truncation`, `feature-warning`, `center`, `error` (neutral visible message
|
|
47
48
|
rendered in place of `canvas` when the optional `chart.js` peer dependency fails to load; the
|
|
48
49
|
failure transition is announced through the shared document-level light-DOM assertive sink — see
|
|
49
50
|
`llms/components/lr-chart.md`).
|
|
@@ -52,7 +53,8 @@ failure transition is announced through the shared document-level light-DOM asse
|
|
|
52
53
|
`--lr-chart-tick-color`, `--lr-chart-legend-color`, `--lr-chart-tooltip-bg`,
|
|
53
54
|
`--lr-chart-tooltip-text`, `--lr-chart-legend-item-hover-bg`,
|
|
54
55
|
`--lr-chart-legend-item-active-bg`, `--lr-chart-data-table-button-hover-bg`,
|
|
55
|
-
`--lr-chart-data-table-button-active-bg`, `--lr-chart-
|
|
56
|
+
`--lr-chart-data-table-button-active-bg`, `--lr-chart-data-table-toggle-hover-bg`,
|
|
57
|
+
`--lr-chart-data-table-toggle-active-bg`, `--lr-chart-reset-zoom-button-hover-bg`,
|
|
56
58
|
`--lr-chart-reset-zoom-button-active-bg`, `--lr-chart-canvas-hover-outline-width`, and
|
|
57
59
|
`--lr-chart-pattern-step`, plus `--lr-chart-legend-side-max` — all inherited from `LyraChart`, identical in meaning and default (see
|
|
58
60
|
`lr-chart` above); each of the eight variants below reads the same set, so one rule retunes them
|
|
@@ -66,7 +68,7 @@ together. The mirrored hooks are `--border-color-1`,
|
|
|
66
68
|
`zoom` is set, and `chartjs-plugin-datalabels` only once `data-labels`/`stack-totals` is set.
|
|
67
69
|
|
|
68
70
|
```html
|
|
69
|
-
<lr-bar-chart
|
|
71
|
+
<lr-bar-chart></lr-bar-chart>
|
|
70
72
|
<lr-pie-chart></lr-pie-chart>
|
|
71
73
|
<script>
|
|
72
74
|
document.querySelector('lr-bar-chart').labels = ['A', 'B'];
|
|
@@ -51,7 +51,31 @@ A click-triggered, light-dismiss floating surface positioned with the shared Flo
|
|
|
51
51
|
- `accessibleLabel: string = ''` (attribute **`aria-label`**) — names the popup. An authored host
|
|
52
52
|
attribute wins by presence, including `aria-label=""`; only when it is absent does the property
|
|
53
53
|
or localized "Popover" ("Menu" when `popupRole` is `menu`) fallback apply
|
|
54
|
-
- `popupRole: 'dialog'|'menu' = 'dialog'` (attribute `popup-role`)
|
|
54
|
+
- `popupRole: 'dialog'|'menu'|'none' = 'dialog'` (attribute `popup-role`). `none` (new in 10.1.0)
|
|
55
|
+
renders **no** `role` and no generated `aria-label` on the popup surface, and leaves
|
|
56
|
+
`aria-haspopup` off the trigger, so slotted content owns its own semantics and accessible name.
|
|
57
|
+
It exists for the WAI-ARIA **disclosure navigation** pattern: a flyout of links is not an
|
|
58
|
+
application action menu (`menu` announces "menu, menu item" and expects `menuitem` children) and
|
|
59
|
+
is not an interruptive surface (`dialog`). The `aria-expanded`/`aria-controls` wiring that pattern
|
|
60
|
+
requires is unchanged, as are light dismiss, Escape, focus return, and positioning:
|
|
61
|
+
|
|
62
|
+
```html
|
|
63
|
+
<lr-popover popup-role="none">
|
|
64
|
+
<button slot="trigger">Products</button>
|
|
65
|
+
<nav aria-label="Products">
|
|
66
|
+
<ul><li><a href="/overview">Overview</a></li><li><a href="/pricing">Pricing</a></li></ul>
|
|
67
|
+
</nav>
|
|
68
|
+
</lr-popover>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Note there is deliberately no `aria-haspopup="none"` — that is an invalid attribute value, not a
|
|
72
|
+
neutral one, and axe reports it as a critical violation. `lr-dropdown` still pins `popupRole` to
|
|
73
|
+
`menu`; the escape hatch lives on the general-purpose primitive.
|
|
74
|
+
- `disabled: boolean = false` (reflected, new in 10.0.0) — prevents opening the popover; pointer,
|
|
75
|
+
keyboard, and programmatic `show()`/`open = true` are all refused while set. Becoming disabled also
|
|
76
|
+
closes an already-open popover, and initial `disabled` plus `open` normalizes closed in either
|
|
77
|
+
attribute order. `lr-dropdown` now inherits this from `lr-popover` rather than declaring its own;
|
|
78
|
+
its consumer-facing behavior is unchanged
|
|
55
79
|
|
|
56
80
|
To preserve the previous Lyra-shaped defaults explicitly, use
|
|
57
81
|
`placement="bottom-start" distance="4" without-arrow`; origin-aware migration emits those tokens.
|
|
@@ -20,6 +20,7 @@ A circular progress indicator with the same value contract as `lr-progress-bar`.
|
|
|
20
20
|
**Properties:** `value: number = 0` (reflected), `max: number = 100`, `indeterminate: boolean = false`
|
|
21
21
|
(reflected), `variant: LyraProgressVariant = 'brand'` (reflected, added in 9.0.0 — matches sibling
|
|
22
22
|
`lr-progress-bar`'s semantic-palette vocabulary: `neutral`/`brand`/`success`/`warning`/`danger`),
|
|
23
|
+
`showValue: boolean = false` (attribute `show-value`),
|
|
23
24
|
`label: string = ''` (the mapped accessible-name property), and
|
|
24
25
|
`accessibleLabel: string = ''` (attribute `accessible-label`; a Lyra compatibility
|
|
25
26
|
accessible-name spelling retained by this progress component, while several sibling components use
|
|
@@ -29,7 +30,13 @@ visible default-slot text when supplied, then the localized "Progress". Non-fini
|
|
|
29
30
|
`value`/`max` are normalized (`max <= 0` falls
|
|
30
31
|
back to `100`, `value` clamps to `[0, max]`) rather than producing NaN geometry.
|
|
31
32
|
**Slots:** default — replaces the built-in center label, which otherwise renders the rounded
|
|
32
|
-
percentage (and nothing at all while `indeterminate`).
|
|
33
|
+
percentage **only when `show-value` is set** (and nothing at all while `indeterminate`).
|
|
34
|
+
**Breaking in 10.0.0:** a determinate ring used to render its percentage unconditionally, with no way
|
|
35
|
+
to suppress it short of slotting replacement content. It now gains `showValue`/`show-value` defaulting
|
|
36
|
+
to `false`, exactly matching `lr-progress-bar` — which is what "the same value contract as
|
|
37
|
+
`lr-progress-bar`" above has always claimed but did not deliver. Add `show-value` to keep the
|
|
38
|
+
percentage. `aria-valuetext` still carries it regardless, mirroring `lr-progress-bar`'s own
|
|
39
|
+
independence there, so the accessible value is unaffected.
|
|
33
40
|
Its accessible text uses the same visibility filtering, forwarding-slot mutation/reassignment
|
|
34
41
|
tracking, and explicit-empty host-label precedence as `lr-progress-bar`.
|
|
35
42
|
**Live members:** `indicator: SVGCircleElement | null` returns the rendered indicator circle (or
|
|
@@ -27,7 +27,7 @@ persistence.
|
|
|
27
27
|
`versions: readonly PromptStudioVersion[] = []` is a property-only host-controlled input;
|
|
28
28
|
empty/blank message and version ids are omitted and later duplicates use deterministic first-wins
|
|
29
29
|
identity before rendering, editing, focus, selection, and events;
|
|
30
|
-
`selectedVersionId: string =
|
|
30
|
+
`selectedVersionId: string | null = null` (attribute `selected-version-id`); `label: string = ''`;
|
|
31
31
|
`heading: string = ''` — visible toolbar heading, falling back to the localized Prompt Studio
|
|
32
32
|
label when unset;
|
|
33
33
|
`running: boolean = false`, `disabled: boolean = false`, and `reorderable: boolean = false`
|
|
@@ -35,8 +35,10 @@ chip` row, one `lr-path-strip` per relationship, `lr-community-card`, `lr-chunk-
|
|
|
35
35
|
**Events:** `lr-toggle` (`detail: { section, expanded }`, a section header was toggled —
|
|
36
36
|
`section` is `'entities' | 'relationships' | 'communities' | 'chunks'`). Because the panel is a
|
|
37
37
|
conduit, every affordance it renders also reaches a listener on the panel itself, and all are
|
|
38
|
-
part of its typed event map: `lr-entity-
|
|
39
|
-
|
|
38
|
+
part of its typed event map: `lr-entity-select` (`detail: { entityId }`, from an entity chip),
|
|
39
|
+
`lr-entity-activate` (`detail: { entityId, occurrenceIndex? }`, from a community card member or
|
|
40
|
+
path-strip node — the only name either one emits, and the only one carrying `occurrenceIndex`),
|
|
41
|
+
`lr-entity-open` (`detail: { entityId }`, an entity chip double-click or
|
|
40
42
|
Space), `lr-drill` (`detail: { communityId }`, a community card's title, drill button, or overflow chip), and
|
|
41
43
|
`lr-relation-activate` (`detail: { relation, sourceNodeId?, targetNodeId?, occurrenceIndex }`, a relationship path-strip
|
|
42
44
|
edge), plus `lr-chunk-open` (`detail: { chunkId, sourceId, anchor? }`) and `lr-expand`
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
- **Class** `LyraQrCode`, also available unregistered from `@aceshooting/lyra-ui/components/media/qr-code/qr-code.class.js`
|
|
7
7
|
- **Family** `components/media/` — see `llms/index.md` for its siblings
|
|
8
8
|
- **Status** `stable` since `4.0.0` — see the maturity and deprecation policy in `llms/shared.md`
|
|
9
|
-
- **Deprecated part** `base` since `8.2.3`; use part `::part(qr-code)`; removal not before `10.0.0` — The qr-code part names the rendered code wrapper explicitly; base remains on that same node during the compatibility window.
|
|
9
|
+
- **Deprecated part** `base` since `8.2.3`; use part `::part(qr-code)`; removal not before `10.0.0` — The qr-code part names the rendered code wrapper explicitly; base remains on that same node during the compatibility window. That version is a policy floor, not a plan: `wa-qr-code` still publishes `base` as a deprecated part and `sl-qr-code` still publishes it as its only, undeprecated part, so this alias stays for as long as either upstream ships it.
|
|
10
10
|
- **Optional peers** `qrcode` — see `llms/peers.md`
|
|
11
11
|
- **Themeable via** 6 parts, 2 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
12
12
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
- **Family** `components/charts/` — see `llms/index.md` for its siblings
|
|
8
8
|
- **Status** `stable` since `4.0.0` — see the maturity and deprecation policy in `llms/shared.md`
|
|
9
9
|
- **Deprecations** none
|
|
10
|
-
- **Optional peers** `chart.js`, `chartjs-plugin-datalabels`, `chartjs-plugin-zoom` — see `llms/peers.md`
|
|
11
|
-
- **Themeable via**
|
|
10
|
+
- **Optional peers** `chart.js`, `chartjs-plugin-annotation`, `chartjs-plugin-datalabels`, `chartjs-plugin-zoom` — see `llms/peers.md`
|
|
11
|
+
- **Themeable via** 16 parts, 35 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
12
12
|
- **Documented with** `lr-line-chart`, `lr-bar-chart`, `lr-pie-chart`, `lr-doughnut-chart`, `lr-polar-area-chart`, `lr-bubble-chart`, `lr-scatter-chart` (same section below)
|
|
13
13
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
14
14
|
|
|
@@ -25,7 +25,8 @@ and behavior there. **See `llms/components/lr-chart.md` for the details, code ex
|
|
|
25
25
|
of every entry in these lists.**
|
|
26
26
|
|
|
27
27
|
**Properties:** `description`, `grid`, `indexAxis` (`index-axis`), `label`, `hiddenDatasets`, `legendPosition`
|
|
28
|
-
(`legend-position`), `max`, `min`, `plugins`, `
|
|
28
|
+
(`legend-position`), `max`, `min`, `plugins`, `scaleType` (`scale-type`), `annotations`,
|
|
29
|
+
`stacked`, `withoutAnimation` (`without-animation`),
|
|
29
30
|
`withoutLegend` (`without-legend`), `withoutTooltip` (`without-tooltip`), `xLabel` (`x-label`),
|
|
30
31
|
`yLabel` (`y-label`), plus additive `labels`, `datasets`, `valueFormatter`, `formatter`, `area`, `zoom`,
|
|
31
32
|
`height`, `y2Label` (`y2-label`), `beginAtZero` (`begin-at-zero`), `dataLabels`
|
|
@@ -43,7 +44,7 @@ complete `hiddenDatasets` snapshot).
|
|
|
43
44
|
**Slots:** default JSON configuration script, `data-table`, `center`.
|
|
44
45
|
|
|
45
46
|
**CSS parts:** `base`, `plot`, `canvas`, `legend`, `legend-item`, `legend-item-hidden`, `legend-swatch`,
|
|
46
|
-
`reset-zoom-button`, `description`, `notices`, `data-table`, `data-truncation`, `feature-warning`, `center`, `error` (neutral visible message
|
|
47
|
+
`reset-zoom-button`, `description`, `notices`, `data-table`, `data-table-toggle`, `data-truncation`, `feature-warning`, `center`, `error` (neutral visible message
|
|
47
48
|
rendered in place of `canvas` when the optional `chart.js` peer dependency fails to load; the
|
|
48
49
|
failure transition is announced through the shared document-level light-DOM assertive sink — see
|
|
49
50
|
`llms/components/lr-chart.md`).
|
|
@@ -52,7 +53,8 @@ failure transition is announced through the shared document-level light-DOM asse
|
|
|
52
53
|
`--lr-chart-tick-color`, `--lr-chart-legend-color`, `--lr-chart-tooltip-bg`,
|
|
53
54
|
`--lr-chart-tooltip-text`, `--lr-chart-legend-item-hover-bg`,
|
|
54
55
|
`--lr-chart-legend-item-active-bg`, `--lr-chart-data-table-button-hover-bg`,
|
|
55
|
-
`--lr-chart-data-table-button-active-bg`, `--lr-chart-
|
|
56
|
+
`--lr-chart-data-table-button-active-bg`, `--lr-chart-data-table-toggle-hover-bg`,
|
|
57
|
+
`--lr-chart-data-table-toggle-active-bg`, `--lr-chart-reset-zoom-button-hover-bg`,
|
|
56
58
|
`--lr-chart-reset-zoom-button-active-bg`, `--lr-chart-canvas-hover-outline-width`, and
|
|
57
59
|
`--lr-chart-pattern-step`, plus `--lr-chart-legend-side-max` — all inherited from `LyraChart`, identical in meaning and default (see
|
|
58
60
|
`lr-chart` above); each of the eight variants below reads the same set, so one rule retunes them
|
|
@@ -66,7 +68,7 @@ together. The mirrored hooks are `--border-color-1`,
|
|
|
66
68
|
`zoom` is set, and `chartjs-plugin-datalabels` only once `data-labels`/`stack-totals` is set.
|
|
67
69
|
|
|
68
70
|
```html
|
|
69
|
-
<lr-bar-chart
|
|
71
|
+
<lr-bar-chart></lr-bar-chart>
|
|
70
72
|
<lr-pie-chart></lr-pie-chart>
|
|
71
73
|
<script>
|
|
72
74
|
document.querySelector('lr-bar-chart').labels = ['A', 'B'];
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
- **Family** `components/retrieval/` — see `llms/index.md` for its siblings
|
|
8
8
|
- **Status** `stable` since `7.0.0` — see the maturity and deprecation policy in `llms/shared.md`
|
|
9
9
|
- **Deprecations** none
|
|
10
|
-
- **Optional peers** `chart.js`, `chartjs-plugin-datalabels`, `chartjs-plugin-zoom` — see `llms/peers.md`
|
|
10
|
+
- **Optional peers** `chart.js`, `chartjs-plugin-annotation`, `chartjs-plugin-datalabels`, `chartjs-plugin-zoom` — see `llms/peers.md`
|
|
11
11
|
- **Themeable via** 13 parts, 0 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
12
12
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
13
13
|
|
|
@@ -36,7 +36,7 @@ duplicates are omitted first-wins before metric fallback, slice derivation/filte
|
|
|
36
36
|
history, counts, rendering, or actions.
|
|
37
37
|
|
|
38
38
|
**Events:** `lr-metric-change` (`{ metricId }`), `lr-slice-change` (`{ slice }`), and
|
|
39
|
-
`lr-run-
|
|
39
|
+
`lr-run-change` (`{ run }`). All are controlled intents; the component does not mutate the
|
|
40
40
|
corresponding selection properties.
|
|
41
41
|
|
|
42
42
|
**CSS parts:** `base`, `heading`, `slices`, `slice`, `slice-selected`, `metrics`, `metric`,
|
|
@@ -101,3 +101,16 @@ behavior warning; direct SVG candidates and the documented animation vocabulary
|
|
|
101
101
|
used (a11y-tree inconsistencies across engines).
|
|
102
102
|
- Slot/focus microtasks and autoplay never queue new selection work while detached; reconnecting
|
|
103
103
|
starts again from current state rather than replaying stale work.
|
|
104
|
+
- Non-selected candidates are hidden by the component's own `::slotted([hidden])` rule, not by the
|
|
105
|
+
UA's. `::slotted(*)` sets `display: inline-block` on every candidate, and an author-origin
|
|
106
|
+
declaration always beats the user-agent `[hidden] { display: none }` — so the rule that restores
|
|
107
|
+
the native meaning of `hidden` is load-bearing, and an author overriding `display` on
|
|
108
|
+
`::slotted` content from outside must keep the hidden case at `display: none`.
|
|
109
|
+
`hidden="until-found"` is exempted, exactly as the UA rule exempts it.
|
|
110
|
+
- **Before script runs, the first candidate is the one that shows.** Selection happens after the
|
|
111
|
+
first client render and works by setting `hidden`/`aria-hidden` on light-DOM siblings, which Lit
|
|
112
|
+
hydration never compares, so a server renderer can never produce it. Every candidate after the
|
|
113
|
+
first is therefore hidden by CSS until a selection has been applied: a server-rendered page — or
|
|
114
|
+
one whose script never runs — paints one candidate rather than the whole pool. Randomness itself
|
|
115
|
+
cannot survive SSR (there is no shared seed), so order the pool if a specific candidate should be
|
|
116
|
+
the pre-hydration one. With `items > 1` the pre-hydration paint is still a single candidate.
|
|
@@ -57,11 +57,16 @@ is pending.
|
|
|
57
57
|
between rows.
|
|
58
58
|
|
|
59
59
|
```html
|
|
60
|
-
<lr-reorder-list label="Form fields"
|
|
60
|
+
<lr-reorder-list label="Form fields">
|
|
61
61
|
<lr-reorder-item value="name">Name</lr-reorder-item>
|
|
62
62
|
<lr-reorder-item value="email">Email</lr-reorder-item>
|
|
63
63
|
<lr-reorder-item value="phone">Phone</lr-reorder-item>
|
|
64
64
|
</lr-reorder-list>
|
|
65
|
+
<script type="module">
|
|
66
|
+
document
|
|
67
|
+
.querySelector("lr-reorder-list")
|
|
68
|
+
.addEventListener("lr-reorder", (e) => console.log(e.detail.order));
|
|
69
|
+
</script>
|
|
65
70
|
```
|
|
66
71
|
|
|
67
72
|
**Known gotchas:**
|
|
@@ -57,11 +57,16 @@ is pending.
|
|
|
57
57
|
between rows.
|
|
58
58
|
|
|
59
59
|
```html
|
|
60
|
-
<lr-reorder-list label="Form fields"
|
|
60
|
+
<lr-reorder-list label="Form fields">
|
|
61
61
|
<lr-reorder-item value="name">Name</lr-reorder-item>
|
|
62
62
|
<lr-reorder-item value="email">Email</lr-reorder-item>
|
|
63
63
|
<lr-reorder-item value="phone">Phone</lr-reorder-item>
|
|
64
64
|
</lr-reorder-list>
|
|
65
|
+
<script type="module">
|
|
66
|
+
document
|
|
67
|
+
.querySelector("lr-reorder-list")
|
|
68
|
+
.addEventListener("lr-reorder", (e) => console.log(e.detail.order));
|
|
69
|
+
</script>
|
|
65
70
|
```
|
|
66
71
|
|
|
67
72
|
**Known gotchas:**
|
|
@@ -32,13 +32,17 @@ invention (no `wa-*`/`sl-*` counterpart).
|
|
|
32
32
|
anchors to its block-end edge and does not cover the full height. Has no visual effect while the effective
|
|
33
33
|
presentation resolves to `'inline'`.
|
|
34
34
|
- `label: string = ''` — accessible name for the overlay presentation's `role="dialog"`, used
|
|
35
|
-
verbatim when set
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
`[
|
|
40
|
-
the
|
|
41
|
-
|
|
35
|
+
verbatim when set — but a plain `aria-label` attribute on the host wins outright over `label`
|
|
36
|
+
when both are present, the standard ARIA convention for a consumer that wants full control over
|
|
37
|
+
the announced name (matching `lr-dialog`'s `accessibleLabel` pattern). When both the host
|
|
38
|
+
`aria-label` and `label` are empty, this falls back to the `header` slot's content: a heading
|
|
39
|
+
element (`h1`–`h6` or `[role="heading"]`) among the slotted header content wins if present,
|
|
40
|
+
otherwise the header slot's combined text content is used (mirrors `lr-dialog`'s
|
|
41
|
+
`detectHeading()` fallback, via `aria-label` rather than `aria-labelledby` since the header
|
|
42
|
+
content is light DOM while `[part="panel"]` is in shadow DOM). A panel opened with none of a host
|
|
43
|
+
`aria-label`, `label`, or header content uses the localized `responsivePanel` fallback (`"Panel"`
|
|
44
|
+
in the default locale), so its dialog is never unnamed. Unused in the inline presentation, which
|
|
45
|
+
has no dialog semantics to name.
|
|
42
46
|
- `overlayBreakpoint: string = '768px'` (attribute `overlay-breakpoint`) — CSS length compared with
|
|
43
47
|
the component's allocated inline size in `mode="auto"`; at or below it, the effective presentation
|
|
44
48
|
is `'overlay'`.
|