@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,148 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import { LyraElement } from '../../internal/lyra-element.js';
|
|
3
|
+
import type { DocumentRef } from '../../ai/types.js';
|
|
4
|
+
import type { LyraEntity } from '../entity-card/entity-card.class.js';
|
|
5
|
+
import '../breadcrumb/breadcrumb.class.js';
|
|
6
|
+
import '../breadcrumb/breadcrumb-item.class.js';
|
|
7
|
+
import '../tabs/tabs.class.js';
|
|
8
|
+
import '../document-preview/document-preview.class.js';
|
|
9
|
+
import '../entity-card/entity-card.class.js';
|
|
10
|
+
import '../source-card/source-card.class.js';
|
|
11
|
+
import '../empty/empty.class.js';
|
|
12
|
+
/** The exact `lr-graph.nodeTypes` entry shape -- see `lr-entity-card`'s, `lr-provenance-panel`'s,
|
|
13
|
+
* and `lr-entity-dossier`'s identical local aliases for why this isn't imported from `lr-graph`
|
|
14
|
+
* itself. Shared verbatim here since it's forwarded to `lr-entity-card` below with no mapping. */
|
|
15
|
+
type NodeTypeStyle = {
|
|
16
|
+
id: string;
|
|
17
|
+
label: string;
|
|
18
|
+
color?: string;
|
|
19
|
+
shape?: 'circle' | 'square' | 'diamond';
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* One "evidence" item in a drilldown node -- a citation/source excerpt. Field names deliberately
|
|
23
|
+
* mirror `lr-source-card`'s own `source-id`/`title`/`page`/`href` properties and `excerpt`/`full`
|
|
24
|
+
* slots field-for-field, so an item composes directly into a card with no transform.
|
|
25
|
+
*/
|
|
26
|
+
export interface DrilldownEvidenceItem {
|
|
27
|
+
id: string;
|
|
28
|
+
title: string;
|
|
29
|
+
page?: string | number;
|
|
30
|
+
href?: string;
|
|
31
|
+
/** Rendered into the card's always-visible `excerpt` slot. */
|
|
32
|
+
excerpt?: string;
|
|
33
|
+
/** Rendered into the card's collapsible `full` slot. Omitted entirely when unset, matching
|
|
34
|
+
* `lr-source-card`'s own "no toggle when there's no full slot content" behavior. */
|
|
35
|
+
full?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* One level of a drilldown path: the datum that was drilled into, plus whatever related content
|
|
39
|
+
* is available for it, grouped into up to three data-driven categories -- evidence (rendered via
|
|
40
|
+
* `lr-source-card`), documents (rendered via `lr-document-preview`, `DocumentRef` reused verbatim
|
|
41
|
+
* from `src/ai/types.ts` since its `name`/`mimeType` fields already match that component's own
|
|
42
|
+
* `filename`/`mime-type` field-for-field), and entities (rendered via `lr-entity-card`, `LyraEntity`
|
|
43
|
+
* reused verbatim from that component). A fourth category, agent runs, has no dedicated
|
|
44
|
+
* "render one run" primitive yet in this library -- see the `runs` slot on `<lr-drilldown-panel>`
|
|
45
|
+
* itself, which every node currently shares (see the class doc's "Agent runs" section).
|
|
46
|
+
*/
|
|
47
|
+
export interface DrilldownNode {
|
|
48
|
+
id: string;
|
|
49
|
+
/** Breadcrumb label for this level. */
|
|
50
|
+
label: string;
|
|
51
|
+
evidence?: DrilldownEvidenceItem[];
|
|
52
|
+
documents?: DocumentRef[];
|
|
53
|
+
entities?: LyraEntity[];
|
|
54
|
+
}
|
|
55
|
+
/** `detail` for `lr-drilldown-navigate`. */
|
|
56
|
+
export interface DrilldownNavigateDetail {
|
|
57
|
+
id: string;
|
|
58
|
+
index: number;
|
|
59
|
+
}
|
|
60
|
+
export interface LyraDrilldownPanelEventMap {
|
|
61
|
+
'lr-drilldown-navigate': CustomEvent<DrilldownNavigateDetail>;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* `<lr-drilldown-panel>` — controlled navigation from a chart/table datum to its related evidence,
|
|
65
|
+
* documents, entities, or agent runs. This is a navigation *shell*: it never re-renders any of that
|
|
66
|
+
* content itself, only a breadcrumb trail (`lr-breadcrumb`) over `path` plus, for whichever
|
|
67
|
+
* categories the current (last) node actually has content for, the one existing primitive that
|
|
68
|
+
* already renders that content type (`lr-source-card` for evidence, `lr-document-preview` for
|
|
69
|
+
* documents, `lr-entity-card` for entities) -- wrapped in an `lr-tabs` strip only when more than one
|
|
70
|
+
* category has content, so a single-category node renders that category directly with no tab
|
|
71
|
+
* chrome.
|
|
72
|
+
*
|
|
73
|
+
* Controlled, like every other Lyra component: `path` is the full breadcrumb trail (oldest first,
|
|
74
|
+
* current node last) and is owned entirely by the host. Activating a *non-current* breadcrumb step
|
|
75
|
+
* fires `lr-drilldown-navigate` with that step's `id`/`index` — this component never mutates `path`
|
|
76
|
+
* itself; a listener typically responds with `this.path = this.path.slice(0, e.detail.index + 1)`
|
|
77
|
+
* (truncate back to that level) or replaces `path` outright with newly fetched levels. An empty
|
|
78
|
+
* `path` renders the shared `lr-empty` "no selection" state; a non-empty `path` whose current node
|
|
79
|
+
* has no content in any category renders the shared `lr-empty` `noData` state instead.
|
|
80
|
+
*
|
|
81
|
+
* **Agent runs.** Unlike evidence/documents/entities, this library has no existing "render one
|
|
82
|
+
* agent run" primitive yet (a future orchestration-level component, not part of this layer, is the
|
|
83
|
+
* natural home for that once it exists) — so, rather than inventing bespoke run-rendering here, the
|
|
84
|
+
* `runs` slot is this component's escape hatch: whatever a host projects into it renders as the
|
|
85
|
+
* "Agent runs" category tab (shown only while the slot actually has assigned content), exactly the
|
|
86
|
+
* same tradeoff `<lr-document-preview>`'s own `unsupported` slot makes. Because slot content is
|
|
87
|
+
* ordinary light DOM, not part of the `path` data model, a host drilling into different agent-run
|
|
88
|
+
* content per level re-projects new content into the slot whenever the current node changes — the
|
|
89
|
+
* same thing a `<lr-document-preview>` consumer already does for its `unsupported` slot.
|
|
90
|
+
*
|
|
91
|
+
* @customElement lr-drilldown-panel
|
|
92
|
+
* @slot runs - Host-rendered agent-run content for the current node's "Agent runs" category — see
|
|
93
|
+
* the class doc's "Agent runs" section. The category (and its tab, once more than one category is
|
|
94
|
+
* present) only appears while this slot has assigned content.
|
|
95
|
+
* @event lr-drilldown-navigate - A non-current breadcrumb step was activated. `detail: { id, index }`.
|
|
96
|
+
* @csspart base - The root wrapper.
|
|
97
|
+
* @csspart breadcrumb - The nested `lr-breadcrumb` trail, hidden entirely while `path` is empty.
|
|
98
|
+
* @csspart breadcrumb-item - One nested `lr-breadcrumb-item`.
|
|
99
|
+
* @csspart breadcrumb-button - The clickable label of a non-current breadcrumb step.
|
|
100
|
+
* @csspart content - The wrapper around the current node's category content (or an empty state).
|
|
101
|
+
* @csspart tabs - The nested `lr-tabs` strip, only rendered when the current node has content in
|
|
102
|
+
* more than one category.
|
|
103
|
+
* @csspart category - The wrapper around one category's rendered items — used both as the sole
|
|
104
|
+
* direct child of `content` (single-category node) and inside each `lr-tabs` panel (multi-category
|
|
105
|
+
* node).
|
|
106
|
+
* @csspart evidence-item - One nested `lr-source-card`.
|
|
107
|
+
* @csspart document-item - One nested `lr-document-preview`.
|
|
108
|
+
* @csspart entity-item - One nested `lr-entity-card`.
|
|
109
|
+
* @csspart empty - The empty state, shown when `path` is empty or the current node has no content
|
|
110
|
+
* in any category.
|
|
111
|
+
*/
|
|
112
|
+
export declare class LyraDrilldownPanel extends LyraElement<LyraDrilldownPanelEventMap> {
|
|
113
|
+
static styles: import("lit").CSSResultGroup[];
|
|
114
|
+
/** The full breadcrumb trail, oldest first, current node last. Host-owned — see the class doc. */
|
|
115
|
+
path: DrilldownNode[];
|
|
116
|
+
/** `lr-graph.nodeTypes` pass-through, forwarded to every nested `lr-entity-card` so each
|
|
117
|
+
* entity's type badge resolves identically to however a paired graph view resolves it. */
|
|
118
|
+
types: NodeTypeStyle[];
|
|
119
|
+
/** Forwarded to every nested `lr-entity-card`'s own `communityLabel`. */
|
|
120
|
+
communityLabel: string;
|
|
121
|
+
/** Forwarded to every nested `lr-entity-card`'s own `showFocusButton`. */
|
|
122
|
+
showFocusButton: boolean;
|
|
123
|
+
/** Accessible name forwarded to the internal `lr-tabs` strip (only rendered while the current
|
|
124
|
+
* node has more than one populated category). Unset, the tab strip renders without an
|
|
125
|
+
* `aria-label`, matching `lr-tabs`' own unset-default behavior. */
|
|
126
|
+
accessibleLabel: string | null;
|
|
127
|
+
private hasRunsSlot;
|
|
128
|
+
private mutationObserver?;
|
|
129
|
+
connectedCallback(): void;
|
|
130
|
+
disconnectedCallback(): void;
|
|
131
|
+
private syncRunsSlot;
|
|
132
|
+
private get currentNode();
|
|
133
|
+
private navigateTo;
|
|
134
|
+
private renderEvidence;
|
|
135
|
+
private renderDocuments;
|
|
136
|
+
private renderEntities;
|
|
137
|
+
private categoriesFor;
|
|
138
|
+
private renderBreadcrumb;
|
|
139
|
+
private renderContent;
|
|
140
|
+
render(): TemplateResult;
|
|
141
|
+
}
|
|
142
|
+
declare global {
|
|
143
|
+
interface HTMLElementTagNameMap {
|
|
144
|
+
'lr-drilldown-panel': LyraDrilldownPanel;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
export {};
|
|
148
|
+
//# sourceMappingURL=drilldown-panel.class.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drilldown-panel.class.d.ts","sourceRoot":"","sources":["../../../src/components/drilldown-panel/drilldown-panel.class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGzD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAEtE,OAAO,mCAAmC,CAAC;AAC3C,OAAO,wCAAwC,CAAC;AAChD,OAAO,uBAAuB,CAAC;AAC/B,OAAO,+CAA+C,CAAC;AACvD,OAAO,qCAAqC,CAAC;AAC7C,OAAO,qCAAqC,CAAC;AAC7C,OAAO,yBAAyB,CAAC;AAEjC;;mGAEmG;AACnG,KAAK,aAAa,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAA;CAAE,CAAC;AAE5G;;;;GAIG;AACH,MAAM,WAAW,q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,OAAO,CAAC,YAAY,CAElB;IAEF,OAAO,KAAK,WAAW,GAEtB;IAED,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,cAAc;IAmBtB,OAAO,CAAC,eAAe;IAevB,OAAO,CAAC,cAAc;IAgBtB,OAAO,CAAC,aAAa;IAwBrB,OAAO,CAAC,gBAAgB;IAyBxB,OAAO,CAAC,aAAa;IAwBrB,MAAM,IAAI,cAAc,CAOvB;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,oBAAoB,EAAE,kBAAkB,CAAC;KAC1C;CACF"}
|
|
@@ -0,0 +1,241 @@
|
|
|
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 { repeat } from 'lit/directives/repeat.js';
|
|
10
|
+
import { LyraElement } from '../../internal/lyra-element.js';
|
|
11
|
+
import { styles } from './drilldown-panel.styles.js';
|
|
12
|
+
import '../breadcrumb/breadcrumb.class.js';
|
|
13
|
+
import '../breadcrumb/breadcrumb-item.class.js';
|
|
14
|
+
import '../tabs/tabs.class.js';
|
|
15
|
+
import '../document-preview/document-preview.class.js';
|
|
16
|
+
import '../entity-card/entity-card.class.js';
|
|
17
|
+
import '../source-card/source-card.class.js';
|
|
18
|
+
import '../empty/empty.class.js';
|
|
19
|
+
/**
|
|
20
|
+
* `<lr-drilldown-panel>` — controlled navigation from a chart/table datum to its related evidence,
|
|
21
|
+
* documents, entities, or agent runs. This is a navigation *shell*: it never re-renders any of that
|
|
22
|
+
* content itself, only a breadcrumb trail (`lr-breadcrumb`) over `path` plus, for whichever
|
|
23
|
+
* categories the current (last) node actually has content for, the one existing primitive that
|
|
24
|
+
* already renders that content type (`lr-source-card` for evidence, `lr-document-preview` for
|
|
25
|
+
* documents, `lr-entity-card` for entities) -- wrapped in an `lr-tabs` strip only when more than one
|
|
26
|
+
* category has content, so a single-category node renders that category directly with no tab
|
|
27
|
+
* chrome.
|
|
28
|
+
*
|
|
29
|
+
* Controlled, like every other Lyra component: `path` is the full breadcrumb trail (oldest first,
|
|
30
|
+
* current node last) and is owned entirely by the host. Activating a *non-current* breadcrumb step
|
|
31
|
+
* fires `lr-drilldown-navigate` with that step's `id`/`index` — this component never mutates `path`
|
|
32
|
+
* itself; a listener typically responds with `this.path = this.path.slice(0, e.detail.index + 1)`
|
|
33
|
+
* (truncate back to that level) or replaces `path` outright with newly fetched levels. An empty
|
|
34
|
+
* `path` renders the shared `lr-empty` "no selection" state; a non-empty `path` whose current node
|
|
35
|
+
* has no content in any category renders the shared `lr-empty` `noData` state instead.
|
|
36
|
+
*
|
|
37
|
+
* **Agent runs.** Unlike evidence/documents/entities, this library has no existing "render one
|
|
38
|
+
* agent run" primitive yet (a future orchestration-level component, not part of this layer, is the
|
|
39
|
+
* natural home for that once it exists) — so, rather than inventing bespoke run-rendering here, the
|
|
40
|
+
* `runs` slot is this component's escape hatch: whatever a host projects into it renders as the
|
|
41
|
+
* "Agent runs" category tab (shown only while the slot actually has assigned content), exactly the
|
|
42
|
+
* same tradeoff `<lr-document-preview>`'s own `unsupported` slot makes. Because slot content is
|
|
43
|
+
* ordinary light DOM, not part of the `path` data model, a host drilling into different agent-run
|
|
44
|
+
* content per level re-projects new content into the slot whenever the current node changes — the
|
|
45
|
+
* same thing a `<lr-document-preview>` consumer already does for its `unsupported` slot.
|
|
46
|
+
*
|
|
47
|
+
* @customElement lr-drilldown-panel
|
|
48
|
+
* @slot runs - Host-rendered agent-run content for the current node's "Agent runs" category — see
|
|
49
|
+
* the class doc's "Agent runs" section. The category (and its tab, once more than one category is
|
|
50
|
+
* present) only appears while this slot has assigned content.
|
|
51
|
+
* @event lr-drilldown-navigate - A non-current breadcrumb step was activated. `detail: { id, index }`.
|
|
52
|
+
* @csspart base - The root wrapper.
|
|
53
|
+
* @csspart breadcrumb - The nested `lr-breadcrumb` trail, hidden entirely while `path` is empty.
|
|
54
|
+
* @csspart breadcrumb-item - One nested `lr-breadcrumb-item`.
|
|
55
|
+
* @csspart breadcrumb-button - The clickable label of a non-current breadcrumb step.
|
|
56
|
+
* @csspart content - The wrapper around the current node's category content (or an empty state).
|
|
57
|
+
* @csspart tabs - The nested `lr-tabs` strip, only rendered when the current node has content in
|
|
58
|
+
* more than one category.
|
|
59
|
+
* @csspart category - The wrapper around one category's rendered items — used both as the sole
|
|
60
|
+
* direct child of `content` (single-category node) and inside each `lr-tabs` panel (multi-category
|
|
61
|
+
* node).
|
|
62
|
+
* @csspart evidence-item - One nested `lr-source-card`.
|
|
63
|
+
* @csspart document-item - One nested `lr-document-preview`.
|
|
64
|
+
* @csspart entity-item - One nested `lr-entity-card`.
|
|
65
|
+
* @csspart empty - The empty state, shown when `path` is empty or the current node has no content
|
|
66
|
+
* in any category.
|
|
67
|
+
*/
|
|
68
|
+
export class LyraDrilldownPanel extends LyraElement {
|
|
69
|
+
constructor() {
|
|
70
|
+
super(...arguments);
|
|
71
|
+
/** The full breadcrumb trail, oldest first, current node last. Host-owned — see the class doc. */
|
|
72
|
+
this.path = [];
|
|
73
|
+
/** `lr-graph.nodeTypes` pass-through, forwarded to every nested `lr-entity-card` so each
|
|
74
|
+
* entity's type badge resolves identically to however a paired graph view resolves it. */
|
|
75
|
+
this.types = [];
|
|
76
|
+
/** Forwarded to every nested `lr-entity-card`'s own `communityLabel`. */
|
|
77
|
+
this.communityLabel = '';
|
|
78
|
+
/** Forwarded to every nested `lr-entity-card`'s own `showFocusButton`. */
|
|
79
|
+
this.showFocusButton = true;
|
|
80
|
+
/** Accessible name forwarded to the internal `lr-tabs` strip (only rendered while the current
|
|
81
|
+
* node has more than one populated category). Unset, the tab strip renders without an
|
|
82
|
+
* `aria-label`, matching `lr-tabs`' own unset-default behavior. */
|
|
83
|
+
this.accessibleLabel = null;
|
|
84
|
+
// Tracked in JS, not via CSS `:empty` (a `[part]` always contains a literal `<slot>` child
|
|
85
|
+
// regardless of assigned content, so `:empty` never matches) -- same presence-tracking
|
|
86
|
+
// convention as `<lr-source-card>`'s `hasFullSlot`/`hasExcerptSlot`. Recomputed from the light
|
|
87
|
+
// DOM directly (not from `slotchange`) via a `MutationObserver`, the same technique `<lr-tabs>`
|
|
88
|
+
// uses for its own child-driven tab set: unlike `<lr-document-preview>`'s `unsupported` slot
|
|
89
|
+
// (whose containing branch is already reachable independently of slot occupancy, so slotchange
|
|
90
|
+
// alone suffices), whether the `runs` slot even gets rendered here depends on this state itself
|
|
91
|
+
// -- a `slotchange` listener on a `<slot>` that doesn't exist yet until *after* this flips true
|
|
92
|
+
// would never observe the very mutation that should flip it.
|
|
93
|
+
this.hasRunsSlot = false;
|
|
94
|
+
this.syncRunsSlot = () => {
|
|
95
|
+
this.hasRunsSlot = Array.from(this.children).some((el) => el.getAttribute('slot') === 'runs');
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
static { this.styles = [LyraElement.styles, styles]; }
|
|
99
|
+
connectedCallback() {
|
|
100
|
+
super.connectedCallback();
|
|
101
|
+
this.syncRunsSlot();
|
|
102
|
+
this.mutationObserver = new MutationObserver(this.syncRunsSlot);
|
|
103
|
+
this.mutationObserver.observe(this, { childList: true, attributes: true, attributeFilter: ['slot'] });
|
|
104
|
+
}
|
|
105
|
+
disconnectedCallback() {
|
|
106
|
+
super.disconnectedCallback();
|
|
107
|
+
this.mutationObserver?.disconnect();
|
|
108
|
+
this.mutationObserver = undefined;
|
|
109
|
+
}
|
|
110
|
+
get currentNode() {
|
|
111
|
+
return this.path[this.path.length - 1];
|
|
112
|
+
}
|
|
113
|
+
navigateTo(node, index) {
|
|
114
|
+
this.emit('lr-drilldown-navigate', { id: node.id, index });
|
|
115
|
+
}
|
|
116
|
+
renderEvidence(items) {
|
|
117
|
+
return html `${repeat(items, (item) => item.id, (item) => html `
|
|
118
|
+
<lr-source-card
|
|
119
|
+
part="evidence-item"
|
|
120
|
+
source-id=${item.id}
|
|
121
|
+
title=${item.title}
|
|
122
|
+
.page=${item.page}
|
|
123
|
+
href=${item.href ?? nothing}
|
|
124
|
+
>
|
|
125
|
+
${item.excerpt ? html `<span slot="excerpt">${item.excerpt}</span>` : nothing}
|
|
126
|
+
${item.full ? html `<span slot="full">${item.full}</span>` : nothing}
|
|
127
|
+
</lr-source-card>
|
|
128
|
+
`)}`;
|
|
129
|
+
}
|
|
130
|
+
renderDocuments(docs) {
|
|
131
|
+
return html `${repeat(docs, (doc) => doc.id, (doc) => html `
|
|
132
|
+
<lr-document-preview
|
|
133
|
+
part="document-item"
|
|
134
|
+
src=${doc.uri ?? ''}
|
|
135
|
+
mime-type=${doc.mimeType ?? ''}
|
|
136
|
+
filename=${doc.name}
|
|
137
|
+
></lr-document-preview>
|
|
138
|
+
`)}`;
|
|
139
|
+
}
|
|
140
|
+
renderEntities(entities) {
|
|
141
|
+
return html `${repeat(entities, (entity) => entity.id, (entity) => html `
|
|
142
|
+
<lr-entity-card
|
|
143
|
+
part="entity-item"
|
|
144
|
+
.entity=${entity}
|
|
145
|
+
.types=${this.types}
|
|
146
|
+
.communityLabel=${this.communityLabel}
|
|
147
|
+
.showFocusButton=${this.showFocusButton}
|
|
148
|
+
></lr-entity-card>
|
|
149
|
+
`)}`;
|
|
150
|
+
}
|
|
151
|
+
categoriesFor(node) {
|
|
152
|
+
const categories = [];
|
|
153
|
+
const evidence = node.evidence ?? [];
|
|
154
|
+
const documents = node.documents ?? [];
|
|
155
|
+
const entities = node.entities ?? [];
|
|
156
|
+
if (evidence.length > 0) {
|
|
157
|
+
categories.push({ key: 'evidence', label: this.localize('sourceListDefaultLabel'), content: this.renderEvidence(evidence) });
|
|
158
|
+
}
|
|
159
|
+
if (documents.length > 0) {
|
|
160
|
+
categories.push({ key: 'documents', label: this.localize('drilldownDocuments'), content: this.renderDocuments(documents) });
|
|
161
|
+
}
|
|
162
|
+
if (entities.length > 0) {
|
|
163
|
+
categories.push({ key: 'entities', label: this.localize('provenanceEntities'), content: this.renderEntities(entities) });
|
|
164
|
+
}
|
|
165
|
+
if (this.hasRunsSlot) {
|
|
166
|
+
categories.push({
|
|
167
|
+
key: 'runs',
|
|
168
|
+
label: this.localize('drilldownRuns'),
|
|
169
|
+
content: html `<slot name="runs"></slot>`,
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
return categories;
|
|
173
|
+
}
|
|
174
|
+
renderBreadcrumb() {
|
|
175
|
+
if (this.path.length === 0)
|
|
176
|
+
return nothing;
|
|
177
|
+
const lastIndex = this.path.length - 1;
|
|
178
|
+
return html `
|
|
179
|
+
<lr-breadcrumb part="breadcrumb">
|
|
180
|
+
${repeat(this.path, (node) => node.id, (node, index) => {
|
|
181
|
+
const isCurrent = index === lastIndex;
|
|
182
|
+
return html `<lr-breadcrumb-item part="breadcrumb-item" ?current=${isCurrent}>
|
|
183
|
+
${isCurrent
|
|
184
|
+
? node.label
|
|
185
|
+
: html `<button
|
|
186
|
+
type="button"
|
|
187
|
+
part="breadcrumb-button"
|
|
188
|
+
@click=${() => this.navigateTo(node, index)}
|
|
189
|
+
>${node.label}</button>`}
|
|
190
|
+
</lr-breadcrumb-item>`;
|
|
191
|
+
})}
|
|
192
|
+
</lr-breadcrumb>
|
|
193
|
+
`;
|
|
194
|
+
}
|
|
195
|
+
renderContent() {
|
|
196
|
+
const node = this.currentNode;
|
|
197
|
+
if (!node) {
|
|
198
|
+
return html `<lr-empty part="empty" heading=${this.localize('drilldownEmpty')}></lr-empty>`;
|
|
199
|
+
}
|
|
200
|
+
const categories = this.categoriesFor(node);
|
|
201
|
+
if (categories.length === 0) {
|
|
202
|
+
return html `<lr-empty part="empty" heading=${this.localize('noData')}></lr-empty>`;
|
|
203
|
+
}
|
|
204
|
+
if (categories.length === 1) {
|
|
205
|
+
const only = categories[0];
|
|
206
|
+
return html `<div part="category" role="region" aria-label=${only.label}>${only.content}</div>`;
|
|
207
|
+
}
|
|
208
|
+
return html `
|
|
209
|
+
<lr-tabs part="tabs" aria-label=${this.accessibleLabel || nothing}>
|
|
210
|
+
${repeat(categories, (category) => category.key, (category) => html `<div slot=${category.key} label=${category.label} part="category">${category.content}</div>`)}
|
|
211
|
+
</lr-tabs>
|
|
212
|
+
`;
|
|
213
|
+
}
|
|
214
|
+
render() {
|
|
215
|
+
return html `
|
|
216
|
+
<div part="base">
|
|
217
|
+
${this.renderBreadcrumb()}
|
|
218
|
+
<div part="content">${this.renderContent()}</div>
|
|
219
|
+
</div>
|
|
220
|
+
`;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
__decorate([
|
|
224
|
+
property({ attribute: false })
|
|
225
|
+
], LyraDrilldownPanel.prototype, "path", void 0);
|
|
226
|
+
__decorate([
|
|
227
|
+
property({ attribute: false })
|
|
228
|
+
], LyraDrilldownPanel.prototype, "types", void 0);
|
|
229
|
+
__decorate([
|
|
230
|
+
property({ attribute: 'community-label' })
|
|
231
|
+
], LyraDrilldownPanel.prototype, "communityLabel", void 0);
|
|
232
|
+
__decorate([
|
|
233
|
+
property({ type: Boolean, attribute: 'show-focus-button' })
|
|
234
|
+
], LyraDrilldownPanel.prototype, "showFocusButton", void 0);
|
|
235
|
+
__decorate([
|
|
236
|
+
property({ attribute: 'aria-label' })
|
|
237
|
+
], LyraDrilldownPanel.prototype, "accessibleLabel", void 0);
|
|
238
|
+
__decorate([
|
|
239
|
+
state()
|
|
240
|
+
], LyraDrilldownPanel.prototype, "hasRunsSlot", void 0);
|
|
241
|
+
//# sourceMappingURL=drilldown-panel.class.js.map
|
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Q,CAAC,KAAK,oBAAoB,QAAQ,CAAC,OAAO,QAAQ,CAChH;;KAEJ,CAAC;IACJ,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAA;;UAEL,IAAI,CAAC,gBAAgB,EAAE;8BACH,IAAI,CAAC,aAAa,EAAE;;KAE7C,CAAC;IACJ,CAAC;CACF;AA1LiC;IAA/B,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;gDAA4B;AAI3B;IAA/B,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;iDAA6B;AAGhB;IAA3C,QAAQ,CAAC,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC;0DAAqB;AAGH;IAA5D,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,CAAC;2DAAwB;AAK7C;IAAtC,QAAQ,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;2DAAuC;AAW5D;IAAhB,KAAK,EAAE;uDAA6B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './drilldown-panel.class.js';
|
|
2
|
+
import '../breadcrumb/breadcrumb.js';
|
|
3
|
+
import '../breadcrumb/breadcrumb-item.js';
|
|
4
|
+
import '../tabs/tabs.js';
|
|
5
|
+
import '../document-preview/document-preview.js';
|
|
6
|
+
import '../entity-card/entity-card.js';
|
|
7
|
+
import '../source-card/source-card.js';
|
|
8
|
+
import '../empty/empty.js';
|
|
9
|
+
//# sourceMappingURL=drilldown-panel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drilldown-panel.d.ts","sourceRoot":"","sources":["../../../src/components/drilldown-panel/drilldown-panel.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAG3C,OAAO,6BAA6B,CAAC;AACrC,OAAO,kCAAkC,CAAC;AAC1C,OAAO,iBAAiB,CAAC;AACzB,OAAO,yCAAyC,CAAC;AACjD,OAAO,+BAA+B,CAAC;AACvC,OAAO,+BAA+B,CAAC;AACvC,OAAO,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './drilldown-panel.class.js';
|
|
2
|
+
import { LyraDrilldownPanel } from './drilldown-panel.class.js';
|
|
3
|
+
import { defineElement } from '../../internal/prefix.js';
|
|
4
|
+
import '../breadcrumb/breadcrumb.js';
|
|
5
|
+
import '../breadcrumb/breadcrumb-item.js';
|
|
6
|
+
import '../tabs/tabs.js';
|
|
7
|
+
import '../document-preview/document-preview.js';
|
|
8
|
+
import '../entity-card/entity-card.js';
|
|
9
|
+
import '../source-card/source-card.js';
|
|
10
|
+
import '../empty/empty.js';
|
|
11
|
+
defineElement('drilldown-panel', LyraDrilldownPanel);
|
|
12
|
+
//# sourceMappingURL=drilldown-panel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drilldown-panel.js","sourceRoot":"","sources":["../../../src/components/drilldown-panel/drilldown-panel.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,6BAA6B,CAAC;AACrC,OAAO,kCAAkC,CAAC;AAC1C,OAAO,iBAAiB,CAAC;AACzB,OAAO,yCAAyC,CAAC;AACjD,OAAO,+BAA+B,CAAC;AACvC,OAAO,+BAA+B,CAAC;AACvC,OAAO,mBAAmB,CAAC;AAC3B,aAAa,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drilldown-panel.styles.d.ts","sourceRoot":"","sources":["../../../src/components/drilldown-panel/drilldown-panel.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,yBA8ClB,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
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-m);
|
|
11
|
+
min-inline-size: 0;
|
|
12
|
+
}
|
|
13
|
+
[part='breadcrumb'] {
|
|
14
|
+
min-inline-size: 0;
|
|
15
|
+
}
|
|
16
|
+
[part='breadcrumb-button'] {
|
|
17
|
+
border: none;
|
|
18
|
+
background: none;
|
|
19
|
+
padding: 0;
|
|
20
|
+
margin: 0;
|
|
21
|
+
color: var(--lr-color-brand);
|
|
22
|
+
font: inherit;
|
|
23
|
+
font-size: inherit;
|
|
24
|
+
text-align: start;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
}
|
|
27
|
+
[part='breadcrumb-button']:hover {
|
|
28
|
+
text-decoration: underline;
|
|
29
|
+
}
|
|
30
|
+
[part='breadcrumb-button']:focus-visible {
|
|
31
|
+
outline: var(--lr-focus-ring-width) solid var(--lr-focus-ring-color);
|
|
32
|
+
outline-offset: var(--lr-focus-ring-offset);
|
|
33
|
+
}
|
|
34
|
+
[part='content'] {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
min-inline-size: 0;
|
|
38
|
+
}
|
|
39
|
+
[part='tabs'] {
|
|
40
|
+
min-inline-size: 0;
|
|
41
|
+
}
|
|
42
|
+
[part='category'] {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
gap: var(--lr-space-s);
|
|
46
|
+
min-inline-size: 0;
|
|
47
|
+
}
|
|
48
|
+
`;
|
|
49
|
+
//# sourceMappingURL=drilldown-panel.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drilldown-panel.styles.js","sourceRoot":"","sources":["../../../src/components/drilldown-panel/drilldown-panel.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8CxB,CAAC"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import { LyraElement } from '../../internal/lyra-element.js';
|
|
3
|
+
import type { LyraEntity } from '../entity-card/entity-card.class.js';
|
|
4
|
+
import type { LyraNeighborRow } from '../neighbor-list/neighbor-list.class.js';
|
|
5
|
+
import type { LyraChunk } from '../chunk-inspector/chunk-inspector.class.js';
|
|
6
|
+
import type { LyraProvenance } from '../provenance-panel/provenance-panel.class.js';
|
|
7
|
+
import type { StatVariant, StatRow } from '../stat/stat.class.js';
|
|
8
|
+
import '../entity-card/entity-card.class.js';
|
|
9
|
+
import '../neighbor-list/neighbor-list.class.js';
|
|
10
|
+
import '../chunk-inspector/chunk-inspector.class.js';
|
|
11
|
+
import '../provenance-panel/provenance-panel.class.js';
|
|
12
|
+
import '../stat/stat.class.js';
|
|
13
|
+
import '../tabs/tabs.class.js';
|
|
14
|
+
import '../empty/empty.class.js';
|
|
15
|
+
/** The exact `lr-graph.nodeTypes` entry shape -- see `lr-entity-card`'s and
|
|
16
|
+
* `lr-provenance-panel`'s identical local aliases for why this isn't imported from `lr-graph`
|
|
17
|
+
* itself. Shared verbatim with both of those, since it's forwarded to both nested components
|
|
18
|
+
* below without any mapping. */
|
|
19
|
+
type NodeTypeStyle = {
|
|
20
|
+
id: string;
|
|
21
|
+
label: string;
|
|
22
|
+
color?: string;
|
|
23
|
+
shape?: 'circle' | 'square' | 'diamond';
|
|
24
|
+
};
|
|
25
|
+
/** The three tab ids this component renders -- also `lr-tabs`' own `slot`/`tabId` values, so a
|
|
26
|
+
* `lr-tabs-change` listener can switch on these literally. */
|
|
27
|
+
export type LyraEntityDossierTab = 'relationships' | 'chunks' | 'provenance';
|
|
28
|
+
/**
|
|
29
|
+
* The headline confidence KPI shown next to the entity summary. Every field here is caller-supplied
|
|
30
|
+
* domain data -- the same convention `lr-stat`'s own `label`/`value`/`caption`/`rows` already use
|
|
31
|
+
* (a confidence metric's label is exactly as domain-specific as a "Revenue" or "Latency" stat's
|
|
32
|
+
* label), so none of it routes through `localize()`.
|
|
33
|
+
*/
|
|
34
|
+
export interface LyraEntityDossierConfidence {
|
|
35
|
+
label: string;
|
|
36
|
+
value: string;
|
|
37
|
+
unit?: string;
|
|
38
|
+
variant?: StatVariant;
|
|
39
|
+
/** Exact value shown as a hover/focus tooltip on the headline value -- see `lr-stat.exactValue`. */
|
|
40
|
+
exactValue?: string;
|
|
41
|
+
caption?: string;
|
|
42
|
+
/** Breakdown rows (e.g. per-signal sub-scores) -- see `lr-stat.rows`. */
|
|
43
|
+
rows?: StatRow[];
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* `<lr-entity-dossier>` — a full entity detail surface: a persistent header (`lr-entity-card` plus
|
|
47
|
+
* an optional confidence `lr-stat`) above a `lr-tabs` strip for Relationships (`lr-neighbor-list`),
|
|
48
|
+
* Supporting chunks (`lr-chunk-inspector`), and Provenance (`lr-provenance-panel`). Pure layout —
|
|
49
|
+
* it never fetches, ranks, or mutates graph/document state, and never re-renders what any of those
|
|
50
|
+
* five composed components already render themselves; every one of their own events (`
|
|
51
|
+
* lr-entity-activate`, `lr-node-expand`, `lr-chunk-open`, `lr-expand`, `lr-toggle`, `lr-tabs-change`)
|
|
52
|
+
* bubbles through unmodified (`composed: true` crosses this component's own shadow boundary with no
|
|
53
|
+
* re-dispatch needed) rather than being re-declared as this component's own event.
|
|
54
|
+
*
|
|
55
|
+
* `chunks`/`thresholds` (the "supporting chunks" tab) and `provenance` (the "Provenance" tab) are
|
|
56
|
+
* deliberately separate inputs even though `lr-provenance-panel` can itself also show a chunks
|
|
57
|
+
* section: the "Supporting chunks" tab is the evidence for *this entity's own* summary/properties,
|
|
58
|
+
* while `provenance` is the broader grounding chain (which may span other entities, relationships,
|
|
59
|
+
* and communities, and may or may not reuse the same chunk set) — a host is free to pass the same
|
|
60
|
+
* array to both when the two concepts genuinely coincide.
|
|
61
|
+
*
|
|
62
|
+
* Tab labels reuse the exact `localize()` keys the composed child already uses for its own
|
|
63
|
+
* accessible name (`neighborListLabel`, `chunkInspectorLabel`, `provenancePanelLabel`) rather than
|
|
64
|
+
* new dossier-specific keys, so a translated locale only has to cover each string once and the tab
|
|
65
|
+
* strip and the panel underneath it always agree.
|
|
66
|
+
*
|
|
67
|
+
* This component declares no events of its own -- `lr-tabs-change` (`detail: { tabId:
|
|
68
|
+
* LyraEntityDossierTab }`) and every composed child's own event bubble through unmodified, the
|
|
69
|
+
* same "pure projection + event conduit" convention `lr-provenance-panel` and
|
|
70
|
+
* `lr-spreadsheet-viewer`'s internal `lr-tabs` already establish.
|
|
71
|
+
*
|
|
72
|
+
* @customElement lr-entity-dossier
|
|
73
|
+
* @csspart base - The root wrapper, or the empty state's wrapper when `entity` is `null`.
|
|
74
|
+
* @csspart header - The wrapper around the entity summary and the confidence stat.
|
|
75
|
+
* @csspart entity-card - The nested `lr-entity-card`.
|
|
76
|
+
* @csspart confidence - The nested confidence `lr-stat`, only rendered when `confidence` is set.
|
|
77
|
+
* @csspart tabs - The nested `lr-tabs` strip.
|
|
78
|
+
* @csspart neighbor-list - The nested `lr-neighbor-list`, inside the Relationships tab.
|
|
79
|
+
* @csspart chunk-inspector - The nested `lr-chunk-inspector`, inside the Supporting chunks tab.
|
|
80
|
+
* @csspart provenance-panel - The nested `lr-provenance-panel`, inside the Provenance tab.
|
|
81
|
+
* @csspart empty - The empty state shown when `entity` is `null`.
|
|
82
|
+
*/
|
|
83
|
+
export declare class LyraEntityDossier extends LyraElement {
|
|
84
|
+
static styles: import("lit").CSSResultGroup[];
|
|
85
|
+
/** `null` renders the shared `lr-empty` `noData` state in place of the whole dossier. */
|
|
86
|
+
entity: LyraEntity | null;
|
|
87
|
+
/** `lr-graph` `nodeTypes` pass-through, forwarded to both `lr-entity-card` and
|
|
88
|
+
* `lr-provenance-panel` so the entity type badge and any provenance entity chips resolve
|
|
89
|
+
* identically. */
|
|
90
|
+
types: NodeTypeStyle[];
|
|
91
|
+
/** Forwarded to `lr-entity-card`'s own `communityLabel`. */
|
|
92
|
+
communityLabel: string;
|
|
93
|
+
/** Forwarded to `lr-entity-card`'s own `showFocusButton`. */
|
|
94
|
+
showFocusButton: boolean;
|
|
95
|
+
/** Headline confidence KPI, rendered as an `lr-stat` next to the entity summary. Omitted
|
|
96
|
+
* entirely (no placeholder, no empty stat) when `null`. */
|
|
97
|
+
confidence: LyraEntityDossierConfidence | null;
|
|
98
|
+
/** Forwarded to `lr-neighbor-list`'s own `rows`. */
|
|
99
|
+
neighbors: LyraNeighborRow[];
|
|
100
|
+
/** Forwarded to `lr-neighbor-list`'s own `groupByRelation`. */
|
|
101
|
+
groupByRelation: boolean;
|
|
102
|
+
/** Forwarded to `lr-neighbor-list`'s own `expandable`. */
|
|
103
|
+
expandable: boolean;
|
|
104
|
+
/** Forwarded to `lr-chunk-inspector`'s own `chunks` -- the evidence for this entity's own
|
|
105
|
+
* summary, distinct from `provenance` (see the class doc above). */
|
|
106
|
+
chunks: LyraChunk[];
|
|
107
|
+
/** Forwarded to both `lr-chunk-inspector`'s and `lr-provenance-panel`'s own `thresholds`, so
|
|
108
|
+
* the score tiers agree everywhere a score renders in this dossier. */
|
|
109
|
+
thresholds: {
|
|
110
|
+
high: number;
|
|
111
|
+
medium: number;
|
|
112
|
+
};
|
|
113
|
+
/** Forwarded to `lr-provenance-panel`'s own `provenance`. */
|
|
114
|
+
provenance: LyraProvenance | null;
|
|
115
|
+
/** Accessible name forwarded to the internal `lr-tabs` strip. Unset, the tab strip renders
|
|
116
|
+
* without an `aria-label` (matching `lr-tabs`' own unset-default behavior). */
|
|
117
|
+
accessibleLabel: string | null;
|
|
118
|
+
/** Which tab is active -- internal, not a controlled public property: `lr-tabs` already owns
|
|
119
|
+
* this state, and a one-way `.active=${...}` binding driven by a *stale* public property here
|
|
120
|
+
* would fight the user's own click the next time this component re-renders for an unrelated
|
|
121
|
+
* reason (see `lr-spreadsheet-viewer`'s identical `activeSheetIndex` pattern). */
|
|
122
|
+
private activeTab;
|
|
123
|
+
private onTabsChange;
|
|
124
|
+
render(): TemplateResult;
|
|
125
|
+
}
|
|
126
|
+
declare global {
|
|
127
|
+
interface HTMLElementTagNameMap {
|
|
128
|
+
'lr-entity-dossier': LyraEntityDossier;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
export {};
|
|
132
|
+
//# sourceMappingURL=entity-dossier.class.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-dossier.class.d.ts","sourceRoot":"","sources":["../../../src/components/entity-dossier/entity-dossier.class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAC;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AACpF,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,qCAAqC,CAAC;AAC7C,OAAO,yCAAyC,CAAC;AACjD,OAAO,6CAA6C,CAAC;AACrD,OAAO,+CAA+C,CAAC;AACvD,OAAO,uBAAuB,CAAC;AAC/B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,yBAAyB,CAAC;AAGjC;;;iCAGiC;AACjC,KAAK,aAAa,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,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