@aceshooting/lyra-ui 9.1.1 → 10.0.1

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 (578) hide show
  1. package/CHANGELOG.md +597 -0
  2. package/custom-elements.json +1 -1
  3. package/dist/cli/migrate-wa.mjs +52 -0
  4. package/dist/cli/migration-contract.json +1 -1
  5. package/dist/components/agent-tools/activity-feed/activity-feed.class.js +1 -1
  6. package/dist/components/agent-tools/activity-feed/activity-feed.styles.js +0 -16
  7. package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.class.js +1 -1
  8. package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.styles.js +7 -5
  9. package/dist/components/agent-tools/agent-run/agent-run.class.js +2 -2
  10. package/dist/components/agent-tools/agent-run/agent-run.styles.js +0 -13
  11. package/dist/components/agent-tools/agent-trace/agent-trace.styles.js +7 -4
  12. package/dist/components/agent-tools/approval-queue/approval-queue.styles.js +7 -5
  13. package/dist/components/agent-tools/artifact-panel/artifact-panel.styles.js +0 -3
  14. package/dist/components/agent-tools/browser-frame/browser-frame.styles.js +3 -5
  15. package/dist/components/agent-tools/commit-card/commit-card.styles.js +0 -10
  16. package/dist/components/agent-tools/compare-panel/compare-panel.styles.js +11 -6
  17. package/dist/components/agent-tools/confirm-bar/confirm-bar.styles.js +0 -46
  18. package/dist/components/agent-tools/eval-dataset/eval-dataset.styles.js +0 -7
  19. package/dist/components/agent-tools/evaluation-run/evaluation-run.class.js +2 -2
  20. package/dist/components/agent-tools/prompt-studio/prompt-studio.styles.js +0 -15
  21. package/dist/components/agent-tools/result-card/result-card.styles.js +0 -7
  22. package/dist/components/agent-tools/result-card/result-field.styles.js +0 -5
  23. package/dist/components/agent-tools/schema-viewer/schema-viewer.styles.js +0 -3
  24. package/dist/components/agent-tools/span-waterfall/span-waterfall.styles.js +0 -15
  25. package/dist/components/agent-tools/stack-trace/stack-trace.styles.js +0 -20
  26. package/dist/components/agent-tools/subagent-panel/subagent-panel.class.js +2 -2
  27. package/dist/components/agent-tools/subagent-panel/subagent-panel.styles.js +0 -3
  28. package/dist/components/agent-tools/task-list/task-list.styles.js +0 -15
  29. package/dist/components/agent-tools/terminal/terminal.class.d.ts +11 -6
  30. package/dist/components/agent-tools/terminal/terminal.class.js +4 -4
  31. package/dist/components/agent-tools/terminal/terminal.styles.js +0 -46
  32. package/dist/components/agent-tools/test-results/test-results.class.js +2 -2
  33. package/dist/components/agent-tools/test-results/test-results.styles.js +0 -5
  34. package/dist/components/agent-tools/thinking-panel/thinking-panel.styles.js +0 -41
  35. package/dist/components/agent-tools/tool-approval-dialog/tool-approval-dialog.styles.js +0 -41
  36. package/dist/components/agent-tools/tool-call-chip/tool-call-chip.styles.js +0 -30
  37. package/dist/components/agent-tools/tool-param-form/tool-param-form.class.js +6 -6
  38. package/dist/components/agent-tools/tool-param-form/tool-param-form.styles.js +0 -5
  39. package/dist/components/agent-tools/tool-result-dialog/tool-result-dialog.styles.js +0 -20
  40. package/dist/components/agent-tools/tool-result-view/tool-result-view.styles.js +0 -4
  41. package/dist/components/agent-tools/tool-select-dialog/tool-select-dialog.styles.js +0 -21
  42. package/dist/components/agent-tools/trace-tree/trace-tree.styles.js +7 -31
  43. package/dist/components/charts/chart/box-plot.styles.js +0 -20
  44. package/dist/components/charts/chart/chart-colors.d.ts +1 -1
  45. package/dist/components/charts/chart/chart-colors.js +1 -1
  46. package/dist/components/charts/chart/chart-core-loader.d.ts +1 -0
  47. package/dist/components/charts/chart/chart-core-loader.js +1 -1
  48. package/dist/components/charts/chart/chart-feature-loader.d.ts +35 -0
  49. package/dist/components/charts/chart/chart-feature-loader.js +1 -1
  50. package/dist/components/charts/chart/chart.class.d.ts +93 -0
  51. package/dist/components/charts/chart/chart.class.js +3 -3
  52. package/dist/components/charts/chart/chart.styles.js +0 -27
  53. package/dist/components/charts/chart/lite-chart.class.d.ts +20 -1
  54. package/dist/components/charts/chart/lite-chart.class.js +4 -4
  55. package/dist/components/charts/chart/lite-chart.styles.js +0 -27
  56. package/dist/components/conversation/agent-workspace/agent-workspace.class.d.ts +20 -0
  57. package/dist/components/conversation/agent-workspace/agent-workspace.class.js +3 -1
  58. package/dist/components/conversation/agent-workspace/agent-workspace.styles.js +3 -0
  59. package/dist/components/conversation/audio-visualizer/audio-visualizer.styles.js +0 -7
  60. package/dist/components/conversation/branch-picker/branch-picker.styles.js +0 -3
  61. package/dist/components/conversation/chat-composer/chat-composer.styles.js +0 -51
  62. package/dist/components/conversation/chat-message/chat-message.styles.js +7 -35
  63. package/dist/components/conversation/chat-viewport/chat-viewport.class.js +1 -1
  64. package/dist/components/conversation/chat-viewport/chat-viewport.styles.js +0 -33
  65. package/dist/components/conversation/checkpoint/checkpoint.class.js +1 -1
  66. package/dist/components/conversation/checkpoint/checkpoint.styles.js +0 -3
  67. package/dist/components/conversation/code-block/code-block-shared.d.ts +5 -2
  68. package/dist/components/conversation/code-block/code-block.class.js +1 -1
  69. package/dist/components/conversation/code-block/code-block.styles.js +4 -95
  70. package/dist/components/conversation/code-block/code-loader.d.ts +11 -0
  71. package/dist/components/conversation/code-block/code-loader.js +1 -1
  72. package/dist/components/conversation/code-block/shiki-types.d.ts +12 -0
  73. package/dist/components/conversation/code-block/shiki-types.js +1 -1
  74. package/dist/components/conversation/conversation-item/conversation-item.styles.js +8 -54
  75. package/dist/components/conversation/generation-metrics/generation-metrics.class.js +2 -2
  76. package/dist/components/conversation/generation-metrics/generation-metrics.styles.js +0 -17
  77. package/dist/components/conversation/markdown/markdown-base.class.js +1 -1
  78. package/dist/components/conversation/markdown/markdown.styles.js +0 -41
  79. package/dist/components/conversation/message-actions/message-actions.styles.js +0 -3
  80. package/dist/components/conversation/message-feedback/message-feedback.styles.js +0 -35
  81. package/dist/components/conversation/message-parts/message-parts.class.d.ts +1 -1
  82. package/dist/components/conversation/message-parts/message-parts.styles.js +0 -5
  83. package/dist/components/conversation/model-select/model-select.class.js +3 -3
  84. package/dist/components/conversation/model-select/model-select.styles.js +12 -47
  85. package/dist/components/conversation/model-settings-panel/model-settings-panel.styles.js +0 -6
  86. package/dist/components/conversation/prompt-input/prompt-input.class.d.ts +3 -0
  87. package/dist/components/conversation/prompt-input/prompt-input.styles.js +0 -10
  88. package/dist/components/conversation/push-to-talk/push-to-talk.styles.js +0 -8
  89. package/dist/components/conversation/selection-toolbar/selection-toolbar.styles.js +1 -11
  90. package/dist/components/conversation/stream-status/stream-status.styles.js +0 -16
  91. package/dist/components/conversation/streaming-text/streaming-text.styles.js +0 -15
  92. package/dist/components/conversation/suggestion-chips/suggestion-chips.styles.js +0 -5
  93. package/dist/components/conversation/thread-list/thread-list.styles.js +0 -23
  94. package/dist/components/conversation/transcript-feed/transcript-feed.class.d.ts +16 -4
  95. package/dist/components/conversation/transcript-feed/transcript-feed.class.js +1 -1
  96. package/dist/components/conversation/transcript-feed/transcript-feed.styles.js +0 -1
  97. package/dist/components/conversation/typing-indicator/typing-indicator.styles.js +0 -23
  98. package/dist/components/conversation/usage-badge/usage-badge.styles.js +0 -3
  99. package/dist/components/conversation/voice-picker/voice-picker.class.js +3 -3
  100. package/dist/components/conversation/voice-picker/voice-picker.styles.js +9 -29
  101. package/dist/components/conversation/widget-renderer/resolve.d.ts +2 -0
  102. package/dist/components/conversation/widget-renderer/resolve.js +1 -1
  103. package/dist/components/data/calendar/calendar.class.d.ts +15 -2
  104. package/dist/components/data/calendar/calendar.class.js +2 -2
  105. package/dist/components/data/calendar/calendar.styles.js +2 -28
  106. package/dist/components/data/condition-builder/condition-builder.class.d.ts +10 -6
  107. package/dist/components/data/condition-builder/condition-builder.class.js +2 -2
  108. package/dist/components/data/condition-builder/condition-builder.styles.js +0 -6
  109. package/dist/components/data/context-meter/context-meter.styles.js +0 -24
  110. package/dist/components/data/data-grid/data-grid.class.js +3 -3
  111. package/dist/components/data/data-grid/data-grid.styles.js +0 -22
  112. package/dist/components/data/document-library/document-library.class.js +2 -2
  113. package/dist/components/data/document-library/document-library.styles.js +0 -4
  114. package/dist/components/data/env-list/env-list.class.js +1 -1
  115. package/dist/components/data/env-list/env-list.styles.js +7 -4
  116. package/dist/components/data/file-tree/file-tree.class.d.ts +12 -0
  117. package/dist/components/data/flow-canvas/flow-canvas.styles.js +12 -19
  118. package/dist/components/data/flow-controls/flow-controls.class.js +2 -2
  119. package/dist/components/data/flow-controls/flow-controls.styles.js +3 -36
  120. package/dist/components/data/flow-minimap/flow-minimap.class.js +1 -1
  121. package/dist/components/data/flow-minimap/flow-minimap.styles.js +0 -9
  122. package/dist/components/data/flow-node/flow-node.styles.js +0 -23
  123. package/dist/components/data/flow-run-status/flow-run-status.class.js +1 -1
  124. package/dist/components/data/flow-run-status/flow-run-status.styles.js +0 -7
  125. package/dist/components/data/graph-query-builder/graph-query-builder.class.d.ts +0 -7
  126. package/dist/components/data/graph-query-builder/graph-query-builder.class.js +1 -1
  127. package/dist/components/data/graph-query-builder/graph-query-builder.styles.js +0 -10
  128. package/dist/components/data/heatmap/heatmap-scale.d.ts +20 -0
  129. package/dist/components/data/heatmap/heatmap-scale.js +1 -1
  130. package/dist/components/data/heatmap/heatmap.class.d.ts +84 -1
  131. package/dist/components/data/heatmap/heatmap.class.js +2 -2
  132. package/dist/components/data/heatmap/heatmap.styles.js +0 -54
  133. package/dist/components/data/pagination/pagination.styles.js +23 -46
  134. package/dist/components/data/sequence-strip/sequence-strip.class.d.ts +34 -1
  135. package/dist/components/data/sequence-strip/sequence-strip.class.js +5 -2
  136. package/dist/components/data/sequence-strip/sequence-strip.styles.js +14 -20
  137. package/dist/components/data/sparkline/sparkline.class.js +1 -1
  138. package/dist/components/data/stat/stat.styles.js +0 -67
  139. package/dist/components/data/table/table.class.d.ts +42 -3
  140. package/dist/components/data/table/table.class.js +4 -4
  141. package/dist/components/data/table/table.styles.js +20 -91
  142. package/dist/components/data/timeline/timeline-item.styles.js +0 -30
  143. package/dist/components/data/timeline/timeline.class.d.ts +89 -1
  144. package/dist/components/data/timeline/timeline.class.js +2 -2
  145. package/dist/components/data/timeline/timeline.styles.js +111 -31
  146. package/dist/components/data/tree/tree-item.styles.js +1 -28
  147. package/dist/components/data/tree/tree.class.js +2 -2
  148. package/dist/components/data/tree/tree.styles.js +0 -6
  149. package/dist/components/data/word-cloud/word-cloud.styles.js +0 -5
  150. package/dist/components/forms/button/button.class.js +1 -1
  151. package/dist/components/forms/button/button.styles.js +0 -105
  152. package/dist/components/forms/checkbox/checkbox.class.d.ts +3 -0
  153. package/dist/components/forms/checkbox/checkbox.class.js +1 -1
  154. package/dist/components/forms/checkbox/checkbox.styles.js +0 -39
  155. package/dist/components/forms/checkbox-group/checkbox-group.class.d.ts +21 -2
  156. package/dist/components/forms/checkbox-group/checkbox-group.class.js +1 -1
  157. package/dist/components/forms/checkbox-group/checkbox-group.styles.js +0 -18
  158. package/dist/components/forms/code-editor/code-editor.styles.js +0 -30
  159. package/dist/components/forms/color-picker/color-picker.class.js +2 -2
  160. package/dist/components/forms/color-picker/color-picker.styles.js +0 -69
  161. package/dist/components/forms/combobox/combobox.class.js +2 -2
  162. package/dist/components/forms/combobox/combobox.styles.js +22 -111
  163. package/dist/components/forms/combobox/option.styles.js +7 -1
  164. package/dist/components/forms/date-picker/date-input.class.js +1 -1
  165. package/dist/components/forms/date-picker/date-input.styles.js +12 -67
  166. package/dist/components/forms/date-picker/date-picker.class.d.ts +1 -0
  167. package/dist/components/forms/date-picker/date-picker.class.js +22 -20
  168. package/dist/components/forms/date-picker/date-picker.styles.js +36 -29
  169. package/dist/components/forms/emoji-picker/emoji-data-loader.d.ts +6 -3
  170. package/dist/components/forms/emoji-picker/emoji-data-loader.js +1 -1
  171. package/dist/components/forms/emoji-picker/emoji-picker.class.d.ts +8 -1
  172. package/dist/components/forms/emoji-picker/emoji-picker.class.js +1 -1
  173. package/dist/components/forms/emoji-picker/emoji-picker.styles.js +3 -41
  174. package/dist/components/forms/icon-button/icon-button.class.js +1 -1
  175. package/dist/components/forms/icon-button/icon-button.styles.js +0 -16
  176. package/dist/components/forms/input/input.styles.js +0 -54
  177. package/dist/components/forms/input/number-input.styles.d.ts +4 -5
  178. package/dist/components/forms/input/number-input.styles.js +0 -11
  179. package/dist/components/forms/input/time-input-shared.d.ts +11 -0
  180. package/dist/components/forms/input/time-input-shared.js +1 -1
  181. package/dist/components/forms/input/time-input.class.d.ts +11 -2
  182. package/dist/components/forms/input/time-input.class.js +1 -1
  183. package/dist/components/forms/input/time-input.styles.js +0 -6
  184. package/dist/components/forms/locale-picker/locale-picker.class.js +2 -2
  185. package/dist/components/forms/locale-picker/locale-picker.styles.js +1 -26
  186. package/dist/components/forms/otp-input/otp-input.class.js +3 -3
  187. package/dist/components/forms/otp-input/otp-input.styles.js +0 -16
  188. package/dist/components/forms/phone-input/phone-input.class.d.ts +9 -1
  189. package/dist/components/forms/phone-input/phone-input.class.js +2 -2
  190. package/dist/components/forms/phone-input/phone-input.styles.js +0 -37
  191. package/dist/components/forms/radio/radio-button.styles.js +1 -30
  192. package/dist/components/forms/radio/radio-group.styles.js +0 -4
  193. package/dist/components/forms/radio/radio.styles.js +0 -44
  194. package/dist/components/forms/rubric-form/rubric-form.styles.js +0 -5
  195. package/dist/components/forms/select/select.class.js +1 -1
  196. package/dist/components/forms/select/select.styles.js +14 -114
  197. package/dist/components/forms/slider/slider.styles.js +0 -55
  198. package/dist/components/forms/swatch-picker/swatch-picker.class.d.ts +0 -11
  199. package/dist/components/forms/swatch-picker/swatch-picker.class.js +2 -2
  200. package/dist/components/forms/swatch-picker/swatch-picker.styles.js +0 -77
  201. package/dist/components/forms/switch/switch.class.d.ts +3 -0
  202. package/dist/components/forms/switch/switch.class.js +1 -1
  203. package/dist/components/forms/switch/switch.styles.js +0 -37
  204. package/dist/components/forms/textarea/textarea.styles.js +0 -28
  205. package/dist/components/forms/time-range/time-range.styles.js +12 -84
  206. package/dist/components/forms/token-input/token-input.class.d.ts +23 -9
  207. package/dist/components/forms/token-input/token-input.class.js +1 -1
  208. package/dist/components/forms/token-input/token-input.styles.js +1 -54
  209. package/dist/components/layout/app-rail/app-rail-item.class.js +2 -2
  210. package/dist/components/layout/app-rail/app-rail-item.styles.js +0 -13
  211. package/dist/components/layout/app-rail/app-rail.class.d.ts +5 -0
  212. package/dist/components/layout/app-rail/app-rail.class.js +1 -1
  213. package/dist/components/layout/app-rail/app-rail.styles.js +0 -46
  214. package/dist/components/layout/button-group/button-group.styles.js +0 -6
  215. package/dist/components/layout/card/card.class.d.ts +12 -0
  216. package/dist/components/layout/card/card.styles.js +3 -11
  217. package/dist/components/layout/carousel/carousel.styles.js +0 -1
  218. package/dist/components/layout/command-palette/command-palette.class.d.ts +8 -0
  219. package/dist/components/layout/command-palette/command-palette.class.js +3 -1
  220. package/dist/components/layout/command-palette/command-palette.styles.js +1 -13
  221. package/dist/components/layout/control-group/control-group.styles.js +0 -7
  222. package/dist/components/layout/dashboard-grid/dashboard-grid.styles.js +6 -25
  223. package/dist/components/layout/details/accordion.class.d.ts +13 -0
  224. package/dist/components/layout/details/accordion.class.js +1 -1
  225. package/dist/components/layout/details/details.class.js +1 -1
  226. package/dist/components/layout/details/details.styles.js +0 -12
  227. package/dist/components/layout/dock-panel/dock-panel.styles.js +0 -45
  228. package/dist/components/layout/drilldown-panel/drilldown-panel.class.d.ts +2 -0
  229. package/dist/components/layout/drilldown-panel/drilldown-panel.class.js +2 -2
  230. package/dist/components/layout/drilldown-panel/drilldown-panel.styles.js +0 -4
  231. package/dist/components/layout/filter-bar/filter-bar.class.js +1 -1
  232. package/dist/components/layout/filter-bar/filter-bar.styles.js +0 -9
  233. package/dist/components/layout/menu/menu-item.class.d.ts +5 -0
  234. package/dist/components/layout/menu/menu-item.class.js +1 -1
  235. package/dist/components/layout/menu/menu-item.styles.js +0 -49
  236. package/dist/components/layout/menu/menu-label.styles.js +0 -2
  237. package/dist/components/layout/menu/menu.styles.js +0 -18
  238. package/dist/components/layout/multi-split/multi-split.styles.js +0 -63
  239. package/dist/components/layout/page/page.class.d.ts +4 -0
  240. package/dist/components/layout/page/page.class.js +1 -1
  241. package/dist/components/layout/reorder-list/reorder-item.styles.js +0 -4
  242. package/dist/components/layout/responsive-panel/responsive-panel.styles.js +0 -27
  243. package/dist/components/layout/scroller/scroller.styles.js +0 -20
  244. package/dist/components/layout/segmented/segmented.class.d.ts +7 -1
  245. package/dist/components/layout/segmented/segmented.class.js +1 -1
  246. package/dist/components/layout/segmented/segmented.styles.js +69 -37
  247. package/dist/components/layout/split-panel/split-panel.styles.js +1 -7
  248. package/dist/components/layout/stepper/stepper.class.d.ts +8 -1
  249. package/dist/components/layout/stepper/stepper.class.js +1 -1
  250. package/dist/components/layout/stepper/stepper.styles.js +140 -41
  251. package/dist/components/layout/tab-group/tab-group.class.d.ts +4 -1
  252. package/dist/components/layout/tab-group/tab-group.styles.js +9 -75
  253. package/dist/components/layout/tab-group/tab.styles.js +0 -2
  254. package/dist/components/layout/virtual-list/virtual-list.class.d.ts +4 -4
  255. package/dist/components/layout/virtual-list/virtual-list.class.js +1 -1
  256. package/dist/components/layout/virtual-list/virtual-list.styles.js +0 -68
  257. package/dist/components/layout/widget/widget.class.d.ts +5 -1
  258. package/dist/components/layout/widget/widget.class.js +1 -1
  259. package/dist/components/layout/widget/widget.styles.js +97 -40
  260. package/dist/components/media/animated-image/animated-image.class.d.ts +3 -0
  261. package/dist/components/media/animated-image/animated-image.class.js +1 -1
  262. package/dist/components/media/animated-image/animated-image.styles.js +0 -28
  263. package/dist/components/media/attachment-chip/attachment-chip.class.d.ts +1 -1
  264. package/dist/components/media/attachment-chip/attachment-chip.class.js +1 -1
  265. package/dist/components/media/attachment-chip/attachment-chip.styles.js +0 -31
  266. package/dist/components/media/attachment-trigger/attachment-trigger.class.js +3 -3
  267. package/dist/components/media/attachment-trigger/attachment-trigger.styles.js +0 -40
  268. package/dist/components/media/av-player/av-player.class.d.ts +5 -6
  269. package/dist/components/media/av-player/av-player.class.js +1 -1
  270. package/dist/components/media/av-player/av-player.styles.js +0 -45
  271. package/dist/components/media/avatar/avatar.styles.js +3 -16
  272. package/dist/components/media/file-icon/file-icon.class.d.ts +1 -2
  273. package/dist/components/media/file-icon/file-icon.class.js +1 -1
  274. package/dist/components/media/file-input/file-input.class.d.ts +12 -0
  275. package/dist/components/media/file-input/file-input.styles.js +3 -24
  276. package/dist/components/media/flag/flag.class.d.ts +20 -0
  277. package/dist/components/media/flag/flag.class.js +4 -2
  278. package/dist/components/media/flag/flag.styles.js +7 -1
  279. package/dist/components/media/flag/language-map.d.ts +10 -0
  280. package/dist/components/media/flag/language-map.js +1 -1
  281. package/dist/components/media/image-comparer/image-comparer.styles.js +4 -33
  282. package/dist/components/media/image-viewer/image-viewer.class.js +0 -2
  283. package/dist/components/media/image-viewer/image-viewer.styles.js +7 -27
  284. package/dist/components/media/lightbox/lightbox.class.js +0 -2
  285. package/dist/components/media/lightbox/lightbox.styles.js +0 -21
  286. package/dist/components/media/map/map-loader.d.ts +19 -1
  287. package/dist/components/media/map/map-loader.js +1 -1
  288. package/dist/components/media/map/map.class.d.ts +141 -1
  289. package/dist/components/media/map/map.class.js +15 -3
  290. package/dist/components/media/map/map.styles.js +20 -17
  291. package/dist/components/media/media-card/media-card.class.d.ts +14 -3
  292. package/dist/components/media/media-card/media-card.class.js +1 -1
  293. package/dist/components/media/media-card/media-card.styles.js +2 -28
  294. package/dist/components/media/pan-zoom/pan-zoom.styles.js +0 -3
  295. package/dist/components/media/qr-code/qr-code.class.d.ts +3 -2
  296. package/dist/components/media/qr-code/qr-code.class.js +2 -2
  297. package/dist/components/media/qr-code/qr-code.styles.js +0 -3
  298. package/dist/components/media/sequence-playback/sequence-playback.class.d.ts +2 -0
  299. package/dist/components/media/sequence-playback/sequence-playback.class.js +2 -1
  300. package/dist/components/media/sequence-playback/sequence-playback.styles.js +0 -19
  301. package/dist/components/media/video/video.class.d.ts +23 -2
  302. package/dist/components/media/video/video.class.js +3 -3
  303. package/dist/components/media/video/video.styles.js +4 -2
  304. package/dist/components/media/zoomable-frame/zoomable-frame.class.d.ts +3 -2
  305. package/dist/components/media/zoomable-frame/zoomable-frame.class.js +2 -2
  306. package/dist/components/media/zoomable-frame/zoomable-frame.styles.js +0 -5
  307. package/dist/components/overlays/alert/alert.styles.js +4 -2
  308. package/dist/components/overlays/badge/badge.styles.js +4 -48
  309. package/dist/components/overlays/badge/tag.styles.js +0 -14
  310. package/dist/components/overlays/callout/callout.styles.js +0 -11
  311. package/dist/components/overlays/chip/chip-group.styles.js +0 -18
  312. package/dist/components/overlays/chip/chip.styles.js +6 -69
  313. package/dist/components/overlays/dialog/confirm.d.ts +1 -4
  314. package/dist/components/overlays/dialog/confirm.js +1 -1
  315. package/dist/components/overlays/dialog/dialog.class.d.ts +12 -9
  316. package/dist/components/overlays/dialog/dialog.class.js +1 -1
  317. package/dist/components/overlays/dialog/dialog.styles.js +0 -43
  318. package/dist/components/overlays/drawer/drawer.class.d.ts +2 -2
  319. package/dist/components/overlays/drawer/drawer.styles.js +0 -9
  320. package/dist/components/overlays/empty/empty.styles.js +0 -12
  321. package/dist/components/overlays/kbd/kbd.styles.js +0 -8
  322. package/dist/components/overlays/overlay/dropdown.class.d.ts +1 -6
  323. package/dist/components/overlays/overlay/dropdown.class.js +2 -2
  324. package/dist/components/overlays/overlay/overlay.styles.js +0 -28
  325. package/dist/components/overlays/overlay/popover.class.d.ts +9 -1
  326. package/dist/components/overlays/overlay/popover.class.js +2 -2
  327. package/dist/components/overlays/overlay/tooltip.class.d.ts +10 -0
  328. package/dist/components/overlays/overlay/tooltip.class.js +1 -1
  329. package/dist/components/overlays/popup/popup.class.d.ts +1 -0
  330. package/dist/components/overlays/popup/popup.class.js +1 -1
  331. package/dist/components/overlays/popup/popup.styles.js +0 -15
  332. package/dist/components/overlays/progress/progress-ring.class.d.ts +9 -1
  333. package/dist/components/overlays/progress/progress-ring.class.js +3 -3
  334. package/dist/components/overlays/progress/progress.styles.js +0 -21
  335. package/dist/components/overlays/rating/rating.styles.js +0 -25
  336. package/dist/components/overlays/skeleton/skeleton.styles.js +0 -4
  337. package/dist/components/overlays/spinner/spinner.styles.js +0 -3
  338. package/dist/components/overlays/toast/toast-item.styles.js +3 -45
  339. package/dist/components/retrieval/chunk-inspector/chunk-inspector.styles.js +0 -35
  340. package/dist/components/retrieval/citation-badge/citation-badge.class.d.ts +2 -2
  341. package/dist/components/retrieval/citation-badge/citation-badge.class.js +3 -3
  342. package/dist/components/retrieval/citation-badge/citation-badge.styles.js +0 -20
  343. package/dist/components/retrieval/claim-evidence/claim-evidence.styles.js +0 -8
  344. package/dist/components/retrieval/community-card/community-card.class.d.ts +1 -0
  345. package/dist/components/retrieval/community-card/community-card.styles.js +0 -6
  346. package/dist/components/retrieval/embedding-explorer/embedding-explorer.styles.js +8 -12
  347. package/dist/components/retrieval/entity-card/entity-card.class.d.ts +4 -3
  348. package/dist/components/retrieval/entity-card/entity-card.class.js +1 -1
  349. package/dist/components/retrieval/entity-card/entity-card.styles.js +0 -12
  350. package/dist/components/retrieval/entity-chip/entity-chip.class.d.ts +10 -4
  351. package/dist/components/retrieval/entity-chip/entity-chip.class.js +3 -3
  352. package/dist/components/retrieval/entity-chip/entity-chip.styles.js +6 -9
  353. package/dist/components/retrieval/entity-dossier/entity-dossier.class.d.ts +19 -5
  354. package/dist/components/retrieval/graph/graph.class.d.ts +5 -0
  355. package/dist/components/retrieval/graph/graph.class.js +1 -1
  356. package/dist/components/retrieval/graph/graph.styles.js +0 -30
  357. package/dist/components/retrieval/graph-legend/graph-legend.styles.js +0 -3
  358. package/dist/components/retrieval/ingestion-queue/ingestion-queue.styles.js +0 -25
  359. package/dist/components/retrieval/knowledge-base-admin/knowledge-base-admin.class.d.ts +2 -0
  360. package/dist/components/retrieval/knowledge-base-admin/knowledge-base-admin.styles.js +0 -7
  361. package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.d.ts +20 -6
  362. package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.js +2 -2
  363. package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.styles.js +0 -16
  364. package/dist/components/retrieval/mind-map/mind-map.class.d.ts +5 -3
  365. package/dist/components/retrieval/mind-map/mind-map.class.js +1 -1
  366. package/dist/components/retrieval/mind-map/mind-map.styles.js +0 -2
  367. package/dist/components/retrieval/neighbor-list/neighbor-list.class.d.ts +3 -2
  368. package/dist/components/retrieval/neighbor-list/neighbor-list.class.js +1 -1
  369. package/dist/components/retrieval/neighbor-list/neighbor-list.styles.js +0 -30
  370. package/dist/components/retrieval/node-palette/node-palette.styles.js +0 -11
  371. package/dist/components/retrieval/path-strip/path-strip.styles.js +0 -10
  372. package/dist/components/retrieval/provenance-panel/provenance-panel.class.d.ts +12 -3
  373. package/dist/components/retrieval/provenance-panel/provenance-panel.styles.js +0 -2
  374. package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.class.d.ts +3 -2
  375. package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.class.js +2 -2
  376. package/dist/components/retrieval/retrieval-results/retrieval-results.styles.js +0 -28
  377. package/dist/components/retrieval/retrieval-search/retrieval-search.styles.js +0 -4
  378. package/dist/components/retrieval/retrieval-trace/retrieval-trace.styles.js +0 -2
  379. package/dist/components/retrieval/source-card/source-card.styles.js +0 -13
  380. package/dist/components/retrieval/source-list/source-list.styles.js +0 -7
  381. package/dist/components/retrieval/source-picker/source-picker.styles.js +0 -7
  382. package/dist/components/utility/copy-button/copy-button.styles.js +0 -10
  383. package/dist/components/utility/diff-view/diff-view.styles.js +0 -14
  384. package/dist/components/utility/export-button/export-button.styles.js +0 -22
  385. package/dist/components/utility/icon/icon.styles.js +0 -6
  386. package/dist/components/utility/json-viewer/json-viewer.styles.js +2 -48
  387. package/dist/components/utility/known-date/known-date.class.d.ts +7 -3
  388. package/dist/components/utility/known-date/known-date.styles.js +10 -51
  389. package/dist/components/utility/live-region/live-region.styles.js +0 -4
  390. package/dist/components/utility/mention-popover/mention-popover.styles.js +0 -25
  391. package/dist/components/utility/poll-status/poll-status.styles.js +0 -4
  392. package/dist/components/utility/random-content/random-content.class.d.ts +22 -0
  393. package/dist/components/utility/random-content/random-content.class.js +3 -2
  394. package/dist/components/utility/random-content/random-content.styles.js +6 -13
  395. package/dist/components/utility/tour/tour.class.d.ts +4 -2
  396. package/dist/components/utility/tour/tour.class.js +3 -3
  397. package/dist/components/utility/tour/tour.styles.js +0 -13
  398. package/dist/components/utility/visually-hidden/visually-hidden.styles.js +0 -5
  399. package/dist/components/viewers/archive-viewer/archive-viewer.class.js +1 -1
  400. package/dist/components/viewers/archive-viewer/archive-viewer.styles.d.ts +2 -2
  401. package/dist/components/viewers/archive-viewer/archive-viewer.styles.js +0 -10
  402. package/dist/components/viewers/csv-viewer/csv-viewer.class.js +1 -1
  403. package/dist/components/viewers/csv-viewer/csv-viewer.styles.js +0 -19
  404. package/dist/components/viewers/dataset-viewer/dataset-viewer.class.js +1 -1
  405. package/dist/components/viewers/dataset-viewer/dataset-viewer.styles.js +0 -15
  406. package/dist/components/viewers/document-compare/document-compare.styles.js +0 -3
  407. package/dist/components/viewers/document-preview/document-preview.styles.js +0 -25
  408. package/dist/components/viewers/document-viewer/document-viewer.class.d.ts +2 -1
  409. package/dist/components/viewers/document-viewer/document-viewer.class.js +1 -1
  410. package/dist/components/viewers/document-viewer/document-viewer.styles.js +0 -5
  411. package/dist/components/viewers/docx-viewer/docx-viewer.styles.js +0 -17
  412. package/dist/components/viewers/ebook-viewer/ebook-viewer.styles.js +0 -4
  413. package/dist/components/viewers/email-viewer/email-viewer.styles.js +0 -7
  414. package/dist/components/viewers/geojson-view/geojson-view.styles.js +0 -5
  415. package/dist/components/viewers/highlight-layer/highlight-layer.styles.js +0 -3
  416. package/dist/components/viewers/notebook-viewer/notebook-viewer.class.js +1 -1
  417. package/dist/components/viewers/notebook-viewer/notebook-viewer.styles.js +0 -38
  418. package/dist/components/viewers/page-rail/page-rail.class.js +1 -1
  419. package/dist/components/viewers/page-rail/page-rail.styles.js +0 -13
  420. package/dist/components/viewers/pdf-viewer/pdf-loader.d.ts +13 -2
  421. package/dist/components/viewers/pdf-viewer/pdf-loader.js +1 -1
  422. package/dist/components/viewers/pdf-viewer/pdf-viewer.class.d.ts +32 -2
  423. package/dist/components/viewers/pdf-viewer/pdf-viewer.class.js +4 -4
  424. package/dist/components/viewers/pdf-viewer/pdf-viewer.styles.js +1 -27
  425. package/dist/components/viewers/pptx-viewer/pptx-viewer.styles.js +0 -3
  426. package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer.class.js +1 -1
  427. package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer.styles.js +0 -14
  428. package/dist/components/viewers/svg-viewer/svg-viewer.styles.js +0 -7
  429. package/dist/components/viewers/xml-viewer/xml-viewer.styles.js +2 -24
  430. package/dist/custom-elements-jsx.d.ts +56 -37
  431. package/dist/events.d.ts +43 -33
  432. package/dist/internal/agent-status-variants.d.ts +18 -0
  433. package/dist/internal/agent-status-variants.js +1 -0
  434. package/dist/internal/announcer.d.ts +8 -3
  435. package/dist/internal/announcer.js +1 -1
  436. package/dist/internal/autoloader-manifest.js +1 -1
  437. package/dist/internal/canvas-color.d.ts +16 -0
  438. package/dist/internal/canvas-color.js +1 -1
  439. package/dist/internal/catalog-picker.d.ts +0 -1
  440. package/dist/internal/catalog-picker.js +1 -1
  441. package/dist/internal/default-strings.generated.d.ts +1 -0
  442. package/dist/internal/default-strings.generated.js +1 -1
  443. package/dist/internal/dev-mode-attribute-warning.d.ts +27 -4
  444. package/dist/internal/dev-mode-attribute-warning.js +1 -1
  445. package/dist/internal/localization-runtime.js +1 -1
  446. package/dist/internal/localization-types.d.ts +1 -1
  447. package/dist/internal/localization.js +1 -1
  448. package/dist/internal/lyra-element.d.ts +13 -0
  449. package/dist/internal/lyra-element.js +1 -1
  450. package/dist/internal/media-controller.js +1 -1
  451. package/dist/internal/package-metadata.d.ts +1 -1
  452. package/dist/internal/package-metadata.js +1 -1
  453. package/dist/internal/scroll-overflow.d.ts +35 -13
  454. package/dist/internal/scroll-overflow.js +1 -1
  455. package/dist/internal/sizes.styles.js +0 -2
  456. package/dist/internal/specialist-tokens.styles.js +6 -11
  457. package/dist/internal/text-highlights.d.ts +4 -1
  458. package/dist/internal/text-highlights.js +1 -1
  459. package/dist/internal/tokens/palette.styles.js +0 -15
  460. package/dist/internal/tokens.styles.js +19 -113
  461. package/dist/lyra.d.ts +8 -5
  462. package/dist/styles/reservations.css +82 -0
  463. package/dist/svelte.d.ts +56 -37
  464. package/dist/translations/ar.js +1 -1
  465. package/dist/translations/de.js +1 -1
  466. package/dist/translations/es.js +1 -1
  467. package/dist/translations/fa.js +1 -1
  468. package/dist/translations/fr.js +1 -1
  469. package/dist/translations/he.js +1 -1
  470. package/dist/translations/ja.js +1 -1
  471. package/dist/translations/pt-BR.js +1 -1
  472. package/dist/translations/ru.js +1 -1
  473. package/dist/translations/zh-CN.js +1 -1
  474. package/dist/vue.d.ts +56 -37
  475. package/llms/components/lr-accordion-item.md +12 -3
  476. package/llms/components/lr-accordion.md +11 -2
  477. package/llms/components/lr-agent-eval-dashboard.md +1 -1
  478. package/llms/components/lr-agent-trace.md +3 -1
  479. package/llms/components/lr-agent-workspace.md +20 -0
  480. package/llms/components/lr-artifact-panel.md +10 -4
  481. package/llms/components/lr-attachment-chip.md +7 -4
  482. package/llms/components/lr-attachment-trigger.md +7 -4
  483. package/llms/components/lr-av-player.md +3 -1
  484. package/llms/components/lr-avatar.md +6 -6
  485. package/llms/components/lr-bar-chart.md +4 -3
  486. package/llms/components/lr-box-plot.md +1 -1
  487. package/llms/components/lr-browser-frame.md +7 -3
  488. package/llms/components/lr-bubble-chart.md +4 -3
  489. package/llms/components/lr-calendar.md +9 -2
  490. package/llms/components/lr-card.md +24 -0
  491. package/llms/components/lr-chart.md +32 -8
  492. package/llms/components/lr-chat-viewport.md +7 -2
  493. package/llms/components/lr-checkbox-group.md +13 -5
  494. package/llms/components/lr-checkbox.md +5 -2
  495. package/llms/components/lr-checkpoint.md +6 -2
  496. package/llms/components/lr-combobox.md +5 -2
  497. package/llms/components/lr-command-palette.md +4 -1
  498. package/llms/components/lr-confirm-bar.md +7 -3
  499. package/llms/components/lr-context-meter.md +12 -11
  500. package/llms/components/lr-conversation-item.md +7 -4
  501. package/llms/components/lr-details.md +11 -2
  502. package/llms/components/lr-dialog.md +15 -10
  503. package/llms/components/lr-dock-panel.md +7 -10
  504. package/llms/components/lr-document-preview.md +6 -1
  505. package/llms/components/lr-document-viewer.md +3 -2
  506. package/llms/components/lr-doughnut-chart.md +4 -3
  507. package/llms/components/lr-drawer.md +3 -3
  508. package/llms/components/lr-entity-card.md +3 -3
  509. package/llms/components/lr-entity-chip.md +1 -1
  510. package/llms/components/lr-entity-dossier.md +4 -1
  511. package/llms/components/lr-file-input.md +2 -2
  512. package/llms/components/lr-flag.md +20 -5
  513. package/llms/components/lr-heatmap.md +28 -0
  514. package/llms/components/lr-histogram.md +3 -1
  515. package/llms/components/lr-icon.md +1 -1
  516. package/llms/components/lr-json-schema-viewer.md +2 -1
  517. package/llms/components/lr-knowledge-graph-explorer.md +8 -3
  518. package/llms/components/lr-known-date.md +4 -2
  519. package/llms/components/lr-line-chart.md +4 -3
  520. package/llms/components/lr-lite-chart.md +16 -6
  521. package/llms/components/lr-map.md +72 -8
  522. package/llms/components/lr-markdown-core.md +3 -2
  523. package/llms/components/lr-media-card.md +28 -12
  524. package/llms/components/lr-message-parts.md +2 -1
  525. package/llms/components/lr-model-select.md +9 -10
  526. package/llms/components/lr-model-settings-panel.md +9 -9
  527. package/llms/components/lr-neighbor-list.md +1 -1
  528. package/llms/components/lr-notebook-viewer.md +6 -3
  529. package/llms/components/lr-option.md +5 -2
  530. package/llms/components/lr-pdf-viewer.md +62 -2
  531. package/llms/components/lr-pie-chart.md +4 -3
  532. package/llms/components/lr-polar-area-chart.md +4 -3
  533. package/llms/components/lr-popover.md +5 -0
  534. package/llms/components/lr-progress-ring.md +8 -1
  535. package/llms/components/lr-prompt-studio.md +1 -1
  536. package/llms/components/lr-provenance-panel.md +4 -2
  537. package/llms/components/lr-qr-code.md +1 -1
  538. package/llms/components/lr-radar-chart.md +4 -3
  539. package/llms/components/lr-rag-eval-dashboard.md +2 -2
  540. package/llms/components/lr-random-content.md +13 -0
  541. package/llms/components/lr-reorder-item.md +6 -1
  542. package/llms/components/lr-reorder-list.md +6 -1
  543. package/llms/components/lr-responsive-panel.md +11 -7
  544. package/llms/components/lr-scatter-chart.md +4 -3
  545. package/llms/components/lr-sequence-strip.md +16 -2
  546. package/llms/components/lr-slider.md +12 -5
  547. package/llms/components/lr-sparkline.md +1 -1
  548. package/llms/components/lr-suggestion-chips.md +7 -2
  549. package/llms/components/lr-swatch-picker.md +5 -5
  550. package/llms/components/lr-switch.md +5 -2
  551. package/llms/components/lr-table.md +30 -4
  552. package/llms/components/lr-terminal.md +3 -1
  553. package/llms/components/lr-thread-list.md +8 -8
  554. package/llms/components/lr-time-input.md +6 -1
  555. package/llms/components/lr-timeline-item.md +24 -0
  556. package/llms/components/lr-timeline.md +25 -1
  557. package/llms/components/lr-token-input.md +7 -2
  558. package/llms/components/lr-tool-approval-dialog.md +7 -8
  559. package/llms/components/lr-tool-call-chip.md +5 -1
  560. package/llms/components/lr-tool-param-form.md +14 -12
  561. package/llms/components/lr-tool-result-dialog.md +11 -9
  562. package/llms/components/lr-tool-result-view.md +7 -6
  563. package/llms/components/lr-tool-select-dialog.md +18 -16
  564. package/llms/components/lr-trace-tree.md +3 -1
  565. package/llms/components/lr-usage-badge.md +4 -1
  566. package/llms/components/lr-video-playlist.md +1 -1
  567. package/llms/components/lr-virtual-list.md +22 -14
  568. package/llms/components/lr-voice-picker.md +8 -5
  569. package/llms/components/lr-widget-renderer.md +3 -3
  570. package/llms/components/lr-widget.md +1 -1
  571. package/llms/components/lr-word-cloud.md +6 -2
  572. package/llms/peers.md +12 -2
  573. package/llms/shared.md +70 -2
  574. package/llms-full.txt +1143 -285
  575. package/package.json +17 -5
  576. package/vscode-css-data.json +37 -2
  577. package/vscode-html-data.json +401 -44
  578. package/web-types.json +299 -55
