@aceshooting/lyra-ui 29.2.2 → 30.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 (1158) hide show
  1. package/CHANGELOG.md +164 -89
  2. package/README.md +9 -8
  3. package/dist/ai/adapters/ag-ui.d.ts +2 -2
  4. package/dist/ai/index.d.ts +1 -1
  5. package/dist/ai/runtime.d.ts +7 -7
  6. package/dist/ai/runtime.js +1 -1
  7. package/dist/ai/snapshot.d.ts +5 -5
  8. package/dist/ai/snapshot.js +1 -1
  9. package/dist/ai/types.d.ts +34 -34
  10. package/dist/all.d.ts +1 -1
  11. package/dist/all.js +1 -1
  12. package/dist/autoloader.d.ts +5 -5
  13. package/dist/autoloader.js +1 -1
  14. package/dist/cli/component-inventory.mjs +1 -1
  15. package/dist/cli/lyra-rename-ledger.mjs +1 -1
  16. package/dist/cli/migrate-wa.mjs +7 -3
  17. package/dist/cli/migration-analysis.mjs +1 -1
  18. package/dist/cli/migration-contract.json +1 -1
  19. package/dist/cli/migration-contract.mjs +1 -1
  20. package/dist/cli/migration-immutable-collections.mjs +6 -0
  21. package/dist/cli/migration-renames.mjs +1 -1
  22. package/dist/cli/migration-transforms.mjs +1 -1
  23. package/dist/components/agent-tools/activity-feed/activity-feed.class.d.ts +6 -6
  24. package/dist/components/agent-tools/activity-feed/activity-feed.d.ts +1 -1
  25. package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.class.d.ts +5 -6
  26. package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.class.js +1 -1
  27. package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.d.ts +1 -1
  28. package/dist/components/agent-tools/agent-question/agent-question.class.d.ts +9 -9
  29. package/dist/components/agent-tools/agent-question/agent-question.d.ts +1 -1
  30. package/dist/components/agent-tools/agent-run/agent-run.class.d.ts +5 -6
  31. package/dist/components/agent-tools/agent-run/agent-run.class.js +1 -1
  32. package/dist/components/agent-tools/agent-run/agent-run.d.ts +1 -1
  33. package/dist/components/agent-tools/agent-status-presentation.d.ts +6 -6
  34. package/dist/components/agent-tools/agent-trace/agent-trace.class.d.ts +6 -6
  35. package/dist/components/agent-tools/agent-trace/agent-trace.class.js +2 -2
  36. package/dist/components/agent-tools/agent-trace/agent-trace.d.ts +1 -1
  37. package/dist/components/agent-tools/approval-queue/approval-queue.class.d.ts +6 -6
  38. package/dist/components/agent-tools/approval-queue/approval-queue.d.ts +1 -1
  39. package/dist/components/agent-tools/approval-state.d.ts +4 -4
  40. package/dist/components/agent-tools/artifact-panel/artifact-panel.class.d.ts +7 -7
  41. package/dist/components/agent-tools/artifact-panel/artifact-panel.d.ts +1 -1
  42. package/dist/components/agent-tools/background-runs/background-runs.class.d.ts +6 -7
  43. package/dist/components/agent-tools/background-runs/background-runs.class.js +1 -1
  44. package/dist/components/agent-tools/background-runs/background-runs.d.ts +1 -1
  45. package/dist/components/agent-tools/browser-frame/browser-frame.class.d.ts +2 -2
  46. package/dist/components/agent-tools/browser-frame/browser-frame.d.ts +1 -1
  47. package/dist/components/agent-tools/budget-meter/budget-meter.class.d.ts +5 -5
  48. package/dist/components/agent-tools/budget-meter/budget-meter.d.ts +1 -1
  49. package/dist/components/agent-tools/change-review/change-review.class.d.ts +6 -7
  50. package/dist/components/agent-tools/change-review/change-review.class.js +1 -1
  51. package/dist/components/agent-tools/change-review/change-review.d.ts +1 -1
  52. package/dist/components/agent-tools/commit-card/commit-card.class.d.ts +5 -5
  53. package/dist/components/agent-tools/commit-card/commit-card.d.ts +1 -1
  54. package/dist/components/agent-tools/compare-panel/compare-panel.d.ts +1 -1
  55. package/dist/components/agent-tools/confirm-bar/confirm-bar.class.d.ts +4 -4
  56. package/dist/components/agent-tools/confirm-bar/confirm-bar.d.ts +1 -1
  57. package/dist/components/agent-tools/connector-manager/connector-manager.class.d.ts +4 -4
  58. package/dist/components/agent-tools/connector-manager/connector-manager.d.ts +1 -1
  59. package/dist/components/agent-tools/context-inspector/context-inspector.class.d.ts +13 -13
  60. package/dist/components/agent-tools/context-inspector/context-inspector.d.ts +1 -1
  61. package/dist/components/agent-tools/eval-dataset/eval-dataset.class.d.ts +11 -10
  62. package/dist/components/agent-tools/eval-dataset/eval-dataset.class.js +1 -1
  63. package/dist/components/agent-tools/eval-dataset/eval-dataset.d.ts +1 -1
  64. package/dist/components/agent-tools/eval-result/eval-result.class.d.ts +7 -7
  65. package/dist/components/agent-tools/eval-result/eval-result.d.ts +1 -1
  66. package/dist/components/agent-tools/evaluation-run/evaluation-run.class.d.ts +13 -7
  67. package/dist/components/agent-tools/evaluation-run/evaluation-run.class.js +1 -1
  68. package/dist/components/agent-tools/evaluation-run/evaluation-run.d.ts +1 -1
  69. package/dist/components/agent-tools/mcp-app/mcp-app.class.d.ts +5 -5
  70. package/dist/components/agent-tools/mcp-app/mcp-app.d.ts +1 -1
  71. package/dist/components/agent-tools/permission-grant/permission-grant.class.d.ts +7 -7
  72. package/dist/components/agent-tools/permission-grant/permission-grant.d.ts +1 -1
  73. package/dist/components/agent-tools/permission-rules/permission-rules.class.d.ts +3 -3
  74. package/dist/components/agent-tools/permission-rules/permission-rules.d.ts +1 -1
  75. package/dist/components/agent-tools/policy-summary/policy-summary.class.d.ts +3 -3
  76. package/dist/components/agent-tools/policy-summary/policy-summary.d.ts +1 -1
  77. package/dist/components/agent-tools/prompt-studio/prompt-studio.class.d.ts +10 -10
  78. package/dist/components/agent-tools/prompt-studio/prompt-studio.class.js +3 -3
  79. package/dist/components/agent-tools/prompt-studio/prompt-studio.d.ts +1 -1
  80. package/dist/components/agent-tools/result-card/result-card.class.d.ts +1 -1
  81. package/dist/components/agent-tools/result-card/result-card.d.ts +1 -1
  82. package/dist/components/agent-tools/result-card/result-field.class.d.ts +1 -1
  83. package/dist/components/agent-tools/result-card/result-field.d.ts +1 -1
  84. package/dist/components/agent-tools/run-events.d.ts +1 -1
  85. package/dist/components/agent-tools/schema-viewer/schema-viewer.class.d.ts +2 -2
  86. package/dist/components/agent-tools/schema-viewer/schema-viewer.d.ts +1 -1
  87. package/dist/components/agent-tools/span-waterfall/span-waterfall.class.d.ts +3 -3
  88. package/dist/components/agent-tools/span-waterfall/span-waterfall.d.ts +1 -1
  89. package/dist/components/agent-tools/stack-trace/stack-trace-parse.d.ts +4 -4
  90. package/dist/components/agent-tools/stack-trace/stack-trace.class.d.ts +3 -3
  91. package/dist/components/agent-tools/stack-trace/stack-trace.d.ts +1 -1
  92. package/dist/components/agent-tools/subagent-panel/subagent-panel.class.d.ts +2 -3
  93. package/dist/components/agent-tools/subagent-panel/subagent-panel.class.js +2 -2
  94. package/dist/components/agent-tools/subagent-panel/subagent-panel.d.ts +1 -1
  95. package/dist/components/agent-tools/task-list/task-list.class.d.ts +7 -7
  96. package/dist/components/agent-tools/task-list/task-list.d.ts +1 -1
  97. package/dist/components/agent-tools/terminal/terminal.class.d.ts +2 -2
  98. package/dist/components/agent-tools/terminal/terminal.d.ts +1 -1
  99. package/dist/components/agent-tools/test-results/test-results.class.d.ts +9 -9
  100. package/dist/components/agent-tools/test-results/test-results.d.ts +1 -1
  101. package/dist/components/agent-tools/thinking-panel/thinking-panel.class.d.ts +1 -1
  102. package/dist/components/agent-tools/thinking-panel/thinking-panel.d.ts +1 -1
  103. package/dist/components/agent-tools/tool-approval-dialog/tool-approval-dialog.class.d.ts +9 -9
  104. package/dist/components/agent-tools/tool-approval-dialog/tool-approval-dialog.d.ts +1 -1
  105. package/dist/components/agent-tools/tool-call-block/tool-call-block.class.d.ts +8 -8
  106. package/dist/components/agent-tools/tool-call-block/tool-call-block.d.ts +1 -1
  107. package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.d.ts +9 -10
  108. package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.js +1 -5
  109. package/dist/components/agent-tools/tool-call-chip/tool-call-chip.d.ts +1 -1
  110. package/dist/components/agent-tools/tool-param-form/tool-param-form.class.d.ts +7 -7
  111. package/dist/components/agent-tools/tool-param-form/tool-param-form.d.ts +1 -1
  112. package/dist/components/agent-tools/tool-param-form/tool-param-types.d.ts +14 -14
  113. package/dist/components/agent-tools/tool-result-dialog/tool-result-dialog.class.d.ts +7 -7
  114. package/dist/components/agent-tools/tool-result-dialog/tool-result-dialog.d.ts +1 -1
  115. package/dist/components/agent-tools/tool-result-view/registry.d.ts +9 -9
  116. package/dist/components/agent-tools/tool-result-view/tool-result-view.class.d.ts +7 -7
  117. package/dist/components/agent-tools/tool-result-view/tool-result-view.d.ts +1 -1
  118. package/dist/components/agent-tools/tool-select-dialog/tool-select-dialog.class.d.ts +9 -9
  119. package/dist/components/agent-tools/tool-select-dialog/tool-select-dialog.d.ts +1 -1
  120. package/dist/components/agent-tools/tool-timeline/tool-timeline.class.d.ts +7 -7
  121. package/dist/components/agent-tools/tool-timeline/tool-timeline.d.ts +1 -1
  122. package/dist/components/agent-tools/trace-tree/span-shared.d.ts +9 -9
  123. package/dist/components/agent-tools/trace-tree/trace-tree.class.d.ts +10 -9
  124. package/dist/components/agent-tools/trace-tree/trace-tree.class.js +1 -1
  125. package/dist/components/agent-tools/trace-tree/trace-tree.d.ts +1 -1
  126. package/dist/components/charts/chart/bar-chart.d.ts +1 -1
  127. package/dist/components/charts/chart/box-plot.class.d.ts +10 -10
  128. package/dist/components/charts/chart/box-plot.d.ts +1 -1
  129. package/dist/components/charts/chart/bubble-chart.d.ts +1 -1
  130. package/dist/components/charts/chart/chart-chrome.d.ts +2 -2
  131. package/dist/components/charts/chart/chart-colors.d.ts +1 -1
  132. package/dist/components/charts/chart/chart-core-loader.d.ts +2 -2
  133. package/dist/components/charts/chart/chart-feature-loader.d.ts +1 -1
  134. package/dist/components/charts/chart/chart-legend-visibility.d.ts +9 -9
  135. package/dist/components/charts/chart/chart-prepared-data.d.ts +4 -4
  136. package/dist/components/charts/chart/chart.class.d.ts +35 -35
  137. package/dist/components/charts/chart/chart.class.js +4 -4
  138. package/dist/components/charts/chart/chart.d.ts +1 -1
  139. package/dist/components/charts/chart/doughnut-chart.d.ts +1 -1
  140. package/dist/components/charts/chart/histogram-bin.d.ts +1 -1
  141. package/dist/components/charts/chart/histogram.class.d.ts +2 -2
  142. package/dist/components/charts/chart/histogram.d.ts +1 -1
  143. package/dist/components/charts/chart/line-chart.d.ts +1 -1
  144. package/dist/components/charts/chart/lite-chart.class.d.ts +9 -9
  145. package/dist/components/charts/chart/lite-chart.d.ts +1 -1
  146. package/dist/components/charts/chart/pie-chart.d.ts +1 -1
  147. package/dist/components/charts/chart/polar-area-chart.d.ts +1 -1
  148. package/dist/components/charts/chart/radar-chart.d.ts +1 -1
  149. package/dist/components/charts/chart/scatter-chart.d.ts +1 -1
  150. package/dist/components/charts/chart-3d/chart-3d-data.d.ts +50 -0
  151. package/dist/components/charts/chart-3d/chart-3d-data.js +1 -0
  152. package/dist/components/charts/chart-3d/chart-3d-engine.js +1 -0
  153. package/dist/components/charts/chart-3d/chart-3d.class.d.ts +96 -0
  154. package/dist/components/charts/chart-3d/chart-3d.class.js +47 -0
  155. package/dist/components/charts/chart-3d/chart-3d.d.ts +1 -0
  156. package/dist/components/charts/chart-3d/chart-3d.js +1 -0
  157. package/dist/components/charts/chart-3d/chart-3d.styles.js +1 -0
  158. package/dist/components/charts/index.d.ts +1 -1
  159. package/dist/components/charts/index.js +1 -1
  160. package/dist/components/conversation/agent-workspace/agent-workspace.class.d.ts +29 -29
  161. package/dist/components/conversation/agent-workspace/agent-workspace.class.js +4 -5
  162. package/dist/components/conversation/agent-workspace/agent-workspace.d.ts +1 -1
  163. package/dist/components/conversation/audio-visualizer/audio-visualizer.class.d.ts +3 -3
  164. package/dist/components/conversation/audio-visualizer/audio-visualizer.d.ts +1 -1
  165. package/dist/components/conversation/branch-picker/branch-picker.class.d.ts +2 -2
  166. package/dist/components/conversation/branch-picker/branch-picker.d.ts +1 -1
  167. package/dist/components/conversation/catalog-picker-element.d.ts +20 -20
  168. package/dist/components/conversation/chat-composer/chat-composer-status.d.ts +1 -1
  169. package/dist/components/conversation/chat-composer/chat-composer.class.d.ts +10 -10
  170. package/dist/components/conversation/chat-composer/chat-composer.d.ts +1 -1
  171. package/dist/components/conversation/chat-message/chat-message.class.d.ts +5 -5
  172. package/dist/components/conversation/chat-message/chat-message.d.ts +1 -1
  173. package/dist/components/conversation/chat-viewport/chat-viewport.class.d.ts +1 -1
  174. package/dist/components/conversation/chat-viewport/chat-viewport.d.ts +1 -1
  175. package/dist/components/conversation/checkpoint/checkpoint.class.d.ts +4 -4
  176. package/dist/components/conversation/checkpoint/checkpoint.d.ts +1 -1
  177. package/dist/components/conversation/code-block/code-block-base.class.d.ts +3 -3
  178. package/dist/components/conversation/code-block/code-block-base.class.js +1 -1
  179. package/dist/components/conversation/code-block/code-block-core.class.d.ts +6 -6
  180. package/dist/components/conversation/code-block/code-block-core.d.ts +1 -1
  181. package/dist/components/conversation/code-block/code-block-shared.d.ts +12 -12
  182. package/dist/components/conversation/code-block/code-block.class.d.ts +7 -7
  183. package/dist/components/conversation/code-block/code-block.d.ts +1 -1
  184. package/dist/components/conversation/code-block/shiki-oniguruma.d.ts +3 -0
  185. package/dist/components/conversation/code-block/shiki-oniguruma.js +1 -0
  186. package/dist/components/conversation/code-block/shiki-types.d.ts +8 -10
  187. package/dist/components/conversation/code-block/shiki-types.js +1 -1
  188. package/dist/components/conversation/conversation-item/conversation-item.class.d.ts +2 -2
  189. package/dist/components/conversation/conversation-item/conversation-item.d.ts +1 -1
  190. package/dist/components/conversation/generation-metrics/generation-metrics.class.d.ts +1 -1
  191. package/dist/components/conversation/generation-metrics/generation-metrics.class.js +1 -1
  192. package/dist/components/conversation/generation-metrics/generation-metrics.d.ts +1 -1
  193. package/dist/components/conversation/handoff-divider/handoff-divider.d.ts +1 -1
  194. package/dist/components/conversation/markdown/markdown-base.class.d.ts +8 -8
  195. package/dist/components/conversation/markdown/markdown-code-header.d.ts +2 -2
  196. package/dist/components/conversation/markdown/markdown-core.class.d.ts +4 -4
  197. package/dist/components/conversation/markdown/markdown-core.d.ts +1 -1
  198. package/dist/components/conversation/markdown/markdown-fallback-code.d.ts +3 -3
  199. package/dist/components/conversation/markdown/markdown-loader.d.ts +3 -3
  200. package/dist/components/conversation/markdown/markdown-progressive.js +2 -2
  201. package/dist/components/conversation/markdown/markdown-shared.d.ts +24 -24
  202. package/dist/components/conversation/markdown/markdown.class.d.ts +3 -3
  203. package/dist/components/conversation/markdown/markdown.d.ts +1 -1
  204. package/dist/components/conversation/message-actions/message-actions.class.d.ts +2 -2
  205. package/dist/components/conversation/message-actions/message-actions.class.js +1 -1
  206. package/dist/components/conversation/message-actions/message-actions.d.ts +1 -1
  207. package/dist/components/conversation/message-actions/toolbar-actions.d.ts +2 -2
  208. package/dist/components/conversation/message-feedback/message-feedback.class.d.ts +8 -8
  209. package/dist/components/conversation/message-feedback/message-feedback.d.ts +1 -1
  210. package/dist/components/conversation/message-parts/message-parts.class.d.ts +6 -6
  211. package/dist/components/conversation/message-parts/message-parts.class.js +1 -1
  212. package/dist/components/conversation/message-parts/message-parts.d.ts +1 -1
  213. package/dist/components/conversation/model-select/model-select.class.d.ts +9 -9
  214. package/dist/components/conversation/model-select/model-select.class.js +1 -1
  215. package/dist/components/conversation/model-select/model-select.d.ts +1 -1
  216. package/dist/components/conversation/model-settings-panel/model-settings-panel.class.d.ts +4 -4
  217. package/dist/components/conversation/model-settings-panel/model-settings-panel.class.js +1 -1
  218. package/dist/components/conversation/model-settings-panel/model-settings-panel.d.ts +1 -1
  219. package/dist/components/conversation/prompt-input/prompt-input.class.d.ts +16 -16
  220. package/dist/components/conversation/prompt-input/prompt-input.class.js +3 -4
  221. package/dist/components/conversation/prompt-input/prompt-input.d.ts +1 -1
  222. package/dist/components/conversation/prompt-queue/prompt-queue.class.d.ts +4 -4
  223. package/dist/components/conversation/prompt-queue/prompt-queue.d.ts +1 -1
  224. package/dist/components/conversation/push-to-talk/push-to-talk.class.d.ts +3 -3
  225. package/dist/components/conversation/push-to-talk/push-to-talk.class.js +1 -1
  226. package/dist/components/conversation/push-to-talk/push-to-talk.d.ts +1 -1
  227. package/dist/components/conversation/realtime-session/realtime-session.d.ts +1 -1
  228. package/dist/components/conversation/selection-toolbar/selection-toolbar.class.d.ts +1 -1
  229. package/dist/components/conversation/selection-toolbar/selection-toolbar.class.js +1 -1
  230. package/dist/components/conversation/selection-toolbar/selection-toolbar.d.ts +1 -1
  231. package/dist/components/conversation/stream-status/stream-status.class.d.ts +5 -5
  232. package/dist/components/conversation/stream-status/stream-status.d.ts +1 -1
  233. package/dist/components/conversation/streaming-text/markdown-detection.d.ts +1 -1
  234. package/dist/components/conversation/streaming-text/streaming-text-core.class.d.ts +1 -1
  235. package/dist/components/conversation/streaming-text/streaming-text-core.d.ts +1 -1
  236. package/dist/components/conversation/streaming-text/streaming-text.class.d.ts +1 -1
  237. package/dist/components/conversation/streaming-text/streaming-text.d.ts +1 -1
  238. package/dist/components/conversation/suggestion-chips/suggestion-chips.class.d.ts +4 -4
  239. package/dist/components/conversation/suggestion-chips/suggestion-chips.d.ts +1 -1
  240. package/dist/components/conversation/thread-list/thread-list.class.d.ts +15 -15
  241. package/dist/components/conversation/thread-list/thread-list.class.js +1 -1
  242. package/dist/components/conversation/thread-list/thread-list.d.ts +1 -1
  243. package/dist/components/conversation/timestamp.d.ts +2 -2
  244. package/dist/components/conversation/transcript-feed/transcript-feed.class.d.ts +3 -3
  245. package/dist/components/conversation/transcript-feed/transcript-feed.d.ts +1 -1
  246. package/dist/components/conversation/typing-indicator/typing-indicator.class.d.ts +1 -1
  247. package/dist/components/conversation/typing-indicator/typing-indicator.d.ts +1 -1
  248. package/dist/components/conversation/usage-badge/usage-badge.class.d.ts +2 -2
  249. package/dist/components/conversation/usage-badge/usage-badge.d.ts +1 -1
  250. package/dist/components/conversation/voice-picker/voice-picker.class.d.ts +10 -10
  251. package/dist/components/conversation/voice-picker/voice-picker.d.ts +1 -1
  252. package/dist/components/conversation/widget-renderer/default-registry.d.ts +1 -1
  253. package/dist/components/conversation/widget-renderer/registry.d.ts +12 -12
  254. package/dist/components/conversation/widget-renderer/registry.js +1 -1
  255. package/dist/components/conversation/widget-renderer/resolve.d.ts +7 -7
  256. package/dist/components/conversation/widget-renderer/resolve.js +1 -1
  257. package/dist/components/conversation/widget-renderer/widget-renderer.class.d.ts +1 -1
  258. package/dist/components/conversation/widget-renderer/widget-renderer.d.ts +1 -1
  259. package/dist/components/data/calendar/calendar.class.d.ts +4 -2
  260. package/dist/components/data/calendar/calendar.d.ts +1 -1
  261. package/dist/components/data/condition-builder/condition-builder.class.d.ts +11 -11
  262. package/dist/components/data/condition-builder/condition-builder.d.ts +1 -1
  263. package/dist/components/data/context-meter/context-meter.class.d.ts +12 -12
  264. package/dist/components/data/context-meter/context-meter.d.ts +1 -1
  265. package/dist/components/data/data-grid/data-grid-types.d.ts +19 -19
  266. package/dist/components/data/data-grid/data-grid.class.d.ts +58 -58
  267. package/dist/components/data/data-grid/data-grid.class.js +2 -2
  268. package/dist/components/data/data-grid/data-grid.d.ts +1 -1
  269. package/dist/components/data/document-library/document-library.class.d.ts +12 -12
  270. package/dist/components/data/document-library/document-library.d.ts +1 -1
  271. package/dist/components/data/env-list/env-list.class.d.ts +1 -1
  272. package/dist/components/data/env-list/env-list.d.ts +1 -1
  273. package/dist/components/data/file-tree/file-tree.class.d.ts +6 -4
  274. package/dist/components/data/file-tree/file-tree.class.js +2 -2
  275. package/dist/components/data/file-tree/file-tree.d.ts +1 -1
  276. package/dist/components/data/flow-canvas/flow-canvas.class.d.ts +19 -19
  277. package/dist/components/data/flow-canvas/flow-canvas.class.js +2 -2
  278. package/dist/components/data/flow-canvas/flow-canvas.d.ts +1 -1
  279. package/dist/components/data/flow-canvas/flow-source.js +1 -1
  280. package/dist/components/data/flow-canvas/flow-types.d.ts +12 -12
  281. package/dist/components/data/flow-controls/flow-controls.class.d.ts +1 -1
  282. package/dist/components/data/flow-controls/flow-controls.d.ts +1 -1
  283. package/dist/components/data/flow-minimap/flow-minimap.class.d.ts +1 -1
  284. package/dist/components/data/flow-minimap/flow-minimap.d.ts +1 -1
  285. package/dist/components/data/flow-node/flow-node.class.d.ts +11 -12
  286. package/dist/components/data/flow-node/flow-node.class.js +2 -4
  287. package/dist/components/data/flow-node/flow-node.d.ts +1 -1
  288. package/dist/components/data/flow-run-status/flow-run-status.class.d.ts +2 -2
  289. package/dist/components/data/flow-run-status/flow-run-status.d.ts +1 -1
  290. package/dist/components/data/funnel/funnel.class.d.ts +8 -8
  291. package/dist/components/data/funnel/funnel.d.ts +1 -1
  292. package/dist/components/data/gauge/gauge.class.d.ts +2 -2
  293. package/dist/components/data/gauge/gauge.d.ts +1 -1
  294. package/dist/components/data/graph-query-builder/graph-query-builder.class.d.ts +19 -19
  295. package/dist/components/data/graph-query-builder/graph-query-builder.d.ts +1 -1
  296. package/dist/components/data/heatmap/calendar-grid.d.ts +5 -5
  297. package/dist/components/data/heatmap/heatmap-limits.d.ts +5 -5
  298. package/dist/components/data/heatmap/heatmap-matrix-source.d.ts +2 -2
  299. package/dist/components/data/heatmap/heatmap-scale.d.ts +3 -3
  300. package/dist/components/data/heatmap/heatmap.class.d.ts +20 -20
  301. package/dist/components/data/heatmap/heatmap.class.js +2 -2
  302. package/dist/components/data/heatmap/heatmap.d.ts +1 -1
  303. package/dist/components/data/pagination/pagination.class.d.ts +14 -14
  304. package/dist/components/data/pagination/pagination.d.ts +1 -1
  305. package/dist/components/data/sequence-strip/sequence-strip-source.d.ts +2 -2
  306. package/dist/components/data/sequence-strip/sequence-strip.class.d.ts +2 -2
  307. package/dist/components/data/sequence-strip/sequence-strip.d.ts +1 -1
  308. package/dist/components/data/sparkline/sparkline.class.d.ts +8 -9
  309. package/dist/components/data/sparkline/sparkline.class.js +1 -1
  310. package/dist/components/data/sparkline/sparkline.d.ts +1 -1
  311. package/dist/components/data/stat/stat.class.d.ts +5 -5
  312. package/dist/components/data/stat/stat.d.ts +1 -1
  313. package/dist/components/data/table/table.class.d.ts +12 -12
  314. package/dist/components/data/table/table.class.js +1 -1
  315. package/dist/components/data/table/table.d.ts +1 -1
  316. package/dist/components/data/timeline/timeline-item.d.ts +1 -1
  317. package/dist/components/data/timeline/timeline.class.d.ts +3 -3
  318. package/dist/components/data/timeline/timeline.d.ts +1 -1
  319. package/dist/components/data/tree/tree-item.class.d.ts +9 -9
  320. package/dist/components/data/tree/tree-item.d.ts +1 -1
  321. package/dist/components/data/tree/tree-types.d.ts +7 -7
  322. package/dist/components/data/tree/tree.class.d.ts +4 -4
  323. package/dist/components/data/tree/tree.d.ts +1 -1
  324. package/dist/components/data/word-cloud/word-cloud-layout.d.ts +14 -14
  325. package/dist/components/data/word-cloud/word-cloud.class.d.ts +4 -4
  326. package/dist/components/data/word-cloud/word-cloud.d.ts +1 -1
  327. package/dist/components/forms/button/button.class.d.ts +12 -12
  328. package/dist/components/forms/button/button.d.ts +1 -1
  329. package/dist/components/forms/catalog-picker-base.d.ts +24 -24
  330. package/dist/components/forms/checkbox/checkbox.class.d.ts +8 -8
  331. package/dist/components/forms/checkbox/checkbox.d.ts +1 -1
  332. package/dist/components/forms/checkbox-group/checkbox-group.class.d.ts +12 -12
  333. package/dist/components/forms/checkbox-group/checkbox-group.d.ts +1 -1
  334. package/dist/components/forms/code-editor/code-editor.class.d.ts +4 -4
  335. package/dist/components/forms/code-editor/code-editor.d.ts +1 -1
  336. package/dist/components/forms/color-picker/color-core.d.ts +11 -11
  337. package/dist/components/forms/color-picker/color-core.js +1 -1
  338. package/dist/components/forms/color-picker/color-picker.class.d.ts +13 -13
  339. package/dist/components/forms/color-picker/color-picker.d.ts +1 -1
  340. package/dist/components/forms/combobox/combobox.class.d.ts +27 -27
  341. package/dist/components/forms/combobox/combobox.d.ts +1 -1
  342. package/dist/components/forms/combobox/option.class.d.ts +8 -8
  343. package/dist/components/forms/combobox/option.d.ts +1 -1
  344. package/dist/components/forms/country-picker/country-picker.class.d.ts +2 -2
  345. package/dist/components/forms/currency-picker/currency-catalog.d.ts +5 -5
  346. package/dist/components/forms/currency-picker/currency-picker.class.d.ts +1 -1
  347. package/dist/components/forms/currency-picker/currency-types.d.ts +1 -1
  348. package/dist/components/forms/date-picker/calendar-core.d.ts +10 -10
  349. package/dist/components/forms/date-picker/calendar-core.js +1 -1
  350. package/dist/components/forms/date-picker/date-input.class.d.ts +25 -25
  351. package/dist/components/forms/date-picker/date-input.d.ts +1 -1
  352. package/dist/components/forms/date-picker/date-picker-disabled-dates.d.ts +1 -1
  353. package/dist/components/forms/date-picker/date-picker.class.d.ts +13 -13
  354. package/dist/components/forms/date-picker/date-picker.d.ts +1 -1
  355. package/dist/components/forms/emoji-picker/emoji-picker.class.d.ts +8 -8
  356. package/dist/components/forms/emoji-picker/emoji-picker.d.ts +1 -1
  357. package/dist/components/forms/emoji-picker/emoji-types.d.ts +1 -1
  358. package/dist/components/forms/form-validator.d.ts +3 -3
  359. package/dist/components/forms/icon-button/icon-button.class.d.ts +8 -8
  360. package/dist/components/forms/icon-button/icon-button.d.ts +1 -1
  361. package/dist/components/forms/input/input-shared.d.ts +14 -14
  362. package/dist/components/forms/input/input.class.d.ts +1 -1
  363. package/dist/components/forms/input/input.d.ts +1 -1
  364. package/dist/components/forms/input/native-time-input.class.d.ts +3 -3
  365. package/dist/components/forms/input/native-time-input.d.ts +1 -1
  366. package/dist/components/forms/input/number-input.class.d.ts +6 -6
  367. package/dist/components/forms/input/number-input.d.ts +1 -1
  368. package/dist/components/forms/input/time-input-shared.d.ts +7 -7
  369. package/dist/components/forms/input/time-input.class.d.ts +9 -9
  370. package/dist/components/forms/input/time-input.class.js +1 -1
  371. package/dist/components/forms/input/time-input.d.ts +1 -1
  372. package/dist/components/forms/locale-picker/locale-picker.class.d.ts +23 -18
  373. package/dist/components/forms/locale-picker/locale-picker.class.js +1 -1
  374. package/dist/components/forms/locale-picker/locale-picker.d.ts +1 -1
  375. package/dist/components/forms/otp-input/otp-input.class.d.ts +24 -24
  376. package/dist/components/forms/otp-input/otp-input.class.js +1 -1
  377. package/dist/components/forms/otp-input/otp-input.d.ts +1 -1
  378. package/dist/components/forms/phone-input/phone-input.class.d.ts +19 -19
  379. package/dist/components/forms/phone-input/phone-input.d.ts +1 -1
  380. package/dist/components/forms/phone-input/phone-number-adapter.d.ts +10 -10
  381. package/dist/components/forms/radio/radio-button.d.ts +1 -1
  382. package/dist/components/forms/radio/radio-group.class.d.ts +9 -9
  383. package/dist/components/forms/radio/radio-group.d.ts +1 -1
  384. package/dist/components/forms/radio/radio.class.d.ts +8 -8
  385. package/dist/components/forms/radio/radio.d.ts +1 -1
  386. package/dist/components/forms/rubric-form/rubric-form.class.d.ts +10 -10
  387. package/dist/components/forms/rubric-form/rubric-form.d.ts +1 -1
  388. package/dist/components/forms/select/select.class.d.ts +15 -15
  389. package/dist/components/forms/select/select.class.js +1 -1
  390. package/dist/components/forms/select/select.d.ts +1 -1
  391. package/dist/components/forms/signature-pad/signature-pad-limits.d.ts +2 -2
  392. package/dist/components/forms/signature-pad/signature-pad.class.d.ts +13 -12
  393. package/dist/components/forms/signature-pad/signature-pad.class.js +1 -1
  394. package/dist/components/forms/slider/slider.class.d.ts +21 -21
  395. package/dist/components/forms/slider/slider.class.js +1 -1
  396. package/dist/components/forms/slider/slider.d.ts +1 -1
  397. package/dist/components/forms/swatch-picker/swatch-picker.class.d.ts +8 -7
  398. package/dist/components/forms/swatch-picker/swatch-picker.class.js +1 -1
  399. package/dist/components/forms/swatch-picker/swatch-picker.d.ts +1 -1
  400. package/dist/components/forms/switch/switch.class.d.ts +6 -6
  401. package/dist/components/forms/switch/switch.d.ts +1 -1
  402. package/dist/components/forms/textarea/textarea.class.d.ts +10 -10
  403. package/dist/components/forms/textarea/textarea.d.ts +1 -1
  404. package/dist/components/forms/time-range/time-range.class.d.ts +4 -4
  405. package/dist/components/forms/time-range/time-range.d.ts +1 -1
  406. package/dist/components/forms/time-zone-picker/time-zone-picker.class.d.ts +1 -1
  407. package/dist/components/forms/toggle/toggle.class.d.ts +10 -10
  408. package/dist/components/forms/toggle/toggle.d.ts +1 -1
  409. package/dist/components/forms/toggle-group/toggle-group.class.d.ts +11 -11
  410. package/dist/components/forms/toggle-group/toggle-group.d.ts +1 -1
  411. package/dist/components/forms/token-input/token-input.class.d.ts +12 -12
  412. package/dist/components/forms/token-input/token-input.d.ts +1 -1
  413. package/dist/components/forms/unit-picker/unit-picker.class.d.ts +1 -1
  414. package/dist/components/layout/app-rail/app-rail-item.class.d.ts +5 -7
  415. package/dist/components/layout/app-rail/app-rail-item.class.js +1 -1
  416. package/dist/components/layout/app-rail/app-rail-item.d.ts +1 -1
  417. package/dist/components/layout/app-rail/app-rail-mode.d.ts +4 -4
  418. package/dist/components/layout/app-rail/app-rail.class.d.ts +7 -7
  419. package/dist/components/layout/app-rail/app-rail.d.ts +1 -1
  420. package/dist/components/layout/app-rail-group/app-rail-group.class.d.ts +3 -3
  421. package/dist/components/layout/app-rail-group/app-rail-group.d.ts +1 -1
  422. package/dist/components/layout/breadcrumb/breadcrumb-item.class.d.ts +2 -2
  423. package/dist/components/layout/breadcrumb/breadcrumb-item.d.ts +1 -1
  424. package/dist/components/layout/breadcrumb/breadcrumb.d.ts +1 -1
  425. package/dist/components/layout/button-group/button-group.class.d.ts +2 -2
  426. package/dist/components/layout/button-group/button-group.d.ts +1 -1
  427. package/dist/components/layout/card/card.class.d.ts +1 -1
  428. package/dist/components/layout/card/card.d.ts +1 -1
  429. package/dist/components/layout/carousel/carousel-item.d.ts +1 -1
  430. package/dist/components/layout/carousel/carousel.class.d.ts +5 -5
  431. package/dist/components/layout/command-palette/command-palette.class.d.ts +8 -8
  432. package/dist/components/layout/command-palette/command-palette.d.ts +1 -1
  433. package/dist/components/layout/control-group/control-group.d.ts +1 -1
  434. package/dist/components/layout/dashboard-grid/dashboard-grid.class.d.ts +3 -3
  435. package/dist/components/layout/dashboard-grid/dashboard-grid.d.ts +1 -1
  436. package/dist/components/layout/dashboard-grid/layout-types.d.ts +12 -12
  437. package/dist/components/layout/details/accordion-item.class.d.ts +11 -12
  438. package/dist/components/layout/details/accordion-item.class.js +1 -1
  439. package/dist/components/layout/details/accordion-item.d.ts +1 -1
  440. package/dist/components/layout/details/accordion-types.d.ts +2 -2
  441. package/dist/components/layout/details/accordion.class.d.ts +5 -5
  442. package/dist/components/layout/details/accordion.d.ts +1 -1
  443. package/dist/components/layout/details/details.class.d.ts +9 -9
  444. package/dist/components/layout/details/details.d.ts +1 -1
  445. package/dist/components/layout/dock-panel/dock-panel.class.d.ts +8 -15
  446. package/dist/components/layout/dock-panel/dock-panel.class.js +1 -1
  447. package/dist/components/layout/dock-panel/dock-panel.d.ts +1 -1
  448. package/dist/components/layout/drilldown-panel/drilldown-panel.class.d.ts +8 -8
  449. package/dist/components/layout/drilldown-panel/drilldown-panel.class.js +1 -1
  450. package/dist/components/layout/drilldown-panel/drilldown-panel.d.ts +1 -1
  451. package/dist/components/layout/filter-bar/filter-bar.class.d.ts +12 -12
  452. package/dist/components/layout/filter-bar/filter-bar.d.ts +1 -1
  453. package/dist/components/layout/menu/dropdown-item.class.d.ts +1 -1
  454. package/dist/components/layout/menu/dropdown-item.d.ts +1 -1
  455. package/dist/components/layout/menu/menu-item.class.d.ts +6 -6
  456. package/dist/components/layout/menu/menu-item.d.ts +1 -1
  457. package/dist/components/layout/menu/menu-label.d.ts +1 -1
  458. package/dist/components/layout/menu/menu.class.js +1 -1
  459. package/dist/components/layout/menu/menu.d.ts +1 -1
  460. package/dist/components/layout/menubar/menubar-item.class.d.ts +2 -2
  461. package/dist/components/layout/menubar/menubar-item.d.ts +1 -1
  462. package/dist/components/layout/menubar/menubar.class.d.ts +3 -3
  463. package/dist/components/layout/menubar/menubar.d.ts +1 -1
  464. package/dist/components/layout/multi-split/multi-split.class.d.ts +5 -5
  465. package/dist/components/layout/multi-split/multi-split.class.js +1 -1
  466. package/dist/components/layout/multi-split/multi-split.d.ts +1 -1
  467. package/dist/components/layout/navigation-menu/navigation-menu.class.d.ts +10 -14
  468. package/dist/components/layout/navigation-menu/navigation-menu.class.js +1 -1
  469. package/dist/components/layout/navigation-menu/navigation-menu.d.ts +1 -1
  470. package/dist/components/layout/navigation-menu-item/navigation-menu-item.class.d.ts +5 -5
  471. package/dist/components/layout/navigation-menu-item/navigation-menu-item.d.ts +1 -1
  472. package/dist/components/layout/page/page.class.d.ts +9 -9
  473. package/dist/components/layout/page/page.d.ts +1 -1
  474. package/dist/components/layout/reorder-list/reorder-item.class.d.ts +2 -2
  475. package/dist/components/layout/reorder-list/reorder-item.d.ts +1 -1
  476. package/dist/components/layout/reorder-list/reorder-list.d.ts +1 -1
  477. package/dist/components/layout/responsive-panel/responsive-panel-mode.d.ts +3 -3
  478. package/dist/components/layout/responsive-panel/responsive-panel.class.d.ts +4 -4
  479. package/dist/components/layout/responsive-panel/responsive-panel.d.ts +1 -1
  480. package/dist/components/layout/scroller/scroller.class.d.ts +2 -2
  481. package/dist/components/layout/scroller/scroller.d.ts +1 -1
  482. package/dist/components/layout/segmented/segmented.class.d.ts +2 -2
  483. package/dist/components/layout/segmented/segmented.d.ts +1 -1
  484. package/dist/components/layout/split-panel/split-panel-snap.d.ts +4 -4
  485. package/dist/components/layout/split-panel/split-panel.class.d.ts +11 -11
  486. package/dist/components/layout/split-panel/split-panel.d.ts +1 -1
  487. package/dist/components/layout/stepper/stepper.class.d.ts +4 -4
  488. package/dist/components/layout/stepper/stepper.d.ts +1 -1
  489. package/dist/components/layout/tab-group/tab-group.class.d.ts +4 -4
  490. package/dist/components/layout/tab-group/tab-group.class.js +1 -1
  491. package/dist/components/layout/tab-group/tab-group.d.ts +1 -1
  492. package/dist/components/layout/tab-group/tab-panel.class.d.ts +1 -1
  493. package/dist/components/layout/tab-group/tab-panel.d.ts +1 -1
  494. package/dist/components/layout/tab-group/tab.class.d.ts +2 -2
  495. package/dist/components/layout/tab-group/tab.d.ts +1 -1
  496. package/dist/components/layout/virtual-list/virtual-list-attributes.d.ts +2 -2
  497. package/dist/components/layout/virtual-list/virtual-list-limits.d.ts +1 -1
  498. package/dist/components/layout/virtual-list/virtual-list.class.d.ts +15 -14
  499. package/dist/components/layout/virtual-list/virtual-list.class.js +1 -1
  500. package/dist/components/layout/virtual-list/virtual-list.d.ts +1 -1
  501. package/dist/components/layout/widget/widget.class.d.ts +8 -17
  502. package/dist/components/layout/widget/widget.class.js +2 -2
  503. package/dist/components/layout/widget/widget.d.ts +1 -1
  504. package/dist/components/lr-chart-3d.js +1 -0
  505. package/dist/components/lr-map-anchor.js +1 -0
  506. package/dist/components/lr-model-viewer.js +1 -0
  507. package/dist/components/media/animated-image/animated-image.class.d.ts +4 -4
  508. package/dist/components/media/animated-image/animated-image.d.ts +1 -1
  509. package/dist/components/media/animation/animation-catalog.d.ts +3 -3
  510. package/dist/components/media/animation/animation.class.d.ts +5 -5
  511. package/dist/components/media/animation/animation.d.ts +1 -1
  512. package/dist/components/media/attachment-chip/attachment-chip.class.d.ts +5 -5
  513. package/dist/components/media/attachment-chip/attachment-chip.d.ts +1 -1
  514. package/dist/components/media/attachment-chip/file-size.d.ts +2 -2
  515. package/dist/components/media/attachment-trigger/attachment-trigger.class.d.ts +1 -1
  516. package/dist/components/media/attachment-trigger/attachment-trigger.d.ts +1 -1
  517. package/dist/components/media/av-player/av-cue-source.d.ts +3 -3
  518. package/dist/components/media/av-player/av-metadata.d.ts +1 -13
  519. package/dist/components/media/av-player/av-metadata.js +1 -1
  520. package/dist/components/media/av-player/av-player.class.d.ts +10 -10
  521. package/dist/components/media/av-player/av-player.class.js +1 -1
  522. package/dist/components/media/av-player/av-player.d.ts +1 -1
  523. package/dist/components/media/avatar/avatar.d.ts +1 -1
  524. package/dist/components/media/avatar-group/avatar-group.class.d.ts +2 -2
  525. package/dist/components/media/avatar-group/avatar-group.d.ts +1 -1
  526. package/dist/components/media/drop-zone/drop-zone.class.d.ts +3 -3
  527. package/dist/components/media/drop-zone/drop-zone.d.ts +1 -1
  528. package/dist/components/media/file-icon/file-icon.class.d.ts +5 -5
  529. package/dist/components/media/file-icon/file-icon.d.ts +1 -1
  530. package/dist/components/media/file-icon/file-type-metadata.d.ts +3 -3
  531. package/dist/components/media/file-input/file-input.class.d.ts +26 -29
  532. package/dist/components/media/file-input/file-input.class.js +3 -3
  533. package/dist/components/media/file-input/file-input.d.ts +1 -1
  534. package/dist/components/media/file-input/file-input.styles.js +1 -1
  535. package/dist/components/media/file-input/file-intake.d.ts +6 -6
  536. package/dist/components/media/flag/flag-url-resolver.d.ts +1 -1
  537. package/dist/components/media/flag/flag.class.d.ts +4 -4
  538. package/dist/components/media/flag/flag.d.ts +1 -1
  539. package/dist/components/media/image-comparer/image-comparer.class.d.ts +3 -3
  540. package/dist/components/media/image-viewer/image-viewer-limits.d.ts +1 -1
  541. package/dist/components/media/image-viewer/image-viewer-panorama.d.ts +5 -0
  542. package/dist/components/media/image-viewer/image-viewer-panorama.js +8 -0
  543. package/dist/components/media/image-viewer/image-viewer-panorama.styles.js +1 -0
  544. package/dist/components/media/image-viewer/image-viewer.class.d.ts +37 -13
  545. package/dist/components/media/image-viewer/image-viewer.class.js +8 -5
  546. package/dist/components/media/image-viewer/image-viewer.d.ts +1 -1
  547. package/dist/components/media/image-viewer/image-viewer.styles.js +1 -1
  548. package/dist/components/media/index.d.ts +1 -1
  549. package/dist/components/media/index.js +1 -1
  550. package/dist/components/media/lightbox/lightbox-types.d.ts +2 -2
  551. package/dist/components/media/lightbox/lightbox.class.d.ts +9 -9
  552. package/dist/components/media/lightbox/lightbox.d.ts +1 -1
  553. package/dist/components/media/map/map-anchor-controller.js +1 -0
  554. package/dist/components/media/map/map-anchor-options.d.ts +14 -0
  555. package/dist/components/media/map/map-anchor-options.js +1 -0
  556. package/dist/components/media/map/map-anchor-seam.js +1 -0
  557. package/dist/components/media/map/map-anchor.class.d.ts +79 -0
  558. package/dist/components/media/map/map-anchor.class.js +3 -0
  559. package/dist/components/media/map/map-anchor.d.ts +1 -0
  560. package/dist/components/media/map/map-anchor.js +1 -0
  561. package/dist/components/media/map/map-anchor.styles.js +1 -0
  562. package/dist/components/media/map/map-basemap-order.js +1 -0
  563. package/dist/components/media/map/map-camera.d.ts +34 -0
  564. package/dist/components/media/map/map-camera.js +1 -0
  565. package/dist/components/media/map/map-construction-scheduler.d.ts +13 -0
  566. package/dist/components/media/map/map-construction-scheduler.js +1 -0
  567. package/dist/components/media/map/map-control-options.d.ts +39 -0
  568. package/dist/components/media/map/map-control-options.js +1 -0
  569. package/dist/components/media/map/map-controls-lifecycle.js +1 -0
  570. package/dist/components/media/map/map-cursor.js +1 -0
  571. package/dist/components/media/map/map-data-layer-model.d.ts +40 -0
  572. package/dist/components/media/map/map-data-layer-model.js +1 -0
  573. package/dist/components/media/map/map-drawing-controller.js +1 -0
  574. package/dist/components/media/map/map-drawing-gesture.js +1 -0
  575. package/dist/components/media/map/map-drawing-pan.js +1 -0
  576. package/dist/components/media/map/map-drawing-pointer.js +1 -0
  577. package/dist/components/media/map/map-drawing.d.ts +29 -0
  578. package/dist/components/media/map/map-drawing.js +1 -0
  579. package/dist/components/media/map/map-empty-style.d.ts +8 -0
  580. package/dist/components/media/map/map-empty-style.js +1 -0
  581. package/dist/components/media/map/map-engine-events.js +1 -0
  582. package/dist/components/media/map/map-export-attribution.js +1 -0
  583. package/dist/components/media/map/map-external-source-effects.js +1 -0
  584. package/dist/components/media/map/map-feature-loader-core.js +1 -0
  585. package/dist/components/media/map/map-feature-loader.js +1 -0
  586. package/dist/components/media/map/map-feature-state-router.d.ts +16 -0
  587. package/dist/components/media/map/map-feature-state-router.js +1 -0
  588. package/dist/components/media/map/map-feature-state-routes.js +1 -0
  589. package/dist/components/media/map/map-feature-state.d.ts +16 -0
  590. package/dist/components/media/map/map-feature-state.js +1 -0
  591. package/dist/components/media/map/map-geojson-diff.d.ts +4 -4
  592. package/dist/components/media/map/map-hash-option.js +1 -0
  593. package/dist/components/media/map/map-hash-owner.js +1 -0
  594. package/dist/components/media/map/map-hash.js +1 -0
  595. package/dist/components/media/map/map-hit-test.d.ts +17 -0
  596. package/dist/components/media/map/map-hit-test.js +1 -0
  597. package/dist/components/media/map/map-image-admission.d.ts +7 -0
  598. package/dist/components/media/map/map-image-admission.js +1 -0
  599. package/dist/components/media/map/map-image-export-controller.js +1 -0
  600. package/dist/components/media/map/map-image-export-error.d.ts +3 -0
  601. package/dist/components/media/map/map-image-export-error.js +1 -0
  602. package/dist/components/media/map/map-image-export.d.ts +15 -0
  603. package/dist/components/media/map/map-image-export.js +5 -0
  604. package/dist/components/media/map/map-image-limits.d.ts +4 -0
  605. package/dist/components/media/map/map-image-limits.js +1 -0
  606. package/dist/components/media/map/map-image-metadata.js +3 -0
  607. package/dist/components/media/map/map-image-provider.d.ts +33 -0
  608. package/dist/components/media/map/map-image-provider.js +1 -0
  609. package/dist/components/media/map/map-images.d.ts +9 -0
  610. package/dist/components/media/map/map-images.js +1 -0
  611. package/dist/components/media/map/map-interaction-options.d.ts +26 -0
  612. package/dist/components/media/map/map-interaction-options.js +1 -0
  613. package/dist/components/media/map/map-layer-order.js +1 -0
  614. package/dist/components/media/map/map-loader.d.ts +47 -17
  615. package/dist/components/media/map/map-loader.js +1 -1
  616. package/dist/components/media/map/map-local-image-url.js +1 -0
  617. package/dist/components/media/map/map-local-image.js +1 -0
  618. package/dist/components/media/map/map-overlay-admission.d.ts +13 -0
  619. package/dist/components/media/map/map-overlay-admission.js +1 -0
  620. package/dist/components/media/map/map-owned-feature-input.js +1 -0
  621. package/dist/components/media/map/map-owned-features.js +1 -0
  622. package/dist/components/media/map/map-owned-resources.js +1 -0
  623. package/dist/components/media/map/map-paint-batch.js +1 -0
  624. package/dist/components/media/map/map-readers.js +1 -0
  625. package/dist/components/media/map/map-readiness.js +1 -0
  626. package/dist/components/media/map/map-resource-feature-loaders.js +1 -0
  627. package/dist/components/media/map/map-source-updates.js +1 -0
  628. package/dist/components/media/map/map-style-input.js +1 -0
  629. package/dist/components/media/map/map-style-lifecycle.js +1 -0
  630. package/dist/components/media/map/map-style-override-admission.d.ts +13 -0
  631. package/dist/components/media/map/map-style-override-admission.js +1 -0
  632. package/dist/components/media/map/map-style-overrides.js +1 -0
  633. package/dist/components/media/map/map-style-value.d.ts +3 -0
  634. package/dist/components/media/map/map-style-value.js +1 -0
  635. package/dist/components/media/map/map-vector-style.d.ts +10 -0
  636. package/dist/components/media/map/map-vector-style.js +1 -0
  637. package/dist/components/media/map/map.class.d.ts +642 -117
  638. package/dist/components/media/map/map.class.js +59 -11
  639. package/dist/components/media/map/map.d.ts +1 -1
  640. package/dist/components/media/map/map.styles.js +1 -1
  641. package/dist/components/media/media-card/media-card.class.d.ts +3 -3
  642. package/dist/components/media/media-card/media-card.d.ts +1 -1
  643. package/dist/components/media/pan-zoom/pan-zoom.class.d.ts +5 -5
  644. package/dist/components/media/qr-code/qr-code.class.d.ts +7 -9
  645. package/dist/components/media/qr-code/qr-code.class.js +1 -1
  646. package/dist/components/media/qr-code/qr-code.d.ts +1 -1
  647. package/dist/components/media/qr-code/qr-code.styles.js +1 -1
  648. package/dist/components/media/sequence-playback/sequence-playback.class.d.ts +13 -13
  649. package/dist/components/media/sequence-playback/sequence-playback.d.ts +1 -1
  650. package/dist/components/media/video/video.class.d.ts +56 -35
  651. package/dist/components/media/video/video.class.js +11 -3
  652. package/dist/components/media/video/video.d.ts +1 -1
  653. package/dist/components/media/video/video.styles.js +1 -1
  654. package/dist/components/media/video-playlist/video-playlist.class.d.ts +8 -9
  655. package/dist/components/media/video-playlist/video-playlist.class.js +1 -1
  656. package/dist/components/media/video-playlist/video-playlist.d.ts +1 -1
  657. package/dist/components/media/zoomable-frame/zoomable-frame.class.d.ts +15 -15
  658. package/dist/components/overlays/alert/alert.class.d.ts +6 -6
  659. package/dist/components/overlays/alert/alert.d.ts +1 -1
  660. package/dist/components/overlays/badge/badge.class.d.ts +3 -3
  661. package/dist/components/overlays/badge/badge.d.ts +1 -1
  662. package/dist/components/overlays/badge/tag.class.d.ts +5 -5
  663. package/dist/components/overlays/badge/tag.d.ts +1 -1
  664. package/dist/components/overlays/callout/callout.class.d.ts +4 -4
  665. package/dist/components/overlays/callout/callout.d.ts +1 -1
  666. package/dist/components/overlays/chip/chip-group.class.d.ts +1 -1
  667. package/dist/components/overlays/chip/chip-group.class.js +1 -1
  668. package/dist/components/overlays/chip/chip-group.d.ts +1 -1
  669. package/dist/components/overlays/chip/chip.class.d.ts +6 -6
  670. package/dist/components/overlays/chip/chip.d.ts +1 -1
  671. package/dist/components/overlays/context-menu/context-menu.class.d.ts +6 -6
  672. package/dist/components/overlays/context-menu/context-menu.d.ts +1 -1
  673. package/dist/components/overlays/dialog/confirm.d.ts +5 -5
  674. package/dist/components/overlays/dialog/confirm.js +1 -1
  675. package/dist/components/overlays/dialog/dialog.class.d.ts +8 -8
  676. package/dist/components/overlays/dialog/dialog.class.js +1 -1
  677. package/dist/components/overlays/dialog/dialog.d.ts +1 -1
  678. package/dist/components/overlays/drawer/drawer.class.d.ts +1 -1
  679. package/dist/components/overlays/drawer/drawer.d.ts +1 -1
  680. package/dist/components/overlays/empty/empty.class.d.ts +2 -2
  681. package/dist/components/overlays/empty/empty.d.ts +1 -1
  682. package/dist/components/overlays/kbd/kbd.class.d.ts +3 -3
  683. package/dist/components/overlays/kbd/kbd.d.ts +1 -1
  684. package/dist/components/overlays/overlay/dropdown.class.d.ts +10 -10
  685. package/dist/components/overlays/overlay/dropdown.d.ts +1 -1
  686. package/dist/components/overlays/overlay/overlay-arrow.d.ts +5 -5
  687. package/dist/components/overlays/overlay/overlay-shared.d.ts +6 -6
  688. package/dist/components/overlays/overlay/popover.class.d.ts +15 -15
  689. package/dist/components/overlays/overlay/popover.class.js +2 -1
  690. package/dist/components/overlays/overlay/popover.d.ts +1 -1
  691. package/dist/components/overlays/overlay/tooltip.class.d.ts +5 -5
  692. package/dist/components/overlays/overlay/tooltip.class.js +1 -1
  693. package/dist/components/overlays/overlay/tooltip.d.ts +1 -1
  694. package/dist/components/overlays/popup/popup.class.d.ts +20 -20
  695. package/dist/components/overlays/popup/popup.d.ts +1 -1
  696. package/dist/components/overlays/progress/progress-bar.class.d.ts +1 -1
  697. package/dist/components/overlays/progress/progress-bar.d.ts +1 -1
  698. package/dist/components/overlays/progress/progress-base.d.ts +6 -6
  699. package/dist/components/overlays/progress/progress-ring.class.d.ts +2 -2
  700. package/dist/components/overlays/progress/progress-ring.d.ts +1 -1
  701. package/dist/components/overlays/rating/rating.class.d.ts +10 -10
  702. package/dist/components/overlays/rating/rating.d.ts +1 -1
  703. package/dist/components/overlays/skeleton/skeleton.class.d.ts +1 -1
  704. package/dist/components/overlays/skeleton/skeleton.d.ts +1 -1
  705. package/dist/components/overlays/spinner/spinner.d.ts +1 -1
  706. package/dist/components/overlays/toast/toast-item.class.d.ts +6 -6
  707. package/dist/components/overlays/toast/toast-item.d.ts +1 -1
  708. package/dist/components/overlays/toast/toast.class.d.ts +7 -7
  709. package/dist/components/overlays/toast/toast.d.ts +1 -1
  710. package/dist/components/overlays/toast/toaster.d.ts +2 -2
  711. package/dist/components/retrieval/chunk-inspector/chunk-inspector.class.d.ts +15 -18
  712. package/dist/components/retrieval/chunk-inspector/chunk-inspector.class.js +2 -2
  713. package/dist/components/retrieval/chunk-inspector/chunk-inspector.d.ts +1 -1
  714. package/dist/components/retrieval/citation-badge/citation-badge.class.d.ts +1 -1
  715. package/dist/components/retrieval/citation-badge/citation-badge.d.ts +1 -1
  716. package/dist/components/retrieval/claim-evidence/claim-evidence.class.d.ts +5 -5
  717. package/dist/components/retrieval/claim-evidence/claim-evidence.d.ts +1 -1
  718. package/dist/components/retrieval/community-card/community-card.class.d.ts +5 -8
  719. package/dist/components/retrieval/community-card/community-card.class.js +1 -1
  720. package/dist/components/retrieval/community-card/community-card.d.ts +1 -1
  721. package/dist/components/retrieval/embedding-explorer/embedding-explorer-data.d.ts +12 -0
  722. package/dist/components/retrieval/embedding-explorer/embedding-explorer-data.js +1 -0
  723. package/dist/components/retrieval/embedding-explorer/embedding-explorer-engine.js +1 -0
  724. package/dist/components/retrieval/embedding-explorer/embedding-explorer.class.d.ts +29 -10
  725. package/dist/components/retrieval/embedding-explorer/embedding-explorer.class.js +35 -4
  726. package/dist/components/retrieval/embedding-explorer/embedding-explorer.d.ts +1 -1
  727. package/dist/components/retrieval/embedding-explorer/embedding-explorer.styles.js +1 -1
  728. package/dist/components/retrieval/entity-card/entity-card.class.d.ts +7 -7
  729. package/dist/components/retrieval/entity-card/entity-card.d.ts +1 -1
  730. package/dist/components/retrieval/entity-chip/entity-chip.class.d.ts +2 -2
  731. package/dist/components/retrieval/entity-chip/entity-chip.d.ts +1 -1
  732. package/dist/components/retrieval/entity-dossier/entity-dossier.class.d.ts +13 -19
  733. package/dist/components/retrieval/entity-dossier/entity-dossier.d.ts +1 -1
  734. package/dist/components/retrieval/graph/graph-builtin-3d-engine.js +1 -0
  735. package/dist/components/retrieval/graph/graph-engine-adapter.js +1 -0
  736. package/dist/components/retrieval/graph/graph-engine-columns.js +1 -0
  737. package/dist/components/retrieval/graph/graph-loader.d.ts +1 -1
  738. package/dist/components/retrieval/graph/graph-model.d.ts +16 -16
  739. package/dist/components/retrieval/graph/graph-model.js +1 -1
  740. package/dist/components/retrieval/graph/graph-spatial-controller.js +13 -8
  741. package/dist/components/retrieval/graph/graph-webgl-engine.js +1 -0
  742. package/dist/components/retrieval/graph/graph.class.d.ts +38 -25
  743. package/dist/components/retrieval/graph/graph.class.js +4 -4
  744. package/dist/components/retrieval/graph/graph.d.ts +1 -1
  745. package/dist/components/retrieval/graph/graph.styles.js +1 -1
  746. package/dist/components/retrieval/graph-legend/graph-legend.class.d.ts +4 -4
  747. package/dist/components/retrieval/graph-legend/graph-legend.d.ts +1 -1
  748. package/dist/components/retrieval/grounding-summary/grounding-summary.class.d.ts +6 -6
  749. package/dist/components/retrieval/grounding-summary/grounding-summary.d.ts +1 -1
  750. package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.d.ts +10 -10
  751. package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.js +2 -2
  752. package/dist/components/retrieval/ingestion-queue/ingestion-queue.d.ts +1 -1
  753. package/dist/components/retrieval/knowledge-base/knowledge-base.class.d.ts +16 -16
  754. package/dist/components/retrieval/knowledge-base/knowledge-base.d.ts +1 -1
  755. package/dist/components/retrieval/knowledge-base-admin/knowledge-base-admin.class.d.ts +3 -3
  756. package/dist/components/retrieval/knowledge-base-admin/knowledge-base-admin.d.ts +1 -1
  757. package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.d.ts +16 -13
  758. package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.js +3 -3
  759. package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.d.ts +1 -1
  760. package/dist/components/retrieval/memory-panel/memory-panel.class.d.ts +11 -18
  761. package/dist/components/retrieval/memory-panel/memory-panel.class.js +1 -1
  762. package/dist/components/retrieval/memory-panel/memory-panel.d.ts +1 -1
  763. package/dist/components/retrieval/mind-map/mind-map-layout.d.ts +6 -6
  764. package/dist/components/retrieval/mind-map/mind-map.class.d.ts +1 -1
  765. package/dist/components/retrieval/mind-map/mind-map.d.ts +1 -1
  766. package/dist/components/retrieval/neighbor-list/neighbor-list.class.d.ts +13 -13
  767. package/dist/components/retrieval/neighbor-list/neighbor-list.class.js +2 -2
  768. package/dist/components/retrieval/neighbor-list/neighbor-list.d.ts +1 -1
  769. package/dist/components/retrieval/node-palette/node-palette.class.d.ts +6 -6
  770. package/dist/components/retrieval/node-palette/node-palette.d.ts +1 -1
  771. package/dist/components/retrieval/path-strip/path-strip.class.d.ts +2 -5
  772. package/dist/components/retrieval/path-strip/path-strip.class.js +1 -1
  773. package/dist/components/retrieval/path-strip/path-strip.d.ts +1 -1
  774. package/dist/components/retrieval/provenance-panel/provenance-panel.class.d.ts +5 -11
  775. package/dist/components/retrieval/provenance-panel/provenance-panel.d.ts +1 -1
  776. package/dist/components/retrieval/rag-answer/rag-answer.class.d.ts +9 -9
  777. package/dist/components/retrieval/rag-answer/rag-answer.class.js +2 -3
  778. package/dist/components/retrieval/rag-answer/rag-answer.d.ts +1 -1
  779. package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.class.d.ts +5 -15
  780. package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.class.js +1 -1
  781. package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.d.ts +1 -1
  782. package/dist/components/retrieval/research-progress/research-progress.class.d.ts +6 -6
  783. package/dist/components/retrieval/research-progress/research-progress.d.ts +1 -1
  784. package/dist/components/retrieval/retrieval-compare/retrieval-compare.class.d.ts +4 -4
  785. package/dist/components/retrieval/retrieval-compare/retrieval-compare.d.ts +1 -1
  786. package/dist/components/retrieval/retrieval-results/retrieval-results.class.d.ts +15 -19
  787. package/dist/components/retrieval/retrieval-results/retrieval-results.class.js +5 -6
  788. package/dist/components/retrieval/retrieval-results/retrieval-results.d.ts +1 -1
  789. package/dist/components/retrieval/retrieval-search/retrieval-search.class.d.ts +1 -1
  790. package/dist/components/retrieval/retrieval-search/retrieval-search.d.ts +1 -1
  791. package/dist/components/retrieval/retrieval-trace/retrieval-trace.class.d.ts +18 -21
  792. package/dist/components/retrieval/retrieval-trace/retrieval-trace.class.js +2 -3
  793. package/dist/components/retrieval/retrieval-trace/retrieval-trace.d.ts +1 -1
  794. package/dist/components/retrieval/source-card/source-card.class.d.ts +9 -12
  795. package/dist/components/retrieval/source-card/source-card.class.js +1 -1
  796. package/dist/components/retrieval/source-card/source-card.d.ts +1 -1
  797. package/dist/components/retrieval/source-list/source-list.class.d.ts +1 -1
  798. package/dist/components/retrieval/source-list/source-list.d.ts +1 -1
  799. package/dist/components/retrieval/source-picker/source-picker.class.d.ts +5 -8
  800. package/dist/components/retrieval/source-picker/source-picker.class.js +1 -1
  801. package/dist/components/retrieval/source-picker/source-picker.d.ts +1 -1
  802. package/dist/components/utility/copy-button/copy-button.class.d.ts +8 -8
  803. package/dist/components/utility/copy-button/copy-button.d.ts +1 -1
  804. package/dist/components/utility/diff-view/diff-line-diff.d.ts +1 -1
  805. package/dist/components/utility/diff-view/diff-view.class.d.ts +3 -3
  806. package/dist/components/utility/diff-view/diff-view.class.js +1 -1
  807. package/dist/components/utility/diff-view/diff-view.d.ts +1 -1
  808. package/dist/components/utility/divider/divider.class.d.ts +1 -1
  809. package/dist/components/utility/divider/divider.d.ts +1 -1
  810. package/dist/components/utility/export-button/csv.d.ts +2 -2
  811. package/dist/components/utility/export-button/export-button.class.d.ts +11 -11
  812. package/dist/components/utility/export-button/export-button.d.ts +1 -1
  813. package/dist/components/utility/format/format-bytes.d.ts +1 -1
  814. package/dist/components/utility/format/format-date.class.d.ts +1 -1
  815. package/dist/components/utility/format/format-date.d.ts +1 -1
  816. package/dist/components/utility/format/format-number.class.d.ts +2 -2
  817. package/dist/components/utility/format/format-number.d.ts +1 -1
  818. package/dist/components/utility/format/format-options.d.ts +4 -4
  819. package/dist/components/utility/format/format-options.js +1 -1
  820. package/dist/components/utility/format/relative-time.d.ts +1 -1
  821. package/dist/components/utility/icon/icon-library.d.ts +2 -2
  822. package/dist/components/utility/icon/icon.class.d.ts +10 -15
  823. package/dist/components/utility/icon/icon.class.js +2 -2
  824. package/dist/components/utility/icon/icon.d.ts +1 -1
  825. package/dist/components/utility/icon/icon.styles.js +1 -1
  826. package/dist/components/utility/intersection-observer/intersection-observer.class.d.ts +1 -1
  827. package/dist/components/utility/intersection-observer/intersection-observer.d.ts +1 -1
  828. package/dist/components/utility/json-viewer/json-viewer.class.d.ts +5 -5
  829. package/dist/components/utility/json-viewer/json-viewer.class.js +1 -1
  830. package/dist/components/utility/json-viewer/json-viewer.d.ts +1 -1
  831. package/dist/components/utility/known-date/known-date.class.d.ts +18 -21
  832. package/dist/components/utility/known-date/known-date.class.js +1 -1
  833. package/dist/components/utility/known-date/known-date.d.ts +1 -1
  834. package/dist/components/utility/live-region/live-region.class.d.ts +1 -1
  835. package/dist/components/utility/live-region/live-region.d.ts +1 -1
  836. package/dist/components/utility/mention-popover/mention-popover.class.d.ts +12 -11
  837. package/dist/components/utility/mention-popover/mention-popover.class.js +1 -1
  838. package/dist/components/utility/mention-popover/mention-popover.d.ts +1 -1
  839. package/dist/components/utility/mutation-observer/mutation-observer.class.d.ts +1 -1
  840. package/dist/components/utility/mutation-observer/mutation-observer.d.ts +1 -1
  841. package/dist/components/utility/poll-status/poll-status.class.d.ts +1 -1
  842. package/dist/components/utility/poll-status/poll-status.d.ts +1 -1
  843. package/dist/components/utility/random-content/random-content.class.d.ts +4 -4
  844. package/dist/components/utility/random-content/random-content.d.ts +1 -1
  845. package/dist/components/utility/resize-observer/resize-observer.d.ts +1 -1
  846. package/dist/components/utility/tour/tour.class.d.ts +8 -8
  847. package/dist/components/utility/tour/tour.d.ts +1 -1
  848. package/dist/components/utility/visually-hidden/visually-hidden.d.ts +1 -1
  849. package/dist/components/viewers/archive-viewer/archive-viewer.class.d.ts +3 -3
  850. package/dist/components/viewers/archive-viewer/archive-viewer.class.js +1 -1
  851. package/dist/components/viewers/archive-viewer/archive-viewer.d.ts +1 -1
  852. package/dist/components/viewers/calendar-viewer/calendar-loader.d.ts +1 -1
  853. package/dist/components/viewers/calendar-viewer/calendar-viewer.class.d.ts +6 -6
  854. package/dist/components/viewers/calendar-viewer/calendar-viewer.class.js +1 -1
  855. package/dist/components/viewers/calendar-viewer/calendar-viewer.d.ts +1 -1
  856. package/dist/components/viewers/contact-viewer/contact-viewer.class.d.ts +4 -4
  857. package/dist/components/viewers/contact-viewer/contact-viewer.class.js +1 -1
  858. package/dist/components/viewers/contact-viewer/contact-viewer.d.ts +1 -1
  859. package/dist/components/viewers/contact-viewer/vcard.d.ts +1 -1
  860. package/dist/components/viewers/csv-viewer/csv-viewer.class.d.ts +7 -7
  861. package/dist/components/viewers/csv-viewer/csv-viewer.d.ts +1 -1
  862. package/dist/components/viewers/dataset-viewer/dataset-viewer.class.d.ts +8 -8
  863. package/dist/components/viewers/dataset-viewer/dataset-viewer.d.ts +1 -1
  864. package/dist/components/viewers/document-compare/document-compare.class.d.ts +15 -15
  865. package/dist/components/viewers/document-compare/document-compare.d.ts +1 -1
  866. package/dist/components/viewers/document-preview/document-preview.class.d.ts +1 -1
  867. package/dist/components/viewers/document-preview/document-preview.class.js +1 -1
  868. package/dist/components/viewers/document-preview/document-preview.d.ts +1 -1
  869. package/dist/components/viewers/document-viewer/anchors.d.ts +7 -7
  870. package/dist/components/viewers/document-viewer/document-viewer-kinds.d.ts +1 -1
  871. package/dist/components/viewers/document-viewer/document-viewer-kinds.js +1 -1
  872. package/dist/components/viewers/document-viewer/document-viewer.class.d.ts +9 -9
  873. package/dist/components/viewers/document-viewer/document-viewer.class.js +1 -1
  874. package/dist/components/viewers/document-viewer/document-viewer.d.ts +1 -1
  875. package/dist/components/viewers/document-viewer/registry.d.ts +1 -69
  876. package/dist/components/viewers/document-viewer/registry.js +1 -1
  877. package/dist/components/viewers/docx-viewer/docx-viewer.class.d.ts +4 -4
  878. package/dist/components/viewers/docx-viewer/docx-viewer.class.js +1 -1
  879. package/dist/components/viewers/docx-viewer/docx-viewer.d.ts +1 -1
  880. package/dist/components/viewers/ebook-viewer/ebook-viewer.class.d.ts +2 -2
  881. package/dist/components/viewers/ebook-viewer/ebook-viewer.d.ts +1 -1
  882. package/dist/components/viewers/email-viewer/email-loader.d.ts +2 -2
  883. package/dist/components/viewers/email-viewer/email-viewer.class.d.ts +3 -3
  884. package/dist/components/viewers/email-viewer/email-viewer.class.js +1 -1
  885. package/dist/components/viewers/email-viewer/email-viewer.d.ts +1 -1
  886. package/dist/components/viewers/geojson-view/geojson-viewer.class.d.ts +2 -2
  887. package/dist/components/viewers/geojson-view/geojson-viewer.d.ts +1 -1
  888. package/dist/components/viewers/highlight-layer/highlight-layer.class.d.ts +1 -1
  889. package/dist/components/viewers/highlight-layer/highlight-layer.d.ts +1 -1
  890. package/dist/components/viewers/html-viewer/html-viewer.class.d.ts +5 -5
  891. package/dist/components/viewers/html-viewer/html-viewer.class.js +1 -1
  892. package/dist/components/viewers/html-viewer/html-viewer.d.ts +1 -1
  893. package/dist/components/viewers/include/include-resource.d.ts +1 -1
  894. package/dist/components/viewers/include/include.class.d.ts +2 -2
  895. package/dist/components/viewers/include/include.class.js +1 -1
  896. package/dist/components/viewers/include/include.d.ts +1 -1
  897. package/dist/components/viewers/index.d.ts +1 -1
  898. package/dist/components/viewers/index.js +1 -1
  899. package/dist/components/viewers/model-viewer/model-viewer-document.js +1 -0
  900. package/dist/components/viewers/model-viewer/model-viewer-loader.js +1 -0
  901. package/dist/components/viewers/model-viewer/model-viewer-register.d.ts +1 -0
  902. package/dist/components/viewers/model-viewer/model-viewer-register.js +1 -0
  903. package/dist/components/viewers/model-viewer/model-viewer-source.d.ts +1 -0
  904. package/dist/components/viewers/model-viewer/model-viewer-source.js +1 -0
  905. package/dist/components/viewers/model-viewer/model-viewer.class.d.ts +61 -0
  906. package/dist/components/viewers/model-viewer/model-viewer.class.js +9 -0
  907. package/dist/components/viewers/model-viewer/model-viewer.d.ts +1 -0
  908. package/dist/components/viewers/model-viewer/model-viewer.js +1 -0
  909. package/dist/components/viewers/model-viewer/model-viewer.styles.js +1 -0
  910. package/dist/components/viewers/notebook-viewer/notebook-viewer.class.d.ts +3 -3
  911. package/dist/components/viewers/notebook-viewer/notebook-viewer.class.js +2 -2
  912. package/dist/components/viewers/notebook-viewer/notebook-viewer.d.ts +1 -1
  913. package/dist/components/viewers/page-rail/page-rail.class.d.ts +5 -5
  914. package/dist/components/viewers/page-rail/page-rail.class.js +1 -1
  915. package/dist/components/viewers/page-rail/page-rail.d.ts +1 -1
  916. package/dist/components/viewers/page-rail/page-viewer-snapshot.d.ts +2 -2
  917. package/dist/components/viewers/pdf-viewer/pdf-viewer.class.d.ts +4 -4
  918. package/dist/components/viewers/pdf-viewer/pdf-viewer.class.js +1 -1
  919. package/dist/components/viewers/pdf-viewer/pdf-viewer.d.ts +1 -1
  920. package/dist/components/viewers/pptx-viewer/pptx-loader.d.ts +5 -5
  921. package/dist/components/viewers/pptx-viewer/pptx-viewer.class.d.ts +7 -7
  922. package/dist/components/viewers/pptx-viewer/pptx-viewer.class.js +3 -3
  923. package/dist/components/viewers/pptx-viewer/pptx-viewer.d.ts +1 -1
  924. package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer.class.d.ts +9 -9
  925. package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer.d.ts +1 -1
  926. package/dist/components/viewers/svg-viewer/svg-viewer.class.d.ts +1 -1
  927. package/dist/components/viewers/svg-viewer/svg-viewer.class.js +1 -1
  928. package/dist/components/viewers/svg-viewer/svg-viewer.d.ts +1 -1
  929. package/dist/components/viewers/table-viewer-shared.js +1 -1
  930. package/dist/components/viewers/viewer-diagnostics.d.ts +3 -3
  931. package/dist/components/viewers/viewer-source.d.ts +2 -2
  932. package/dist/components/viewers/xml-viewer/xml-viewer.class.d.ts +9 -9
  933. package/dist/components/viewers/xml-viewer/xml-viewer.class.js +1 -1
  934. package/dist/components/viewers/xml-viewer/xml-viewer.d.ts +1 -1
  935. package/dist/countries.d.ts +3 -3
  936. package/dist/currency.d.ts +5 -5
  937. package/dist/custom-elements-jsx.d.ts +1 -1
  938. package/dist/data-sources.d.ts +17 -17
  939. package/dist/events.d.ts +164 -119
  940. package/dist/framework-types.d.ts +4 -4
  941. package/dist/hydration.d.ts +1 -1
  942. package/dist/internal/a11y.d.ts +2 -2
  943. package/dist/internal/accessibility-visibility.d.ts +17 -17
  944. package/dist/internal/active-element.d.ts +1 -1
  945. package/dist/internal/anchor-target.d.ts +3 -3
  946. package/dist/internal/announcer.d.ts +18 -18
  947. package/dist/internal/ansi.d.ts +5 -3
  948. package/dist/internal/ansi.js +1 -1
  949. package/dist/internal/approval-wait-until.d.ts +1 -1
  950. package/dist/internal/autoloader-manifest.js +1 -1
  951. package/dist/internal/autoloader-tags.d.ts +1 -1
  952. package/dist/internal/autoloader-tags.js +1 -1
  953. package/dist/internal/av-metadata.d.ts +13 -0
  954. package/dist/internal/av-metadata.js +1 -0
  955. package/dist/internal/canvas-color.d.ts +1 -1
  956. package/dist/internal/catalog-picker.d.ts +1 -1
  957. package/dist/internal/clipboard.d.ts +5 -5
  958. package/dist/internal/collection-snapshot.js +1 -1
  959. package/dist/internal/component-loaders.generated.js +1 -1
  960. package/dist/internal/composed-tree.d.ts +2 -2
  961. package/dist/internal/converters.d.ts +10 -10
  962. package/dist/internal/css-length.d.ts +1 -1
  963. package/dist/internal/custom-element-upgrade-observer.d.ts +1 -1
  964. package/dist/internal/data-descriptors.d.ts +30 -0
  965. package/dist/internal/default-strings/agent-tools.generated.js +1 -1
  966. package/dist/internal/default-strings/charts.generated.js +1 -1
  967. package/dist/internal/default-strings/conversation.generated.js +1 -1
  968. package/dist/internal/default-strings/media.generated.js +1 -1
  969. package/dist/internal/default-strings/shared.generated.js +1 -1
  970. package/dist/internal/default-strings/viewers.generated.js +1 -1
  971. package/dist/internal/deferred-focus-return.d.ts +5 -5
  972. package/dist/internal/definition-registry.d.ts +2 -2
  973. package/dist/internal/deprecated-alias-types.d.ts +1 -1
  974. package/dist/internal/deprecated-aliases.d.ts +1 -1
  975. package/dist/internal/direct-form-associated.d.ts +4 -4
  976. package/dist/internal/document-renderer-registry.d.ts +75 -0
  977. package/dist/internal/document-renderer-registry.js +1 -0
  978. package/dist/internal/document-tokens.d.ts +1 -1
  979. package/dist/internal/docx-zip-admission.d.ts +1 -1
  980. package/dist/internal/drop-session-controller.d.ts +6 -6
  981. package/dist/internal/drop-session-controller.js +1 -1
  982. package/dist/internal/engine-3d-loader.d.ts +47 -0
  983. package/dist/internal/engine-3d-loader.js +1 -0
  984. package/dist/internal/engine-3d.d.ts +57 -0
  985. package/dist/internal/engine-3d.js +1 -0
  986. package/dist/internal/focus-navigation.d.ts +9 -9
  987. package/dist/internal/form-associated.d.ts +20 -20
  988. package/dist/internal/form-control-element.d.ts +6 -6
  989. package/dist/internal/heading-level.d.ts +1 -1
  990. package/dist/internal/hierarchy-source-controller.js +1 -1
  991. package/dist/internal/highlight-collection.d.ts +3 -3
  992. package/dist/internal/icons.d.ts +23 -23
  993. package/dist/internal/inherited-attribute-hub.d.ts +3 -3
  994. package/dist/internal/layered-layout.d.ts +8 -8
  995. package/dist/internal/locale-loader.d.ts +1 -1
  996. package/dist/internal/localization-runtime.d.ts +7 -7
  997. package/dist/internal/localization-runtime.js +1 -1
  998. package/dist/internal/localization-types.d.ts +2 -2
  999. package/dist/internal/localization.js +1 -1
  1000. package/dist/internal/lyra-element.d.ts +19 -19
  1001. package/dist/internal/lyra-element.js +1 -1
  1002. package/dist/internal/match-constraint.d.ts +1 -1
  1003. package/dist/internal/model-viewer-contract.d.ts +5 -0
  1004. package/dist/internal/model-viewer-contract.js +1 -0
  1005. package/dist/internal/node-type-style.d.ts +1 -1
  1006. package/dist/internal/numbers.d.ts +12 -12
  1007. package/dist/internal/optional-peer-capabilities.d.ts +9 -9
  1008. package/dist/internal/overlay-manager.d.ts +22 -22
  1009. package/dist/internal/overlay-manager.js +1 -1
  1010. package/dist/internal/overlay-order.d.ts +3 -3
  1011. package/dist/internal/overlay-stack.d.ts +3 -3
  1012. package/dist/internal/package-metadata.js +1 -1
  1013. package/dist/internal/positioner-geometry.d.ts +2 -2
  1014. package/dist/internal/positioner.d.ts +26 -23
  1015. package/dist/internal/positioner.js +1 -1
  1016. package/dist/internal/registered-animation.d.ts +2 -2
  1017. package/dist/internal/rendered-state.js +1 -1
  1018. package/dist/internal/rendered-tree-traversal.d.ts +13 -13
  1019. package/dist/internal/resource-loader.d.ts +7 -7
  1020. package/dist/internal/root-registration-allowlist.js +1 -1
  1021. package/dist/internal/safe-resource-cache.d.ts +3 -3
  1022. package/dist/internal/scoped-definitions.generated.js +1 -1
  1023. package/dist/internal/score-tiers.d.ts +2 -2
  1024. package/dist/internal/selection-catalog.d.ts +3 -3
  1025. package/dist/internal/semantic-variant.d.ts +3 -3
  1026. package/dist/internal/shared-unions.d.ts +3 -3
  1027. package/dist/internal/slugger.d.ts +1 -1
  1028. package/dist/internal/stream-phase.d.ts +1 -1
  1029. package/dist/internal/text-highlights.d.ts +4 -4
  1030. package/dist/internal/text-quote.d.ts +18 -18
  1031. package/dist/internal/text-viewer-target.d.ts +4 -4
  1032. package/dist/internal/theme-watcher.d.ts +2 -2
  1033. package/dist/internal/top-layer-escape.d.ts +1 -1
  1034. package/dist/internal/typed-columns.d.ts +39 -0
  1035. package/dist/internal/typed-columns.js +1 -0
  1036. package/dist/internal/variant-values.d.ts +3 -3
  1037. package/dist/internal/variants.d.ts +4 -4
  1038. package/dist/localization.js +1 -1
  1039. package/dist/lyra.d.ts +1 -1
  1040. package/dist/lyra.js +1 -1
  1041. package/dist/ssr/all.d.ts +1 -1
  1042. package/dist/ssr/all.js +1 -1
  1043. package/dist/ssr.d.ts +16 -16
  1044. package/dist/ssr.js +1 -1
  1045. package/dist/svelte.d.ts +1 -1
  1046. package/dist/testing/happy-dom-shims.d.ts +3 -3
  1047. package/dist/testing/interaction-drivers.d.ts +3 -3
  1048. package/dist/testing/jsdom-shims.d.ts +9 -9
  1049. package/dist/testing/lyra-tag-event-map.d.ts +2 -2
  1050. package/dist/testing/lyra-tag-event-map.js +1 -1
  1051. package/dist/testing/wait-for-mount.d.ts +3 -3
  1052. package/dist/theme/chart-palette.d.ts +2 -2
  1053. package/dist/theme/gemstones-data.d.ts +2 -2
  1054. package/dist/theme/look-css.d.ts +2 -2
  1055. package/dist/theme/looks/data.d.ts +1 -1
  1056. package/dist/theme/looks/high-contrast.d.ts +1 -1
  1057. package/dist/theme/looks/material.d.ts +1 -1
  1058. package/dist/theme/looks/shadcn.d.ts +1 -1
  1059. package/dist/theme/looks/terminal.d.ts +1 -1
  1060. package/dist/theme/options/charts.d.ts +5 -5
  1061. package/dist/theme/options/elevation.d.ts +1 -1
  1062. package/dist/theme/options/shape.d.ts +1 -1
  1063. package/dist/theme/options/typography.d.ts +1 -1
  1064. package/dist/theme/preferences.d.ts +1 -1
  1065. package/dist/theme/style-ownership.d.ts +1 -1
  1066. package/dist/theme/theme-bootstrap.js +1 -1
  1067. package/dist/theme/theme.d.ts +13 -13
  1068. package/dist/theme/theme.js +1 -1
  1069. package/dist/units.d.ts +2 -2
  1070. package/dist/utilities/animation-registry.d.ts +5 -5
  1071. package/dist/utilities/catalog.d.ts +1 -1
  1072. package/dist/utilities/data-spatial.d.ts +9 -9
  1073. package/dist/utilities/defined.d.ts +1 -1
  1074. package/dist/utilities/deprecated-aliases.d.ts +1 -1
  1075. package/dist/utilities/scoped-registry.d.ts +5 -5
  1076. package/dist/vue.d.ts +3 -3
  1077. package/llms/components/lr-accordion-item.md +2 -2
  1078. package/llms/components/lr-agent-eval-dashboard.md +3 -3
  1079. package/llms/components/lr-agent-run.md +3 -3
  1080. package/llms/components/lr-agent-trace.md +1 -1
  1081. package/llms/components/lr-agent-workspace.md +1 -1
  1082. package/llms/components/lr-app-rail-item.md +1 -1
  1083. package/llms/components/lr-app-rail.md +5 -6
  1084. package/llms/components/lr-background-runs.md +4 -4
  1085. package/llms/components/lr-calendar.md +1 -1
  1086. package/llms/components/lr-change-review.md +5 -5
  1087. package/llms/components/lr-chart-3d.md +164 -0
  1088. package/llms/components/lr-chunk-inspector.md +4 -5
  1089. package/llms/components/lr-citation-badge.md +1 -1
  1090. package/llms/components/lr-code-block-core.md +2 -4
  1091. package/llms/components/lr-command-palette.md +3 -3
  1092. package/llms/components/lr-community-card.md +2 -2
  1093. package/llms/components/lr-date-picker.md +1 -1
  1094. package/llms/components/lr-details.md +2 -2
  1095. package/llms/components/lr-diff-view.md +2 -2
  1096. package/llms/components/lr-dock-panel.md +5 -10
  1097. package/llms/components/lr-document-viewer.md +21 -14
  1098. package/llms/components/lr-embedding-explorer.md +24 -4
  1099. package/llms/components/lr-entity-dossier.md +3 -4
  1100. package/llms/components/lr-eval-dataset.md +3 -3
  1101. package/llms/components/lr-eval-run.md +7 -1
  1102. package/llms/components/lr-file-input.md +10 -11
  1103. package/llms/components/lr-flow-node.md +2 -3
  1104. package/llms/components/lr-geojson-viewer.md +1 -1
  1105. package/llms/components/lr-graph.md +21 -2
  1106. package/llms/components/lr-grounding-summary.md +1 -1
  1107. package/llms/components/lr-icon.md +1 -3
  1108. package/llms/components/lr-image-viewer.md +29 -2
  1109. package/llms/components/lr-ingestion-queue.md +1 -1
  1110. package/llms/components/lr-knowledge-base-admin.md +2 -2
  1111. package/llms/components/lr-knowledge-graph-explorer.md +7 -1
  1112. package/llms/components/lr-known-date.md +3 -10
  1113. package/llms/components/lr-lite-chart.md +1 -1
  1114. package/llms/components/lr-locale-picker.md +11 -1
  1115. package/llms/components/lr-map-anchor.md +165 -0
  1116. package/llms/components/lr-map.md +939 -49
  1117. package/llms/components/lr-markdown-core.md +1 -2
  1118. package/llms/components/lr-memory-panel.md +4 -8
  1119. package/llms/components/lr-model-viewer.md +170 -0
  1120. package/llms/components/lr-navigation-menu.md +3 -4
  1121. package/llms/components/lr-node-palette.md +1 -1
  1122. package/llms/components/lr-path-strip.md +2 -3
  1123. package/llms/components/lr-provenance-panel.md +3 -5
  1124. package/llms/components/lr-qr-code.md +3 -4
  1125. package/llms/components/lr-rag-answer.md +1 -1
  1126. package/llms/components/lr-rag-eval-dashboard.md +2 -5
  1127. package/llms/components/lr-retrieval-results.md +6 -7
  1128. package/llms/components/lr-retrieval-trace.md +3 -4
  1129. package/llms/components/lr-signature-pad.md +4 -3
  1130. package/llms/components/lr-source-card.md +1 -1
  1131. package/llms/components/lr-source-list.md +5 -5
  1132. package/llms/components/lr-source-picker.md +2 -3
  1133. package/llms/components/lr-span-waterfall.md +4 -3
  1134. package/llms/components/lr-sparkline.md +3 -3
  1135. package/llms/components/lr-subagent-panel.md +3 -3
  1136. package/llms/components/lr-tool-call-chip.md +6 -6
  1137. package/llms/components/lr-tool-timeline.md +1 -1
  1138. package/llms/components/lr-tree.md +4 -0
  1139. package/llms/components/lr-video-playlist.md +3 -3
  1140. package/llms/components/lr-video.md +29 -2
  1141. package/llms/components/lr-virtual-list.md +3 -2
  1142. package/llms/components/lr-widget.md +6 -13
  1143. package/llms/index.md +100 -96
  1144. package/llms/migration.md +27 -38
  1145. package/llms/peers.md +7 -6
  1146. package/llms/shared/ai-and-peers.md +1 -1
  1147. package/llms/shared/events-and-types.md +12 -0
  1148. package/llms/shared/imports-and-registration.md +2 -2
  1149. package/llms/shared/testing-and-utilities.md +6 -1
  1150. package/llms/shared/v29-to-v30-migration.md +256 -0
  1151. package/llms/shared.md +21 -4
  1152. package/llms.txt +7 -7
  1153. package/locales.json +1 -2328
  1154. package/package.json +49 -14
  1155. package/registrations.json +1 -1
  1156. package/skills/lyra-ui/SKILL.md +4 -3
  1157. /package/dist/{components/viewers/document-viewer → internal}/deferred-teardown.js +0 -0
  1158. /package/dist/{components/viewers/document-viewer/registry-ownership.js → internal/document-renderer-registry-ownership.js} +0 -0
