@aceshooting/lyra-ui 4.0.0 → 4.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 +1 -0
- package/custom-elements.json +49430 -32305
- package/dist/ai/types.contract.d.ts +2 -0
- package/dist/ai/types.contract.d.ts.map +1 -0
- package/dist/ai/types.contract.js +139 -0
- package/dist/ai/types.contract.js.map +1 -0
- package/dist/ai/types.d.ts +199 -0
- package/dist/ai/types.d.ts.map +1 -0
- package/dist/ai/types.js +2 -0
- package/dist/ai/types.js.map +1 -0
- package/dist/components/agent-run/agent-run.class.d.ts +158 -0
- package/dist/components/agent-run/agent-run.class.d.ts.map +1 -0
- package/dist/components/agent-run/agent-run.class.js +400 -0
- package/dist/components/agent-run/agent-run.class.js.map +1 -0
- package/dist/components/agent-run/agent-run.d.ts +2 -0
- package/dist/components/agent-run/agent-run.d.ts.map +1 -0
- package/dist/components/agent-run/agent-run.js +5 -0
- package/dist/components/agent-run/agent-run.js.map +1 -0
- package/dist/components/agent-run/agent-run.styles.d.ts +2 -0
- package/dist/components/agent-run/agent-run.styles.d.ts.map +1 -0
- package/dist/components/agent-run/agent-run.styles.js +143 -0
- package/dist/components/agent-run/agent-run.styles.js.map +1 -0
- package/dist/components/agent-trace/agent-trace.class.d.ts +111 -0
- package/dist/components/agent-trace/agent-trace.class.d.ts.map +1 -0
- package/dist/components/agent-trace/agent-trace.class.js +221 -0
- package/dist/components/agent-trace/agent-trace.class.js.map +1 -0
- package/dist/components/agent-trace/agent-trace.d.ts +5 -0
- package/dist/components/agent-trace/agent-trace.d.ts.map +1 -0
- package/dist/components/agent-trace/agent-trace.js +8 -0
- package/dist/components/agent-trace/agent-trace.js.map +1 -0
- package/dist/components/agent-trace/agent-trace.styles.d.ts +2 -0
- package/dist/components/agent-trace/agent-trace.styles.d.ts.map +1 -0
- package/dist/components/agent-trace/agent-trace.styles.js +61 -0
- package/dist/components/agent-trace/agent-trace.styles.js.map +1 -0
- package/dist/components/app-rail/app-rail.styles.d.ts.map +1 -1
- package/dist/components/app-rail/app-rail.styles.js +4 -0
- package/dist/components/app-rail/app-rail.styles.js.map +1 -1
- package/dist/components/chat-message/chat-message.class.d.ts +37 -3
- package/dist/components/chat-message/chat-message.class.d.ts.map +1 -1
- package/dist/components/chat-message/chat-message.class.js +89 -7
- package/dist/components/chat-message/chat-message.class.js.map +1 -1
- package/dist/components/chat-message/chat-message.styles.d.ts.map +1 -1
- package/dist/components/chat-message/chat-message.styles.js +14 -0
- package/dist/components/chat-message/chat-message.styles.js.map +1 -1
- package/dist/components/context-inspector/context-inspector.class.d.ts +114 -0
- package/dist/components/context-inspector/context-inspector.class.d.ts.map +1 -0
- package/dist/components/context-inspector/context-inspector.class.js +222 -0
- package/dist/components/context-inspector/context-inspector.class.js.map +1 -0
- package/dist/components/context-inspector/context-inspector.d.ts +7 -0
- package/dist/components/context-inspector/context-inspector.d.ts.map +1 -0
- package/dist/components/context-inspector/context-inspector.js +10 -0
- package/dist/components/context-inspector/context-inspector.js.map +1 -0
- package/dist/components/context-inspector/context-inspector.styles.d.ts +2 -0
- package/dist/components/context-inspector/context-inspector.styles.d.ts.map +1 -0
- package/dist/components/context-inspector/context-inspector.styles.js +98 -0
- package/dist/components/context-inspector/context-inspector.styles.js.map +1 -0
- package/dist/components/dashboard-grid/dashboard-grid.class.d.ts +162 -0
- package/dist/components/dashboard-grid/dashboard-grid.class.d.ts.map +1 -0
- package/dist/components/dashboard-grid/dashboard-grid.class.js +570 -0
- package/dist/components/dashboard-grid/dashboard-grid.class.js.map +1 -0
- package/dist/components/dashboard-grid/dashboard-grid.d.ts +6 -0
- package/dist/components/dashboard-grid/dashboard-grid.d.ts.map +1 -0
- package/dist/components/dashboard-grid/dashboard-grid.js +9 -0
- package/dist/components/dashboard-grid/dashboard-grid.js.map +1 -0
- package/dist/components/dashboard-grid/dashboard-grid.styles.d.ts +2 -0
- package/dist/components/dashboard-grid/dashboard-grid.styles.d.ts.map +1 -0
- package/dist/components/dashboard-grid/dashboard-grid.styles.js +86 -0
- package/dist/components/dashboard-grid/dashboard-grid.styles.js.map +1 -0
- package/dist/components/dashboard-grid/layout.d.ts +103 -0
- package/dist/components/dashboard-grid/layout.d.ts.map +1 -0
- package/dist/components/dashboard-grid/layout.js +94 -0
- package/dist/components/dashboard-grid/layout.js.map +1 -0
- package/dist/components/date-picker/date-input.class.d.ts +8 -0
- package/dist/components/date-picker/date-input.class.d.ts.map +1 -1
- package/dist/components/date-picker/date-input.class.js +10 -0
- package/dist/components/date-picker/date-input.class.js.map +1 -1
- package/dist/components/date-picker/date-input.styles.d.ts.map +1 -1
- package/dist/components/date-picker/date-input.styles.js +39 -2
- package/dist/components/date-picker/date-input.styles.js.map +1 -1
- package/dist/components/document-compare/document-compare.class.d.ts +131 -0
- package/dist/components/document-compare/document-compare.class.d.ts.map +1 -0
- package/dist/components/document-compare/document-compare.class.js +214 -0
- package/dist/components/document-compare/document-compare.class.js.map +1 -0
- package/dist/components/document-compare/document-compare.d.ts +2 -0
- package/dist/components/document-compare/document-compare.d.ts.map +1 -0
- package/dist/components/document-compare/document-compare.js +5 -0
- package/dist/components/document-compare/document-compare.js.map +1 -0
- package/dist/components/document-compare/document-compare.styles.d.ts +2 -0
- package/dist/components/document-compare/document-compare.styles.d.ts.map +1 -0
- package/dist/components/document-compare/document-compare.styles.js +65 -0
- package/dist/components/document-compare/document-compare.styles.js.map +1 -0
- package/dist/components/document-library/document-library.class.d.ts +154 -0
- package/dist/components/document-library/document-library.class.d.ts.map +1 -0
- package/dist/components/document-library/document-library.class.js +399 -0
- package/dist/components/document-library/document-library.class.js.map +1 -0
- package/dist/components/document-library/document-library.d.ts +9 -0
- package/dist/components/document-library/document-library.d.ts.map +1 -0
- package/dist/components/document-library/document-library.js +12 -0
- package/dist/components/document-library/document-library.js.map +1 -0
- package/dist/components/document-library/document-library.styles.d.ts +2 -0
- package/dist/components/document-library/document-library.styles.d.ts.map +1 -0
- package/dist/components/document-library/document-library.styles.js +77 -0
- package/dist/components/document-library/document-library.styles.js.map +1 -0
- package/dist/components/drilldown-panel/drilldown-panel.class.d.ts +148 -0
- package/dist/components/drilldown-panel/drilldown-panel.class.d.ts.map +1 -0
- package/dist/components/drilldown-panel/drilldown-panel.class.js +241 -0
- package/dist/components/drilldown-panel/drilldown-panel.class.js.map +1 -0
- package/dist/components/drilldown-panel/drilldown-panel.d.ts +9 -0
- package/dist/components/drilldown-panel/drilldown-panel.d.ts.map +1 -0
- package/dist/components/drilldown-panel/drilldown-panel.js +12 -0
- package/dist/components/drilldown-panel/drilldown-panel.js.map +1 -0
- package/dist/components/drilldown-panel/drilldown-panel.styles.d.ts +2 -0
- package/dist/components/drilldown-panel/drilldown-panel.styles.d.ts.map +1 -0
- package/dist/components/drilldown-panel/drilldown-panel.styles.js +49 -0
- package/dist/components/drilldown-panel/drilldown-panel.styles.js.map +1 -0
- package/dist/components/entity-dossier/entity-dossier.class.d.ts +132 -0
- package/dist/components/entity-dossier/entity-dossier.class.d.ts.map +1 -0
- package/dist/components/entity-dossier/entity-dossier.class.js +187 -0
- package/dist/components/entity-dossier/entity-dossier.class.js.map +1 -0
- package/dist/components/entity-dossier/entity-dossier.d.ts +9 -0
- package/dist/components/entity-dossier/entity-dossier.d.ts.map +1 -0
- package/dist/components/entity-dossier/entity-dossier.js +12 -0
- package/dist/components/entity-dossier/entity-dossier.js.map +1 -0
- package/dist/components/entity-dossier/entity-dossier.styles.d.ts +2 -0
- package/dist/components/entity-dossier/entity-dossier.styles.d.ts.map +1 -0
- package/dist/components/entity-dossier/entity-dossier.styles.js +30 -0
- package/dist/components/entity-dossier/entity-dossier.styles.js.map +1 -0
- package/dist/components/eval-dataset/eval-dataset.class.d.ts +145 -0
- package/dist/components/eval-dataset/eval-dataset.class.d.ts.map +1 -0
- package/dist/components/eval-dataset/eval-dataset.class.js +307 -0
- package/dist/components/eval-dataset/eval-dataset.class.js.map +1 -0
- package/dist/components/eval-dataset/eval-dataset.d.ts +7 -0
- package/dist/components/eval-dataset/eval-dataset.d.ts.map +1 -0
- package/dist/components/eval-dataset/eval-dataset.js +10 -0
- package/dist/components/eval-dataset/eval-dataset.js.map +1 -0
- package/dist/components/eval-dataset/eval-dataset.styles.d.ts +2 -0
- package/dist/components/eval-dataset/eval-dataset.styles.d.ts.map +1 -0
- package/dist/components/eval-dataset/eval-dataset.styles.js +76 -0
- package/dist/components/eval-dataset/eval-dataset.styles.js.map +1 -0
- package/dist/components/eval-result/eval-result.class.d.ts +115 -0
- package/dist/components/eval-result/eval-result.class.d.ts.map +1 -0
- package/dist/components/eval-result/eval-result.class.js +165 -0
- package/dist/components/eval-result/eval-result.class.js.map +1 -0
- package/dist/components/eval-result/eval-result.d.ts +5 -0
- package/dist/components/eval-result/eval-result.d.ts.map +1 -0
- package/dist/components/eval-result/eval-result.js +8 -0
- package/dist/components/eval-result/eval-result.js.map +1 -0
- package/dist/components/eval-result/eval-result.styles.d.ts +2 -0
- package/dist/components/eval-result/eval-result.styles.d.ts.map +1 -0
- package/dist/components/eval-result/eval-result.styles.js +47 -0
- package/dist/components/eval-result/eval-result.styles.js.map +1 -0
- package/dist/components/evaluation-run/evaluation-run.class.d.ts +168 -0
- package/dist/components/evaluation-run/evaluation-run.class.d.ts.map +1 -0
- package/dist/components/evaluation-run/evaluation-run.class.js +329 -0
- package/dist/components/evaluation-run/evaluation-run.class.js.map +1 -0
- package/dist/components/evaluation-run/evaluation-run.d.ts +2 -0
- package/dist/components/evaluation-run/evaluation-run.d.ts.map +1 -0
- package/dist/components/evaluation-run/evaluation-run.js +5 -0
- package/dist/components/evaluation-run/evaluation-run.js.map +1 -0
- package/dist/components/evaluation-run/evaluation-run.styles.d.ts +2 -0
- package/dist/components/evaluation-run/evaluation-run.styles.d.ts.map +1 -0
- package/dist/components/evaluation-run/evaluation-run.styles.js +73 -0
- package/dist/components/evaluation-run/evaluation-run.styles.js.map +1 -0
- package/dist/components/filter-bar/filter-bar.class.d.ts +200 -0
- package/dist/components/filter-bar/filter-bar.class.d.ts.map +1 -0
- package/dist/components/filter-bar/filter-bar.class.js +322 -0
- package/dist/components/filter-bar/filter-bar.class.js.map +1 -0
- package/dist/components/filter-bar/filter-bar.d.ts +10 -0
- package/dist/components/filter-bar/filter-bar.d.ts.map +1 -0
- package/dist/components/filter-bar/filter-bar.js +13 -0
- package/dist/components/filter-bar/filter-bar.js.map +1 -0
- package/dist/components/filter-bar/filter-bar.styles.d.ts +2 -0
- package/dist/components/filter-bar/filter-bar.styles.d.ts.map +1 -0
- package/dist/components/filter-bar/filter-bar.styles.js +37 -0
- package/dist/components/filter-bar/filter-bar.styles.js.map +1 -0
- package/dist/components/graph-query-builder/graph-query-builder.class.d.ts +242 -0
- package/dist/components/graph-query-builder/graph-query-builder.class.d.ts.map +1 -0
- package/dist/components/graph-query-builder/graph-query-builder.class.js +511 -0
- package/dist/components/graph-query-builder/graph-query-builder.class.js.map +1 -0
- package/dist/components/graph-query-builder/graph-query-builder.d.ts +7 -0
- package/dist/components/graph-query-builder/graph-query-builder.d.ts.map +1 -0
- package/dist/components/graph-query-builder/graph-query-builder.js +10 -0
- package/dist/components/graph-query-builder/graph-query-builder.js.map +1 -0
- package/dist/components/graph-query-builder/graph-query-builder.styles.d.ts +2 -0
- package/dist/components/graph-query-builder/graph-query-builder.styles.d.ts.map +1 -0
- package/dist/components/graph-query-builder/graph-query-builder.styles.js +170 -0
- package/dist/components/graph-query-builder/graph-query-builder.styles.js.map +1 -0
- package/dist/components/grounding-summary/grounding-summary.class.d.ts +80 -0
- package/dist/components/grounding-summary/grounding-summary.class.d.ts.map +1 -0
- package/dist/components/grounding-summary/grounding-summary.class.js +182 -0
- package/dist/components/grounding-summary/grounding-summary.class.js.map +1 -0
- package/dist/components/grounding-summary/grounding-summary.d.ts +5 -0
- package/dist/components/grounding-summary/grounding-summary.d.ts.map +1 -0
- package/dist/components/grounding-summary/grounding-summary.js +8 -0
- package/dist/components/grounding-summary/grounding-summary.js.map +1 -0
- package/dist/components/grounding-summary/grounding-summary.styles.d.ts +2 -0
- package/dist/components/grounding-summary/grounding-summary.styles.d.ts.map +1 -0
- package/dist/components/grounding-summary/grounding-summary.styles.js +88 -0
- package/dist/components/grounding-summary/grounding-summary.styles.js.map +1 -0
- package/dist/components/ingestion-queue/ingestion-queue.class.d.ts +125 -0
- package/dist/components/ingestion-queue/ingestion-queue.class.d.ts.map +1 -0
- package/dist/components/ingestion-queue/ingestion-queue.class.js +276 -0
- package/dist/components/ingestion-queue/ingestion-queue.class.js.map +1 -0
- package/dist/components/ingestion-queue/ingestion-queue.d.ts +2 -0
- package/dist/components/ingestion-queue/ingestion-queue.d.ts.map +1 -0
- package/dist/components/ingestion-queue/ingestion-queue.js +5 -0
- package/dist/components/ingestion-queue/ingestion-queue.js.map +1 -0
- package/dist/components/ingestion-queue/ingestion-queue.styles.d.ts +2 -0
- package/dist/components/ingestion-queue/ingestion-queue.styles.d.ts.map +1 -0
- package/dist/components/ingestion-queue/ingestion-queue.styles.js +138 -0
- package/dist/components/ingestion-queue/ingestion-queue.styles.js.map +1 -0
- package/dist/components/knowledge-base/knowledge-base.class.d.ts +136 -0
- package/dist/components/knowledge-base/knowledge-base.class.d.ts.map +1 -0
- package/dist/components/knowledge-base/knowledge-base.class.js +360 -0
- package/dist/components/knowledge-base/knowledge-base.class.js.map +1 -0
- package/dist/components/knowledge-base/knowledge-base.d.ts +7 -0
- package/dist/components/knowledge-base/knowledge-base.d.ts.map +1 -0
- package/dist/components/knowledge-base/knowledge-base.js +10 -0
- package/dist/components/knowledge-base/knowledge-base.js.map +1 -0
- package/dist/components/knowledge-base/knowledge-base.styles.d.ts +2 -0
- package/dist/components/knowledge-base/knowledge-base.styles.d.ts.map +1 -0
- package/dist/components/knowledge-base/knowledge-base.styles.js +94 -0
- package/dist/components/knowledge-base/knowledge-base.styles.js.map +1 -0
- package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.class.d.ts +196 -0
- package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.class.d.ts.map +1 -0
- package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.class.js +477 -0
- package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.class.js.map +1 -0
- package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.d.ts +11 -0
- package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.d.ts.map +1 -0
- package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.js +14 -0
- package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.js.map +1 -0
- package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.styles.d.ts +2 -0
- package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.styles.d.ts.map +1 -0
- package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.styles.js +76 -0
- package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.styles.js.map +1 -0
- package/dist/components/memory-panel/memory-panel.class.d.ts +146 -0
- package/dist/components/memory-panel/memory-panel.class.d.ts.map +1 -0
- package/dist/components/memory-panel/memory-panel.class.js +303 -0
- package/dist/components/memory-panel/memory-panel.class.js.map +1 -0
- package/dist/components/memory-panel/memory-panel.d.ts +5 -0
- package/dist/components/memory-panel/memory-panel.d.ts.map +1 -0
- package/dist/components/memory-panel/memory-panel.js +8 -0
- package/dist/components/memory-panel/memory-panel.js.map +1 -0
- package/dist/components/memory-panel/memory-panel.styles.d.ts +2 -0
- package/dist/components/memory-panel/memory-panel.styles.d.ts.map +1 -0
- package/dist/components/memory-panel/memory-panel.styles.js +139 -0
- package/dist/components/memory-panel/memory-panel.styles.js.map +1 -0
- package/dist/components/overlay/popover.class.d.ts +39 -0
- package/dist/components/overlay/popover.class.d.ts.map +1 -1
- package/dist/components/overlay/popover.class.js +53 -3
- package/dist/components/overlay/popover.class.js.map +1 -1
- package/dist/components/overlay/tooltip.class.d.ts +43 -0
- package/dist/components/overlay/tooltip.class.d.ts.map +1 -1
- package/dist/components/overlay/tooltip.class.js +66 -4
- package/dist/components/overlay/tooltip.class.js.map +1 -1
- package/dist/components/policy-summary/policy-summary.class.d.ts +76 -0
- package/dist/components/policy-summary/policy-summary.class.d.ts.map +1 -0
- package/dist/components/policy-summary/policy-summary.class.js +125 -0
- package/dist/components/policy-summary/policy-summary.class.js.map +1 -0
- package/dist/components/policy-summary/policy-summary.d.ts +6 -0
- package/dist/components/policy-summary/policy-summary.d.ts.map +1 -0
- package/dist/components/policy-summary/policy-summary.js +9 -0
- package/dist/components/policy-summary/policy-summary.js.map +1 -0
- package/dist/components/policy-summary/policy-summary.styles.d.ts +2 -0
- package/dist/components/policy-summary/policy-summary.styles.d.ts.map +1 -0
- package/dist/components/policy-summary/policy-summary.styles.js +68 -0
- package/dist/components/policy-summary/policy-summary.styles.js.map +1 -0
- package/dist/components/query-builder/query-builder.class.d.ts +180 -0
- package/dist/components/query-builder/query-builder.class.d.ts.map +1 -0
- package/dist/components/query-builder/query-builder.class.js +415 -0
- package/dist/components/query-builder/query-builder.class.js.map +1 -0
- package/dist/components/query-builder/query-builder.d.ts +9 -0
- package/dist/components/query-builder/query-builder.d.ts.map +1 -0
- package/dist/components/query-builder/query-builder.js +12 -0
- package/dist/components/query-builder/query-builder.js.map +1 -0
- package/dist/components/query-builder/query-builder.styles.d.ts +2 -0
- package/dist/components/query-builder/query-builder.styles.d.ts.map +1 -0
- package/dist/components/query-builder/query-builder.styles.js +77 -0
- package/dist/components/query-builder/query-builder.styles.js.map +1 -0
- package/dist/components/retrieval-results/retrieval-results.class.d.ts +151 -0
- package/dist/components/retrieval-results/retrieval-results.class.d.ts.map +1 -0
- package/dist/components/retrieval-results/retrieval-results.class.js +340 -0
- package/dist/components/retrieval-results/retrieval-results.class.js.map +1 -0
- package/dist/components/retrieval-results/retrieval-results.d.ts +7 -0
- package/dist/components/retrieval-results/retrieval-results.d.ts.map +1 -0
- package/dist/components/retrieval-results/retrieval-results.js +10 -0
- package/dist/components/retrieval-results/retrieval-results.js.map +1 -0
- package/dist/components/retrieval-results/retrieval-results.styles.d.ts +2 -0
- package/dist/components/retrieval-results/retrieval-results.styles.d.ts.map +1 -0
- package/dist/components/retrieval-results/retrieval-results.styles.js +94 -0
- package/dist/components/retrieval-results/retrieval-results.styles.js.map +1 -0
- package/dist/components/retrieval-search/retrieval-search.class.d.ts +127 -0
- package/dist/components/retrieval-search/retrieval-search.class.d.ts.map +1 -0
- package/dist/components/retrieval-search/retrieval-search.class.js +266 -0
- package/dist/components/retrieval-search/retrieval-search.class.js.map +1 -0
- package/dist/components/retrieval-search/retrieval-search.d.ts +8 -0
- package/dist/components/retrieval-search/retrieval-search.d.ts.map +1 -0
- package/dist/components/retrieval-search/retrieval-search.js +11 -0
- package/dist/components/retrieval-search/retrieval-search.js.map +1 -0
- package/dist/components/retrieval-search/retrieval-search.styles.d.ts +2 -0
- package/dist/components/retrieval-search/retrieval-search.styles.d.ts.map +1 -0
- package/dist/components/retrieval-search/retrieval-search.styles.js +75 -0
- package/dist/components/retrieval-search/retrieval-search.styles.js.map +1 -0
- package/dist/components/retrieval-trace/retrieval-trace.class.d.ts +101 -0
- package/dist/components/retrieval-trace/retrieval-trace.class.d.ts.map +1 -0
- package/dist/components/retrieval-trace/retrieval-trace.class.js +215 -0
- package/dist/components/retrieval-trace/retrieval-trace.class.js.map +1 -0
- package/dist/components/retrieval-trace/retrieval-trace.d.ts +4 -0
- package/dist/components/retrieval-trace/retrieval-trace.d.ts.map +1 -0
- package/dist/components/retrieval-trace/retrieval-trace.js +7 -0
- package/dist/components/retrieval-trace/retrieval-trace.js.map +1 -0
- package/dist/components/retrieval-trace/retrieval-trace.styles.d.ts +2 -0
- package/dist/components/retrieval-trace/retrieval-trace.styles.d.ts.map +1 -0
- package/dist/components/retrieval-trace/retrieval-trace.styles.js +116 -0
- package/dist/components/retrieval-trace/retrieval-trace.styles.js.map +1 -0
- package/dist/components/thread-list/thread-list.class.d.ts +19 -1
- package/dist/components/thread-list/thread-list.class.d.ts.map +1 -1
- package/dist/components/thread-list/thread-list.class.js +9 -2
- package/dist/components/thread-list/thread-list.class.js.map +1 -1
- package/dist/components/tool-timeline/tool-timeline.class.d.ts +140 -0
- package/dist/components/tool-timeline/tool-timeline.class.d.ts.map +1 -0
- package/dist/components/tool-timeline/tool-timeline.class.js +293 -0
- package/dist/components/tool-timeline/tool-timeline.class.js.map +1 -0
- package/dist/components/tool-timeline/tool-timeline.d.ts +2 -0
- package/dist/components/tool-timeline/tool-timeline.d.ts.map +1 -0
- package/dist/components/tool-timeline/tool-timeline.js +5 -0
- package/dist/components/tool-timeline/tool-timeline.js.map +1 -0
- package/dist/components/tool-timeline/tool-timeline.styles.d.ts +2 -0
- package/dist/components/tool-timeline/tool-timeline.styles.d.ts.map +1 -0
- package/dist/components/tool-timeline/tool-timeline.styles.js +148 -0
- package/dist/components/tool-timeline/tool-timeline.styles.js.map +1 -0
- package/dist/internal/localization.d.ts +1 -1
- package/dist/internal/localization.d.ts.map +1 -1
- package/dist/internal/localization.js +224 -0
- package/dist/internal/localization.js.map +1 -1
- package/dist/internal/positioner.d.ts +28 -1
- package/dist/internal/positioner.d.ts.map +1 -1
- package/dist/internal/positioner.js +12 -1
- package/dist/internal/positioner.js.map +1 -1
- package/dist/internal/root-registration-allowlist.d.ts +2 -2
- package/dist/internal/root-registration-allowlist.d.ts.map +1 -1
- package/dist/internal/root-registration-allowlist.js +24 -0
- package/dist/internal/root-registration-allowlist.js.map +1 -1
- package/dist/internal/tokens.styles.d.ts.map +1 -1
- package/dist/internal/tokens.styles.js +2 -0
- package/dist/internal/tokens.styles.js.map +1 -1
- package/dist/lyra.d.ts +48 -1
- package/dist/lyra.d.ts.map +1 -1
- package/dist/lyra.js +47 -0
- package/dist/lyra.js.map +1 -1
- package/llms-full.txt +462 -9
- package/llms.txt +7 -0
- package/package.json +50 -1
- package/vscode-css-data.json +21 -0
- package/vscode-html-data.json +1103 -47
- package/web-types.json +1131 -47
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { html, nothing } from 'lit';
|
|
8
|
+
import { property, state } from 'lit/decorators.js';
|
|
9
|
+
import { LyraElement } from '../../internal/lyra-element.js';
|
|
10
|
+
import '../data-grid/data-grid.js';
|
|
11
|
+
import '../chip/chip.js';
|
|
12
|
+
import '../chip/chip-group.js';
|
|
13
|
+
import '../file-input/file-input.js';
|
|
14
|
+
import '../export-button/export-button.js';
|
|
15
|
+
import { styles } from './eval-dataset.styles.js';
|
|
16
|
+
/**
|
|
17
|
+
* `<lr-eval-dataset>` — dataset management for an evaluation suite: a filterable/taggable list of
|
|
18
|
+
* `EvalExample` rows, plus add/remove/import/export affordances.
|
|
19
|
+
*
|
|
20
|
+
* Fully controlled, matching this library's established convention for every other
|
|
21
|
+
* orchestration-level component in this family (e.g. `<lr-thread-list>`'s
|
|
22
|
+
* `lr-thread-pin`/`-archive`/`-delete`): `examples` is the host's own data, and this component
|
|
23
|
+
* never mutates it or performs any I/O itself. Every action a user takes -- adding a row,
|
|
24
|
+
* removing the selected row, importing files, exporting to a format -- fires a `*-request` event
|
|
25
|
+
* carrying just enough information to act on; the host decides how (a local mutation, a network
|
|
26
|
+
* round-trip, opening its own creation dialog, parsing an imported file's actual contents, writing
|
|
27
|
+
* an exported file to disk or a server) and passes an updated `examples` array back in.
|
|
28
|
+
*
|
|
29
|
+
* Composes `<lr-data-grid>` for the row list (columns for `input`/`expectedOutput`/joined
|
|
30
|
+
* `tags`), `<lr-chip>`/`<lr-chip-group>` as a tag-based browse filter (one toggleable chip per
|
|
31
|
+
* distinct tag currently present across `examples`; multiple active tags OR together, matching
|
|
32
|
+
* the common "browse by any of these tags" idiom rather than requiring every tag to match),
|
|
33
|
+
* `<lr-file-input>` for the import affordance, and `<lr-export-button>` for the export affordance
|
|
34
|
+
* -- its own built-in client-side CSV/JSON download is deliberately suppressed
|
|
35
|
+
* (`event.preventDefault()` on its `lr-export`) since `<lr-export-button>`'s flat `rows`/`columns`
|
|
36
|
+
* CSV/JSON builder can't preserve an `EvalExample`'s own `tags`/`metadata` shape faithfully, and
|
|
37
|
+
* producing the actual exported file/API-call either way is the host's job per this component's
|
|
38
|
+
* own controlled contract; this keeps `lr-export-request` the single source of truth for every
|
|
39
|
+
* configured format rather than one format silently downloading locally while every other format
|
|
40
|
+
* does nothing.
|
|
41
|
+
*
|
|
42
|
+
* Row sorting is *not* re-implemented here: `<lr-data-grid>`'s own `lr-sort` bubbles through
|
|
43
|
+
* (composed events cross a shadow boundary automatically) for a host that wants to reorder
|
|
44
|
+
* `examples` and hand back a resorted array -- the same "the host owns the actual data" contract
|
|
45
|
+
* as every other mutation this component surfaces.
|
|
46
|
+
*
|
|
47
|
+
* @customElement lr-eval-dataset
|
|
48
|
+
* @event lr-example-select - A row was activated. `detail: { id }` -- `id` is `null` once the
|
|
49
|
+
* previously-selected row no longer exists in `examples` (see `examples`' own doc).
|
|
50
|
+
* @event lr-example-add-request - The "Add example" control was activated. No detail payload --
|
|
51
|
+
* this component has no opinion on what a new example's fields should be; the host implements
|
|
52
|
+
* its own creation flow (a dialog, a generated draft, etc.) and appends the result to `examples`.
|
|
53
|
+
* @event lr-example-remove-request - The "Remove" control was activated for the selected row.
|
|
54
|
+
* `detail: { id }`.
|
|
55
|
+
* @event lr-import-request - Files were selected/dropped on the internal `<lr-file-input>` and at
|
|
56
|
+
* least one was accepted by its own type/size rules. `detail: { files }` — raw `File[]`; parsing
|
|
57
|
+
* (CSV/JSON/etc. into `EvalExample` rows) is left to the host, mirroring `<lr-file-input>`'s own
|
|
58
|
+
* "parsing is a host concern" scope.
|
|
59
|
+
* @event lr-export-request - An export format was chosen. `detail: { format }`.
|
|
60
|
+
* @csspart base - The root.
|
|
61
|
+
* @csspart toolbar - The row of add/remove/import/export controls.
|
|
62
|
+
* @csspart add-button - The "Add example" button.
|
|
63
|
+
* @csspart remove-button - The "Remove" button, disabled while nothing is selected.
|
|
64
|
+
* @csspart import - The internal `<lr-file-input>`.
|
|
65
|
+
* @csspart export - The internal `<lr-export-button>`.
|
|
66
|
+
* @csspart search - The search field's wrapper. Only rendered while `searchable`.
|
|
67
|
+
* @csspart search-input - The `<input type="search">`. Only rendered while `searchable`.
|
|
68
|
+
* @csspart tag-filter - The tag-filter chip group's wrapper. Only rendered while `examples`
|
|
69
|
+
* carries at least one tag.
|
|
70
|
+
* @csspart grid - The internal `<lr-data-grid>`.
|
|
71
|
+
*/
|
|
72
|
+
export class LyraEvalDataset extends LyraElement {
|
|
73
|
+
constructor() {
|
|
74
|
+
super(...arguments);
|
|
75
|
+
/** Controlled dataset: every example currently known to the host. This component never
|
|
76
|
+
* mutates its own copy of it -- add/remove/import/export are all *requests*; the host performs
|
|
77
|
+
* the actual mutation (and any persistence/API call) and passes the updated array back in.
|
|
78
|
+
* Shrinking this out from under an in-progress selection or active tag filter is handled
|
|
79
|
+
* gracefully: a `selectedId` that no longer matches any row resets to `null` (re-enabling the
|
|
80
|
+
* "Add" button's inert Remove sibling), and an active tag filter that no longer matches any
|
|
81
|
+
* row's `tags` is dropped rather than silently matching zero rows forever. */
|
|
82
|
+
this.examples = [];
|
|
83
|
+
/** Shows the built-in free-text search field, filtering by a case-insensitive substring match
|
|
84
|
+
* against `input`, `expectedOutput`, and `tags`. */
|
|
85
|
+
this.searchable = false;
|
|
86
|
+
/** Forwarded to the internal `<lr-file-input>`'s own `accept` (native-file-input-style pattern,
|
|
87
|
+
* e.g. `'.json,.csv'`). Empty (the default) accepts any file type. */
|
|
88
|
+
this.accept = '';
|
|
89
|
+
/** Forwarded to the internal `<lr-export-button>`'s own `formats`. */
|
|
90
|
+
this.exportFormats = ['csv', 'json'];
|
|
91
|
+
/** Disables every add/remove/import/export affordance -- e.g. while a host-side mutation from a
|
|
92
|
+
* previous request is still in flight. */
|
|
93
|
+
this.disabled = false;
|
|
94
|
+
/** Accessible name for the example grid region. Defaults to the localized `evalDatasetLabel`. */
|
|
95
|
+
this.label = '';
|
|
96
|
+
this.searchText = '';
|
|
97
|
+
this.activeTags = new Set();
|
|
98
|
+
this.selectedId = null;
|
|
99
|
+
this.onAddClick = () => {
|
|
100
|
+
if (this.disabled)
|
|
101
|
+
return;
|
|
102
|
+
this.emit('lr-example-add-request');
|
|
103
|
+
};
|
|
104
|
+
this.onRemoveClick = () => {
|
|
105
|
+
if (this.disabled || this.selectedId === null)
|
|
106
|
+
return;
|
|
107
|
+
this.emit('lr-example-remove-request', { id: this.selectedId });
|
|
108
|
+
};
|
|
109
|
+
this.onGridSelectionChange = (e) => {
|
|
110
|
+
const id = e.detail.row?.id ?? null;
|
|
111
|
+
this.selectedId = id;
|
|
112
|
+
this.emit('lr-example-select', { id });
|
|
113
|
+
};
|
|
114
|
+
this.onFiles = (e) => {
|
|
115
|
+
if (this.disabled || e.detail.files.length === 0)
|
|
116
|
+
return;
|
|
117
|
+
this.emit('lr-import-request', { files: e.detail.files });
|
|
118
|
+
};
|
|
119
|
+
this.onExportButtonExport = (e) => {
|
|
120
|
+
// Suppress the internal <lr-export-button>'s own built-in client-side blob download -- see
|
|
121
|
+
// the class doc for why every configured format is redirected through lr-export-request
|
|
122
|
+
// instead, rather than letting csv/json download locally while other formats silently do
|
|
123
|
+
// nothing.
|
|
124
|
+
e.preventDefault();
|
|
125
|
+
this.emit('lr-export-request', { format: e.detail.format });
|
|
126
|
+
};
|
|
127
|
+
this.onSearchInput = (e) => {
|
|
128
|
+
this.searchText = e.target.value;
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
static { this.styles = [LyraElement.styles, styles]; }
|
|
132
|
+
willUpdate(changed) {
|
|
133
|
+
if (!changed.has('examples'))
|
|
134
|
+
return;
|
|
135
|
+
// A host fulfilling `lr-example-remove-request` (or an import that replaces the whole array)
|
|
136
|
+
// can hand back an `examples` array that no longer contains the previously-selected id, or no
|
|
137
|
+
// longer carries every previously-active tag. Re-clamp both here rather than leaving stale
|
|
138
|
+
// state pointing at nothing: an unclamped `selectedId` would leave the Remove button enabled
|
|
139
|
+
// for an id that can't be removed again, and an unclamped tag filter would keep matching zero
|
|
140
|
+
// rows forever with no visible way back to "no filter".
|
|
141
|
+
if (this.selectedId !== null && !this.examples.some((example) => example.id === this.selectedId)) {
|
|
142
|
+
this.selectedId = null;
|
|
143
|
+
}
|
|
144
|
+
const available = this.allTags();
|
|
145
|
+
if ([...this.activeTags].some((tag) => !available.includes(tag))) {
|
|
146
|
+
this.activeTags = new Set([...this.activeTags].filter((tag) => available.includes(tag)));
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
allTags() {
|
|
150
|
+
const tags = new Set();
|
|
151
|
+
for (const example of this.examples) {
|
|
152
|
+
for (const tag of example.tags ?? [])
|
|
153
|
+
tags.add(tag);
|
|
154
|
+
}
|
|
155
|
+
return [...tags].sort();
|
|
156
|
+
}
|
|
157
|
+
/** `examples` narrowed by the active tag filter (OR across `activeTags`) and the search text
|
|
158
|
+
* (AND with the tag filter -- both narrow the same list further). */
|
|
159
|
+
get visibleExamples() {
|
|
160
|
+
const query = this.searchText.trim().toLowerCase();
|
|
161
|
+
return this.examples.filter((example) => {
|
|
162
|
+
if (this.activeTags.size > 0 && !(example.tags ?? []).some((tag) => this.activeTags.has(tag)))
|
|
163
|
+
return false;
|
|
164
|
+
if (query === '')
|
|
165
|
+
return true;
|
|
166
|
+
const haystack = [example.input, example.expectedOutput ?? '', ...(example.tags ?? [])]
|
|
167
|
+
.join(' ')
|
|
168
|
+
.toLowerCase();
|
|
169
|
+
return haystack.includes(query);
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
buildColumns() {
|
|
173
|
+
return [
|
|
174
|
+
{ key: 'input', label: this.localize('evalDatasetColumnInput') },
|
|
175
|
+
{
|
|
176
|
+
key: 'expectedOutput',
|
|
177
|
+
label: this.localize('evalDatasetColumnExpectedOutput'),
|
|
178
|
+
value: (row) => row.expectedOutput ?? '',
|
|
179
|
+
},
|
|
180
|
+
{ key: 'tags', label: this.localize('evalDatasetColumnTags'), value: (row) => (row.tags ?? []).join(', ') },
|
|
181
|
+
];
|
|
182
|
+
}
|
|
183
|
+
onTagChipSelect(tag, e) {
|
|
184
|
+
const next = new Set(this.activeTags);
|
|
185
|
+
if (e.detail.selected)
|
|
186
|
+
next.add(tag);
|
|
187
|
+
else
|
|
188
|
+
next.delete(tag);
|
|
189
|
+
this.activeTags = next;
|
|
190
|
+
}
|
|
191
|
+
renderToolbar() {
|
|
192
|
+
return html `
|
|
193
|
+
<div part="toolbar">
|
|
194
|
+
<button part="add-button" type="button" ?disabled=${this.disabled} @click=${this.onAddClick}>
|
|
195
|
+
${this.localize('evalDatasetAddExample')}
|
|
196
|
+
</button>
|
|
197
|
+
<button
|
|
198
|
+
part="remove-button"
|
|
199
|
+
type="button"
|
|
200
|
+
?disabled=${this.disabled || this.selectedId === null}
|
|
201
|
+
@click=${this.onRemoveClick}
|
|
202
|
+
>
|
|
203
|
+
${this.localize('evalDatasetRemoveExample')}
|
|
204
|
+
</button>
|
|
205
|
+
<lr-file-input
|
|
206
|
+
part="import"
|
|
207
|
+
accept=${this.accept}
|
|
208
|
+
label=${this.localize('evalDatasetImportLabel')}
|
|
209
|
+
?disabled=${this.disabled}
|
|
210
|
+
@lr-files=${this.onFiles}
|
|
211
|
+
></lr-file-input>
|
|
212
|
+
<lr-export-button
|
|
213
|
+
part="export"
|
|
214
|
+
.formats=${this.exportFormats}
|
|
215
|
+
?disabled=${this.disabled}
|
|
216
|
+
@lr-export=${this.onExportButtonExport}
|
|
217
|
+
></lr-export-button>
|
|
218
|
+
</div>
|
|
219
|
+
`;
|
|
220
|
+
}
|
|
221
|
+
renderSearch() {
|
|
222
|
+
const label = this.localize('evalDatasetSearchLabel');
|
|
223
|
+
return html `
|
|
224
|
+
<div part="search">
|
|
225
|
+
<input
|
|
226
|
+
part="search-input"
|
|
227
|
+
type="search"
|
|
228
|
+
.value=${this.searchText}
|
|
229
|
+
aria-label=${label}
|
|
230
|
+
placeholder=${label}
|
|
231
|
+
@input=${this.onSearchInput}
|
|
232
|
+
/>
|
|
233
|
+
</div>
|
|
234
|
+
`;
|
|
235
|
+
}
|
|
236
|
+
renderTagFilter(tags) {
|
|
237
|
+
return html `
|
|
238
|
+
<div part="tag-filter" role="group" aria-label=${this.localize('evalDatasetTagFilterLabel')}>
|
|
239
|
+
<lr-chip-group>
|
|
240
|
+
${tags.map((tag) => html `<lr-chip
|
|
241
|
+
toggleable
|
|
242
|
+
.value=${tag}
|
|
243
|
+
.selected=${this.activeTags.has(tag)}
|
|
244
|
+
@lr-chip-select=${(e) => this.onTagChipSelect(tag, e)}
|
|
245
|
+
>${tag}</lr-chip
|
|
246
|
+
>`)}
|
|
247
|
+
</lr-chip-group>
|
|
248
|
+
</div>
|
|
249
|
+
`;
|
|
250
|
+
}
|
|
251
|
+
render() {
|
|
252
|
+
const label = this.label || this.localize('evalDatasetLabel');
|
|
253
|
+
const tags = this.allTags();
|
|
254
|
+
const visible = this.visibleExamples;
|
|
255
|
+
const filtered = visible.length !== this.examples.length;
|
|
256
|
+
const emptyText = this.examples.length === 0
|
|
257
|
+
? this.localize('evalDatasetEmpty')
|
|
258
|
+
: filtered && visible.length === 0
|
|
259
|
+
? this.localize('evalDatasetNoMatches')
|
|
260
|
+
: '';
|
|
261
|
+
return html `
|
|
262
|
+
<div part="base">
|
|
263
|
+
${this.renderToolbar()}
|
|
264
|
+
${this.searchable ? this.renderSearch() : nothing}
|
|
265
|
+
${tags.length > 0 ? this.renderTagFilter(tags) : nothing}
|
|
266
|
+
<lr-data-grid
|
|
267
|
+
part="grid"
|
|
268
|
+
aria-label=${label}
|
|
269
|
+
.columns=${this.buildColumns()}
|
|
270
|
+
.rows=${visible}
|
|
271
|
+
.rowKey=${(row) => row.id}
|
|
272
|
+
.selectedKey=${this.selectedId}
|
|
273
|
+
.emptyText=${emptyText}
|
|
274
|
+
@lr-selection-change=${this.onGridSelectionChange}
|
|
275
|
+
></lr-data-grid>
|
|
276
|
+
</div>
|
|
277
|
+
`;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
__decorate([
|
|
281
|
+
property({ attribute: false })
|
|
282
|
+
], LyraEvalDataset.prototype, "examples", void 0);
|
|
283
|
+
__decorate([
|
|
284
|
+
property({ type: Boolean, reflect: true })
|
|
285
|
+
], LyraEvalDataset.prototype, "searchable", void 0);
|
|
286
|
+
__decorate([
|
|
287
|
+
property()
|
|
288
|
+
], LyraEvalDataset.prototype, "accept", void 0);
|
|
289
|
+
__decorate([
|
|
290
|
+
property({ attribute: false })
|
|
291
|
+
], LyraEvalDataset.prototype, "exportFormats", void 0);
|
|
292
|
+
__decorate([
|
|
293
|
+
property({ type: Boolean, reflect: true })
|
|
294
|
+
], LyraEvalDataset.prototype, "disabled", void 0);
|
|
295
|
+
__decorate([
|
|
296
|
+
property()
|
|
297
|
+
], LyraEvalDataset.prototype, "label", void 0);
|
|
298
|
+
__decorate([
|
|
299
|
+
state()
|
|
300
|
+
], LyraEvalDataset.prototype, "searchText", void 0);
|
|
301
|
+
__decorate([
|
|
302
|
+
state()
|
|
303
|
+
], LyraEvalDataset.prototype, "activeTags", void 0);
|
|
304
|
+
__decorate([
|
|
305
|
+
state()
|
|
306
|
+
], LyraEvalDataset.prototype, "selectedId", void 0);
|
|
307
|
+
//# sourceMappingURL=eval-dataset.class.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eval-dataset.class.js","sourceRoot":"","sources":["../../../src/components/eval-dataset/eval-dataset.class.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EA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Q,EAAE;+CAAa;AAGQ;IAA/B,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;sDAAuD;AAI1C;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iDAAkB;AAGjD;IAAX,QAAQ,EAAE;8CAAY;AAEN;IAAhB,KAAK,EAAE;mDAAyB;AAChB;IAAhB,KAAK,EAAE;mDAAwC;AAC/B;IAAhB,KAAK,EAAE;mDAA0C"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './eval-dataset.class.js';
|
|
2
|
+
import '../data-grid/data-grid.js';
|
|
3
|
+
import '../chip/chip.js';
|
|
4
|
+
import '../chip/chip-group.js';
|
|
5
|
+
import '../file-input/file-input.js';
|
|
6
|
+
import '../export-button/export-button.js';
|
|
7
|
+
//# sourceMappingURL=eval-dataset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eval-dataset.d.ts","sourceRoot":"","sources":["../../../src/components/eval-dataset/eval-dataset.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AAGxC,OAAO,2BAA2B,CAAC;AACnC,OAAO,iBAAiB,CAAC;AACzB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,6BAA6B,CAAC;AACrC,OAAO,mCAAmC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './eval-dataset.class.js';
|
|
2
|
+
import { LyraEvalDataset } from './eval-dataset.class.js';
|
|
3
|
+
import { defineElement } from '../../internal/prefix.js';
|
|
4
|
+
import '../data-grid/data-grid.js';
|
|
5
|
+
import '../chip/chip.js';
|
|
6
|
+
import '../chip/chip-group.js';
|
|
7
|
+
import '../file-input/file-input.js';
|
|
8
|
+
import '../export-button/export-button.js';
|
|
9
|
+
defineElement('eval-dataset', LyraEvalDataset);
|
|
10
|
+
//# sourceMappingURL=eval-dataset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eval-dataset.js","sourceRoot":"","sources":["../../../src/components/eval-dataset/eval-dataset.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,2BAA2B,CAAC;AACnC,OAAO,iBAAiB,CAAC;AACzB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,6BAA6B,CAAC;AACrC,OAAO,mCAAmC,CAAC;AAC3C,aAAa,CAAC,cAAc,EAAE,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eval-dataset.styles.d.ts","sourceRoot":"","sources":["../../../src/components/eval-dataset/eval-dataset.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,yBAyElB,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export const styles = css `
|
|
3
|
+
:host {
|
|
4
|
+
display: block;
|
|
5
|
+
min-inline-size: 0;
|
|
6
|
+
}
|
|
7
|
+
[part='base'] {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
gap: var(--lr-space-s);
|
|
11
|
+
min-inline-size: 0;
|
|
12
|
+
}
|
|
13
|
+
[part='toolbar'] {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-wrap: wrap;
|
|
16
|
+
align-items: center;
|
|
17
|
+
gap: var(--lr-space-xs);
|
|
18
|
+
}
|
|
19
|
+
[part='add-button'],
|
|
20
|
+
[part='remove-button'] {
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
padding: var(--lr-space-xs) var(--lr-space-m);
|
|
24
|
+
border: var(--lr-border-width-thin) solid var(--lr-color-border);
|
|
25
|
+
border-radius: var(--lr-radius);
|
|
26
|
+
background: var(--lr-color-surface);
|
|
27
|
+
color: var(--lr-color-text);
|
|
28
|
+
font: inherit;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
}
|
|
31
|
+
[part='add-button']:hover:not(:disabled),
|
|
32
|
+
[part='remove-button']:hover:not(:disabled) {
|
|
33
|
+
border-color: var(--lr-color-brand);
|
|
34
|
+
}
|
|
35
|
+
[part='add-button']:disabled,
|
|
36
|
+
[part='remove-button']:disabled {
|
|
37
|
+
opacity: var(--lr-opacity-disabled);
|
|
38
|
+
cursor: not-allowed;
|
|
39
|
+
}
|
|
40
|
+
[part='add-button']:focus-visible,
|
|
41
|
+
[part='remove-button']:focus-visible {
|
|
42
|
+
outline: var(--lr-focus-ring-width) solid var(--lr-focus-ring-color);
|
|
43
|
+
outline-offset: var(--lr-focus-ring-offset);
|
|
44
|
+
}
|
|
45
|
+
[part='import'] {
|
|
46
|
+
flex: 0 1 auto;
|
|
47
|
+
min-inline-size: 0;
|
|
48
|
+
max-inline-size: var(--lr-size-14rem);
|
|
49
|
+
}
|
|
50
|
+
[part='search'] {
|
|
51
|
+
display: block;
|
|
52
|
+
}
|
|
53
|
+
[part='search-input'] {
|
|
54
|
+
box-sizing: border-box;
|
|
55
|
+
inline-size: 100%;
|
|
56
|
+
padding-inline: var(--lr-space-s);
|
|
57
|
+
padding-block: var(--lr-space-xs);
|
|
58
|
+
border: var(--lr-border-width-thin) solid var(--lr-color-border);
|
|
59
|
+
border-radius: var(--lr-radius);
|
|
60
|
+
background: var(--lr-color-surface);
|
|
61
|
+
color: var(--lr-color-text);
|
|
62
|
+
font: inherit;
|
|
63
|
+
}
|
|
64
|
+
[part='search-input']:focus-visible {
|
|
65
|
+
outline: var(--lr-focus-ring-width) solid var(--lr-focus-ring-color);
|
|
66
|
+
outline-offset: var(--lr-focus-ring-offset);
|
|
67
|
+
}
|
|
68
|
+
[part='tag-filter'] {
|
|
69
|
+
display: block;
|
|
70
|
+
}
|
|
71
|
+
[part='grid'] {
|
|
72
|
+
display: block;
|
|
73
|
+
min-inline-size: 0;
|
|
74
|
+
}
|
|
75
|
+
`;
|
|
76
|
+
//# sourceMappingURL=eval-dataset.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eval-dataset.styles.js","sourceRoot":"","sources":["../../../src/components/eval-dataset/eval-dataset.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyExB,CAAC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import { LyraElement } from '../../internal/lyra-element.js';
|
|
3
|
+
import type { RubricKey, RubricValue } from '../rubric-form/rubric-form.class.js';
|
|
4
|
+
import type { DataGridColumn } from '../data-grid/data-grid.class.js';
|
|
5
|
+
import '../rubric-form/rubric-form.class.js';
|
|
6
|
+
import '../data-grid/data-grid.class.js';
|
|
7
|
+
import '../diff-view/diff-view.class.js';
|
|
8
|
+
/**
|
|
9
|
+
* One model/prompt-version's output for a single evaluation example, plus whatever automated
|
|
10
|
+
* `scores` it already carries and whatever `review` a human has entered for it so far. `scores`
|
|
11
|
+
* and `review` are both keyed the same way as the `rubricKeys` passed to this component -- the
|
|
12
|
+
* same `RubricValue` shape `<lr-rubric-form>` itself reads and writes -- so a `DataGridColumn`'s
|
|
13
|
+
* `value()` accessor and the rubric form's own `value` binding can both read a run's fields with
|
|
14
|
+
* no conversion.
|
|
15
|
+
*/
|
|
16
|
+
export interface EvalRunResult {
|
|
17
|
+
id: string;
|
|
18
|
+
label: string;
|
|
19
|
+
model?: string;
|
|
20
|
+
promptVersion?: string;
|
|
21
|
+
output: string;
|
|
22
|
+
scores?: RubricValue;
|
|
23
|
+
review?: RubricValue;
|
|
24
|
+
}
|
|
25
|
+
export interface LyraEvalResultEventMap {
|
|
26
|
+
'lr-run-select': CustomEvent<{
|
|
27
|
+
runId: string;
|
|
28
|
+
}>;
|
|
29
|
+
'lr-review-input': CustomEvent<{
|
|
30
|
+
runId: string;
|
|
31
|
+
value: RubricValue;
|
|
32
|
+
}>;
|
|
33
|
+
'lr-review-validity-change': CustomEvent<{
|
|
34
|
+
runId: string;
|
|
35
|
+
valid: boolean;
|
|
36
|
+
errors: Record<string, string>;
|
|
37
|
+
}>;
|
|
38
|
+
'lr-review-submit': CustomEvent<{
|
|
39
|
+
runId: string;
|
|
40
|
+
value: RubricValue;
|
|
41
|
+
}>;
|
|
42
|
+
'lr-review-skip': CustomEvent<{
|
|
43
|
+
runId: string;
|
|
44
|
+
}>;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* `<lr-eval-result>` — rubric scoring, human review, and comparison across a single evaluation
|
|
48
|
+
* example's runs (one per model or prompt version), LangSmith/Arize-eval-result style.
|
|
49
|
+
*
|
|
50
|
+
* Composes three existing primitives directly rather than re-deriving any of their behavior:
|
|
51
|
+
* `<lr-data-grid>` renders the `runs` comparison table (`columns` is a plain pass-through to its
|
|
52
|
+
* own `DataGridColumn[]` shape, the same way `rubricKeys` is a pass-through to
|
|
53
|
+
* `<lr-rubric-form>`'s own `keys` -- neither is re-derived here); `<lr-rubric-form>` is the
|
|
54
|
+
* human-review scoring surface for whichever run is currently selected, reading/writing that
|
|
55
|
+
* run's own `review` value and re-emitting its `lr-input`/`lr-validity-change`/`lr-submit`/
|
|
56
|
+
* `lr-skip` events with the run id attached; `<lr-diff-view>` compares the selected run's output
|
|
57
|
+
* against `baselineRunId`'s output -- `layout="split"` once they resolve to two distinct runs,
|
|
58
|
+
* `layout="unified"` (an all-equal diff, i.e. a plain read of the one run's output) once they
|
|
59
|
+
* resolve to the same run or no baseline resolves at all -- so there is no separate un-diffed
|
|
60
|
+
* "just show the output" code path to keep in sync with the comparison one.
|
|
61
|
+
*
|
|
62
|
+
* `selectedRunId`/`baselineRunId` are both fully controlled: this component never mutates either
|
|
63
|
+
* property itself. Each one falls back to `runs[0]?.id` purely for *rendering* whenever the
|
|
64
|
+
* property is unset, so the component renders something useful with zero configuration beyond
|
|
65
|
+
* `runs` -- but moving the selection for real requires the host to set `selectedRunId` in
|
|
66
|
+
* response to `lr-run-select`, the same shape `<lr-rubric-form>`'s own `itemId` already uses. A
|
|
67
|
+
* `selectedRunId`/`baselineRunId` that doesn't match any entry in `runs` degrades gracefully: the
|
|
68
|
+
* comparison grid still renders, and the review/diff sections simply don't (no error, no crash).
|
|
69
|
+
*
|
|
70
|
+
* @customElement lr-eval-result
|
|
71
|
+
* @event lr-run-select - A comparison-grid row was activated. `detail: { runId }`.
|
|
72
|
+
* @event lr-review-input - The selected run's rubric value changed. `detail: { runId, value }`.
|
|
73
|
+
* @event lr-review-validity-change - The selected run's rubric validity changed. `detail: { runId, valid, errors }`.
|
|
74
|
+
* @event lr-review-submit - The selected run's rubric form was submitted. `detail: { runId, value }`.
|
|
75
|
+
* @event lr-review-skip - The selected run's rubric form was skipped (`reviewSkippable` only). `detail: { runId }`.
|
|
76
|
+
* @csspart base - The outer wrapper.
|
|
77
|
+
* @csspart empty - The message shown when `runs` has no entries.
|
|
78
|
+
* @csspart grid - The `<lr-data-grid>` comparison table.
|
|
79
|
+
* @csspart review - The `<lr-rubric-form>` scoring the selected run.
|
|
80
|
+
* @csspart diff - The wrapper around the diff caption and `<lr-diff-view>`.
|
|
81
|
+
* @csspart diff-labels - The caption row naming the two compared runs (only rendered while comparing two distinct runs).
|
|
82
|
+
* @csspart diff-label-old - The baseline run's caption.
|
|
83
|
+
* @csspart diff-label-new - The selected run's caption.
|
|
84
|
+
* @csspart diff-view - The `<lr-diff-view>` comparing the baseline and selected runs' output.
|
|
85
|
+
*/
|
|
86
|
+
export declare class LyraEvalResult extends LyraElement<LyraEvalResultEventMap> {
|
|
87
|
+
static styles: import("lit").CSSResultGroup[];
|
|
88
|
+
/** The runs (one per model or prompt version) being compared for this evaluation example. */
|
|
89
|
+
runs: EvalRunResult[];
|
|
90
|
+
/** Column definitions for the comparison grid -- forwarded verbatim to `<lr-data-grid>`'s own `columns`. */
|
|
91
|
+
columns: DataGridColumn<EvalRunResult>[];
|
|
92
|
+
/** Rubric field definitions for the review form -- forwarded verbatim to `<lr-rubric-form>`'s own `keys`. */
|
|
93
|
+
rubricKeys: RubricKey[];
|
|
94
|
+
/** The run currently open for review, and the diff's "new" side. Falls back to `runs[0]?.id` when unset. */
|
|
95
|
+
selectedRunId: string;
|
|
96
|
+
/** The run compared against, and the diff's "old" side. Falls back to `runs[0]?.id` when unset. */
|
|
97
|
+
baselineRunId: string;
|
|
98
|
+
/** Shows a Skip control on the review form (forwarded to `<lr-rubric-form>`'s own `skippable`). */
|
|
99
|
+
reviewSkippable: boolean;
|
|
100
|
+
/** Disables the review form's controls. The comparison grid stays interactive (selecting a run to inspect is not a mutation). */
|
|
101
|
+
disabled: boolean;
|
|
102
|
+
private get effectiveSelectedRunId();
|
|
103
|
+
private get selectedRun();
|
|
104
|
+
private get effectiveBaselineRunId();
|
|
105
|
+
private get baselineRun();
|
|
106
|
+
private renderReview;
|
|
107
|
+
private renderDiff;
|
|
108
|
+
render(): TemplateResult;
|
|
109
|
+
}
|
|
110
|
+
declare global {
|
|
111
|
+
interface HTMLElementTagNameMap {
|
|
112
|
+
'lr-eval-result': LyraEvalResult;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
//# sourceMappingURL=eval-result.class.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eval-result.class.d.ts","sourceRoot":"","sources":["../../../src/components/eval-result/eval-result.class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,qCAAqC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