@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,72 @@
|
|
|
1
|
+
<!-- GENERATED by scripts/build-llms.mjs from llms/forms.md — do not edit this file. -->
|
|
2
|
+
|
|
3
|
+
# `lr-code-editor`
|
|
4
|
+
|
|
5
|
+
- **Import** `import '@aceshooting/lyra-ui/components/forms/code-editor/code-editor.js';` (registers the tag; side-effect import)
|
|
6
|
+
- **Class** `LyraCodeEditor`, also available unregistered from `@aceshooting/lyra-ui/components/forms/code-editor/code-editor.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-code-editor`
|
|
14
|
+
|
|
15
|
+
Dependency-free, form-associated multiline code editor built around a native textarea, with an
|
|
16
|
+
optional line-number gutter. No syntax highlighting: `language` is metadata only.
|
|
17
|
+
|
|
18
|
+
**Properties:**
|
|
19
|
+
- `language: string = ''` — reflected onto the `editor` part as `data-language`; purely a styling/
|
|
20
|
+
metadata hook, nothing tokenizes the text
|
|
21
|
+
- `lineNumbers: boolean = true` (attribute `line-numbers`, reflected) — renders the `gutter` part,
|
|
22
|
+
one row per `\n`-separated line
|
|
23
|
+
- `tabSize: number = 2` (attribute `tab-size`) — spaces inserted per Tab press, and the textarea's
|
|
24
|
+
inline `tab-size`. Sanitized on assignment to a finite integer clamped to `1..16`, so a
|
|
25
|
+
`NaN`/`Infinity` value can neither empty the insert nor throw out of `String.repeat()`
|
|
26
|
+
- `label: string = ''`, `hint: string = ''`, `errorText: string = ''` (attribute `error-text`),
|
|
27
|
+
`placeholder: string = ''`
|
|
28
|
+
- `readonly: boolean = false` (reflected) — also disables Tab indentation
|
|
29
|
+
- `resize: 'none' | 'both' | 'horizontal' | 'vertical' = 'both'` — written as the textarea's inline
|
|
30
|
+
`resize`
|
|
31
|
+
- `wrap: 'off' | 'soft' | 'hard' = 'off'` — native textarea wrapping; `'off'` (the default) makes
|
|
32
|
+
the `editor` part the single horizontal scroll viewport
|
|
33
|
+
- `spellcheck: boolean = false` — off by default for code, and parsed with a string-aware converter
|
|
34
|
+
so `spellcheck="false"` really is `false`
|
|
35
|
+
- `autocapitalize: string = 'off'`, `autoCorrect: string = 'off'` (attribute `autocorrect`)
|
|
36
|
+
- `accessibleLabel: string = ''` (attribute `aria-label`) — wins over `label`/the localized
|
|
37
|
+
`codeEditorLabel` fallback on the internal textarea
|
|
38
|
+
|
|
39
|
+
**Methods:** `focus(options?)`, `blur()`, `select()`, `setSelectionRange(start, end, direction?)`,
|
|
40
|
+
`setRangeText(replacement, start?, end?, selectMode?)` (writes the result back into `value` without
|
|
41
|
+
emitting an event), plus the `selectionStart`/`selectionEnd` getters (both `0` before first render).
|
|
42
|
+
|
|
43
|
+
**Events:** `input` and `change` — Lyra-emitted, bubbling/composed, each with `detail: { value }`
|
|
44
|
+
(so they carry a detail a native `input`/`change` would not); also `focus`/`blur`, re-dispatched
|
|
45
|
+
bubbling and composed from the internal textarea.
|
|
46
|
+
|
|
47
|
+
**Slots:** `label`, `hint`, `error`.
|
|
48
|
+
|
|
49
|
+
**CSS parts:** `form-control`, `label` (**not** `form-control-label` as on the other form
|
|
50
|
+
components), `editor` (the bordered frame and the single scroll viewport), `gutter` (line numbers,
|
|
51
|
+
`aria-hidden`, only when `lineNumbers`), `textarea`, `hint`, `error`.
|
|
52
|
+
|
|
53
|
+
**Themeable custom properties:** `--lr-code-editor-min-block-size` (default `--lr-size-8rem`, the
|
|
54
|
+
frame's and textarea's height floor) and `--lr-code-editor-line-height` (default `1.5`, applied to
|
|
55
|
+
both gutter and textarea so line numbers stay aligned with their lines).
|
|
56
|
+
`--lr-code-editor-tab-size` (default `2`) is read by the `textarea` part's rule and drives both the
|
|
57
|
+
rendered tab stops and the number of spaces Tab inserts. Precedence, highest first: an explicitly
|
|
58
|
+
assigned `tabSize` (property or `tab-size` attribute) > a host-level `--lr-code-editor-tab-size` >
|
|
59
|
+
the `:host` default of `2`. The component writes the token inline on the `textarea` part only while
|
|
60
|
+
`tabSize` has been assigned, so an untouched `tabSize` leaves your override in charge; removing the
|
|
61
|
+
`tab-size` attribute hands control back to the token. A length-valued override (`40px`, `2ch`, …)
|
|
62
|
+
still sets the visual tab stops for literal tab characters, but is not reinterpreted as a count of
|
|
63
|
+
spaces — the Tab key keeps inserting `tabSize` spaces in that case.
|
|
64
|
+
|
|
65
|
+
**Known gotchas:**
|
|
66
|
+
- Keyboard contract (no keyboard trap, WCAG 2.1.2): Tab inserts one indent unit of spaces at the
|
|
67
|
+
caret (see the tab-width precedence above);
|
|
68
|
+
Shift+Tab is never captured, so reverse focus traversal always works; pressing Escape releases
|
|
69
|
+
the *next* Tab for forward traversal instead, and any other keypress (or focus leaving the
|
|
70
|
+
editor) re-arms Tab indentation.
|
|
71
|
+
- The host gets a `data-invalid` attribute once the field has been blurred at least once and
|
|
72
|
+
validity fails; the styles hang the danger border off it.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!-- GENERATED by scripts/build-llms.mjs from llms/forms.md — do not edit this file. -->
|
|
2
|
+
|
|
3
|
+
# `lr-color-picker`
|
|
4
|
+
|
|
5
|
+
- **Import** `import '@aceshooting/lyra-ui/components/forms/color-picker/color-picker.js';` (registers the tag; side-effect import)
|
|
6
|
+
- **Class** `LyraColorPicker`, also available unregistered from `@aceshooting/lyra-ui/components/forms/color-picker/color-picker.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-color-picker`
|
|
14
|
+
|
|
15
|
+
A form-associated native color picker with label, hint, and error chrome. **Properties:** the shared
|
|
16
|
+
form properties `name`, `value`, `disabled`, and `required`, plus `label`, `hint`, `errorText`
|
|
17
|
+
(`error-text`), and `accessibleLabel` (`aria-label`). **Slots:** `label`, `hint`, `error`. **Events:**
|
|
18
|
+
composed `input` and `change`, `lr-change` with `{ value }`, and `focus`/`blur` (re-dispatched from
|
|
19
|
+
the internal `<input>`'s own `focus`/`blur`, bubbling and composed unlike the native events). **CSS
|
|
20
|
+
parts:** `form-control`, `form-control-label` (the label; `label` is an alias kept for back-compat),
|
|
21
|
+
`input`, `hint`, `error`.
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
<!-- GENERATED by scripts/build-llms.mjs from llms/forms.md — do not edit this file. -->
|
|
2
|
+
|
|
3
|
+
# `lr-combobox`
|
|
4
|
+
|
|
5
|
+
- **Import** `import '@aceshooting/lyra-ui/components/forms/combobox/combobox.js';` (registers the tag; side-effect import)
|
|
6
|
+
- **Class** `LyraCombobox`, also available unregistered from `@aceshooting/lyra-ui/components/forms/combobox/combobox.class.js`
|
|
7
|
+
- **Family** `components/forms/` — see `llms/index.md` for its siblings
|
|
8
|
+
- **Optional peers** none
|
|
9
|
+
- **Documented with** `lr-option` (same section below)
|
|
10
|
+
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## `lr-combobox` / `lr-option`
|
|
15
|
+
|
|
16
|
+
Filterable single/multi-select combining a text input with a listbox. Mirrors the core
|
|
17
|
+
`<wa-combobox>` API under the `lr-` prefix. **Form-associated** (hand-rolled internals, not the
|
|
18
|
+
shared `FormAssociated` mixin — see gotchas).
|
|
19
|
+
|
|
20
|
+
### `lr-combobox`
|
|
21
|
+
|
|
22
|
+
**Properties:**
|
|
23
|
+
- `multiple: boolean = false` (reflected)
|
|
24
|
+
- `size: 'xs' | 's' | 'm' | 'l' | 'xl' = 'm'` (reflected — same scale as `lr-select`'s `size`;
|
|
25
|
+
also scales the "+N" overflow tag and decorative expand icon; `size="s"` shares its outer
|
|
26
|
+
control height with `lr-input`, `lr-select`, and `lr-segmented` without part overrides)
|
|
27
|
+
- `placeholder: string = ''`
|
|
28
|
+
- `disabled: boolean = false` (reflected)
|
|
29
|
+
- `required: boolean = false` (reflected — enforced via `internals.setValidity()`; also reflected as
|
|
30
|
+
`aria-required` on `<input part="combobox-input">` immediately, and `aria-invalid` once the field
|
|
31
|
+
has been touched, see gotchas)
|
|
32
|
+
- `name: string = ''`
|
|
33
|
+
- `label: string = ''`
|
|
34
|
+
- `hint: string = ''`
|
|
35
|
+
- `errorText: string = ''` (attribute `error-text` — static error copy shown below the hint;
|
|
36
|
+
overridden by slotted `error` content when provided)
|
|
37
|
+
- `open: boolean = false` (reflected)
|
|
38
|
+
- `clearable: boolean = false` (reflected) — displays the clear button while a value is selected
|
|
39
|
+
- `withClear: boolean = false` (attribute `with-clear`) — deprecated compatibility alias for
|
|
40
|
+
`clearable`; either property enables the same clear button
|
|
41
|
+
- `autocomplete: string = 'off'`, `inputMode: string = ''` (attribute `inputmode`),
|
|
42
|
+
`enterKeyHint: string = ''` (attribute `enterkeyhint`), `spellcheck: boolean = true`,
|
|
43
|
+
`autocapitalize: string = ''`, and `autoCorrect: string = ''` (attribute `autocorrect`) — native
|
|
44
|
+
editing-assistance attributes forwarded to the internal filter input
|
|
45
|
+
- `maxOptionsVisible: number = 3` (attribute `max-options-visible` — caps how many selected tags
|
|
46
|
+
show before collapsing to `+N`)
|
|
47
|
+
- `emptyText: string = 'No results'` (attribute `empty-text`)
|
|
48
|
+
- `loadingText: string = 'Loading…'` (attribute `loading-text` — listbox row shown while a `source`
|
|
49
|
+
fetch is in flight)
|
|
50
|
+
- `overflowText: string = '+{n} more — refine your search'` (attribute `overflow-text` — listbox row
|
|
51
|
+
shown when `maxRender` caps the row list; `{n}` is replaced with the hidden count)
|
|
52
|
+
- `filter: OptionFilter | null = null` (attribute: false — `(option, query) => boolean`; default
|
|
53
|
+
matches `label`/`searchText` case-insensitively; ignored while `source` is set)
|
|
54
|
+
- `source: ComboboxSource | null = null` (attribute: false — `(query: string) =>
|
|
55
|
+
Promise<ComboboxSourceRow[]>`; when set, replaces the light-DOM `<lr-option>` list with an async
|
|
56
|
+
lookup, debounced ~200ms after each keystroke and re-run on clear/pick. `loadingText` is shown
|
|
57
|
+
while a call is in flight; a stale in-flight call that resolves after a newer one (or after
|
|
58
|
+
disconnect) is dropped via a monotonic token)
|
|
59
|
+
- `maxRender: number = 200` (attribute `max-render` — caps how many rows render at once, always
|
|
60
|
+
keeping the current selection visible even if it's outside the cap; the excess renders as one
|
|
61
|
+
`overflowText` row instead of being dropped silently)
|
|
62
|
+
- `value: string | string[]` — a getter/setter: plain `string` in single mode, `string[]` in
|
|
63
|
+
`multiple` mode
|
|
64
|
+
- `selectedRows: ComboboxSourceRow[]` (read-only getter) — structured rows for the current
|
|
65
|
+
selection, including any opaque `data` payload supplied by an async source. Selected async rows
|
|
66
|
+
remain available after the query changes or a later source result no longer contains them
|
|
67
|
+
- `selectionStart`, `selectionEnd`, and `selectionDirection` — selection getters/setters forwarded
|
|
68
|
+
to the internal input
|
|
69
|
+
|
|
70
|
+
**Methods:** `focus(options?)`, `blur()`, `select()`, `setSelectionRange()`, and `setRangeText()`
|
|
71
|
+
forward to the internal input. `setRangeText()` synchronizes the filter query and visible options.
|
|
72
|
+
|
|
73
|
+
`ComboboxSourceRow = { value: string; label: string; sub?: string; icon?: unknown; badge?: string |
|
|
74
|
+
number; accessibleLabel?: string; data?: unknown; dotColor?: string; group?: string; disabled?:
|
|
75
|
+
boolean }` — the row shape used by the async `source` path. `icon` renders as a decorative leading
|
|
76
|
+
visual, `badge` as trailing metadata, `accessibleLabel` can provide richer spoken text than the
|
|
77
|
+
visible label, and `data` is retained without being rendered for retrieval through `selectedRows`.
|
|
78
|
+
The light-DOM `<lr-option>` path normalizes its supported label/sub/dot/group fields to the same
|
|
79
|
+
internal row model.
|
|
80
|
+
|
|
81
|
+
**Events:** typing in the filter exposes the original bubbling/composed, non-cancelable `InputEvent`
|
|
82
|
+
as exactly one host `input` event and does not fire `change`. An actual user selection mutation —
|
|
83
|
+
pointer or keyboard selection, multiple-value toggle, tag/Backspace removal, or clear — emits exactly
|
|
84
|
+
one bubbling/composed, non-cancelable plain `input` `Event`, immediately followed by the same shape
|
|
85
|
+
of `change` `Event`. Re-picking the current single value and programmatic/default/reset/restore
|
|
86
|
+
writes are silent. The clear button emits one `lr-clear` after its `input`/`change` pair.
|
|
87
|
+
`lr-filter` (`detail: { value: string }`) reports the in-progress filter text on every user-driven
|
|
88
|
+
keystroke — the live as-you-typed search string, deliberately *not* `value`, which is the committed
|
|
89
|
+
selection. It is the supported way to read that text; reaching into the shadow root for
|
|
90
|
+
`[part="combobox-input"]`'s value is not. Named `lr-filter` rather than `lr-input` precisely because
|
|
91
|
+
`lr-input`'s detail on `<lr-input>` is the committed value, and the two must not share a name while
|
|
92
|
+
carrying different strings. It fires for user input only: picking a row, the clear button,
|
|
93
|
+
`form.reset()`, dismissing the listbox, a programmatic `value` write, and `setRangeText()` all blank
|
|
94
|
+
the filter silently, mirroring how `<lr-input>`'s `lr-input` only reports user edits.
|
|
95
|
+
|
|
96
|
+
`lr-show` and `lr-hide` report listbox visibility transitions.
|
|
97
|
+
The internal input's `focus` and `blur` are re-dispatched as bubbling, composed host events.
|
|
98
|
+
|
|
99
|
+
**Slots:** default (`<lr-option>` children), `label`, `hint`, `error` (overrides the `errorText`
|
|
100
|
+
attribute when provided)
|
|
101
|
+
|
|
102
|
+
**CSS parts:** `form-control`, `form-control-label`, `combobox`, `tags`, `tag`,
|
|
103
|
+
`tag__remove-button`, `combobox-input`, `clear-button`, `expand-icon`, `listbox`, `option`,
|
|
104
|
+
`option-dot` (the leading status dot, when a row's `dotColor` is set), `option-icon` (the decorative
|
|
105
|
+
leading visual for an async row), `option-label`, `option-sub` (a row's secondary line, when `sub`
|
|
106
|
+
is set), `option-badge` (an async row's trailing metadata), `option-overflow` (the "+N more"
|
|
107
|
+
indicator from `maxRender`), `error`, `hint`
|
|
108
|
+
|
|
109
|
+
**Themeable custom properties:** `--lr-combobox-trigger-padding`,
|
|
110
|
+
`--lr-combobox-trigger-min-height`, `--lr-combobox-font-size`, `--lr-combobox-tag-padding`,
|
|
111
|
+
`--lr-combobox-tag-font-size`, and `--lr-combobox-expand-size` (the decorative icon box; each
|
|
112
|
+
standard size supplies an aligned default), plus shared tokens.
|
|
113
|
+
|
|
114
|
+
**Optional peer deps:** none.
|
|
115
|
+
|
|
116
|
+
### `lr-option`
|
|
117
|
+
|
|
118
|
+
**Properties:**
|
|
119
|
+
- `value: string = ''`
|
|
120
|
+
- `disabled: boolean = false`
|
|
121
|
+
- `selected: boolean = false` (reflected — set by the parent combobox, but also **read** on initial
|
|
122
|
+
mount, see below)
|
|
123
|
+
- `group: string = ''` (section header)
|
|
124
|
+
- `searchText: string = ''` (attribute `search-text` — extra text the filter matches beyond the
|
|
125
|
+
visible label)
|
|
126
|
+
- `sub: string = ''` (optional secondary line rendered under the label, e.g. a status/date summary)
|
|
127
|
+
- `dotColor: string = ''` (attribute `dot-color` — optional CSS color for a small leading status
|
|
128
|
+
dot, any valid CSS color)
|
|
129
|
+
- `label` is a **read-only getter**: explicit `label` attribute wins, else trimmed `textContent`.
|
|
130
|
+
|
|
131
|
+
```html
|
|
132
|
+
<lr-combobox id="cb" label="Country" placeholder="Search…" with-clear>
|
|
133
|
+
<lr-option value="fr">France</lr-option>
|
|
134
|
+
<lr-option value="de" search-text="deutschland">Germany</lr-option>
|
|
135
|
+
</lr-combobox>
|
|
136
|
+
<script type="module">
|
|
137
|
+
document.getElementById('cb').addEventListener('change', (e) => console.log(e.target.value));
|
|
138
|
+
</script>
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
```html
|
|
142
|
+
<!-- Async data source instead of light-DOM <lr-option> children: -->
|
|
143
|
+
<lr-combobox id="cb2" label="Fruit (async)" with-clear></lr-combobox>
|
|
144
|
+
<script type="module">
|
|
145
|
+
document.getElementById('cb2').source = async (query) => {
|
|
146
|
+
const rows = await fetchFruit(query); // your own lookup
|
|
147
|
+
return rows.map((r) => ({
|
|
148
|
+
value: r.id,
|
|
149
|
+
label: r.name,
|
|
150
|
+
icon: renderFruitIcon(r), // decorative; hidden from assistive technology
|
|
151
|
+
badge: r.category,
|
|
152
|
+
accessibleLabel: `${r.name}, ${r.category}`,
|
|
153
|
+
data: r, // retained in cb2.selectedRows after selection
|
|
154
|
+
}));
|
|
155
|
+
};
|
|
156
|
+
</script>
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
Multi-select submits as **repeated `FormData` entries** (not a joined string) —
|
|
160
|
+
`new FormData(form).getAll(name)` behaves like a native multi-value control. An unnamed multi-select
|
|
161
|
+
(`multiple` with no `name`) contributes nothing to the form at all, matching a nameless native
|
|
162
|
+
`<select multiple>`, rather than falling back to a shared literal key that could collide with
|
|
163
|
+
another unnamed combobox in the same form.
|
|
164
|
+
Session-history/autofill state is stored as a name-independent JSON string array. A valid string
|
|
165
|
+
array restores the selection (single mode keeps its first entry); malformed or wrong-shape state
|
|
166
|
+
restores an empty selection. Restored state wins even when it arrives before the first option
|
|
167
|
+
collection, while `form.reset()` still returns to the declarative selected default. Restoration is
|
|
168
|
+
synchronous and fires no `input`/`change` event.
|
|
169
|
+
|
|
170
|
+
**Known gotchas:**
|
|
171
|
+
- `with-clear` remains supported for compatibility, but new code should use the mirrored
|
|
172
|
+
`clearable` property/attribute.
|
|
173
|
+
- a host-level `aria-label` attribute on `<lr-combobox>` now takes priority over `label`/
|
|
174
|
+
`placeholder`/`"Combobox"` when resolving the accessible name on `[part="combobox-input"]` —
|
|
175
|
+
previously it was silently ignored. Matches the same fallback on `<lr-select>`.
|
|
176
|
+
- `aria-required` reflects `required` immediately; `aria-invalid`, by contrast, only reflects
|
|
177
|
+
**after the field has been touched** (first `blur`) — a `required` field with a validity error
|
|
178
|
+
doesn't look invalid to assistive tech before that, by design (avoids flashing invalid styling on
|
|
179
|
+
first render). Blurring the input (Tab away) now also closes an open listbox, the same as a
|
|
180
|
+
native `<select>`'s popup, not just a click outside or Escape.
|
|
181
|
+
- `dotColor`/`sub`/`group` are read from light-DOM `<lr-option>` children as before, but are also
|
|
182
|
+
first-class fields on `ComboboxSourceRow` for the async `source` path — an async lookup can drive
|
|
183
|
+
the same grouped/dot/sub-text rendering a static option list can.
|
|
184
|
+
- `icon`, `badge`, `accessibleLabel`, and `data` are async-source row features rather than
|
|
185
|
+
`<lr-option>` properties. Icons are decorative (`aria-hidden`); use `accessibleLabel` when the
|
|
186
|
+
visible label/sub/badge combination needs a fuller spoken name. `data` is deliberately opaque and
|
|
187
|
+
is available only through the read-only `selectedRows` getter.
|
|
188
|
+
- Full ARIA 1.2 combobox pattern (`role=combobox`, roving `aria-activedescendant`, real DOM focus
|
|
189
|
+
kept on the input) is implemented correctly — a genuine strength, safe to build on. Declaratively-
|
|
190
|
+
selected options (`<lr-option value="b" selected>`) are seeded into the selection (mirroring
|
|
191
|
+
native `<select><option selected>`) both the first time options are collected **and** for any
|
|
192
|
+
later batch slotted in afterward (e.g. a lazily-populated list appended post-connect) — only the
|
|
193
|
+
`form.reset()` default itself is captured exclusively from that very first pass; a later pick, or
|
|
194
|
+
a later batch of newly-`selected` options, never redefines what a reset restores to.
|
|
195
|
+
|
|
196
|
+
---
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<!-- GENERATED by scripts/build-llms.mjs from llms/layout.md — do not edit this file. -->
|
|
2
|
+
|
|
3
|
+
# `lr-command-palette`
|
|
4
|
+
|
|
5
|
+
- **Import** `import '@aceshooting/lyra-ui/components/layout/command-palette/command-palette.js';` (registers the tag; side-effect import)
|
|
6
|
+
- **Class** `LyraCommandPalette`, also available unregistered from `@aceshooting/lyra-ui/components/layout/command-palette/command-palette.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-command-palette`
|
|
14
|
+
|
|
15
|
+
Searchable application command menu. Renders nothing at all while closed. Uses the same shared
|
|
16
|
+
overlay infrastructure as `lr-dialog` (focus-trapping Tab, Escape dismissal, backdrop-click
|
|
17
|
+
dismissal, ref-counted document scroll lock).
|
|
18
|
+
|
|
19
|
+
**Properties:**
|
|
20
|
+
- `open: boolean = false` (reflected)
|
|
21
|
+
- `commands: LyraCommand[] = []` (attribute: false) — `{ id, label, description?, group?, shortcut?,
|
|
22
|
+
keywords?, disabled?, onSelect? }`. Filtering is case-insensitive substring matching over
|
|
23
|
+
`label` + `description` + `group` + `keywords` joined together (not fuzzy/subsequence), memoized
|
|
24
|
+
per `commands` array identity — reassign the array, never mutate it in place. Consecutive commands
|
|
25
|
+
sharing a `group` render one `[part='group']` heading, so pre-sort by group yourself.
|
|
26
|
+
- `shortcut: string = 'mod+k'` — global toggle chord parsed as `+`-separated parts; `mod` resolves to
|
|
27
|
+
Cmd on Mac and Ctrl elsewhere. The listener is on `window`, added in `connectedCallback`.
|
|
28
|
+
- `accessibleLabel: string = ''` (attribute `aria-label`) — overrides the localized dialog name
|
|
29
|
+
|
|
30
|
+
**Methods:** `openPalette()` (clears the query and resets the active row; no-op if already open),
|
|
31
|
+
`close()`, `registerCommand(command)` — appends to `commands` and returns an unregister function.
|
|
32
|
+
|
|
33
|
+
**Keyboard:** ArrowUp/ArrowDown move the active option, skipping `disabled` rows and clamping (not
|
|
34
|
+
cycling) at the ends; the active row is scrolled into view. Enter selects. Hovering a non-disabled
|
|
35
|
+
row also makes it active.
|
|
36
|
+
|
|
37
|
+
**Events:** `lr-open`, `lr-close` (both `detail: undefined`), `lr-select` (`detail: { command }`,
|
|
38
|
+
fired before the command's own `onSelect` runs and before the palette closes).
|
|
39
|
+
|
|
40
|
+
**Slots:** none.
|
|
41
|
+
|
|
42
|
+
**CSS parts:** `backdrop`, `dialog` (the `role="dialog" aria-modal="true"` panel), `search` (the
|
|
43
|
+
input row), `input` (the `type="search"` field), `list` (the `role="listbox"`), `group` (a group
|
|
44
|
+
heading), `command` (a `role="option"` button), `description`, `shortcut`, `empty`.
|
|
45
|
+
|
|
46
|
+
**Themeable custom properties:** `--lr-command-palette-z-index` (default
|
|
47
|
+
`var(--lr-overlay-stack-index, var(--lr-layer-modal))`), `--lr-command-palette-offset-block-start`
|
|
48
|
+
(default `12vh` — how far down the viewport the dialog sits), `--lr-command-palette-max-inline-size`
|
|
49
|
+
(default `var(--lr-size-48rem)`), `--lr-command-palette-max-block-size` (default `70vh`), and
|
|
50
|
+
`--lr-command-palette-list-max-block-size` (default `50vh` — the scrolling result list).
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<!-- GENERATED by scripts/build-llms.mjs from llms/agent-tools.md — do not edit this file. -->
|
|
2
|
+
|
|
3
|
+
# `lr-commit-card`
|
|
4
|
+
|
|
5
|
+
- **Import** `import '@aceshooting/lyra-ui/components/agent-tools/commit-card/commit-card.js';` (registers the tag; side-effect import)
|
|
6
|
+
- **Class** `LyraCommitCard`, also available unregistered from `@aceshooting/lyra-ui/components/agent-tools/commit-card/commit-card.class.js`
|
|
7
|
+
- **Family** `components/agent-tools/` — 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-commit-card`
|
|
14
|
+
|
|
15
|
+
A compact commit summary (subject, author/time, diffstat, per-file changes) that links file rows out
|
|
16
|
+
to a diff view.
|
|
17
|
+
|
|
18
|
+
**Properties:** `hash: string = ''`, `message: string = ''`, `author: string = ''`, `timestamp?:
|
|
19
|
+
number` (attribute: false, epoch milliseconds), `files: CommitFileChange[] = []` (attribute: false) —
|
|
20
|
+
`CommitFileChange { path: string; additions: number; deletions: number; status?: GitStatus }`
|
|
21
|
+
(exported here), where `GitStatus = 'added' | 'modified' | 'deleted' | 'renamed' | 'untracked' |
|
|
22
|
+
'conflicted' | 'ignored'` (shared with `lr-file-tree`); the diffstat is summed from `additions`/
|
|
23
|
+
`deletions` across `files`. `filesCollapsed:
|
|
24
|
+
boolean = true` (attribute `files-collapsed`, reflected), and `copyable: boolean = true` (reflected).
|
|
25
|
+
|
|
26
|
+
**Slots:** `actions` — trailing header controls (e.g. an "open PR" button).
|
|
27
|
+
|
|
28
|
+
**Events:** `lr-file-select` (`detail: { path: string }`), `lr-toggle` (`detail: { collapsed: boolean
|
|
29
|
+
}`), and `lr-copy` (`detail: { text: string }`, the full hash was copied).
|
|
30
|
+
|
|
31
|
+
**CSS parts:** `base`, `subject`, `body`, `hash`, `meta`, `author`, `time`, `diffstat`, `additions`,
|
|
32
|
+
`deletions`, `files-toggle`, `file` (carries `data-status`), `file-path`, `file-additions`,
|
|
33
|
+
`file-deletions`, `copy-button`, and `actions`.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<!-- GENERATED by scripts/build-llms.mjs from llms/retrieval.md — do not edit this file. -->
|
|
2
|
+
|
|
3
|
+
# `lr-community-card`
|
|
4
|
+
|
|
5
|
+
- **Import** `import '@aceshooting/lyra-ui/components/retrieval/community-card/community-card.js';` (registers the tag; side-effect import)
|
|
6
|
+
- **Class** `LyraCommunityCard`, also available unregistered from `@aceshooting/lyra-ui/components/retrieval/community-card/community-card.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-community-card`
|
|
14
|
+
|
|
15
|
+
A cluster/community summary card (GraphRAG community report): label, LLM summary excerpt, member
|
|
16
|
+
count, member chips with overflow, and a drill-in action. Doesn't own community rendering on the
|
|
17
|
+
graph or membership fetching — `lr-drill` asks the host to load members/subgraph.
|
|
18
|
+
|
|
19
|
+
**Properties:**
|
|
20
|
+
- `community: LyraCommunity | null = null` (attribute: false) — `LyraCommunity { id: string; label:
|
|
21
|
+
string; summary?: string; memberCount?: number }`; `memberCount` is authoritative when it exceeds
|
|
22
|
+
`members.length`; `null` renders the empty state
|
|
23
|
+
- `members: LyraEntity[] = []` (attribute: false) — rendered as chips, up to `maxMembers`
|
|
24
|
+
- `maxMembers: number = 8` (attribute `max-members`) — remaining members collapse into a "+N"
|
|
25
|
+
overflow chip
|
|
26
|
+
- `compact: boolean = false` (reflected) — omits the summary excerpt and member chips
|
|
27
|
+
|
|
28
|
+
**Events:** `lr-drill` (`detail: { id }`, the drill button, header, or overflow chip — all three
|
|
29
|
+
mean "show me this whole community"), `lr-entity-activate` (`detail: { id }`, a member chip was
|
|
30
|
+
activated).
|
|
31
|
+
|
|
32
|
+
**Slots:** `actions` — extra header actions alongside the built-in drill button.
|
|
33
|
+
|
|
34
|
+
**CSS parts:** `base`, `header`, `title` (`role="heading" aria-level="3"` wrapping a `<button>`),
|
|
35
|
+
`member-count`, `summary` (omitted in `compact`), `members` (omitted in `compact`), `member`,
|
|
36
|
+
`overflow` (the "+N" chip button), `drill-button`, `actions`, `empty` (shown when `community` is
|
|
37
|
+
`null`).
|
|
38
|
+
|
|
39
|
+
**Themeable custom properties:** shared tokens only.
|
|
40
|
+
|
|
41
|
+
**Optional peer deps:** none.
|
|
42
|
+
|
|
43
|
+
```html
|
|
44
|
+
<lr-community-card></lr-community-card>
|
|
45
|
+
<script>
|
|
46
|
+
document.querySelector('lr-community-card').community = { id: 'c1', label: 'Early computing pioneers', summary: 'A cluster of 19th-century mathematicians and engineers.', memberCount: 12 };
|
|
47
|
+
</script>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
**Known gotchas:**
|
|
51
|
+
- `memberCount` (not `members.length`) is the authoritative displayed count whenever it's larger —
|
|
52
|
+
useful when the host sends only a preview slice of members alongside the real total.
|
|
53
|
+
|
|
54
|
+
---
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<!-- GENERATED by scripts/build-llms.mjs from llms/agent-tools.md — do not edit this file. -->
|
|
2
|
+
|
|
3
|
+
# `lr-compare-panel`
|
|
4
|
+
|
|
5
|
+
- **Import** `import '@aceshooting/lyra-ui/components/agent-tools/compare-panel/compare-panel.js';` (registers the tag; side-effect import)
|
|
6
|
+
- **Class** `LyraComparePanel`, also available unregistered from `@aceshooting/lyra-ui/components/agent-tools/compare-panel/compare-panel.class.js`
|
|
7
|
+
- **Family** `components/agent-tools/` — 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-compare-panel`
|
|
14
|
+
|
|
15
|
+
Side-by-side A/B output comparison with a winner vote (LMSYS-arena / LangSmith-pairwise style): two
|
|
16
|
+
slotted panes, a vote bar, synchronized reading.
|
|
17
|
+
|
|
18
|
+
**Properties:** `labelA: string = ''` (attribute `label-a`) and `labelB: string = ''` (attribute
|
|
19
|
+
`label-b`) — pane headings. `vote: 'a' | 'b' | 'tie' | 'both-bad' | null = null` (reflected) — the
|
|
20
|
+
recorded winner, host-writable to reflect a previously-recorded vote back. `itemId: string = ''`
|
|
21
|
+
(attribute `item-id`) — an opaque id round-tripped through `lr-vote`. `hideTie: boolean = false`
|
|
22
|
+
(attribute `hide-tie`) and `hideBothBad: boolean = false` (attribute `hide-both-bad`) hide the
|
|
23
|
+
corresponding vote button. `syncScroll: boolean = false` (attribute `sync-scroll`) links both panes'
|
|
24
|
+
scroll position.
|
|
25
|
+
|
|
26
|
+
**Slots:** `a` (the first output — any content, a chat message, markdown, a viewer), `b` (the second
|
|
27
|
+
output), and `prompt` (optional shared-input header above both panes).
|
|
28
|
+
|
|
29
|
+
**Events:** `lr-vote` — `detail: { choice: 'a' | 'b' | 'tie' | 'both-bad'; itemId: string }`.
|
|
30
|
+
|
|
31
|
+
**CSS parts:** `base` (the outer wrapper), `prompt` (the optional prompt header, hidden when the
|
|
32
|
+
`prompt` slot is empty), `panes` (the row, or under 640px column, wrapping both panes), `pane-a`,
|
|
33
|
+
`pane-b` (each pane's labeled scroll region), `pane-header` (a pane's visible heading), `vote-bar`
|
|
34
|
+
(the `role="group"` row of vote buttons), `vote-button` (one vote button), and `live-region` (the
|
|
35
|
+
internal vote-announcement live region).
|
|
36
|
+
|
|
37
|
+
**Themeable custom properties:** `--lr-compare-panel-max-height` (default `var(--lr-size-24rem)`) —
|
|
38
|
+
cap on each pane's scroll region before it scrolls internally.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<!-- GENERATED by scripts/build-llms.mjs from llms/agent-tools.md — do not edit this file. -->
|
|
2
|
+
|
|
3
|
+
# `lr-confirm-bar`
|
|
4
|
+
|
|
5
|
+
- **Import** `import '@aceshooting/lyra-ui/components/agent-tools/confirm-bar/confirm-bar.js';` (registers the tag; side-effect import)
|
|
6
|
+
- **Class** `LyraConfirmBar`, also available unregistered from `@aceshooting/lyra-ui/components/agent-tools/confirm-bar/confirm-bar.class.js`
|
|
7
|
+
- **Family** `components/agent-tools/` — 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-confirm-bar`
|
|
14
|
+
|
|
15
|
+
An inline, non-modal approve/deny block for one proposed action — the in-flow sibling of
|
|
16
|
+
`lr-tool-approval-dialog` for confirmations that should sit in the transcript instead of hijacking
|
|
17
|
+
focus. Same `lr-approve`/`lr-deny` event shapes as the dialog, and the same
|
|
18
|
+
`toolApprovalHeading`/`toolApprovalArgsLabel`/`deny`/`approve` localization keys, so the two always
|
|
19
|
+
translate in lockstep. Non-modal by contract: no focus trap, no scroll lock, no Escape/backdrop
|
|
20
|
+
semantics, and it never steals focus when it appears in the transcript. DOM and tab order put Deny
|
|
21
|
+
before Approve. On activation, focus moves synchronously to `[part="status"]` (an always-rendered,
|
|
22
|
+
`tabindex="-1"` element) before the Deny/Approve buttons unmount.
|
|
23
|
+
|
|
24
|
+
**Properties:** `toolName: string = ''` (attribute `tool-name`) — drives the default heading through
|
|
25
|
+
the existing `toolApprovalHeading`/`toolApprovalGenericTool` dialog keys. `heading: string = ''` —
|
|
26
|
+
free-form heading override for non-tool proposals; wins over `toolName`. `args: unknown = undefined`
|
|
27
|
+
(attribute: false) — shown read-only inside a collapsed `lr-details` + `lr-json-viewer` when
|
|
28
|
+
defined. `decision: 'approved' | 'denied' | null = null` (reflected) — decided state, set by the
|
|
29
|
+
component on activation and host-writable (an externally-resolved decision renders identically but
|
|
30
|
+
emits nothing). `tone: 'neutral' | 'danger' = 'neutral'` (reflected).
|
|
31
|
+
|
|
32
|
+
**Slots:** default — supplementary body content between the heading and the actions (e.g. a
|
|
33
|
+
`lr-diff-view`). `footer` — extra content at the start of the action row.
|
|
34
|
+
|
|
35
|
+
**Events:** `lr-approve` (`detail: { args }` — the `args` prop as-is, identical shape to
|
|
36
|
+
`lr-tool-approval-dialog`), `lr-deny` (no detail, identical to the dialog).
|
|
37
|
+
|
|
38
|
+
**CSS parts:** `base` (`role="group"`), `heading`/`tool-name`, `body`, `args` (the
|
|
39
|
+
details/json-viewer wrapper, only rendered when `args` is defined), `footer`, `deny-button`,
|
|
40
|
+
`approve-button` (named identically to the dialog's parts), `status` (the decided-state text, always
|
|
41
|
+
present in the DOM as a focus landing spot).
|
|
42
|
+
|
|
43
|
+
```html
|
|
44
|
+
<lr-tool-call-chip status="pending"></lr-tool-call-chip>
|
|
45
|
+
<lr-confirm-bar tool-name="run_shell" .args=${args}
|
|
46
|
+
@lr-approve=${(e) => run(e.detail.args)} @lr-deny=${() => cancel()}
|
|
47
|
+
></lr-confirm-bar>
|
|
48
|
+
```
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<!-- GENERATED by scripts/build-llms.mjs from llms/viewers.md — do not edit this file. -->
|
|
2
|
+
|
|
3
|
+
# `lr-contact-viewer`
|
|
4
|
+
|
|
5
|
+
- **Import** `import '@aceshooting/lyra-ui/components/viewers/contact-viewer/contact-viewer.js';` (registers the tag; side-effect import)
|
|
6
|
+
- **Class** `LyraContactViewer`, also available unregistered from `@aceshooting/lyra-ui/components/viewers/contact-viewer/contact-viewer.class.js`
|
|
7
|
+
- **Family** `components/viewers/` — 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-contact-viewer`
|
|
14
|
+
|
|
15
|
+
Fetches a vCard document and renders one accessible card per contact. The document registry matches
|
|
16
|
+
`.vcf` filenames and the `FN`, `ORG`, `TEL`, `EMAIL`, and `ADR` fields are displayed. `N` is parsed
|
|
17
|
+
but never rendered — the card's heading uses `FN` (falling back to a localized "unnamed contact"
|
|
18
|
+
label when `FN` is absent).
|
|
19
|
+
|
|
20
|
+
Remote resources are capped at 25 MB; exceeding it surfaces the localized
|
|
21
|
+
`documentPreviewResourceTooLarge` message instead of the contacts.
|
|
22
|
+
|
|
23
|
+
**Properties:** `src`, `name`, and `maxHeight` (attribute `max-height`) are strings.
|
|
24
|
+
|
|
25
|
+
**Events:** `lr-render-error` with `detail.error` when fetching or parsing fails.
|
|
26
|
+
|
|
27
|
+
**CSS parts:** `base`, `body`, `contact`, `contact-name`, `contact-org`, `contact-tel`,
|
|
28
|
+
`contact-email`, `contact-adr`, `spinner`, and `error`.
|
|
29
|
+
|
|
30
|
+
**Themeable custom properties:** `--lr-contact-viewer-max-height` (default `none`) — maximum block
|
|
31
|
+
size of `[part="body"]`; also settable via the `max-height` property, which writes this token inline.
|
|
32
|
+
|
|
33
|
+
**Exports:** `parseVCards()` and the `VCardName`, `VCardTypedValue`, `VCardAddress`, and `VCardContact`
|
|
34
|
+
types.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<!-- GENERATED by scripts/build-llms.mjs from llms/agent-tools.md — do not edit this file. -->
|
|
2
|
+
|
|
3
|
+
# `lr-context-inspector`
|
|
4
|
+
|
|
5
|
+
- **Import** `import '@aceshooting/lyra-ui/components/agent-tools/context-inspector/context-inspector.js';` (registers the tag; side-effect import)
|
|
6
|
+
- **Class** `LyraContextInspector`, also available unregistered from `@aceshooting/lyra-ui/components/agent-tools/context-inspector/context-inspector.class.js`
|
|
7
|
+
- **Family** `components/agent-tools/` — 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-context-inspector`
|
|
14
|
+
|
|
15
|
+
Inspection view of model-call context segments, with token estimates, source citations, redaction
|
|
16
|
+
markers, and copy/export controls.
|
|
17
|
+
|
|
18
|
+
**Properties:**
|
|
19
|
+
- `segments: ContextInspectorSegment[] = []` (attribute: false) — `ContextInspectorSegment { id:
|
|
20
|
+
string; label: string; text: string; tokens: number; tone?: ContextMeterTone; citation?: Citation;
|
|
21
|
+
truncated?: boolean; omittedTokens?: number; redactions?: ContextInspectorRedaction[] }` (exported
|
|
22
|
+
here). One entry per piece of the assembled final prompt (system prompt, retrieved chunk, one
|
|
23
|
+
history turn, …). `text` is the segment's **final** text, exactly as sent to the model
|
|
24
|
+
(post-redaction/post-truncation). `tokens` is the estimated count, fed straight to
|
|
25
|
+
`lr-context-meter`'s segment `value`; `label` feeds both the segment heading and the meter's
|
|
26
|
+
segment label. `citation` is **`Citation` from `@aceshooting/lyra-ui/ai`** and renders an
|
|
27
|
+
`lr-citation-badge` carrying its `sourceId`/`label`. `omittedTokens` is shown in the
|
|
28
|
+
truncation-boundary marker when `truncated` is set. `ContextInspectorRedaction { start: number;
|
|
29
|
+
end: number; reason?: string }` marks character ranges within `text` that are redaction
|
|
30
|
+
placeholders; `reason` becomes the marker's `title`/accessible reason, falling back to a localized
|
|
31
|
+
"Redacted"
|
|
32
|
+
- `total: number = 0` — the full token budget `segments` are measured against; passed straight to
|
|
33
|
+
`lr-context-meter.total`
|
|
34
|
+
- `label: string = ''` — accessible group name, and the embedded meter's visible caption (e.g.
|
|
35
|
+
"128K context window")
|
|
36
|
+
- `formats: ExportFormatOption[] = ['json']` (attribute: false) — forwarded to the embedded
|
|
37
|
+
`lr-export-button`; one id renders a plain button, more than one a format-choice menu
|
|
38
|
+
- `filename: string = 'context'` — download filename (no extension) passed to `lr-export-button`
|
|
39
|
+
|
|
40
|
+
**Events:** `lr-citation-activate` (`detail: { sourceId: string; index: number }`, surfaced by a
|
|
41
|
+
segment's embedded `lr-citation-badge`), `lr-citation-open` (`detail: { sourceId: string; index:
|
|
42
|
+
number; href?: string }`, the "full preview" signal), `lr-copy` (`detail: { text: string }`, from the
|
|
43
|
+
embedded `lr-copy-button`), `lr-export` (`detail: { format: string }`, from the embedded
|
|
44
|
+
`lr-export-button`), `lr-export-complete` (`detail: { format: string }`, after a non-cancelled export
|
|
45
|
+
finishes).
|
|
46
|
+
|
|
47
|
+
**CSS parts:** `base`, `toolbar`,
|
|
48
|
+
`segments`, `segment`, `segment-header`, `segment-label`, `segment-text`, `segment-tokens`,
|
|
49
|
+
`meter` (the embedded `lr-context-meter`), `citation`, `redaction` (one redaction placeholder
|
|
50
|
+
marker), `truncation-boundary`, `copy-button`, `export-button`, `empty`.
|