@@ -1,9 +1,9 @@
1
1
  import type{LyraPageSource}from'../../../data-sources.js';import{type PropertyValues,type TemplateResult}from'lit';import{LyraElement}from'../../../internal/lyra-element.js';import type{LyraConversationItem}from'../conversation-item/conversation-item.class.js';import{type LyraSize}from'../../../internal/variants.js';import{type LyraTimestamp}from'../timestamp.js';export interface LyraChatThread{id:string;
2
- /** Required display/search text. Runtime records without a string title are omitted. */
2
+ /** Required display/search text. Runtime records without a string title are omitted.*/
3
3
  title:string;excerpt?:string;timestamp?:LyraTimestamp;pinned?:boolean;archived?:boolean;}export type ThreadRowAction='pin'|'archive'|'delete';export type ThreadListGrouping='date'|'custom'|'none';
4
- /** Global provider query; callbacks are applied by the provider, never to a partial page. */
4
+ /** Global provider query; callbacks are applied by the provider, never to a partial page.*/
5
5
  export interface ThreadListSourceQuery{readonly search:string;readonly withArchived:boolean;readonly grouping:ThreadListGrouping;readonly collapsedGroupIds:readonly string[];readonly filter:LyraThreadList['filter'];readonly groupBy:LyraThreadList['groupBy'];readonly getGroupLabel:LyraThreadList['getGroupLabel'];readonly groupOrder:LyraThreadList['groupOrder'];}export type ThreadListSource=LyraPageSource<LyraChatThread,ThreadListSourceQuery>;
