@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,329 @@
|
|
|
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, query } from 'lit/decorators.js';
|
|
9
|
+
import { LyraElement } from '../../internal/lyra-element.js';
|
|
10
|
+
import { finiteCount } from '../../internal/numbers.js';
|
|
11
|
+
import '../live-region/live-region.js';
|
|
12
|
+
import '../progress/progress-bar.js';
|
|
13
|
+
import '../empty/empty.js';
|
|
14
|
+
import '../details/details.js';
|
|
15
|
+
import '../badge/badge.js';
|
|
16
|
+
import '../markdown/markdown.js';
|
|
17
|
+
import '../code-block/code-block.js';
|
|
18
|
+
import '../grounding-summary/grounding-summary.js';
|
|
19
|
+
import '../tool-timeline/tool-timeline.js';
|
|
20
|
+
import { styles } from './evaluation-run.styles.js';
|
|
21
|
+
/** Badge tone per `AgentStatusKind` -- mirrors `<lr-span-waterfall>`'s own status-to-tone
|
|
22
|
+
* mapping's polarity (success/danger/warning/brand/neutral), extended for the three states
|
|
23
|
+
* `AgentStatus` has that a single span's own narrower status vocabulary doesn't. */
|
|
24
|
+
const STATUS_VARIANT = {
|
|
25
|
+
idle: 'neutral',
|
|
26
|
+
running: 'brand',
|
|
27
|
+
'waiting-input': 'warning',
|
|
28
|
+
'waiting-approval': 'warning',
|
|
29
|
+
done: 'success',
|
|
30
|
+
error: 'danger',
|
|
31
|
+
cancelled: 'neutral',
|
|
32
|
+
};
|
|
33
|
+
const RUNNING_ERROR_KINDS = ['running', 'error'];
|
|
34
|
+
/** The subset of `AgentStatusKind` that marks an example as no longer in flight -- counted
|
|
35
|
+
* against the batch's own `total` for the progress bar/summary, regardless of whether the
|
|
36
|
+
* outcome was a success. */
|
|
37
|
+
function isTerminal(kind) {
|
|
38
|
+
return kind === 'done' || kind === 'error' || kind === 'cancelled';
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* `<lr-evaluation-run>` — an evaluation batch's live progress: an overall `<lr-progress-bar>`
|
|
42
|
+
* counting terminal (done/error/cancelled) examples against the batch total, plus one
|
|
43
|
+
* `<lr-details>` disclosure per example showing its input/output (`<lr-markdown>` or
|
|
44
|
+
* `<lr-code-block>`, per `inputFormat`/`outputFormat`), a `<lr-grounding-summary>` when the
|
|
45
|
+
* example carries a `GroundingAssessment`, and a `<lr-tool-timeline>` when it carries
|
|
46
|
+
* `toolTrace` entries. Controlled: `examples` mirrors this package's other data-driven
|
|
47
|
+
* components' own convention (a plain prop the host replaces wholesale to update, never mutated
|
|
48
|
+
* in place).
|
|
49
|
+
*
|
|
50
|
+
* Nested-component events that need per-example correlation are intercepted and re-emitted under
|
|
51
|
+
* this component's own name with the originating example's `id` folded into `detail` (matching
|
|
52
|
+
* `<lr-tool-timeline>`'s own precedent of extending a shared `*EventDetail` type from
|
|
53
|
+
* `src/ai/types.ts` rather than inventing a divergent shape) -- a host listening at this
|
|
54
|
+
* component's boundary never needs to walk the DOM to find out which example a nested selection
|
|
55
|
+
* or approval decision came from.
|
|
56
|
+
*
|
|
57
|
+
* @customElement lr-evaluation-run
|
|
58
|
+
* @event lr-example-toggle - An example's disclosure was expanded or collapsed. `detail: { id,
|
|
59
|
+
* expanded }`.
|
|
60
|
+
* @event lr-example-citation-select - An evidence citation in a nested `<lr-grounding-summary>`
|
|
61
|
+
* was activated. `detail: { exampleId, citation }`.
|
|
62
|
+
* @event lr-example-tool-approval-decide - A pending tool call in a nested `<lr-tool-timeline>`
|
|
63
|
+
* was approved or denied. `detail: { exampleId, invocationId, approved, args? }`.
|
|
64
|
+
* @csspart base - The root wrapper.
|
|
65
|
+
* @csspart header - The batch-progress header row.
|
|
66
|
+
* @csspart header-label - The run's label, defaulting to a localized "Evaluation run".
|
|
67
|
+
* @csspart progress - The batch `<lr-progress-bar>`.
|
|
68
|
+
* @csspart summary - The "N of M examples complete" text.
|
|
69
|
+
* @csspart counts - Wrapper around the running/failed count badges.
|
|
70
|
+
* @csspart count - One count badge; carries `data-kind="running"|"error"`.
|
|
71
|
+
* @csspart examples - Wrapper around the per-example `<lr-details>` rows.
|
|
72
|
+
* @csspart example - One example's `<lr-details>` row; carries `data-status` (the example's
|
|
73
|
+
* `status.kind`).
|
|
74
|
+
* @csspart example-summary - The wrapper around an example's label and status badge, in the
|
|
75
|
+
* `<lr-details>` `summary` slot.
|
|
76
|
+
* @csspart example-label - An example's label text.
|
|
77
|
+
* @csspart example-status - An example's status badge.
|
|
78
|
+
* @csspart input-section - Wrapper around an example's input heading + rendered content.
|
|
79
|
+
* @csspart output-section - Wrapper around an example's output heading + rendered content.
|
|
80
|
+
* @csspart grounding-section - Wrapper around an example's `<lr-grounding-summary>`, only
|
|
81
|
+
* rendered when the example carries a `grounding` assessment.
|
|
82
|
+
* @csspart tool-trace-section - Wrapper around an example's `<lr-tool-timeline>`, only rendered
|
|
83
|
+
* when the example carries non-empty `toolTrace` entries.
|
|
84
|
+
* @csspart section-heading - The heading text inside any of the four sections above.
|
|
85
|
+
* @csspart input - The rendered `<lr-markdown>`/`<lr-code-block>` for an example's input.
|
|
86
|
+
* @csspart output - The rendered `<lr-markdown>`/`<lr-code-block>` for an example's output.
|
|
87
|
+
* @csspart grounding-summary - The nested `<lr-grounding-summary>` for an example's grounding
|
|
88
|
+
* assessment.
|
|
89
|
+
* @csspart tool-trace - The nested `<lr-tool-timeline>` for an example's tool calls.
|
|
90
|
+
* @csspart empty - The empty-state message shown when `examples` is empty.
|
|
91
|
+
* @csspart live-region - The internal status-announcement live region.
|
|
92
|
+
*/
|
|
93
|
+
export class LyraEvaluationRun extends LyraElement {
|
|
94
|
+
constructor() {
|
|
95
|
+
super(...arguments);
|
|
96
|
+
/** The batch's examples so far. Controlled -- never mutated by this component; pass a new array
|
|
97
|
+
* to update it (e.g. as each example finishes, or as the whole batch streams in). */
|
|
98
|
+
this.examples = [];
|
|
99
|
+
/** The batch's expected total example count. `null` (the default) derives it from
|
|
100
|
+
* `examples.length` instead -- the common case once every result has already arrived; set this
|
|
101
|
+
* explicitly while a batch is still streaming in and the eventual total is already known ahead
|
|
102
|
+
* of every example actually completing. */
|
|
103
|
+
this.total = null;
|
|
104
|
+
/** Header label and accessible-name source. Falls back to a localized "Evaluation run" when
|
|
105
|
+
* unset. */
|
|
106
|
+
this.label = '';
|
|
107
|
+
this.expandedIds = new Set();
|
|
108
|
+
/** `true` until the first completed update -- gates the status-change announcements below so a
|
|
109
|
+
* freshly-mounted run never announces whatever statuses its very first `examples` happens to
|
|
110
|
+
* carry (mirrors `<lr-task-list>`'s identical `isMounting` gate). */
|
|
111
|
+
this.isMounting = true;
|
|
112
|
+
/** Last-seen `status.kind` per example id, diffed against the incoming `examples` on every
|
|
113
|
+
* update to decide what to announce. */
|
|
114
|
+
this.previousStatusById = new Map();
|
|
115
|
+
}
|
|
116
|
+
static { this.styles = [LyraElement.styles, styles]; }
|
|
117
|
+
updated(changed) {
|
|
118
|
+
const wasMounting = this.isMounting;
|
|
119
|
+
this.isMounting = false;
|
|
120
|
+
if (changed.has('examples'))
|
|
121
|
+
this.diffAndAnnounce(wasMounting);
|
|
122
|
+
}
|
|
123
|
+
statusCounts() {
|
|
124
|
+
const counts = {};
|
|
125
|
+
for (const example of this.examples)
|
|
126
|
+
counts[example.status.kind] = (counts[example.status.kind] ?? 0) + 1;
|
|
127
|
+
return counts;
|
|
128
|
+
}
|
|
129
|
+
exampleLabel(example, index) {
|
|
130
|
+
return example.label || this.localize('evaluationRunExampleLabel', undefined, { index: index + 1 });
|
|
131
|
+
}
|
|
132
|
+
statusLabel(kind) {
|
|
133
|
+
switch (kind) {
|
|
134
|
+
case 'idle':
|
|
135
|
+
return this.localize('evaluationRunStatusIdle');
|
|
136
|
+
case 'running':
|
|
137
|
+
return this.localize('statusRunning');
|
|
138
|
+
case 'waiting-input':
|
|
139
|
+
return this.localize('evaluationRunStatusWaitingInput');
|
|
140
|
+
case 'waiting-approval':
|
|
141
|
+
return this.localize('evaluationRunStatusWaitingApproval');
|
|
142
|
+
case 'done':
|
|
143
|
+
return this.localize('statusSuccess');
|
|
144
|
+
case 'error':
|
|
145
|
+
return this.localize('statusError');
|
|
146
|
+
case 'cancelled':
|
|
147
|
+
return this.localize('evaluationRunStatusCancelled');
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
diffAndAnnounce(firstSight) {
|
|
151
|
+
const region = this.liveRegion;
|
|
152
|
+
const nextStatusById = new Map();
|
|
153
|
+
this.examples.forEach((example, index) => {
|
|
154
|
+
nextStatusById.set(example.id, example.status.kind);
|
|
155
|
+
if (firstSight || !region)
|
|
156
|
+
return;
|
|
157
|
+
const previous = this.previousStatusById.get(example.id);
|
|
158
|
+
const kind = example.status.kind;
|
|
159
|
+
if (previous === undefined || previous === kind)
|
|
160
|
+
return;
|
|
161
|
+
const label = this.exampleLabel(example, index);
|
|
162
|
+
// Every branch forces an immediate flush -- these are discrete lifecycle transitions, not a
|
|
163
|
+
// high-frequency stream where throttling matters (mirrors <lr-task-list>'s identical choice).
|
|
164
|
+
switch (kind) {
|
|
165
|
+
case 'running':
|
|
166
|
+
region.mode = 'polite';
|
|
167
|
+
region.announce(this.localize('evaluationRunExampleStartedAnnounce', undefined, { label }), { force: true });
|
|
168
|
+
break;
|
|
169
|
+
case 'done':
|
|
170
|
+
region.mode = 'polite';
|
|
171
|
+
region.announce(this.localize('evaluationRunExampleCompletedAnnounce', undefined, { label }), { force: true });
|
|
172
|
+
break;
|
|
173
|
+
case 'error':
|
|
174
|
+
region.mode = 'assertive';
|
|
175
|
+
region.announce(this.localize('evaluationRunExampleFailedAnnounce', undefined, { label }), { force: true });
|
|
176
|
+
break;
|
|
177
|
+
case 'cancelled':
|
|
178
|
+
region.mode = 'polite';
|
|
179
|
+
region.announce(this.localize('evaluationRunExampleCancelledAnnounce', undefined, { label }), { force: true });
|
|
180
|
+
break;
|
|
181
|
+
case 'waiting-input':
|
|
182
|
+
region.mode = 'polite';
|
|
183
|
+
region.announce(this.localize('evaluationRunExampleWaitingInputAnnounce', undefined, { label }), { force: true });
|
|
184
|
+
break;
|
|
185
|
+
case 'waiting-approval':
|
|
186
|
+
region.mode = 'polite';
|
|
187
|
+
region.announce(this.localize('evaluationRunExampleWaitingApprovalAnnounce', undefined, { label }), { force: true });
|
|
188
|
+
break;
|
|
189
|
+
case 'idle':
|
|
190
|
+
break; // Not a meaningful transition to announce -- mirrors task-list's own silence here.
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
this.previousStatusById = nextStatusById;
|
|
194
|
+
}
|
|
195
|
+
onExampleToggle(id, event) {
|
|
196
|
+
event.stopPropagation();
|
|
197
|
+
const expanded = event.detail.open;
|
|
198
|
+
const next = new Set(this.expandedIds);
|
|
199
|
+
if (expanded)
|
|
200
|
+
next.add(id);
|
|
201
|
+
else
|
|
202
|
+
next.delete(id);
|
|
203
|
+
this.expandedIds = next;
|
|
204
|
+
this.emit('lr-example-toggle', { id, expanded });
|
|
205
|
+
}
|
|
206
|
+
onCitationSelect(exampleId, event) {
|
|
207
|
+
event.stopPropagation();
|
|
208
|
+
this.emit('lr-example-citation-select', { exampleId, citation: event.detail.citation });
|
|
209
|
+
}
|
|
210
|
+
onToolApprovalDecide(exampleId, event) {
|
|
211
|
+
event.stopPropagation();
|
|
212
|
+
this.emit('lr-example-tool-approval-decide', { exampleId, ...event.detail });
|
|
213
|
+
}
|
|
214
|
+
renderContent(text, format, language, part) {
|
|
215
|
+
if (format === 'code') {
|
|
216
|
+
return html `<lr-code-block part=${part} code=${text} language=${language ?? ''}></lr-code-block>`;
|
|
217
|
+
}
|
|
218
|
+
return html `<lr-markdown part=${part} content=${text}></lr-markdown>`;
|
|
219
|
+
}
|
|
220
|
+
renderGrounding(example) {
|
|
221
|
+
return html `
|
|
222
|
+
<section part="grounding-section">
|
|
223
|
+
<h4 part="section-heading">${this.localize('evaluationRunGroundingHeading')}</h4>
|
|
224
|
+
<lr-grounding-summary
|
|
225
|
+
part="grounding-summary"
|
|
226
|
+
.assessment=${example.grounding ?? null}
|
|
227
|
+
.citations=${example.citations ?? []}
|
|
228
|
+
@lr-citation-select=${(e) => this.onCitationSelect(example.id, e)}
|
|
229
|
+
></lr-grounding-summary>
|
|
230
|
+
</section>
|
|
231
|
+
`;
|
|
232
|
+
}
|
|
233
|
+
renderToolTrace(example) {
|
|
234
|
+
return html `
|
|
235
|
+
<section part="tool-trace-section">
|
|
236
|
+
<h4 part="section-heading">${this.localize('evaluationRunToolTraceHeading')}</h4>
|
|
237
|
+
<lr-tool-timeline
|
|
238
|
+
part="tool-trace"
|
|
239
|
+
.entries=${example.toolTrace ?? []}
|
|
240
|
+
@lr-tool-approval-decide=${(e) => this.onToolApprovalDecide(example.id, e)}
|
|
241
|
+
></lr-tool-timeline>
|
|
242
|
+
</section>
|
|
243
|
+
`;
|
|
244
|
+
}
|
|
245
|
+
renderExample(example, index) {
|
|
246
|
+
const kind = example.status.kind;
|
|
247
|
+
return html `
|
|
248
|
+
<lr-details
|
|
249
|
+
part="example"
|
|
250
|
+
data-status=${kind}
|
|
251
|
+
.open=${this.expandedIds.has(example.id)}
|
|
252
|
+
@lr-toggle=${(e) => this.onExampleToggle(example.id, e)}
|
|
253
|
+
>
|
|
254
|
+
<span slot="summary" part="example-summary">
|
|
255
|
+
<span part="example-label">${this.exampleLabel(example, index)}</span>
|
|
256
|
+
<lr-badge part="example-status" variant=${STATUS_VARIANT[kind]}>${this.statusLabel(kind)}</lr-badge>
|
|
257
|
+
</span>
|
|
258
|
+
<section part="input-section">
|
|
259
|
+
<h4 part="section-heading">${this.localize('evaluationRunInputHeading')}</h4>
|
|
260
|
+
${this.renderContent(example.input, example.inputFormat, example.inputLanguage, 'input')}
|
|
261
|
+
</section>
|
|
262
|
+
<section part="output-section">
|
|
263
|
+
<h4 part="section-heading">${this.localize('evaluationRunOutputHeading')}</h4>
|
|
264
|
+
${this.renderContent(example.output, example.outputFormat, example.outputLanguage, 'output')}
|
|
265
|
+
</section>
|
|
266
|
+
${example.grounding ? this.renderGrounding(example) : nothing}
|
|
267
|
+
${example.toolTrace && example.toolTrace.length > 0 ? this.renderToolTrace(example) : nothing}
|
|
268
|
+
</lr-details>
|
|
269
|
+
`;
|
|
270
|
+
}
|
|
271
|
+
render() {
|
|
272
|
+
const resolvedTotal = this.total != null ? finiteCount(this.total, this.examples.length) : this.examples.length;
|
|
273
|
+
const counts = this.statusCounts();
|
|
274
|
+
const completed = this.examples.filter((example) => isTerminal(example.status.kind)).length;
|
|
275
|
+
const headerLabel = this.label || this.getAttribute('aria-label') || this.localize('evaluationRunLabel');
|
|
276
|
+
return html `
|
|
277
|
+
<div part="base" role="region" aria-label=${headerLabel}>
|
|
278
|
+
<div part="header">
|
|
279
|
+
<span part="header-label">${headerLabel}</span>
|
|
280
|
+
<lr-progress-bar
|
|
281
|
+
part="progress"
|
|
282
|
+
value=${completed}
|
|
283
|
+
max=${Math.max(resolvedTotal, 1)}
|
|
284
|
+
show-value
|
|
285
|
+
accessible-label=${this.localize('evaluationRunProgressLabel')}
|
|
286
|
+
></lr-progress-bar>
|
|
287
|
+
<span part="summary"
|
|
288
|
+
>${this.localize('evaluationRunProgressSummary', undefined, {
|
|
289
|
+
completed,
|
|
290
|
+
total: resolvedTotal,
|
|
291
|
+
})}</span
|
|
292
|
+
>
|
|
293
|
+
<span part="counts">
|
|
294
|
+
${RUNNING_ERROR_KINDS.map((kind) => {
|
|
295
|
+
const count = counts[kind] ?? 0;
|
|
296
|
+
if (count === 0)
|
|
297
|
+
return nothing;
|
|
298
|
+
const badgeVariant = kind === 'running' ? 'brand' : 'danger';
|
|
299
|
+
const text = kind === 'running'
|
|
300
|
+
? this.localize('evaluationRunRunningCount', undefined, { count })
|
|
301
|
+
: this.localize('evaluationRunFailedCount', undefined, { count });
|
|
302
|
+
return html `<lr-badge part="count" data-kind=${kind} variant=${badgeVariant}>${text}</lr-badge>`;
|
|
303
|
+
})}
|
|
304
|
+
</span>
|
|
305
|
+
</div>
|
|
306
|
+
${this.examples.length === 0
|
|
307
|
+
? html `<lr-empty part="empty" heading=${this.localize('noData')}></lr-empty>`
|
|
308
|
+
: html `<div part="examples">${this.examples.map((example, index) => this.renderExample(example, index))}</div>`}
|
|
309
|
+
</div>
|
|
310
|
+
<lr-live-region part="live-region" mode="polite"></lr-live-region>
|
|
311
|
+
`;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
__decorate([
|
|
315
|
+
property({ attribute: false })
|
|
316
|
+
], LyraEvaluationRun.prototype, "examples", void 0);
|
|
317
|
+
__decorate([
|
|
318
|
+
property({ type: Number })
|
|
319
|
+
], LyraEvaluationRun.prototype, "total", void 0);
|
|
320
|
+
__decorate([
|
|
321
|
+
property()
|
|
322
|
+
], LyraEvaluationRun.prototype, "label", void 0);
|
|
323
|
+
__decorate([
|
|
324
|
+
state()
|
|
325
|
+
], LyraEvaluationRun.prototype, "expandedIds", void 0);
|
|
326
|
+
__decorate([
|
|
327
|
+
query('lr-live-region')
|
|
328
|
+
], LyraEvaluationRun.prototype, "liveRegion", void 0);
|
|
329
|
+
//# sourceMappingURL=evaluation-run.class.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluation-run.class.js","sourceRoot":"","sources":["../../../src/components/evaluation-run/evaluation-run.class.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAA4C,MAAM,KAAK,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM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1
|
+
{"version":3,"file":"evaluation-run.js","sourceRoot":"","sources":["../../../src/components/evaluation-run/evaluation-run.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,aAAa,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluation-run.styles.d.ts","sourceRoot":"","sources":["../../../src/components/evaluation-run/evaluation-run.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,yBAsElB,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export const styles = css `
|
|
3
|
+
:host {
|
|
4
|
+
display: block;
|
|
5
|
+
}
|
|
6
|
+
[part='base'] {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
gap: var(--lr-space-m);
|
|
10
|
+
}
|
|
11
|
+
[part='header'] {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-wrap: wrap;
|
|
14
|
+
align-items: center;
|
|
15
|
+
gap: var(--lr-space-s) var(--lr-space-m);
|
|
16
|
+
padding: var(--lr-space-m);
|
|
17
|
+
border: var(--lr-border-width-thin) solid var(--lr-color-border);
|
|
18
|
+
border-radius: var(--lr-radius);
|
|
19
|
+
background: var(--lr-color-surface-raised);
|
|
20
|
+
}
|
|
21
|
+
[part='header-label'] {
|
|
22
|
+
flex: 0 0 auto;
|
|
23
|
+
font-weight: var(--lr-font-weight-semibold);
|
|
24
|
+
font-size: var(--lr-font-size-md-sm);
|
|
25
|
+
color: var(--lr-color-text);
|
|
26
|
+
}
|
|
27
|
+
[part='progress'] {
|
|
28
|
+
flex: 1 1 var(--lr-size-12rem);
|
|
29
|
+
min-inline-size: 0;
|
|
30
|
+
}
|
|
31
|
+
[part='summary'] {
|
|
32
|
+
flex: 0 0 auto;
|
|
33
|
+
font-size: var(--lr-font-size-sm);
|
|
34
|
+
color: var(--lr-color-text-quiet);
|
|
35
|
+
}
|
|
36
|
+
[part='counts'] {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex: 0 0 auto;
|
|
39
|
+
flex-wrap: wrap;
|
|
40
|
+
gap: var(--lr-space-xs);
|
|
41
|
+
}
|
|
42
|
+
[part='examples'] {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
gap: var(--lr-space-s);
|
|
46
|
+
}
|
|
47
|
+
[part='example-summary'] {
|
|
48
|
+
display: inline-flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
gap: var(--lr-space-s);
|
|
51
|
+
min-inline-size: 0;
|
|
52
|
+
}
|
|
53
|
+
[part='example-label'] {
|
|
54
|
+
min-inline-size: 0;
|
|
55
|
+
overflow-wrap: anywhere;
|
|
56
|
+
}
|
|
57
|
+
[part='input-section'],
|
|
58
|
+
[part='output-section'],
|
|
59
|
+
[part='grounding-section'],
|
|
60
|
+
[part='tool-trace-section'] {
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: column;
|
|
63
|
+
gap: var(--lr-space-xs);
|
|
64
|
+
margin-block-start: var(--lr-space-s);
|
|
65
|
+
}
|
|
66
|
+
[part='section-heading'] {
|
|
67
|
+
margin: 0;
|
|
68
|
+
font-size: var(--lr-font-size-sm);
|
|
69
|
+
font-weight: var(--lr-font-weight-semibold);
|
|
70
|
+
color: var(--lr-color-text-quiet);
|
|
71
|
+
}
|
|
72
|
+
`;
|
|
73
|
+
//# sourceMappingURL=evaluation-run.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluation-run.styles.js","sourceRoot":"","sources":["../../../src/components/evaluation-run/evaluation-run.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsExB,CAAC"}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { type TemplateResult, type PropertyValues } from 'lit';
|
|
2
|
+
import { LyraElement } from '../../internal/lyra-element.js';
|
|
3
|
+
import '../select/select.class.js';
|
|
4
|
+
import '../combobox/combobox.class.js';
|
|
5
|
+
import '../combobox/option.class.js';
|
|
6
|
+
import '../date-picker/date-input.class.js';
|
|
7
|
+
import '../chip/chip.class.js';
|
|
8
|
+
import '../chip/chip-group.class.js';
|
|
9
|
+
import '../button/button.class.js';
|
|
10
|
+
import '../spinner/spinner.class.js';
|
|
11
|
+
/** Which existing Lyra input family renders a given filter -- this component composes these,
|
|
12
|
+
* it never invents a new filter-input type of its own. `'date'` and `'date-range'` both map
|
|
13
|
+
* to `<lr-date-input>` (single vs. `mode="range"`); `'select'`/`'combobox'` map to their
|
|
14
|
+
* same-named counterparts, with `combobox`'s own `multiple` opting into a multi-value filter. */
|
|
15
|
+
export type FilterBarControlType = 'select' | 'combobox' | 'date' | 'date-range';
|
|
16
|
+
/** One closed-set choice for a `'select'`/`'combobox'` filter. */
|
|
17
|
+
export interface FilterBarOption {
|
|
18
|
+
value: string;
|
|
19
|
+
label: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* A host-declared filter: which composed control renders it, its choice set (for
|
|
23
|
+
* `select`/`combobox`), and its validation/reset defaults. `id` doubles as this filter's key in
|
|
24
|
+
* `FilterBarValue` and its `data-filter-id` anchor in the rendered DOM.
|
|
25
|
+
*/
|
|
26
|
+
export interface FilterBarFilterDefinition {
|
|
27
|
+
id: string;
|
|
28
|
+
/** Visible label, forwarded to the composed control's own `label` prop (so it renders through
|
|
29
|
+
* that control's own label/hint/error chrome) -- caller-supplied content, not routed through
|
|
30
|
+
* `this.localize()` by this component (the same "data, not UI copy" carve-out a table's own
|
|
31
|
+
* column headers get). */
|
|
32
|
+
label: string;
|
|
33
|
+
type: FilterBarControlType;
|
|
34
|
+
/** Closed choice set. Required (and meaningful) only for `'select'`/`'combobox'`; ignored for
|
|
35
|
+
* `'date'`/`'date-range'`. */
|
|
36
|
+
options?: FilterBarOption[];
|
|
37
|
+
placeholder?: string;
|
|
38
|
+
/** Opts a `'combobox'` filter into multi-value selection, mirroring `<lr-combobox>`'s own
|
|
39
|
+
* `multiple`. Ignored for every other `type`. */
|
|
40
|
+
multiple?: boolean;
|
|
41
|
+
required?: boolean;
|
|
42
|
+
/** What `reset()` restores this filter to. A filter with no `defaultValue` resets to unset
|
|
43
|
+
* (absent from the post-reset `value`) rather than to some invented empty placeholder. */
|
|
44
|
+
defaultValue?: string | string[];
|
|
45
|
+
/** ISO `YYYY-MM-DD` lower bound, forwarded to `<lr-date-input>`'s own `min`. `'date'`/`'date-range'` only. */
|
|
46
|
+
min?: string;
|
|
47
|
+
/** ISO `YYYY-MM-DD` upper bound, forwarded to `<lr-date-input>`'s own `max`. `'date'`/`'date-range'` only. */
|
|
48
|
+
max?: string;
|
|
49
|
+
}
|
|
50
|
+
/** One filter's current value: a single string (`'select'`, `'date'`, a non-multiple
|
|
51
|
+
* `'combobox'`), a string array (a `multiple` `'combobox'`), or `undefined`/`''`/`[]` for
|
|
52
|
+
* "unset". `'date-range'` uses `<lr-date-input>`'s own single-string range shape
|
|
53
|
+
* (`"YYYY-MM-DD/YYYY-MM-DD"`), not a two-element array. */
|
|
54
|
+
export type FilterBarFieldValue = string | string[] | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* The whole filter bar's current state: a plain, JSON-serializable object keyed by
|
|
57
|
+
* `FilterBarFilterDefinition.id`. This is the entire URL-querystring/app-state serialization
|
|
58
|
+
* contract -- this component only reads and writes plain data through `value`, and never touches
|
|
59
|
+
* `location`/`history`/storage itself; the host owns turning this object into (and back out of)
|
|
60
|
+
* a querystring, matching every other Lyra "controlled" component's convention.
|
|
61
|
+
*/
|
|
62
|
+
export type FilterBarValue = Record<string, FilterBarFieldValue>;
|
|
63
|
+
export interface FilterBarInputDetail {
|
|
64
|
+
/** The full current value of every filter, not just the one that changed. */
|
|
65
|
+
value: FilterBarValue;
|
|
66
|
+
/** The filter that changed, or `undefined` when every filter changed at once (a `reset()`). */
|
|
67
|
+
filterId?: string;
|
|
68
|
+
}
|
|
69
|
+
export interface FilterBarValidityDetail {
|
|
70
|
+
valid: boolean;
|
|
71
|
+
/** Filter ids currently failing their own `required` check. */
|
|
72
|
+
invalidFilterIds: string[];
|
|
73
|
+
}
|
|
74
|
+
export interface FilterBarResetDetail {
|
|
75
|
+
value: FilterBarValue;
|
|
76
|
+
}
|
|
77
|
+
export interface LyraFilterBarEventMap {
|
|
78
|
+
'lr-input': CustomEvent<FilterBarInputDetail>;
|
|
79
|
+
'lr-validity-change': CustomEvent<FilterBarValidityDetail>;
|
|
80
|
+
'lr-reset': CustomEvent<FilterBarResetDetail>;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* `<lr-filter-bar>` — a row of dashboard filters, each declared by the host (`filters`) rather
|
|
84
|
+
* than invented by this component: every filter composes an existing Lyra input --
|
|
85
|
+
* `<lr-select>`/`<lr-combobox>` for closed choice sets, `<lr-date-input>` (single or `mode="range"`)
|
|
86
|
+
* for dates -- plus a `<lr-chip-group>` of removable `<lr-chip>`s summarizing the currently-active
|
|
87
|
+
* filters, an `<lr-button>` that resets every filter, and (while `loading`) an `<lr-spinner>`
|
|
88
|
+
* status indicator.
|
|
89
|
+
*
|
|
90
|
+
* Controlled, like every other Lyra data component: `value` is a plain, JSON-serializable object
|
|
91
|
+
* (`FilterBarValue`) the host reads/writes directly -- this component never touches
|
|
92
|
+
* `location`/`history`/storage itself, so turning `value` into (and back out of) a URL
|
|
93
|
+
* querystring or an app state store is entirely the host's own concern. Every edit -- picking an
|
|
94
|
+
* option, committing a date, removing an active-filter chip, or clicking reset -- goes through
|
|
95
|
+
* the same `setFilterValue()` path and emits a single `lr-input` carrying the *full* resulting
|
|
96
|
+
* `value`, not just the changed filter's own value, mirroring `<lr-tool-param-form>`'s identical
|
|
97
|
+
* "always the whole object" event contract.
|
|
98
|
+
*
|
|
99
|
+
* Validation is scoped to each filter definition's own `required` flag: `invalidFilterIds`/
|
|
100
|
+
* `checkValidity()` are always live (plain getters over `filters`/`value`, not cached), and
|
|
101
|
+
* `reportValidity()` additionally reveals every currently-invalid filter's inline error (rendered
|
|
102
|
+
* by that filter's own composed control, via its `errorText`/`required` props -- this component
|
|
103
|
+
* never renders a second, duplicate label/hint/error chrome of its own around an already-chromed
|
|
104
|
+
* control) the same way a blur naturally would. `lr-validity-change` fires whenever the computed
|
|
105
|
+
* `{ valid, invalidFilterIds }` actually changes.
|
|
106
|
+
*
|
|
107
|
+
* Deliberately not form-associated: a dashboard filter bar's state is not a submitted form field,
|
|
108
|
+
* and every value it holds already round-trips through `value` directly -- see `disabled` below,
|
|
109
|
+
* a plain property with no `<fieldset disabled>` cascade, for the same reason.
|
|
110
|
+
*
|
|
111
|
+
* @customElement lr-filter-bar
|
|
112
|
+
* @event lr-input - A filter's value changed (including a chip removal or `reset()`).
|
|
113
|
+
* `detail: { value, filterId }` -- `value` is always the complete object; `filterId` is the
|
|
114
|
+
* one filter that changed, or `undefined` for a `reset()`.
|
|
115
|
+
* @event lr-validity-change - The computed `{ valid, invalidFilterIds }` changed.
|
|
116
|
+
* @event lr-reset - `reset()` ran (via the reset button or a direct call). `detail: { value }`.
|
|
117
|
+
* @csspart base - The root `role="group"` wrapper.
|
|
118
|
+
* @csspart controls - The row holding every filter control, the reset button, and the loading status.
|
|
119
|
+
* @csspart filter-control - One filter's composed `<lr-select>`/`<lr-combobox>`/`<lr-date-input>`.
|
|
120
|
+
* @csspart reset-button - The reset `<lr-button>`.
|
|
121
|
+
* @csspart status - The loading `<lr-spinner>`, only rendered while `loading`.
|
|
122
|
+
* @csspart active-filters - The `role="group"` wrapper around the active-filter chip row, only rendered while any filter is set.
|
|
123
|
+
* @csspart chips - The `<lr-chip-group>` inside `active-filters`.
|
|
124
|
+
* @csspart chip - One active-filter `<lr-chip>`.
|
|
125
|
+
*/
|
|
126
|
+
export declare class LyraFilterBar extends LyraElement<LyraFilterBarEventMap> {
|
|
127
|
+
static styles: import("lit").CSSResultGroup[];
|
|
128
|
+
static properties: {
|
|
129
|
+
filters: {
|
|
130
|
+
attribute: boolean;
|
|
131
|
+
noAccessor: boolean;
|
|
132
|
+
};
|
|
133
|
+
value: {
|
|
134
|
+
attribute: boolean;
|
|
135
|
+
noAccessor: boolean;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
/** Accessible name for the root `role="group"` wrapper. A plain `aria-label` attribute on the
|
|
139
|
+
* host itself is honored as a fallback when this is left unset, matching `<lr-control-group>`. */
|
|
140
|
+
label: string;
|
|
141
|
+
/** Disables every composed filter control and the reset button. Plain property -- see the
|
|
142
|
+
* class doc for why this component isn't form-associated / fieldset-cascaded. */
|
|
143
|
+
disabled: boolean;
|
|
144
|
+
/** Shows the `status` spinner. Purely presentational -- filters stay editable while `loading`,
|
|
145
|
+
* since a host typically wants a user to keep refining filters while a previous query is
|
|
146
|
+
* still in flight; only the reset button (which would otherwise race a fresh, unrequeried
|
|
147
|
+
* reset against an in-flight fetch for the *previous* value) is disabled by it. */
|
|
148
|
+
loading: boolean;
|
|
149
|
+
/** Filters that have been visited (focusout'd) at least once -- gates only the *visual*
|
|
150
|
+
* inline-error presentation on each composed control, matching every other form control in
|
|
151
|
+
* this library (`lr-select`/`lr-combobox`/`lr-tool-param-form` all avoid flashing red before
|
|
152
|
+
* the user has touched anything). */
|
|
153
|
+
private touchedFilters;
|
|
154
|
+
private _filters;
|
|
155
|
+
private _value;
|
|
156
|
+
private lastValidityKey;
|
|
157
|
+
/** Host-declared filter definitions, rendered in array order. `null`/`undefined` is treated as
|
|
158
|
+
* an empty array rather than throwing. */
|
|
159
|
+
get filters(): FilterBarFilterDefinition[];
|
|
160
|
+
set filters(next: FilterBarFilterDefinition[]);
|
|
161
|
+
/** The current value of every filter -- see the class doc's serialization contract. Always a
|
|
162
|
+
* fresh shallow copy; mutating a returned object does not affect this component's own state. */
|
|
163
|
+
get value(): FilterBarValue;
|
|
164
|
+
set value(next: FilterBarValue);
|
|
165
|
+
/** Whether any filter currently has a value. Also what gates the reset button's own disabled
|
|
166
|
+
* state and whether the `active-filters` chip row renders at all. */
|
|
167
|
+
get hasActiveFilters(): boolean;
|
|
168
|
+
/** Filter ids currently failing their own `required` check -- a filter is invalid only when
|
|
169
|
+
* `required` is set and its value is unset (see `isSet`). Always live, never cached. */
|
|
170
|
+
get invalidFilterIds(): string[];
|
|
171
|
+
/** Whether every `required` filter currently has a value. Never reveals inline errors on its
|
|
172
|
+
* own -- see `reportValidity()`. */
|
|
173
|
+
checkValidity(): boolean;
|
|
174
|
+
/** Like `checkValidity()`, but also marks every currently-invalid filter as touched so its
|
|
175
|
+
* inline error becomes visible immediately -- the hook a consumer's own "Apply"/search action
|
|
176
|
+
* should call right before acting, mirroring `<lr-tool-param-form>`'s identical method. */
|
|
177
|
+
reportValidity(): boolean;
|
|
178
|
+
/** Resets every filter to its own `defaultValue` (or unset, if it declared none), clears
|
|
179
|
+
* touched state, and emits both `lr-input` (the standard "value changed" event, so a listener
|
|
180
|
+
* that only listens for that still observes the reset) and `lr-reset` -- mirrors
|
|
181
|
+
* `<lr-combobox>`'s own `clear()`, which likewise emits its standard value events *plus* a
|
|
182
|
+
* dedicated `lr-clear`. */
|
|
183
|
+
reset(): void;
|
|
184
|
+
private get resetValue();
|
|
185
|
+
private setFilterValue;
|
|
186
|
+
private markTouched;
|
|
187
|
+
private onControlChange;
|
|
188
|
+
private clearFilter;
|
|
189
|
+
private displayValueFor;
|
|
190
|
+
private get activeEntries();
|
|
191
|
+
protected updated(changed: PropertyValues): void;
|
|
192
|
+
private renderControl;
|
|
193
|
+
render(): TemplateResult;
|
|
194
|
+
}
|
|
195
|
+
declare global {
|
|
196
|
+
interface HTMLElementTagNameMap {
|
|
197
|
+
'lr-filter-bar': LyraFilterBar;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
//# sourceMappingURL=filter-bar.class.d.ts.map
|