@aceshooting/lyra-ui 5.0.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -12
- package/custom-elements.json +2150 -220
- package/dist/components/agent-tools/activity-feed/activity-feed.class.d.ts +2 -0
- package/dist/components/agent-tools/activity-feed/activity-feed.class.d.ts.map +1 -1
- package/dist/components/agent-tools/activity-feed/activity-feed.class.js +2 -0
- package/dist/components/agent-tools/activity-feed/activity-feed.class.js.map +1 -1
- package/dist/components/agent-tools/agent-run/agent-run.class.d.ts +1 -0
- package/dist/components/agent-tools/agent-run/agent-run.class.d.ts.map +1 -1
- package/dist/components/agent-tools/agent-run/agent-run.class.js +1 -0
- package/dist/components/agent-tools/agent-run/agent-run.class.js.map +1 -1
- package/dist/components/agent-tools/compare-panel/compare-panel.class.d.ts +2 -0
- package/dist/components/agent-tools/compare-panel/compare-panel.class.d.ts.map +1 -1
- package/dist/components/agent-tools/compare-panel/compare-panel.class.js +2 -0
- package/dist/components/agent-tools/compare-panel/compare-panel.class.js.map +1 -1
- package/dist/components/agent-tools/stack-trace/stack-trace.class.d.ts +5 -0
- package/dist/components/agent-tools/stack-trace/stack-trace.class.d.ts.map +1 -1
- package/dist/components/agent-tools/stack-trace/stack-trace.class.js +5 -0
- package/dist/components/agent-tools/stack-trace/stack-trace.class.js.map +1 -1
- package/dist/components/agent-tools/terminal/terminal.class.d.ts +3 -0
- package/dist/components/agent-tools/terminal/terminal.class.d.ts.map +1 -1
- package/dist/components/agent-tools/terminal/terminal.class.js +3 -0
- package/dist/components/agent-tools/terminal/terminal.class.js.map +1 -1
- package/dist/components/agent-tools/thinking-panel/thinking-panel.class.d.ts +2 -0
- package/dist/components/agent-tools/thinking-panel/thinking-panel.class.d.ts.map +1 -1
- package/dist/components/agent-tools/thinking-panel/thinking-panel.class.js +2 -0
- package/dist/components/agent-tools/thinking-panel/thinking-panel.class.js.map +1 -1
- package/dist/components/agent-tools/tool-approval-dialog/tool-approval-dialog.class.d.ts +2 -0
- package/dist/components/agent-tools/tool-approval-dialog/tool-approval-dialog.class.d.ts.map +1 -1
- package/dist/components/agent-tools/tool-approval-dialog/tool-approval-dialog.class.js +2 -0
- package/dist/components/agent-tools/tool-approval-dialog/tool-approval-dialog.class.js.map +1 -1
- package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.d.ts +3 -0
- package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.d.ts.map +1 -1
- package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.js +3 -0
- package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.js.map +1 -1
- package/dist/components/agent-tools/tool-result-view/tool-result-view.class.d.ts +1 -0
- package/dist/components/agent-tools/tool-result-view/tool-result-view.class.d.ts.map +1 -1
- package/dist/components/agent-tools/tool-result-view/tool-result-view.class.js +1 -0
- package/dist/components/agent-tools/tool-result-view/tool-result-view.class.js.map +1 -1
- package/dist/components/agent-tools/tool-select-dialog/tool-select-dialog.class.d.ts +1 -0
- package/dist/components/agent-tools/tool-select-dialog/tool-select-dialog.class.d.ts.map +1 -1
- package/dist/components/agent-tools/tool-select-dialog/tool-select-dialog.class.js +1 -0
- package/dist/components/agent-tools/tool-select-dialog/tool-select-dialog.class.js.map +1 -1
- package/dist/components/agent-tools/tool-timeline/tool-timeline.class.d.ts +2 -0
- package/dist/components/agent-tools/tool-timeline/tool-timeline.class.d.ts.map +1 -1
- package/dist/components/agent-tools/tool-timeline/tool-timeline.class.js +2 -0
- package/dist/components/agent-tools/tool-timeline/tool-timeline.class.js.map +1 -1
- package/dist/components/charts/chart/chart.class.d.ts +15 -0
- package/dist/components/charts/chart/chart.class.d.ts.map +1 -1
- package/dist/components/charts/chart/chart.class.js +15 -0
- package/dist/components/charts/chart/chart.class.js.map +1 -1
- package/dist/components/conversation/audio-visualizer/audio-visualizer.class.d.ts +2 -0
- package/dist/components/conversation/audio-visualizer/audio-visualizer.class.d.ts.map +1 -1
- package/dist/components/conversation/audio-visualizer/audio-visualizer.class.js +2 -0
- package/dist/components/conversation/audio-visualizer/audio-visualizer.class.js.map +1 -1
- package/dist/components/conversation/branch-picker/branch-picker.class.d.ts +2 -0
- package/dist/components/conversation/branch-picker/branch-picker.class.d.ts.map +1 -1
- package/dist/components/conversation/branch-picker/branch-picker.class.js +2 -0
- package/dist/components/conversation/branch-picker/branch-picker.class.js.map +1 -1
- package/dist/components/conversation/chat-message/chat-message.class.d.ts +5 -1
- package/dist/components/conversation/chat-message/chat-message.class.d.ts.map +1 -1
- package/dist/components/conversation/chat-message/chat-message.class.js +5 -1
- package/dist/components/conversation/chat-message/chat-message.class.js.map +1 -1
- package/dist/components/conversation/chat-message/chat-message.styles.d.ts.map +1 -1
- package/dist/components/conversation/chat-message/chat-message.styles.js +15 -2
- package/dist/components/conversation/chat-message/chat-message.styles.js.map +1 -1
- package/dist/components/conversation/code-block/code-block.class.d.ts +4 -0
- package/dist/components/conversation/code-block/code-block.class.d.ts.map +1 -1
- package/dist/components/conversation/code-block/code-block.class.js +4 -0
- package/dist/components/conversation/code-block/code-block.class.js.map +1 -1
- package/dist/components/conversation/conversation-item/conversation-item.class.d.ts +2 -0
- package/dist/components/conversation/conversation-item/conversation-item.class.d.ts.map +1 -1
- package/dist/components/conversation/conversation-item/conversation-item.class.js +2 -0
- package/dist/components/conversation/conversation-item/conversation-item.class.js.map +1 -1
- package/dist/components/conversation/markdown/markdown.class.d.ts +2 -0
- package/dist/components/conversation/markdown/markdown.class.d.ts.map +1 -1
- package/dist/components/conversation/markdown/markdown.class.js +2 -0
- package/dist/components/conversation/markdown/markdown.class.js.map +1 -1
- package/dist/components/conversation/push-to-talk/push-to-talk.class.d.ts +2 -0
- package/dist/components/conversation/push-to-talk/push-to-talk.class.d.ts.map +1 -1
- package/dist/components/conversation/push-to-talk/push-to-talk.class.js +2 -0
- package/dist/components/conversation/push-to-talk/push-to-talk.class.js.map +1 -1
- package/dist/components/conversation/stream-status/stream-status.class.d.ts +5 -0
- package/dist/components/conversation/stream-status/stream-status.class.d.ts.map +1 -1
- package/dist/components/conversation/stream-status/stream-status.class.js +5 -0
- package/dist/components/conversation/stream-status/stream-status.class.js.map +1 -1
- package/dist/components/conversation/streaming-text/streaming-text.class.d.ts +2 -0
- package/dist/components/conversation/streaming-text/streaming-text.class.d.ts.map +1 -1
- package/dist/components/conversation/streaming-text/streaming-text.class.js +2 -0
- package/dist/components/conversation/streaming-text/streaming-text.class.js.map +1 -1
- package/dist/components/conversation/transcript-feed/transcript-feed.class.d.ts +1 -0
- package/dist/components/conversation/transcript-feed/transcript-feed.class.d.ts.map +1 -1
- package/dist/components/conversation/transcript-feed/transcript-feed.class.js +1 -0
- package/dist/components/conversation/transcript-feed/transcript-feed.class.js.map +1 -1
- package/dist/components/data/calendar/calendar.class.d.ts +6 -0
- package/dist/components/data/calendar/calendar.class.d.ts.map +1 -1
- package/dist/components/data/calendar/calendar.class.js +6 -0
- package/dist/components/data/calendar/calendar.class.js.map +1 -1
- package/dist/components/data/context-meter/context-meter.class.d.ts +1 -0
- package/dist/components/data/context-meter/context-meter.class.d.ts.map +1 -1
- package/dist/components/data/context-meter/context-meter.class.js +1 -0
- package/dist/components/data/context-meter/context-meter.class.js.map +1 -1
- package/dist/components/data/data-grid/data-grid.class.d.ts +1 -0
- package/dist/components/data/data-grid/data-grid.class.d.ts.map +1 -1
- package/dist/components/data/data-grid/data-grid.class.js +1 -0
- package/dist/components/data/data-grid/data-grid.class.js.map +1 -1
- package/dist/components/data/flow-canvas/flow-canvas.class.d.ts +3 -1
- package/dist/components/data/flow-canvas/flow-canvas.class.d.ts.map +1 -1
- package/dist/components/data/flow-canvas/flow-canvas.class.js +3 -1
- package/dist/components/data/flow-canvas/flow-canvas.class.js.map +1 -1
- package/dist/components/data/flow-minimap/flow-minimap.class.d.ts +2 -2
- package/dist/components/data/flow-minimap/flow-minimap.class.js +2 -2
- package/dist/components/data/flow-node/flow-node.class.d.ts +1 -1
- package/dist/components/data/flow-node/flow-node.class.js +1 -1
- package/dist/components/data/heatmap/heatmap.class.d.ts +51 -2
- package/dist/components/data/heatmap/heatmap.class.d.ts.map +1 -1
- package/dist/components/data/heatmap/heatmap.class.js +42 -6
- package/dist/components/data/heatmap/heatmap.class.js.map +1 -1
- package/dist/components/data/heatmap/heatmap.styles.d.ts.map +1 -1
- package/dist/components/data/heatmap/heatmap.styles.js +19 -0
- package/dist/components/data/heatmap/heatmap.styles.js.map +1 -1
- package/dist/components/data/sequence-strip/sequence-strip.class.d.ts +20 -0
- package/dist/components/data/sequence-strip/sequence-strip.class.d.ts.map +1 -1
- package/dist/components/data/sequence-strip/sequence-strip.class.js +35 -0
- package/dist/components/data/sequence-strip/sequence-strip.class.js.map +1 -1
- package/dist/components/data/sequence-strip/sequence-strip.styles.d.ts.map +1 -1
- package/dist/components/data/sequence-strip/sequence-strip.styles.js +29 -0
- package/dist/components/data/sequence-strip/sequence-strip.styles.js.map +1 -1
- package/dist/components/data/table/table.class.d.ts +11 -0
- package/dist/components/data/table/table.class.d.ts.map +1 -1
- package/dist/components/data/table/table.class.js +11 -0
- package/dist/components/data/table/table.class.js.map +1 -1
- package/dist/components/data/timeline/timeline-item.class.d.ts +17 -0
- package/dist/components/data/timeline/timeline-item.class.d.ts.map +1 -1
- package/dist/components/data/timeline/timeline-item.class.js +17 -0
- package/dist/components/data/timeline/timeline-item.class.js.map +1 -1
- package/dist/components/data/timeline/timeline.styles.d.ts.map +1 -1
- package/dist/components/data/timeline/timeline.styles.js +6 -3
- package/dist/components/data/timeline/timeline.styles.js.map +1 -1
- package/dist/components/data/tree/tree-node.class.d.ts +3 -0
- package/dist/components/data/tree/tree-node.class.d.ts.map +1 -1
- package/dist/components/data/tree/tree-node.class.js +3 -0
- package/dist/components/data/tree/tree-node.class.js.map +1 -1
- package/dist/components/forms/button/button.class.d.ts +24 -0
- package/dist/components/forms/button/button.class.d.ts.map +1 -1
- package/dist/components/forms/button/button.class.js +24 -0
- package/dist/components/forms/button/button.class.js.map +1 -1
- package/dist/components/forms/code-editor/code-editor.class.d.ts +28 -12
- package/dist/components/forms/code-editor/code-editor.class.d.ts.map +1 -1
- package/dist/components/forms/code-editor/code-editor.class.js +44 -14
- package/dist/components/forms/code-editor/code-editor.class.js.map +1 -1
- package/dist/components/forms/code-editor/code-editor.styles.d.ts.map +1 -1
- package/dist/components/forms/code-editor/code-editor.styles.js +4 -0
- package/dist/components/forms/code-editor/code-editor.styles.js.map +1 -1
- package/dist/components/forms/combobox/combobox.class.d.ts +10 -0
- package/dist/components/forms/combobox/combobox.class.d.ts.map +1 -1
- package/dist/components/forms/combobox/combobox.class.js +16 -0
- package/dist/components/forms/combobox/combobox.class.js.map +1 -1
- package/dist/components/forms/combobox/option.class.d.ts +3 -3
- package/dist/components/forms/combobox/option.class.d.ts.map +1 -1
- package/dist/components/forms/combobox/option.class.js +9 -0
- package/dist/components/forms/combobox/option.class.js.map +1 -1
- package/dist/components/forms/date-picker/date-input.class.d.ts +3 -0
- package/dist/components/forms/date-picker/date-input.class.d.ts.map +1 -1
- package/dist/components/forms/date-picker/date-input.class.js +3 -0
- package/dist/components/forms/date-picker/date-input.class.js.map +1 -1
- package/dist/components/forms/emoji-picker/emoji-picker.class.d.ts +37 -2
- package/dist/components/forms/emoji-picker/emoji-picker.class.d.ts.map +1 -1
- package/dist/components/forms/emoji-picker/emoji-picker.class.js +113 -10
- package/dist/components/forms/emoji-picker/emoji-picker.class.js.map +1 -1
- package/dist/components/forms/emoji-picker/emoji-picker.styles.d.ts.map +1 -1
- package/dist/components/forms/emoji-picker/emoji-picker.styles.js +30 -0
- package/dist/components/forms/emoji-picker/emoji-picker.styles.js.map +1 -1
- package/dist/components/forms/icon-button/icon-button.class.d.ts +4 -0
- package/dist/components/forms/icon-button/icon-button.class.d.ts.map +1 -1
- package/dist/components/forms/icon-button/icon-button.class.js +4 -0
- package/dist/components/forms/icon-button/icon-button.class.js.map +1 -1
- package/dist/components/forms/input/input.class.d.ts +11 -3
- package/dist/components/forms/input/input.class.d.ts.map +1 -1
- package/dist/components/forms/input/input.class.js +3 -0
- package/dist/components/forms/input/input.class.js.map +1 -1
- package/dist/components/forms/input/time-input.class.d.ts +12 -0
- package/dist/components/forms/input/time-input.class.d.ts.map +1 -1
- package/dist/components/forms/input/time-input.class.js +27 -0
- package/dist/components/forms/input/time-input.class.js.map +1 -1
- package/dist/components/forms/rubric-form/rubric-form.class.d.ts +7 -0
- package/dist/components/forms/rubric-form/rubric-form.class.d.ts.map +1 -1
- package/dist/components/forms/rubric-form/rubric-form.class.js +7 -0
- package/dist/components/forms/rubric-form/rubric-form.class.js.map +1 -1
- package/dist/components/forms/select/select.class.d.ts +8 -0
- package/dist/components/forms/select/select.class.d.ts.map +1 -1
- package/dist/components/forms/select/select.class.js +8 -0
- package/dist/components/forms/select/select.class.js.map +1 -1
- package/dist/components/forms/swatch-picker/swatch-picker.class.d.ts +1 -1
- package/dist/components/forms/swatch-picker/swatch-picker.class.js +1 -1
- package/dist/components/forms/switch/switch.class.d.ts +6 -0
- package/dist/components/forms/switch/switch.class.d.ts.map +1 -1
- package/dist/components/forms/switch/switch.class.js +6 -0
- package/dist/components/forms/switch/switch.class.js.map +1 -1
- package/dist/components/forms/token-input/token-input.class.d.ts +2 -0
- package/dist/components/forms/token-input/token-input.class.d.ts.map +1 -1
- package/dist/components/forms/token-input/token-input.class.js +2 -0
- package/dist/components/forms/token-input/token-input.class.js.map +1 -1
- package/dist/components/layout/app-rail/app-rail.class.d.ts +8 -0
- package/dist/components/layout/app-rail/app-rail.class.d.ts.map +1 -1
- package/dist/components/layout/app-rail/app-rail.class.js +8 -0
- package/dist/components/layout/app-rail/app-rail.class.js.map +1 -1
- package/dist/components/layout/button-group/button-group.class.d.ts +1 -1
- package/dist/components/layout/button-group/button-group.class.js +1 -1
- package/dist/components/layout/command-palette/command-palette.class.d.ts +12 -0
- package/dist/components/layout/command-palette/command-palette.class.d.ts.map +1 -1
- package/dist/components/layout/command-palette/command-palette.class.js +12 -0
- package/dist/components/layout/command-palette/command-palette.class.js.map +1 -1
- package/dist/components/layout/control-group/control-group.class.d.ts +1 -1
- package/dist/components/layout/control-group/control-group.class.js +1 -1
- package/dist/components/layout/dashboard-grid/dashboard-grid.class.d.ts +7 -0
- package/dist/components/layout/dashboard-grid/dashboard-grid.class.d.ts.map +1 -1
- package/dist/components/layout/dashboard-grid/dashboard-grid.class.js +7 -0
- package/dist/components/layout/dashboard-grid/dashboard-grid.class.js.map +1 -1
- package/dist/components/layout/dock-panel/dock-panel.class.d.ts +3 -0
- package/dist/components/layout/dock-panel/dock-panel.class.d.ts.map +1 -1
- package/dist/components/layout/dock-panel/dock-panel.class.js +3 -0
- package/dist/components/layout/dock-panel/dock-panel.class.js.map +1 -1
- package/dist/components/layout/responsive-panel/responsive-panel.class.d.ts +2 -0
- package/dist/components/layout/responsive-panel/responsive-panel.class.d.ts.map +1 -1
- package/dist/components/layout/responsive-panel/responsive-panel.class.js +2 -0
- package/dist/components/layout/responsive-panel/responsive-panel.class.js.map +1 -1
- package/dist/components/layout/scroller/scroller.class.d.ts +2 -2
- package/dist/components/layout/scroller/scroller.class.js +2 -2
- package/dist/components/layout/segmented/segmented.class.d.ts +6 -0
- package/dist/components/layout/segmented/segmented.class.d.ts.map +1 -1
- package/dist/components/layout/segmented/segmented.class.js +6 -0
- package/dist/components/layout/segmented/segmented.class.js.map +1 -1
- package/dist/components/layout/split/split.class.d.ts +68 -15
- package/dist/components/layout/split/split.class.d.ts.map +1 -1
- package/dist/components/layout/split/split.class.js +80 -21
- package/dist/components/layout/split/split.class.js.map +1 -1
- package/dist/components/layout/stepper/stepper.class.d.ts +52 -11
- package/dist/components/layout/stepper/stepper.class.d.ts.map +1 -1
- package/dist/components/layout/stepper/stepper.class.js +69 -17
- package/dist/components/layout/stepper/stepper.class.js.map +1 -1
- package/dist/components/layout/virtual-list/virtual-list.class.d.ts +3 -0
- package/dist/components/layout/virtual-list/virtual-list.class.d.ts.map +1 -1
- package/dist/components/layout/virtual-list/virtual-list.class.js +3 -0
- package/dist/components/layout/virtual-list/virtual-list.class.js.map +1 -1
- package/dist/components/layout/widget/widget.class.d.ts +6 -0
- package/dist/components/layout/widget/widget.class.d.ts.map +1 -1
- package/dist/components/layout/widget/widget.class.js +6 -0
- package/dist/components/layout/widget/widget.class.js.map +1 -1
- package/dist/components/media/attachment-chip/attachment-chip.class.d.ts +13 -0
- package/dist/components/media/attachment-chip/attachment-chip.class.d.ts.map +1 -1
- package/dist/components/media/attachment-chip/attachment-chip.class.js +13 -0
- package/dist/components/media/attachment-chip/attachment-chip.class.js.map +1 -1
- package/dist/components/media/avatar/avatar.class.d.ts +6 -0
- package/dist/components/media/avatar/avatar.class.d.ts.map +1 -1
- package/dist/components/media/avatar/avatar.class.js +6 -0
- package/dist/components/media/avatar/avatar.class.js.map +1 -1
- package/dist/components/media/media-card/media-card.class.d.ts +2 -0
- package/dist/components/media/media-card/media-card.class.d.ts.map +1 -1
- package/dist/components/media/media-card/media-card.class.js +2 -0
- package/dist/components/media/media-card/media-card.class.js.map +1 -1
- package/dist/components/media/playback/playback.class.d.ts +2 -0
- package/dist/components/media/playback/playback.class.d.ts.map +1 -1
- package/dist/components/media/playback/playback.class.js +2 -0
- package/dist/components/media/playback/playback.class.js.map +1 -1
- package/dist/components/media/zoomable-frame/zoomable-frame.class.d.ts +3 -0
- package/dist/components/media/zoomable-frame/zoomable-frame.class.d.ts.map +1 -1
- package/dist/components/media/zoomable-frame/zoomable-frame.class.js +3 -0
- package/dist/components/media/zoomable-frame/zoomable-frame.class.js.map +1 -1
- package/dist/components/overlays/badge/badge.class.d.ts +6 -0
- package/dist/components/overlays/badge/badge.class.d.ts.map +1 -1
- package/dist/components/overlays/badge/badge.class.js +6 -0
- package/dist/components/overlays/badge/badge.class.js.map +1 -1
- package/dist/components/overlays/callout/callout.class.d.ts +6 -0
- package/dist/components/overlays/callout/callout.class.d.ts.map +1 -1
- package/dist/components/overlays/callout/callout.class.js +6 -0
- package/dist/components/overlays/callout/callout.class.js.map +1 -1
- package/dist/components/overlays/chip/chip.class.d.ts +18 -0
- package/dist/components/overlays/chip/chip.class.d.ts.map +1 -1
- package/dist/components/overlays/chip/chip.class.js +18 -0
- package/dist/components/overlays/chip/chip.class.js.map +1 -1
- package/dist/components/overlays/dialog/dialog.class.d.ts +6 -0
- package/dist/components/overlays/dialog/dialog.class.d.ts.map +1 -1
- package/dist/components/overlays/dialog/dialog.class.js +6 -0
- package/dist/components/overlays/dialog/dialog.class.js.map +1 -1
- package/dist/components/overlays/drawer/drawer.class.d.ts +6 -0
- package/dist/components/overlays/drawer/drawer.class.d.ts.map +1 -1
- package/dist/components/overlays/drawer/drawer.class.js +6 -0
- package/dist/components/overlays/drawer/drawer.class.js.map +1 -1
- package/dist/components/overlays/progress/progress-ring.class.d.ts +1 -0
- package/dist/components/overlays/progress/progress-ring.class.d.ts.map +1 -1
- package/dist/components/overlays/progress/progress-ring.class.js +1 -0
- package/dist/components/overlays/progress/progress-ring.class.js.map +1 -1
- package/dist/components/overlays/skeleton/skeleton.class.d.ts +2 -0
- package/dist/components/overlays/skeleton/skeleton.class.d.ts.map +1 -1
- package/dist/components/overlays/skeleton/skeleton.class.js +2 -0
- package/dist/components/overlays/skeleton/skeleton.class.js.map +1 -1
- package/dist/components/overlays/spinner/spinner.class.d.ts +4 -0
- package/dist/components/overlays/spinner/spinner.class.d.ts.map +1 -1
- package/dist/components/overlays/spinner/spinner.class.js +4 -0
- package/dist/components/overlays/spinner/spinner.class.js.map +1 -1
- package/dist/components/overlays/toast/toast-item.class.d.ts +11 -0
- package/dist/components/overlays/toast/toast-item.class.d.ts.map +1 -1
- package/dist/components/overlays/toast/toast-item.class.js +11 -0
- package/dist/components/overlays/toast/toast-item.class.js.map +1 -1
- package/dist/components/overlays/toast/toast.class.d.ts +15 -0
- package/dist/components/overlays/toast/toast.class.d.ts.map +1 -1
- package/dist/components/overlays/toast/toast.class.js +15 -0
- package/dist/components/overlays/toast/toast.class.js.map +1 -1
- package/dist/components/retrieval/citation-badge/citation-badge.class.d.ts +8 -0
- package/dist/components/retrieval/citation-badge/citation-badge.class.d.ts.map +1 -1
- package/dist/components/retrieval/citation-badge/citation-badge.class.js +8 -0
- package/dist/components/retrieval/citation-badge/citation-badge.class.js.map +1 -1
- package/dist/components/retrieval/entity-chip/entity-chip.class.d.ts +1 -0
- package/dist/components/retrieval/entity-chip/entity-chip.class.d.ts.map +1 -1
- package/dist/components/retrieval/entity-chip/entity-chip.class.js +1 -0
- package/dist/components/retrieval/entity-chip/entity-chip.class.js.map +1 -1
- package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.d.ts +2 -0
- package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.d.ts.map +1 -1
- package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.js +2 -0
- package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.js.map +1 -1
- package/dist/components/retrieval/retrieval-trace/retrieval-trace.class.d.ts +1 -0
- package/dist/components/retrieval/retrieval-trace/retrieval-trace.class.d.ts.map +1 -1
- package/dist/components/retrieval/retrieval-trace/retrieval-trace.class.js +1 -0
- package/dist/components/retrieval/retrieval-trace/retrieval-trace.class.js.map +1 -1
- package/dist/components/utility/diff-view/diff-view.class.d.ts +1 -0
- package/dist/components/utility/diff-view/diff-view.class.d.ts.map +1 -1
- package/dist/components/utility/diff-view/diff-view.class.js +1 -0
- package/dist/components/utility/diff-view/diff-view.class.js.map +1 -1
- package/dist/components/utility/icon/icon.class.d.ts +1 -0
- package/dist/components/utility/icon/icon.class.d.ts.map +1 -1
- package/dist/components/utility/icon/icon.class.js +1 -0
- package/dist/components/utility/icon/icon.class.js.map +1 -1
- package/dist/components/utility/json-viewer/json-viewer.class.d.ts +3 -0
- package/dist/components/utility/json-viewer/json-viewer.class.d.ts.map +1 -1
- package/dist/components/utility/json-viewer/json-viewer.class.js +3 -0
- package/dist/components/utility/json-viewer/json-viewer.class.js.map +1 -1
- package/dist/components/utility/known-date/known-date.class.d.ts +11 -0
- package/dist/components/utility/known-date/known-date.class.d.ts.map +1 -1
- package/dist/components/utility/known-date/known-date.class.js +11 -0
- package/dist/components/utility/known-date/known-date.class.js.map +1 -1
- package/dist/components/viewers/calendar-viewer/calendar-viewer.class.d.ts +2 -0
- package/dist/components/viewers/calendar-viewer/calendar-viewer.class.d.ts.map +1 -1
- package/dist/components/viewers/calendar-viewer/calendar-viewer.class.js +2 -0
- package/dist/components/viewers/calendar-viewer/calendar-viewer.class.js.map +1 -1
- package/dist/components/viewers/dataset-viewer/dataset-viewer.class.d.ts +5 -0
- package/dist/components/viewers/dataset-viewer/dataset-viewer.class.d.ts.map +1 -1
- package/dist/components/viewers/dataset-viewer/dataset-viewer.class.js +5 -0
- package/dist/components/viewers/dataset-viewer/dataset-viewer.class.js.map +1 -1
- package/dist/components/viewers/document-compare/document-compare.class.d.ts +1 -1
- package/dist/components/viewers/document-compare/document-compare.class.js +1 -1
- package/dist/components/viewers/document-preview/document-preview.class.d.ts +3 -0
- package/dist/components/viewers/document-preview/document-preview.class.d.ts.map +1 -1
- package/dist/components/viewers/document-preview/document-preview.class.js +3 -0
- package/dist/components/viewers/document-preview/document-preview.class.js.map +1 -1
- package/dist/components/viewers/email-viewer/email-viewer.class.d.ts +2 -0
- package/dist/components/viewers/email-viewer/email-viewer.class.d.ts.map +1 -1
- package/dist/components/viewers/email-viewer/email-viewer.class.js +2 -0
- package/dist/components/viewers/email-viewer/email-viewer.class.js.map +1 -1
- package/dist/components/viewers/html-viewer/html-viewer.class.d.ts +2 -0
- package/dist/components/viewers/html-viewer/html-viewer.class.d.ts.map +1 -1
- package/dist/components/viewers/html-viewer/html-viewer.class.js +2 -0
- package/dist/components/viewers/html-viewer/html-viewer.class.js.map +1 -1
- package/dist/components/viewers/pdf-viewer/pdf-viewer.class.d.ts.map +1 -1
- package/dist/components/viewers/pdf-viewer/pdf-viewer.class.js +41 -9
- package/dist/components/viewers/pdf-viewer/pdf-viewer.class.js.map +1 -1
- package/dist/internal/css-length.d.ts +40 -0
- package/dist/internal/css-length.d.ts.map +1 -0
- package/dist/internal/css-length.js +72 -0
- package/dist/internal/css-length.js.map +1 -0
- package/dist/internal/orientation-breakpoint.d.ts +12 -0
- package/dist/internal/orientation-breakpoint.d.ts.map +1 -0
- package/dist/internal/orientation-breakpoint.js +127 -0
- package/dist/internal/orientation-breakpoint.js.map +1 -0
- package/dist/lyra.d.ts +2 -2
- package/dist/lyra.d.ts.map +1 -1
- package/dist/lyra.js.map +1 -1
- package/llms/components/lr-accordion-item.md +23 -0
- package/llms/components/lr-accordion.md +23 -0
- package/llms/components/lr-activity-feed.md +45 -0
- package/llms/components/lr-agent-run.md +66 -0
- package/llms/components/lr-agent-trace.md +42 -0
- package/llms/components/lr-agent-workspace.md +109 -0
- package/llms/components/lr-animated-image.md +66 -0
- package/llms/components/lr-animation.md +73 -0
- package/llms/components/lr-app-rail-item.md +218 -0
- package/llms/components/lr-app-rail.md +218 -0
- package/llms/components/lr-archive-viewer.md +36 -0
- package/llms/components/lr-artifact-panel.md +60 -0
- package/llms/components/lr-attachment-chip.md +131 -0
- package/llms/components/lr-attachment-trigger.md +90 -0
- package/llms/components/lr-audio-visualizer.md +43 -0
- package/llms/components/lr-av-player.md +50 -0
- package/llms/components/lr-avatar-group.md +69 -0
- package/llms/components/lr-avatar.md +69 -0
- package/llms/components/lr-badge.md +25 -0
- package/llms/components/lr-bar-chart.md +70 -0
- package/llms/components/lr-box-plot.md +67 -0
- package/llms/components/lr-branch-picker.md +32 -0
- package/llms/components/lr-breadcrumb-item.md +30 -0
- package/llms/components/lr-breadcrumb.md +30 -0
- package/llms/components/lr-browser-frame.md +51 -0
- package/llms/components/lr-bubble-chart.md +70 -0
- package/llms/components/lr-button-group.md +30 -0
- package/llms/components/lr-button.md +89 -0
- package/llms/components/lr-calendar-viewer.md +32 -0
- package/llms/components/lr-calendar.md +52 -0
- package/llms/components/lr-callout.md +37 -0
- package/llms/components/lr-card.md +67 -0
- package/llms/components/lr-carousel-item.md +29 -0
- package/llms/components/lr-carousel.md +43 -0
- package/llms/components/lr-chart.md +148 -0
- package/llms/components/lr-chat-composer.md +139 -0
- package/llms/components/lr-chat-message.md +145 -0
- package/llms/components/lr-chat-viewport.md +70 -0
- package/llms/components/lr-checkbox-group.md +21 -0
- package/llms/components/lr-checkbox.md +79 -0
- package/llms/components/lr-checkpoint.md +48 -0
- package/llms/components/lr-chip-group.md +152 -0
- package/llms/components/lr-chip.md +152 -0
- package/llms/components/lr-chunk-inspector.md +66 -0
- package/llms/components/lr-citation-badge.md +102 -0
- package/llms/components/lr-code-block-core.md +113 -0
- package/llms/components/lr-code-block.md +146 -0
- package/llms/components/lr-code-editor.md +72 -0
- package/llms/components/lr-color-picker.md +21 -0
- package/llms/components/lr-combobox.md +196 -0
- package/llms/components/lr-command-palette.md +50 -0
- package/llms/components/lr-commit-card.md +33 -0
- package/llms/components/lr-community-card.md +54 -0
- package/llms/components/lr-compare-panel.md +38 -0
- package/llms/components/lr-confirm-bar.md +48 -0
- package/llms/components/lr-contact-viewer.md +34 -0
- package/llms/components/lr-context-inspector.md +50 -0
- package/llms/components/lr-context-meter.md +92 -0
- package/llms/components/lr-control-group.md +46 -0
- package/llms/components/lr-conversation-item.md +118 -0
- package/llms/components/lr-copy-button.md +52 -0
- package/llms/components/lr-csv-viewer.md +49 -0
- package/llms/components/lr-dashboard-grid.md +34 -0
- package/llms/components/lr-data-grid.md +47 -0
- package/llms/components/lr-dataset-viewer.md +60 -0
- package/llms/components/lr-date-input.md +201 -0
- package/llms/components/lr-date-picker.md +201 -0
- package/llms/components/lr-details.md +23 -0
- package/llms/components/lr-dialog.md +185 -0
- package/llms/components/lr-diff-view.md +86 -0
- package/llms/components/lr-divider.md +28 -0
- package/llms/components/lr-dock-panel.md +110 -0
- package/llms/components/lr-document-compare.md +22 -0
- package/llms/components/lr-document-library.md +21 -0
- package/llms/components/lr-document-preview.md +179 -0
- package/llms/components/lr-document-viewer.md +84 -0
- package/llms/components/lr-docx-viewer.md +63 -0
- package/llms/components/lr-doughnut-chart.md +70 -0
- package/llms/components/lr-drawer.md +48 -0
- package/llms/components/lr-drilldown-panel.md +25 -0
- package/llms/components/lr-dropdown-item.md +171 -0
- package/llms/components/lr-dropdown.md +24 -0
- package/llms/components/lr-ebook-viewer.md +60 -0
- package/llms/components/lr-email-viewer.md +51 -0
- package/llms/components/lr-emoji-picker.md +71 -0
- package/llms/components/lr-empty.md +56 -0
- package/llms/components/lr-entity-card.md +64 -0
- package/llms/components/lr-entity-chip.md +50 -0
- package/llms/components/lr-entity-dossier.md +71 -0
- package/llms/components/lr-env-list.md +27 -0
- package/llms/components/lr-eval-dataset.md +45 -0
- package/llms/components/lr-eval-result.md +45 -0
- package/llms/components/lr-evaluation-run.md +50 -0
- package/llms/components/lr-export-button.md +104 -0
- package/llms/components/lr-file-icon.md +34 -0
- package/llms/components/lr-file-input.md +104 -0
- package/llms/components/lr-file-tree.md +29 -0
- package/llms/components/lr-filter-bar.md +20 -0
- package/llms/components/lr-flag.md +122 -0
- package/llms/components/lr-flow-canvas.md +112 -0
- package/llms/components/lr-flow-controls.md +47 -0
- package/llms/components/lr-flow-minimap.md +52 -0
- package/llms/components/lr-flow-node.md +56 -0
- package/llms/components/lr-flow-run-overlay.md +56 -0
- package/llms/components/lr-format-bytes.md +31 -0
- package/llms/components/lr-format-date.md +33 -0
- package/llms/components/lr-format-number.md +41 -0
- package/llms/components/lr-gauge.md +65 -0
- package/llms/components/lr-generation-status.md +105 -0
- package/llms/components/lr-geojson-view.md +43 -0
- package/llms/components/lr-graph-legend.md +64 -0
- package/llms/components/lr-graph-query-builder.md +27 -0
- package/llms/components/lr-graph.md +224 -0
- package/llms/components/lr-grounding-summary.md +57 -0
- package/llms/components/lr-handoff-divider.md +27 -0
- package/llms/components/lr-heatmap.md +232 -0
- package/llms/components/lr-highlight-layer.md +31 -0
- package/llms/components/lr-histogram.md +69 -0
- package/llms/components/lr-html-viewer.md +30 -0
- package/llms/components/lr-icon-button.md +39 -0
- package/llms/components/lr-icon.md +36 -0
- package/llms/components/lr-image-comparer.md +38 -0
- package/llms/components/lr-image-viewer.md +35 -0
- package/llms/components/lr-include.md +53 -0
- package/llms/components/lr-ingestion-queue.md +60 -0
- package/llms/components/lr-input.md +82 -0
- package/llms/components/lr-intersection-observer.md +25 -0
- package/llms/components/lr-json-viewer.md +98 -0
- package/llms/components/lr-kbd.md +74 -0
- package/llms/components/lr-knowledge-base.md +64 -0
- package/llms/components/lr-knowledge-graph-explorer.md +92 -0
- package/llms/components/lr-known-date.md +84 -0
- package/llms/components/lr-lightbox.md +79 -0
- package/llms/components/lr-line-chart.md +70 -0
- package/llms/components/lr-lite-chart.md +143 -0
- package/llms/components/lr-live-region.md +105 -0
- package/llms/components/lr-map.md +127 -0
- package/llms/components/lr-markdown-core.md +70 -0
- package/llms/components/lr-markdown.md +171 -0
- package/llms/components/lr-media-card.md +106 -0
- package/llms/components/lr-memory-panel.md +67 -0
- package/llms/components/lr-mention-popover.md +139 -0
- package/llms/components/lr-menu-item.md +171 -0
- package/llms/components/lr-menu.md +171 -0
- package/llms/components/lr-message-actions.md +48 -0
- package/llms/components/lr-message-feedback.md +37 -0
- package/llms/components/lr-mind-map.md +64 -0
- package/llms/components/lr-model-select.md +144 -0
- package/llms/components/lr-model-settings-panel.md +99 -0
- package/llms/components/lr-mutation-observer.md +27 -0
- package/llms/components/lr-neighbor-list.md +56 -0
- package/llms/components/lr-node-palette.md +67 -0
- package/llms/components/lr-notebook-viewer.md +65 -0
- package/llms/components/lr-number-input.md +44 -0
- package/llms/components/lr-option.md +196 -0
- package/llms/components/lr-page-rail.md +37 -0
- package/llms/components/lr-pagination.md +88 -0
- package/llms/components/lr-path-strip.md +55 -0
- package/llms/components/lr-pdf-viewer.md +78 -0
- package/llms/components/lr-phone-input.md +162 -0
- package/llms/components/lr-pie-chart.md +70 -0
- package/llms/components/lr-playback.md +74 -0
- package/llms/components/lr-polar-area-chart.md +70 -0
- package/llms/components/lr-policy-summary.md +33 -0
- package/llms/components/lr-poll-status.md +71 -0
- package/llms/components/lr-popover.md +31 -0
- package/llms/components/lr-pptx-viewer.md +35 -0
- package/llms/components/lr-progress-bar.md +22 -0
- package/llms/components/lr-progress-ring.md +26 -0
- package/llms/components/lr-provenance-panel.md +58 -0
- package/llms/components/lr-push-to-talk.md +50 -0
- package/llms/components/lr-qr-code.md +20 -0
- package/llms/components/lr-query-builder.md +21 -0
- package/llms/components/lr-radar-chart.md +70 -0
- package/llms/components/lr-radio-group.md +25 -0
- package/llms/components/lr-radio.md +31 -0
- package/llms/components/lr-random-content.md +62 -0
- package/llms/components/lr-rating.md +21 -0
- package/llms/components/lr-relative-time.md +31 -0
- package/llms/components/lr-resize-observer.md +25 -0
- package/llms/components/lr-responsive-panel.md +112 -0
- package/llms/components/lr-result-card.md +88 -0
- package/llms/components/lr-result-field.md +88 -0
- package/llms/components/lr-retrieval-results.md +84 -0
- package/llms/components/lr-retrieval-search.md +70 -0
- package/llms/components/lr-retrieval-trace.md +59 -0
- package/llms/components/lr-rubric-form.md +37 -0
- package/llms/components/lr-scatter-chart.md +70 -0
- package/llms/components/lr-scroller.md +47 -0
- package/llms/components/lr-segmented.md +74 -0
- package/llms/components/lr-select.md +113 -0
- package/llms/components/lr-sequence-strip.md +95 -0
- package/llms/components/lr-skeleton.md +53 -0
- package/llms/components/lr-slider.md +92 -0
- package/llms/components/lr-source-card.md +131 -0
- package/llms/components/lr-source-list.md +131 -0
- package/llms/components/lr-source-picker.md +63 -0
- package/llms/components/lr-span-waterfall.md +42 -0
- package/llms/components/lr-sparkline.md +60 -0
- package/llms/components/lr-spinner.md +32 -0
- package/llms/components/lr-split.md +191 -0
- package/llms/components/lr-spreadsheet-viewer.md +47 -0
- package/llms/components/lr-stack-trace.md +77 -0
- package/llms/components/lr-stat.md +89 -0
- package/llms/components/lr-stepper.md +118 -0
- package/llms/components/lr-stream-status.md +128 -0
- package/llms/components/lr-streaming-text.md +101 -0
- package/llms/components/lr-suggestion-chips.md +40 -0
- package/llms/components/lr-svg-viewer.md +47 -0
- package/llms/components/lr-swatch-picker.md +91 -0
- package/llms/components/lr-switch.md +82 -0
- package/llms/components/lr-table.md +201 -0
- package/llms/components/lr-tabs.md +80 -0
- package/llms/components/lr-tag.md +25 -0
- package/llms/components/lr-task-list.md +42 -0
- package/llms/components/lr-terminal.md +44 -0
- package/llms/components/lr-test-results.md +38 -0
- package/llms/components/lr-textarea.md +111 -0
- package/llms/components/lr-thinking-panel.md +93 -0
- package/llms/components/lr-thread-list.md +97 -0
- package/llms/components/lr-time-input.md +53 -0
- package/llms/components/lr-time-range.md +91 -0
- package/llms/components/lr-timeline-item.md +65 -0
- package/llms/components/lr-timeline.md +65 -0
- package/llms/components/lr-toast-item.md +123 -0
- package/llms/components/lr-toast.md +123 -0
- package/llms/components/lr-token-input.md +31 -0
- package/llms/components/lr-tool-approval-dialog.md +131 -0
- package/llms/components/lr-tool-call-chip.md +101 -0
- package/llms/components/lr-tool-param-form.md +148 -0
- package/llms/components/lr-tool-result-dialog.md +106 -0
- package/llms/components/lr-tool-result-view.md +162 -0
- package/llms/components/lr-tool-select-dialog.md +124 -0
- package/llms/components/lr-tool-timeline.md +56 -0
- package/llms/components/lr-tooltip.md +47 -0
- package/llms/components/lr-tour.md +100 -0
- package/llms/components/lr-trace-tree.md +35 -0
- package/llms/components/lr-transcript-feed.md +45 -0
- package/llms/components/lr-tree-node.md +133 -0
- package/llms/components/lr-tree.md +133 -0
- package/llms/components/lr-typing-indicator.md +80 -0
- package/llms/components/lr-usage-badge.md +44 -0
- package/llms/components/lr-virtual-list.md +145 -0
- package/llms/components/lr-voice-picker.md +78 -0
- package/llms/components/lr-widget-renderer.md +78 -0
- package/llms/components/lr-widget.md +104 -0
- package/llms/components/lr-word-cloud.md +112 -0
- package/llms/components/lr-xml-viewer.md +58 -0
- package/llms/components/lr-zoomable-frame.md +57 -0
- package/llms/index.md +301 -0
- package/llms/migration.md +86 -0
- package/llms/peers.md +41 -0
- package/llms/shared.md +321 -0
- package/llms/tokens.md +533 -0
- package/llms-full.txt +10731 -8563
- package/llms.txt +64 -121
- package/package.json +14 -2
- package/vscode-css-data.json +1424 -185
- package/vscode-html-data.json +128 -107
- package/web-types.json +853 -118
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
<!-- GENERATED by scripts/build-llms.mjs from llms/layout.md — do not edit this file. -->
|
|
2
|
+
|
|
3
|
+
# `lr-responsive-panel`
|
|
4
|
+
|
|
5
|
+
- **Import** `import '@aceshooting/lyra-ui/components/layout/responsive-panel/responsive-panel.js';` (registers the tag; side-effect import)
|
|
6
|
+
- **Class** `LyraResponsivePanel`, also available unregistered from `@aceshooting/lyra-ui/components/layout/responsive-panel/responsive-panel.class.js`
|
|
7
|
+
- **Family** `components/layout/` — see `llms/index.md` for its siblings
|
|
8
|
+
- **Optional peers** none
|
|
9
|
+
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## `lr-responsive-panel`
|
|
14
|
+
|
|
15
|
+
The same slotted content either docked inline in the page's normal layout flow (desktop) or
|
|
16
|
+
presented as a full-screen/bottom-sheet overlay (mobile), depending on viewport width. First-party
|
|
17
|
+
invention (no Web Awesome equivalent). Typical uses: a settings panel or a conversation-history
|
|
18
|
+
sidebar that's a permanent docked pane on a wide screen but a modal on a phone.
|
|
19
|
+
|
|
20
|
+
**Properties:**
|
|
21
|
+
- `open: boolean = false` (reflected) — in the inline presentation this just means visible/mounted;
|
|
22
|
+
in the overlay presentation this is the actual modal open/closed state.
|
|
23
|
+
- `mode: ResponsivePanelMode = 'auto'` (reflected) — `'auto'` tracks `mobile-breakpoint` live;
|
|
24
|
+
`'inline'`/`'overlay'` force that presentation regardless of viewport width.
|
|
25
|
+
- `variant: ResponsivePanelVariant = 'fullscreen'` (reflected) — only affects the overlay
|
|
26
|
+
presentation's visual treatment: `'fullscreen'` covers the whole viewport; `'bottom-sheet'` slides
|
|
27
|
+
up from the bottom and doesn't cover the full height. Has no visual effect while the effective
|
|
28
|
+
presentation resolves to `'inline'`.
|
|
29
|
+
- `label: string = ''` — accessible name for the overlay presentation's `role="dialog"`, used
|
|
30
|
+
verbatim when set. When empty, falls back to the `header` slot's content: a heading element
|
|
31
|
+
(`h1`–`h6` or `[role="heading"]`) among the slotted header content wins if present, otherwise the
|
|
32
|
+
header slot's combined text content is used (mirrors `lr-dialog`'s `detectHeading()` fallback,
|
|
33
|
+
via `aria-label` rather than `aria-labelledby` since the header content is light DOM while
|
|
34
|
+
`[part="panel"]` is in shadow DOM). A panel opened with neither `label` nor header content still
|
|
35
|
+
renders `role="dialog"` with no accessible name. Unused in the inline presentation, which has no
|
|
36
|
+
dialog semantics to name.
|
|
37
|
+
- `mobileBreakpoint: string = '768px'` (attribute `mobile-breakpoint`) — CSS length passed to
|
|
38
|
+
`matchMedia` as `(max-width: <this>)` to decide, in `mode="auto"`, whether the effective
|
|
39
|
+
presentation is `'overlay'` (below/at this width) or `'inline'` (above it).
|
|
40
|
+
|
|
41
|
+
**Methods:** `close(reason: ResponsivePanelCloseReason = 'api'): void` — closes the panel (sets
|
|
42
|
+
`open = false`), emits `lr-close` with `reason`, and — only in the overlay presentation — returns
|
|
43
|
+
focus to whichever element triggered the open. No-op if already closed. Built-in overlay triggers
|
|
44
|
+
call this with `'escape'`/`'backdrop'`; a consumer's own close affordance (a footer button, a docked
|
|
45
|
+
panel's own toggle) should call it directly with its own reason string.
|
|
46
|
+
|
|
47
|
+
**Events:** `lr-close` (`detail: ResponsivePanelCloseReason` = `'escape'|'backdrop'|'api'|string`;
|
|
48
|
+
fired by the overlay presentation's built-in dismiss triggers — Escape, backdrop click — and by any
|
|
49
|
+
`close()` call, in either presentation; a plain `open = false` property write does **not** fire it,
|
|
50
|
+
only going through `close()` counts as a dismissal), `lr-mode-change`
|
|
51
|
+
(`detail: ResponsivePanelModeChangeDetail` = `{ mode: ResponsivePanelEffectiveMode }`; fired whenever
|
|
52
|
+
the *effective* mode — not the `mode` prop's possibly-`'auto'` literal value — changes between
|
|
53
|
+
`'inline'` and `'overlay'`; never fired on the initial render, only for a live change thereafter).
|
|
54
|
+
|
|
55
|
+
**Slots:** default (the panel body), `header` (optional header content, rendered above the body),
|
|
56
|
+
`footer` (optional footer content, e.g. action buttons, rendered below the body).
|
|
57
|
+
|
|
58
|
+
**CSS parts:** `base`, `backdrop`, `panel`, `header`, `body`, `footer` (`backdrop` is only rendered
|
|
59
|
+
in the overlay presentation).
|
|
60
|
+
|
|
61
|
+
**Themeable custom properties:** `--lr-responsive-panel-overlay-color` (default
|
|
62
|
+
`var(--lr-color-overlay)` — the overlay presentation's backdrop scrim color), plus shared tokens (`--lr-color-border`, `--lr-color-surface`,
|
|
63
|
+
`--lr-space-*`, `--lr-radius`, `--lr-shadow`).
|
|
64
|
+
|
|
65
|
+
**Optional peer deps:** none.
|
|
66
|
+
|
|
67
|
+
```html
|
|
68
|
+
<lr-responsive-panel id="settings-panel" label="Settings" variant="bottom-sheet" mobile-breakpoint="768px">
|
|
69
|
+
<span slot="header"><h2>Settings</h2></span>
|
|
70
|
+
<div>Panel body content — a form, a list, anything.</div>
|
|
71
|
+
<span slot="footer"><button onclick="document.getElementById('settings-panel').close()">Done</button></span>
|
|
72
|
+
</lr-responsive-panel>
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Breakpoint detection uses `matchMedia('(max-width: ' + mobileBreakpoint + ')')`, re-evaluated live
|
|
76
|
+
while connected — resizing/rotating a device that crosses the breakpoint while `mode="auto"` (the
|
|
77
|
+
default) updates the effective presentation without unmounting or re-creating the slotted content.
|
|
78
|
+
Inline and overlay presentations share the same shadow DOM, so slotted content and scroll position
|
|
79
|
+
survive the transition. Focus already inside the panel is preserved. If focus is outside when an
|
|
80
|
+
open inline panel becomes an overlay, focus moves to the first composed focus target (falling back
|
|
81
|
+
to the panel), so it cannot remain behind `aria-modal="true"`. Closing restores the element captured
|
|
82
|
+
when the panel originally opened, even when that original open happened inline. The overlay
|
|
83
|
+
presentation participates in the shared modal stack rather than nesting a `<lr-dialog>`.
|
|
84
|
+
|
|
85
|
+
The package root also exports the pure `resolveEffectiveMode(mode: ResponsivePanelMode,
|
|
86
|
+
belowBreakpoint: boolean): ResponsivePanelEffectiveMode` resolver — renamed on export to
|
|
87
|
+
`resolveResponsivePanelEffectiveMode` to avoid a name collision — alongside the
|
|
88
|
+
`ResponsivePanelMode`/`ResponsivePanelEffectiveMode`/`ResponsivePanelVariant`/
|
|
89
|
+
`ResponsivePanelCloseReason`/`ResponsivePanelModeChangeDetail` types. It's the same logic the
|
|
90
|
+
element's internal `matchMedia` listener calls: `'inline'`/`'overlay'` pass straight through
|
|
91
|
+
unchanged; `'auto'` resolves to `'overlay'` when `belowBreakpoint` is true, `'inline'` otherwise —
|
|
92
|
+
exposed standalone so a consumer can compute or unit-test the same resolution without a real browser
|
|
93
|
+
window.
|
|
94
|
+
|
|
95
|
+
**Known gotchas:**
|
|
96
|
+
- assigning `open` directly still does not emit `lr-close`; use `close()` when the dismissal
|
|
97
|
+
event/reason is required. While overlay chrome is active, however, the `true` → `false` state
|
|
98
|
+
transition restores opener focus regardless of whether it came from `close()`, a property write,
|
|
99
|
+
or attribute removal.
|
|
100
|
+
- crossing inline → overlay while already open preserves focus that is already inside and moves
|
|
101
|
+
outside focus into the panel; do not expect focus to remain on page content behind the modal.
|
|
102
|
+
- `variant="bottom-sheet"` has no visible effect at all while the effective presentation is
|
|
103
|
+
`'inline'` — it only changes the overlay presentation's anchoring/height.
|
|
104
|
+
- a reconnect that preserves the same element instance (e.g. a drag-and-drop reparent) resumes its
|
|
105
|
+
shared overlay registration and re-acquires the scroll lock if overlay chrome was still active
|
|
106
|
+
across the move — `disconnectedCallback`/`connectedCallback` fire back-to-back with no update in
|
|
107
|
+
between, so `willUpdate()` alone wouldn't otherwise notice.
|
|
108
|
+
- the exported pure function is named `resolveEffectiveMode` in the component module but re-exported
|
|
109
|
+
from the package root as `resolveResponsivePanelEffectiveMode` — importing the un-prefixed name
|
|
110
|
+
from `@aceshooting/lyra-ui` will fail.
|
|
111
|
+
|
|
112
|
+
---
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
<!-- GENERATED by scripts/build-llms.mjs from llms/agent-tools.md — do not edit this file. -->
|
|
2
|
+
|
|
3
|
+
# `lr-result-card`
|
|
4
|
+
|
|
5
|
+
- **Import** `import '@aceshooting/lyra-ui/components/agent-tools/result-card/result-card.js';` (registers the tag; side-effect import)
|
|
6
|
+
- **Class** `LyraResultCard`, also available unregistered from `@aceshooting/lyra-ui/components/agent-tools/result-card/result-card.class.js`
|
|
7
|
+
- **Family** `components/agent-tools/` — see `llms/index.md` for its siblings
|
|
8
|
+
- **Optional peers** none
|
|
9
|
+
- **Documented with** `lr-result-field` (same section below)
|
|
10
|
+
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## `lr-result-card` / `lr-result-field`
|
|
15
|
+
|
|
16
|
+
A small, tightly-coupled pair giving any custom `lr-tool-result-view` renderer (registered via
|
|
17
|
+
`registerToolRenderer()` in `../tool-result-view/registry.js`) a consistent "small bordered card +
|
|
18
|
+
label/value row" visual language, without each one hand-rolling its own box. Neither component has
|
|
19
|
+
any code dependency on the tool-result-view registry itself — they're generically usable anywhere a
|
|
20
|
+
small card/field shell is useful.
|
|
21
|
+
|
|
22
|
+
### `lr-result-card`
|
|
23
|
+
|
|
24
|
+
A small bordered card shell. Purely visual, with no state of its own beyond slot-presence tracking.
|
|
25
|
+
|
|
26
|
+
**Properties:**
|
|
27
|
+
- `title: string = ''` — small heading for the card. Leave unset for an untitled card (e.g. a bare
|
|
28
|
+
block of `lr-result-field` rows with no natural heading).
|
|
29
|
+
|
|
30
|
+
**Events:** none.
|
|
31
|
+
|
|
32
|
+
**Slots:** default (the card body — typically one or more `lr-result-field` rows, though any
|
|
33
|
+
content is accepted), `actions` (small header controls, e.g. a copy button, rendered alongside the
|
|
34
|
+
title).
|
|
35
|
+
|
|
36
|
+
**CSS parts:** `base` (outer bordered container), `header` (present in the DOM at all times so a
|
|
37
|
+
later `slotchange` on `actions` is still observed, but `hidden` whenever there's no `title` and no
|
|
38
|
+
`actions` content), `title` (truncates with an ellipsis when it overflows; carries its own native
|
|
39
|
+
`title` attribute — the full string — so hovering the truncated text reveals it via the browser's
|
|
40
|
+
default tooltip, scoped to just this element rather than the whole card), `actions` (`hidden`
|
|
41
|
+
whenever the slot has no assigned content), `body`.
|
|
42
|
+
|
|
43
|
+
**Themeable custom properties:** shared tokens only — `--lr-space-xs`/`-s`, `--lr-color-border`/
|
|
44
|
+
`-surface`/`-text`, `--lr-radius`.
|
|
45
|
+
|
|
46
|
+
### `lr-result-field`
|
|
47
|
+
|
|
48
|
+
A single label/value row — e.g. "Status: 200 OK" or "Duration: 340ms" — rendered as a dense
|
|
49
|
+
"label: value" line by default, matching the compact, small-card presentation this pair exists for.
|
|
50
|
+
|
|
51
|
+
**Properties:**
|
|
52
|
+
- `label: string = ''` — the field name, e.g. "Status". Leave unset to render a value with no label.
|
|
53
|
+
- `value: string = ''` — plain-text value, e.g. "200 OK". Ignored once the default slot carries real
|
|
54
|
+
content.
|
|
55
|
+
|
|
56
|
+
**Events:** none.
|
|
57
|
+
|
|
58
|
+
**Slots:** default — rich value content (e.g. a `lr-chip` status badge, or a plain text override),
|
|
59
|
+
taking precedence over `value` whenever it has any assigned content. "Real content" means any
|
|
60
|
+
assigned *element* (even one with no text of its own, like an attribute-driven status badge) or any
|
|
61
|
+
non-whitespace text node — both a rich slotted badge and a plain-text override are caught.
|
|
62
|
+
|
|
63
|
+
**CSS parts:** `base` (row container), `label` (including its trailing colon), `value` (wrapper
|
|
64
|
+
around either the slotted content or the plain `value` text).
|
|
65
|
+
|
|
66
|
+
**Themeable custom properties:** shared tokens only — `--lr-space-xs`, `--lr-color-text`/
|
|
67
|
+
`-text-quiet`, `--lr-font`.
|
|
68
|
+
|
|
69
|
+
**Optional peer deps:** none (either component).
|
|
70
|
+
|
|
71
|
+
```html
|
|
72
|
+
<lr-result-card title="Weather">
|
|
73
|
+
<lr-result-field label="Status" value="200 OK"></lr-result-field>
|
|
74
|
+
<lr-result-field label="Duration" value="340ms"></lr-result-field>
|
|
75
|
+
<lr-result-field label="Provider">
|
|
76
|
+
<lr-chip tone="success">OpenWeather</lr-chip>
|
|
77
|
+
</lr-result-field>
|
|
78
|
+
</lr-result-card>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
**Known gotchas:**
|
|
82
|
+
- `HTMLElement.textContent` read on a shadow-DOM wrapper containing a `<slot>` does NOT include the
|
|
83
|
+
slot's assigned/projected light-DOM content — only literal fallback children of the `<slot>` tag
|
|
84
|
+
itself (there are none here). Asserting against `[part="value"]`'s own `.textContent` to check
|
|
85
|
+
rendered slotted content will read as empty even when the component is rendering correctly;
|
|
86
|
+
assert against the slot's `assignedNodes()`/`assignedElements()` instead.
|
|
87
|
+
|
|
88
|
+
---
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
<!-- GENERATED by scripts/build-llms.mjs from llms/agent-tools.md — do not edit this file. -->
|
|
2
|
+
|
|
3
|
+
# `lr-result-field`
|
|
4
|
+
|
|
5
|
+
- **Import** `import '@aceshooting/lyra-ui/components/agent-tools/result-card/result-field.js';` (registers the tag; side-effect import)
|
|
6
|
+
- **Class** `LyraResultField`, also available unregistered from `@aceshooting/lyra-ui/components/agent-tools/result-card/result-field.class.js`
|
|
7
|
+
- **Family** `components/agent-tools/` — see `llms/index.md` for its siblings
|
|
8
|
+
- **Optional peers** none
|
|
9
|
+
- **Documented with** `lr-result-card` (same section below)
|
|
10
|
+
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## `lr-result-card` / `lr-result-field`
|
|
15
|
+
|
|
16
|
+
A small, tightly-coupled pair giving any custom `lr-tool-result-view` renderer (registered via
|
|
17
|
+
`registerToolRenderer()` in `../tool-result-view/registry.js`) a consistent "small bordered card +
|
|
18
|
+
label/value row" visual language, without each one hand-rolling its own box. Neither component has
|
|
19
|
+
any code dependency on the tool-result-view registry itself — they're generically usable anywhere a
|
|
20
|
+
small card/field shell is useful.
|
|
21
|
+
|
|
22
|
+
### `lr-result-card`
|
|
23
|
+
|
|
24
|
+
A small bordered card shell. Purely visual, with no state of its own beyond slot-presence tracking.
|
|
25
|
+
|
|
26
|
+
**Properties:**
|
|
27
|
+
- `title: string = ''` — small heading for the card. Leave unset for an untitled card (e.g. a bare
|
|
28
|
+
block of `lr-result-field` rows with no natural heading).
|
|
29
|
+
|
|
30
|
+
**Events:** none.
|
|
31
|
+
|
|
32
|
+
**Slots:** default (the card body — typically one or more `lr-result-field` rows, though any
|
|
33
|
+
content is accepted), `actions` (small header controls, e.g. a copy button, rendered alongside the
|
|
34
|
+
title).
|
|
35
|
+
|
|
36
|
+
**CSS parts:** `base` (outer bordered container), `header` (present in the DOM at all times so a
|
|
37
|
+
later `slotchange` on `actions` is still observed, but `hidden` whenever there's no `title` and no
|
|
38
|
+
`actions` content), `title` (truncates with an ellipsis when it overflows; carries its own native
|
|
39
|
+
`title` attribute — the full string — so hovering the truncated text reveals it via the browser's
|
|
40
|
+
default tooltip, scoped to just this element rather than the whole card), `actions` (`hidden`
|
|
41
|
+
whenever the slot has no assigned content), `body`.
|
|
42
|
+
|
|
43
|
+
**Themeable custom properties:** shared tokens only — `--lr-space-xs`/`-s`, `--lr-color-border`/
|
|
44
|
+
`-surface`/`-text`, `--lr-radius`.
|
|
45
|
+
|
|
46
|
+
### `lr-result-field`
|
|
47
|
+
|
|
48
|
+
A single label/value row — e.g. "Status: 200 OK" or "Duration: 340ms" — rendered as a dense
|
|
49
|
+
"label: value" line by default, matching the compact, small-card presentation this pair exists for.
|
|
50
|
+
|
|
51
|
+
**Properties:**
|
|
52
|
+
- `label: string = ''` — the field name, e.g. "Status". Leave unset to render a value with no label.
|
|
53
|
+
- `value: string = ''` — plain-text value, e.g. "200 OK". Ignored once the default slot carries real
|
|
54
|
+
content.
|
|
55
|
+
|
|
56
|
+
**Events:** none.
|
|
57
|
+
|
|
58
|
+
**Slots:** default — rich value content (e.g. a `lr-chip` status badge, or a plain text override),
|
|
59
|
+
taking precedence over `value` whenever it has any assigned content. "Real content" means any
|
|
60
|
+
assigned *element* (even one with no text of its own, like an attribute-driven status badge) or any
|
|
61
|
+
non-whitespace text node — both a rich slotted badge and a plain-text override are caught.
|
|
62
|
+
|
|
63
|
+
**CSS parts:** `base` (row container), `label` (including its trailing colon), `value` (wrapper
|
|
64
|
+
around either the slotted content or the plain `value` text).
|
|
65
|
+
|
|
66
|
+
**Themeable custom properties:** shared tokens only — `--lr-space-xs`, `--lr-color-text`/
|
|
67
|
+
`-text-quiet`, `--lr-font`.
|
|
68
|
+
|
|
69
|
+
**Optional peer deps:** none (either component).
|
|
70
|
+
|
|
71
|
+
```html
|
|
72
|
+
<lr-result-card title="Weather">
|
|
73
|
+
<lr-result-field label="Status" value="200 OK"></lr-result-field>
|
|
74
|
+
<lr-result-field label="Duration" value="340ms"></lr-result-field>
|
|
75
|
+
<lr-result-field label="Provider">
|
|
76
|
+
<lr-chip tone="success">OpenWeather</lr-chip>
|
|
77
|
+
</lr-result-field>
|
|
78
|
+
</lr-result-card>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
**Known gotchas:**
|
|
82
|
+
- `HTMLElement.textContent` read on a shadow-DOM wrapper containing a `<slot>` does NOT include the
|
|
83
|
+
slot's assigned/projected light-DOM content — only literal fallback children of the `<slot>` tag
|
|
84
|
+
itself (there are none here). Asserting against `[part="value"]`'s own `.textContent` to check
|
|
85
|
+
rendered slotted content will read as empty even when the component is rendering correctly;
|
|
86
|
+
assert against the slot's `assignedNodes()`/`assignedElements()` instead.
|
|
87
|
+
|
|
88
|
+
---
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
<!-- GENERATED by scripts/build-llms.mjs from llms/retrieval.md — do not edit this file. -->
|
|
2
|
+
|
|
3
|
+
# `lr-retrieval-results`
|
|
4
|
+
|
|
5
|
+
- **Import** `import '@aceshooting/lyra-ui/components/retrieval/retrieval-results/retrieval-results.js';` (registers the tag; side-effect import)
|
|
6
|
+
- **Class** `LyraRetrievalResults`, also available unregistered from `@aceshooting/lyra-ui/components/retrieval/retrieval-results/retrieval-results.class.js`
|
|
7
|
+
- **Family** `components/retrieval/` — see `llms/index.md` for its siblings
|
|
8
|
+
- **Optional peers** none
|
|
9
|
+
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## `lr-retrieval-results`
|
|
14
|
+
|
|
15
|
+
Orchestration-level ranked-chunk surface: takes raw `RetrievalChunk[]` and adds deduplication,
|
|
16
|
+
optional source grouping, multi-selection, pagination/infinite loading, and a compact/expanded
|
|
17
|
+
switch. Each row wraps exactly one chunk in an internal `lr-chunk-inspector` (fed a single-element
|
|
18
|
+
array), reusing its score bar, tier coloring, title+page rendering, and expandable text verbatim.
|
|
19
|
+
Large sets window through an internal `lr-virtual-list`.
|
|
20
|
+
|
|
21
|
+
**Properties:**
|
|
22
|
+
- `chunks: RetrievalChunk[] = []` (attribute: false) — **`RetrievalChunk`, imported from
|
|
23
|
+
`@aceshooting/lyra-ui/ai`** (`src/ai/types.ts`): `{ id: string; text: string; score: number;
|
|
24
|
+
source: DocumentRef; metadata?: Record<string, unknown> }`. The raw, un-deduplicated/unsorted/
|
|
25
|
+
ungrouped result set; host-owned. Internally mapped to `lr-chunk-inspector`'s flatter `LyraChunk`
|
|
26
|
+
via `source.id → sourceId`, `source.name → title` (no `page`/`anchor` — `RetrievalChunk` carries
|
|
27
|
+
neither, and they're left unset rather than guessed from `metadata`)
|
|
28
|
+
- `selectedIds: string[] = []` (attribute: false) — controlled selection by chunk `id`. The component
|
|
29
|
+
updates its own copy on toggle *then* emits `lr-select`; reassign to control. An id with no
|
|
30
|
+
matching chunk is harmless
|
|
31
|
+
- `selectable: boolean = true` (reflected) — shows a per-row `lr-checkbox`
|
|
32
|
+
- `dedupe: boolean = true` (reflected) — drops duplicate `id`s, keeping the higher `score`
|
|
33
|
+
- `sort: 'score' | 'none' = 'score'` — `'score'` sorts descending; `'none'` preserves given order
|
|
34
|
+
- `grouping: 'source' | 'none' = 'none'` — `'source'` buckets rows under a header per `source.id`,
|
|
35
|
+
each bucket ordered by its own best-scoring chunk, and **always** virtualizes regardless of
|
|
36
|
+
`virtualizeAt`
|
|
37
|
+
- `presentation: 'compact' | 'expanded' = 'expanded'` — `'expanded'` shows each chunk's full row
|
|
38
|
+
(score bar, text preview with its own toggle) plus any `metadata`; `'compact'` shows title + score
|
|
39
|
+
bar only and omits `metadata` entirely
|
|
40
|
+
- `thresholds: { high: number; medium: number } = { high: 0.75, medium: 0.5 }` (attribute: false) —
|
|
41
|
+
forwarded to every per-row `lr-chunk-inspector`
|
|
42
|
+
- `virtualizeAt: number = 50` (attribute `virtualize-at`) — row count (after dedup, before grouping)
|
|
43
|
+
above which rendering switches to the internal `lr-virtual-list`
|
|
44
|
+
- `activeId: string = ''` (attribute `active-id`) — the chunk currently open in a viewer; forwarded
|
|
45
|
+
to each row and to the virtual list (which scrolls the matching row into view)
|
|
46
|
+
- `loading: boolean = false` (reflected)
|
|
47
|
+
- `hasMore: boolean = false` (attribute `has-more`, reflected) — while virtualized, forwarded to the
|
|
48
|
+
virtual list so scroll-near-bottom fires `lr-load-more`; otherwise shows the built-in footer button
|
|
49
|
+
- `error: string = ''` — non-empty replaces the whole result view with a `role="alert"` message.
|
|
50
|
+
Caller-supplied text, not localized (app/network data, not library copy)
|
|
51
|
+
- `label: string = ''` — accessible name; defaults to the localized `chunkInspectorLabel`
|
|
52
|
+
|
|
53
|
+
**Events:**
|
|
54
|
+
- `lr-select` (`detail: RetrievalResultsSelectDetail` = `{ ids: string[]; chunks: RetrievalChunk[] }`)
|
|
55
|
+
— the *complete* updated selection, both as ids and as the matching deduplicated records, so a host
|
|
56
|
+
needn't re-look-up ids against its own copy on every toggle.
|
|
57
|
+
- `lr-load-more` (`detail: undefined`) — from the virtual list's scroll-near-bottom detection while
|
|
58
|
+
virtualized, or the `[part="load-more"]` button otherwise. Only fires while `hasMore` is true and
|
|
59
|
+
`loading` is false.
|
|
60
|
+
- `lr-chunk-open` (`detail: { id: string; sourceId: string }`) — forwarded verbatim from a row's
|
|
61
|
+
`lr-chunk-inspector`; the event a host routes into `lr-document-viewer`.
|
|
62
|
+
|
|
63
|
+
**Slots:** none.
|
|
64
|
+
|
|
65
|
+
**CSS parts:** `base`, `error` (`role="alert"`, while `error` is non-empty), `spinner` (initial-load
|
|
66
|
+
`lr-spinner`, while `loading` and `chunks` is still empty), `empty` (when `chunks` is empty and
|
|
67
|
+
neither `error` nor `loading` is set), `row` (a plain element in this shadow root below the
|
|
68
|
+
virtualization threshold; exported from the internal `lr-virtual-list`'s own `row` part while
|
|
69
|
+
virtualized — `::part(row)` reaches it either way), `group-header` (exported from the virtual list's
|
|
70
|
+
`group` part; grouped/virtualized mode only), `select` (per-row `lr-checkbox`, omitted when
|
|
71
|
+
`selectable` is false), `row-body` (carries `data-selected`), `metadata` (a `<dl>`; omitted when the
|
|
72
|
+
chunk has none or while `presentation="compact"`), `metadata-entry`, `load-more-row`, `load-more`.
|
|
73
|
+
|
|
74
|
+
**Themeable custom properties:** shared tokens only.
|
|
75
|
+
|
|
76
|
+
**Optional peer deps:** none.
|
|
77
|
+
|
|
78
|
+
**Known gotchas:**
|
|
79
|
+
- While virtualized, each row's content lives inside `lr-virtual-list`'s shadow root, not this
|
|
80
|
+
component's.
|
|
81
|
+
- Below the virtualization threshold, scroll-near-bottom isn't a meaningful gesture, so a
|
|
82
|
+
`[part="load-more"]` button takes its place (replaced by a spinner while `loading`).
|
|
83
|
+
|
|
84
|
+
---
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
<!-- GENERATED by scripts/build-llms.mjs from llms/retrieval.md — do not edit this file. -->
|
|
2
|
+
|
|
3
|
+
# `lr-retrieval-search`
|
|
4
|
+
|
|
5
|
+
- **Import** `import '@aceshooting/lyra-ui/components/retrieval/retrieval-search/retrieval-search.js';` (registers the tag; side-effect import)
|
|
6
|
+
- **Class** `LyraRetrievalSearch`, also available unregistered from `@aceshooting/lyra-ui/components/retrieval/retrieval-search/retrieval-search.class.js`
|
|
7
|
+
- **Family** `components/retrieval/` — see `llms/index.md` for its siblings
|
|
8
|
+
- **Optional peers** none
|
|
9
|
+
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## `lr-retrieval-search`
|
|
14
|
+
|
|
15
|
+
Query bar for a retrieval/RAG surface: query text, an active filter/scope chip row, a
|
|
16
|
+
vector/keyword/hybrid mode selector, and loading/error/empty feedback. Emits `RetrievalQuery` on
|
|
17
|
+
submit. Fully controlled; performs no retrieval itself. Composes `lr-input type="search"`,
|
|
18
|
+
`lr-segmented`, `lr-chip`/`lr-chip-group`, `lr-spinner`, and a compact `lr-empty`.
|
|
19
|
+
|
|
20
|
+
**Properties:**
|
|
21
|
+
- `query: string = ''` — the query text. The internal `lr-input` updates it optimistically as the
|
|
22
|
+
user types; a host reassignment always wins
|
|
23
|
+
- `mode: LyraRetrievalMode = 'hybrid'` — `LyraRetrievalMode = RetrievalQuery['mode'] = 'vector' |
|
|
24
|
+
'keyword' | 'hybrid'`, re-exported here rather than redefined
|
|
25
|
+
- `filters: Record<string, unknown> = {}` (attribute: false) — arbitrary metadata filters, rendered
|
|
26
|
+
as removable `"{key}: {value}"` chips. Controlled
|
|
27
|
+
- `scope: string[] = []` (attribute: false) — source-scope ids/labels this query is restricted to,
|
|
28
|
+
rendered as removable chips alongside `filters`. Controlled
|
|
29
|
+
- `loading: boolean = false` (reflected) — host-driven busy flag; this component cannot know when a
|
|
30
|
+
request resolves
|
|
31
|
+
- `errorText: string = ''` (attribute `error-text`) — last failed search's message, shown verbatim
|
|
32
|
+
(caller-owned text, not localized) in a `role="alert"` region
|
|
33
|
+
- `empty: boolean = false` (reflected) — host-driven "the last completed search returned zero
|
|
34
|
+
results"; never inferred, since this component holds no results data (see `lr-retrieval-results`)
|
|
35
|
+
- `placeholder: string = ''` — falls back to the localized generic "Search" placeholder, which also
|
|
36
|
+
becomes the field's accessible name
|
|
37
|
+
- `label: string = ''` — accessible name for the `role="search"` landmark; falls back to a localized
|
|
38
|
+
default
|
|
39
|
+
- `accessibleLabel: string | null = null` (attribute `aria-label`) — overrides the landmark's
|
|
40
|
+
computed accessible name; wins over `label` and the localized default, and attribute-reflects from
|
|
41
|
+
a host-level `aria-label`
|
|
42
|
+
|
|
43
|
+
**Events:**
|
|
44
|
+
- `lr-search` (`detail: RetrievalQuery` from `@aceshooting/lyra-ui/ai` = `{ text: string;
|
|
45
|
+
filters?: Record<string, unknown>; mode: 'vector' | 'keyword' | 'hybrid'; scope?: string[] }`) —
|
|
46
|
+
Enter in the query field, or the submit button while not `loading`.
|
|
47
|
+
- `lr-cancel` (`detail: CancelEventDetail` from `@aceshooting/lyra-ui/ai` = `{ reason?: string }`) —
|
|
48
|
+
either the button was clicked while `loading` (`detail: {}`), or a new submission superseded an
|
|
49
|
+
in-flight one (`detail: { reason: 'superseded' }`, fired immediately *before* the new `lr-search`).
|
|
50
|
+
- `lr-filters-change` (`detail: RetrievalFiltersChangeDetail` = `{ filters: Record<string, unknown>;
|
|
51
|
+
scope: string[] }`) — a chip's remove button was activated; the complete already-updated next
|
|
52
|
+
state, not a delta. The component updates its own copy first, then emits; reassign to control.
|
|
53
|
+
|
|
54
|
+
**Slots:** none.
|
|
55
|
+
|
|
56
|
+
**CSS parts:** `base` (the `role="search"` landmark), `row`, `query`, `mode`, `submit` (reads
|
|
57
|
+
"Search" while idle, "Cancel" while `loading`), `filters` (omitted entirely when both `filters` and
|
|
58
|
+
`scope` are empty), `spinner` (only while `loading`), `error` (`role="alert"`, only when `errorText`
|
|
59
|
+
is non-empty and not `loading`), `empty` (only when `empty` and neither `loading` nor `errorText`).
|
|
60
|
+
|
|
61
|
+
**Themeable custom properties:** shared tokens only.
|
|
62
|
+
|
|
63
|
+
**Optional peer deps:** none.
|
|
64
|
+
|
|
65
|
+
**Known gotchas:**
|
|
66
|
+
- Submitting while `loading` is already true **supersedes** the in-flight request: `lr-cancel` fires
|
|
67
|
+
immediately before the new `lr-search`. Clicking the submit button (rather than pressing Enter)
|
|
68
|
+
while `loading` only emits `lr-cancel` and does not resubmit.
|
|
69
|
+
|
|
70
|
+
---
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
<!-- GENERATED by scripts/build-llms.mjs from llms/retrieval.md — do not edit this file. -->
|
|
2
|
+
|
|
3
|
+
# `lr-retrieval-trace`
|
|
4
|
+
|
|
5
|
+
- **Import** `import '@aceshooting/lyra-ui/components/retrieval/retrieval-trace/retrieval-trace.js';` (registers the tag; side-effect import)
|
|
6
|
+
- **Class** `LyraRetrievalTrace`, also available unregistered from `@aceshooting/lyra-ui/components/retrieval/retrieval-trace/retrieval-trace.class.js`
|
|
7
|
+
- **Family** `components/retrieval/` — see `llms/index.md` for its siblings
|
|
8
|
+
- **Optional peers** none
|
|
9
|
+
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## `lr-retrieval-trace`
|
|
14
|
+
|
|
15
|
+
A retrieval pipeline's stage timeline (query rewriting, embedding, retrieval, reranking, filtering)
|
|
16
|
+
rendered through `lr-span-waterfall`, plus a disclosure list exposing each stage's evidence. Never
|
|
17
|
+
fetches, ranks, or computes retrieval results itself.
|
|
18
|
+
|
|
19
|
+
**Properties:**
|
|
20
|
+
- `stages: RetrievalStage[] = []` (attribute: false) — `RetrievalStage { id: string; kind:
|
|
21
|
+
RetrievalStageKind; label?: string; startMs: number; endMs?: number; status: 'pending' | 'running'
|
|
22
|
+
| 'success' | 'error' | 'denied'; detail?: string; evidence?: RetrievalStageEvidence }` (exported
|
|
23
|
+
here), where `RetrievalStageKind = 'query-rewrite' | 'embed' | 'retrieve' | 'rerank' | 'filter'`.
|
|
24
|
+
`startMs`/`endMs` are milliseconds relative to the trace start (`endMs` absent while still
|
|
25
|
+
running); `status` uses `LyraSpan.status`'s vocabulary verbatim; `label` overrides the localized
|
|
26
|
+
default label for `kind`; `detail` is secondary text under the stage name. Pass in any order — the
|
|
27
|
+
timeline sorts by `startMs`. Each stage projects to one `LyraSpan` with `kind` mapped
|
|
28
|
+
`query-rewrite → 'llm'`, `embed → 'embedding'`, `retrieve → 'retriever'`,
|
|
29
|
+
`rerank`/`filter` → `'tool'`
|
|
30
|
+
- `RetrievalStageEvidence { text?: string; chunks?: RetrievalChunk[]; metadata?: Record<string,
|
|
31
|
+
unknown> }` — `chunks` is **`RetrievalChunk` from `@aceshooting/lyra-ui/ai`** verbatim, rendered
|
|
32
|
+
through `lr-chunk-inspector` (`source.id → sourceId`, `source.name → title`); `text` is free-form
|
|
33
|
+
(e.g. the rewritten query, an embedding model id); `metadata` renders as a plain key/value list. A
|
|
34
|
+
stage whose evidence has none of the three renders no disclosure row at all
|
|
35
|
+
- `activeStageId: string | null = null` (attribute `active-stage-id`) — controlled selection,
|
|
36
|
+
forwarded verbatim to the internal `lr-span-waterfall`'s `activeSpanId`
|
|
37
|
+
- `label: string = ''` — accessible name for the timeline; falls back to a host `aria-label`, then
|
|
38
|
+
the waterfall's own localized default
|
|
39
|
+
|
|
40
|
+
**Events:** `lr-stage-select` (`detail: { id: string }`, a stage's bar was activated — click, Enter,
|
|
41
|
+
Space), `lr-stage-toggle` (`detail: { id: string; expanded: boolean }`, an evidence panel was
|
|
42
|
+
toggled, either by its own button or implicitly by selecting that stage in the timeline for the
|
|
43
|
+
first time).
|
|
44
|
+
|
|
45
|
+
**Slots:** none.
|
|
46
|
+
|
|
47
|
+
**CSS parts:** `base`, `timeline` (the internal `lr-span-waterfall`), `evidence-list` (omitted when
|
|
48
|
+
no stage has evidence), `evidence-row` (omitted for a stage with no evidence), `evidence-toggle`,
|
|
49
|
+
`evidence-toggle-icon`, `evidence-body` (hidden while collapsed), `evidence-text`,
|
|
50
|
+
`evidence-metadata` (a `<dl>`), `evidence-metadata-row` (one key/value pair), `evidence-metadata-key`
|
|
51
|
+
(`<dt>`), `evidence-metadata-value` (`<dd>`).
|
|
52
|
+
|
|
53
|
+
**Themeable custom properties:** shared tokens only.
|
|
54
|
+
|
|
55
|
+
**Optional peer deps:** none.
|
|
56
|
+
|
|
57
|
+
**Known gotchas:**
|
|
58
|
+
- Every stage starts collapsed; expansion state is internal `@state` keyed by stage id, not a
|
|
59
|
+
controlled property.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<!-- GENERATED by scripts/build-llms.mjs from llms/forms.md — do not edit this file. -->
|
|
2
|
+
|
|
3
|
+
# `lr-rubric-form`
|
|
4
|
+
|
|
5
|
+
- **Import** `import '@aceshooting/lyra-ui/components/forms/rubric-form/rubric-form.js';` (registers the tag; side-effect import)
|
|
6
|
+
- **Class** `LyraRubricForm`, also available unregistered from `@aceshooting/lyra-ui/components/forms/rubric-form/rubric-form.class.js`
|
|
7
|
+
- **Family** `components/forms/` — see `llms/index.md` for its siblings
|
|
8
|
+
- **Optional peers** none
|
|
9
|
+
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## `lr-rubric-form`
|
|
14
|
+
|
|
15
|
+
A configurable annotation rubric (LangSmith annotation-queue style): score, category, and
|
|
16
|
+
freeform-comment keys with a submit-and-next flow for working through an eval queue. Each
|
|
17
|
+
`RubricKey.type` routes to an existing sibling control: `score` renders `<lr-segmented>` or
|
|
18
|
+
`<lr-slider>`; `category` renders `<lr-select>` or `<lr-checkbox-group>` (`multiple`); `comment`
|
|
19
|
+
renders `<lr-textarea>`.
|
|
20
|
+
|
|
21
|
+
**Properties:** `keys: RubricKey[] = []` (attribute: false, each `{ key, type, label?, description?,
|
|
22
|
+
required?, min?, max?, step? }`), `value: RubricValue = {}` (attribute: false), `itemId: string = ''`
|
|
23
|
+
(attribute `item-id`, reflected), `hasNext: boolean = false` (attribute `has-next`), `skippable:
|
|
24
|
+
boolean = false`, and the shared form properties `name` and `disabled`. `errors: Record<string,
|
|
25
|
+
string>` is the current per-key validation-message state.
|
|
26
|
+
|
|
27
|
+
**Slots:** `actions` — extra host controls rendered in the footer beside Submit/Skip.
|
|
28
|
+
|
|
29
|
+
**Events:** `lr-input` (`detail: { value }`), `lr-validity-change` (`detail: { valid, errors }`,
|
|
30
|
+
fired only on an actual change), `lr-submit` (`detail: { value, itemId }`), and `lr-skip`
|
|
31
|
+
(`detail: { itemId }`, `skippable` only).
|
|
32
|
+
|
|
33
|
+
**CSS parts:** `base` (the outer wrapper), `field` (one key's wrapper), `label`, `description`,
|
|
34
|
+
`scale` (the rendered score/category/comment control's wrapper), `error` (a field-level validation
|
|
35
|
+
message), `footer`, `submit`, `skip` (only rendered when `skippable`), `empty` (shown when `keys` has
|
|
36
|
+
no entries), and `unsupported` (the fallback note for a key whose `type` is outside the three
|
|
37
|
+
supported ones).
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
<!-- GENERATED by scripts/build-llms.mjs from llms/charts.md — do not edit this file. -->
|
|
2
|
+
|
|
3
|
+
# `lr-scatter-chart`
|
|
4
|
+
|
|
5
|
+
- **Import** `import '@aceshooting/lyra-ui/components/charts/chart/scatter-chart.js';` (registers the tag; side-effect import)
|
|
6
|
+
- **Class** `LyraScatterChart`, also available unregistered from `@aceshooting/lyra-ui/components/charts/chart/scatter-chart.class.js`
|
|
7
|
+
- **Family** `components/charts/` — see `llms/index.md` for its siblings
|
|
8
|
+
- **Optional peers** `chart.js`, `chartjs-plugin-zoom` — see `llms/peers.md`
|
|
9
|
+
- **Documented with** `lr-line-chart`, `lr-bar-chart`, `lr-pie-chart`, `lr-doughnut-chart`, `lr-radar-chart`, `lr-polar-area-chart`, `lr-bubble-chart` (same section below)
|
|
10
|
+
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Typed subclasses: `lr-line-chart`, `lr-bar-chart`, `lr-pie-chart`, `lr-doughnut-chart`, `lr-radar-chart`, `lr-polar-area-chart`, `lr-bubble-chart`, `lr-scatter-chart`
|
|
15
|
+
|
|
16
|
+
Each is `LyraChart` with `type` locked to a fixed value — respectively `line`, `bar`, `pie`,
|
|
17
|
+
`doughnut`, `radar`, `polarArea`, `bubble`, `scatter` — via a real `get`/`set` accessor pair the
|
|
18
|
+
shared `lockChartType()` helper installs on the subclass's own prototype (`declare type: '…'`
|
|
19
|
+
narrows the TS type at compile time; the runtime lock is the `Object.defineProperty` pair alongside
|
|
20
|
+
it — the same helper `lr-histogram` uses), not merely a class-field default a later assignment
|
|
21
|
+
could still override.
|
|
22
|
+
|
|
23
|
+
Everything else is inherited verbatim from `lr-chart`; each name below has the same type, default,
|
|
24
|
+
and behavior there. **See `llms/components/lr-chart.md` for the details, code example, and gotchas
|
|
25
|
+
of every entry in these lists.**
|
|
26
|
+
|
|
27
|
+
**Properties:** `labels`, `datasets`, `legend`, `legendPosition` (attribute `legend-position`),
|
|
28
|
+
`valueFormatter`, `area`, `zoom`, `height`, `xLabel` (`x-label`), `yLabel` (`y-label`), `y2Label`
|
|
29
|
+
(`y2-label`), `beginAtZero` (`begin-at-zero`), `horizontal`, `stacked`, `config`, `accessibleLabel`
|
|
30
|
+
(`accessible-label`), `accessibleDescription` (`accessible-description`), `showDataTable`
|
|
31
|
+
(`show-data-table`), `chartArea` (readonly). `type` is the only member that differs: read-only,
|
|
32
|
+
locked to this tag's value.
|
|
33
|
+
|
|
34
|
+
**Methods:** `resetZoom()`, `refreshTheme()`.
|
|
35
|
+
|
|
36
|
+
**Events:** `lr-zoom` (`detail: { zoomed: boolean }`), `lr-point-click` (`detail: { datasetIndex,
|
|
37
|
+
index, label, value }`).
|
|
38
|
+
|
|
39
|
+
**Slots:** `data-table`, `center`.
|
|
40
|
+
|
|
41
|
+
**CSS parts:** `base`, `canvas`, `reset-zoom-button`, `description`, `data-table`, `center`.
|
|
42
|
+
|
|
43
|
+
**Themeable custom properties:** `--lr-chart-height`, `--lr-chart-grid-color`,
|
|
44
|
+
`--lr-chart-tick-color`, `--lr-chart-legend-color`, `--lr-chart-tooltip-bg`,
|
|
45
|
+
`--lr-chart-tooltip-text`.
|
|
46
|
+
|
|
47
|
+
**Optional peer deps:** same as `lr-chart` — `chart.js`, plus `chartjs-plugin-zoom` only once
|
|
48
|
+
`zoom` is set.
|
|
49
|
+
|
|
50
|
+
```html
|
|
51
|
+
<lr-bar-chart legend></lr-bar-chart>
|
|
52
|
+
<lr-pie-chart></lr-pie-chart>
|
|
53
|
+
<script>
|
|
54
|
+
document.querySelector('lr-bar-chart').labels = ['A', 'B'];
|
|
55
|
+
document.querySelector('lr-bar-chart').datasets = [{ label: 'Count', data: [4, 9] }];
|
|
56
|
+
|
|
57
|
+
document.querySelector('lr-pie-chart').labels = ['A', 'B', 'C'];
|
|
58
|
+
document.querySelector('lr-pie-chart').datasets = [{ label: 'Share', data: [30, 45, 25], color: ['#2563eb', '#16a34a', '#dc2626'] }];
|
|
59
|
+
</script>
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**Known gotchas (in addition to the core `lr-chart` list in `llms/components/lr-chart.md`):**
|
|
63
|
+
- `type` truly is locked per subclass: `<lr-pie-chart type="bar">` or `el.type = 'bar'` at runtime
|
|
64
|
+
is a genuine no-op (the accessor's setter silently ignores the write), not a footgun like a plain
|
|
65
|
+
overridden class-field default would be.
|
|
66
|
+
- `lr-bubble-chart` needs `Series.points` entries with an `x`/`y`/`r` triple, but `Series.points`
|
|
67
|
+
is typed as `{x, y, label?}[]` with no `r` field — cast the array through `as unknown as
|
|
68
|
+
Series['points']` (or a local `BubblePoint` type) when constructing bubble data.
|
|
69
|
+
|
|
70
|
+
---
|