6
- /** Payload shared by the `lr-group-toggle-request`/`lr-group-toggle` pair. */
6
+ /** Payload shared by the `lr-group-toggle-request`/`lr-group-toggle` pair.*/
7
7
  export interface ThreadGroupToggleDetail{groupId:string;
8
8
  /** Whether the group is shown in the resulting (on `lr-group-toggle-request`, the proposed)
9
9
  * state. Always present on events this component dispatches. */
@@ -203,23 +203,23 @@ expanded?:boolean;}export interface LyraThreadListEventMap{'lr-select':CustomEve
203
203
  * @status stable
204
204
  * @since 4.0.0
205
205
  */
206
- export declare class LyraThreadList extends LyraElement<LyraThreadListEventMap>{protected static collectionSupport:import("../../../internal/lyra-element.js").LyraCollectionSupport;protected static readonly ownedCollectionProperties:readonly string[];protected static readonly identityCollectionProperties:readonly string[];protected static readonly immutableSourceCollectionProperties:readonly string[];static styles:import("lit").CSSResultGroup[];private readonly inputLimitAnnouncements;private get inputLimitMessage();private syncInputLimitAnnouncement;private readonly hostDescription;adoptedCallback():void;private _dataSource?;private sourceEpoch;private sourceSyncing;private sourceInputs?;private sourceQueryInputs?;private sourceRequestVersion;private sourceResult?;private sourceRows;private sourcePageModel?;private readonly sourceRowIdentities;private readonly sourceGroupIdentities;private sourceFilterIntent?;private sourceActiveInputs?;private sourceActiveReveal?;private sourceStateVersion;private readonly sourcePages;
206
+ export declare class LyraThreadList extends LyraElement<LyraThreadListEventMap>{protected static collectionSupport:import("../../../internal/lyra-element.js").LyraCollectionSupport;protected static readonly ownedCollectionProperties:readonly string[];protected static readonly identityCollectionProperties:readonly string[];static styles:import("lit").CSSResultGroup[];private readonly inputLimitAnnouncements;private get inputLimitMessage();private syncInputLimitAnnouncement;private readonly hostDescription;adoptedCallback():void;private _dataSource?;private sourceEpoch;private sourceSyncing;private sourceInputs?;private sourceQueryInputs?;private sourceRequestVersion;private sourceResult?;private sourceRows;private sourcePageModel?;private readonly sourceRowIdentities;private readonly sourceGroupIdentities;private sourceFilterIntent?;private sourceActiveInputs?;private sourceActiveReveal?;private sourceStateVersion;private readonly sourcePages;
207
207
  /** Full-source page provider, taking precedence over threads and the default slot. Present
208
208
  * invalid providers fail visibly. Reassign even the same source or call requestUpdate() to
209
209
  * refresh; undefined restores legacy data/slotted mode. */
210
210
  get dataSource():ThreadListSource|undefined;set dataSource(value:ThreadListSource|undefined);
211
- /** Zero-based source record page. Collapsing groups preserves this page and its record positions. */
211
+ /** Zero-based source record page. Collapsing groups preserves this page and its record positions.*/
212
212
  sourcePage:number;
213
- /** Source records per page, normalized to 1..500. Size changes reset page 0. */
213
+ /** Source records per page, normalized to 1..500. Size changes reset page 0.*/
214
214
  sourcePageSize:number;
215
- /** Exact current-query record count before group collapse, or null before success/without a source. */
215
+ /** Exact current-query record count before group collapse, or null before success/without a source.*/
216
216
  get sourceTotal():number|null;private get sourceMode();private get sourceFailed();private get sourceBlocked();private projectSourceThread;private validateSourceGroups;private syncSource;private acceptSourcePage;private syncSourceActive;private revealSourceActive;private sourceModel;private canUseThread;private canUseGroup;private onSourcePage;private currentSourceRetry;private retrySource;
217
217
  /** At least one valid thread ⇒ data mode (the default slot is ignored). No valid threads and no
218
218
  * slotted content ⇒ data mode with zero rows (the built-in empty state). No valid threads with
219
219
  * slotted content ⇒ slotted mode. Thread ids must be nonempty and unique; invalid/later
220
220
  * duplicate rows are omitted, first wins. Group headings do not consume the thread admission
221
221
  * budget: all admitted threads remain addressable in the virtual list. The first 10,000 input records are retained,
222
- * matching newest-first sidebar ordering. */
222
+ * matching newest-first sidebar ordering. Assign a new array to update: mutating an array and assigning it again does not. */
223
223
  threads:readonly LyraChatThread[];
224
224
  /**
225
225
  * Data mode: marks the matching raw thread id `active`/`aria-current` and scrolls it into view.
@@ -227,13 +227,13 @@ threads:readonly LyraChatThread[];
227
227
  * ordinary thread ids rather than colliding with a group header.
228
228
  */
229
229
  activeConversationId:string;
230
- /** Shows the built-in search field. */
230
+ /** Shows the built-in search field.*/
231
231
  searchable:boolean;
232
232
  /** Shared size tier for the built-in search field and data-mode rows. Defaults to `m`.
233
233
  * Explicit `small`/`medium`/`large` spellings remain accepted; invalid or omitted writes
234
234
  * restore `m`. Slotted rows keep their own size. */
235
235
  size:LyraSize|undefined;
236
- /** Overrides the default case-insensitive `title` + `excerpt` substring match. */
236
+ /** Overrides the default case-insensitive `title` + `excerpt` substring match.*/
237
237
  filter?:(thread:LyraChatThread,query:string)=>boolean;
238
238
  /** Data mode: bucket rows under localized date headers (a future timestamp counts as today, a
239
239
  * missing or invalid one files under "Previous 30 days"), use `groupBy` with `'custom'`, or use
@@ -257,7 +257,7 @@ groupOrder?:readonly string[]|((a:string,b:string)=>number);
257
257
  * keep this property fully controlled instead, the only behavior it had before self-management
258
258
  * existed. */
259
259
  collapsedGroupIds:readonly string[];
260
- /** Data mode only: built-in icon buttons rendered into each row's `actions` slot, in display order. */
260
+ /** Data mode only: built-in icon buttons rendered into each row's `actions` slot, in display order.*/
261
261
  rowActions:readonly ThreadRowAction[];
262
262
  /** Data mode only: appended after any built-in `rowActions` buttons in the same row's `actions`
263
263
  * slot -- the escape hatch for a fully custom per-row action surface (e.g. an `<lr-dropdown>`
@@ -302,11 +302,11 @@ renderExcerpt?:(thread:LyraChatThread)=>TemplateResult;
302
302
  * host-rendered row body. Use this for structured, non-interactive row content while keeping
303
303
  * the selectable row and timestamp semantics supplied by `<lr-conversation-item>`. */
304
304
  renderRowContent?:(thread:LyraChatThread)=>TemplateResult;
305
- /** Overrides the default locale-aware formatting used for month group dates. */
305
+ /** Overrides the default locale-aware formatting used for month group dates.*/
306
306
  formatDate?:(date:Date)=>string;
307
- /** Data mode: include `archived` threads (in their own trailing group under `grouping="date"`). */
307
+ /** Data mode: include `archived` threads (in their own trailing group under `grouping="date"`).*/
308
308
  withArchived:boolean;
309
- /** Forwarded to each data-mode row: turns off its inline rename. */
309
+ /** Forwarded to each data-mode row: turns off its inline rename.*/
310
310
  withoutRename:boolean;
311
311
  /** Data mode only: pins the current date/custom group's header to the top of the scroll viewport
312
312
  * while its rows are in view, pushing it off as the next group's header arrives. Group headers
@@ -326,7 +326,7 @@ error:boolean;
326
326
  /** Failed-load heading override. Omitted localizes `<lr-table>`'s own `tableLoadFailed`
327
327
  * default. */
328
328
  errorHeading?:string;
329
- /** Failed-load supporting copy. */
329
+ /** Failed-load supporting copy.*/
330
330
  errorDescription:string;
331
331
  /** Data mode only: wraps each row's built-in `<lr-conversation-item>` with host-supplied
332
332
  * content that has no home in the item's own `label`/`excerpt`/`meta`/`actions` surface — e.g. a
@@ -28,7 +28,7 @@ import{__decorate}from"tslib";import{SourcePageController}from"../../../internal
28
28
  >`:nothing}
29
29
  ${this.rowActions.length>0||this.renderActions?this.renderRowActions(thread):nothing}
30
30
  </lr-conversation-item>
31
- `;return this.wrapRow?html`<div part="row-wrapper">${this.wrapRow(source,row)}</div>`:row},this.renderItem=item=>{const listItem=item;return listItem.kind==="group"?this.renderGroupHeader(listItem):this.renderRow(listItem.thread)},this.renderStickyGroup=group=>{const item=this.stickyGroupItems.get(String(group.key));return item?this.renderGroupHeader(item,{sticky:!0}):nothing},this.itemKey=item=>{const listItem=item;return listItem.kind==="group"?this.groupItemKey(listItem.id):this.threadItemKey(listItem.thread.id)},this.onDefaultSlotChange=e=>{const assigned=e.target.assignedElements({flatten:!0}),keep=new Set(assigned);this.restoreInjectedListItemRoles(keep),this.markAsListItems(assigned),this.hasDefaultSlotContent=assigned.length>0},this.stopEvent=e=>{e.stopPropagation()},this.stopRowFocus=e=>{e.bubbles&&e.stopPropagation()},this.onEmptySlotChange=e=>{this.hasEmptySlot=e.target.assignedElements({flatten:!0}).length>0},this.onErrorRetry=()=>{this.error=!1}}static{this.defaultStrings={...super.defaultStrings,archiveConversation:LYRA_DEFAULT_archiveConversation,clear:LYRA_DEFAULT_clear,deleteConversation:LYRA_DEFAULT_deleteConversation,loading:LYRA_DEFAULT_loading,noData:LYRA_DEFAULT_noData,noMatches:LYRA_DEFAULT_noMatches,pinConversation:LYRA_DEFAULT_pinConversation,retry:LYRA_DEFAULT_retry,searchThreads:LYRA_DEFAULT_searchThreads,tableLoadFailed:LYRA_DEFAULT_tableLoadFailed,threadGroupArchived:LYRA_DEFAULT_threadGroupArchived,threadGroupCollapse:LYRA_DEFAULT_threadGroupCollapse,threadGroupExpand:LYRA_DEFAULT_threadGroupExpand,threadGroupPinned:LYRA_DEFAULT_threadGroupPinned,threadGroupPrevious30Days:LYRA_DEFAULT_threadGroupPrevious30Days,threadGroupPrevious7Days:LYRA_DEFAULT_threadGroupPrevious7Days,threadGroupToday:LYRA_DEFAULT_threadGroupToday,threadGroupYesterday:LYRA_DEFAULT_threadGroupYesterday,threadListEmpty:LYRA_DEFAULT_threadListEmpty,threadListInputLimit:LYRA_DEFAULT_threadListInputLimit,threadListLabel:LYRA_DEFAULT_threadListLabel,threadListMatchAnnounce:LYRA_DEFAULT_threadListMatchAnnounce,unarchiveConversation:LYRA_DEFAULT_unarchiveConversation,unpinConversation:LYRA_DEFAULT_unpinConversation}}static{this.collectionSupport=collectionSupport}static{this.ownedCollectionProperties=Object.freeze(["threads","groupOrder","collapsedGroupIds","rowActions"])}static{this.identityCollectionProperties=Object.freeze(["threads"])}static{this.immutableSourceCollectionProperties=Object.freeze(["threads"])}static{this.styles=[LyraElement.styles,contextualSizes,styles]}get inputLimitMessage(){return this.sourceMode?"":publicCollectionTruncation(this,"threads")?this.localize("threadListInputLimit"):""}syncInputLimitAnnouncement(){const loss=this.sourceMode?void 0:publicCollectionTruncation(this,"threads");this.inputLimitAnnouncements.transition("input-limit",loss?`${loss.source}:${loss.retained}:${loss.kept}`:"",this.inputLimitMessage,"polite")}adoptedCallback(){super.adoptedCallback(),this.hostDescription.adopted(),this.inputLimitAnnouncements.adopted(),this.sourcePages.adopted(),this.sourceRequestVersion++,this.sourceActiveInputs=void 0,this.sourceFilterIntent=void 0}get dataSource(){return this._dataSource}set dataSource(value){const previous=this._dataSource;this._dataSource=value,this.sourceEpoch++,this.requestUpdate("dataSource",previous)}get sourceTotal(){return this.sourceMode?this.sourcePages.state.result?.total??null:null}get sourceMode(){return this.dataSource!==void 0}get sourceFailed(){return this.sourceMode&&!this.sourcePages.state.pending&&!this.sourcePages.state.result}get sourceBlocked(){return this.sourceMode&&(!this.isConnected||this.error||this.sourcePages.state.pending||this.sourceFailed)}projectSourceThread(record,isCurrent){const raw=record.value;if(!isSafeNonArrayObject(raw))throw new TypeError("Invalid source thread");let units=0;const snapshot={};for(const key of["id","title","excerpt","timestamp","pinned","archived"]){if(!isCurrent())throw new Error("Obsolete source thread");const field=getOwnDataDescriptor(raw,key);if(!isCurrent())throw new Error("Obsolete source thread");if(field===UNSAFE_OWN_DATA_DESCRIPTOR)throw new TypeError("Invalid source thread field");if(field!==MISSING_OWN_DATA_DESCRIPTOR&&(snapshot[key]=field.value),field!==MISSING_OWN_DATA_DESCRIPTOR&&typeof field.value=="string"&&(units+=field.value.length,field.value.length>65536||units>65536))throw new RangeError("Source thread text too large")}const value=projectThread(snapshot);if(!isCurrent())throw new Error("Obsolete source thread");if(!value||value.id!==record.key)throw new TypeError("Invalid source thread identity");return sourceThreadByProjection.set(value,raw),this.sourceRowIdentities.add(value),{key:record.key,order:record.order,value}}validateSourceGroups(result,query2){if(query2.grouping==="none"){if(result.groups?.length)throw new TypeError("Unexpected source groups");return}if(!result.groups)throw new TypeError("Missing source groups");if(!result.rows.length)return;const size=this.sourcePages.state.pageSize,start=Math.min(this.sourcePages.state.page,Math.floor((result.total-1)/size))*size,end=start+result.rows.length;let covered=start,previousEnd=-1;for(const group of result.groups){const groupEnd=group.startIndex+group.itemCount;if(group.startIndex<previousEnd||Math.max(start,group.startIndex)!==covered)throw new TypeError("Invalid source group coverage");previousEnd=groupEnd,covered=Math.min(end,groupEnd)}if(covered!==end)throw new TypeError("Incomplete source groups")}syncSource(){if(!(!this.sourcePages||this.sourceSyncing)){this.sourceSyncing=!0;try{if(!this.sourceMode){this.sourceInputs&&(this.sourceRequestVersion++,this.focusTaskGeneration++,this.sourcePages.bind(void 0)),this.sourceInputs=void 0,this.sourceQueryInputs=void 0,this.sourceResult=void 0,this.sourceRows=[],this.sourcePageModel=void 0,this.sourceActiveInputs=void 0,this.sourceActiveReveal=void 0,this.sourceFilterIntent=void 0;return}const source=this.dataSource,size=finiteInteger(this.sourcePageSize,100,1,500);let page=finiteInteger(this.sourcePage,0,0,Math.floor(Number.MAX_SAFE_INTEGER/size));const queryInputs=[this.searchText,this.withArchived,this.grouping,this.filter,this.groupBy,this.getGroupLabel,this.groupOrder,size];this.hasUpdated&&this.sourceQueryInputs&&queryInputs.some((value,index)=>value!==this.sourceQueryInputs[index])&&(page=0,this.sourcePage=0),this.sourceQueryInputs=queryInputs;const revision=source.revision,inputs=[source,revision,this.sourceEpoch,this.effectiveLocale,...queryInputs,this.collapsedGroupIds,page];if(this.sourceInputs&&inputs.every((value,index)=>value===this.sourceInputs[index]))return;this.sourceInputs=inputs,this.sourceRequestVersion++,this.focusTaskGeneration++,this.sourceRows=[],this.sourceResult=void 0,this.sourcePageModel=void 0,this.sourceActiveReveal=void 0,this.sourceFilterIntent=void 0,this.sourcePages.bind({source,revision,epoch:this.sourceEpoch,locale:this.effectiveLocale});const query2=Object.freeze({search:this.searchText,withArchived:this.withArchived,grouping:this.grouping,collapsedGroupIds:this.collapsedGroupIds,filter:this.filter,groupBy:this.groupBy,getGroupLabel:this.getGroupLabel,groupOrder:this.groupOrder});this.sourcePages.request(query2,page,size)}catch{this.sourcePages.bind(void 0),this.sourceRows=[],this.sourceResult=void 0,this.sourcePageModel=void 0}finally{this.sourceSyncing=!1}}}acceptSourcePage(){const result=this.sourcePages.state.result;if(!result||result===this.sourceResult)return;this.sourceResult=result,this.sourceRows=result.rows.map(record=>record.value),this.sourcePageModel=void 0,this.sourcePage!==this.sourcePages.state.page&&(this.sourceSyncing=!0,this.sourcePage=this.sourcePages.state.page,this.sourceSyncing=!1,this.sourceInputs=this.sourceInputs?[...this.sourceInputs.slice(0,-1),this.sourcePages.state.page]:void 0);const intent=this.sourceFilterIntent;if(this.sourceFilterIntent=void 0,intent?.version===this.sourceRequestVersion){const source=this.dataSource,epoch=this.sourceEpoch,state2=this.sourcePages.state,owner=this.ownerDocument;if(this.emit("lr-filter-change",{text:intent.text,matchCount:result.total}),!this.isConnected||this.ownerDocument!==owner||this.dataSource!==source||this.sourceEpoch!==epoch||this.sourceRequestVersion!==intent.version||this.sourcePages.state!==state2||this.sourceBlocked)return;this.announceMatchCount(result.total)}const reveal=this.sourceActiveReveal;this.sourceActiveReveal=void 0,reveal?.version===this.sourceRequestVersion&&this.revealSourceActive(reveal.id,reveal.version)}syncSourceActive(){if(!this.activeConversationId){this.sourceActiveInputs=void 0;return}if(!this.sourceMode||this.sourceBlocked)return;const source=this.dataSource,id=this.activeConversationId,inputs=[source,source.revision,this.sourceEpoch,this.effectiveLocale,...this.sourceQueryInputs??[],id];if(this.sourceActiveInputs&&inputs.every((value,index)=>value===this.sourceActiveInputs[index]))return;this.sourceActiveInputs=inputs;const version=this.sourceRequestVersion,owner=this.ownerDocument;this.sourcePages.locate(id).then(index=>{if(index===null||!this.isConnected||this.ownerDocument!==owner||!this.sourceMode||this.dataSource!==source||this.activeConversationId!==id||this.sourceRequestVersion!==version)return;const page=Math.floor(index/finiteInteger(this.sourcePageSize,100,1,500));if(page===this.sourcePage){this.revealSourceActive(id,version);return}this.sourcePage=page,this.sourceActiveReveal={id,version:this.sourceRequestVersion}})}revealSourceActive(id,version){const owner=this.ownerDocument;this.updateComplete.then(async()=>{const list=this.virtualListEl;if(!list||(await list.updateComplete,!this.isConnected||this.ownerDocument!==owner||!this.sourceMode||this.sourceBlocked||this.sourceRequestVersion!==version||this.activeConversationId!==id||list!==this.virtualListEl))return;const index=this.model().items.findIndex(item=>item.kind==="thread"&&item.thread.id===id);index>=0&&list.scrollToIndex(index,{align:"auto",behavior:"auto"})})}sourceModel(){const key=[this.sourceResult,this.collapsedGroupIds,this.stickyGroups];if(this.sourcePageModel&&key.every((value,index)=>value===this.sourcePageModel.key[index]))return this.sourcePageModel;const items=[],groups=this.sourceResult?.groups??[];if(!groups.length)items.push(...this.sourceRows.map(thread=>({kind:"thread",thread})));else{const collapsed=new Set(this.collapsedGroupIds),start=this.sourcePages.state.page*this.sourcePages.state.pageSize;for(const group of groups){const header={kind:"group",id:group.key,label:group.label,collapsed:collapsed.has(group.key)};if(this.sourceGroupIdentities.add(header),items.push(header),!header.collapsed){const from=Math.max(0,group.startIndex-start),to=Math.min(this.sourceRows.length,group.startIndex+group.itemCount-start);for(let index=from;index<to;index++)items.push({kind:"thread",thread:this.sourceRows[index]})}}}return this.sourcePageModel={key,visible:this.sourceRows,items,groups:this.stickyGroups?this.stickyAnchors(items):void 0},this.sourcePageModel}canUseThread(thread){return!(this.sourceMode||this.sourceRowIdentities.has(thread))||this.sourceMode&&!this.sourceBlocked&&this.sourceRows.includes(thread)}canUseGroup(item){return!(this.sourceMode||this.sourceGroupIdentities.has(item))||this.sourceMode&&!this.sourceBlocked&&this.sourceModel().items.includes(item)}currentSourceRetry(source,state2){return this.isConnected&&this.sourceMode&&this.dataSource===source&&this.sourcePages.state===state2&&(this.error||this.sourceFailed)}retrySource(source,state2){this.currentSourceRetry(source,state2)&&(this.error=!1,this.sourceInputs=void 0,this.syncSource(),this.sourceStateVersion++)}get dataMode(){return this.sourceMode||this.normalizedThreads.length>0||!this.hasDefaultSlotContent}connectedCallback(){if(super.connectedCallback(),this.hasUpdated){this.sourceMode&&(this.sourceActiveInputs=void 0,this.sourceStateVersion++),this.syncInputLimitAnnouncement();const defaultSlotted=this.defaultSlottedElements();this.hasDefaultSlotContent=defaultSlotted.length>0,!this.sourceMode&&this.normalizedThreads.length===0&&this.markAsListItems(defaultSlotted)}}requestUpdate(...args){args[0]===void 0&&(this.contentRefreshPending=!0,this.sourceEpoch=(this.sourceEpoch??0)+1),(args[0]===void 0||["dataSource","sourcePage","sourcePageSize","searchText","withArchived","grouping","filter","groupBy","getGroupLabel","groupOrder","collapsedGroupIds"].includes(String(args[0])))&&this.syncSource(),super.requestUpdate(...args)}willUpdate(changed){super.willUpdate(changed),this.syncSource(),this.sourceMode&&(this.acceptSourcePage(),this.syncSourceActive()),this.contentRefreshPending&&(this.dataModel=void 0),this.contentRefreshPending=!1,changed.has("size")&&optionalSizeConverter.normalize(this.size)===void 0&&(this.size="m"),(changed.has("threads")||changed.has("searchText")||changed.has("filter")||changed.has("grouping")||changed.has("groupBy")||changed.has("groupOrder")||changed.has("collapsedGroupIds")||changed.has("withArchived"))&&this.focusTaskGeneration++;const syncSlottedContent=()=>{const defaultSlotted=this.defaultSlottedElements();this.hasDefaultSlotContent=defaultSlotted.length>0;const hasDataThreads=this.sourceMode||this.normalizedThreads.length>0;hasDataThreads&&defaultSlotted.length>0?(this.restoreInjectedListItemRoles(),this.sourceMode||devWarnOnce(THREADS_AND_SLOTTED_CONTENT_WARNING_KEY,THREADS_AND_SLOTTED_CONTENT_WARNING)):hasDataThreads||this.markAsListItems(defaultSlotted)};this.hasUpdated?(changed.has("threads")||changed.has("dataSource"))&&syncSlottedContent():this.seedFirstRenderState(()=>{this.hasEmptySlot=Array.from(this.children).some(el=>el.getAttribute("slot")==="empty"),syncSlottedContent()})}updated(changed){super.updated(changed),this.syncInputLimitAnnouncement();const status=this.sourceMode&&this.sourcePages.state.pending?this.localize("loading"):this.sourceMode&&this.sourceFailed?this.localize("tableLoadFailed"):"";this.sourceStatusInitialized&&status&&status!==this.previousSourceStatus&&this.inputLimitAnnouncements.announcePolite(status),this.sourceStatusInitialized=!0,this.previousSourceStatus=status,this.virtualListEl?.requestUpdate("renderItem")}defaultSlottedElements(){return Array.from(this.children).filter(el=>!el.getAttribute("slot"))}markAsListItems(elements){for(const el of elements)el.hasAttribute("role")||(el.setAttribute("role","listitem"),this.injectedListItemRoles.add(el))}restoreInjectedListItemRoles(keep=new Set){for(const element of this.injectedListItemRoles)keep.has(element)||(element.getAttribute("role")==="listitem"&&element.removeAttribute("role"),this.injectedListItemRoles.delete(element))}disconnectedCallback(){this.sourceRequestVersion++,this.sourceActiveInputs=void 0,this.sourceActiveReveal=void 0,this.sourceFilterIntent=void 0,this.sourceStatusInitialized=!1,this.previousSourceStatus="",this.focusTaskGeneration++,this.restoreInjectedListItemRoles(),super.disconnectedCallback()}get normalizedThreads(){return canonicalThreads(this.threads)}sourceThread(thread){return sourceThreadByProjection.get(thread)??thread}sourceThreads(threads){return Object.freeze(threads.map(thread=>this.sourceThread(thread)))}get visibleThreads(){const q=this.searchText.trim().toLocaleLowerCase(this.effectiveLocale),threads=this.normalizedThreads,titles=q&&!this.filter?this.titleHaystacks(threads,this.effectiveLocale):[],excerpts=q&&!this.filter?this.excerptHaystacks(threads,this.effectiveLocale):[];return threads.filter((thread,index)=>(this.withArchived||!thread.archived)&&(!q||(this.filter?this.filter(this.sourceThread(thread),q):titles[index].includes(q)||excerpts[index].includes(q))))}bucketFor(thread,today){if(thread.archived)return"archived";if(thread.pinned)return"pinned";const ts=thread.timestamp===void 0?void 0:normalizeLyraTimestamp(thread.timestamp);if(!ts)return"previous30";const diffDays=calendarDaysAgo(today,ts);return diffDays<=0?"today":diffDays===1?"yesterday":diffDays<=7?"previous7":diffDays<=30?"previous30":`month:${ts.getFullYear()}-${String(ts.getMonth()+1).padStart(2,"0")}`}bucketLabel(key){const groupDate=key.startsWith("month:")?this.dateForBucket(key):void 0;switch(key){case"pinned":return this.localize("threadGroupPinned");case"today":return this.localize("threadGroupToday");case"yesterday":return this.localize("threadGroupYesterday");case"previous7":return this.localize("threadGroupPrevious7Days");case"previous30":return this.localize("threadGroupPrevious30Days");case"archived":return this.localize("threadGroupArchived");default:return this.formatDate?.(groupDate)??getDateTimeFormat(this.effectiveLocale,{month:"long",year:"numeric"}).format(groupDate)}}dateForBucket(key){if(!key.startsWith("month:"))return;const[,ym]=key.split(":"),[year,month]=ym.split("-").map(Number);return new Date(year,month-1,1)}orderedCustomGroupIds(grouped){const firstSeen=[...grouped.keys()];if(typeof this.groupOrder=="function")try{return[...firstSeen].sort(this.groupOrder)}catch{return firstSeen}if(!this.groupOrder)return firstSeen;const ordered=[...new Set(this.groupOrder)].filter(id=>grouped.has(id)),listed=new Set(ordered);return[...ordered,...firstSeen.filter(id=>!listed.has(id))]}groupedItems(grouped,order,contextFor,defaultLabel){const collapsedIds=new Set(this.collapsedGroupIds),items=[];for(const id of order){const groupedThreads=grouped.get(id);if(!groupedThreads||groupedThreads.length===0)continue;const context=contextFor(id,groupedThreads),label=this.getGroupLabel?.(context)??defaultLabel(context);items.push({kind:"group",id,label,adornment:this.renderGroupAdornment?.(context),collapsed:collapsedIds.has(id)}),collapsedIds.has(id)||items.push(...groupedThreads.map(thread=>({kind:"thread",thread})))}return items}buildItems(visible,today){if(this.grouping==="none")return visible.map(thread=>({kind:"thread",thread}));if(this.grouping==="custom"){if(!this.groupBy)return visible.map(thread=>({kind:"thread",thread}));const grouped2=new Map;for(const thread of visible){let id;try{id=this.groupBy(this.sourceThread(thread))}catch{continue}if(typeof id!="string"||id.trim().length===0)continue;const existing=grouped2.get(id);existing?existing.push(thread):grouped2.set(id,[thread])}return this.groupedItems(grouped2,this.orderedCustomGroupIds(grouped2),(id,groupedThreads)=>({id,threads:this.sourceThreads(groupedThreads)}),context=>context.id)}const grouped=new Map,monthKeys=new Set;for(const thread of visible){const id=this.bucketFor(thread,today),existing=grouped.get(id);existing?existing.push(thread):grouped.set(id,[thread]),id.startsWith("month:")&&monthKeys.add(id)}const order=["pinned","today","yesterday","previous7","previous30",...[...monthKeys].sort().reverse(),"archived"];return this.groupedItems(grouped,order,(id,groupedThreads)=>{const bucket=id;return{id,threads:this.sourceThreads(groupedThreads),bucket,date:bucket.startsWith("month:")?this.dateForBucket(bucket):void 0}},context=>this.bucketLabel(context.bucket))}setSearchText(text){if(this.focusTaskGeneration++,this.searchText=text,this.sourceMode){this.sourceFilterIntent={text,version:this.sourceRequestVersion};return}if(!this.dataMode){this.emit("lr-query-change",{text});return}const count=this.model().visible.length;this.emit("lr-filter-change",{text,matchCount:count}),this.announceMatchCount(count)}announceMatchCount(count){this.searchText.trim()!==""&&this.liveRegion?.announce(this.localize("threadListMatchAnnounce",void 0,{count:getNumberFormat(this.effectiveLocale).format(count),pluralCount:count}))}itemElement(conversationId){return this.rowElements().find(row=>row.conversationId===conversationId)??null}rowElements(){return this.dataMode?(this.virtualListEl?.renderedRows??[]).flatMap(row=>[...row.querySelectorAll(tag("conversation-item"))]):[...this.querySelectorAll(tag("conversation-item"))]}selectButtonEl(row){return row.shadowRoot?.querySelector('[part="select-button"]')??null}isNavigableRow(row){const option=this.selectButtonEl(row);return!!(option&&option.getAttribute("role")==="button"&&row.hidden===!1&&row.getAttribute("aria-hidden")!=="true"&&row.getAttribute("aria-disabled")!=="true"&&!row.inert&&row.closest("[inert]")===null&&option.hidden===!1&&option.getAttribute("aria-hidden")!=="true"&&option.getAttribute("aria-disabled")!=="true"&&!option.inert&&option.closest("[inert]")===null)}navigableRows(){return this.rowElements().filter(row=>this.isNavigableRow(row))}focusedRowIndex(rows){return rows.findIndex(row=>row.matches(":focus-within"))}focusVirtualThreadFromItemIndex(list,items,initialItemIndex,direction,focusGeneration){(async()=>{let targetItemIndex=initialItemIndex;for(;targetItemIndex>=0&&targetItemIndex<items.length;){for(;items[targetItemIndex]?.kind==="group";)targetItemIndex+=direction;const targetItem=items[targetItemIndex];if(!targetItem||targetItem.kind!=="thread")return;const targetId=targetItem.thread.id;list.scrollToIndex(targetItemIndex,{align:"auto",behavior:"auto"});let targetRow;for(let attempt=0;attempt<2;attempt+=1){if(await new Promise(resolve=>{const view=this.ownerDocument.defaultView;view?view.requestAnimationFrame(()=>resolve()):requestAnimationFrame(()=>resolve())}),focusGeneration!==this.focusTaskGeneration||!this.isConnected||this.virtualListEl!==list||(await list.updateComplete,focusGeneration!==this.focusTaskGeneration||!this.isConnected||this.virtualListEl!==list))return;if(targetRow=this.rowElements().find(row=>row.conversationId===targetId),targetRow)break}if(targetRow&&this.isNavigableRow(targetRow)){this.selectButtonEl(targetRow)?.focus();return}targetItemIndex+=direction}})()}renderRowActions(thread){const source=this.sourceThread(thread);return html`
31
+ `;return this.wrapRow?html`<div part="row-wrapper">${this.wrapRow(source,row)}</div>`:row},this.renderItem=item=>{const listItem=item;return listItem.kind==="group"?this.renderGroupHeader(listItem):this.renderRow(listItem.thread)},this.renderStickyGroup=group=>{const item=this.stickyGroupItems.get(String(group.key));return item?this.renderGroupHeader(item,{sticky:!0}):nothing},this.itemKey=item=>{const listItem=item;return listItem.kind==="group"?this.groupItemKey(listItem.id):this.threadItemKey(listItem.thread.id)},this.onDefaultSlotChange=e=>{const assigned=e.target.assignedElements({flatten:!0}),keep=new Set(assigned);this.restoreInjectedListItemRoles(keep),this.markAsListItems(assigned),this.hasDefaultSlotContent=assigned.length>0},this.stopEvent=e=>{e.stopPropagation()},this.stopRowFocus=e=>{e.bubbles&&e.stopPropagation()},this.onEmptySlotChange=e=>{this.hasEmptySlot=e.target.assignedElements({flatten:!0}).length>0},this.onErrorRetry=()=>{this.error=!1}}static{this.defaultStrings={...super.defaultStrings,archiveConversation:LYRA_DEFAULT_archiveConversation,clear:LYRA_DEFAULT_clear,deleteConversation:LYRA_DEFAULT_deleteConversation,loading:LYRA_DEFAULT_loading,noData:LYRA_DEFAULT_noData,noMatches:LYRA_DEFAULT_noMatches,pinConversation:LYRA_DEFAULT_pinConversation,retry:LYRA_DEFAULT_retry,searchThreads:LYRA_DEFAULT_searchThreads,tableLoadFailed:LYRA_DEFAULT_tableLoadFailed,threadGroupArchived:LYRA_DEFAULT_threadGroupArchived,threadGroupCollapse:LYRA_DEFAULT_threadGroupCollapse,threadGroupExpand:LYRA_DEFAULT_threadGroupExpand,threadGroupPinned:LYRA_DEFAULT_threadGroupPinned,threadGroupPrevious30Days:LYRA_DEFAULT_threadGroupPrevious30Days,threadGroupPrevious7Days:LYRA_DEFAULT_threadGroupPrevious7Days,threadGroupToday:LYRA_DEFAULT_threadGroupToday,threadGroupYesterday:LYRA_DEFAULT_threadGroupYesterday,threadListEmpty:LYRA_DEFAULT_threadListEmpty,threadListInputLimit:LYRA_DEFAULT_threadListInputLimit,threadListLabel:LYRA_DEFAULT_threadListLabel,threadListMatchAnnounce:LYRA_DEFAULT_threadListMatchAnnounce,unarchiveConversation:LYRA_DEFAULT_unarchiveConversation,unpinConversation:LYRA_DEFAULT_unpinConversation}}static{this.collectionSupport=collectionSupport}static{this.ownedCollectionProperties=Object.freeze(["threads","groupOrder","collapsedGroupIds","rowActions"])}static{this.identityCollectionProperties=Object.freeze(["threads"])}static{this.styles=[LyraElement.styles,contextualSizes,styles]}get inputLimitMessage(){return this.sourceMode?"":publicCollectionTruncation(this,"threads")?this.localize("threadListInputLimit"):""}syncInputLimitAnnouncement(){const loss=this.sourceMode?void 0:publicCollectionTruncation(this,"threads");this.inputLimitAnnouncements.transition("input-limit",loss?`${loss.source}:${loss.retained}:${loss.kept}`:"",this.inputLimitMessage,"polite")}adoptedCallback(){super.adoptedCallback(),this.hostDescription.adopted(),this.inputLimitAnnouncements.adopted(),this.sourcePages.adopted(),this.sourceRequestVersion++,this.sourceActiveInputs=void 0,this.sourceFilterIntent=void 0}get dataSource(){return this._dataSource}set dataSource(value){const previous=this._dataSource;this._dataSource=value,this.sourceEpoch++,this.requestUpdate("dataSource",previous)}get sourceTotal(){return this.sourceMode?this.sourcePages.state.result?.total??null:null}get sourceMode(){return this.dataSource!==void 0}get sourceFailed(){return this.sourceMode&&!this.sourcePages.state.pending&&!this.sourcePages.state.result}get sourceBlocked(){return this.sourceMode&&(!this.isConnected||this.error||this.sourcePages.state.pending||this.sourceFailed)}projectSourceThread(record,isCurrent){const raw=record.value;if(!isSafeNonArrayObject(raw))throw new TypeError("Invalid source thread");let units=0;const snapshot={};for(const key of["id","title","excerpt","timestamp","pinned","archived"]){if(!isCurrent())throw new Error("Obsolete source thread");const field=getOwnDataDescriptor(raw,key);if(!isCurrent())throw new Error("Obsolete source thread");if(field===UNSAFE_OWN_DATA_DESCRIPTOR)throw new TypeError("Invalid source thread field");if(field!==MISSING_OWN_DATA_DESCRIPTOR&&(snapshot[key]=field.value),field!==MISSING_OWN_DATA_DESCRIPTOR&&typeof field.value=="string"&&(units+=field.value.length,field.value.length>65536||units>65536))throw new RangeError("Source thread text too large")}const value=projectThread(snapshot);if(!isCurrent())throw new Error("Obsolete source thread");if(!value||value.id!==record.key)throw new TypeError("Invalid source thread identity");return sourceThreadByProjection.set(value,raw),this.sourceRowIdentities.add(value),{key:record.key,order:record.order,value}}validateSourceGroups(result,query2){if(query2.grouping==="none"){if(result.groups?.length)throw new TypeError("Unexpected source groups");return}if(!result.groups)throw new TypeError("Missing source groups");if(!result.rows.length)return;const size=this.sourcePages.state.pageSize,start=Math.min(this.sourcePages.state.page,Math.floor((result.total-1)/size))*size,end=start+result.rows.length;let covered=start,previousEnd=-1;for(const group of result.groups){const groupEnd=group.startIndex+group.itemCount;if(group.startIndex<previousEnd||Math.max(start,group.startIndex)!==covered)throw new TypeError("Invalid source group coverage");previousEnd=groupEnd,covered=Math.min(end,groupEnd)}if(covered!==end)throw new TypeError("Incomplete source groups")}syncSource(){if(!(!this.sourcePages||this.sourceSyncing)){this.sourceSyncing=!0;try{if(!this.sourceMode){this.sourceInputs&&(this.sourceRequestVersion++,this.focusTaskGeneration++,this.sourcePages.bind(void 0)),this.sourceInputs=void 0,this.sourceQueryInputs=void 0,this.sourceResult=void 0,this.sourceRows=[],this.sourcePageModel=void 0,this.sourceActiveInputs=void 0,this.sourceActiveReveal=void 0,this.sourceFilterIntent=void 0;return}const source=this.dataSource,size=finiteInteger(this.sourcePageSize,100,1,500);let page=finiteInteger(this.sourcePage,0,0,Math.floor(Number.MAX_SAFE_INTEGER/size));const queryInputs=[this.searchText,this.withArchived,this.grouping,this.filter,this.groupBy,this.getGroupLabel,this.groupOrder,size];this.hasUpdated&&this.sourceQueryInputs&&queryInputs.some((value,index)=>value!==this.sourceQueryInputs[index])&&(page=0,this.sourcePage=0),this.sourceQueryInputs=queryInputs;const revision=source.revision,inputs=[source,revision,this.sourceEpoch,this.effectiveLocale,...queryInputs,this.collapsedGroupIds,page];if(this.sourceInputs&&inputs.every((value,index)=>value===this.sourceInputs[index]))return;this.sourceInputs=inputs,this.sourceRequestVersion++,this.focusTaskGeneration++,this.sourceRows=[],this.sourceResult=void 0,this.sourcePageModel=void 0,this.sourceActiveReveal=void 0,this.sourceFilterIntent=void 0,this.sourcePages.bind({source,revision,epoch:this.sourceEpoch,locale:this.effectiveLocale});const query2=Object.freeze({search:this.searchText,withArchived:this.withArchived,grouping:this.grouping,collapsedGroupIds:this.collapsedGroupIds,filter:this.filter,groupBy:this.groupBy,getGroupLabel:this.getGroupLabel,groupOrder:this.groupOrder});this.sourcePages.request(query2,page,size)}catch{this.sourcePages.bind(void 0),this.sourceRows=[],this.sourceResult=void 0,this.sourcePageModel=void 0}finally{this.sourceSyncing=!1}}}acceptSourcePage(){const result=this.sourcePages.state.result;if(!result||result===this.sourceResult)return;this.sourceResult=result,this.sourceRows=result.rows.map(record=>record.value),this.sourcePageModel=void 0,this.sourcePage!==this.sourcePages.state.page&&(this.sourceSyncing=!0,this.sourcePage=this.sourcePages.state.page,this.sourceSyncing=!1,this.sourceInputs=this.sourceInputs?[...this.sourceInputs.slice(0,-1),this.sourcePages.state.page]:void 0);const intent=this.sourceFilterIntent;if(this.sourceFilterIntent=void 0,intent?.version===this.sourceRequestVersion){const source=this.dataSource,epoch=this.sourceEpoch,state2=this.sourcePages.state,owner=this.ownerDocument;if(this.emit("lr-filter-change",{text:intent.text,matchCount:result.total}),!this.isConnected||this.ownerDocument!==owner||this.dataSource!==source||this.sourceEpoch!==epoch||this.sourceRequestVersion!==intent.version||this.sourcePages.state!==state2||this.sourceBlocked)return;this.announceMatchCount(result.total)}const reveal=this.sourceActiveReveal;this.sourceActiveReveal=void 0,reveal?.version===this.sourceRequestVersion&&this.revealSourceActive(reveal.id,reveal.version)}syncSourceActive(){if(!this.activeConversationId){this.sourceActiveInputs=void 0;return}if(!this.sourceMode||this.sourceBlocked)return;const source=this.dataSource,id=this.activeConversationId,inputs=[source,source.revision,this.sourceEpoch,this.effectiveLocale,...this.sourceQueryInputs??[],id];if(this.sourceActiveInputs&&inputs.every((value,index)=>value===this.sourceActiveInputs[index]))return;this.sourceActiveInputs=inputs;const version=this.sourceRequestVersion,owner=this.ownerDocument;this.sourcePages.locate(id).then(index=>{if(index===null||!this.isConnected||this.ownerDocument!==owner||!this.sourceMode||this.dataSource!==source||this.activeConversationId!==id||this.sourceRequestVersion!==version)return;const page=Math.floor(index/finiteInteger(this.sourcePageSize,100,1,500));if(page===this.sourcePage){this.revealSourceActive(id,version);return}this.sourcePage=page,this.sourceActiveReveal={id,version:this.sourceRequestVersion}})}revealSourceActive(id,version){const owner=this.ownerDocument;this.updateComplete.then(async()=>{const list=this.virtualListEl;if(!list||(await list.updateComplete,!this.isConnected||this.ownerDocument!==owner||!this.sourceMode||this.sourceBlocked||this.sourceRequestVersion!==version||this.activeConversationId!==id||list!==this.virtualListEl))return;const index=this.model().items.findIndex(item=>item.kind==="thread"&&item.thread.id===id);index>=0&&list.scrollToIndex(index,{align:"auto",behavior:"auto"})})}sourceModel(){const key=[this.sourceResult,this.collapsedGroupIds,this.stickyGroups];if(this.sourcePageModel&&key.every((value,index)=>value===this.sourcePageModel.key[index]))return this.sourcePageModel;const items=[],groups=this.sourceResult?.groups??[];if(!groups.length)items.push(...this.sourceRows.map(thread=>({kind:"thread",thread})));else{const collapsed=new Set(this.collapsedGroupIds),start=this.sourcePages.state.page*this.sourcePages.state.pageSize;for(const group of groups){const header={kind:"group",id:group.key,label:group.label,collapsed:collapsed.has(group.key)};if(this.sourceGroupIdentities.add(header),items.push(header),!header.collapsed){const from=Math.max(0,group.startIndex-start),to=Math.min(this.sourceRows.length,group.startIndex+group.itemCount-start);for(let index=from;index<to;index++)items.push({kind:"thread",thread:this.sourceRows[index]})}}}return this.sourcePageModel={key,visible:this.sourceRows,items,groups:this.stickyGroups?this.stickyAnchors(items):void 0},this.sourcePageModel}canUseThread(thread){return!(this.sourceMode||this.sourceRowIdentities.has(thread))||this.sourceMode&&!this.sourceBlocked&&this.sourceRows.includes(thread)}canUseGroup(item){return!(this.sourceMode||this.sourceGroupIdentities.has(item))||this.sourceMode&&!this.sourceBlocked&&this.sourceModel().items.includes(item)}currentSourceRetry(source,state2){return this.isConnected&&this.sourceMode&&this.dataSource===source&&this.sourcePages.state===state2&&(this.error||this.sourceFailed)}retrySource(source,state2){this.currentSourceRetry(source,state2)&&(this.error=!1,this.sourceInputs=void 0,this.syncSource(),this.sourceStateVersion++)}get dataMode(){return this.sourceMode||this.normalizedThreads.length>0||!this.hasDefaultSlotContent}connectedCallback(){if(super.connectedCallback(),this.hasUpdated){this.sourceMode&&(this.sourceActiveInputs=void 0,this.sourceStateVersion++),this.syncInputLimitAnnouncement();const defaultSlotted=this.defaultSlottedElements();this.hasDefaultSlotContent=defaultSlotted.length>0,!this.sourceMode&&this.normalizedThreads.length===0&&this.markAsListItems(defaultSlotted)}}requestUpdate(...args){args[0]===void 0&&(this.contentRefreshPending=!0,this.sourceEpoch=(this.sourceEpoch??0)+1),(args[0]===void 0||["dataSource","sourcePage","sourcePageSize","searchText","withArchived","grouping","filter","groupBy","getGroupLabel","groupOrder","collapsedGroupIds"].includes(String(args[0])))&&this.syncSource(),super.requestUpdate(...args)}willUpdate(changed){super.willUpdate(changed),this.syncSource(),this.sourceMode&&(this.acceptSourcePage(),this.syncSourceActive()),this.contentRefreshPending&&(this.dataModel=void 0),this.contentRefreshPending=!1,changed.has("size")&&optionalSizeConverter.normalize(this.size)===void 0&&(this.size="m"),(changed.has("threads")||changed.has("searchText")||changed.has("filter")||changed.has("grouping")||changed.has("groupBy")||changed.has("groupOrder")||changed.has("collapsedGroupIds")||changed.has("withArchived"))&&this.focusTaskGeneration++;const syncSlottedContent=()=>{const defaultSlotted=this.defaultSlottedElements();this.hasDefaultSlotContent=defaultSlotted.length>0;const hasDataThreads=this.sourceMode||this.normalizedThreads.length>0;hasDataThreads&&defaultSlotted.length>0?(this.restoreInjectedListItemRoles(),this.sourceMode||devWarnOnce(THREADS_AND_SLOTTED_CONTENT_WARNING_KEY,THREADS_AND_SLOTTED_CONTENT_WARNING)):hasDataThreads||this.markAsListItems(defaultSlotted)};this.hasUpdated?(changed.has("threads")||changed.has("dataSource"))&&syncSlottedContent():this.seedFirstRenderState(()=>{this.hasEmptySlot=Array.from(this.children).some(el=>el.getAttribute("slot")==="empty"),syncSlottedContent()})}updated(changed){super.updated(changed),this.syncInputLimitAnnouncement();const status=this.sourceMode&&this.sourcePages.state.pending?this.localize("loading"):this.sourceMode&&this.sourceFailed?this.localize("tableLoadFailed"):"";this.sourceStatusInitialized&&status&&status!==this.previousSourceStatus&&this.inputLimitAnnouncements.announcePolite(status),this.sourceStatusInitialized=!0,this.previousSourceStatus=status,this.virtualListEl?.requestUpdate("renderItem")}defaultSlottedElements(){return Array.from(this.children).filter(el=>!el.getAttribute("slot"))}markAsListItems(elements){for(const el of elements)el.hasAttribute("role")||(el.setAttribute("role","listitem"),this.injectedListItemRoles.add(el))}restoreInjectedListItemRoles(keep=new Set){for(const element of this.injectedListItemRoles)keep.has(element)||(element.getAttribute("role")==="listitem"&&element.removeAttribute("role"),this.injectedListItemRoles.delete(element))}disconnectedCallback(){this.sourceRequestVersion++,this.sourceActiveInputs=void 0,this.sourceActiveReveal=void 0,this.sourceFilterIntent=void 0,this.sourceStatusInitialized=!1,this.previousSourceStatus="",this.focusTaskGeneration++,this.restoreInjectedListItemRoles(),super.disconnectedCallback()}get normalizedThreads(){return canonicalThreads(this.threads)}sourceThread(thread){return sourceThreadByProjection.get(thread)??thread}sourceThreads(threads){return Object.freeze(threads.map(thread=>this.sourceThread(thread)))}get visibleThreads(){const q=this.searchText.trim().toLocaleLowerCase(this.effectiveLocale),threads=this.normalizedThreads,titles=q&&!this.filter?this.titleHaystacks(threads,this.effectiveLocale):[],excerpts=q&&!this.filter?this.excerptHaystacks(threads,this.effectiveLocale):[];return threads.filter((thread,index)=>(this.withArchived||!thread.archived)&&(!q||(this.filter?this.filter(this.sourceThread(thread),q):titles[index].includes(q)||excerpts[index].includes(q))))}bucketFor(thread,today){if(thread.archived)return"archived";if(thread.pinned)return"pinned";const ts=thread.timestamp===void 0?void 0:normalizeLyraTimestamp(thread.timestamp);if(!ts)return"previous30";const diffDays=calendarDaysAgo(today,ts);return diffDays<=0?"today":diffDays===1?"yesterday":diffDays<=7?"previous7":diffDays<=30?"previous30":`month:${ts.getFullYear()}-${String(ts.getMonth()+1).padStart(2,"0")}`}bucketLabel(key){const groupDate=key.startsWith("month:")?this.dateForBucket(key):void 0;switch(key){case"pinned":return this.localize("threadGroupPinned");case"today":return this.localize("threadGroupToday");case"yesterday":return this.localize("threadGroupYesterday");case"previous7":return this.localize("threadGroupPrevious7Days");case"previous30":return this.localize("threadGroupPrevious30Days");case"archived":return this.localize("threadGroupArchived");default:return this.formatDate?.(groupDate)??getDateTimeFormat(this.effectiveLocale,{month:"long",year:"numeric"}).format(groupDate)}}dateForBucket(key){if(!key.startsWith("month:"))return;const[,ym]=key.split(":"),[year,month]=ym.split("-").map(Number);return new Date(year,month-1,1)}orderedCustomGroupIds(grouped){const firstSeen=[...grouped.keys()];if(typeof this.groupOrder=="function")try{return[...firstSeen].sort(this.groupOrder)}catch{return firstSeen}if(!this.groupOrder)return firstSeen;const ordered=[...new Set(this.groupOrder)].filter(id=>grouped.has(id)),listed=new Set(ordered);return[...ordered,...firstSeen.filter(id=>!listed.has(id))]}groupedItems(grouped,order,contextFor,defaultLabel){const collapsedIds=new Set(this.collapsedGroupIds),items=[];for(const id of order){const groupedThreads=grouped.get(id);if(!groupedThreads||groupedThreads.length===0)continue;const context=contextFor(id,groupedThreads),label=this.getGroupLabel?.(context)??defaultLabel(context);items.push({kind:"group",id,label,adornment:this.renderGroupAdornment?.(context),collapsed:collapsedIds.has(id)}),collapsedIds.has(id)||items.push(...groupedThreads.map(thread=>({kind:"thread",thread})))}return items}buildItems(visible,today){if(this.grouping==="none")return visible.map(thread=>({kind:"thread",thread}));if(this.grouping==="custom"){if(!this.groupBy)return visible.map(thread=>({kind:"thread",thread}));const grouped2=new Map;for(const thread of visible){let id;try{id=this.groupBy(this.sourceThread(thread))}catch{continue}if(typeof id!="string"||id.trim().length===0)continue;const existing=grouped2.get(id);existing?existing.push(thread):grouped2.set(id,[thread])}return this.groupedItems(grouped2,this.orderedCustomGroupIds(grouped2),(id,groupedThreads)=>({id,threads:this.sourceThreads(groupedThreads)}),context=>context.id)}const grouped=new Map,monthKeys=new Set;for(const thread of visible){const id=this.bucketFor(thread,today),existing=grouped.get(id);existing?existing.push(thread):grouped.set(id,[thread]),id.startsWith("month:")&&monthKeys.add(id)}const order=["pinned","today","yesterday","previous7","previous30",...[...monthKeys].sort().reverse(),"archived"];return this.groupedItems(grouped,order,(id,groupedThreads)=>{const bucket=id;return{id,threads:this.sourceThreads(groupedThreads),bucket,date:bucket.startsWith("month:")?this.dateForBucket(bucket):void 0}},context=>this.bucketLabel(context.bucket))}setSearchText(text){if(this.focusTaskGeneration++,this.searchText=text,this.sourceMode){this.sourceFilterIntent={text,version:this.sourceRequestVersion};return}if(!this.dataMode){this.emit("lr-query-change",{text});return}const count=this.model().visible.length;this.emit("lr-filter-change",{text,matchCount:count}),this.announceMatchCount(count)}announceMatchCount(count){this.searchText.trim()!==""&&this.liveRegion?.announce(this.localize("threadListMatchAnnounce",void 0,{count:getNumberFormat(this.effectiveLocale).format(count),pluralCount:count}))}itemElement(conversationId){return this.rowElements().find(row=>row.conversationId===conversationId)??null}rowElements(){return this.dataMode?(this.virtualListEl?.renderedRows??[]).flatMap(row=>[...row.querySelectorAll(tag("conversation-item"))]):[...this.querySelectorAll(tag("conversation-item"))]}selectButtonEl(row){return row.shadowRoot?.querySelector('[part="select-button"]')??null}isNavigableRow(row){const option=this.selectButtonEl(row);return!!(option&&option.getAttribute("role")==="button"&&row.hidden===!1&&row.getAttribute("aria-hidden")!=="true"&&row.getAttribute("aria-disabled")!=="true"&&!row.inert&&row.closest("[inert]")===null&&option.hidden===!1&&option.getAttribute("aria-hidden")!=="true"&&option.getAttribute("aria-disabled")!=="true"&&!option.inert&&option.closest("[inert]")===null)}navigableRows(){return this.rowElements().filter(row=>this.isNavigableRow(row))}focusedRowIndex(rows){return rows.findIndex(row=>row.matches(":focus-within"))}focusVirtualThreadFromItemIndex(list,items,initialItemIndex,direction,focusGeneration){(async()=>{let targetItemIndex=initialItemIndex;for(;targetItemIndex>=0&&targetItemIndex<items.length;){for(;items[targetItemIndex]?.kind==="group";)targetItemIndex+=direction;const targetItem=items[targetItemIndex];if(!targetItem||targetItem.kind!=="thread")return;const targetId=targetItem.thread.id;list.scrollToIndex(targetItemIndex,{align:"auto",behavior:"auto"});let targetRow;for(let attempt=0;attempt<2;attempt+=1){if(await new Promise(resolve=>{const view=this.ownerDocument.defaultView;view?view.requestAnimationFrame(()=>resolve()):requestAnimationFrame(()=>resolve())}),focusGeneration!==this.focusTaskGeneration||!this.isConnected||this.virtualListEl!==list||(await list.updateComplete,focusGeneration!==this.focusTaskGeneration||!this.isConnected||this.virtualListEl!==list))return;if(targetRow=this.rowElements().find(row=>row.conversationId===targetId),targetRow)break}if(targetRow&&this.isNavigableRow(targetRow)){this.selectButtonEl(targetRow)?.focus();return}targetItemIndex+=direction}})()}renderRowActions(thread){const source=this.sourceThread(thread);return html`
32
32
  <span slot="actions" part="row-actions">
33
33
  ${this.rowActions.includes("pin")?html`<button
34
34
  type="button"
@@ -1,2 +1,2 @@
1
- /** @deprecated Import @aceshooting/lyra-ui/components/lr-thread-list.js to register this component. */
1
+ /** @deprecated Import @aceshooting/lyra-ui/components/lr-thread-list.js to register this component.*/
2
2
  export*from'./thread-list.class.js';import'../conversation-item/conversation-item.js';import'../../layout/virtual-list/virtual-list.js';import'../../data/pagination/pagination.js';import'../../utility/live-region/live-region.js';import'../../overlays/empty/empty.js';
@@ -1,4 +1,4 @@
1
- /** Timestamp input shared by Lyra's original conversation surfaces. */
1
+ /** Timestamp input shared by Lyra's original conversation surfaces.*/
2
2
  export type LyraTimestamp=Date|string|number;
3
- /** Normalizes a supported timestamp through ECMAScript's Date/TimeClip domain. */
3
+ /** Normalizes a supported timestamp through ECMAScript's Date/TimeClip domain.*/
4
4
  export declare function normalizeLyraTimestamp(value:LyraTimestamp|undefined):Date|undefined;
@@ -1,5 +1,5 @@
1
1
  import{type TemplateResult,type PropertyValues}from'lit';import{LyraElement}from'../../../internal/lyra-element.js';import{type LyraTimestamp}from'../timestamp.js';export interface LyraTranscriptEntry{id:string;speaker?:string;
2
- /** Required caption text. Runtime records without a string value are omitted. */
2
+ /** Required caption text. Runtime records without a string value are omitted.*/
3
3
  text:string;interim?:boolean;timestamp?:LyraTimestamp;}export interface LyraTranscriptFeedEventMap{'lr-follow-change':CustomEvent<{following:boolean;}>;}
4
4
  /**
5
5
  * `<lr-transcript-feed>` — live captions for an in-progress voice session: speaker-grouped
@@ -54,9 +54,9 @@ text:string;interim?:boolean;timestamp?:LyraTimestamp;}export interface LyraTran
54
54
  * @since 4.0.0
55
55
  */
56
56
  export declare class LyraTranscriptFeed extends LyraElement<LyraTranscriptFeedEventMap>{protected static collectionSupport:import("../../../internal/lyra-element.js").LyraCollectionSupport;protected static readonly ownedCollectionProperties:readonly string[];protected static readonly appendOrderedCollectionProperties:readonly string[];static styles:import("lit").CSSResultGroup[];entries:readonly LyraTranscriptEntry[];follow:boolean;
57
- /** Shows each entry's timestamp. */
57
+ /** Shows each entry's timestamp.*/
58
58
  withTimestamps:boolean;
59
- /** Overrides the default `Intl.DateTimeFormat` short-time rendering. */
59
+ /** Overrides the default `Intl.DateTimeFormat` short-time rendering.*/
60
60
  formatTimestamp?:(date:Date)=>string;
61
61
  /** `> 0` renders only the newest N rows (host `entries` data is untouched); `0` explicitly
62
62
  * opts into rendering the full history. */
@@ -1,2 +1,2 @@
1
- /** @deprecated Import @aceshooting/lyra-ui/components/lr-transcript-feed.js to register this component. */
1
+ /** @deprecated Import @aceshooting/lyra-ui/components/lr-transcript-feed.js to register this component.*/
2
2
  export*from'./transcript-feed.class.js';
@@ -88,7 +88,7 @@ export type TypingIndicatorLabelPlacement='none'|'after';
88
88
  * @since 4.0.0
89
89
  */
90
90
  export declare class LyraTypingIndicator extends LyraElement{static styles:import("lit").CSSResultGroup[];
91
- /** Which decorative presentation to render. */
91
+ /** Which decorative presentation to render.*/
92
92
  shape:TypingIndicatorShape;
93
93
  /** Accessible name, exposed via `role="status"` and announced through the shared polite sink.
94
94
  * Not re-announced on every animation frame — only mount (and any later change to this
@@ -1,2 +1,2 @@
1
- /** @deprecated Import @aceshooting/lyra-ui/components/lr-typing-indicator.js to register this component. */
1
+ /** @deprecated Import @aceshooting/lyra-ui/components/lr-typing-indicator.js to register this component.*/
2
2
  export*from'./typing-indicator.class.js';
@@ -60,9 +60,9 @@ export declare class LyraUsageBadge extends LyraElement{static styles:import("li
60
60
  /** Input tokens. Normalized to a non-negative integer, locale-formatted. Segment omitted
61
61
  * entirely while unset or non-finite. */
62
62
  tokensIn?:number;
63
- /** Output tokens. Same rules as `tokensIn`. */
63
+ /** Output tokens. Same rules as `tokensIn`.*/
64
64
  tokensOut?:number;
65
- /** Pre-formatted cost (e.g. `"$0.012"`), rendered verbatim. Currency formatting is host domain. */
65
+ /** Pre-formatted cost (e.g. `"$0.012"`), rendered verbatim. Currency formatting is host domain.*/
66
66
  costText:string;
67
67
  /** Latency in milliseconds, formatted with the shared duration algorithm (or `formatLatency`,
68
68
  * when set). */
@@ -1,2 +1,2 @@
1
- /** @deprecated Import @aceshooting/lyra-ui/components/lr-usage-badge.js to register this component. */
1
+ /** @deprecated Import @aceshooting/lyra-ui/components/lr-usage-badge.js to register this component.*/
2
2
  export*from'./usage-badge.class.js';
@@ -1,13 +1,13 @@
1
1
  import{type TemplateResult,type PropertyValues}from'lit';import{LyraCatalogPickerElement}from'../catalog-picker-element.js';import type{LyraSize}from'../../../internal/variants.js';import type{LyraSelectionDirection}from'../../../internal/shared-unions.js';import{CatalogPickerController,type LyraCatalog,type LyraCatalogEntry}from'../../../internal/catalog-picker.js';
2
- /** A catalog row: a selectable TTS voice. */
2
+ /** A catalog row: a selectable TTS voice.*/
3
3
  export interface LyraVoiceCatalogEntry extends LyraCatalogEntry{
4
- /** Rendered (with `description`) as a quiet `[part="option-meta"]` second line. */
4
+ /** Rendered (with `description`) as a quiet `[part="option-meta"]` second line.*/
5
5
  language?:string;description?:string;
6
- /** A sample-audio URL; validated via `safeMediaSrc()` before ever reaching an `<audio src>`. */
6
+ /** A sample-audio URL; validated via `safeMediaSrc()` before ever reaching an `<audio src>`.*/
7
7
  previewUrl?:string;
8
- /** Optional literal icon hint (for example, an emoji), rendered decoratively before `label`. */
8
+ /** Optional literal icon hint (for example, an emoji), rendered decoratively before `label`.*/
9
9
  icon?:string;}export type{LyraCatalog,LyraCatalogEntry}from'../../../internal/catalog-picker.js';
10
- /** Direction reported by the free-text input's native selection APIs. */
10
+ /** Direction reported by the free-text input's native selection APIs.*/
11
11
  export type LyraVoicePickerSelectionDirection=LyraSelectionDirection;export interface LyraVoicePickerEventMap{'lr-invalid':CustomEvent<null>;'lr-input':CustomEvent<{value:string;inCatalog:boolean;}>;'lr-change':CustomEvent<{value:string;inCatalog:boolean;}>;'lr-preview-request':CustomEvent<{voiceId:string;previewUrl?:string;}>;'lr-preview-change':CustomEvent<{voiceId:string|null;}>;input:Event;change:Event;blur:FocusEvent;focus:FocusEvent;}
12
12
  /**
13
13
  * `<lr-voice-picker>` — a TTS voice selector over a host-supplied `catalog`, mirroring
@@ -181,7 +181,7 @@ export type LyraVoicePickerSelectionDirection=LyraSelectionDirection;export inte
181
181
  * @since 4.0.0
182
182
  */
183
183
  export declare class LyraVoicePicker extends LyraCatalogPickerElement<LyraVoicePickerEventMap>{static formAssociated:boolean;static styles:import("lit").CSSResultGroup[];protected static collectionSupport:import("../../../internal/lyra-element.js").LyraCollectionSupport;protected static readonly ownedCollectionProperties:readonly string[];protected static readonly ownedCollectionLimits:{catalog:{entries:number;};};static properties:{value:{attribute:boolean;noAccessor:boolean;};defaultValue:{attribute:string;reflect:boolean;useDefault:boolean;noAccessor:boolean;};};
184
- /** Informational only (e.g. `'elevenlabs'`); rendered as a small leading badge. */
184
+ /** Informational only (e.g. `'elevenlabs'`); rendered as a small leading badge.*/
185
185
  provider:string;
186
186
  /** The bounded, clone-owned, frozen full voice list. Omit (or leave empty) to fall back to plain
187
187
  * free-text entry. Catalog ids must be nonempty and unique; later duplicates are omitted
@@ -189,7 +189,7 @@ provider:string;
189
189
  * retires any internal preview before the rendered candidate can change; reassign a new array
190
190
  * after row changes. */
191
191
  catalog?:LyraCatalog<LyraVoiceCatalogEntry>;
192
- /** Let the user type/commit a value that isn't in `catalog`, even when `catalog` is non-empty. */
192
+ /** Let the user type/commit a value that isn't in `catalog`, even when `catalog` is non-empty.*/
193
193
  allowCustom:boolean;
194
194
  /** Keeps user edits and catalog commits from changing `value` while retaining focus, popup
195
195
  * navigation, selection/copy, previews, form submission, reset, and programmatic writes. */
@@ -197,7 +197,7 @@ readonly:boolean;
197
197
  /** Renders no preview affordances at all: neither the standalone preview toggle nor the per-row
198
198
  * preview icons. */
199
199
  withoutPreview:boolean;
200
- /** Visible label text. The `label` slot appends custom label content to the same native label. */
200
+ /** Visible label text. The `label` slot appends custom label content to the same native label.*/
201
201
  label:string;hint:string;errorText:string;placeholder:string;spellcheck:boolean;autocapitalize:string;private autocorrectValue;
202
202
  /** Native editing-assistance state forwarded as canonical `autocorrect="on"|"off"`. Reads are
203
203
  * boolean; writes accept the boolean IDL and the `'on'`/`'off'` vocabulary. */
@@ -208,7 +208,7 @@ get open():boolean;set open(next:boolean);
208
208
  /** Visual size on the shared six-tier control ladder. `small`/`medium`/`large` alias
209
209
  * `s`/`m`/`l`; the preview action keeps the library-wide 40px minimum hit area. */
210
210
  size:LyraSize;private get activeIndex();private get query();private readonly slotPresence;private previewingId;private listId;private controlId;private audioEl?;private pendingPreviewId;private previewGeneration;protected get catalogEditing():CatalogPickerController<LyraVoiceCatalogEntry>;private readonly catalogPicker;connectedCallback():void;protected willUpdate(changed:PropertyValues<this>):void;disconnectedCallback():void;adoptedCallback():void;
211
- /** The current voice id (empty string when nothing is selected). */
211
+ /** The current voice id (empty string when nothing is selected).*/
212
212
  get value():string;set value(next:string);
213
- /** Reflected current reset default; changing it never overwrites a dirty live `value`. */
213
+ /** Reflected current reset default; changing it never overwrites a dirty live `value`.*/
214
214
  get defaultValue():string;set defaultValue(next:string);protected requiredMessage():string;protected releaseOnDisable():void;formResetCallback():void;formStateRestoreCallback(state:string|File|FormData|null,_mode?:'restore'|'autocomplete'):void;formDisabledCallback(disabled:boolean):void;private get closedMode();private get effectiveEntries();private get filteredEntries();private labelFor;private show;private hide;private readonly limitAnnouncements;private limitMounted;private previousInputLimit;private get inputLimited();protected updated(changed:PropertyValues):void;private get internalPreviewTargetId();private reconcilePreviewVisibility;private reconcilePreviewForActiveIndex;private get previewCandidateId();private requestPreview;private playInternal;private onAudioEnded;private onAudioLoadFailure;private stopInternalPreview;private onPreviewButtonClick;private onOptionPreviewClick;private get previewButtonLabel();private onTriggerClick;private onControlBlur;private onControlFocus;private onTriggerKeyDown;private onComboMouseDown;private onInputFocus;private onInput;private onInputKeyDown;private onListboxMouseDown;private onListboxClick;private renderRows;private renderListbox;private get hasVisibleLabel();private renderLabel;private renderHintError;private renderPreviewButton;private renderClosed;private renderFreeText;render():TemplateResult;}declare global{interface HTMLElementTagNameMap{'lr-voice-picker':LyraVoicePicker;}}
@@ -1,2 +1,2 @@
1
- /** @deprecated Import @aceshooting/lyra-ui/components/lr-voice-picker.js to register this component. */
1
+ /** @deprecated Import @aceshooting/lyra-ui/components/lr-voice-picker.js to register this component.*/
2
2
  export*from'./voice-picker.class.js';
@@ -1,2 +1,2 @@
1
- /** Immutable registry used by a renderer unless its instance receives an explicit override. */
1
+ /** Immutable registry used by a renderer unless its instance receives an explicit override.*/
2
2
  export declare const DEFAULT_WIDGET_TYPE_REGISTRY:import("./registry.js").LyraWidgetTypeRegistry;
@@ -1,27 +1,27 @@
1
- /** A primitive property type accepted from an authored widget document. */
1
+ /** A primitive property type accepted from an authored widget document.*/
2
2
  export type LyraWidgetPropType='string'|'number'|'boolean';
3
- /** Semantic interaction classification, independent of event and binding plumbing. */
3
+ /** Semantic interaction classification, independent of event and binding plumbing.*/
4
4
  export type LyraWidgetInteraction='none'|'control';
5
- /** One allowlisted mapped widget type. Structural `text`/`row`/`col` nodes are not registered. */
5
+ /** One allowlisted mapped widget type. Structural `text`/`row`/`col` nodes are not registered.*/
6
6
  export interface LyraWidgetTypeDefinition{
7
- /** Required custom-element render target. */
7
+ /** Required custom-element render target.*/
8
8
  readonly tag:string;
9
- /** Prop allowlist: name -> required primitive type. */
9
+ /** Prop allowlist: name -> required primitive type.*/
10
10
  readonly props?:Readonly<Record<string,LyraWidgetPropType>>;
11
- /** Always applied after the authored allowlist and never overridable by document input. */
11
+ /** Always applied after the authored allowlist and never overridable by document input.*/
12
12
  readonly forcedProps?:Readonly<Record<string,unknown>>;
13
- /** Allowlisted child slot names. */
13
+ /** Allowlisted child slot names.*/
14
14
  readonly slots?:readonly string[];
15
- /** Whether this element is semantically a control for nested-control content-model checks. */
15
+ /** Whether this element is semantically a control for nested-control content-model checks.*/
16
16
  readonly interaction:LyraWidgetInteraction;
17
- /** Event that emits `lr-widget-action` when a node also supplies `actionId`. */
17
+ /** Event that emits `lr-widget-action` when a node also supplies `actionId`.*/
18
18
  readonly action?:Readonly<{event:string;}>;
19
- /** Controlled-state event mappings for allowlisted props. */
19
+ /** Controlled-state event mappings for allowlisted props.*/
20
20
  readonly bindings?:Readonly<Record<string,Readonly<{event:string;}>>>;}declare const WIDGET_TYPE_REGISTRY_BRAND:unique symbol;
21
- /** Immutable type-keyed registry snapshot accepted by each `<lr-widget-renderer>` instance. */
21
+ /** Immutable type-keyed registry snapshot accepted by each `<lr-widget-renderer>` instance.*/
22
22
  export interface LyraWidgetTypeRegistry extends ReadonlyMap<string,Readonly<LyraWidgetTypeDefinition>>{readonly[WIDGET_TYPE_REGISTRY_BRAND]:true;}
23
23
  /** Runtime guard for callers crossing an untyped boundary. Mutable structural `Map` values are
24
24
  * rejected rather than retained by a renderer and allowed to leak mutations between instances. */
25
25
  export declare function isWidgetTypeRegistry(value:unknown):value is LyraWidgetTypeRegistry;
26
- /** Creates an immutable, validated registry snapshot owned by the assigning renderer/consumer. */
26
+ /** Creates an immutable, validated registry snapshot owned by the assigning renderer/consumer.*/
27
27
  export declare function createWidgetTypeRegistry(entries?:Iterable<readonly[string,LyraWidgetTypeDefinition]>):LyraWidgetTypeRegistry;export{};
@@ -1 +1 @@
1
- var _a;const WIDGET_TYPE_REGISTRY_BRAND=Symbol("LyraWidgetTypeRegistry"),CUSTOM_ELEMENT_NAME=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/,RESERVED_CUSTOM_ELEMENT_NAMES=new Set(["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),SAFE_PROPERTY_NAME=/^[A-Za-z_$][\w$]*$/,FORBIDDEN_PROPERTIES=new Set(["__proto__","constructor","innerHTML","outerHTML","prototype"]),STRUCTURAL_WIDGET_TYPES=new Set(["col","row","text"]);function registryTypeKey(value){if(typeof value!="string"||value.length===0||value!==value.trim())throw new TypeError("A widget type key must be a nonempty string without surrounding whitespace.");if(STRUCTURAL_WIDGET_TYPES.has(value))throw new TypeError(`Structural widget type "${value}" cannot be registered.`);return value}function eventName(value,label){if(typeof value!="string"||value.length===0||value!==value.trim())throw new TypeError(`A widget ${label} must be a nonempty event name.`);return value}function propertyName(value){if(!SAFE_PROPERTY_NAME.test(value)||FORBIDDEN_PROPERTIES.has(value)||value.toLowerCase().startsWith("on"))throw new TypeError(`Widget property "${value}" is not a safe assignable property name.`);return value}function freezeProps(value){if(value===void 0)return;if(typeof value!="object"||value===null||Array.isArray(value))throw new TypeError("A widget props allowlist must be an object.");const out={};for(const[key,type]of Object.entries(value)){if(propertyName(key),type!=="string"&&type!=="number"&&type!=="boolean")throw new TypeError(`Widget property "${key}" has an invalid primitive type.`);out[key]=type}return Object.freeze(out)}function freezeForcedProps(value){if(value===void 0)return;if(typeof value!="object"||value===null||Array.isArray(value))throw new TypeError("Widget forcedProps must be an object.");const out={};for(const[key,forced]of Object.entries(value))propertyName(key),out[key]=forced;return Object.freeze(out)}function freezeBindings(value,props){if(value===void 0)return;if(typeof value!="object"||value===null||Array.isArray(value))throw new TypeError("Widget bindings must be an object.");const out={};for(const[key,binding]of Object.entries(value)){if(propertyName(key),!props?.[key])throw new TypeError(`Widget binding "${key}" must name an allowlisted property.`);if(typeof binding!="object"||binding===null||Array.isArray(binding))throw new TypeError(`Widget binding "${key}" must be an object.`);out[key]=Object.freeze({event:eventName(binding.event,`binding for "${key}"`)})}return Object.freeze(out)}function validateWidgetTypeDefinition(value){if(typeof value!="object"||value===null||Array.isArray(value))throw new TypeError("A widget type definition must be an object.");const candidate=value;if(typeof candidate.tag!="string"||!CUSTOM_ELEMENT_NAME.test(candidate.tag)||RESERVED_CUSTOM_ELEMENT_NAMES.has(candidate.tag))throw new TypeError("A widget type definition requires a valid custom-element tag.");const props=freezeProps(candidate.props),forcedProps=freezeForcedProps(candidate.forcedProps),interaction=candidate.interaction;if(interaction!=="none"&&interaction!=="control")throw new TypeError("Widget interaction must be either 'none' or 'control'.");const action=candidate.action?Object.freeze({event:eventName(candidate.action.event,"action")}):void 0,bindings=freezeBindings(candidate.bindings,props);if((action||bindings)&&interaction!=="control")throw new TypeError("A widget definition with actions or bindings must declare interaction: 'control'.");let slots;if(candidate.slots!==void 0){if(!Array.isArray(candidate.slots))throw new TypeError("Widget slots must be an array.");const unique=new Set;for(const slot of candidate.slots){if(typeof slot!="string"||!slot||slot!==slot.trim())throw new TypeError("Widget slot names must be nonempty strings without surrounding whitespace.");if(unique.has(slot))throw new TypeError(`Duplicate widget slot name "${slot}".`);unique.add(slot)}slots=Object.freeze([...unique])}return Object.freeze({tag:candidate.tag,...props?{props}:{},...forcedProps?{forcedProps}:{},...slots?{slots}:{},interaction,...action?{action}:{},...bindings?{bindings}:{}})}class ImmutableWidgetTypeRegistry{#entries;constructor(entries){this[_a]=!0,this.#entries=new Map(entries),Object.freeze(this)}get size(){return this.#entries.size}get(key){return this.#entries.get(key)}has(key){return this.#entries.has(key)}entries(){return this.#entries.entries()}keys(){return this.#entries.keys()}values(){return this.#entries.values()}forEach(callbackfn,thisArg){for(const[key,value]of this.#entries)callbackfn.call(thisArg,value,key,this)}[(_a=WIDGET_TYPE_REGISTRY_BRAND,Symbol.iterator)](){return this.entries()}}function isWidgetTypeRegistry(value){return!!(value&&typeof value=="object"&&value[WIDGET_TYPE_REGISTRY_BRAND]===!0)}function createWidgetTypeRegistry(entries=[]){const validated=new Map;for(const[type,definition]of entries){const key=registryTypeKey(type);if(validated.has(key))throw new TypeError(`Duplicate widget type key "${key}".`);validated.set(key,validateWidgetTypeDefinition(definition))}return new ImmutableWidgetTypeRegistry(validated)}export{createWidgetTypeRegistry,isWidgetTypeRegistry};
1
+ var _a;const WIDGET_TYPE_REGISTRY_BRAND=Symbol("LyraWidgetTypeRegistry"),CUSTOM_ELEMENT_NAME=/^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/,RESERVED_CUSTOM_ELEMENT_NAMES=new Set(["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),SAFE_PROPERTY_NAME=/^[A-Za-z_$][\w$]*$/,FORBIDDEN_PROPERTIES=new Set(["__proto__","constructor","innerHTML","outerHTML","prototype"]),STRUCTURAL_WIDGET_TYPES=new Set(["col","row","text"]);function registryTypeKey(value){if(typeof value!="string"||value.length===0||value!==value.trim())throw new TypeError("A widget type key must be a nonempty string without surrounding whitespace.");if(STRUCTURAL_WIDGET_TYPES.has(value))throw new TypeError(`Structural widget type "${value}" cannot be registered.`);return value}function eventName(value,label){if(typeof value!="string"||value.length===0||value!==value.trim())throw new TypeError(`A widget ${label} must be a nonempty event name.`);return value}function propertyName(value){if(!SAFE_PROPERTY_NAME.test(value)||FORBIDDEN_PROPERTIES.has(value)||value.toLowerCase().startsWith("on"))throw new TypeError(`Widget property "${value}" is not a safe assignable property name.`);return value}function freezeProps(value){if(value===void 0)return;if(typeof value!="object"||value===null||Array.isArray(value))throw new TypeError("A widget props allowlist must be an object.");const out={};for(const[key,type]of Object.entries(value)){if(propertyName(key),type!=="string"&&type!=="number"&&type!=="boolean")throw new TypeError(`Widget property "${key}" has an invalid primitive type.`);out[key]=type}return Object.freeze(out)}function freezeForcedProps(value){if(value===void 0)return;if(typeof value!="object"||value===null||Array.isArray(value))throw new TypeError("Widget forcedProps must be an object.");const out={};for(const[key,forced]of Object.entries(value))propertyName(key),out[key]=forced;return Object.freeze(out)}function freezeBindings(value,props){if(value===void 0)return;if(typeof value!="object"||value===null||Array.isArray(value))throw new TypeError("Widget bindings must be an object.");const out={};for(const[key,binding]of Object.entries(value)){if(propertyName(key),!props?.[key])throw new TypeError(`Widget binding "${key}" must name an allowlisted property.`);if(typeof binding!="object"||binding===null||Array.isArray(binding))throw new TypeError(`Widget binding "${key}" must be an object.`);out[key]=Object.freeze({event:eventName(binding.event,`binding for "${key}"`)})}return Object.freeze(out)}function validateWidgetTypeDefinition(value){if(typeof value!="object"||value===null||Array.isArray(value))throw new TypeError("A widget type definition must be an object.");const candidate=value;if(typeof candidate.tag!="string"||!CUSTOM_ELEMENT_NAME.test(candidate.tag)||RESERVED_CUSTOM_ELEMENT_NAMES.has(candidate.tag))throw new TypeError("A widget type definition requires a valid custom-element tag.");const props=freezeProps(candidate.props),forcedProps=freezeForcedProps(candidate.forcedProps),interaction=candidate.interaction;if(interaction!=="none"&&interaction!=="control")throw new TypeError("Widget interaction must be either 'none' or 'control'.");const action=candidate.action?Object.freeze({event:eventName(candidate.action.event,"action")}):void 0,bindings=freezeBindings(candidate.bindings,props);if((action||bindings)&&interaction!=="control")throw new TypeError("A widget definition with actions or bindings must declare interaction: 'control'.");let slots;if(candidate.slots!==void 0){if(!Array.isArray(candidate.slots))throw new TypeError("Widget slots must be an array.");const unique=new Set;for(const slot of candidate.slots){if(typeof slot!="string"||!slot||slot!==slot.trim())throw new TypeError("Widget slot names must be nonempty strings without surrounding whitespace.");if(unique.has(slot))throw new TypeError(`Duplicate widget slot name "${slot}".`);unique.add(slot)}slots=Object.freeze([...unique])}return Object.freeze({tag:candidate.tag,...props?{props}:{},...forcedProps?{forcedProps}:{},...slots?{slots}:{},interaction,...action?{action}:{},...bindings?{bindings}:{}})}class ImmutableWidgetTypeRegistry{#entries;constructor(entries){this[_a]=!0,this.#entries=new Map(entries),Object.freeze(this)}get size(){return this.#entries.size}get(key){return this.#entries.get(key)}has(key){return this.#entries.has(key)}entries(){return this.#entries.entries()}keys(){return this.#entries.keys()}values(){return this.#entries.values()}forEach(callbackfn,thisArg){for(const[key,value]of this.#entries)callbackfn.call(thisArg,value,key,this)}[(_a=WIDGET_TYPE_REGISTRY_BRAND,Symbol.iterator)](){return this.entries()}}function isWidgetTypeRegistry(value){return!!(value&&typeof value=="object"&&value[WIDGET_TYPE_REGISTRY_BRAND]===!0)}function createWidgetTypeRegistry(entries=[]){const validated=new Map;for(const[type,definition]of entries){const key=registryTypeKey(type);if(validated.has(key))throw new TypeError(`Duplicate widget type key "${key}".`);validated.set(key,validateWidgetTypeDefinition(definition))}return new ImmutableWidgetTypeRegistry(validated)}export{createWidgetTypeRegistry,isWidgetTypeRegistry};
@@ -1,5 +1,5 @@
1
1
  import{type LyraWidgetTypeRegistry}from'./registry.js';export interface LyraWidgetNode{readonly type:string;readonly id?:string;readonly props?:Readonly<Record<string,unknown>>;readonly children?:readonly(LyraWidgetNode|string)[];readonly slot?:string;readonly actionId?:string;readonly payload?:unknown;}export interface LyraWidgetBinding{readonly $bind:string;readonly fallback?:string|number|boolean|null;}
2
- /** Version-two document. Controlled binding state is supplied separately through `bindingState`. */
2
+ /** Version-two document. Controlled binding state is supplied separately through `bindingState`.*/
3
3
  export interface LyraWidgetDocument{readonly version:'2';readonly root:LyraWidgetNode;}
4
4
  /**
5
5
  * Creates an immediate, bounded, frozen version-two document snapshot. Widget-owned structure and
@@ -9,17 +9,17 @@ export interface LyraWidgetDocument{readonly version:'2';readonly root:LyraWidge
9
9
  * Malformed, cyclic, duplicate-id, or hostile input throws `TypeError` before a document escapes.
10
10
  */
11
11
  export declare function createWidgetDocument(root:LyraWidgetNode):LyraWidgetDocument;export interface ResolvedText{
12
- /** Collision-free deterministic reconciliation key. */
12
+ /** Collision-free deterministic reconciliation key.*/
13
13
  nodeKey:string;nodePath:string;kind:'text';text:string;slot?:string;}export interface ResolvedElement{
14
- /** Explicit public identity, when authored. Stateful/actionable mapped nodes always have one. */
14
+ /** Explicit public identity, when authored. Stateful/actionable mapped nodes always have one.*/
15
15
  nodeId?:string;
16
- /** Collision-free deterministic key: authored id when present, otherwise structural path. */
16
+ /** Collision-free deterministic key: authored id when present, otherwise structural path.*/
17
17
  nodeKey:string;
18
- /** Deterministic occurrence path within this document. */
18
+ /** Deterministic occurrence path within this document.*/
19
19
  nodePath:string;kind:'builtin-row'|'builtin-col'|'builtin-text'|'mapped';tag?:string;
20
- /** Semantic control classification, independent of actions and bindings. */
20
+ /** Semantic control classification, independent of actions and bindings.*/
21
21
  interactive:boolean;props:Record<string,unknown>;actionEvent?:string;actionId?:string;payload?:unknown;bindings:Array<{prop:string;path:string;event?:string;}>;children:ResolvedNode[];slot?:string;}export type ResolvedNode=ResolvedText|ResolvedElement;export interface ResolveContext{registry:LyraWidgetTypeRegistry;bindingState:unknown;
22
- /** Warning keys retained for one renderer document/registry generation. */
22
+ /** Warning keys retained for one renderer document/registry generation.*/
23
23
  warned:Set<string>;
24
24
  /** Explicit diagnostic callback, active in every runtime. Without one, authoring warnings
25
25
  * are emitted only in development; keys and caps belong to this context generation. */
@@ -1 +1 @@
1
- import{devWarn}from"../../../internal/dev-mode-attribute-warning.js";import{isWidgetTypeRegistry}from"./registry.js";import{readWidgetPointer,WIDGET_MAX_DEPTH,WIDGET_MAX_NODES,WIDGET_MAX_PROPS_PER_NODE,WIDGET_MAX_WARNINGS}from"../../../internal/widget-resolver.js";const WIDGET_MAX_STRING_LENGTH=16384;function truncateWidgetString(value){if(value.length<=WIDGET_MAX_STRING_LENGTH)return value;const capped=value.slice(0,WIDGET_MAX_STRING_LENGTH),last=capped.charCodeAt(capped.length-1);return last>=55296&&last<=56319?capped.slice(0,-1):capped}const DOCUMENT_INVALID=Symbol("invalid-widget-document"),DOCUMENT_MISSING=Symbol("missing-widget-document-field");function readDocumentField(input,key){try{return Object.hasOwn(input,key)?Reflect.get(input,key):DOCUMENT_MISSING}catch{return DOCUMENT_INVALID}}function snapshotDocumentProps(input){const output={};let admitted=0;try{for(const key in input){if(!Object.hasOwn(input,key))continue;if(admitted>=WIDGET_MAX_PROPS_PER_NODE)break;const value=Reflect.get(input,key);admitted+=1,output[key]=typeof value=="string"?truncateWidgetString(value):value}}catch{return DOCUMENT_INVALID}return Object.freeze(output)}function snapshotDocumentNode(input,depth,context){if(depth>WIDGET_MAX_DEPTH||context.remaining<=0)return null;if(context.remaining-=1,input===null||typeof input!="object"||Array.isArray(input)||context.ancestors.has(input))return DOCUMENT_INVALID;const type=readDocumentField(input,"type");if(typeof type!="string")return DOCUMENT_INVALID;const id=readDocumentField(input,"id"),slot=readDocumentField(input,"slot"),actionId=readDocumentField(input,"actionId"),propsInput=readDocumentField(input,"props"),childrenInput=readDocumentField(input,"children");if([id,slot,actionId,propsInput,childrenInput].includes(DOCUMENT_INVALID)||id!==DOCUMENT_MISSING&&(typeof id!="string"||id.length===0||id!==id.trim()))return DOCUMENT_INVALID;if(typeof id=="string"){if(context.ids.has(id))return DOCUMENT_INVALID;context.ids.add(id)}if(slot!==DOCUMENT_MISSING&&(typeof slot!="string"||slot.length===0||slot!==slot.trim())||actionId!==DOCUMENT_MISSING&&(typeof actionId!="string"||actionId.length===0||actionId!==actionId.trim())||propsInput!==DOCUMENT_MISSING&&(propsInput===null||typeof propsInput!="object"||Array.isArray(propsInput))||childrenInput!==DOCUMENT_MISSING&&!Array.isArray(childrenInput))return DOCUMENT_INVALID;const props=propsInput===DOCUMENT_MISSING?void 0:snapshotDocumentProps(propsInput);if(props===DOCUMENT_INVALID)return DOCUMENT_INVALID;let payload=DOCUMENT_MISSING;if(actionId!==DOCUMENT_MISSING&&(payload=readDocumentField(input,"payload"),payload===DOCUMENT_INVALID))return DOCUMENT_INVALID;const children=[];if(childrenInput!==DOCUMENT_MISSING&&depth<WIDGET_MAX_DEPTH){const length=readDocumentField(childrenInput,"length");if(typeof length!="number"||!Number.isSafeInteger(length)||length<0)return DOCUMENT_INVALID;context.ancestors.add(input);try{for(let index=0;index<length&&context.remaining>0;index++){const child=readDocumentField(childrenInput,index);if(child===DOCUMENT_INVALID||child===DOCUMENT_MISSING)return DOCUMENT_INVALID;if(typeof child=="string"){context.remaining-=1,children.push(truncateWidgetString(child));continue}const snapshot=snapshotDocumentNode(child,depth+1,context);if(snapshot===DOCUMENT_INVALID)return DOCUMENT_INVALID;snapshot&&children.push(snapshot)}}finally{context.ancestors.delete(input)}}return Object.freeze({type,...typeof id=="string"?{id}:{},...typeof slot=="string"?{slot}:{},...typeof actionId=="string"?{actionId,payload:payload===DOCUMENT_MISSING?void 0:payload}:{},...props===void 0?{}:{props},...children.length===0?{}:{children:Object.freeze(children)}})}function createWidgetDocument(root){const snapshot=snapshotDocumentNode(root,0,{ancestors:new Set,ids:new Set,remaining:WIDGET_MAX_NODES});if(snapshot===DOCUMENT_INVALID||snapshot===null)throw new TypeError("A widget document root must be a valid bounded widget node.");return Object.freeze({version:"2",root:snapshot})}const WARNING_SUPPRESSION_KEY="__warning-cap__",INVALID=Symbol("invalid-widget-input"),ROW_COL_PROP_ENUMS={gap:["s","m","l"],align:["start","center","end","stretch"],justify:["start","center","end","between"]};function warnOnce(ctx,key,message){if(!ctx.warned.has(key)){if(ctx.warned.size>=WIDGET_MAX_WARNINGS){if(ctx.warned.has(WARNING_SUPPRESSION_KEY))return;ctx.warned.add(WARNING_SUPPRESSION_KEY),(ctx.warn??devWarn)(`[lr-widget-renderer] suppressed further diagnostics after ${WIDGET_MAX_WARNINGS} unique warnings`);return}ctx.warned.add(key),(ctx.warn??devWarn)(`[lr-widget-renderer] ${message}`)}}function capResolvedString(value,ctx,key,subject){const capped=truncateWidgetString(value);return capped.length!==value.length&&warnOnce(ctx,`__string-cap__:${key}`,`truncated ${subject} after the ${WIDGET_MAX_STRING_LENGTH}-character string cap was reached`),capped}function isBinding(value){return!!(value&&typeof value=="object"&&!Array.isArray(value)&&typeof value.$bind=="string")}function resolveValue(value,ctx){if(!isBinding(value))return{value};const resolved=readWidgetPointer(ctx.bindingState,value.$bind);return{value:resolved===void 0?value.fallback:resolved,path:value.$bind}}function consumeNodeBudget(snapshot){return snapshot.remaining<=0?(warnOnce(snapshot.resolve,"__node-cap__",`stopped resolving after the ${WIDGET_MAX_NODES}-node cap was reached`),!1):(snapshot.remaining--,!0)}function snapshotProps(input,type,ctx){const out={};let visited=0;for(const key in input){if(visited>=WIDGET_MAX_PROPS_PER_NODE){warnOnce(ctx,`__prop-cap__:${type}`,`stopped reading props on type "${type}" after the ${WIDGET_MAX_PROPS_PER_NODE}-prop cap was reached`);break}visited++,Object.hasOwn(input,key)&&(out[key]=input[key])}return out}function definitionFor(type,registry){return registry.get(type)}function snapshotNode(input,depth,snapshot){if(depth>WIDGET_MAX_DEPTH)return warnOnce(snapshot.resolve,"__depth-cap__",`stopped resolving after the ${WIDGET_MAX_DEPTH}-level depth cap was reached`),null;if(!consumeNodeBudget(snapshot))return null;if(input===null||typeof input!="object"||Array.isArray(input)||snapshot.ancestors.has(input))return INVALID;const candidate=input,type=candidate.type;if(typeof type!="string")return INVALID;if(!(type==="row"||type==="col"||type==="text")&&!definitionFor(type,snapshot.resolve.registry))return{type};const id=candidate.id;if(id!==void 0&&(typeof id!="string"||id.length===0||id!==id.trim()))return INVALID;const slot=candidate.slot;if(slot!==void 0&&(typeof slot!="string"||slot.length===0||slot!==slot.trim()))return INVALID;const actionId=candidate.actionId;if(actionId!==void 0&&(typeof actionId!="string"||actionId.length===0||actionId!==actionId.trim()))return INVALID;const propsInput=candidate.props;if(propsInput!==void 0&&(propsInput===null||typeof propsInput!="object"||Array.isArray(propsInput)))return INVALID;const childrenInput=candidate.children;if(childrenInput!==void 0&&!Array.isArray(childrenInput))return INVALID;const node={type,...id!==void 0?{id}:{},...slot!==void 0?{slot}:{},...actionId!==void 0?{actionId,payload:candidate.payload}:{},...propsInput!==void 0?{props:snapshotProps(propsInput,type,snapshot.resolve)}:{}};if(childrenInput===void 0||depth===WIDGET_MAX_DEPTH)return childrenInput&&childrenInput.length>0&&warnOnce(snapshot.resolve,"__depth-cap__",`stopped resolving after the ${WIDGET_MAX_DEPTH}-level depth cap was reached`),node;const children=[];snapshot.ancestors.add(input);try{const childCount=childrenInput.length;for(let index=0;index<childCount;index++){if(snapshot.remaining<=0){consumeNodeBudget(snapshot);break}const child=childrenInput[index];if(typeof child=="string"){if(!consumeNodeBudget(snapshot))break;children.push(child);continue}const accepted=snapshotNode(child,depth+1,snapshot);if(accepted===INVALID)return INVALID;accepted&&children.push(accepted)}}finally{snapshot.ancestors.delete(input)}return children.length>0?{...node,children}:node}function filterRowColProps(props){const out={};if(!props)return out;for(const[key,allowed]of Object.entries(ROW_COL_PROP_ENUMS)){const value=props[key];typeof value=="string"&&allowed.includes(value)&&(out[key]=value)}return out}function filterMappedProps(props,def,ctx,type){const out={},bindings=[],allowlist=def.props??{};if(props)for(const[key,rawValue]of Object.entries(props)){const expectedType=allowlist[key],{value,path}=resolveValue(rawValue,ctx);if(expectedType===void 0||typeof value!==expectedType){warnOnce(ctx,`${type}:${key}`,`skipped disallowed or mistyped prop "${key}" on type "${type}"`);continue}out[key]=typeof value=="string"?capResolvedString(value,ctx,`${type}:${key}`,`string prop "${key}" on type "${type}"`):value,path&&bindings.push({prop:key,path,event:def.bindings?.[key]?.event})}return{props:{...out,...def.forcedProps??{}},bindings}}function containsInteractive(node){return node.kind==="text"?!1:node.interactive||node.children.some(containsInteractive)}function resolveChild(value,ctx,path){return typeof value=="string"?{nodeKey:`path:${path}`,nodePath:path,kind:"text",text:capResolvedString(value,ctx,"__text__","a text child")}:resolveNode(value,ctx,path)}function resolveNode(node,ctx,path){const authoredId=node.id,nodeKey=authoredId?`id:${authoredId}`:`path:${path}`;let kind,tag,interactive=!1,props,actionEvent,bindings=[],slots=[];if(node.type==="row"||node.type==="col")kind=node.type==="row"?"builtin-row":"builtin-col",props=filterRowColProps(node.props);else if(node.type==="text"){kind="builtin-text";const resolved=resolveValue(node.props?.value,ctx);if(props=typeof resolved.value=="string"||typeof resolved.value=="number"?{value:capResolvedString(String(resolved.value),ctx,"__text-value__",'the "value" of a built-in text node')}:{},resolved.path){if(!authoredId)throw warnOnce(ctx,`__required-id__:${path}`,"rejected bound text without a stable id"),new TypeError("A bound widget node requires a stable id.");bindings=[{prop:"value",path:resolved.path}]}}else{const def=definitionFor(node.type,ctx.registry);if(!def)return warnOnce(ctx,node.type,`skipped unknown widget type "${node.type}" (and its subtree)`),null;kind="mapped",tag=def.tag,interactive=def.interaction==="control";const filtered=filterMappedProps(node.props,def,ctx,node.type);if(props=filtered.props,bindings=filtered.bindings,slots=def.slots??[],node.actionId!==void 0&&def.action&&(actionEvent=def.action.event),(actionEvent||bindings.length>0)&&!authoredId)throw warnOnce(ctx,`__required-id__:${path}`,`rejected stateful or actionable type "${node.type}" without a stable id`),new TypeError("A stateful or actionable widget node requires a stable id.")}const children=[];for(let index=0;index<(node.children?.length??0);index++){const resolvedChild=resolveChild(node.children[index],ctx,`${path}.${index}`);if(resolvedChild){if(interactive&&containsInteractive(resolvedChild)){warnOnce(ctx,`__nested-interactive__:${node.type}`,`skipped a control descendant inside control type "${node.type}"`);continue}resolvedChild.slot!==void 0&&!slots.includes(resolvedChild.slot)&&(resolvedChild.slot=void 0),children.push(resolvedChild)}}return{nodeId:authoredId,nodeKey,nodePath:path,kind,tag,interactive,props,actionEvent,actionId:actionEvent?node.actionId:void 0,payload:actionEvent?node.payload:void 0,bindings,children,slot:node.slot}}function hasDuplicateAuthoredIds(root,ctx){const counts=new Map,pending=[root];for(;pending.length>0;){const node=pending.pop();node.id&&counts.set(node.id,(counts.get(node.id)??0)+1);for(const child of node.children??[])typeof child!="string"&&pending.push(child)}let duplicate=!1;for(const[id,count]of counts)count<2||(duplicate=!0,warnOnce(ctx,`__duplicate-id__:${id}`,`rejected duplicate widget id "${id}"`));return duplicate}function resolveTree(root,ctx){if(root==null)return null;if(!isWidgetTypeRegistry(ctx.registry))throw new TypeError("A widget renderer registry must be created with createWidgetTypeRegistry().");const snapshot=snapshotNode(root,0,{resolve:ctx,ancestors:new Set,remaining:WIDGET_MAX_NODES});return snapshot===INVALID||snapshot===null||hasDuplicateAuthoredIds(snapshot,ctx)?null:resolveNode(snapshot,ctx,"0")}export{WIDGET_MAX_STRING_LENGTH,createWidgetDocument,resolveTree};
1
+ import{devWarn}from"../../../internal/dev-mode-attribute-warning.js";import{isWidgetTypeRegistry}from"./registry.js";import{readWidgetPointer,WIDGET_MAX_DEPTH,WIDGET_MAX_NODES,WIDGET_MAX_PROPS_PER_NODE,WIDGET_MAX_WARNINGS}from"../../../internal/widget-resolver.js";const WIDGET_MAX_STRING_LENGTH=16384;function truncateWidgetString(value){if(value.length<=WIDGET_MAX_STRING_LENGTH)return value;const capped=value.slice(0,WIDGET_MAX_STRING_LENGTH),last=capped.charCodeAt(capped.length-1);return last>=55296&&last<=56319?capped.slice(0,-1):capped}const DOCUMENT_INVALID=Symbol("invalid-widget-document"),DOCUMENT_MISSING=Symbol("missing-widget-document-field");function readDocumentField(input,key){try{return Object.hasOwn(input,key)?Reflect.get(input,key):DOCUMENT_MISSING}catch{return DOCUMENT_INVALID}}function snapshotDocumentProps(input){const output={};let admitted=0;try{for(const key in input){if(!Object.hasOwn(input,key))continue;if(admitted>=WIDGET_MAX_PROPS_PER_NODE)break;const value=Reflect.get(input,key);admitted+=1,output[key]=typeof value=="string"?truncateWidgetString(value):value}}catch{return DOCUMENT_INVALID}return Object.freeze(output)}function snapshotDocumentNode(input,depth,context){if(depth>WIDGET_MAX_DEPTH||context.remaining<=0)return null;if(context.remaining-=1,input===null||typeof input!="object"||Array.isArray(input)||context.ancestors.has(input))return DOCUMENT_INVALID;const type=readDocumentField(input,"type");if(typeof type!="string")return DOCUMENT_INVALID;const id=readDocumentField(input,"id"),slot=readDocumentField(input,"slot"),actionId=readDocumentField(input,"actionId"),propsInput=readDocumentField(input,"props"),childrenInput=readDocumentField(input,"children");if([id,slot,actionId,propsInput,childrenInput].includes(DOCUMENT_INVALID)||id!==DOCUMENT_MISSING&&(typeof id!="string"||id.length===0||id!==id.trim()))return DOCUMENT_INVALID;if(typeof id=="string"){if(context.ids.has(id))return DOCUMENT_INVALID;context.ids.add(id)}if(slot!==DOCUMENT_MISSING&&(typeof slot!="string"||slot.length===0||slot!==slot.trim())||actionId!==DOCUMENT_MISSING&&(typeof actionId!="string"||actionId.length===0||actionId!==actionId.trim())||propsInput!==DOCUMENT_MISSING&&(propsInput===null||typeof propsInput!="object"||Array.isArray(propsInput))||childrenInput!==DOCUMENT_MISSING&&!Array.isArray(childrenInput))return DOCUMENT_INVALID;const props=propsInput===DOCUMENT_MISSING?void 0:snapshotDocumentProps(propsInput);if(props===DOCUMENT_INVALID)return DOCUMENT_INVALID;let payload=DOCUMENT_MISSING;if(actionId!==DOCUMENT_MISSING&&(payload=readDocumentField(input,"payload"),payload===DOCUMENT_INVALID))return DOCUMENT_INVALID;const children=[];if(childrenInput!==DOCUMENT_MISSING&&depth<WIDGET_MAX_DEPTH){const length=readDocumentField(childrenInput,"length");if(typeof length!="number"||!Number.isSafeInteger(length)||length<0)return DOCUMENT_INVALID;context.ancestors.add(input);try{for(let index=0;index<length&&context.remaining>0;index++){const child=readDocumentField(childrenInput,index);if(child===DOCUMENT_INVALID||child===DOCUMENT_MISSING)return DOCUMENT_INVALID;if(typeof child=="string"){context.remaining-=1,children.push(truncateWidgetString(child));continue}const snapshot=snapshotDocumentNode(child,depth+1,context);if(snapshot===DOCUMENT_INVALID)return DOCUMENT_INVALID;snapshot&&children.push(snapshot)}}finally{context.ancestors.delete(input)}}return Object.freeze({type,...typeof id=="string"?{id}:{},...typeof slot=="string"?{slot}:{},...typeof actionId=="string"?{actionId,payload:payload===DOCUMENT_MISSING?void 0:payload}:{},...props===void 0?{}:{props},...children.length===0?{}:{children:Object.freeze(children)}})}function createWidgetDocument(root){const snapshot=snapshotDocumentNode(root,0,{ancestors:new Set,ids:new Set,remaining:WIDGET_MAX_NODES});if(snapshot===DOCUMENT_INVALID||snapshot===null)throw new TypeError("A widget document root must be a valid bounded widget node.");return Object.freeze({version:"2",root:snapshot})}const WARNING_SUPPRESSION_KEY="__warning-cap__",INVALID=Symbol("invalid-widget-input"),ROW_COL_PROP_ENUMS={gap:["s","m","l"],align:["start","center","end","stretch"],justify:["start","center","end","between"]};function warnOnce(ctx,key,message){if(!ctx.warned.has(key)){if(ctx.warned.size>=WIDGET_MAX_WARNINGS){if(ctx.warned.has(WARNING_SUPPRESSION_KEY))return;ctx.warned.add(WARNING_SUPPRESSION_KEY),(ctx.warn??devWarn)(`[lr-widget-renderer] suppressed further diagnostics after ${WIDGET_MAX_WARNINGS} unique warnings`);return}ctx.warned.add(key),(ctx.warn??devWarn)(`[lr-widget-renderer] ${message}`)}}function capResolvedString(value,ctx,key,subject){const capped=truncateWidgetString(value);return capped.length!==value.length&&warnOnce(ctx,`__string-cap__:${key}`,`truncated ${subject} after the ${WIDGET_MAX_STRING_LENGTH}-character string cap was reached`),capped}function isBinding(value){return!!(value&&typeof value=="object"&&!Array.isArray(value)&&typeof value.$bind=="string")}function resolveValue(value,ctx){if(!isBinding(value))return{value};const resolved=readWidgetPointer(ctx.bindingState,value.$bind);return{value:resolved===void 0?value.fallback:resolved,path:value.$bind}}function consumeNodeBudget(snapshot){return snapshot.remaining<=0?(warnOnce(snapshot.resolve,"__node-cap__",`stopped resolving after the ${WIDGET_MAX_NODES}-node cap was reached`),!1):(snapshot.remaining--,!0)}function snapshotProps(input,type,ctx){const out={};let visited=0;for(const key in input){if(visited>=WIDGET_MAX_PROPS_PER_NODE){warnOnce(ctx,`__prop-cap__:${type}`,`stopped reading props on type "${type}" after the ${WIDGET_MAX_PROPS_PER_NODE}-prop cap was reached`);break}visited++,Object.hasOwn(input,key)&&(out[key]=input[key])}return out}function definitionFor(type,registry){return registry.get(type)}function snapshotNode(input,depth,snapshot){if(!consumeNodeBudget(snapshot))return null;if(input===null||typeof input!="object"||Array.isArray(input)||snapshot.ancestors.has(input))return INVALID;const candidate=input,type=candidate.type;if(typeof type!="string")return INVALID;if(!(type==="row"||type==="col"||type==="text")&&!definitionFor(type,snapshot.resolve.registry))return{type};const id=candidate.id;if(id!==void 0&&(typeof id!="string"||id.length===0||id!==id.trim()))return INVALID;const slot=candidate.slot;if(slot!==void 0&&(typeof slot!="string"||slot.length===0||slot!==slot.trim()))return INVALID;const actionId=candidate.actionId;if(actionId!==void 0&&(typeof actionId!="string"||actionId.length===0||actionId!==actionId.trim()))return INVALID;const propsInput=candidate.props;if(propsInput!==void 0&&(propsInput===null||typeof propsInput!="object"||Array.isArray(propsInput)))return INVALID;const childrenInput=candidate.children;if(childrenInput!==void 0&&!Array.isArray(childrenInput))return INVALID;const node={type,...id!==void 0?{id}:{},...slot!==void 0?{slot}:{},...actionId!==void 0?{actionId,payload:candidate.payload}:{},...propsInput!==void 0?{props:snapshotProps(propsInput,type,snapshot.resolve)}:{}};if(childrenInput===void 0||depth===WIDGET_MAX_DEPTH)return childrenInput&&childrenInput.length>0&&warnOnce(snapshot.resolve,"__depth-cap__",`stopped resolving after the ${WIDGET_MAX_DEPTH}-level depth cap was reached`),node;const children=[];snapshot.ancestors.add(input);try{const childCount=childrenInput.length;for(let index=0;index<childCount;index++){if(snapshot.remaining<=0){consumeNodeBudget(snapshot);break}const child=childrenInput[index];if(typeof child=="string"){if(!consumeNodeBudget(snapshot))break;children.push(child);continue}const accepted=snapshotNode(child,depth+1,snapshot);if(accepted===INVALID)return INVALID;accepted&&children.push(accepted)}}finally{snapshot.ancestors.delete(input)}return children.length>0?{...node,children}:node}function filterRowColProps(props){const out={};if(!props)return out;for(const[key,allowed]of Object.entries(ROW_COL_PROP_ENUMS)){const value=props[key];typeof value=="string"&&allowed.includes(value)&&(out[key]=value)}return out}function filterMappedProps(props,def,ctx,type){const out={},bindings=[],allowlist=def.props??{};if(props)for(const[key,rawValue]of Object.entries(props)){const expectedType=allowlist[key],{value,path}=resolveValue(rawValue,ctx);if(expectedType===void 0||typeof value!==expectedType){warnOnce(ctx,`${type}:${key}`,`skipped disallowed or mistyped prop "${key}" on type "${type}"`);continue}out[key]=typeof value=="string"?capResolvedString(value,ctx,`${type}:${key}`,`string prop "${key}" on type "${type}"`):value,path&&bindings.push({prop:key,path,event:def.bindings?.[key]?.event})}return{props:{...out,...def.forcedProps??{}},bindings}}function containsInteractive(node){return node.kind==="text"?!1:node.interactive||node.children.some(containsInteractive)}function resolveChild(value,ctx,path){return typeof value=="string"?{nodeKey:`path:${path}`,nodePath:path,kind:"text",text:capResolvedString(value,ctx,"__text__","a text child")}:resolveNode(value,ctx,path)}function resolveNode(node,ctx,path){const authoredId=node.id,nodeKey=authoredId?`id:${authoredId}`:`path:${path}`;let kind,tag,interactive=!1,props,actionEvent,bindings=[],slots=[];if(node.type==="row"||node.type==="col")kind=node.type==="row"?"builtin-row":"builtin-col",props=filterRowColProps(node.props);else if(node.type==="text"){kind="builtin-text";const resolved=resolveValue(node.props?.value,ctx);if(props=typeof resolved.value=="string"||typeof resolved.value=="number"?{value:capResolvedString(String(resolved.value),ctx,"__text-value__",'the "value" of a built-in text node')}:{},resolved.path){if(!authoredId)throw warnOnce(ctx,`__required-id__:${path}`,"rejected bound text without a stable id"),new TypeError("A bound widget node requires a stable id.");bindings=[{prop:"value",path:resolved.path}]}}else{const def=definitionFor(node.type,ctx.registry);if(!def)return warnOnce(ctx,node.type,`skipped unknown widget type "${node.type}" (and its subtree)`),null;kind="mapped",tag=def.tag,interactive=def.interaction==="control";const filtered=filterMappedProps(node.props,def,ctx,node.type);if(props=filtered.props,bindings=filtered.bindings,slots=def.slots??[],node.actionId!==void 0&&def.action&&(actionEvent=def.action.event),(actionEvent||bindings.length>0)&&!authoredId)throw warnOnce(ctx,`__required-id__:${path}`,`rejected stateful or actionable type "${node.type}" without a stable id`),new TypeError("A stateful or actionable widget node requires a stable id.")}const children=[];for(let index=0;index<(node.children?.length??0);index++){const resolvedChild=resolveChild(node.children[index],ctx,`${path}.${index}`);if(resolvedChild){if(interactive&&containsInteractive(resolvedChild)){warnOnce(ctx,`__nested-interactive__:${node.type}`,`skipped a control descendant inside control type "${node.type}"`);continue}resolvedChild.slot!==void 0&&!slots.includes(resolvedChild.slot)&&(resolvedChild.slot=void 0),children.push(resolvedChild)}}return{nodeId:authoredId,nodeKey,nodePath:path,kind,tag,interactive,props,actionEvent,actionId:actionEvent?node.actionId:void 0,payload:actionEvent?node.payload:void 0,bindings,children,slot:node.slot}}function hasDuplicateAuthoredIds(root,ctx){const counts=new Map,pending=[root];for(;pending.length>0;){const node=pending.pop();node.id&&counts.set(node.id,(counts.get(node.id)??0)+1);for(const child of node.children??[])typeof child!="string"&&pending.push(child)}let duplicate=!1;for(const[id,count]of counts)count<2||(duplicate=!0,warnOnce(ctx,`__duplicate-id__:${id}`,`rejected duplicate widget id "${id}"`));return duplicate}function resolveTree(root,ctx){if(root==null)return null;if(!isWidgetTypeRegistry(ctx.registry))throw new TypeError("A widget renderer registry must be created with createWidgetTypeRegistry().");const snapshot=snapshotNode(root,0,{resolve:ctx,ancestors:new Set,remaining:WIDGET_MAX_NODES});return snapshot===INVALID||snapshot===null||hasDuplicateAuthoredIds(snapshot,ctx)?null:resolveNode(snapshot,ctx,"0")}export{WIDGET_MAX_STRING_LENGTH,createWidgetDocument,resolveTree};
@@ -42,7 +42,7 @@ export declare class LyraWidgetRenderer extends LyraElement<LyraWidgetRendererEv
42
42
  * mutate a copy and reassign it to update. `null` renders an empty base. A malformed root or
43
43
  * nested node clears prior content and emits one `lr-render-error`. */
44
44
  document:LyraWidgetDocument|null;
45
- /** Explicit controlled binding state. `null` is a real state value, never an absence sentinel. */
45
+ /** Explicit controlled binding state. `null` is a real state value, never an absence sentinel.*/
46
46
  bindingState?:unknown;
47
47
  /** Immutable type registry owned by this renderer. Assign a snapshot returned by
48
48
  * `createWidgetTypeRegistry()` to override the built-ins without affecting another instance. */
@@ -1,2 +1,2 @@
1
- /** @deprecated Import @aceshooting/lyra-ui/components/lr-widget-renderer.js to register this component. */
1
+ /** @deprecated Import @aceshooting/lyra-ui/components/lr-widget-renderer.js to register this component.*/
2
2
  export{LyraWidgetRenderer}from'./widget-renderer.class.js';export type{LyraWidgetRendererEventMap}from'./widget-renderer.class.js';export{createWidgetDocument}from'./resolve.js';export type{LyraWidgetBinding,LyraWidgetDocument,LyraWidgetNode,}from'./resolve.js';export{createWidgetTypeRegistry,isWidgetTypeRegistry,}from'./registry.js';export type{LyraWidgetInteraction,LyraWidgetPropType,LyraWidgetTypeDefinition,LyraWidgetTypeRegistry,}from'./registry.js';export{DEFAULT_WIDGET_TYPE_REGISTRY}from'./default-registry.js';
@@ -1,5 +1,5 @@
1
1
  import{type PropertyValues,type TemplateResult}from'lit';import{LyraElement}from'../../../internal/lyra-element.js';import type{LyraDatePickerFirstDayOfWeek}from'../../forms/date-picker/date-picker.class.js';export interface CalendarEvent{readonly id?:string;readonly date:string|number|Date;readonly title:string;readonly color?:string;readonly data?:unknown;}export interface LyraCalendarEventMap{'lr-date-select':CustomEvent<{date:string;}>;'lr-event-select':CustomEvent<{event:CalendarEvent;}>;'lr-view-change':CustomEvent<{viewDate:string;}>;}
2
- /** The two display modes `view` accepts. */
2
+ /** The two display modes `view` accepts.*/
3
3
  export type CalendarView='month'|'agenda';
4
4
  /** The shared closed weekday vocabulary `lr-date-picker`/`lr-date-input` already accept
5
5
  * (`'auto'`, then `'sun'` through `'sat'`) -- reusing {@link LyraDatePickerFirstDayOfWeek}
@@ -79,4 +79,6 @@ export declare class LyraCalendar extends LyraElement<LyraCalendarEventMap>{prot
79
79
  * `id`/`data`, or matched by reference in an imperative callback) -- only the sequence itself
80
80
  * is bounded/detached/frozen; the emitted `lr-event-select` detail must carry the exact object
81
81
  * the caller passed in `events`, not a structural clone. */
82
- protected static readonly identityCollectionProperties:readonly string[];static styles:import("lit").CSSResultGroup[];events:readonly CalendarEvent[];value:string;viewDate:string;private _view;get view():CalendarView;set view(value:CalendarView);firstDayOfWeek:LyraCalendarFirstDayOfWeek;accessibleLabel:string;private focusedDate;private get viewStart();private get normalizedFirstDayOfWeek();private changeMonth;private selectDate;private get effectiveEvents();private buckets?;private cachedBuckets;private bucketEventsByDate;private agendaMemo?;private agendaEvents;private weeks;private gridBounds;private onDayKeyDown;private weekdays;private readonly announcements;private initialLimitUpdate;private lastLimitNotice;private inputLimitMessage;protected updated(changed:PropertyValues):void;adoptedCallback():void;render():TemplateResult;}declare global{interface HTMLElementTagNameMap{'lr-calendar':LyraCalendar;}}
82
+ protected static readonly identityCollectionProperties:readonly string[];static styles:import("lit").CSSResultGroup[];
83
+ /** Assign a new array to update: mutating an array and assigning it again does not.*/
84
+ events:readonly CalendarEvent[];value:string;viewDate:string;private _view;get view():CalendarView;set view(value:CalendarView);firstDayOfWeek:LyraCalendarFirstDayOfWeek;accessibleLabel:string;private focusedDate;private get viewStart();private get normalizedFirstDayOfWeek();private changeMonth;private selectDate;private get effectiveEvents();private buckets?;private cachedBuckets;private bucketEventsByDate;private agendaMemo?;private agendaEvents;private weeks;private gridBounds;private onDayKeyDown;private weekdays;private readonly announcements;private initialLimitUpdate;private lastLimitNotice;private inputLimitMessage;protected updated(changed:PropertyValues):void;adoptedCallback():void;render():TemplateResult;}declare global{interface HTMLElementTagNameMap{'lr-calendar':LyraCalendar;}}
@@ -1,2 +1,2 @@
1
- /** @deprecated Import @aceshooting/lyra-ui/components/lr-calendar.js to register this component. */
1
+ /** @deprecated Import @aceshooting/lyra-ui/components/lr-calendar.js to register this component.*/
2
2
  export*from'./calendar.class.js';