@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.
Files changed (356) hide show
  1. package/README.md +1 -0
  2. package/custom-elements.json +49430 -32305
  3. package/dist/ai/types.contract.d.ts +2 -0
  4. package/dist/ai/types.contract.d.ts.map +1 -0
  5. package/dist/ai/types.contract.js +139 -0
  6. package/dist/ai/types.contract.js.map +1 -0
  7. package/dist/ai/types.d.ts +199 -0
  8. package/dist/ai/types.d.ts.map +1 -0
  9. package/dist/ai/types.js +2 -0
  10. package/dist/ai/types.js.map +1 -0
  11. package/dist/components/agent-run/agent-run.class.d.ts +158 -0
  12. package/dist/components/agent-run/agent-run.class.d.ts.map +1 -0
  13. package/dist/components/agent-run/agent-run.class.js +400 -0
  14. package/dist/components/agent-run/agent-run.class.js.map +1 -0
  15. package/dist/components/agent-run/agent-run.d.ts +2 -0
  16. package/dist/components/agent-run/agent-run.d.ts.map +1 -0
  17. package/dist/components/agent-run/agent-run.js +5 -0
  18. package/dist/components/agent-run/agent-run.js.map +1 -0
  19. package/dist/components/agent-run/agent-run.styles.d.ts +2 -0
  20. package/dist/components/agent-run/agent-run.styles.d.ts.map +1 -0
  21. package/dist/components/agent-run/agent-run.styles.js +143 -0
  22. package/dist/components/agent-run/agent-run.styles.js.map +1 -0
  23. package/dist/components/agent-trace/agent-trace.class.d.ts +111 -0
  24. package/dist/components/agent-trace/agent-trace.class.d.ts.map +1 -0
  25. package/dist/components/agent-trace/agent-trace.class.js +221 -0
  26. package/dist/components/agent-trace/agent-trace.class.js.map +1 -0
  27. package/dist/components/agent-trace/agent-trace.d.ts +5 -0
  28. package/dist/components/agent-trace/agent-trace.d.ts.map +1 -0
  29. package/dist/components/agent-trace/agent-trace.js +8 -0
  30. package/dist/components/agent-trace/agent-trace.js.map +1 -0
  31. package/dist/components/agent-trace/agent-trace.styles.d.ts +2 -0
  32. package/dist/components/agent-trace/agent-trace.styles.d.ts.map +1 -0
  33. package/dist/components/agent-trace/agent-trace.styles.js +61 -0
  34. package/dist/components/agent-trace/agent-trace.styles.js.map +1 -0
  35. package/dist/components/app-rail/app-rail.styles.d.ts.map +1 -1
  36. package/dist/components/app-rail/app-rail.styles.js +4 -0
  37. package/dist/components/app-rail/app-rail.styles.js.map +1 -1
  38. package/dist/components/chat-message/chat-message.class.d.ts +37 -3
  39. package/dist/components/chat-message/chat-message.class.d.ts.map +1 -1
  40. package/dist/components/chat-message/chat-message.class.js +89 -7
  41. package/dist/components/chat-message/chat-message.class.js.map +1 -1
  42. package/dist/components/chat-message/chat-message.styles.d.ts.map +1 -1
  43. package/dist/components/chat-message/chat-message.styles.js +14 -0
  44. package/dist/components/chat-message/chat-message.styles.js.map +1 -1
  45. package/dist/components/context-inspector/context-inspector.class.d.ts +114 -0
  46. package/dist/components/context-inspector/context-inspector.class.d.ts.map +1 -0
  47. package/dist/components/context-inspector/context-inspector.class.js +222 -0
  48. package/dist/components/context-inspector/context-inspector.class.js.map +1 -0
  49. package/dist/components/context-inspector/context-inspector.d.ts +7 -0
  50. package/dist/components/context-inspector/context-inspector.d.ts.map +1 -0
  51. package/dist/components/context-inspector/context-inspector.js +10 -0
  52. package/dist/components/context-inspector/context-inspector.js.map +1 -0
  53. package/dist/components/context-inspector/context-inspector.styles.d.ts +2 -0
  54. package/dist/components/context-inspector/context-inspector.styles.d.ts.map +1 -0
  55. package/dist/components/context-inspector/context-inspector.styles.js +98 -0
  56. package/dist/components/context-inspector/context-inspector.styles.js.map +1 -0
  57. package/dist/components/dashboard-grid/dashboard-grid.class.d.ts +162 -0
  58. package/dist/components/dashboard-grid/dashboard-grid.class.d.ts.map +1 -0
  59. package/dist/components/dashboard-grid/dashboard-grid.class.js +570 -0
  60. package/dist/components/dashboard-grid/dashboard-grid.class.js.map +1 -0
  61. package/dist/components/dashboard-grid/dashboard-grid.d.ts +6 -0
  62. package/dist/components/dashboard-grid/dashboard-grid.d.ts.map +1 -0
  63. package/dist/components/dashboard-grid/dashboard-grid.js +9 -0
  64. package/dist/components/dashboard-grid/dashboard-grid.js.map +1 -0
  65. package/dist/components/dashboard-grid/dashboard-grid.styles.d.ts +2 -0
  66. package/dist/components/dashboard-grid/dashboard-grid.styles.d.ts.map +1 -0
  67. package/dist/components/dashboard-grid/dashboard-grid.styles.js +86 -0
  68. package/dist/components/dashboard-grid/dashboard-grid.styles.js.map +1 -0
  69. package/dist/components/dashboard-grid/layout.d.ts +103 -0
  70. package/dist/components/dashboard-grid/layout.d.ts.map +1 -0
  71. package/dist/components/dashboard-grid/layout.js +94 -0
  72. package/dist/components/dashboard-grid/layout.js.map +1 -0
  73. package/dist/components/date-picker/date-input.class.d.ts +8 -0
  74. package/dist/components/date-picker/date-input.class.d.ts.map +1 -1
  75. package/dist/components/date-picker/date-input.class.js +10 -0
  76. package/dist/components/date-picker/date-input.class.js.map +1 -1
  77. package/dist/components/date-picker/date-input.styles.d.ts.map +1 -1
  78. package/dist/components/date-picker/date-input.styles.js +39 -2
  79. package/dist/components/date-picker/date-input.styles.js.map +1 -1
  80. package/dist/components/document-compare/document-compare.class.d.ts +131 -0
  81. package/dist/components/document-compare/document-compare.class.d.ts.map +1 -0
  82. package/dist/components/document-compare/document-compare.class.js +214 -0
  83. package/dist/components/document-compare/document-compare.class.js.map +1 -0
  84. package/dist/components/document-compare/document-compare.d.ts +2 -0
  85. package/dist/components/document-compare/document-compare.d.ts.map +1 -0
  86. package/dist/components/document-compare/document-compare.js +5 -0
  87. package/dist/components/document-compare/document-compare.js.map +1 -0
  88. package/dist/components/document-compare/document-compare.styles.d.ts +2 -0
  89. package/dist/components/document-compare/document-compare.styles.d.ts.map +1 -0
  90. package/dist/components/document-compare/document-compare.styles.js +65 -0
  91. package/dist/components/document-compare/document-compare.styles.js.map +1 -0
  92. package/dist/components/document-library/document-library.class.d.ts +154 -0
  93. package/dist/components/document-library/document-library.class.d.ts.map +1 -0
  94. package/dist/components/document-library/document-library.class.js +399 -0
  95. package/dist/components/document-library/document-library.class.js.map +1 -0
  96. package/dist/components/document-library/document-library.d.ts +9 -0
  97. package/dist/components/document-library/document-library.d.ts.map +1 -0
  98. package/dist/components/document-library/document-library.js +12 -0
  99. package/dist/components/document-library/document-library.js.map +1 -0
  100. package/dist/components/document-library/document-library.styles.d.ts +2 -0
  101. package/dist/components/document-library/document-library.styles.d.ts.map +1 -0
  102. package/dist/components/document-library/document-library.styles.js +77 -0
  103. package/dist/components/document-library/document-library.styles.js.map +1 -0
  104. package/dist/components/drilldown-panel/drilldown-panel.class.d.ts +148 -0
  105. package/dist/components/drilldown-panel/drilldown-panel.class.d.ts.map +1 -0
  106. package/dist/components/drilldown-panel/drilldown-panel.class.js +241 -0
  107. package/dist/components/drilldown-panel/drilldown-panel.class.js.map +1 -0
  108. package/dist/components/drilldown-panel/drilldown-panel.d.ts +9 -0
  109. package/dist/components/drilldown-panel/drilldown-panel.d.ts.map +1 -0
  110. package/dist/components/drilldown-panel/drilldown-panel.js +12 -0
  111. package/dist/components/drilldown-panel/drilldown-panel.js.map +1 -0
  112. package/dist/components/drilldown-panel/drilldown-panel.styles.d.ts +2 -0
  113. package/dist/components/drilldown-panel/drilldown-panel.styles.d.ts.map +1 -0
  114. package/dist/components/drilldown-panel/drilldown-panel.styles.js +49 -0
  115. package/dist/components/drilldown-panel/drilldown-panel.styles.js.map +1 -0
  116. package/dist/components/entity-dossier/entity-dossier.class.d.ts +132 -0
  117. package/dist/components/entity-dossier/entity-dossier.class.d.ts.map +1 -0
  118. package/dist/components/entity-dossier/entity-dossier.class.js +187 -0
  119. package/dist/components/entity-dossier/entity-dossier.class.js.map +1 -0
  120. package/dist/components/entity-dossier/entity-dossier.d.ts +9 -0
  121. package/dist/components/entity-dossier/entity-dossier.d.ts.map +1 -0
  122. package/dist/components/entity-dossier/entity-dossier.js +12 -0
  123. package/dist/components/entity-dossier/entity-dossier.js.map +1 -0
  124. package/dist/components/entity-dossier/entity-dossier.styles.d.ts +2 -0
  125. package/dist/components/entity-dossier/entity-dossier.styles.d.ts.map +1 -0
  126. package/dist/components/entity-dossier/entity-dossier.styles.js +30 -0
  127. package/dist/components/entity-dossier/entity-dossier.styles.js.map +1 -0
  128. package/dist/components/eval-dataset/eval-dataset.class.d.ts +145 -0
  129. package/dist/components/eval-dataset/eval-dataset.class.d.ts.map +1 -0
  130. package/dist/components/eval-dataset/eval-dataset.class.js +307 -0
  131. package/dist/components/eval-dataset/eval-dataset.class.js.map +1 -0
  132. package/dist/components/eval-dataset/eval-dataset.d.ts +7 -0
  133. package/dist/components/eval-dataset/eval-dataset.d.ts.map +1 -0
  134. package/dist/components/eval-dataset/eval-dataset.js +10 -0
  135. package/dist/components/eval-dataset/eval-dataset.js.map +1 -0
  136. package/dist/components/eval-dataset/eval-dataset.styles.d.ts +2 -0
  137. package/dist/components/eval-dataset/eval-dataset.styles.d.ts.map +1 -0
  138. package/dist/components/eval-dataset/eval-dataset.styles.js +76 -0
  139. package/dist/components/eval-dataset/eval-dataset.styles.js.map +1 -0
  140. package/dist/components/eval-result/eval-result.class.d.ts +115 -0
  141. package/dist/components/eval-result/eval-result.class.d.ts.map +1 -0
  142. package/dist/components/eval-result/eval-result.class.js +165 -0
  143. package/dist/components/eval-result/eval-result.class.js.map +1 -0
  144. package/dist/components/eval-result/eval-result.d.ts +5 -0
  145. package/dist/components/eval-result/eval-result.d.ts.map +1 -0
  146. package/dist/components/eval-result/eval-result.js +8 -0
  147. package/dist/components/eval-result/eval-result.js.map +1 -0
  148. package/dist/components/eval-result/eval-result.styles.d.ts +2 -0
  149. package/dist/components/eval-result/eval-result.styles.d.ts.map +1 -0
  150. package/dist/components/eval-result/eval-result.styles.js +47 -0
  151. package/dist/components/eval-result/eval-result.styles.js.map +1 -0
  152. package/dist/components/evaluation-run/evaluation-run.class.d.ts +168 -0
  153. package/dist/components/evaluation-run/evaluation-run.class.d.ts.map +1 -0
  154. package/dist/components/evaluation-run/evaluation-run.class.js +329 -0
  155. package/dist/components/evaluation-run/evaluation-run.class.js.map +1 -0
  156. package/dist/components/evaluation-run/evaluation-run.d.ts +2 -0
  157. package/dist/components/evaluation-run/evaluation-run.d.ts.map +1 -0
  158. package/dist/components/evaluation-run/evaluation-run.js +5 -0
  159. package/dist/components/evaluation-run/evaluation-run.js.map +1 -0
  160. package/dist/components/evaluation-run/evaluation-run.styles.d.ts +2 -0
  161. package/dist/components/evaluation-run/evaluation-run.styles.d.ts.map +1 -0
  162. package/dist/components/evaluation-run/evaluation-run.styles.js +73 -0
  163. package/dist/components/evaluation-run/evaluation-run.styles.js.map +1 -0
  164. package/dist/components/filter-bar/filter-bar.class.d.ts +200 -0
  165. package/dist/components/filter-bar/filter-bar.class.d.ts.map +1 -0
  166. package/dist/components/filter-bar/filter-bar.class.js +322 -0
  167. package/dist/components/filter-bar/filter-bar.class.js.map +1 -0
  168. package/dist/components/filter-bar/filter-bar.d.ts +10 -0
  169. package/dist/components/filter-bar/filter-bar.d.ts.map +1 -0
  170. package/dist/components/filter-bar/filter-bar.js +13 -0
  171. package/dist/components/filter-bar/filter-bar.js.map +1 -0
  172. package/dist/components/filter-bar/filter-bar.styles.d.ts +2 -0
  173. package/dist/components/filter-bar/filter-bar.styles.d.ts.map +1 -0
  174. package/dist/components/filter-bar/filter-bar.styles.js +37 -0
  175. package/dist/components/filter-bar/filter-bar.styles.js.map +1 -0
  176. package/dist/components/graph-query-builder/graph-query-builder.class.d.ts +242 -0
  177. package/dist/components/graph-query-builder/graph-query-builder.class.d.ts.map +1 -0
  178. package/dist/components/graph-query-builder/graph-query-builder.class.js +511 -0
  179. package/dist/components/graph-query-builder/graph-query-builder.class.js.map +1 -0
  180. package/dist/components/graph-query-builder/graph-query-builder.d.ts +7 -0
  181. package/dist/components/graph-query-builder/graph-query-builder.d.ts.map +1 -0
  182. package/dist/components/graph-query-builder/graph-query-builder.js +10 -0
  183. package/dist/components/graph-query-builder/graph-query-builder.js.map +1 -0
  184. package/dist/components/graph-query-builder/graph-query-builder.styles.d.ts +2 -0
  185. package/dist/components/graph-query-builder/graph-query-builder.styles.d.ts.map +1 -0
  186. package/dist/components/graph-query-builder/graph-query-builder.styles.js +170 -0
  187. package/dist/components/graph-query-builder/graph-query-builder.styles.js.map +1 -0
  188. package/dist/components/grounding-summary/grounding-summary.class.d.ts +80 -0
  189. package/dist/components/grounding-summary/grounding-summary.class.d.ts.map +1 -0
  190. package/dist/components/grounding-summary/grounding-summary.class.js +182 -0
  191. package/dist/components/grounding-summary/grounding-summary.class.js.map +1 -0
  192. package/dist/components/grounding-summary/grounding-summary.d.ts +5 -0
  193. package/dist/components/grounding-summary/grounding-summary.d.ts.map +1 -0
  194. package/dist/components/grounding-summary/grounding-summary.js +8 -0
  195. package/dist/components/grounding-summary/grounding-summary.js.map +1 -0
  196. package/dist/components/grounding-summary/grounding-summary.styles.d.ts +2 -0
  197. package/dist/components/grounding-summary/grounding-summary.styles.d.ts.map +1 -0
  198. package/dist/components/grounding-summary/grounding-summary.styles.js +88 -0
  199. package/dist/components/grounding-summary/grounding-summary.styles.js.map +1 -0
  200. package/dist/components/ingestion-queue/ingestion-queue.class.d.ts +125 -0
  201. package/dist/components/ingestion-queue/ingestion-queue.class.d.ts.map +1 -0
  202. package/dist/components/ingestion-queue/ingestion-queue.class.js +276 -0
  203. package/dist/components/ingestion-queue/ingestion-queue.class.js.map +1 -0
  204. package/dist/components/ingestion-queue/ingestion-queue.d.ts +2 -0
  205. package/dist/components/ingestion-queue/ingestion-queue.d.ts.map +1 -0
  206. package/dist/components/ingestion-queue/ingestion-queue.js +5 -0
  207. package/dist/components/ingestion-queue/ingestion-queue.js.map +1 -0
  208. package/dist/components/ingestion-queue/ingestion-queue.styles.d.ts +2 -0
  209. package/dist/components/ingestion-queue/ingestion-queue.styles.d.ts.map +1 -0
  210. package/dist/components/ingestion-queue/ingestion-queue.styles.js +138 -0
  211. package/dist/components/ingestion-queue/ingestion-queue.styles.js.map +1 -0
  212. package/dist/components/knowledge-base/knowledge-base.class.d.ts +136 -0
  213. package/dist/components/knowledge-base/knowledge-base.class.d.ts.map +1 -0
  214. package/dist/components/knowledge-base/knowledge-base.class.js +360 -0
  215. package/dist/components/knowledge-base/knowledge-base.class.js.map +1 -0
  216. package/dist/components/knowledge-base/knowledge-base.d.ts +7 -0
  217. package/dist/components/knowledge-base/knowledge-base.d.ts.map +1 -0
  218. package/dist/components/knowledge-base/knowledge-base.js +10 -0
  219. package/dist/components/knowledge-base/knowledge-base.js.map +1 -0
  220. package/dist/components/knowledge-base/knowledge-base.styles.d.ts +2 -0
  221. package/dist/components/knowledge-base/knowledge-base.styles.d.ts.map +1 -0
  222. package/dist/components/knowledge-base/knowledge-base.styles.js +94 -0
  223. package/dist/components/knowledge-base/knowledge-base.styles.js.map +1 -0
  224. package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.class.d.ts +196 -0
  225. package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.class.d.ts.map +1 -0
  226. package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.class.js +477 -0
  227. package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.class.js.map +1 -0
  228. package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.d.ts +11 -0
  229. package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.d.ts.map +1 -0
  230. package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.js +14 -0
  231. package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.js.map +1 -0
  232. package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.styles.d.ts +2 -0
  233. package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.styles.d.ts.map +1 -0
  234. package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.styles.js +76 -0
  235. package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.styles.js.map +1 -0
  236. package/dist/components/memory-panel/memory-panel.class.d.ts +146 -0
  237. package/dist/components/memory-panel/memory-panel.class.d.ts.map +1 -0
  238. package/dist/components/memory-panel/memory-panel.class.js +303 -0
  239. package/dist/components/memory-panel/memory-panel.class.js.map +1 -0
  240. package/dist/components/memory-panel/memory-panel.d.ts +5 -0
  241. package/dist/components/memory-panel/memory-panel.d.ts.map +1 -0
  242. package/dist/components/memory-panel/memory-panel.js +8 -0
  243. package/dist/components/memory-panel/memory-panel.js.map +1 -0
  244. package/dist/components/memory-panel/memory-panel.styles.d.ts +2 -0
  245. package/dist/components/memory-panel/memory-panel.styles.d.ts.map +1 -0
  246. package/dist/components/memory-panel/memory-panel.styles.js +139 -0
  247. package/dist/components/memory-panel/memory-panel.styles.js.map +1 -0
  248. package/dist/components/overlay/popover.class.d.ts +39 -0
  249. package/dist/components/overlay/popover.class.d.ts.map +1 -1
  250. package/dist/components/overlay/popover.class.js +53 -3
  251. package/dist/components/overlay/popover.class.js.map +1 -1
  252. package/dist/components/overlay/tooltip.class.d.ts +43 -0
  253. package/dist/components/overlay/tooltip.class.d.ts.map +1 -1
  254. package/dist/components/overlay/tooltip.class.js +66 -4
  255. package/dist/components/overlay/tooltip.class.js.map +1 -1
  256. package/dist/components/policy-summary/policy-summary.class.d.ts +76 -0
  257. package/dist/components/policy-summary/policy-summary.class.d.ts.map +1 -0
  258. package/dist/components/policy-summary/policy-summary.class.js +125 -0
  259. package/dist/components/policy-summary/policy-summary.class.js.map +1 -0
  260. package/dist/components/policy-summary/policy-summary.d.ts +6 -0
  261. package/dist/components/policy-summary/policy-summary.d.ts.map +1 -0
  262. package/dist/components/policy-summary/policy-summary.js +9 -0
  263. package/dist/components/policy-summary/policy-summary.js.map +1 -0
  264. package/dist/components/policy-summary/policy-summary.styles.d.ts +2 -0
  265. package/dist/components/policy-summary/policy-summary.styles.d.ts.map +1 -0
  266. package/dist/components/policy-summary/policy-summary.styles.js +68 -0
  267. package/dist/components/policy-summary/policy-summary.styles.js.map +1 -0
  268. package/dist/components/query-builder/query-builder.class.d.ts +180 -0
  269. package/dist/components/query-builder/query-builder.class.d.ts.map +1 -0
  270. package/dist/components/query-builder/query-builder.class.js +415 -0
  271. package/dist/components/query-builder/query-builder.class.js.map +1 -0
  272. package/dist/components/query-builder/query-builder.d.ts +9 -0
  273. package/dist/components/query-builder/query-builder.d.ts.map +1 -0
  274. package/dist/components/query-builder/query-builder.js +12 -0
  275. package/dist/components/query-builder/query-builder.js.map +1 -0
  276. package/dist/components/query-builder/query-builder.styles.d.ts +2 -0
  277. package/dist/components/query-builder/query-builder.styles.d.ts.map +1 -0
  278. package/dist/components/query-builder/query-builder.styles.js +77 -0
  279. package/dist/components/query-builder/query-builder.styles.js.map +1 -0
  280. package/dist/components/retrieval-results/retrieval-results.class.d.ts +151 -0
  281. package/dist/components/retrieval-results/retrieval-results.class.d.ts.map +1 -0
  282. package/dist/components/retrieval-results/retrieval-results.class.js +340 -0
  283. package/dist/components/retrieval-results/retrieval-results.class.js.map +1 -0
  284. package/dist/components/retrieval-results/retrieval-results.d.ts +7 -0
  285. package/dist/components/retrieval-results/retrieval-results.d.ts.map +1 -0
  286. package/dist/components/retrieval-results/retrieval-results.js +10 -0
  287. package/dist/components/retrieval-results/retrieval-results.js.map +1 -0
  288. package/dist/components/retrieval-results/retrieval-results.styles.d.ts +2 -0
  289. package/dist/components/retrieval-results/retrieval-results.styles.d.ts.map +1 -0
  290. package/dist/components/retrieval-results/retrieval-results.styles.js +94 -0
  291. package/dist/components/retrieval-results/retrieval-results.styles.js.map +1 -0
  292. package/dist/components/retrieval-search/retrieval-search.class.d.ts +127 -0
  293. package/dist/components/retrieval-search/retrieval-search.class.d.ts.map +1 -0
  294. package/dist/components/retrieval-search/retrieval-search.class.js +266 -0
  295. package/dist/components/retrieval-search/retrieval-search.class.js.map +1 -0
  296. package/dist/components/retrieval-search/retrieval-search.d.ts +8 -0
  297. package/dist/components/retrieval-search/retrieval-search.d.ts.map +1 -0
  298. package/dist/components/retrieval-search/retrieval-search.js +11 -0
  299. package/dist/components/retrieval-search/retrieval-search.js.map +1 -0
  300. package/dist/components/retrieval-search/retrieval-search.styles.d.ts +2 -0
  301. package/dist/components/retrieval-search/retrieval-search.styles.d.ts.map +1 -0
  302. package/dist/components/retrieval-search/retrieval-search.styles.js +75 -0
  303. package/dist/components/retrieval-search/retrieval-search.styles.js.map +1 -0
  304. package/dist/components/retrieval-trace/retrieval-trace.class.d.ts +101 -0
  305. package/dist/components/retrieval-trace/retrieval-trace.class.d.ts.map +1 -0
  306. package/dist/components/retrieval-trace/retrieval-trace.class.js +215 -0
  307. package/dist/components/retrieval-trace/retrieval-trace.class.js.map +1 -0
  308. package/dist/components/retrieval-trace/retrieval-trace.d.ts +4 -0
  309. package/dist/components/retrieval-trace/retrieval-trace.d.ts.map +1 -0
  310. package/dist/components/retrieval-trace/retrieval-trace.js +7 -0
  311. package/dist/components/retrieval-trace/retrieval-trace.js.map +1 -0
  312. package/dist/components/retrieval-trace/retrieval-trace.styles.d.ts +2 -0
  313. package/dist/components/retrieval-trace/retrieval-trace.styles.d.ts.map +1 -0
  314. package/dist/components/retrieval-trace/retrieval-trace.styles.js +116 -0
  315. package/dist/components/retrieval-trace/retrieval-trace.styles.js.map +1 -0
  316. package/dist/components/thread-list/thread-list.class.d.ts +19 -1
  317. package/dist/components/thread-list/thread-list.class.d.ts.map +1 -1
  318. package/dist/components/thread-list/thread-list.class.js +9 -2
  319. package/dist/components/thread-list/thread-list.class.js.map +1 -1
  320. package/dist/components/tool-timeline/tool-timeline.class.d.ts +140 -0
  321. package/dist/components/tool-timeline/tool-timeline.class.d.ts.map +1 -0
  322. package/dist/components/tool-timeline/tool-timeline.class.js +293 -0
  323. package/dist/components/tool-timeline/tool-timeline.class.js.map +1 -0
  324. package/dist/components/tool-timeline/tool-timeline.d.ts +2 -0
  325. package/dist/components/tool-timeline/tool-timeline.d.ts.map +1 -0
  326. package/dist/components/tool-timeline/tool-timeline.js +5 -0
  327. package/dist/components/tool-timeline/tool-timeline.js.map +1 -0
  328. package/dist/components/tool-timeline/tool-timeline.styles.d.ts +2 -0
  329. package/dist/components/tool-timeline/tool-timeline.styles.d.ts.map +1 -0
  330. package/dist/components/tool-timeline/tool-timeline.styles.js +148 -0
  331. package/dist/components/tool-timeline/tool-timeline.styles.js.map +1 -0
  332. package/dist/internal/localization.d.ts +1 -1
  333. package/dist/internal/localization.d.ts.map +1 -1
  334. package/dist/internal/localization.js +224 -0
  335. package/dist/internal/localization.js.map +1 -1
  336. package/dist/internal/positioner.d.ts +28 -1
  337. package/dist/internal/positioner.d.ts.map +1 -1
  338. package/dist/internal/positioner.js +12 -1
  339. package/dist/internal/positioner.js.map +1 -1
  340. package/dist/internal/root-registration-allowlist.d.ts +2 -2
  341. package/dist/internal/root-registration-allowlist.d.ts.map +1 -1
  342. package/dist/internal/root-registration-allowlist.js +24 -0
  343. package/dist/internal/root-registration-allowlist.js.map +1 -1
  344. package/dist/internal/tokens.styles.d.ts.map +1 -1
  345. package/dist/internal/tokens.styles.js +2 -0
  346. package/dist/internal/tokens.styles.js.map +1 -1
  347. package/dist/lyra.d.ts +48 -1
  348. package/dist/lyra.d.ts.map +1 -1
  349. package/dist/lyra.js +47 -0
  350. package/dist/lyra.js.map +1 -1
  351. package/llms-full.txt +462 -9
  352. package/llms.txt +7 -0
  353. package/package.json +50 -1
  354. package/vscode-css-data.json +21 -0
  355. package/vscode-html-data.json +1103 -47
  356. package/web-types.json +1131 -47