@@ -1,16 +1,6 @@
1
1
  import{css}from"lit";const styles=css`
2
2
  :host {
3
- /* Backdrop scrim color -- component-specific so a host can retheme it
4
- without a raw literal leaking into the public API (no shared
5
- --lr-*-overlay token exists in the design system to resolve through,
6
- same rationale as lr-dialog's --lr-dialog-overlay-color and
7
- lr-tool-select-dialog's --lr-tool-select-dialog-overlay-color). */
8
3
  --_lr-tool-approval-dialog-overlay-color: var(--lr-color-overlay);
9
- /* Contained here (rather than a bare font-family literal on the
10
- textarea) so a host page can retheme it -- same rationale as
11
- lr-json-viewer's --lr-json-viewer-font; raw args are code, not
12
- prose, so the editor gets the same monospace treatment as that
13
- viewer's own tree rendering. */
14
4
  --_lr-tool-approval-dialog-mono-font: var(--lr-font-mono);
15
5
  display: none;
16
6
  position: fixed;
@@ -43,13 +33,9 @@ import{css}from"lit";const styles=css`
43
33
  flex-direction: column;
44
34
  inline-size: min(var(--lr-size-32rem), 100%);
45
35
  max-block-size: min(var(--lr-size-36rem), 100%);
46
- /* Modal-panel surface, not the page surface -- in dark mode the two resolve to the same
47
- near-black and the dialog reads as a scrim with floating text instead of a panel. */
48
36
  background: var(--lr-color-surface-overlay);
