@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,151 @@
1
+ import { type TemplateResult } from 'lit';
2
+ import { LyraElement } from '../../internal/lyra-element.js';
3
+ import type { RetrievalChunk } from '../../ai/types.js';
4
+ import '../virtual-list/virtual-list.js';
5
+ import '../chunk-inspector/chunk-inspector.js';
6
+ import '../checkbox/checkbox.js';
7
+ import '../spinner/spinner.js';
8
+ import '../empty/empty.js';
9
+ /** `lr-select`'s detail: the complete updated selection, both as bare ids and as the (deduplicated)
10
+ * `RetrievalChunk` records they refer to -- a host wanting "what got selected" rarely wants to
11
+ * re-look up `ids` against its own copy of `chunks` on every toggle. */
12
+ export interface RetrievalResultsSelectDetail {
13
+ ids: string[];
14
+ chunks: RetrievalChunk[];
15
+ }
16
+ export interface LyraRetrievalResultsEventMap {
17
+ 'lr-select': CustomEvent<RetrievalResultsSelectDetail>;
18
+ 'lr-load-more': CustomEvent<undefined>;
19
+ 'lr-chunk-open': CustomEvent<{
20
+ id: string;
21
+ sourceId: string;
22
+ }>;
23
+ }
24
+ /**
25
+ * `<lr-retrieval-results>` — the orchestration-level ranked-chunk-list surface: takes raw
26
+ * `RetrievalChunk[]` (the shared retrieval-and-grounding type from `src/ai/types.ts`) and adds
27
+ * everything a single retrieval call's result set needs beyond what one chunk's own rendering
28
+ * provides -- deduplication, optional grouping by source, multi-selection, pagination/infinite
29
+ * loading, and a compact/expanded presentation switch -- while composing existing primitives for
30
+ * every part that already has one, never re-implementing chunk/score/source rendering itself.
31
+ *
32
+ * **Composition, not reinvention.** Each rendered row wraps exactly one chunk in an internal
33
+ * `<lr-chunk-inspector>` (fed a single-element `chunks` array), reusing its score bar/tier
34
+ * coloring, title+page rendering, expandable text, and `compact` mode verbatim -- this component
35
+ * never hand-rolls chunk-card markup. `metadata` (arbitrary `Record<string, unknown>`, which no
36
+ * existing primitive renders) is the one genuinely new bit of presentation here, shown as a plain
37
+ * key/value list in `expanded` presentation only. Large result sets are windowed through an
38
+ * internal `<lr-virtual-list>`, exactly like `<lr-thread-list>`'s own data-mode rendering -- each
39
+ * row's rendered content therefore lives inside `<lr-virtual-list>`'s own shadow root, not this
40
+ * component's, whenever virtualization is active (see that component's own doc for why).
41
+ *
42
+ * **Controlled component.** `chunks`/`selectedIds`/`loading`/`error`/`hasMore` are all host-owned;
43
+ * this component never fetches, retries, or mutates its own copy of `chunks`. Selecting a row
44
+ * updates `selectedIds` locally *then* emits `lr-select` (the same "update own copy, then emit;
45
+ * reassign to control" convention `<lr-source-picker>` already uses) so a host can either accept
46
+ * the update as-is or override it before the next render.
47
+ *
48
+ * **Deduplication** keeps, per duplicate `id`, whichever chunk has the higher `score` -- set
49
+ * `dedupe="false"` to see every raw entry `chunks` contains, duplicates included. **Grouping**
50
+ * (`grouping="source"`) buckets the deduplicated, score-sorted list by `source.id`, each bucket
51
+ * ordered by its own best-scoring chunk first, and always renders through the internal
52
+ * `<lr-virtual-list>` (regardless of `virtualize-at`) so group headers have a single rendering path
53
+ * — `<lr-thread-list>`'s own date-bucket grouping takes the identical approach.
54
+ *
55
+ * **Pagination.** While virtualized, `has-more`/`loading` are forwarded straight to the internal
56
+ * `<lr-virtual-list>`, which fires `lr-load-more` itself on scroll-near-bottom (re-emitted here
57
+ * unchanged). Below the virtualization threshold (a short, non-grouped list), scrolling near the
58
+ * bottom isn't a meaningful gesture, so a `[part="load-more"]` button takes its place instead,
59
+ * showing a spinner in place of the button while `loading` is true.
60
+ *
61
+ * @customElement lr-retrieval-results
62
+ * @event lr-select - The selected-chunk set changed. `detail: { ids, chunks }` — `ids` is the
63
+ * complete updated selection (not just the toggled id), `chunks` the matching deduplicated
64
+ * `RetrievalChunk` records.
65
+ * @event lr-load-more - More results were requested — via the internal `<lr-virtual-list>`'s own
66
+ * scroll-near-bottom detection while virtualized, or the built-in `[part="load-more"]` button
67
+ * otherwise. Only ever fires while `has-more` is true and `loading` is false.
68
+ * @event lr-chunk-open - A row's title/open button was activated, forwarded verbatim from the
69
+ * per-row `<lr-chunk-inspector>`'s own `lr-chunk-open`. `detail: { id, sourceId }` — the event a
70
+ * host routes into `<lr-document-viewer>`.
71
+ * @csspart base - The outer container.
72
+ * @csspart error - The error message region (`role="alert"`), shown while `error` is non-empty.
73
+ * @csspart spinner - The initial-load `<lr-spinner>`, shown while `loading` is true and `chunks`
74
+ * is still empty.
75
+ * @csspart empty - The `<lr-empty>` wrapper, shown when `chunks` is empty and neither `error` nor
76
+ * `loading` is set.
77
+ * @csspart row - One result row's wrapper. Below the virtualization threshold this is a plain,
78
+ * directly-styleable element in this component's own shadow root; while virtualized it is exported
79
+ * from the internal `<lr-virtual-list>`'s own `row` part instead (`::part(row)` still reaches it
80
+ * either way).
81
+ * @csspart group-header - Exported from the internal `<lr-virtual-list>`'s `group` part —
82
+ * grouped/virtualized mode only.
83
+ * @csspart select - The per-row `<lr-checkbox>`, omitted entirely when `selectable` is false.
84
+ * @csspart row-body - The wrapper around a row's `<lr-chunk-inspector>` plus its optional
85
+ * metadata list; carries `data-selected` while that row is selected.
86
+ * @csspart metadata - The `<dl>` of a chunk's `metadata` entries — omitted entirely when a chunk
87
+ * has no `metadata`, or while `presentation="compact"`.
88
+ * @csspart metadata-entry - One metadata key/value pair's wrapper.
89
+ * @csspart load-more-row - The wrapper around the non-virtualized-mode pagination footer.
90
+ * @csspart load-more - The "Load more" button itself (non-virtualized mode, `loading` false).
91
+ */
92
+ export declare class LyraRetrievalResults extends LyraElement<LyraRetrievalResultsEventMap> {
93
+ static styles: import("lit").CSSResultGroup[];
94
+ /** The raw (not deduplicated/sorted/grouped) result set. Host-owned. */
95
+ chunks: RetrievalChunk[];
96
+ /** Controlled selection, by chunk `id`. The component updates its own copy on toggle *then*
97
+ * emits `lr-select`; reassign to control. An id with no matching chunk is harmless -- it simply
98
+ * never renders a checked row. */
99
+ selectedIds: string[];
100
+ /** Shows a per-row `<lr-checkbox>`. */
101
+ selectable: boolean;
102
+ /** Drops duplicate `id`s before rendering, keeping whichever duplicate has the higher `score`. */
103
+ dedupe: boolean;
104
+ /** `'score'` (default) sorts the deduplicated list descending by `score`; `'none'` preserves
105
+ * `chunks`' own given order. */
106
+ sort: 'score' | 'none';
107
+ /** `'source'` buckets rows under a header per `source.id` (always rendered through the internal
108
+ * `<lr-virtual-list>`, regardless of `virtualize-at`); `'none'` (default) is a flat ranked list. */
109
+ grouping: 'source' | 'none';
110
+ /** `'expanded'` (default) shows each chunk's full `<lr-chunk-inspector>` row (score bar, text
111
+ * preview with its own expand toggle) plus any `metadata`; `'compact'` shows title + score bar
112
+ * only, on both. */
113
+ presentation: 'compact' | 'expanded';
114
+ /** Forwarded verbatim to every per-row `<lr-chunk-inspector>`'s own `thresholds`. */
115
+ thresholds: {
116
+ high: number;
117
+ medium: number;
118
+ };
119
+ /** Above this many rows (after dedup, before grouping), rendering switches from a plain list to
120
+ * the internal `<lr-virtual-list>`. Grouped mode always virtualizes regardless of this value. */
121
+ virtualizeAt: number;
122
+ /** Marks the chunk currently open in a viewer -- forwarded to each per-row `<lr-chunk-inspector>`
123
+ * and to the internal `<lr-virtual-list>` (which scrolls the matching row into view). */
124
+ activeId: string;
125
+ loading: boolean;
126
+ /** While virtualized, forwarded to the internal `<lr-virtual-list>` so scrolling near the bottom
127
+ * fires `lr-load-more`; otherwise shows the built-in `[part="load-more"]` footer. */
128
+ hasMore: boolean;
129
+ /** Non-empty replaces the entire result view with a `role="alert"` error message -- caller-
130
+ * supplied text, not routed through `localize()` (the same stance `<lr-document-preview>`'s own
131
+ * `error-message` takes for the same reason: this is app/network data, not library copy). */
132
+ error: string;
133
+ /** Accessible name for the results region. Defaults to the localized `chunkInspectorLabel`
134
+ * ("Retrieved chunks") -- reused rather than a new key, since it already says exactly what this
135
+ * region is. */
136
+ label: string;
137
+ private get effectiveVirtualizeAt();
138
+ private get dedupedChunks();
139
+ private get processedChunks();
140
+ private toggleSelect;
141
+ private renderMetadata;
142
+ private renderRow;
143
+ private renderLoadMoreFooter;
144
+ render(): TemplateResult;
145
+ }
146
+ declare global {
147
+ interface HTMLElementTagNameMap {
148
+ 'lr-retrieval-results': LyraRetrievalResults;
149
+ }
150
+ }
151
+ //# sourceMappingURL=retrieval-results.class.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieval-results.class.d.ts","sourceRoot":"","sources":["../../../src/components/retrieval-results/retrieval-results.class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGxD,OAAO,iCAAiC,CAAC;AACzC,OAAO,uCAAuC,CAAC;AAC/C,OAAO,yBAAyB,CAAC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SAAM;IAEvB,OAAO,KAAK,qBAAqB,GAEhC;IAED,OAAO,KAAK,aAAa,GAQxB;IAED,OAAO,KAAK,eAAe,GAuB1B;IAED,OAAO,CAAC,YAAY;IAUpB,OAAO,CAAC,cAAc;IAkBtB,OAAO,CAAC,SAAS,CAyBf;IAEF,OAAO,CAAC,oBAAoB;IAa5B,MAAM,IAAI,cAAc,CAwCvB;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,sBAAsB,EAAE,oBAAoB,CAAC;KAC9C;CACF"}
@@ -0,0 +1,340 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { html, nothing } from 'lit';
8
+ import { property } from 'lit/decorators.js';
9
+ import { LyraElement } from '../../internal/lyra-element.js';
10
+ import { finiteCount } from '../../internal/numbers.js';
11
+ import '../virtual-list/virtual-list.js';
12
+ import '../chunk-inspector/chunk-inspector.js';
13
+ import '../checkbox/checkbox.js';
14
+ import '../spinner/spinner.js';
15
+ import '../empty/empty.js';
16
+ import { styles } from './retrieval-results.styles.js';
17
+ /** `RetrievalChunk` -> `lr-chunk-inspector`'s own `LyraChunk` display-row shape, per the mapping
18
+ * `RetrievalChunk`'s own doc comment (`src/ai/types.ts`) already specifies: `source.id -> sourceId`,
19
+ * `source.name -> title`. No `page`/`anchor` -- `RetrievalChunk`/`DocumentRef` carry neither, so
20
+ * those fields are simply left unset rather than guessed at from `metadata`. */
21
+ function toLyraChunk(chunk) {
22
+ return {
23
+ id: chunk.id,
24
+ text: chunk.text,
25
+ score: chunk.score,
26
+ sourceId: chunk.source.id,
27
+ title: chunk.source.name,
28
+ };
29
+ }
30
+ function formatMetadataValue(value) {
31
+ if (value == null)
32
+ return '';
33
+ if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean')
34
+ return String(value);
35
+ try {
36
+ return JSON.stringify(value);
37
+ }
38
+ catch {
39
+ return String(value);
40
+ }
41
+ }
42
+ /**
43
+ * `<lr-retrieval-results>` — the orchestration-level ranked-chunk-list surface: takes raw
44
+ * `RetrievalChunk[]` (the shared retrieval-and-grounding type from `src/ai/types.ts`) and adds
45
+ * everything a single retrieval call's result set needs beyond what one chunk's own rendering
46
+ * provides -- deduplication, optional grouping by source, multi-selection, pagination/infinite
47
+ * loading, and a compact/expanded presentation switch -- while composing existing primitives for
48
+ * every part that already has one, never re-implementing chunk/score/source rendering itself.
49
+ *
50
+ * **Composition, not reinvention.** Each rendered row wraps exactly one chunk in an internal
51
+ * `<lr-chunk-inspector>` (fed a single-element `chunks` array), reusing its score bar/tier
52
+ * coloring, title+page rendering, expandable text, and `compact` mode verbatim -- this component
53
+ * never hand-rolls chunk-card markup. `metadata` (arbitrary `Record<string, unknown>`, which no
54
+ * existing primitive renders) is the one genuinely new bit of presentation here, shown as a plain
55
+ * key/value list in `expanded` presentation only. Large result sets are windowed through an
56
+ * internal `<lr-virtual-list>`, exactly like `<lr-thread-list>`'s own data-mode rendering -- each
57
+ * row's rendered content therefore lives inside `<lr-virtual-list>`'s own shadow root, not this
58
+ * component's, whenever virtualization is active (see that component's own doc for why).
59
+ *
60
+ * **Controlled component.** `chunks`/`selectedIds`/`loading`/`error`/`hasMore` are all host-owned;
61
+ * this component never fetches, retries, or mutates its own copy of `chunks`. Selecting a row
62
+ * updates `selectedIds` locally *then* emits `lr-select` (the same "update own copy, then emit;
63
+ * reassign to control" convention `<lr-source-picker>` already uses) so a host can either accept
64
+ * the update as-is or override it before the next render.
65
+ *
66
+ * **Deduplication** keeps, per duplicate `id`, whichever chunk has the higher `score` -- set
67
+ * `dedupe="false"` to see every raw entry `chunks` contains, duplicates included. **Grouping**
68
+ * (`grouping="source"`) buckets the deduplicated, score-sorted list by `source.id`, each bucket
69
+ * ordered by its own best-scoring chunk first, and always renders through the internal
70
+ * `<lr-virtual-list>` (regardless of `virtualize-at`) so group headers have a single rendering path
71
+ * — `<lr-thread-list>`'s own date-bucket grouping takes the identical approach.
72
+ *
73
+ * **Pagination.** While virtualized, `has-more`/`loading` are forwarded straight to the internal
74
+ * `<lr-virtual-list>`, which fires `lr-load-more` itself on scroll-near-bottom (re-emitted here
75
+ * unchanged). Below the virtualization threshold (a short, non-grouped list), scrolling near the
76
+ * bottom isn't a meaningful gesture, so a `[part="load-more"]` button takes its place instead,
77
+ * showing a spinner in place of the button while `loading` is true.
78
+ *
79
+ * @customElement lr-retrieval-results
80
+ * @event lr-select - The selected-chunk set changed. `detail: { ids, chunks }` — `ids` is the
81
+ * complete updated selection (not just the toggled id), `chunks` the matching deduplicated
82
+ * `RetrievalChunk` records.
83
+ * @event lr-load-more - More results were requested — via the internal `<lr-virtual-list>`'s own
84
+ * scroll-near-bottom detection while virtualized, or the built-in `[part="load-more"]` button
85
+ * otherwise. Only ever fires while `has-more` is true and `loading` is false.
86
+ * @event lr-chunk-open - A row's title/open button was activated, forwarded verbatim from the
87
+ * per-row `<lr-chunk-inspector>`'s own `lr-chunk-open`. `detail: { id, sourceId }` — the event a
88
+ * host routes into `<lr-document-viewer>`.
89
+ * @csspart base - The outer container.
90
+ * @csspart error - The error message region (`role="alert"`), shown while `error` is non-empty.
91
+ * @csspart spinner - The initial-load `<lr-spinner>`, shown while `loading` is true and `chunks`
92
+ * is still empty.
93
+ * @csspart empty - The `<lr-empty>` wrapper, shown when `chunks` is empty and neither `error` nor
94
+ * `loading` is set.
95
+ * @csspart row - One result row's wrapper. Below the virtualization threshold this is a plain,
96
+ * directly-styleable element in this component's own shadow root; while virtualized it is exported
97
+ * from the internal `<lr-virtual-list>`'s own `row` part instead (`::part(row)` still reaches it
98
+ * either way).
99
+ * @csspart group-header - Exported from the internal `<lr-virtual-list>`'s `group` part —
100
+ * grouped/virtualized mode only.
101
+ * @csspart select - The per-row `<lr-checkbox>`, omitted entirely when `selectable` is false.
102
+ * @csspart row-body - The wrapper around a row's `<lr-chunk-inspector>` plus its optional
103
+ * metadata list; carries `data-selected` while that row is selected.
104
+ * @csspart metadata - The `<dl>` of a chunk's `metadata` entries — omitted entirely when a chunk
105
+ * has no `metadata`, or while `presentation="compact"`.
106
+ * @csspart metadata-entry - One metadata key/value pair's wrapper.
107
+ * @csspart load-more-row - The wrapper around the non-virtualized-mode pagination footer.
108
+ * @csspart load-more - The "Load more" button itself (non-virtualized mode, `loading` false).
109
+ */
110
+ export class LyraRetrievalResults extends LyraElement {
111
+ constructor() {
112
+ super(...arguments);
113
+ /** The raw (not deduplicated/sorted/grouped) result set. Host-owned. */
114
+ this.chunks = [];
115
+ /** Controlled selection, by chunk `id`. The component updates its own copy on toggle *then*
116
+ * emits `lr-select`; reassign to control. An id with no matching chunk is harmless -- it simply
117
+ * never renders a checked row. */
118
+ this.selectedIds = [];
119
+ /** Shows a per-row `<lr-checkbox>`. */
120
+ this.selectable = true;
121
+ /** Drops duplicate `id`s before rendering, keeping whichever duplicate has the higher `score`. */
122
+ this.dedupe = true;
123
+ /** `'score'` (default) sorts the deduplicated list descending by `score`; `'none'` preserves
124
+ * `chunks`' own given order. */
125
+ this.sort = 'score';
126
+ /** `'source'` buckets rows under a header per `source.id` (always rendered through the internal
127
+ * `<lr-virtual-list>`, regardless of `virtualize-at`); `'none'` (default) is a flat ranked list. */
128
+ this.grouping = 'none';
129
+ /** `'expanded'` (default) shows each chunk's full `<lr-chunk-inspector>` row (score bar, text
130
+ * preview with its own expand toggle) plus any `metadata`; `'compact'` shows title + score bar
131
+ * only, on both. */
132
+ this.presentation = 'expanded';
133
+ /** Forwarded verbatim to every per-row `<lr-chunk-inspector>`'s own `thresholds`. */
134
+ this.thresholds = { high: 0.75, medium: 0.5 };
135
+ /** Above this many rows (after dedup, before grouping), rendering switches from a plain list to
136
+ * the internal `<lr-virtual-list>`. Grouped mode always virtualizes regardless of this value. */
137
+ this.virtualizeAt = 50;
138
+ /** Marks the chunk currently open in a viewer -- forwarded to each per-row `<lr-chunk-inspector>`
139
+ * and to the internal `<lr-virtual-list>` (which scrolls the matching row into view). */
140
+ this.activeId = '';
141
+ this.loading = false;
142
+ /** While virtualized, forwarded to the internal `<lr-virtual-list>` so scrolling near the bottom
143
+ * fires `lr-load-more`; otherwise shows the built-in `[part="load-more"]` footer. */
144
+ this.hasMore = false;
145
+ /** Non-empty replaces the entire result view with a `role="alert"` error message -- caller-
146
+ * supplied text, not routed through `localize()` (the same stance `<lr-document-preview>`'s own
147
+ * `error-message` takes for the same reason: this is app/network data, not library copy). */
148
+ this.error = '';
149
+ /** Accessible name for the results region. Defaults to the localized `chunkInspectorLabel`
150
+ * ("Retrieved chunks") -- reused rather than a new key, since it already says exactly what this
151
+ * region is. */
152
+ this.label = '';
153
+ // Shared by both rendering paths (flat list and `<lr-virtual-list>`'s `renderItem`), exactly like
154
+ // `<lr-chunk-inspector>`'s own `renderChunk` and `<lr-thread-list>`'s own `renderRow`. Returns
155
+ // only the row's *content* (checkbox + body) -- the surrounding `role="listitem"`/`part="row"`
156
+ // wrapper is supplied by whichever caller renders it, since `<lr-virtual-list>` already supplies
157
+ // its own per-row wrapper when virtualized and a second, nested one would double up `part="row"`
158
+ // within the same shadow tree and duplicate `role="listitem"` semantics.
159
+ this.renderRow = (item) => {
160
+ const chunk = item;
161
+ const selected = this.selectedIds.includes(chunk.id);
162
+ const rowLabel = chunk.source.name || this.localize('untitledSource');
163
+ return html `
164
+ ${this.selectable
165
+ ? html `<lr-checkbox
166
+ part="select"
167
+ .checked=${selected}
168
+ aria-label="${this.localize('select')} ${rowLabel}"
169
+ @lr-change=${() => this.toggleSelect(chunk)}
170
+ ></lr-checkbox>`
171
+ : nothing}
172
+ <div part="row-body" ?data-selected=${selected}>
173
+ <lr-chunk-inspector
174
+ .chunks=${[toLyraChunk(chunk)]}
175
+ .thresholds=${this.thresholds}
176
+ ?compact=${this.presentation === 'compact'}
177
+ active-id=${this.activeId}
178
+ label=${rowLabel}
179
+ @lr-chunk-open=${(e) => this.emit('lr-chunk-open', e.detail)}
180
+ ></lr-chunk-inspector>
181
+ ${this.presentation === 'expanded' ? this.renderMetadata(chunk.metadata) : nothing}
182
+ </div>
183
+ `;
184
+ };
185
+ }
186
+ static { this.styles = [LyraElement.styles, styles]; }
187
+ get effectiveVirtualizeAt() {
188
+ return finiteCount(this.virtualizeAt, 50);
189
+ }
190
+ get dedupedChunks() {
191
+ if (!this.dedupe)
192
+ return this.chunks;
193
+ const byId = new Map();
194
+ for (const chunk of this.chunks) {
195
+ const existing = byId.get(chunk.id);
196
+ if (!existing || chunk.score > existing.score)
197
+ byId.set(chunk.id, chunk);
198
+ }
199
+ return [...byId.values()];
200
+ }
201
+ get processedChunks() {
202
+ const deduped = this.dedupedChunks;
203
+ const sorted = this.sort === 'score' ? [...deduped].sort((a, b) => b.score - a.score) : deduped;
204
+ if (this.grouping !== 'source')
205
+ return { chunks: sorted, groups: [] };
206
+ const bySource = new Map();
207
+ const order = [];
208
+ for (const chunk of sorted) {
209
+ const key = chunk.source.id;
210
+ if (!bySource.has(key)) {
211
+ bySource.set(key, []);
212
+ order.push(key);
213
+ }
214
+ bySource.get(key).push(chunk);
215
+ }
216
+ const rows = [];
217
+ const groups = [];
218
+ for (const key of order) {
219
+ const groupChunks = bySource.get(key);
220
+ groups.push({ key, label: groupChunks[0].source.name || this.localize('untitledSource'), startIndex: rows.length });
221
+ rows.push(...groupChunks);
222
+ }
223
+ return { chunks: rows, groups };
224
+ }
225
+ toggleSelect(chunk) {
226
+ const next = new Set(this.selectedIds);
227
+ if (next.has(chunk.id))
228
+ next.delete(chunk.id);
229
+ else
230
+ next.add(chunk.id);
231
+ const ids = [...next];
232
+ this.selectedIds = ids;
233
+ const selectedChunks = this.dedupedChunks.filter((c) => next.has(c.id));
234
+ this.emit('lr-select', { ids, chunks: selectedChunks });
235
+ }
236
+ renderMetadata(metadata) {
237
+ const entries = metadata ? Object.entries(metadata) : [];
238
+ if (entries.length === 0)
239
+ return nothing;
240
+ return html `
241
+ <dl part="metadata">
242
+ ${entries.map(([key, value]) => html `<div part="metadata-entry"><dt>${key}</dt><dd>${formatMetadataValue(value)}</dd></div>`)}
243
+ </dl>
244
+ `;
245
+ }
246
+ renderLoadMoreFooter() {
247
+ if (!this.hasMore)
248
+ return nothing;
249
+ return html `
250
+ <div part="load-more-row">
251
+ ${this.loading
252
+ ? html `<lr-spinner part="spinner"></lr-spinner>`
253
+ : html `<button type="button" part="load-more" @click=${() => this.emit('lr-load-more')}>
254
+ ${this.localize('loadMore')}
255
+ </button>`}
256
+ </div>
257
+ `;
258
+ }
259
+ render() {
260
+ const label = this.label || this.localize('chunkInspectorLabel');
261
+ if (this.error) {
262
+ return html `<div part="base"><div part="error" role="alert">${this.error}</div></div>`;
263
+ }
264
+ const processed = this.processedChunks;
265
+ if (processed.chunks.length === 0) {
266
+ if (this.loading) {
267
+ return html `<div part="base"><lr-spinner part="spinner"></lr-spinner></div>`;
268
+ }
269
+ // `heading` is passed as slotted light-DOM content (rather than the `heading` attribute) so
270
+ // `[part="empty"]`'s `.textContent` -- a plain DOM accessor, which never pierces
271
+ // `<lr-empty>`'s own shadow root -- actually includes the message; the same reason
272
+ // `<lr-chunk-inspector>`'s own empty state takes this shape.
273
+ return html `<div part="base"><lr-empty part="empty"><span slot="heading">${this.localize('chunkInspectorEmpty')}</span></lr-empty></div>`;
274
+ }
275
+ const useVirtualList = this.grouping === 'source' || processed.chunks.length > this.effectiveVirtualizeAt;
276
+ return html `
277
+ <div part="base" role="group" aria-label=${label}>
278
+ ${useVirtualList
279
+ ? html `<lr-virtual-list
280
+ exportparts="row:row, group:group-header"
281
+ .items=${processed.chunks}
282
+ .renderItem=${this.renderRow}
283
+ .keyFunction=${(item) => item.id}
284
+ .groups=${processed.groups}
285
+ .activeId=${this.activeId || ''}
286
+ ?loading=${this.loading}
287
+ ?has-more=${this.hasMore}
288
+ @lr-load-more=${() => this.emit('lr-load-more')}
289
+ ></lr-virtual-list>`
290
+ : html `<div role="list">
291
+ ${processed.chunks.map((c) => html `<div part="row" role="listitem">${this.renderRow(c)}</div>`)}
292
+ </div>
293
+ ${this.renderLoadMoreFooter()}`}
294
+ </div>
295
+ `;
296
+ }
297
+ }
298
+ __decorate([
299
+ property({ attribute: false })
300
+ ], LyraRetrievalResults.prototype, "chunks", void 0);
301
+ __decorate([
302
+ property({ attribute: false })
303
+ ], LyraRetrievalResults.prototype, "selectedIds", void 0);
304
+ __decorate([
305
+ property({ type: Boolean, reflect: true })
306
+ ], LyraRetrievalResults.prototype, "selectable", void 0);
307
+ __decorate([
308
+ property({ type: Boolean, reflect: true })
309
+ ], LyraRetrievalResults.prototype, "dedupe", void 0);
310
+ __decorate([
311
+ property()
312
+ ], LyraRetrievalResults.prototype, "sort", void 0);
313
+ __decorate([
314
+ property()
315
+ ], LyraRetrievalResults.prototype, "grouping", void 0);
316
+ __decorate([
317
+ property()
318
+ ], LyraRetrievalResults.prototype, "presentation", void 0);
319
+ __decorate([
320
+ property({ attribute: false })
321
+ ], LyraRetrievalResults.prototype, "thresholds", void 0);
322
+ __decorate([
323
+ property({ type: Number, attribute: 'virtualize-at' })
324
+ ], LyraRetrievalResults.prototype, "virtualizeAt", void 0);
325
+ __decorate([
326
+ property({ attribute: 'active-id' })
327
+ ], LyraRetrievalResults.prototype, "activeId", void 0);
328
+ __decorate([
329
+ property({ type: Boolean, reflect: true })
330
+ ], LyraRetrievalResults.prototype, "loading", void 0);
331
+ __decorate([
332
+ property({ type: Boolean, attribute: 'has-more', reflect: true })
333
+ ], LyraRetrievalResults.prototype, "hasMore", void 0);
334
+ __decorate([
335
+ property()
336
+ ], LyraRetrievalResults.prototype, "error", void 0);
337
+ __decorate([
338
+ property()
339
+ ], LyraRetrievalResults.prototype, "label", void 0);
340
+ //# sourceMappingURL=retrieval-results.class.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieval-results.class.js","sourceRoot":"","sources":["../../../src/components/retrieval-results/retrieval-results.class.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAuB,MAAM,KAAK,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAIxD,OAAO,iCAAiC,CAAC;AACzC,OAAO,uCAAuC,CAAC;AAC/C,OAAO,yBAAyB,CAAC;AACjC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAgBvD;;;iFAGiF;AACjF,SAAS,WAAW,CAAC,KAAqB;IACxC,OAAO;QACL,EAAE,EAAE,KAAK,CAAC,EAAE;QACZ,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE;QACzB,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI;KACzB,CAAC;AACJ,CAAC;AAED,SAAS,mBAAmB,CAAC,KAAc;IACzC,IAAI,KAAK,IAAI,IAAI;QAAE,OAAO,EAAE,CAAC;IAC7B,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,SAAS;QAAE,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IAC/G,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,MAAM,CAAC,KAAK,CAAC,C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W,EAAE,CAAC;sDAAe;AAER;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;qDAAiB;AAIO;IAAlE,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;qDAAiB;AAKvE;IAAX,QAAQ,EAAE;mDAAY;AAKX;IAAX,QAAQ,EAAE;mDAAY"}
@@ -0,0 +1,7 @@
1
+ export * from './retrieval-results.class.js';
2
+ import '../virtual-list/virtual-list.js';
3
+ import '../chunk-inspector/chunk-inspector.js';
4
+ import '../checkbox/checkbox.js';
5
+ import '../spinner/spinner.js';
6
+ import '../empty/empty.js';
7
+ //# sourceMappingURL=retrieval-results.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieval-results.d.ts","sourceRoot":"","sources":["../../../src/components/retrieval-results/retrieval-results.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAG7C,OAAO,iCAAiC,CAAC;AACzC,OAAO,uCAAuC,CAAC;AAC/C,OAAO,yBAAyB,CAAC;AACjC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,mBAAmB,CAAC"}
@@ -0,0 +1,10 @@
1
+ export * from './retrieval-results.class.js';
2
+ import { LyraRetrievalResults } from './retrieval-results.class.js';
3
+ import { defineElement } from '../../internal/prefix.js';
4
+ import '../virtual-list/virtual-list.js';
5
+ import '../chunk-inspector/chunk-inspector.js';
6
+ import '../checkbox/checkbox.js';
7
+ import '../spinner/spinner.js';
8
+ import '../empty/empty.js';
9
+ defineElement('retrieval-results', LyraRetrievalResults);
10
+ //# sourceMappingURL=retrieval-results.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieval-results.js","sourceRoot":"","sources":["../../../src/components/retrieval-results/retrieval-results.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,iCAAiC,CAAC;AACzC,OAAO,uCAAuC,CAAC;AAC/C,OAAO,yBAAyB,CAAC;AACjC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,mBAAmB,CAAC;AAC3B,aAAa,CAAC,mBAAmB,EAAE,oBAAoB,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const styles: import("lit").CSSResult;
2
+ //# sourceMappingURL=retrieval-results.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieval-results.styles.d.ts","sourceRoot":"","sources":["../../../src/components/retrieval-results/retrieval-results.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='error'] {
7
+ padding: var(--lr-space-m);
8
+ color: var(--lr-color-danger);
9
+ font-size: var(--lr-font-size-sm);
10
+ }
11
+ [part='row'] {
12
+ display: flex;
13
+ align-items: flex-start;
14
+ gap: var(--lr-space-xs);
15
+ padding-inline: var(--lr-space-s);
16
+ padding-block: var(--lr-space-s);
17
+ border-block-end: var(--lr-border-width-thin) solid var(--lr-color-border);
18
+ }
19
+ /* Virtualized mode: the internal lr-virtual-list supplies its own per-row wrapper (exported
20
+ as "row" above), so this component's own row content -- the checkbox + [part="row-body"]
21
+ rendered directly inside that wrapper -- needs the identical flex layout applied from here,
22
+ one shadow hop in via ::part(). */
23
+ lr-virtual-list::part(row) {
24
+ display: flex;
25
+ align-items: flex-start;
26
+ gap: var(--lr-space-xs);
27
+ padding-inline: var(--lr-space-s);
28
+ padding-block: var(--lr-space-s);
29
+ }
30
+ [part='select'] {
31
+ flex: 0 0 auto;
32
+ margin-block-start: var(--lr-space-2xs);
33
+ }
34
+ [part='row-body'] {
35
+ flex: 1 1 auto;
36
+ min-inline-size: 0;
37
+ /* A border rather than a background-color change: this row's own text (the nested
38
+ lr-chunk-inspector's quiet-toned score text in particular) is sized/colored for the
39
+ page's default surface, and a tinted background can drop that text below the required
40
+ contrast ratio against it -- a border-only indicator carries no such risk. */
41
+ border-inline-start: var(--lr-space-2xs) solid transparent;
42
+ padding-inline-start: var(--lr-space-xs);
43
+ }
44
+ [part='row-body'][data-selected] {
45
+ border-inline-start-color: var(--lr-color-brand);
46
+ }
47
+ [part='metadata'] {
48
+ display: flex;
49
+ flex-wrap: wrap;
50
+ gap: var(--lr-space-2xs) var(--lr-space-s);
51
+ margin: var(--lr-space-2xs) 0 0;
52
+ padding: 0;
53
+ font-size: var(--lr-font-size-2xs);
54
+ color: var(--lr-color-text-quiet);
55
+ }
56
+ [part='metadata-entry'] {
57
+ display: flex;
58
+ gap: var(--lr-space-2xs);
59
+ }
60
+ [part='metadata-entry'] dt {
61
+ font-weight: var(--lr-font-weight-medium);
62
+ }
63
+ [part='metadata-entry'] dt::after {
64
+ content: ':';
65
+ }
66
+ [part='metadata-entry'] dd {
67
+ margin: 0;
68
+ overflow-wrap: anywhere;
69
+ }
70
+ [part='load-more-row'] {
71
+ display: flex;
72
+ justify-content: center;
73
+ padding: var(--lr-space-s);
74
+ }
75
+ [part='load-more'] {
76
+ border: var(--lr-border-width-thin) solid var(--lr-color-border);
77
+ border-radius: var(--lr-radius);
78
+ background: transparent;
79
+ color: var(--lr-color-brand);
80
+ font: inherit;
81
+ font-size: var(--lr-font-size-sm);
82
+ padding: var(--lr-space-2xs) var(--lr-space-m);
83
+ cursor: pointer;
84
+ }
85
+ [part='load-more']:focus-visible {
86
+ outline: var(--lr-focus-ring-width) solid var(--lr-focus-ring-color);
87
+ outline-offset: var(--lr-focus-ring-offset);
88
+ }
89
+ [part='empty'],
90
+ [part='spinner'] {
91
+ padding: var(--lr-space-l);
92
+ }
93
+ `;
94
+ //# sourceMappingURL=retrieval-results.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieval-results.styles.js","sourceRoot":"","sources":["../../../src/components/retrieval-results/retrieval-results.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2FxB,CAAC"}