@@ -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,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb;;2EAEuE;IACvE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,yBAAyB,CAAC;IACtC,yDAAyD;IACzD,cAAc,CAAC,EAAE,6BAA6B,CAAC;IAC/C,UAAU,CAAC,EAAE,yBAAyB,CAAC;IACvC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;0BAEsB;IACtB,YAAY,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAC7B;wBACoB;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,yBAAyB;IACxC;8FAC0F;IAC1F,cAAc,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACvC,+CAA+C;IAC/C,YAAY,EAAE,WAAW,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAChD,iDAAiD;IACjD,aAAa,EAAE,WAAW,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjD;oEACgE;IAChE,cAAc,EAAE,WAAW,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACnD;AA6DD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,qBAAa,iBAAkB,SAAQ,WAAW,CAAC,yBAAyB,CAAC;IAC3E,MAAM,CAAC,MAAM,iCAAgC;IAE7C,6CAA6C;IACb,OAAO,EAAE,eAAe,EAAE,CAAM;IAEhE,uFAAuF;IAC3E,KAAK,SAAM;IAEvB,8EAA8E;IACP,WAAW,UAAS;IAE3F,kGAAkG;IAC5B,UAAU,UAAS;IAEzF,OAAO,CAAC,eAAe;IAevB,OAAO,CAAC,WAAW;IAanB,OAAO,CAAC,eAAe;IAavB,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,cAAc;IAmBtB,OAAO,CAAC,gBAAgB;IAgBxB,OAAO,CAAC,oBAAoB;IAO5B,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,iBAAiB;IA6BzB,OAAO,CAAC,YAAY;IA+BpB,OAAO,CAAC,aAAa;IAkCrB,MAAM,IAAI,cAAc,CA+BvB;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,iBAAiB,CAAC;KACxC;CACF"}
@@ -0,0 +1,360 @@
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 { LyraElement } from '../../internal/lyra-element.js';
10
+ import { getDateTimeFormat } from '../../internal/intl-cache.js';
11
+ import { playIcon, pauseIcon } from '../../internal/icons.js';
12
+ import { styles } from './knowledge-base.styles.js';
13
+ import '../table/table.js';
14
+ import '../badge/badge.js';
15
+ import '../stat/stat.js';
16
+ import '../menu/menu.js';
17
+ import '../button/button.js';
18
+ const SYNC_STATUS_VARIANT = {
19
+ idle: 'neutral',
20
+ syncing: 'brand',
21
+ paused: 'warning',
22
+ synced: 'success',
23
+ error: 'danger',
24
+ };
25
+ const HEALTH_VARIANT = {
26
+ healthy: 'success',
27
+ degraded: 'warning',
28
+ failed: 'danger',
29
+ unknown: 'neutral',
30
+ };
31
+ const PERMISSION_VARIANT = {
32
+ owner: 'brand',
33
+ editor: 'neutral',
34
+ viewer: 'neutral',
35
+ restricted: 'warning',
36
+ };
37
+ // One-off glyphs kept local rather than added to the shared internal/icons.ts set -- same approach
38
+ // lr-thread-list's local pinIcon()/archiveIcon()/trashIcon() take, for the identical reason (these
39
+ // aren't part of the library's general-purpose icon vocabulary). trashIcon mirrors lr-thread-list's
40
+ // own glyph verbatim so a destructive action reads identically everywhere it appears.
41
+ const ICON_VIEW_BOX = '0 0 24 24';
42
+ const ICON_STROKE_WIDTH = '1.75';
43
+ function trashIcon() {
44
+ return svg `
45
+ <svg width="1em" height="1em" viewBox=${ICON_VIEW_BOX} fill="none" stroke="currentColor" stroke-width=${ICON_STROKE_WIDTH} stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">
46
+ <path d="M4 7h16"></path>
47
+ <path d="M10 11v6"></path>
48
+ <path d="M14 11v6"></path>
49
+ <path d="M6 7l1 14h10l1-14"></path>
50
+ <path d="M9 7V4h6v3"></path>
51
+ </svg>
52
+ `;
53
+ }
54
+ /** A vertical three-dot "more actions" trigger glyph -- filled dots rather than this set's usual
55
+ * stroked paths, since that's the conventional rendering for an overflow-menu affordance. */
56
+ function kebabIcon() {
57
+ return svg `
58
+ <svg width="1em" height="1em" viewBox=${ICON_VIEW_BOX} fill="currentColor" stroke="none" aria-hidden="true" focusable="false">
59
+ <circle cx="12" cy="5" r="1.75"></circle>
60
+ <circle cx="12" cy="12" r="1.75"></circle>
61
+ <circle cx="12" cy="19" r="1.75"></circle>
62
+ </svg>
63
+ `;
64
+ }
65
+ function normalizeTimestamp(value) {
66
+ if (value === undefined)
67
+ return undefined;
68
+ const date = value instanceof Date ? value : new Date(value);
69
+ return Number.isNaN(date.getTime()) ? undefined : date;
70
+ }
71
+ /**
72
+ * `<lr-knowledge-base>` — a source list for a retrieval knowledge base: sync status, indexing
73
+ * health, permissions, and per-row create/sync/pause/delete affordances. A controlled data view,
74
+ * like every other Lyra data component: it never syncs or indexes anything itself, only presents
75
+ * `sources` and emits request-only events (`lr-kb-create`/`-sync`/`-pause`/`-delete`) for the host
76
+ * to act on and reflect back into a new `sources` value -- mirrors `lr-thread-list`'s
77
+ * `lr-thread-pin`/`-archive`/`-delete` convention exactly.
78
+ *
79
+ * `permission` is rendered informationally only (a badge in the permission column); this component
80
+ * does not gate the per-row action menu by it -- authorization enforcement is the host's own
81
+ * concern, consistent with the controlled/presentational-only contract above. A `'syncing'` row's
82
+ * "Sync now" action is disabled (a sync is already running); every other row's is enabled,
83
+ * including `'error'`, so re-running a failed sync is one click. "Pause sync" is enabled only while
84
+ * `'syncing'`.
85
+ *
86
+ * Composes `<lr-table>` for the source list (its own click/keydown delegation already treats any
87
+ * custom-element or `role="menuitem"` cell content as interactive, so the per-row `<lr-menu>` never
88
+ * misfires the table's row-click handling), `<lr-badge>` for the sync-status/indexing-health/
89
+ * permission indicators, `<lr-stat>` for the aggregate summary row above the table, and `<lr-menu>`
90
+ * for the per-row action affordances. The table's own `lr-row-click` is intentionally stopped from
91
+ * propagating further (this component doesn't expose row-click/selection semantics -- only the
92
+ * per-row action menu is interactive).
93
+ *
94
+ * @customElement lr-knowledge-base
95
+ * @event lr-kb-create - The toolbar "Add source" affordance was activated. No detail.
96
+ * @event lr-kb-sync - A row's "Sync now" action was activated. `detail: { sourceId }`.
97
+ * @event lr-kb-pause - A row's "Pause sync" action was activated. `detail: { sourceId }`.
98
+ * @event lr-kb-delete - A row's "Delete source" action was activated. `detail: { sourceId }`.
99
+ * @csspart base - The root.
100
+ * @csspart toolbar - The heading + "Add source" row.
101
+ * @csspart heading - The heading text.
102
+ * @csspart create-button - The "Add source" `<lr-button>`, omitted while `hideCreate` is set.
103
+ * @csspart summary - The aggregate-stats row, omitted while `hideSummary` is set or `sources` is empty.
104
+ * @csspart summary-stat - One `<lr-stat>` inside `summary`.
105
+ * @csspart table - The `<lr-table>` listing every source.
106
+ * @csspart name-cell - A row's source-name cell wrapper.
107
+ * @csspart source-name - The source's name text.
108
+ * @csspart source-type - The source's `type` text, omitted when unset.
109
+ * @csspart sync-cell - A row's sync-status cell wrapper.
110
+ * @csspart sync-badge - The sync-status `<lr-badge>`.
111
+ * @csspart sync-timestamp - The formatted `lastSyncedAt` text (or a "never synced" fallback).
112
+ * @csspart sync-error - The `errorMessage` text, shown only while `syncStatus` is `'error'` and it's set.
113
+ * @csspart health-cell - A row's indexing-health cell wrapper.
114
+ * @csspart health-badge - The indexing-health `<lr-badge>`.
115
+ * @csspart document-count - The formatted `documentCount` text, omitted when unset.
116
+ * @csspart permission-badge - The permission `<lr-badge>`, omitted when `permission` is unset.
117
+ * @csspart actions-menu - A row's `<lr-menu>`.
118
+ * @csspart actions-trigger - The kebab `<button>` opening a row's action menu.
119
+ */
120
+ export class LyraKnowledgeBase extends LyraElement {
121
+ constructor() {
122
+ super(...arguments);
123
+ /** The sources to list, in display order. */
124
+ this.sources = [];
125
+ /** Heading text and the table's accessible name. Falls back to a localized default. */
126
+ this.label = '';
127
+ /** Hides the aggregate summary row (total/synced/syncing/needs-attention). */
128
+ this.hideSummary = false;
129
+ /** Hides the toolbar's "Add source" affordance, e.g. for a read-only or permission-gated view. */
130
+ this.hideCreate = false;
131
+ }
132
+ static { this.styles = [LyraElement.styles, styles]; }
133
+ syncStatusLabel(status) {
134
+ switch (status) {
135
+ case 'idle':
136
+ return this.localize('knowledgeBaseSyncIdle');
137
+ case 'syncing':
138
+ return this.localize('knowledgeBaseSyncSyncing');
139
+ case 'paused':
140
+ return this.localize('knowledgeBaseSyncPaused');
141
+ case 'synced':
142
+ return this.localize('knowledgeBaseSyncSynced');
143
+ case 'error':
144
+ return this.localize('knowledgeBaseSyncError');
145
+ }
146
+ }
147
+ healthLabel(health) {
148
+ switch (health) {
149
+ case 'healthy':
150
+ return this.localize('knowledgeBaseHealthHealthy');
151
+ case 'degraded':
152
+ return this.localize('knowledgeBaseHealthDegraded');
153
+ case 'failed':
154
+ return this.localize('knowledgeBaseHealthFailed');
155
+ case 'unknown':
156
+ return this.localize('knowledgeBaseHealthUnknown');
157
+ }
158
+ }
159
+ permissionLabel(permission) {
160
+ switch (permission) {
161
+ case 'owner':
162
+ return this.localize('knowledgeBasePermissionOwner');
163
+ case 'editor':
164
+ return this.localize('knowledgeBasePermissionEditor');
165
+ case 'viewer':
166
+ return this.localize('knowledgeBasePermissionViewer');
167
+ case 'restricted':
168
+ return this.localize('knowledgeBasePermissionRestricted');
169
+ }
170
+ }
171
+ renderNameCell(source) {
172
+ return html `
173
+ <div part="name-cell">
174
+ <span part="source-name">${source.name}</span>
175
+ ${source.type ? html `<span part="source-type">${source.type}</span>` : nothing}
176
+ </div>
177
+ `;
178
+ }
179
+ renderSyncCell(source) {
180
+ const lastSynced = normalizeTimestamp(source.lastSyncedAt);
181
+ return html `
182
+ <div part="sync-cell">
183
+ <lr-badge part="sync-badge" variant=${SYNC_STATUS_VARIANT[source.syncStatus]}
184
+ >${this.syncStatusLabel(source.syncStatus)}</lr-badge
185
+ >
186
+ <span part="sync-timestamp">
187
+ ${lastSynced
188
+ ? getDateTimeFormat(this.effectiveLocale, { dateStyle: 'medium', timeStyle: 'short' }).format(lastSynced)
189
+ : this.localize('knowledgeBaseNeverSynced')}
190
+ </span>
191
+ ${source.syncStatus === 'error' && source.errorMessage
192
+ ? html `<span part="sync-error">${source.errorMessage}</span>`
193
+ : nothing}
194
+ </div>
195
+ `;
196
+ }
197
+ renderHealthCell(source) {
198
+ const health = source.indexingHealth ?? 'unknown';
199
+ return html `
200
+ <div part="health-cell">
201
+ <lr-badge part="health-badge" variant=${HEALTH_VARIANT[health]}>${this.healthLabel(health)}</lr-badge>
202
+ ${source.documentCount != null
203
+ ? html `<span part="document-count"
204
+ >${this.localize('knowledgeBaseDocumentCount', undefined, {
205
+ count: source.documentCount,
206
+ })}</span
207
+ >`
208
+ : nothing}
209
+ </div>
210
+ `;
211
+ }
212
+ renderPermissionCell(source) {
213
+ if (!source.permission)
214
+ return html ``;
215
+ return html `<lr-badge part="permission-badge" variant=${PERMISSION_VARIANT[source.permission]}
216
+ >${this.permissionLabel(source.permission)}</lr-badge
217
+ >`;
218
+ }
219
+ onRowAction(source, action) {
220
+ if (action === 'sync')
221
+ this.emit('lr-kb-sync', { sourceId: source.id });
222
+ else if (action === 'pause')
223
+ this.emit('lr-kb-pause', { sourceId: source.id });
224
+ else if (action === 'delete')
225
+ this.emit('lr-kb-delete', { sourceId: source.id });
226
+ }
227
+ renderActionsCell(source) {
228
+ const canPause = source.syncStatus === 'syncing';
229
+ const canSync = source.syncStatus !== 'syncing';
230
+ const label = this.localize('knowledgeBaseRowActionsLabel', undefined, { name: source.name });
231
+ return html `
232
+ <lr-menu
233
+ part="actions-menu"
234
+ label=${label}
235
+ @lr-menu-select=${(e) => this.onRowAction(source, e.detail.value)}
236
+ >
237
+ <button slot="trigger" type="button" part="actions-trigger" aria-label=${label}>${kebabIcon()}</button>
238
+ <lr-menu-item value="sync" ?disabled=${!canSync}>
239
+ <span slot="icon">${playIcon()}</span>
240
+ ${this.localize('knowledgeBaseSyncAction')}
241
+ </lr-menu-item>
242
+ <lr-menu-item value="pause" ?disabled=${!canPause}>
243
+ <span slot="icon">${pauseIcon()}</span>
244
+ ${this.localize('knowledgeBasePauseAction')}
245
+ </lr-menu-item>
246
+ <lr-menu-item value="delete" destructive>
247
+ <span slot="icon">${trashIcon()}</span>
248
+ ${this.localize('knowledgeBaseDeleteAction')}
249
+ </lr-menu-item>
250
+ </lr-menu>
251
+ `;
252
+ }
253
+ // Recomputed every render (not memoized) so column labels stay correct across a locale change --
254
+ // this list is small (five columns), so the recomputation cost is negligible.
255
+ tableColumns() {
256
+ return [
257
+ {
258
+ key: 'name',
259
+ label: this.localize('knowledgeBaseNameColumn'),
260
+ cell: (row) => this.renderNameCell(row),
261
+ },
262
+ {
263
+ key: 'sync',
264
+ label: this.localize('knowledgeBaseSyncColumn'),
265
+ cell: (row) => this.renderSyncCell(row),
266
+ },
267
+ {
268
+ key: 'health',
269
+ label: this.localize('knowledgeBaseHealthColumn'),
270
+ cell: (row) => this.renderHealthCell(row),
271
+ },
272
+ {
273
+ key: 'permission',
274
+ label: this.localize('knowledgeBasePermissionColumn'),
275
+ cell: (row) => this.renderPermissionCell(row),
276
+ },
277
+ {
278
+ key: 'actions',
279
+ label: this.localize('knowledgeBaseActionsColumn'),
280
+ align: 'end',
281
+ cell: (row) => this.renderActionsCell(row),
282
+ },
283
+ ];
284
+ }
285
+ renderSummary() {
286
+ const total = this.sources.length;
287
+ const synced = this.sources.filter((s) => s.syncStatus === 'synced').length;
288
+ const syncing = this.sources.filter((s) => s.syncStatus === 'syncing').length;
289
+ const attention = this.sources.filter((s) => s.syncStatus === 'error' || s.indexingHealth === 'failed' || s.indexingHealth === 'degraded').length;
290
+ return html `
291
+ <div part="summary">
292
+ <lr-stat
293
+ part="summary-stat"
294
+ label=${this.localize('knowledgeBaseTotalSources')}
295
+ value=${String(total)}
296
+ ></lr-stat>
297
+ <lr-stat
298
+ part="summary-stat"
299
+ label=${this.localize('knowledgeBaseSyncedSources')}
300
+ value=${String(synced)}
301
+ ></lr-stat>
302
+ <lr-stat
303
+ part="summary-stat"
304
+ label=${this.localize('knowledgeBaseSyncingSources')}
305
+ value=${String(syncing)}
306
+ ></lr-stat>
307
+ <lr-stat
308
+ part="summary-stat"
309
+ variant=${attention > 0 ? 'danger' : 'neutral'}
310
+ label=${this.localize('knowledgeBaseNeedsAttention')}
311
+ value=${String(attention)}
312
+ ></lr-stat>
313
+ </div>
314
+ `;
315
+ }
316
+ render() {
317
+ const heading = this.label || this.localize('knowledgeBaseHeading');
318
+ return html `
319
+ <div part="base">
320
+ <div part="toolbar">
321
+ <h3 part="heading">${heading}</h3>
322
+ ${!this.hideCreate
323
+ ? html `<lr-button
324
+ part="create-button"
325
+ variant="brand"
326
+ size="s"
327
+ @click=${() => this.emit('lr-kb-create')}
328
+ >
329
+ ${this.localize('knowledgeBaseCreateSource')}
330
+ </lr-button>`
331
+ : nothing}
332
+ </div>
333
+ ${!this.hideSummary && this.sources.length > 0 ? this.renderSummary() : nothing}
334
+ <lr-table
335
+ part="table"
336
+ .columns=${this.tableColumns()}
337
+ .rows=${this.sources}
338
+ .rowKey=${(row) => row.id}
339
+ aria-label=${heading}
340
+ empty-heading=${this.localize('knowledgeBaseEmptyHeading')}
341
+ empty-description=${this.localize('knowledgeBaseEmptyDescription', undefined)}
342
+ @lr-row-click=${(e) => e.stopPropagation()}
343
+ ></lr-table>
344
+ </div>
345
+ `;
346
+ }
347
+ }
348
+ __decorate([
349
+ property({ attribute: false })
350
+ ], LyraKnowledgeBase.prototype, "sources", void 0);
351
+ __decorate([
352
+ property()
353
+ ], LyraKnowledgeBase.prototype, "label", void 0);
354
+ __decorate([
355
+ property({ type: Boolean, attribute: 'hide-summary', reflect: true })
356
+ ], LyraKnowledgeBase.prototype, "hideSummary", void 0);
357
+ __decorate([
358
+ property({ type: Boolean, attribute: 'hide-create', reflect: true })
359
+ ], LyraKnowledgeBase.prototype, "hideCreate", void 0);
360
+ //# sourceMappingURL=knowledge-base.class.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"knowledge-base.class.js","sourceRoot":"","sources":["../../../src/components/knowledge-base/knowledge-base.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;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEpD,OAAO,mBAAmB,CAAC;AAE3B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,iBAAiB,CAAC;AAEzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,qBAAqB,CAAC;AAoD7B,MAAM,mBAAmB,GAAoD;IAC3E,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,OAAO;IAChB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,QAAQ;CAChB,CAAC;AAEF,MAAM,cAAc,GAAwD;IAC1E,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,SAAS;IACnB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACnB,CAAC;AAEF,MAAM,kBAAkB,GAAoD;IAC1E,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,UAAU,EAAE,SAAS;CACtB,CAAC;AAEF,mGAAmG;AACnG,mGAAmG;AACnG,oGAAoG;AACpG,sFAAsF;AACtF,MAAM,aAAa,GAAG,WAAW,CAAC;AAClC,MAAM,iBAAiB,GAAG,MAAM,CAAC;AAEjC,SAAS,SAAS;IAChB,O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,EAAE;kBACtB,IAAI,CAAC,OAAO;oBACV,CAAC,GAAoB,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE;uBAC7B,OAAO;0BACJ,IAAI,CAAC,QAAQ,CAAC,2BAA2B,CAAC;8BACtC,IAAI,CAAC,QAAQ,CAAC,+BAA+B,EAAE,SAAS,CAC3E;0BACe,CAAC,CAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,EAAE;;;KAGtD,CAAC;IACJ,CAAC;CACF;AA3OiC;IAA/B,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;kDAAiC;AAGpD;IAAX,QAAQ,EAAE;gDAAY;AAGgD;IAAtE,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;sDAAqB;AAGrB;IAArE,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;qDAAoB"}
@@ -0,0 +1,7 @@
1
+ export * from './knowledge-base.class.js';
2
+ import '../table/table.js';
3
+ import '../badge/badge.js';
4
+ import '../stat/stat.js';
5
+ import '../menu/menu.js';
6
+ import '../button/button.js';
7
+ //# sourceMappingURL=knowledge-base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"knowledge-base.d.ts","sourceRoot":"","sources":["../../../src/components/knowledge-base/knowledge-base.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAG1C,OAAO,mBAAmB,CAAC;AAC3B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,qBAAqB,CAAC"}
@@ -0,0 +1,10 @@
1
+ export * from './knowledge-base.class.js';
2
+ import { LyraKnowledgeBase } from './knowledge-base.class.js';
3
+ import { defineElement } from '../../internal/prefix.js';
4
+ import '../table/table.js';
5
+ import '../badge/badge.js';
6
+ import '../stat/stat.js';
7
+ import '../menu/menu.js';
8
+ import '../button/button.js';
9
+ defineElement('knowledge-base', LyraKnowledgeBase);
10
+ //# sourceMappingURL=knowledge-base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"knowledge-base.js","sourceRoot":"","sources":["../../../src/components/knowledge-base/knowledge-base.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,mBAAmB,CAAC;AAC3B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,qBAAqB,CAAC;AAC7B,aAAa,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const styles: import("lit").CSSResult;
2
+ //# sourceMappingURL=knowledge-base.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"knowledge-base.styles.d.ts","sourceRoot":"","sources":["../../../src/components/knowledge-base/knowledge-base.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,yBA2FlB,CAAC"}
@@ -0,0 +1,94 @@
1
+ import { css } from 'lit';
2
+ export const styles = css `
3
+ :host {
4
+ display: block;
5
+ }
6
+ [part='base'] {
7
+ display: flex;
8
+ flex-direction: column;
9
+ gap: var(--lr-space-m);
10
+ }
11
+ [part='toolbar'] {
12
+ display: flex;
13
+ flex-wrap: wrap;
14
+ align-items: center;
15
+ justify-content: space-between;
16
+ gap: var(--lr-space-s);
17
+ }
18
+ [part='heading'] {
19
+ margin: 0;
20
+ font-size: var(--lr-font-size-lg);
21
+ font-weight: var(--lr-font-weight-semibold);
22
+ color: var(--lr-color-text);
23
+ }
24
+ [part='create-button'] {
25
+ flex: 0 0 auto;
26
+ }
27
+ [part='summary'] {
28
+ display: flex;
29
+ flex-wrap: wrap;
30
+ gap: var(--lr-space-s);
31
+ }
32
+ [part='summary-stat'] {
33
+ flex: 1 1 var(--lr-size-8rem);
34
+ min-inline-size: 0;
35
+ }
36
+ [part='table'] {
37
+ inline-size: 100%;
38
+ }
39
+ [part='name-cell'],
40
+ [part='sync-cell'],
41
+ [part='health-cell'] {
42
+ display: flex;
43
+ flex-direction: column;
44
+ gap: var(--lr-size-0-125rem);
45
+ }
46
+ [part='source-name'] {
47
+ font-weight: var(--lr-font-weight-medium);
48
+ color: var(--lr-color-text);
49
+ }
50
+ [part='source-type'],
51
+ [part='sync-timestamp'],
52
+ [part='document-count'] {
53
+ font-size: var(--lr-font-size-sm);
54
+ color: var(--lr-color-text-quiet);
55
+ }
56
+ [part='sync-error'] {
57
+ font-size: var(--lr-font-size-sm);
58
+ color: var(--lr-color-danger);
59
+ }
60
+ [part='sync-cell'] lr-badge,
61
+ [part='health-cell'] lr-badge {
62
+ align-self: flex-start;
63
+ }
64
+ [part='actions-menu'] {
65
+ display: flex;
66
+ justify-content: flex-end;
67
+ }
68
+ [part='actions-trigger'] {
69
+ display: inline-flex;
70
+ align-items: center;
71
+ justify-content: center;
72
+ box-sizing: border-box;
73
+ min-inline-size: var(--lr-icon-button-size);
74
+ min-block-size: var(--lr-icon-button-size);
75
+ padding: 0;
76
+ border: none;
77
+ border-radius: var(--lr-radius);
78
+ background: none;
79
+ color: var(--lr-color-text-quiet);
80
+ cursor: pointer;
81
+ }
82
+ [part='actions-trigger']:hover {
83
+ background: color-mix(in srgb, var(--lr-color-text) 8%, transparent);
84
+ color: var(--lr-color-text);
85
+ }
86
+ [part='actions-trigger']:focus-visible {
87
+ outline: var(--lr-focus-ring-width) solid var(--lr-focus-ring-color);
88
+ outline-offset: var(--lr-focus-ring-offset);
89
+ }
90
+ [part='actions-trigger'] svg {
91
+ display: block;
92
+ }
93
+ `;
94
+ //# sourceMappingURL=knowledge-base.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"knowledge-base.styles.js","sourceRoot":"","sources":["../../../src/components/knowledge-base/knowledge-base.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2FxB,CAAC"}