49
37
  border: var(--lr-border-width-thin) solid var(--lr-color-border);
50
38
  border-radius: var(--lr-radius);
51
- /* Modal layer, top step: a centered, scrimmed dialog floating free on all four edges --
52
- the same role as lr-dialog, so the same elevation. */
53
39
  box-shadow: var(--lr-shadow-xl);
54
40
  overflow: hidden;
55
41
  }
@@ -81,11 +67,6 @@ import{css}from"lit";const styles=css`
81
67
  overflow: auto;
82
68
  }
83
69
  [part="args-view"] {
84
- /* lr-json-viewer grows with its content by default (its own
85
- max-height is 'none'); this component's [part='body'] is what caps
86
- and scrolls it instead, so it stays consistent with the plain
87
- [part='args-editor'] textarea below, which has no scroll cap of its
88
- own either. */
89
70
  flex: 1 1 auto;
90
71
  min-block-size: 0;
91
72
  }
@@ -110,16 +91,6 @@ import{css}from"lit";const styles=css`
110
91
  outline: var(--lr-focus-ring-width) solid var(--lr-focus-ring-color);
111
92
  outline-offset: var(--lr-focus-ring-offset);
112
93
  }
113
- /* Gives mouse users the same 'this is interactive' cue the :focus-visible ring above already
114
- gives keyboard users -- mirrors lr-textarea's [part='textarea']:hover pattern, gated via
115
- :host(:not([pending])) rather than :not(:disabled) since this raw <textarea> is not a
116
- form-associated control and carries no disabled state of its own; a decision in flight
117
- (pending reflected) freezes it to readonly instead, so hover shouldn't relight it. */
118
- /* no-pressed-state: pressing inside a text surface places a caret, it does not actuate anything.
119
- The mousedown that would match :active is the same gesture that focuses the field, so a pressed
120
- treatment would render for one frame between the hover border and the focus ring and read as a
121
- flicker; focus is this control's real "you are acting on me" state (mirrors lr-textarea's
122
- identical reasoning for its own [part='textarea']). */
123
94
  :host(:not([pending])) [part="args-editor"]:not([aria-invalid="true"]):hover {
124
95
  border-color: var(
125
96
  --lr-tool-approval-dialog-hover-border-color,
@@ -151,17 +122,9 @@ import{css}from"lit";const styles=css`
151
122
  border-block-start: var(--lr-border-width-thin) solid var(--lr-color-border);
152
123
  }
153
124
  [part="footer"] ::slotted(*) {
154
- /* Any consumer-supplied footer content sits ahead of the built-in
155
- buttons and soaks up the row's remaining space, so it reads as
156
- start-aligned while Deny/Edit/Approve stay pinned to the end (the
157
- row itself is justify-content: flex-end for the empty-slot case). */
158
125
  margin-inline-end: auto;
159
126
  }
160
127
 
161
- /* deny-button/approve-button are <lr-button> hosts (see tool-approval-dialog.class.ts's
162
- render()); their own padding/border/background/color/hover/focus-visible/disabled chrome now
163
- lives entirely inside lr-button's own styles.ts. edit-button alone stays a raw <button> and
164
- keeps its own rules below. */
165
128
  [part="edit-button"] {
166
129
  font: inherit;
167
130
  font-size: var(--lr-font-size-md-sm);
@@ -175,10 +138,6 @@ import{css}from"lit";const styles=css`
175
138
  :where([part="edit-button"]):not(:disabled):hover {
176
139
  background: var(--lr-color-brand-quiet);
177
140
  }
178
- /* Pressed is the hovered tint pushed a further --lr-color-mix-active toward
179
- --lr-color-mix-partner (which follows the text colour), so it reads as a distinctly deeper step
180
- than hover in both light and dark themes rather than repeating it. The lr-button-hosted
181
- Deny/Approve siblings get the equivalent step from lr-button's own styles. */
182
141
  :where([part="edit-button"]):not(:disabled):active {
183
142
  background: color-mix(
184
143
  in oklab,
@@ -2,10 +2,6 @@ import{css}from"lit";const styles=css`
2
2
  :host {
3
3
  display: inline-flex;
4
4
  max-inline-size: 100%;
5
- /* Per-status accent -- one custom property swapped by the :host([status])
6
- rules below rather than repeating background/color per part per status.
7
- Defaults to the 'pending' tone so an unset/unknown status still reads
8
- as neutral instead of unstyled. */
9
5
  --_lr-tool-call-chip-accent: var(--lr-color-text-quiet);
10
6
  --_lr-tool-call-chip-bg: var(--lr-color-surface);
11
7
  --_lr-tool-call-chip-border: var(--lr-color-border);
@@ -27,10 +23,6 @@ import{css}from"lit";const styles=css`
27
23
  --_lr-tool-call-chip-bg: var(--lr-color-danger-quiet);
28
24
  --_lr-tool-call-chip-border: transparent;
29
25
  }
30
- /* 'denied' reads as a policy rejection, not a runtime failure -- the
31
- warning (not danger) tint keeps it visually distinct from 'error',
32
- matching lr-tool-result-dialog's identical status vocabulary/tone so
33
- the two components agree on what "denied" looks like. */
34
26
  :host([status="denied"]) {
35
27
  --_lr-tool-call-chip-accent: var(--lr-color-warning);
36
28
  --_lr-tool-call-chip-bg: var(--lr-color-warning-quiet);
@@ -62,10 +54,6 @@ import{css}from"lit";const styles=css`
62
54
  [part="base"]:hover {
63
55
  border-color: var(--lr-color-brand);
64
56
  }
65
- /* The hover moves the border only, which leaves the pressed step nothing to deepen -- so pressed
66
- tints the chip's own fill toward --lr-color-mix-partner (which follows the text colour). The
67
- fill is already a custom property, so this one declaration covers all five status tints without
68
- restating any of them, and darkens in a light theme while lightening in a dark one. */
69
57
  [part="base"]:active {
70
58
  background: color-mix(
71
59
  in oklab,
@@ -88,16 +76,10 @@ import{css}from"lit";const styles=css`
88
76
  [part="icon"] svg {
89
77
  display: block;
90
78
  }
91
- /* A three-quarter arc (not a full ring) is what actually reads as
92
- spinning once rotated -- a full circle looks identical at every
93
- rotation frame. */
94
79
  :host([status="running"]) [part="icon"] svg {
95
80
  animation: lr-tool-call-chip-spin
96
81
  var(--lr-tool-call-chip-spin, var(--_lr-tool-call-chip-spin)) infinite;
97
82
  }
98
- /* Subtler than the spin -- a slow opacity breathe, so a list of several
99
- still-queued chips doesn't compete visually with any 'running' ones
100
- next to it. */
101
83
  :host([status="pending"]) [part="icon"] svg {
102
84
  animation: lr-tool-call-chip-pulse var(--lr-transition-ambient) infinite;
103
85
  }
@@ -116,11 +98,6 @@ import{css}from"lit";const styles=css`
116
98
  overflow: hidden;
117
99
  text-overflow: ellipsis;
118
100
  white-space: nowrap;
119
- /* Full-strength text, not --lr-color-text-quiet -- this sits on top of
120
- the per-status *-quiet tint backgrounds above (e.g. success-quiet),
121
- and text-quiet's gray fails WCAG AA contrast against several of those
122
- tints even though it comfortably passes against the plain surface
123
- background used by the resting/denied states. */
124
101
  color: var(--lr-color-text);
125
102
  font-size: var(--lr-size-0-6875rem);
126
103
  font-weight: var(--lr-font-weight-semibold);
@@ -145,7 +122,6 @@ import{css}from"lit";const styles=css`
145
122
  overflow: hidden;
146
123
  text-overflow: ellipsis;
147
124
  white-space: nowrap;
148
- /* See [part='category']'s comment above -- same contrast rationale. */
149
125
  color: var(--lr-color-text);
150
126
  }
151
127
  [part="summary"]::before {
@@ -176,17 +152,11 @@ import{css}from"lit";const styles=css`
176
152
  text-align: end;
177
153
  }
178
154
  [part="duration"] {
179
- /* See [part='category']'s comment above -- same contrast rationale. */
180
155
  color: var(--lr-color-text);
181
156
  font-variant-numeric: tabular-nums;
182
157
  white-space: nowrap;
183
158
  }
184
159
 
185
- /* Positioned by internal/positioner.js's place() -- see combobox's
186
- [part='listbox'] for the identical fixed/z-index/max-size shape. Unlike
187
- that popup this one has no open/close transition: a tooltip that
188
- tracks the pointer/focus target benefits from appearing instantly, not
189
- chasing a fade. */
190
160
  [part="tooltip"] {
191
161
  position: fixed;
192
162
  z-index: var(--lr-layer-dropdown);
@@ -4,7 +4,7 @@ var __decorate=function(decorators,target,key,desc){var c=arguments.length,r=c<3
4
4
  .hint=${prop.description??""}
5
5
  .errorText=${errorMessage}
6
6
  .required=${!1}
7
- aria-required=${required?"true":nothing}
7
+ aria-required=${required?"true":"false"}
8
8
  .value=${typeof effective=="string"?effective:""}
9
9
  ?disabled=${this.effectiveDisabled}
10
10
  @input=${this.stopNestedControlEvent}
@@ -22,8 +22,8 @@ var __decorate=function(decorators,target,key,desc){var c=arguments.length,r=c<3
22
22
  type="text"
23
23
  id=${fieldId}
24
24
  aria-describedby=${describedBy||nothing}
25
- aria-required=${required?"true":nothing}
26
- aria-invalid=${errorMessage?"true":nothing}
25
+ aria-required=${required?"true":"false"}
26
+ aria-invalid=${errorMessage?"true":"false"}
27
27
  autocomplete=${prop.autocomplete||nothing}
28
28
  .spellcheck=${prop.spellcheck??!0}
29
29
  autocapitalize=${prop.autocapitalize||nothing}
@@ -42,8 +42,8 @@ var __decorate=function(decorators,target,key,desc){var c=arguments.length,r=c<3
42
42
  id=${fieldId}
43
43
  step=${prop.type==="integer"?"1":"any"}
44
44
  aria-describedby=${describedBy||nothing}
45
- aria-required=${required?"true":nothing}
46
- aria-invalid=${errorMessage?"true":nothing}
45
+ aria-required=${required?"true":"false"}
46
+ aria-invalid=${errorMessage?"true":"false"}
47
47
  .value=${numValue}
48
48
  ?disabled=${this.effectiveDisabled}
49
49
  @input=${e=>this.onNumberInput(key,e)}
@@ -55,7 +55,7 @@ var __decorate=function(decorators,target,key,desc){var c=arguments.length,r=c<3
55
55
  .hint=${prop.description??""}
56
56
  .errorText=${errorMessage}
57
57
  .required=${!1}
58
- aria-required=${required?"true":nothing}
58
+ aria-required=${required?"true":"false"}
59
59
  .value=${selected}
60
60
  ?disabled=${this.effectiveDisabled}
61
61
  @input=${this.stopNestedControlEvent}
@@ -30,11 +30,6 @@ import{css}from"lit";import{formControlRequiredMarker}from"../../../internal/for
30
30
  font-size: var(--lr-font-size-md-sm);
31
31
  font-weight: var(--lr-font-weight-semibold);
32
32
  }
33
- /* The shared required marker (internal/form-control.styles.ts). This is the
34
- one component where "required" is per FIELD rather than per host, which is
35
- why that sheet carries a second selector keyed on
36
- [part="field"][data-required] alongside the usual :host([required]) one.
37
- Boolean and enum labels are owned by their nested <lr-select> instead. */
38
33
  ${formControlRequiredMarker}
39
34
 
40
35
  [part='field'] > lr-select,
@@ -1,14 +1,6 @@
1
1
  import{css}from"lit";const styles=css`
2
2
  :host {
3
- /* Backdrop scrim color -- component-specific so a host can retheme it
4
- without a raw literal leaking into the public API (no shared
5
- --lr-*-overlay token exists in the design system to resolve through,
6
- same rationale as lr-dialog's --lr-dialog-overlay-color and
7
- lr-widget's --lr-widget-overlay-color). */
8
3
  --_lr-tool-result-dialog-overlay-color: var(--lr-color-overlay);
9
- /* Inset applied to the panel while [maximized] -- overridable the same
10
- way lr-widget's --lr-widget-fullscreen-inset is, e.g. to leave a
11
- persistent app rail visible. */
12
4
  --_lr-tool-result-dialog-maximized-inset: max(
13
5
  var(--lr-space-l),
14
6
  var(--lr-safe-area-top)
@@ -60,13 +52,9 @@ import{css}from"lit";const styles=css`
60
52
  min-inline-size: 0;
61
53
  max-block-size: 100%;
62
54
  box-sizing: border-box;
63
- /* Modal-panel surface, not the page surface -- in dark mode the two resolve to the same
64
- near-black and the dialog reads as a scrim with floating text instead of a panel. */
65
55
  background: var(--lr-color-surface-overlay);
66
56
  border: var(--lr-border-width-thin) solid var(--lr-color-border);
67
57
  border-radius: var(--lr-radius);
68
- /* Modal layer, top step: a centered, scrimmed dialog floating free on all four edges --
69
- the same role as lr-dialog, so the same elevation. */
70
58
  box-shadow: var(--lr-shadow-xl);
71
59
  overflow: hidden;
72
60
  transition: inline-size var(--lr-transition-base),
@@ -142,8 +130,6 @@ import{css}from"lit";const styles=css`
142
130
  min-inline-size: 0;
143
131
  overflow-wrap: anywhere;
144
132
  }
145
- /* Pending is the resting state before a tool call has done anything worth
146
- calling out; its foreground and background remain independently themeable. */
147
133
  :host([status="running"]) [part="status"] {
148
134
  color: var(
149
135
  --lr-tool-result-dialog-running-color,
@@ -174,9 +160,6 @@ import{css}from"lit";const styles=css`
174
160
  var(--_lr-tool-result-dialog-error-bg)
175
161
  );
176
162
  }
177
- /* 'denied' is a policy rejection, not a runtime failure -- the warning
178
- (not danger) tinted-background reads that distinction without relying on
179
- the status text alone. */
180
163
  :host([status="denied"]) [part="status"] {
181
164
  color: var(
182
165
  --lr-tool-result-dialog-denied-color,
@@ -224,9 +207,6 @@ import{css}from"lit";const styles=css`
224
207
  background: var(--lr-color-brand-quiet);
225
208
  color: var(--lr-color-brand);
226
209
  }
227
- /* Pressed is the hovered tint pushed a further --lr-color-mix-active toward
228
- --lr-color-mix-partner (which follows the text colour), so it reads as a distinctly deeper step
229
- than hover in both light and dark themes rather than repeating it. */
230
210
  [part="maximize-button"]:active,
231
211
  [part="close-button"]:active {
232
212
  background: color-mix(
@@ -1,10 +1,6 @@
1
1
  import{css}from"lit";const styles=css`
2
2
  :host {
3
3
  display: block;
4
- /* Chains through the shared monospace token (like lr-json-viewer's
5
- --lr-json-viewer-font and lr-tool-approval-dialog's mono font) so a
6
- consumer retheming --lr-theme-font-family-mono also repaints the plain-text
7
- fallback view, instead of it being stuck on the hardcoded system stack. */
8
4
  --_lr-tool-result-view-font: var(--lr-font-mono);
9
5
  }
10
6
  [part="base"] {
@@ -1,10 +1,5 @@
1
1
  import{css}from"lit";const styles=css`
2
2
  :host {
3
- /* Backdrop scrim color -- component-specific so a host can retheme it
4
- without a raw literal leaking into the public API (no shared
5
- --lr-*-overlay token exists in the design system to resolve through,
6
- same rationale as lr-dialog's --lr-dialog-overlay-color and
7
- lr-tool-result-dialog's --lr-tool-result-dialog-overlay-color). */
8
3
  --_lr-tool-select-dialog-overlay-color: var(--lr-color-overlay);
9
4
  display: none;
10
5
  position: fixed;
@@ -39,13 +34,9 @@ import{css}from"lit";const styles=css`
39
34
  min-inline-size: 0;
40
35
  max-inline-size: 100%;
41
36
  block-size: min(var(--lr-size-38rem), 100%);
42
- /* Modal-panel surface, not the page surface -- in dark mode the two resolve to the same
43
- near-black and the dialog reads as a scrim with floating text instead of a panel. */
44
37
  background: var(--lr-color-surface-overlay);
45
38
  border: var(--lr-border-width-thin) solid var(--lr-color-border);
46
39
  border-radius: var(--lr-radius);
47
- /* Modal layer, top step: a centered, scrimmed dialog floating free on all four edges --
48
- the same role as lr-dialog, so the same elevation. */
49
40
  box-shadow: var(--lr-shadow-xl);
50
41
  overflow: hidden;
51
42
  }
@@ -89,9 +80,6 @@ import{css}from"lit";const styles=css`
89
80
  outline: var(--lr-focus-ring-width) solid var(--lr-focus-ring-color);
90
81
  outline-offset: var(--lr-focus-ring-offset);
91
82
  }
92
- /* no-pressed-state: a search field is a caret target, not a push target -- pointer-down places an
93
- insertion point and hands the affordance to :focus-visible, so a pressed tint would flash for
94
- one frame and then be contradicted by the focus ring. */
95
83
  :where([part="search-input"]):hover {
96
84
  border-color: var(--lr-color-brand);
97
85
  }
@@ -113,12 +101,6 @@ import{css}from"lit";const styles=css`
113
101
  }
114
102
  [part="defaults-hint"] {
115
103
  margin: 0;
116
- /* Lines the hint up under the switch's label text, not its track --
117
- lr-switch's own [part="base"] uses a fixed 2.25rem track
118
- inline-size plus a --lr-space-s gap before its label (both defined
119
- in switch.styles.ts, not exposed as tokens), so this indent is
120
- coupled to that fixed geometry rather than derived from an unrelated
121
- component's token. */
122
104
  padding-inline-start: calc(var(--lr-size-2-25rem) + var(--lr-space-s));
123
105
  font-size: var(--lr-font-size-xs);
124
106
  color: var(--lr-color-text-quiet);
@@ -136,7 +118,6 @@ import{css}from"lit";const styles=css`
136
118
  outline: var(--lr-focus-ring-width) solid var(--lr-focus-ring-color);
137
119
  outline-offset: calc(-1 * var(--lr-focus-ring-width));
138
120
  }
139
- /* no-pressed-state: the focusable body is a scroll viewport, not an activation target. */
140
121
  :where([part="body"]):hover {
141
122
  outline: var(--lr-border-width-thin) solid var(--lr-color-border);
142
123
  outline-offset: calc(-1 * var(--lr-border-width-thin));
@@ -284,8 +265,6 @@ import{css}from"lit";const styles=css`
284
265
  color: var(--lr-color-text-quiet);
285
266
  }
286
267
  [part="tool-disabled-reason"] {
287
- /* Slotted into lr-checkbox's owned hint surface alongside tool-description, so the stable
288
- checkbox-hint bridge describes the control without lengthening its accessible name. */
289
268
  display: block;
290
269
  min-inline-size: 0;
291
270
  max-inline-size: 100%;
@@ -71,39 +71,23 @@ import{css}from"lit";const styles=css`
71
71
  [part='row'][data-active] {
72
72
  background: var(--lr-trace-tree-row-active-bg, var(--lr-color-brand-quiet));
73
73
  }
74
- /* The row itself is the click target (it selects a span; the nested [part='toggle'] only expands
75
- it), so it earns a pressed state. Mixing the hovered tint a further --lr-color-mix-active toward
76
- --lr-color-mix-partner keeps it a distinctly deeper step than hover in both themes. It must stay
77
- after the [data-active] rule: the two selectors are both (0,2,0), so source order alone decides
78
- whether pressing the already-selected row shows any feedback at all. */
74
+ [part='row']:where([data-active]):hover {
75
+ background: color-mix(
76
+ in oklab,
77
+ var(--lr-trace-tree-row-active-bg, var(--lr-color-brand-quiet)),
78
+ var(--lr-color-mix-partner) var(--lr-color-mix-hover)
79
+ );
80
+ }
79
81
  [part='row']:active {
80
82
  background: color-mix(in oklab, var(--lr-color-surface-raised), var(--lr-color-mix-partner) var(--lr-color-mix-active));
81
83
  }
82
84
 
83
- /* text-quiet's contrast ratio against brand-quiet lands at ~4.25:1 -- just under the WCAG AA
84
- 4.5:1 floor for normal-size text -- even though it comfortably passes against the plain
85
- (non-active) row background used the rest of the time. Darkening the active tint instead would
86
- make it worse, since every failing foreground here is dark text; the fix is to raise the
87
- foreground to full strength once the row is active, as lr-conversation-item does for the same
88
- bug. --lr-color-text flips with the color scheme, so this raises contrast in both.
89
- [data-status='pending'] is included because its color *is* --lr-color-text-quiet: same failure,
90
- same fix. The other statuses keep their semantic hue -- see the mix below. */
91
85
  [part='row'][data-active]
92
86
  :is([part='detail'], [part='duration'], [part='tokens-in'], [part='tokens-out'], [part='cost']),
93
87
  [part='row'][data-active] [part='status-text'][data-status='pending'] {
94
88
  color: var(--lr-trace-tree-row-active-color, var(--lr-color-text));
95
89
  }
96
90
 
97
- /* The semantic status labels keep their hue on the active row -- an error row that stops being
98
- red once selected is an information-design regression, and the hue is the fastest scan signal
99
- in a trace list -- but get pulled 25% toward the text color so they clear the same AA floor
100
- (success 4.46 -> 6.18, denied/warning 4.28 -> 5.96 against the default tint). Applied to every
101
- tone rather than only the two that fail at the shipped defaults: a per-status carve-out is
102
- theme-fragile, since a consumer retheming one --lr-color-* moves that ratio and would silently
103
- re-break. The mix is theme-symmetric by construction -- --lr-color-text flips with the scheme,
104
- so the same declaration darkens in light mode and lightens in dark mode.
105
- Scoped to [part='status-text'] rather than redefining the tokens inside the active row, which
106
- would silently re-point a consumer's own token override and drag [part='bar'] along with it. */
107
91
  [part='row'][data-active] [part='status-text'][data-status='success'] {
108
92
  color: color-mix(
109
93
  in srgb,
@@ -134,9 +118,6 @@ import{css}from"lit";const styles=css`
134
118
  }
135
119
 
136
120
  [part='toggle'] {
137
- /* Keep the chevron glyph compact while giving the interactive box the shared minimum
138
- tappable size -- same "small glyph, padded hit box" pattern as lr-code-block's/
139
- lr-json-viewer's own [part='toggle']. */
140
121
  flex: 0 0 auto;
141
122
  inline-size: var(--lr-size-1-25rem);
142
123
  block-size: var(--lr-size-1-25rem);
@@ -254,15 +235,10 @@ import{css}from"lit";const styles=css`
254
235
  background-size: 200% 100%;
255
236
  animation: lr-trace-tree-stripe var(--lr-transition-ambient) infinite;
256
237
  }
257
- /* background-position animates in physical coordinates, so the sweep needs
258
- an explicit mirrored keyframe track to travel inline-start -> inline-end
259
- in RTL as well. */
260
238
  :host(:dir(rtl)) [part='bar'][data-status='running'] {
261
239
  animation-name: lr-trace-tree-stripe-rtl;
262
240
  }
263
241
  @media (prefers-reduced-motion: reduce) {
264
- /* the RTL selector outranks the bare one, so it must be silenced here
265
- explicitly or its animation-name would win over 'animation: none' */
266
242
  [part='bar'][data-status='running'],
267
243
  :host(:dir(rtl)) [part='bar'][data-status='running'] {
268
244
  animation: none;
@@ -8,14 +8,6 @@ import{css}from"lit";import{forcedColorLegendSwatchStyles}from"./chart-forced-co
8
8
  block-size: auto;
9
9
  container-type: inline-size;
10
10
  contain-intrinsic-inline-size: var(--lr-size-20rem);
11
- /* Same theme tokens as chart.styles.ts's :host — Chart.js renders to
12
- canvas, not the DOM, so it can't consume CSS var() directly;
13
- box-plot.ts's themeColors() resolves these once per draw() via
14
- getComputedStyle, mirroring chart.ts. Each is its own token (rather
15
- than reusing the semantic ones directly) so a host can retheme just
16
- the chart's grid/ticks/legend/tooltip without affecting unrelated
17
- text/border/surface colors elsewhere in the component, while still
18
- defaulting to those semantic tokens. */
19
11
  --_lr-chart-grid-color: var(--lr-color-border);
20
12
  --_lr-chart-tick-color: var(--lr-color-text-quiet);
21
13
  --_lr-chart-legend-color: var(--lr-color-text);
@@ -80,9 +72,6 @@ import{css}from"lit";import{forcedColorLegendSwatchStyles}from"./chart-forced-co
80
72
  [part~='legend-item'] {
81
73
  display: inline-flex;
82
74
  align-items: center;
83
- /* Both axes, matching <lr-chart>'s legend item: a short series name leaves the swatch+label
84
- pair narrower than the min-inline-size hit-area floor below, and the default
85
- justify-content (normal => flex-start) dumped that slack on the trailing side. */
86
75
  justify-content: center;
87
76
  min-inline-size: var(--lr-icon-button-size);
88
77
  min-block-size: var(--lr-icon-button-size);
@@ -101,8 +90,6 @@ import{css}from"lit";import{forcedColorLegendSwatchStyles}from"./chart-forced-co
101
90
  [part~='legend-item']:where(:hover) {
102
91
  background: var(--lr-chart-legend-item-hover-bg, var(--lr-color-brand-quiet));
103
92
  }
104
- /* Pressed, matching <lr-chart>'s legend item: the same quiet brand tint pushed further toward
105
- the text colour, so the mousedown that toggles the series reads as distinct from hovering. */
106
93
  [part~='legend-item']:where(:active) {
107
94
  background: var(
108
95
  --lr-chart-legend-item-active-bg,
@@ -172,14 +159,7 @@ import{css}from"lit";import{forcedColorLegendSwatchStyles}from"./chart-forced-co
172
159
  min-inline-size: var(--lr-icon-button-size);
173
160
  min-block-size: var(--lr-icon-button-size);
174
161
  }
175
- /* no-pressed-state: the canvas is a role="application" keyboard surface with no click handler of
176
- its own -- pressing it activates a box *inside* the bitmap, which no CSS rule can reach, and
177
- re-outlining the whole plot on mousedown would read as the entire chart being the target.
178
- Same treatment, and same rationale, as chart.styles.ts's canvas. */
179
162
  [part='canvas']:hover {
180
- /* Scoped so a consumer can retint/resize just this hover outline without also affecting every
181
- other --lr-border-width-thin consumer on the page -- the same indirection rationale as the
182
- --lr-chart-grid-color/-tick-color/etc. block above, applied to a state-specific rule. */
183
163
  outline: var(--lr-chart-canvas-hover-outline-width, var(--lr-border-width-thin)) solid
184
164
  var(--lr-chart-grid-color, var(--_lr-chart-grid-color));
185
165
  outline-offset: var(--lr-focus-ring-offset);
@@ -1,4 +1,4 @@
1
- export { resolveCanvasColor } from '../../../internal/canvas-color.js';
1
+ export { resolveCanvasColor, resolveCanvasColors } from '../../../internal/canvas-color.js';
2
2
  /**
3
3
  * Resolves the categorical chart ramp to concrete canvas-safe colors. Passing `null` selects the
4
4
  * deterministic fallback directly; omitting the argument reads the document theme.
@@ -1 +1 @@
1
- import{resolveCanvasColor}from"../../../internal/canvas-color.js";const FALLBACK_SERIES_PALETTE=["#0e006e","#4d011a","#862002","#503983","#315fdd","#935e7c","#de6906","#8f81d3"],AREA_FILL_PERCENT=28;import{resolveCanvasColor as resolveCanvasColor2}from"../../../internal/canvas-color.js";function seriesPalette(element){const target=element===void 0&&typeof document<"u"?document.documentElement:element;if(!target||typeof getComputedStyle!="function")return[...FALLBACK_SERIES_PALETTE];const cs=getComputedStyle(target);return FALLBACK_SERIES_PALETTE.map((fallback,index)=>{const number=index+1,color=cs.getPropertyValue(`--lr-color-chart-${number}`).trim()||cs.getPropertyValue(`--lr-theme-color-chart-${number}`).trim()||fallback;return resolveCanvasColor(target,color,fallback)})}function translucentAreaColor(scope,color){if(typeof document>"u"||typeof getComputedStyle!="function")return color;const concrete=resolveCanvasColor(scope,color,color);return resolveCanvasColor(scope,`color-mix(in srgb, ${concrete} ${AREA_FILL_PERCENT}%, transparent)`,concrete)}export{resolveCanvasColor2 as resolveCanvasColor,seriesPalette,translucentAreaColor};
1
+ import{resolveCanvasColor}from"../../../internal/canvas-color.js";const FALLBACK_SERIES_PALETTE=["#0e006e","#4d011a","#862002","#503983","#315fdd","#935e7c","#de6906","#8f81d3"],AREA_FILL_PERCENT=28;import{resolveCanvasColor as resolveCanvasColor2,resolveCanvasColors}from"../../../internal/canvas-color.js";function seriesPalette(element){const target=element===void 0&&typeof document<"u"?document.documentElement:element;if(!target||typeof getComputedStyle!="function")return[...FALLBACK_SERIES_PALETTE];const cs=getComputedStyle(target);return FALLBACK_SERIES_PALETTE.map((fallback,index)=>{const number=index+1,color=cs.getPropertyValue(`--lr-color-chart-${number}`).trim()||cs.getPropertyValue(`--lr-theme-color-chart-${number}`).trim()||fallback;return resolveCanvasColor(target,color,fallback)})}function translucentAreaColor(scope,color){if(typeof document>"u"||typeof getComputedStyle!="function")return color;const concrete=resolveCanvasColor(scope,color,color);return resolveCanvasColor(scope,`color-mix(in srgb, ${concrete} ${AREA_FILL_PERCENT}%, transparent)`,concrete)}export{resolveCanvasColor2 as resolveCanvasColor,resolveCanvasColors,seriesPalette,translucentAreaColor};
@@ -29,6 +29,7 @@ export interface ChartJsModule {
29
29
  LinearScale: unknown;
30
30
  CategoryScale: unknown;
31
31
  RadialLinearScale: unknown;
32
+ LogarithmicScale: unknown;
32
33
  Filler: unknown;
33
34
  Tooltip: unknown;
34
35
  Legend: unknown;
@@ -1 +1 @@
1
- import{resolveOptionalPeerCapability,unwrapOptionalPeerDefault}from"../../../internal/optional-peer-capabilities.js";const CHART_REGISTERABLE_KEYS=["LineController","BarController","ScatterController","DoughnutController","PieController","RadarController","PolarAreaController","BubbleController","LineElement","PointElement","BarElement","ArcElement","LinearScale","CategoryScale","RadialLinearScale","Filler","Tooltip","Legend"];function isObjectLike(value){return(typeof value=="object"||typeof value=="function")&&value!==null}function isConstructor(value){if(typeof value!="function")return!1;try{return Reflect.construct(Object,[],value),!0}catch{return!1}}function missingChartCapability(candidate){if(!isObjectLike(candidate))return"module namespace";if(!isConstructor(candidate.Chart))return"Chart";if(typeof candidate.Chart.register!="function")return"Chart.register";if(!isObjectLike(candidate.defaults))return"defaults";for(const key of CHART_REGISTERABLE_KEYS)if(!isObjectLike(candidate[key]))return key}function isChartJsModule(candidate){return missingChartCapability(candidate)===void 0}function resolveChartJsModule(value){const module=resolveOptionalPeerCapability(value,isChartJsModule);if(module)return module;const candidate=unwrapOptionalPeerDefault(value),missing=missingChartCapability(candidate)??"module namespace";throw new Error(`Invalid optional peer \`chart.js\`: missing or invalid \`${missing}\` capability.`)}let chartJs,registered=!1;async function loadChartModule(importChart=()=>import("chart.js")){try{return resolveChartJsModule(await importChart())}catch(err){return console.warn("<lr-chart> needs the optional peer dependency `chart.js` \u2014 install it with `pnpm add chart.js`:",err),null}}function registerCore(mod){registered||(mod.Chart.register(mod.LineController,mod.BarController,mod.ScatterController,mod.DoughnutController,mod.PieController,mod.RadarController,mod.PolarAreaController,mod.BubbleController,mod.LineElement,mod.PointElement,mod.BarElement,mod.ArcElement,mod.LinearScale,mod.CategoryScale,mod.RadialLinearScale,mod.Filler,mod.Tooltip,mod.Legend),registered=!0)}async function loadAndRegisterChartModule(importChart=()=>import("chart.js"),register=registerCore){const mod=await loadChartModule(importChart);if(!mod)return null;try{return register(mod),mod}catch(error){return console.warn("<lr-chart> could not register the optional `chart.js` peer:",error),null}}function loadChartJs(){return chartJs||(chartJs=loadAndRegisterChartModule()),chartJs}export{loadAndRegisterChartModule,loadChartJs,loadChartModule};
1
+ import{resolveOptionalPeerCapability,unwrapOptionalPeerDefault}from"../../../internal/optional-peer-capabilities.js";const CHART_REGISTERABLE_KEYS=["LineController","BarController","ScatterController","DoughnutController","PieController","RadarController","PolarAreaController","BubbleController","LineElement","PointElement","BarElement","ArcElement","LinearScale","CategoryScale","RadialLinearScale","LogarithmicScale","Filler","Tooltip","Legend"];function isObjectLike(value){return(typeof value=="object"||typeof value=="function")&&value!==null}function isConstructor(value){if(typeof value!="function")return!1;try{return Reflect.construct(Object,[],value),!0}catch{return!1}}function missingChartCapability(candidate){if(!isObjectLike(candidate))return"module namespace";if(!isConstructor(candidate.Chart))return"Chart";if(typeof candidate.Chart.register!="function")return"Chart.register";if(!isObjectLike(candidate.defaults))return"defaults";for(const key of CHART_REGISTERABLE_KEYS)if(!isObjectLike(candidate[key]))return key}function isChartJsModule(candidate){return missingChartCapability(candidate)===void 0}function resolveChartJsModule(value){const module=resolveOptionalPeerCapability(value,isChartJsModule);if(module)return module;const candidate=unwrapOptionalPeerDefault(value),missing=missingChartCapability(candidate)??"module namespace";throw new Error(`Invalid optional peer \`chart.js\`: missing or invalid \`${missing}\` capability.`)}let chartJs,registered=!1;async function loadChartModule(importChart=()=>import("chart.js")){try{return resolveChartJsModule(await importChart())}catch(err){return console.warn("<lr-chart> needs the optional peer dependency `chart.js` \u2014 install it with `pnpm add chart.js`:",err),null}}function registerCore(mod){registered||(mod.Chart.register(mod.LineController,mod.BarController,mod.ScatterController,mod.DoughnutController,mod.PieController,mod.RadarController,mod.PolarAreaController,mod.BubbleController,mod.LineElement,mod.PointElement,mod.BarElement,mod.ArcElement,mod.LinearScale,mod.CategoryScale,mod.RadialLinearScale,mod.LogarithmicScale,mod.Filler,mod.Tooltip,mod.Legend),registered=!0)}async function loadAndRegisterChartModule(importChart=()=>import("chart.js"),register=registerCore){const mod=await loadChartModule(importChart);if(!mod)return null;try{return register(mod),mod}catch(error){return console.warn("<lr-chart> could not register the optional `chart.js` peer:",error),null}}function loadChartJs(){return chartJs||(chartJs=loadAndRegisterChartModule()),chartJs}export{loadAndRegisterChartModule,loadChartJs,loadChartModule};
@@ -6,6 +6,7 @@ export interface ChartPluginCapability {
6
6
  }
7
7
  export type ZoomPlugin = ChartPluginCapability;
8
8
  export type DataLabelsPlugin = ChartPluginCapability;
9
+ export type AnnotationPlugin = ChartPluginCapability;
9
10
  /**
10
11
  * The outcome of loading an opt-in Chart.js feature after attempting to load
11
12
  * the core module. Callers can distinguish an unavailable core from an
@@ -122,3 +123,37 @@ export declare function loadChartJsWithDataLabels(importDataLabels?: () => Promi
122
123
  mod: ChartJsModule;
123
124
  plugin: DataLabelsPlugin | undefined;
124
125
  } | null>;
126
+ /**
127
+ * Loads `chartjs-plugin-annotation`, validating that the module really exposes a Chart.js plugin
128
+ * before it is handed to a chart — registering a wrapper namespace or a malformed object would
129
+ * silently no-op, which is the failure mode `resolveChartPlugin` exists to prevent. Un-memoized so
130
+ * both the success and the degrade-with-a-warning paths stay directly testable.
131
+ */
132
+ export declare function loadAnnotationPlugin(importAnnotation?: () => Promise<unknown>): Promise<AnnotationPlugin | undefined>;
133
+ /**
134
+ * Loads Chart.js plus the annotation plugin and **registers it globally**, preserving a usable core
135
+ * when the feature peer is absent. Un-memoized twin of `loadChartJsWithAnnotationResult()`, for
136
+ * failure-path tests.
137
+ *
138
+ * Global registration here, per-instance for `chartjs-plugin-datalabels`, and the difference is not
139
+ * arbitrary. Datalabels draws on every dataset the moment it is globally registered, so registering
140
+ * it globally would visibly change every other chart on the page. `chartjs-plugin-annotation` is
141
+ * the `chartjs-plugin-zoom` shape instead: it draws nothing at all unless a chart supplies
142
+ * `options.plugins.annotation.annotations`, so a global registration is unobservable to a chart
143
+ * that sets none. It also has to be global -- registration is what installs the plugin's own
144
+ * element types and their defaults, and an inline `config.plugins` entry skips that, leaving the
145
+ * plugin to throw on missing `borderWidth`/`borderCapStyle` defaults the moment it draws.
146
+ */
147
+ export declare function loadChartAndAnnotation(loadChart: () => Promise<ChartJsModule | null>, importAnnotation?: () => Promise<unknown>): Promise<ChartFeatureLoadResult<AnnotationPlugin>>;
148
+ /**
149
+ * Loads `chart.js` (reusing the cached core load) plus `chartjs-plugin-annotation`, on first actual
150
+ * demand — most charts set no annotations.
151
+ *
152
+ * Registered globally, like `chartjs-plugin-zoom` and unlike `chartjs-plugin-datalabels` — see
153
+ * `loadChartAndAnnotation()` for why the two differ. The load itself still happens only on first
154
+ * actual demand, so a page whose charts set no annotations never downloads the peer at all.
155
+ *
156
+ * Memoized behind a single promise assigned synchronously before any `await`, closing the
157
+ * check-then-act race across the `await` boundary that the zoom loader's doc describes.
158
+ */
159
+ export declare function loadChartJsWithAnnotationResult(importAnnotation?: () => Promise<unknown>): Promise<ChartFeatureLoadResult<AnnotationPlugin>>;
@@ -1 +1 @@
1
- import{resolveOptionalPeerCapability}from"../../../internal/optional-peer-capabilities.js";import{loadChartJs,loadChartModule}from"./chart-core-loader.js";function isObjectLike(value){return(typeof value=="object"||typeof value=="function")&&value!==null}function isChartPlugin(candidate){return isObjectLike(candidate)&&typeof candidate.id=="string"&&candidate.id.trim().length>0}function resolveChartPlugin(value,packageName){const plugin=resolveOptionalPeerCapability(value,isChartPlugin);if(plugin)return plugin;throw new Error(`Invalid optional peer \`${packageName}\`: expected a plugin with a non-empty string \`id\`.`)}let zoomResultLoad,dataLabelsResultLoad,zoomLoad,dataLabelsLoad;async function loadChartAndZoom(importChart=()=>import("chart.js"),importZoom=()=>import("chartjs-plugin-zoom"),needsZoom=!1){const mod=await loadChartModule(importChart);if(!mod)return null;if(!needsZoom)return{mod,zoomPlugin:void 0};let zoomPlugin;try{zoomPlugin=resolveChartPlugin(await importZoom(),"chartjs-plugin-zoom")}catch(err){console.warn("<lr-chart> zoom support needs the optional peer dependency `chartjs-plugin-zoom` \u2014 charts still render without it, but the `zoom` attribute has no effect until it is installed with `pnpm add chartjs-plugin-zoom`:",err)}return{mod,zoomPlugin}}async function loadChartAndRegisterZoom(loadChart,importZoom=()=>import("chartjs-plugin-zoom")){const mod=await loadChart();if(!mod)return{kind:"core-unavailable"};const zoomPlugin=(await loadChartAndZoom(()=>Promise.resolve(mod),importZoom,!0))?.zoomPlugin;if(!zoomPlugin)return{kind:"feature-unavailable",mod};try{mod.Chart.register(zoomPlugin)}catch(err){return console.warn("<lr-chart> zoom support could not be enabled \u2014 charts still render without it, but the `zoom` attribute has no effect:",err),{kind:"feature-unavailable",mod}}return{kind:"available",mod,plugin:zoomPlugin}}function loadChartJsWithZoomResult(importZoom=()=>import("chartjs-plugin-zoom")){return zoomResultLoad??=loadChartAndRegisterZoom(loadChartJs,importZoom)}function loadChartJsWithZoom(importZoom=()=>import("chartjs-plugin-zoom")){return zoomLoad??=loadChartJsWithZoomResult(importZoom).then(result=>result.kind==="core-unavailable"?null:result.mod)}async function loadDataLabelsPlugin(importDataLabels=()=>import("chartjs-plugin-datalabels")){try{return resolveChartPlugin(await importDataLabels(),"chartjs-plugin-datalabels")}catch(err){console.warn("<lr-chart> data labels need the optional peer dependency `chartjs-plugin-datalabels` \u2014 charts still render without it, but the `data-labels`/`stack-totals` attributes have no effect until it is installed with `pnpm add chartjs-plugin-datalabels`:",err);return}}async function loadChartAndDataLabels(loadChart,importDataLabels=()=>import("chartjs-plugin-datalabels")){const mod=await loadChart();if(!mod)return{kind:"core-unavailable"};const plugin=await loadDataLabelsPlugin(importDataLabels);return plugin?{kind:"available",mod,plugin}:{kind:"feature-unavailable",mod}}function loadChartJsWithDataLabelsResult(importDataLabels=()=>import("chartjs-plugin-datalabels")){return dataLabelsResultLoad??=loadChartAndDataLabels(loadChartJs,importDataLabels)}function loadChartJsWithDataLabels(importDataLabels=()=>import("chartjs-plugin-datalabels")){return dataLabelsLoad??=loadChartJsWithDataLabelsResult(importDataLabels).then(result=>result.kind==="core-unavailable"?null:{mod:result.mod,plugin:result.kind==="available"?result.plugin:void 0})}export{loadChartAndDataLabels,loadChartAndRegisterZoom,loadChartAndZoom,loadChartJsWithDataLabels,loadChartJsWithDataLabelsResult,loadChartJsWithZoom,loadChartJsWithZoomResult,loadDataLabelsPlugin};
1
+ import{resolveOptionalPeerCapability}from"../../../internal/optional-peer-capabilities.js";import{loadChartJs,loadChartModule}from"./chart-core-loader.js";function isObjectLike(value){return(typeof value=="object"||typeof value=="function")&&value!==null}function isChartPlugin(candidate){return isObjectLike(candidate)&&typeof candidate.id=="string"&&candidate.id.trim().length>0}function resolveChartPlugin(value,packageName){const plugin=resolveOptionalPeerCapability(value,isChartPlugin);if(plugin)return plugin;throw new Error(`Invalid optional peer \`${packageName}\`: expected a plugin with a non-empty string \`id\`.`)}let zoomResultLoad,dataLabelsResultLoad,annotationResultLoad,zoomLoad,dataLabelsLoad;async function loadChartAndZoom(importChart=()=>import("chart.js"),importZoom=()=>import("chartjs-plugin-zoom"),needsZoom=!1){const mod=await loadChartModule(importChart);if(!mod)return null;if(!needsZoom)return{mod,zoomPlugin:void 0};let zoomPlugin;try{zoomPlugin=resolveChartPlugin(await importZoom(),"chartjs-plugin-zoom")}catch(err){console.warn("<lr-chart> zoom support needs the optional peer dependency `chartjs-plugin-zoom` \u2014 charts still render without it, but the `zoom` attribute has no effect until it is installed with `pnpm add chartjs-plugin-zoom`:",err)}return{mod,zoomPlugin}}async function loadChartAndRegisterZoom(loadChart,importZoom=()=>import("chartjs-plugin-zoom")){const mod=await loadChart();if(!mod)return{kind:"core-unavailable"};const zoomPlugin=(await loadChartAndZoom(()=>Promise.resolve(mod),importZoom,!0))?.zoomPlugin;if(!zoomPlugin)return{kind:"feature-unavailable",mod};try{mod.Chart.register(zoomPlugin)}catch(err){return console.warn("<lr-chart> zoom support could not be enabled \u2014 charts still render without it, but the `zoom` attribute has no effect:",err),{kind:"feature-unavailable",mod}}return{kind:"available",mod,plugin:zoomPlugin}}function loadChartJsWithZoomResult(importZoom=()=>import("chartjs-plugin-zoom")){return zoomResultLoad??=loadChartAndRegisterZoom(loadChartJs,importZoom)}function loadChartJsWithZoom(importZoom=()=>import("chartjs-plugin-zoom")){return zoomLoad??=loadChartJsWithZoomResult(importZoom).then(result=>result.kind==="core-unavailable"?null:result.mod)}async function loadDataLabelsPlugin(importDataLabels=()=>import("chartjs-plugin-datalabels")){try{return resolveChartPlugin(await importDataLabels(),"chartjs-plugin-datalabels")}catch(err){console.warn("<lr-chart> data labels need the optional peer dependency `chartjs-plugin-datalabels` \u2014 charts still render without it, but the `data-labels`/`stack-totals` attributes have no effect until it is installed with `pnpm add chartjs-plugin-datalabels`:",err);return}}async function loadChartAndDataLabels(loadChart,importDataLabels=()=>import("chartjs-plugin-datalabels")){const mod=await loadChart();if(!mod)return{kind:"core-unavailable"};const plugin=await loadDataLabelsPlugin(importDataLabels);return plugin?{kind:"available",mod,plugin}:{kind:"feature-unavailable",mod}}function loadChartJsWithDataLabelsResult(importDataLabels=()=>import("chartjs-plugin-datalabels")){return dataLabelsResultLoad??=loadChartAndDataLabels(loadChartJs,importDataLabels)}function loadChartJsWithDataLabels(importDataLabels=()=>import("chartjs-plugin-datalabels")){return dataLabelsLoad??=loadChartJsWithDataLabelsResult(importDataLabels).then(result=>result.kind==="core-unavailable"?null:{mod:result.mod,plugin:result.kind==="available"?result.plugin:void 0})}async function loadAnnotationPlugin(importAnnotation=()=>import("chartjs-plugin-annotation")){try{return resolveChartPlugin(await importAnnotation(),"chartjs-plugin-annotation")}catch(err){console.warn("<lr-chart> annotations need the optional peer dependency `chartjs-plugin-annotation` \u2014 charts still render without it, but the `annotations` property has no effect until it is installed with `pnpm add chartjs-plugin-annotation`:",err);return}}async function loadChartAndAnnotation(loadChart,importAnnotation=()=>import("chartjs-plugin-annotation")){const mod=await loadChart();if(!mod)return{kind:"core-unavailable"};const plugin=await loadAnnotationPlugin(importAnnotation);if(!plugin)return{kind:"feature-unavailable",mod};try{mod.Chart.register(plugin)}catch(err){return console.warn("<lr-chart> annotations could not be enabled \u2014 charts still render without them, but the `annotations` property has no effect:",err),{kind:"feature-unavailable",mod}}return{kind:"available",mod,plugin}}function loadChartJsWithAnnotationResult(importAnnotation=()=>import("chartjs-plugin-annotation")){return annotationResultLoad??=loadChartAndAnnotation(loadChartJs,importAnnotation)}export{loadAnnotationPlugin,loadChartAndAnnotation,loadChartAndDataLabels,loadChartAndRegisterZoom,loadChartAndZoom,loadChartJsWithAnnotationResult,loadChartJsWithDataLabels,loadChartJsWithDataLabelsResult,loadChartJsWithZoom,loadChartJsWithZoomResult,loadDataLabelsPlugin};