@aceshooting/lyra-ui 4.0.0 → 4.2.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 +53 -2
- package/custom-elements.json +59005 -40073
- package/dist/ai/index.d.ts +3 -0
- package/dist/ai/index.d.ts.map +1 -0
- package/dist/ai/index.js +3 -0
- package/dist/ai/index.js.map +1 -0
- 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 +201 -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 +184 -0
- package/dist/components/agent-run/agent-run.class.d.ts.map +1 -0
- package/dist/components/agent-run/agent-run.class.js +473 -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 +159 -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/agent-workspace/agent-workspace.class.d.ts +146 -0
- package/dist/components/agent-workspace/agent-workspace.class.d.ts.map +1 -0
- package/dist/components/agent-workspace/agent-workspace.class.js +332 -0
- package/dist/components/agent-workspace/agent-workspace.class.js.map +1 -0
- package/dist/components/agent-workspace/agent-workspace.d.ts +2 -0
- package/dist/components/agent-workspace/agent-workspace.d.ts.map +1 -0
- package/dist/components/agent-workspace/agent-workspace.js +5 -0
- package/dist/components/agent-workspace/agent-workspace.js.map +1 -0
- package/dist/components/agent-workspace/agent-workspace.styles.d.ts +2 -0
- package/dist/components/agent-workspace/agent-workspace.styles.d.ts.map +1 -0
- package/dist/components/agent-workspace/agent-workspace.styles.js +134 -0
- package/dist/components/agent-workspace/agent-workspace.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/avatar/avatar.class.d.ts +3 -3
- package/dist/components/avatar/avatar.class.d.ts.map +1 -1
- package/dist/components/avatar/avatar.class.js +8 -10
- package/dist/components/avatar/avatar.class.js.map +1 -1
- package/dist/components/chart/chart.class.d.ts +1 -0
- package/dist/components/chart/chart.class.d.ts.map +1 -1
- package/dist/components/chart/chart.class.js +9 -3
- package/dist/components/chart/chart.class.js.map +1 -1
- package/dist/components/chat-message/chat-message.class.d.ts +45 -4
- package/dist/components/chat-message/chat-message.class.d.ts.map +1 -1
- package/dist/components/chat-message/chat-message.class.js +98 -8
- 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/conversation-item/conversation-item.class.d.ts +8 -0
- package/dist/components/conversation-item/conversation-item.class.d.ts.map +1 -1
- package/dist/components/conversation-item/conversation-item.class.js +50 -22
- package/dist/components/conversation-item/conversation-item.class.js.map +1 -1
- package/dist/components/conversation-item/conversation-item.styles.d.ts.map +1 -1
- package/dist/components/conversation-item/conversation-item.styles.js +11 -0
- package/dist/components/conversation-item/conversation-item.styles.js.map +1 -1
- package/dist/components/csv-viewer/csv-viewer.styles.d.ts.map +1 -1
- package/dist/components/csv-viewer/csv-viewer.styles.js +8 -2
- package/dist/components/csv-viewer/csv-viewer.styles.js.map +1 -1
- 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 +569 -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/diff-view/diff-view.class.d.ts +20 -2
- package/dist/components/diff-view/diff-view.class.d.ts.map +1 -1
- package/dist/components/diff-view/diff-view.class.js +107 -13
- package/dist/components/diff-view/diff-view.class.js.map +1 -1
- package/dist/components/diff-view/diff-view.styles.d.ts.map +1 -1
- package/dist/components/diff-view/diff-view.styles.js +5 -0
- package/dist/components/diff-view/diff-view.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/emoji-picker/emoji-data-loader.d.ts.map +1 -1
- package/dist/components/emoji-picker/emoji-data-loader.js +1 -1
- package/dist/components/emoji-picker/emoji-data-loader.js.map +1 -1
- package/dist/components/emoji-picker/emoji-picker.class.d.ts +18 -1
- package/dist/components/emoji-picker/emoji-picker.class.d.ts.map +1 -1
- package/dist/components/emoji-picker/emoji-picker.class.js +152 -28
- package/dist/components/emoji-picker/emoji-picker.class.js.map +1 -1
- package/dist/components/emoji-picker/emoji-picker.styles.d.ts.map +1 -1
- package/dist/components/emoji-picker/emoji-picker.styles.js +26 -2
- package/dist/components/emoji-picker/emoji-picker.styles.js.map +1 -1
- 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 +333 -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/heatmap/heatmap.class.d.ts +14 -0
- package/dist/components/heatmap/heatmap.class.d.ts.map +1 -1
- package/dist/components/heatmap/heatmap.class.js +165 -0
- package/dist/components/heatmap/heatmap.class.js.map +1 -1
- 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/markdown/markdown-core.class.d.ts +10 -3
- package/dist/components/markdown/markdown-core.class.d.ts.map +1 -1
- package/dist/components/markdown/markdown-core.class.js +33 -4
- package/dist/components/markdown/markdown-core.class.js.map +1 -1
- package/dist/components/markdown/markdown.class.d.ts +10 -3
- package/dist/components/markdown/markdown.class.d.ts.map +1 -1
- package/dist/components/markdown/markdown.class.js +33 -4
- package/dist/components/markdown/markdown.class.js.map +1 -1
- 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/notebook-viewer/notebook-viewer.class.d.ts +9 -2
- package/dist/components/notebook-viewer/notebook-viewer.class.d.ts.map +1 -1
- package/dist/components/notebook-viewer/notebook-viewer.class.js +27 -4
- package/dist/components/notebook-viewer/notebook-viewer.class.js.map +1 -1
- 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 +267 -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/rubric-form/rubric-form.class.d.ts.map +1 -1
- package/dist/components/rubric-form/rubric-form.class.js +1 -0
- package/dist/components/rubric-form/rubric-form.class.js.map +1 -1
- package/dist/components/spreadsheet-viewer/spreadsheet-viewer.styles.d.ts.map +1 -1
- package/dist/components/spreadsheet-viewer/spreadsheet-viewer.styles.js +8 -2
- package/dist/components/spreadsheet-viewer/spreadsheet-viewer.styles.js.map +1 -1
- package/dist/components/thread-list/thread-list.class.d.ts +38 -2
- package/dist/components/thread-list/thread-list.class.d.ts.map +1 -1
- package/dist/components/thread-list/thread-list.class.js +41 -6
- 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/components/trace-tree/trace-tree.class.d.ts.map +1 -1
- package/dist/components/trace-tree/trace-tree.class.js +3 -1
- package/dist/components/trace-tree/trace-tree.class.js.map +1 -1
- package/dist/internal/localization.d.ts +1 -1
- package/dist/internal/localization.d.ts.map +1 -1
- package/dist/internal/localization.js +238 -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 +25 -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 +51 -1
- package/dist/lyra.d.ts.map +1 -1
- package/dist/lyra.js +49 -0
- package/dist/lyra.js.map +1 -1
- package/llms-full.txt +519 -15
- package/llms.txt +7 -0
- package/package.json +53 -1
- package/vscode-css-data.json +21 -0
- package/vscode-html-data.json +1205 -14
- package/web-types.json +1297 -60
|
@@ -0,0 +1,276 @@
|
|
|
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, svg } from 'lit';
|
|
8
|
+
import { property } from 'lit/decorators.js';
|
|
9
|
+
import { repeat } from 'lit/directives/repeat.js';
|
|
10
|
+
import { LyraElement } from '../../internal/lyra-element.js';
|
|
11
|
+
import { finiteCount } from '../../internal/numbers.js';
|
|
12
|
+
import { getPluralRules } from '../../internal/intl-cache.js';
|
|
13
|
+
import { closeIcon } from '../../internal/icons.js';
|
|
14
|
+
// The registering barrels (not the bare *.class.js modules) -- this side effect is what actually
|
|
15
|
+
// defines <lr-badge>/<lr-progress-bar>/<lr-empty>/<lr-virtual-list> as custom elements by the
|
|
16
|
+
// time this component's render() references them.
|
|
17
|
+
import '../badge/badge.js';
|
|
18
|
+
import '../progress/progress-bar.js';
|
|
19
|
+
import '../empty/empty.js';
|
|
20
|
+
import '../virtual-list/virtual-list.js';
|
|
21
|
+
import { styles } from './ingestion-queue.styles.js';
|
|
22
|
+
/** In-flight stages that render a progress indicator and remain cancelable. `'queued'` is also
|
|
23
|
+
* cancelable (see `CANCELABLE_STAGES`) but has nothing yet to show progress *of*. */
|
|
24
|
+
const ACTIVE_STAGES = ['uploading', 'extracting', 'chunking', 'embedding', 'indexing'];
|
|
25
|
+
/** Every non-terminal stage -- the set a `lr-cancel` request is offered for. */
|
|
26
|
+
const CANCELABLE_STAGES = ['queued', ...ACTIVE_STAGES];
|
|
27
|
+
function badgeVariantForStage(stage) {
|
|
28
|
+
switch (stage) {
|
|
29
|
+
case 'done':
|
|
30
|
+
return 'success';
|
|
31
|
+
case 'failed':
|
|
32
|
+
return 'danger';
|
|
33
|
+
case 'queued':
|
|
34
|
+
case 'cancelled':
|
|
35
|
+
return 'neutral';
|
|
36
|
+
default:
|
|
37
|
+
return 'brand';
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
const ICON_VIEW_BOX = '0 0 24 24';
|
|
41
|
+
const ICON_STROKE_WIDTH = '1.75';
|
|
42
|
+
// Same shape as `<lr-attachment-chip>`'s local `retryIcon()` -- duplicated rather than imported
|
|
43
|
+
// (independently consumable components) but kept visually identical so a retry affordance reads
|
|
44
|
+
// the same wherever it shows up in the library.
|
|
45
|
+
function retryIcon() {
|
|
46
|
+
return svg `
|
|
47
|
+
<svg
|
|
48
|
+
width="1em"
|
|
49
|
+
height="1em"
|
|
50
|
+
viewBox=${ICON_VIEW_BOX}
|
|
51
|
+
fill="none"
|
|
52
|
+
stroke="currentColor"
|
|
53
|
+
stroke-width=${ICON_STROKE_WIDTH}
|
|
54
|
+
stroke-linecap="round"
|
|
55
|
+
stroke-linejoin="round"
|
|
56
|
+
aria-hidden="true"
|
|
57
|
+
focusable="false"
|
|
58
|
+
><polyline points="1 4 1 10 7 10"></polyline><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"></path></svg>
|
|
59
|
+
`;
|
|
60
|
+
}
|
|
61
|
+
const DEFAULT_VIRTUALIZE_THRESHOLD = 100;
|
|
62
|
+
/**
|
|
63
|
+
* `<lr-ingestion-queue>` — a controlled list of documents moving through an ingestion pipeline
|
|
64
|
+
* (upload → text extraction → chunking → embedding → indexing), each row showing its stage,
|
|
65
|
+
* progress, chunk/embedding counts, and a retry or cancel affordance. Presentation only: this
|
|
66
|
+
* component runs no ingestion itself, persists nothing, and never mutates `items` -- retrying or
|
|
67
|
+
* cancelling a row fires a controlled `lr-retry`/`lr-cancel` request event and waits for the host
|
|
68
|
+
* to supply an updated `items` array, the same request/response convention `<lr-thread-list>`'s
|
|
69
|
+
* `lr-thread-pin`/`-archive`/`-delete` events already establish.
|
|
70
|
+
*
|
|
71
|
+
* At or above `virtualizeThreshold` items, the list renders through an internal
|
|
72
|
+
* `<lr-virtual-list>` instead of a plain keyed list (same precedent as `<lr-thread-list>`'s data
|
|
73
|
+
* mode and `<lr-activity-feed>`'s `virtualizeThreshold`) -- identical row markup and behavior
|
|
74
|
+
* either way, keyed by `id`.
|
|
75
|
+
*
|
|
76
|
+
* @customElement lr-ingestion-queue
|
|
77
|
+
* @event lr-retry - A row's retry affordance was activated (only rendered for `stage="failed"`
|
|
78
|
+
* rows). `detail: { itemId, attempt }` -- `attempt` is the attempt number about to be made.
|
|
79
|
+
* @event lr-cancel - A row's cancel affordance was activated (rendered for every non-terminal
|
|
80
|
+
* row). `detail: { itemId, reason }` -- `reason` is always `undefined` from this component.
|
|
81
|
+
* @csspart base - The root region.
|
|
82
|
+
* @csspart list - The row container in non-virtualized mode (`role="list"`).
|
|
83
|
+
* @csspart empty - The `<lr-empty>` zero-items state.
|
|
84
|
+
* @csspart item - One queue item row; carries `data-stage`. When virtualized, reached from this
|
|
85
|
+
* component's own stylesheet via `lr-virtual-list::part(item)` (renders inside the internal
|
|
86
|
+
* `<lr-virtual-list>`'s own shadow root, not this component's).
|
|
87
|
+
* @csspart item-header - The row's name/stage-badge line.
|
|
88
|
+
* @csspart item-name - The document's `name`.
|
|
89
|
+
* @csspart item-progress - The row's `<lr-progress-bar>`, only rendered for an active (uploading
|
|
90
|
+
* through indexing) stage.
|
|
91
|
+
* @csspart item-meta - Wrapper around the chunk-count/embedding-status/attempt-count text.
|
|
92
|
+
* @csspart item-chunk-count - The chunk count, only rendered once `chunkCount` is set.
|
|
93
|
+
* @csspart item-embedding-status - The "N of M chunks embedded" text, only rendered once both
|
|
94
|
+
* `chunkCount` and `embeddedChunkCount` are set.
|
|
95
|
+
* @csspart item-attempts - The attempt count, only rendered once `attempts` is greater than 0.
|
|
96
|
+
* @csspart item-error - The failure message, only rendered for `stage="failed"` with `error` set.
|
|
97
|
+
* @csspart item-actions - Wrapper around the retry/cancel buttons.
|
|
98
|
+
* @csspart retry-button - Fires `lr-retry`. Only rendered for `stage="failed"` rows.
|
|
99
|
+
* @csspart cancel-button - Fires `lr-cancel`. Only rendered for non-terminal rows.
|
|
100
|
+
* @cssprop [--lr-ingestion-queue-max-height=none] - Non-virtualized mode only: caps how tall the
|
|
101
|
+
* list grows before it scrolls internally. Has no effect once virtualized -- the internal
|
|
102
|
+
* `<lr-virtual-list>`'s own viewport keeps its independent, fixed default height (retheme it
|
|
103
|
+
* directly via `<lr-ingestion-queue>`'s own `lr-virtual-list { --lr-virtual-list-height: ... }`
|
|
104
|
+
* if needed).
|
|
105
|
+
*/
|
|
106
|
+
export class LyraIngestionQueue extends LyraElement {
|
|
107
|
+
constructor() {
|
|
108
|
+
super(...arguments);
|
|
109
|
+
/** The queue to render, in display order. Controlled and never mutated by this component --
|
|
110
|
+
* pass a new array (e.g. as ingestion progresses) to update it. */
|
|
111
|
+
this.items = [];
|
|
112
|
+
/** Accessible name for the region. Defaults to the localized `ingestionQueueLabel`. A host
|
|
113
|
+
* `aria-label` attribute wins over both. */
|
|
114
|
+
this.label = '';
|
|
115
|
+
/** At/above this item count, the list renders through an internal `<lr-virtual-list>`. */
|
|
116
|
+
this.virtualizeThreshold = DEFAULT_VIRTUALIZE_THRESHOLD;
|
|
117
|
+
this.itemTemplate = (item, ownRole) => {
|
|
118
|
+
const stageLabel = this.stageLabel(item.stage);
|
|
119
|
+
const showProgress = ACTIVE_STAGES.includes(item.stage);
|
|
120
|
+
const canRetry = item.stage === 'failed';
|
|
121
|
+
const canCancel = CANCELABLE_STAGES.includes(item.stage);
|
|
122
|
+
const hasMeta = item.chunkCount !== undefined || item.embeddedChunkCount !== undefined || (item.attempts ?? 0) > 0;
|
|
123
|
+
const indeterminate = item.progress === undefined || !Number.isFinite(item.progress);
|
|
124
|
+
return html `
|
|
125
|
+
<div part="item" role=${ownRole ? 'listitem' : nothing} data-stage=${item.stage}>
|
|
126
|
+
<div part="item-header">
|
|
127
|
+
<span part="item-name" title=${item.document.name}>${item.document.name}</span>
|
|
128
|
+
<lr-badge part="item-stage" variant=${badgeVariantForStage(item.stage)}>${stageLabel}</lr-badge>
|
|
129
|
+
</div>
|
|
130
|
+
${showProgress
|
|
131
|
+
? html `<lr-progress-bar
|
|
132
|
+
part="item-progress"
|
|
133
|
+
.value=${item.progress ?? 0}
|
|
134
|
+
?indeterminate=${indeterminate}
|
|
135
|
+
accessible-label=${this.localize('ingestionItemProgressLabel', undefined, {
|
|
136
|
+
name: item.document.name,
|
|
137
|
+
stage: stageLabel,
|
|
138
|
+
})}
|
|
139
|
+
></lr-progress-bar>`
|
|
140
|
+
: nothing}
|
|
141
|
+
${hasMeta
|
|
142
|
+
? html `<div part="item-meta">
|
|
143
|
+
${item.chunkCount !== undefined
|
|
144
|
+
? html `<span part="item-chunk-count">${this.chunkCountText(item.chunkCount)}</span>`
|
|
145
|
+
: nothing}
|
|
146
|
+
${item.chunkCount !== undefined && item.embeddedChunkCount !== undefined
|
|
147
|
+
? html `<span part="item-embedding-status"
|
|
148
|
+
>${this.localize('ingestionEmbeddedOfTotal', undefined, {
|
|
149
|
+
embedded: item.embeddedChunkCount,
|
|
150
|
+
total: item.chunkCount,
|
|
151
|
+
})}</span
|
|
152
|
+
>`
|
|
153
|
+
: nothing}
|
|
154
|
+
${(item.attempts ?? 0) > 0
|
|
155
|
+
? html `<span part="item-attempts"
|
|
156
|
+
>${this.localize('ingestionAttemptCount', undefined, { count: item.attempts })}</span
|
|
157
|
+
>`
|
|
158
|
+
: nothing}
|
|
159
|
+
</div>`
|
|
160
|
+
: nothing}
|
|
161
|
+
${item.stage === 'failed' && item.error
|
|
162
|
+
? html `<p part="item-error" role="alert">${item.error}</p>`
|
|
163
|
+
: nothing}
|
|
164
|
+
${canRetry || canCancel
|
|
165
|
+
? html `<div part="item-actions">
|
|
166
|
+
${canRetry
|
|
167
|
+
? html `<button
|
|
168
|
+
part="retry-button"
|
|
169
|
+
type="button"
|
|
170
|
+
aria-label=${this.localize('ingestionRetryWithContext', undefined, {
|
|
171
|
+
label: item.document.name,
|
|
172
|
+
})}
|
|
173
|
+
@click=${() => this.onRetryClick(item)}
|
|
174
|
+
>
|
|
175
|
+
${retryIcon()}<span>${this.localize('retry')}</span>
|
|
176
|
+
</button>`
|
|
177
|
+
: nothing}
|
|
178
|
+
${canCancel
|
|
179
|
+
? html `<button
|
|
180
|
+
part="cancel-button"
|
|
181
|
+
type="button"
|
|
182
|
+
aria-label=${this.localize('ingestionCancelWithContext', undefined, {
|
|
183
|
+
label: item.document.name,
|
|
184
|
+
})}
|
|
185
|
+
@click=${() => this.onCancelClick(item)}
|
|
186
|
+
>
|
|
187
|
+
${closeIcon()}<span>${this.localize('cancel')}</span>
|
|
188
|
+
</button>`
|
|
189
|
+
: nothing}
|
|
190
|
+
</div>`
|
|
191
|
+
: nothing}
|
|
192
|
+
</div>
|
|
193
|
+
`;
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
static { this.styles = [LyraElement.styles, styles]; }
|
|
197
|
+
/** `virtualizeThreshold`, normalized to a finite non-negative integer (falling back to the
|
|
198
|
+
* property's own default) -- a raw `NaN` (e.g. an invalid `virtualize-threshold` attribute)
|
|
199
|
+
* would otherwise make `items.length >= virtualizeThreshold` always false, silently disabling
|
|
200
|
+
* virtualization instead of falling back to the default threshold. */
|
|
201
|
+
get effectiveVirtualizeThreshold() {
|
|
202
|
+
return finiteCount(this.virtualizeThreshold, DEFAULT_VIRTUALIZE_THRESHOLD);
|
|
203
|
+
}
|
|
204
|
+
get isVirtualized() {
|
|
205
|
+
return this.items.length >= this.effectiveVirtualizeThreshold;
|
|
206
|
+
}
|
|
207
|
+
stageLabel(stage) {
|
|
208
|
+
switch (stage) {
|
|
209
|
+
case 'queued':
|
|
210
|
+
return this.localize('ingestionStageQueued');
|
|
211
|
+
case 'uploading':
|
|
212
|
+
return this.localize('ingestionStageUploading');
|
|
213
|
+
case 'extracting':
|
|
214
|
+
return this.localize('ingestionStageExtracting');
|
|
215
|
+
case 'chunking':
|
|
216
|
+
return this.localize('ingestionStageChunking');
|
|
217
|
+
case 'embedding':
|
|
218
|
+
return this.localize('ingestionStageEmbedding');
|
|
219
|
+
case 'indexing':
|
|
220
|
+
return this.localize('ingestionStageIndexing');
|
|
221
|
+
case 'done':
|
|
222
|
+
return this.localize('ingestionStageDone');
|
|
223
|
+
case 'failed':
|
|
224
|
+
return this.localize('ingestionStageFailed');
|
|
225
|
+
case 'cancelled':
|
|
226
|
+
return this.localize('ingestionStageCancelled');
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
chunkCountText(count) {
|
|
230
|
+
const plural = getPluralRules(this.effectiveLocale).select(count) !== 'one';
|
|
231
|
+
return plural
|
|
232
|
+
? this.localize('ingestionChunkCountPlural', undefined, { count })
|
|
233
|
+
: this.localize('ingestionChunkCount', undefined, { count });
|
|
234
|
+
}
|
|
235
|
+
onRetryClick(item) {
|
|
236
|
+
this.emit('lr-retry', { itemId: item.id, attempt: (item.attempts ?? 0) + 1 });
|
|
237
|
+
}
|
|
238
|
+
onCancelClick(item) {
|
|
239
|
+
this.emit('lr-cancel', { itemId: item.id });
|
|
240
|
+
}
|
|
241
|
+
render() {
|
|
242
|
+
const computedLabel = this.label || this.localize('ingestionQueueLabel');
|
|
243
|
+
const ariaLabel = this.getAttribute('aria-label') || computedLabel;
|
|
244
|
+
if (this.items.length === 0) {
|
|
245
|
+
return html `<lr-empty
|
|
246
|
+
part="empty"
|
|
247
|
+
heading=${this.localize('ingestionQueueEmpty')}
|
|
248
|
+
></lr-empty>`;
|
|
249
|
+
}
|
|
250
|
+
const virtualized = this.isVirtualized;
|
|
251
|
+
return html `
|
|
252
|
+
<div part="base" role="region" aria-label=${ariaLabel}>
|
|
253
|
+
${virtualized
|
|
254
|
+
? html `<lr-virtual-list
|
|
255
|
+
.items=${this.items}
|
|
256
|
+
.renderItem=${(item) => this.itemTemplate(item, false)}
|
|
257
|
+
.keyFunction=${(item) => item.id}
|
|
258
|
+
aria-label=${ariaLabel}
|
|
259
|
+
></lr-virtual-list>`
|
|
260
|
+
: html `<div part="list" role="list" aria-label=${ariaLabel}>
|
|
261
|
+
${repeat(this.items, (item) => item.id, (item) => this.itemTemplate(item, true))}
|
|
262
|
+
</div>`}
|
|
263
|
+
</div>
|
|
264
|
+
`;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
__decorate([
|
|
268
|
+
property({ attribute: false })
|
|
269
|
+
], LyraIngestionQueue.prototype, "items", void 0);
|
|
270
|
+
__decorate([
|
|
271
|
+
property()
|
|
272
|
+
], LyraIngestionQueue.prototype, "label", void 0);
|
|
273
|
+
__decorate([
|
|
274
|
+
property({ type: Number, attribute: 'virtualize-threshold' })
|
|
275
|
+
], LyraIngestionQueue.prototype, "virtualizeThreshold", void 0);
|
|
276
|
+
//# sourceMappingURL=ingestion-queue.class.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ingestion-queue.class.js","sourceRoot":"","sources":["../../../src/components/ingestion-queue/ingestion-queue.class.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAA+C,MAAM,KAAK,CAAC;AACtF,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AA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AAC,CAAC;QACzE,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,IAAI,aAAa,CAAC;QAEnE,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC5B,OAAO,IAAI,CAAA;;kBAEC,IAAI,CAAC,QAAQ,CAAC,qBAAqB,CAAC;mBACnC,CAAC;QAChB,CAAC;QAED,MAAM,WAAW,GAAG,IAAI,CAAC,aAAa,CAAC;QACvC,OAAO,IAAI,CAAA;kDACmC,SAAS;UACjD,WAAW;YACX,CAAC,CAAC,IAAI,CAAA;uBACO,IAAI,CAAC,KAAK;4BACL,CAAC,IAAa,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,IAA0B,EAAE,KAAK,CAAC;6BACtE,CAAC,IAAa,EAAE,EAAE,CAAE,IAA2B,CAAC,EAAE;2BACpD,SAAS;gCACJ;YACtB,CAAC,CAAC,IAAI,CAAA,2CAA2C,SAAS;gBACpD,MAAM,CACN,IAAI,CAAC,KAAK,EACV,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,EACjB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,CACxC;mBACI;;KAEd,CAAC;IACJ,CAAC;CACF;AA3KiC;IAA/B,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;iDAAkC;AAIrD;IAAX,QAAQ,EAAE;iDAAY;AAGwC;IAA9D,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,sBAAsB,EAAE,CAAC;+DAAoD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ingestion-queue.d.ts","sourceRoot":"","sources":["../../../src/components/ingestion-queue/ingestion-queue.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from './ingestion-queue.class.js';
|
|
2
|
+
import { LyraIngestionQueue } from './ingestion-queue.class.js';
|
|
3
|
+
import { defineElement } from '../../internal/prefix.js';
|
|
4
|
+
defineElement('ingestion-queue', LyraIngestionQueue);
|
|
5
|
+
//# sourceMappingURL=ingestion-queue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ingestion-queue.js","sourceRoot":"","sources":["../../../src/components/ingestion-queue/ingestion-queue.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,aAAa,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ingestion-queue.styles.d.ts","sourceRoot":"","sources":["../../../src/components/ingestion-queue/ingestion-queue.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,yBAuIlB,CAAC"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export const styles = css `
|
|
3
|
+
:host {
|
|
4
|
+
display: block;
|
|
5
|
+
--lr-ingestion-queue-max-height: none;
|
|
6
|
+
}
|
|
7
|
+
[part='base'] {
|
|
8
|
+
display: block;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
}
|
|
11
|
+
[part='list'] {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
max-block-size: var(--lr-ingestion-queue-max-height);
|
|
16
|
+
overflow-y: auto;
|
|
17
|
+
}
|
|
18
|
+
/* Deliberately NOT derived from --lr-ingestion-queue-max-height (whose own default is the
|
|
19
|
+
keyword 'none', valid for [part='list']'s max-block-size above but not for a length-only
|
|
20
|
+
custom property): chaining var(--lr-ingestion-queue-max-height, var(--lr-size-24rem)) here
|
|
21
|
+
would make that 'none' win unconditionally (a var() fallback only applies when the referenced
|
|
22
|
+
property is *unset*, not when it resolves to a keyword that happens to be invalid for this
|
|
23
|
+
use), leaving --lr-virtual-list-height literally 'none' -- an invalid block-size that resolves
|
|
24
|
+
to 'auto', which is the one sizing lr-virtual-list's own windowing math cannot tolerate: its
|
|
25
|
+
viewport height would then depend on its rendered rows' height while the rendered rows
|
|
26
|
+
themselves depend on the viewport height, a genuine circular layout dependency that surfaces
|
|
27
|
+
as a real "ResizeObserver loop completed with undelivered notifications" browser error, not
|
|
28
|
+
mere test flakiness. A fixed token default, independent of the non-virtualized list's own cap,
|
|
29
|
+
is the same choice <lr-dataset-viewer>'s own lr-virtual-list sizing rule makes. */
|
|
30
|
+
lr-virtual-list {
|
|
31
|
+
display: block;
|
|
32
|
+
--lr-virtual-list-height: var(--lr-size-24rem);
|
|
33
|
+
}
|
|
34
|
+
/* [part='item'] and its descendants below also target lr-virtual-list::part(x): above
|
|
35
|
+
virtualize-threshold, itemTemplate()'s return value is <lr-virtual-list>'s .renderItem, and
|
|
36
|
+
Lit commits that content wherever virtual-list's own render() is currently updating --
|
|
37
|
+
i.e. inside *its* shadow root, not this component's. A plain [part=] selector here, scoped
|
|
38
|
+
to this component's own shadow root, would never match a node living in that different
|
|
39
|
+
shadow tree; lr-virtual-list::part(x) reaches that one shadow boundary in, the same
|
|
40
|
+
technique <lr-dataset-viewer>/<lr-terminal> already use for their own virtualized rows. */
|
|
41
|
+
[part='item'],
|
|
42
|
+
lr-virtual-list::part(item) {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
gap: var(--lr-space-xs);
|
|
46
|
+
box-sizing: border-box;
|
|
47
|
+
padding: var(--lr-space-s) var(--lr-space-m);
|
|
48
|
+
border-block-end: var(--lr-border-width-thin) solid var(--lr-color-border);
|
|
49
|
+
}
|
|
50
|
+
[part='item-header'],
|
|
51
|
+
lr-virtual-list::part(item-header) {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-wrap: wrap;
|
|
54
|
+
align-items: center;
|
|
55
|
+
justify-content: space-between;
|
|
56
|
+
gap: var(--lr-space-s);
|
|
57
|
+
}
|
|
58
|
+
[part='item-name'],
|
|
59
|
+
lr-virtual-list::part(item-name) {
|
|
60
|
+
min-inline-size: 0;
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
text-overflow: ellipsis;
|
|
63
|
+
white-space: nowrap;
|
|
64
|
+
font-weight: var(--lr-font-weight-medium);
|
|
65
|
+
color: var(--lr-color-text);
|
|
66
|
+
}
|
|
67
|
+
[part='item-progress'],
|
|
68
|
+
lr-virtual-list::part(item-progress) {
|
|
69
|
+
display: block;
|
|
70
|
+
}
|
|
71
|
+
[part='item-meta'],
|
|
72
|
+
lr-virtual-list::part(item-meta) {
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-wrap: wrap;
|
|
75
|
+
gap: var(--lr-space-s);
|
|
76
|
+
font-size: var(--lr-font-size-xs);
|
|
77
|
+
color: var(--lr-color-text-quiet);
|
|
78
|
+
}
|
|
79
|
+
[part='item-error'],
|
|
80
|
+
lr-virtual-list::part(item-error) {
|
|
81
|
+
margin: 0;
|
|
82
|
+
color: var(--lr-color-danger);
|
|
83
|
+
font-size: var(--lr-font-size-sm);
|
|
84
|
+
}
|
|
85
|
+
[part='item-actions'],
|
|
86
|
+
lr-virtual-list::part(item-actions) {
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-wrap: wrap;
|
|
89
|
+
gap: var(--lr-space-s);
|
|
90
|
+
}
|
|
91
|
+
[part='retry-button'],
|
|
92
|
+
lr-virtual-list::part(retry-button),
|
|
93
|
+
[part='cancel-button'],
|
|
94
|
+
lr-virtual-list::part(cancel-button) {
|
|
95
|
+
display: inline-flex;
|
|
96
|
+
align-items: center;
|
|
97
|
+
gap: var(--lr-size-0-35em);
|
|
98
|
+
box-sizing: border-box;
|
|
99
|
+
padding: var(--lr-size-0-25rem) var(--lr-space-s);
|
|
100
|
+
border: var(--lr-border-width-thin) solid var(--lr-color-border);
|
|
101
|
+
border-radius: var(--lr-radius-pill);
|
|
102
|
+
background: var(--lr-color-surface);
|
|
103
|
+
color: var(--lr-color-text);
|
|
104
|
+
font: inherit;
|
|
105
|
+
font-size: var(--lr-font-size-xs);
|
|
106
|
+
cursor: pointer;
|
|
107
|
+
transition:
|
|
108
|
+
background-color var(--lr-transition-fast),
|
|
109
|
+
border-color var(--lr-transition-fast),
|
|
110
|
+
color var(--lr-transition-fast);
|
|
111
|
+
}
|
|
112
|
+
[part='retry-button']:hover,
|
|
113
|
+
lr-virtual-list::part(retry-button):hover {
|
|
114
|
+
border-color: var(--lr-color-brand);
|
|
115
|
+
color: var(--lr-color-brand);
|
|
116
|
+
}
|
|
117
|
+
[part='cancel-button']:hover,
|
|
118
|
+
lr-virtual-list::part(cancel-button):hover {
|
|
119
|
+
border-color: var(--lr-color-danger);
|
|
120
|
+
color: var(--lr-color-danger);
|
|
121
|
+
}
|
|
122
|
+
[part='retry-button']:focus-visible,
|
|
123
|
+
lr-virtual-list::part(retry-button):focus-visible,
|
|
124
|
+
[part='cancel-button']:focus-visible,
|
|
125
|
+
lr-virtual-list::part(cancel-button):focus-visible {
|
|
126
|
+
outline: var(--lr-focus-ring-width) solid var(--lr-focus-ring-color);
|
|
127
|
+
outline-offset: var(--lr-focus-ring-offset);
|
|
128
|
+
}
|
|
129
|
+
@media (prefers-reduced-motion: reduce) {
|
|
130
|
+
[part='retry-button'],
|
|
131
|
+
lr-virtual-list::part(retry-button),
|
|
132
|
+
[part='cancel-button'],
|
|
133
|
+
lr-virtual-list::part(cancel-button) {
|
|
134
|
+
transition: none !important;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
`;
|
|
138
|
+
//# sourceMappingURL=ingestion-queue.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ingestion-queue.styles.js","sourceRoot":"","sources":["../../../src/components/ingestion-queue/ingestion-queue.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuIxB,CAAC"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import { LyraElement } from '../../internal/lyra-element.js';
|
|
3
|
+
import '../table/table.js';
|
|
4
|
+
import '../badge/badge.js';
|
|
5
|
+
import '../stat/stat.js';
|
|
6
|
+
import '../menu/menu.js';
|
|
7
|
+
import '../button/button.js';
|
|
8
|
+
/** Sync lifecycle state of one knowledge source, as last reported by the host. */
|
|
9
|
+
export type KnowledgeSourceSyncStatus = 'idle' | 'syncing' | 'paused' | 'synced' | 'error';
|
|
10
|
+
/** Health of the most recent indexing pass over a source's content, as last reported by the host. */
|
|
11
|
+
export type KnowledgeSourceIndexingHealth = 'healthy' | 'degraded' | 'failed' | 'unknown';
|
|
12
|
+
/** The current viewer's access level on a source -- informational only (see the class doc's
|
|
13
|
+
* authorization note). */
|
|
14
|
+
export type KnowledgeSourcePermission = 'owner' | 'editor' | 'viewer' | 'restricted';
|
|
15
|
+
/**
|
|
16
|
+
* One connected knowledge-base source (e.g. a Drive/Notion connector, an uploaded document set, a
|
|
17
|
+
* crawled URL). `id`/`name` follow the same spirit as `DocumentRef` (`src/ai/types.ts`) -- a stable
|
|
18
|
+
* identity plus a display name -- but a source is a *connector feeding* documents into the
|
|
19
|
+
* knowledge base, not a document itself, so the remaining fields are its own.
|
|
20
|
+
*/
|
|
21
|
+
export interface KnowledgeSource {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
/** Free-form connector/source kind (e.g. `'drive'`, `'notion'`, `'upload'`, `'url'`) --
|
|
25
|
+
* consumer-defined and rendered as-is (not routed through `localize()` -- caller-supplied data,
|
|
26
|
+
* not library copy). Omit when there's nothing meaningful to show. */
|
|
27
|
+
type?: string;
|
|
28
|
+
syncStatus: KnowledgeSourceSyncStatus;
|
|
29
|
+
/** Omitted/absent is treated the same as `'unknown'`. */
|
|
30
|
+
indexingHealth?: KnowledgeSourceIndexingHealth;
|
|
31
|
+
permission?: KnowledgeSourcePermission;
|
|
32
|
+
documentCount?: number;
|
|
33
|
+
/** Epoch milliseconds or an ISO-8601 string, matching `ChatThread`/`ChatMessage`'s own
|
|
34
|
+
* `Date | string` timestamp convention elsewhere in this library. Omitted/unparseable renders as
|
|
35
|
+
* "never synced". */
|
|
36
|
+
lastSyncedAt?: Date | string;
|
|
37
|
+
/** Shown only while `syncStatus` is `'error'`. Caller-supplied data, not routed through
|
|
38
|
+
* `localize()`. */
|
|
39
|
+
errorMessage?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface LyraKnowledgeBaseEventMap {
|
|
42
|
+
/** The toolbar's "Add source" affordance was activated. No `sourceId` -- there is nothing yet to
|
|
43
|
+
* reference; the host owns the actual creation flow (naming, connector picking, ...). */
|
|
44
|
+
'lr-kb-create': CustomEvent<undefined>;
|
|
45
|
+
/** A row's "Sync now" action was activated. */
|
|
46
|
+
'lr-kb-sync': CustomEvent<{
|
|
47
|
+
sourceId: string;
|
|
48
|
+
}>;
|
|
49
|
+
/** A row's "Pause sync" action was activated. */
|
|
50
|
+
'lr-kb-pause': CustomEvent<{
|
|
51
|
+
sourceId: string;
|
|
52
|
+
}>;
|
|
53
|
+
/** A row's "Delete source" action was activated. No built-in confirmation, matching
|
|
54
|
+
* `lr-thread-list`'s identical `lr-thread-delete` contract. */
|
|
55
|
+
'lr-kb-delete': CustomEvent<{
|
|
56
|
+
sourceId: string;
|
|
57
|
+
}>;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* `<lr-knowledge-base>` — a source list for a retrieval knowledge base: sync status, indexing
|
|
61
|
+
* health, permissions, and per-row create/sync/pause/delete affordances. A controlled data view,
|
|
62
|
+
* like every other Lyra data component: it never syncs or indexes anything itself, only presents
|
|
63
|
+
* `sources` and emits request-only events (`lr-kb-create`/`-sync`/`-pause`/`-delete`) for the host
|
|
64
|
+
* to act on and reflect back into a new `sources` value -- mirrors `lr-thread-list`'s
|
|
65
|
+
* `lr-thread-pin`/`-archive`/`-delete` convention exactly.
|
|
66
|
+
*
|
|
67
|
+
* `permission` is rendered informationally only (a badge in the permission column); this component
|
|
68
|
+
* does not gate the per-row action menu by it -- authorization enforcement is the host's own
|
|
69
|
+
* concern, consistent with the controlled/presentational-only contract above. A `'syncing'` row's
|
|
70
|
+
* "Sync now" action is disabled (a sync is already running); every other row's is enabled,
|
|
71
|
+
* including `'error'`, so re-running a failed sync is one click. "Pause sync" is enabled only while
|
|
72
|
+
* `'syncing'`.
|
|
73
|
+
*
|
|
74
|
+
* Composes `<lr-table>` for the source list (its own click/keydown delegation already treats any
|
|
75
|
+
* custom-element or `role="menuitem"` cell content as interactive, so the per-row `<lr-menu>` never
|
|
76
|
+
* misfires the table's row-click handling), `<lr-badge>` for the sync-status/indexing-health/
|
|
77
|
+
* permission indicators, `<lr-stat>` for the aggregate summary row above the table, and `<lr-menu>`
|
|
78
|
+
* for the per-row action affordances. The table's own `lr-row-click` is intentionally stopped from
|
|
79
|
+
* propagating further (this component doesn't expose row-click/selection semantics -- only the
|
|
80
|
+
* per-row action menu is interactive).
|
|
81
|
+
*
|
|
82
|
+
* @customElement lr-knowledge-base
|
|
83
|
+
* @event lr-kb-create - The toolbar "Add source" affordance was activated. No detail.
|
|
84
|
+
* @event lr-kb-sync - A row's "Sync now" action was activated. `detail: { sourceId }`.
|
|
85
|
+
* @event lr-kb-pause - A row's "Pause sync" action was activated. `detail: { sourceId }`.
|
|
86
|
+
* @event lr-kb-delete - A row's "Delete source" action was activated. `detail: { sourceId }`.
|
|
87
|
+
* @csspart base - The root.
|
|
88
|
+
* @csspart toolbar - The heading + "Add source" row.
|
|
89
|
+
* @csspart heading - The heading text.
|
|
90
|
+
* @csspart create-button - The "Add source" `<lr-button>`, omitted while `hideCreate` is set.
|
|
91
|
+
* @csspart summary - The aggregate-stats row, omitted while `hideSummary` is set or `sources` is empty.
|
|
92
|
+
* @csspart summary-stat - One `<lr-stat>` inside `summary`.
|
|
93
|
+
* @csspart table - The `<lr-table>` listing every source.
|
|
94
|
+
* @csspart name-cell - A row's source-name cell wrapper.
|
|
95
|
+
* @csspart source-name - The source's name text.
|
|
96
|
+
* @csspart source-type - The source's `type` text, omitted when unset.
|
|
97
|
+
* @csspart sync-cell - A row's sync-status cell wrapper.
|
|
98
|
+
* @csspart sync-badge - The sync-status `<lr-badge>`.
|
|
99
|
+
* @csspart sync-timestamp - The formatted `lastSyncedAt` text (or a "never synced" fallback).
|
|
100
|
+
* @csspart sync-error - The `errorMessage` text, shown only while `syncStatus` is `'error'` and it's set.
|
|
101
|
+
* @csspart health-cell - A row's indexing-health cell wrapper.
|
|
102
|
+
* @csspart health-badge - The indexing-health `<lr-badge>`.
|
|
103
|
+
* @csspart document-count - The formatted `documentCount` text, omitted when unset.
|
|
104
|
+
* @csspart permission-badge - The permission `<lr-badge>`, omitted when `permission` is unset.
|
|
105
|
+
* @csspart actions-menu - A row's `<lr-menu>`.
|
|
106
|
+
* @csspart actions-trigger - The kebab `<button>` opening a row's action menu.
|
|
107
|
+
*/
|
|
108
|
+
export declare class LyraKnowledgeBase extends LyraElement<LyraKnowledgeBaseEventMap> {
|
|
109
|
+
static styles: import("lit").CSSResultGroup[];
|
|
110
|
+
/** The sources to list, in display order. */
|
|
111
|
+
sources: KnowledgeSource[];
|
|
112
|
+
/** Heading text and the table's accessible name. Falls back to a localized default. */
|
|
113
|
+
label: string;
|
|
114
|
+
/** Hides the aggregate summary row (total/synced/syncing/needs-attention). */
|
|
115
|
+
hideSummary: boolean;
|
|
116
|
+
/** Hides the toolbar's "Add source" affordance, e.g. for a read-only or permission-gated view. */
|
|
117
|
+
hideCreate: boolean;
|
|
118
|
+
private syncStatusLabel;
|
|
119
|
+
private healthLabel;
|
|
120
|
+
private permissionLabel;
|
|
121
|
+
private renderNameCell;
|
|
122
|
+
private renderSyncCell;
|
|
123
|
+
private renderHealthCell;
|
|
124
|
+
private renderPermissionCell;
|
|
125
|
+
private onRowAction;
|
|
126
|
+
private renderActionsCell;
|
|
127
|
+
private tableColumns;
|
|
128
|
+
private renderSummary;
|
|
129
|
+
render(): TemplateResult;
|
|
130
|
+
}
|
|
131
|
+
declare global {
|
|
132
|
+
interface HTMLElementTagNameMap {
|
|
133
|
+
'lr-knowledge-base': LyraKnowledgeBase;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
//# sourceMappingURL=knowledge-base.class.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knowledge-base.class.d.ts","sourceRoot":"","sources":["../../../src/components/knowledge-base/knowledge-base.class.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8C,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAEtF,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAK7D,OAAO,mBAAmB,CAAC;AAE3B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,iBAAiB,CAAC;AAEzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,qBAAqB,CAAC;AAE7B,kFAAkF;AAClF,MAAM,MAAM,yBAAyB,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE3F,qGAAqG;AACrG,MAAM,MAAM,6BAA6B,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE1F;2BAC2B;AAC3B,MAAM,MAAM,yBAAyB,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,YAAY,CAAC;AAErF;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B,EAAE,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