@aceshooting/lyra-ui 30.0.0 → 30.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (880) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/README.md +5 -5
  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/types.d.ts +34 -34
  9. package/dist/all.d.ts +1 -1
  10. package/dist/all.js +1 -1
  11. package/dist/autoloader.d.ts +5 -5
  12. package/dist/cli/migration-contract.json +1 -1
  13. package/dist/components/agent-tools/activity-feed/activity-feed.class.d.ts +5 -5
  14. package/dist/components/agent-tools/activity-feed/activity-feed.d.ts +1 -1
  15. package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.class.d.ts +4 -4
  16. package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.d.ts +1 -1
  17. package/dist/components/agent-tools/agent-question/agent-question.class.d.ts +9 -9
  18. package/dist/components/agent-tools/agent-question/agent-question.d.ts +1 -1
  19. package/dist/components/agent-tools/agent-run/agent-run.class.d.ts +3 -3
  20. package/dist/components/agent-tools/agent-run/agent-run.d.ts +1 -1
  21. package/dist/components/agent-tools/agent-status-presentation.d.ts +6 -6
  22. package/dist/components/agent-tools/agent-trace/agent-trace.class.d.ts +5 -5
  23. package/dist/components/agent-tools/agent-trace/agent-trace.d.ts +1 -1
  24. package/dist/components/agent-tools/approval-queue/approval-queue.class.d.ts +6 -6
  25. package/dist/components/agent-tools/approval-queue/approval-queue.d.ts +1 -1
  26. package/dist/components/agent-tools/approval-state.d.ts +4 -4
  27. package/dist/components/agent-tools/artifact-panel/artifact-panel.class.d.ts +7 -7
  28. package/dist/components/agent-tools/artifact-panel/artifact-panel.d.ts +1 -1
  29. package/dist/components/agent-tools/background-runs/background-runs.class.d.ts +5 -5
  30. package/dist/components/agent-tools/background-runs/background-runs.d.ts +1 -1
  31. package/dist/components/agent-tools/browser-frame/browser-frame.class.d.ts +2 -2
  32. package/dist/components/agent-tools/browser-frame/browser-frame.d.ts +1 -1
  33. package/dist/components/agent-tools/budget-meter/budget-meter.class.d.ts +5 -5
  34. package/dist/components/agent-tools/budget-meter/budget-meter.d.ts +1 -1
  35. package/dist/components/agent-tools/change-review/change-review.class.d.ts +5 -5
  36. package/dist/components/agent-tools/change-review/change-review.d.ts +1 -1
  37. package/dist/components/agent-tools/commit-card/commit-card.class.d.ts +5 -5
  38. package/dist/components/agent-tools/commit-card/commit-card.d.ts +1 -1
  39. package/dist/components/agent-tools/compare-panel/compare-panel.d.ts +1 -1
  40. package/dist/components/agent-tools/confirm-bar/confirm-bar.class.d.ts +4 -4
  41. package/dist/components/agent-tools/confirm-bar/confirm-bar.d.ts +1 -1
  42. package/dist/components/agent-tools/connector-manager/connector-manager.class.d.ts +4 -4
  43. package/dist/components/agent-tools/connector-manager/connector-manager.d.ts +1 -1
  44. package/dist/components/agent-tools/context-inspector/context-inspector.class.d.ts +13 -13
  45. package/dist/components/agent-tools/context-inspector/context-inspector.d.ts +1 -1
  46. package/dist/components/agent-tools/eval-dataset/eval-dataset.class.d.ts +8 -8
  47. package/dist/components/agent-tools/eval-dataset/eval-dataset.d.ts +1 -1
  48. package/dist/components/agent-tools/eval-result/eval-result.class.d.ts +7 -7
  49. package/dist/components/agent-tools/eval-result/eval-result.d.ts +1 -1
  50. package/dist/components/agent-tools/evaluation-run/evaluation-run.class.d.ts +6 -6
  51. package/dist/components/agent-tools/evaluation-run/evaluation-run.d.ts +1 -1
  52. package/dist/components/agent-tools/mcp-app/mcp-app.class.d.ts +5 -5
  53. package/dist/components/agent-tools/mcp-app/mcp-app.d.ts +1 -1
  54. package/dist/components/agent-tools/permission-grant/permission-grant.class.d.ts +7 -7
  55. package/dist/components/agent-tools/permission-grant/permission-grant.d.ts +1 -1
  56. package/dist/components/agent-tools/permission-rules/permission-rules.class.d.ts +3 -3
  57. package/dist/components/agent-tools/permission-rules/permission-rules.d.ts +1 -1
  58. package/dist/components/agent-tools/policy-summary/policy-summary.class.d.ts +3 -3
  59. package/dist/components/agent-tools/policy-summary/policy-summary.d.ts +1 -1
  60. package/dist/components/agent-tools/prompt-studio/prompt-studio.class.d.ts +8 -8
  61. package/dist/components/agent-tools/prompt-studio/prompt-studio.d.ts +1 -1
  62. package/dist/components/agent-tools/result-card/result-card.class.d.ts +1 -1
  63. package/dist/components/agent-tools/result-card/result-card.d.ts +1 -1
  64. package/dist/components/agent-tools/result-card/result-field.class.d.ts +1 -1
  65. package/dist/components/agent-tools/result-card/result-field.d.ts +1 -1
  66. package/dist/components/agent-tools/run-events.d.ts +1 -1
  67. package/dist/components/agent-tools/schema-viewer/schema-viewer.class.d.ts +2 -2
  68. package/dist/components/agent-tools/schema-viewer/schema-viewer.d.ts +1 -1
  69. package/dist/components/agent-tools/span-waterfall/span-waterfall.class.d.ts +2 -2
  70. package/dist/components/agent-tools/span-waterfall/span-waterfall.class.js +1 -1
  71. package/dist/components/agent-tools/span-waterfall/span-waterfall.d.ts +1 -1
  72. package/dist/components/agent-tools/stack-trace/stack-trace-parse.d.ts +4 -4
  73. package/dist/components/agent-tools/stack-trace/stack-trace.class.d.ts +3 -3
  74. package/dist/components/agent-tools/stack-trace/stack-trace.d.ts +1 -1
  75. package/dist/components/agent-tools/subagent-panel/subagent-panel.class.d.ts +1 -1
  76. package/dist/components/agent-tools/subagent-panel/subagent-panel.d.ts +1 -1
  77. package/dist/components/agent-tools/task-list/task-list.class.d.ts +6 -6
  78. package/dist/components/agent-tools/task-list/task-list.class.js +2 -2
  79. package/dist/components/agent-tools/task-list/task-list.d.ts +1 -1
  80. package/dist/components/agent-tools/terminal/terminal.class.d.ts +2 -2
  81. package/dist/components/agent-tools/terminal/terminal.d.ts +1 -1
  82. package/dist/components/agent-tools/test-results/test-results.class.d.ts +8 -8
  83. package/dist/components/agent-tools/test-results/test-results.d.ts +1 -1
  84. package/dist/components/agent-tools/thinking-panel/thinking-panel.class.d.ts +1 -1
  85. package/dist/components/agent-tools/thinking-panel/thinking-panel.d.ts +1 -1
  86. package/dist/components/agent-tools/tool-approval-dialog/tool-approval-dialog.class.d.ts +9 -9
  87. package/dist/components/agent-tools/tool-approval-dialog/tool-approval-dialog.d.ts +1 -1
  88. package/dist/components/agent-tools/tool-call-block/tool-call-block.class.d.ts +8 -8
  89. package/dist/components/agent-tools/tool-call-block/tool-call-block.d.ts +1 -1
  90. package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.d.ts +6 -6
  91. package/dist/components/agent-tools/tool-call-chip/tool-call-chip.d.ts +1 -1
  92. package/dist/components/agent-tools/tool-param-form/tool-param-form.class.d.ts +7 -7
  93. package/dist/components/agent-tools/tool-param-form/tool-param-form.d.ts +1 -1
  94. package/dist/components/agent-tools/tool-param-form/tool-param-types.d.ts +14 -14
  95. package/dist/components/agent-tools/tool-result-dialog/tool-result-dialog.class.d.ts +7 -7
  96. package/dist/components/agent-tools/tool-result-dialog/tool-result-dialog.d.ts +1 -1
  97. package/dist/components/agent-tools/tool-result-view/registry.d.ts +9 -9
  98. package/dist/components/agent-tools/tool-result-view/tool-result-view.class.d.ts +7 -7
  99. package/dist/components/agent-tools/tool-result-view/tool-result-view.d.ts +1 -1
  100. package/dist/components/agent-tools/tool-select-dialog/tool-select-dialog.class.d.ts +9 -9
  101. package/dist/components/agent-tools/tool-select-dialog/tool-select-dialog.d.ts +1 -1
  102. package/dist/components/agent-tools/tool-timeline/tool-timeline.class.d.ts +4 -4
  103. package/dist/components/agent-tools/tool-timeline/tool-timeline.d.ts +1 -1
  104. package/dist/components/agent-tools/trace-tree/span-shared.d.ts +9 -9
  105. package/dist/components/agent-tools/trace-tree/trace-tree.class.d.ts +9 -9
  106. package/dist/components/agent-tools/trace-tree/trace-tree.class.js +2 -2
  107. package/dist/components/agent-tools/trace-tree/trace-tree.d.ts +1 -1
  108. package/dist/components/charts/chart/bar-chart.d.ts +1 -1
  109. package/dist/components/charts/chart/box-plot.class.d.ts +10 -10
  110. package/dist/components/charts/chart/box-plot.d.ts +1 -1
  111. package/dist/components/charts/chart/bubble-chart.d.ts +1 -1
  112. package/dist/components/charts/chart/chart-chrome.d.ts +2 -2
  113. package/dist/components/charts/chart/chart-colors.d.ts +1 -1
  114. package/dist/components/charts/chart/chart-core-loader.d.ts +2 -2
  115. package/dist/components/charts/chart/chart-feature-loader.d.ts +1 -1
  116. package/dist/components/charts/chart/chart-legend-visibility.d.ts +9 -9
  117. package/dist/components/charts/chart/chart-prepared-data.d.ts +7 -5
  118. package/dist/components/charts/chart/chart-prepared-data.js +1 -1
  119. package/dist/components/charts/chart/chart.class.d.ts +35 -35
  120. package/dist/components/charts/chart/chart.class.js +3 -3
  121. package/dist/components/charts/chart/chart.d.ts +1 -1
  122. package/dist/components/charts/chart/doughnut-chart.d.ts +1 -1
  123. package/dist/components/charts/chart/histogram-bin.d.ts +1 -1
  124. package/dist/components/charts/chart/histogram.class.d.ts +2 -2
  125. package/dist/components/charts/chart/histogram.d.ts +1 -1
  126. package/dist/components/charts/chart/line-chart.d.ts +1 -1
  127. package/dist/components/charts/chart/lite-chart.class.d.ts +9 -9
  128. package/dist/components/charts/chart/lite-chart.class.js +1 -1
  129. package/dist/components/charts/chart/lite-chart.d.ts +1 -1
  130. package/dist/components/charts/chart/pie-chart.d.ts +1 -1
  131. package/dist/components/charts/chart/polar-area-chart.d.ts +1 -1
  132. package/dist/components/charts/chart/radar-chart.d.ts +1 -1
  133. package/dist/components/charts/chart/scatter-chart.d.ts +1 -1
  134. package/dist/components/charts/chart-3d/chart-3d-data.d.ts +13 -13
  135. package/dist/components/charts/chart-3d/chart-3d.class.d.ts +8 -8
  136. package/dist/components/conversation/agent-workspace/agent-workspace.class.d.ts +26 -26
  137. package/dist/components/conversation/agent-workspace/agent-workspace.d.ts +1 -1
  138. package/dist/components/conversation/audio-visualizer/audio-visualizer.class.d.ts +3 -3
  139. package/dist/components/conversation/audio-visualizer/audio-visualizer.d.ts +1 -1
  140. package/dist/components/conversation/branch-picker/branch-picker.class.d.ts +2 -2
  141. package/dist/components/conversation/branch-picker/branch-picker.d.ts +1 -1
  142. package/dist/components/conversation/catalog-picker-element.d.ts +20 -20
  143. package/dist/components/conversation/chat-composer/chat-composer-status.d.ts +1 -1
  144. package/dist/components/conversation/chat-composer/chat-composer.class.d.ts +10 -10
  145. package/dist/components/conversation/chat-composer/chat-composer.d.ts +1 -1
  146. package/dist/components/conversation/chat-message/chat-message.class.d.ts +5 -5
  147. package/dist/components/conversation/chat-message/chat-message.d.ts +1 -1
  148. package/dist/components/conversation/chat-viewport/chat-viewport.class.d.ts +1 -1
  149. package/dist/components/conversation/chat-viewport/chat-viewport.d.ts +1 -1
  150. package/dist/components/conversation/checkpoint/checkpoint.class.d.ts +4 -4
  151. package/dist/components/conversation/checkpoint/checkpoint.d.ts +1 -1
  152. package/dist/components/conversation/code-block/code-block-base.class.d.ts +3 -3
  153. package/dist/components/conversation/code-block/code-block-core.class.d.ts +6 -6
  154. package/dist/components/conversation/code-block/code-block-core.d.ts +1 -1
  155. package/dist/components/conversation/code-block/code-block-shared.d.ts +12 -12
  156. package/dist/components/conversation/code-block/code-block.class.d.ts +7 -7
  157. package/dist/components/conversation/code-block/code-block.d.ts +1 -1
  158. package/dist/components/conversation/code-block/shiki-oniguruma.d.ts +1 -1
  159. package/dist/components/conversation/code-block/shiki-types.d.ts +5 -5
  160. package/dist/components/conversation/conversation-item/conversation-item.class.d.ts +2 -2
  161. package/dist/components/conversation/conversation-item/conversation-item.d.ts +1 -1
  162. package/dist/components/conversation/generation-metrics/generation-metrics.class.d.ts +1 -1
  163. package/dist/components/conversation/generation-metrics/generation-metrics.d.ts +1 -1
  164. package/dist/components/conversation/handoff-divider/handoff-divider.d.ts +1 -1
  165. package/dist/components/conversation/markdown/markdown-base.class.d.ts +8 -8
  166. package/dist/components/conversation/markdown/markdown-code-header.d.ts +2 -2
  167. package/dist/components/conversation/markdown/markdown-core.class.d.ts +4 -4
  168. package/dist/components/conversation/markdown/markdown-core.d.ts +1 -1
  169. package/dist/components/conversation/markdown/markdown-fallback-code.d.ts +3 -3
  170. package/dist/components/conversation/markdown/markdown-loader.d.ts +3 -3
  171. package/dist/components/conversation/markdown/markdown-progressive.js +1 -1
  172. package/dist/components/conversation/markdown/markdown-shared.d.ts +24 -24
  173. package/dist/components/conversation/markdown/markdown.class.d.ts +3 -3
  174. package/dist/components/conversation/markdown/markdown.d.ts +1 -1
  175. package/dist/components/conversation/message-actions/message-actions.class.d.ts +2 -2
  176. package/dist/components/conversation/message-actions/message-actions.d.ts +1 -1
  177. package/dist/components/conversation/message-actions/toolbar-actions.d.ts +2 -2
  178. package/dist/components/conversation/message-feedback/message-feedback.class.d.ts +8 -8
  179. package/dist/components/conversation/message-feedback/message-feedback.d.ts +1 -1
  180. package/dist/components/conversation/message-parts/message-parts.class.d.ts +6 -6
  181. package/dist/components/conversation/message-parts/message-parts.d.ts +1 -1
  182. package/dist/components/conversation/model-select/model-select.class.d.ts +9 -9
  183. package/dist/components/conversation/model-select/model-select.d.ts +1 -1
  184. package/dist/components/conversation/model-settings-panel/model-settings-panel.class.d.ts +4 -4
  185. package/dist/components/conversation/model-settings-panel/model-settings-panel.d.ts +1 -1
  186. package/dist/components/conversation/prompt-input/prompt-input.class.d.ts +16 -16
  187. package/dist/components/conversation/prompt-input/prompt-input.d.ts +1 -1
  188. package/dist/components/conversation/prompt-queue/prompt-queue.class.d.ts +3 -3
  189. package/dist/components/conversation/prompt-queue/prompt-queue.d.ts +1 -1
  190. package/dist/components/conversation/push-to-talk/push-to-talk.class.d.ts +3 -3
  191. package/dist/components/conversation/push-to-talk/push-to-talk.d.ts +1 -1
  192. package/dist/components/conversation/realtime-session/realtime-session.d.ts +1 -1
  193. package/dist/components/conversation/selection-toolbar/selection-toolbar.class.d.ts +1 -1
  194. package/dist/components/conversation/selection-toolbar/selection-toolbar.d.ts +1 -1
  195. package/dist/components/conversation/stream-status/stream-status.class.d.ts +5 -5
  196. package/dist/components/conversation/stream-status/stream-status.d.ts +1 -1
  197. package/dist/components/conversation/streaming-text/markdown-detection.d.ts +1 -1
  198. package/dist/components/conversation/streaming-text/streaming-text-core.class.d.ts +1 -1
  199. package/dist/components/conversation/streaming-text/streaming-text-core.d.ts +1 -1
  200. package/dist/components/conversation/streaming-text/streaming-text.class.d.ts +1 -1
  201. package/dist/components/conversation/streaming-text/streaming-text.d.ts +1 -1
  202. package/dist/components/conversation/suggestion-chips/suggestion-chips.class.d.ts +4 -4
  203. package/dist/components/conversation/suggestion-chips/suggestion-chips.d.ts +1 -1
  204. package/dist/components/conversation/thread-list/thread-list.class.d.ts +13 -13
  205. package/dist/components/conversation/thread-list/thread-list.d.ts +1 -1
  206. package/dist/components/conversation/timestamp.d.ts +2 -2
  207. package/dist/components/conversation/transcript-feed/transcript-feed.class.d.ts +3 -3
  208. package/dist/components/conversation/transcript-feed/transcript-feed.d.ts +1 -1
  209. package/dist/components/conversation/typing-indicator/typing-indicator.class.d.ts +1 -1
  210. package/dist/components/conversation/typing-indicator/typing-indicator.d.ts +1 -1
  211. package/dist/components/conversation/usage-badge/usage-badge.class.d.ts +2 -2
  212. package/dist/components/conversation/usage-badge/usage-badge.d.ts +1 -1
  213. package/dist/components/conversation/voice-picker/voice-picker.class.d.ts +10 -10
  214. package/dist/components/conversation/voice-picker/voice-picker.d.ts +1 -1
  215. package/dist/components/conversation/widget-renderer/default-registry.d.ts +1 -1
  216. package/dist/components/conversation/widget-renderer/registry.d.ts +12 -12
  217. package/dist/components/conversation/widget-renderer/resolve.d.ts +7 -7
  218. package/dist/components/conversation/widget-renderer/widget-renderer.class.d.ts +1 -1
  219. package/dist/components/conversation/widget-renderer/widget-renderer.d.ts +1 -1
  220. package/dist/components/data/calendar/calendar.class.d.ts +2 -2
  221. package/dist/components/data/calendar/calendar.d.ts +1 -1
  222. package/dist/components/data/condition-builder/condition-builder.class.d.ts +11 -11
  223. package/dist/components/data/condition-builder/condition-builder.d.ts +1 -1
  224. package/dist/components/data/context-meter/context-meter.class.d.ts +12 -12
  225. package/dist/components/data/context-meter/context-meter.d.ts +1 -1
  226. package/dist/components/data/data-grid/data-grid-types.d.ts +19 -19
  227. package/dist/components/data/data-grid/data-grid.class.d.ts +58 -58
  228. package/dist/components/data/data-grid/data-grid.d.ts +1 -1
  229. package/dist/components/data/document-library/document-library.class.d.ts +12 -12
  230. package/dist/components/data/document-library/document-library.d.ts +1 -1
  231. package/dist/components/data/env-list/env-list.class.d.ts +1 -1
  232. package/dist/components/data/env-list/env-list.d.ts +1 -1
  233. package/dist/components/data/file-tree/file-tree.class.d.ts +6 -4
  234. package/dist/components/data/file-tree/file-tree.class.js +2 -2
  235. package/dist/components/data/file-tree/file-tree.d.ts +1 -1
  236. package/dist/components/data/flow-canvas/flow-canvas.class.d.ts +19 -19
  237. package/dist/components/data/flow-canvas/flow-canvas.d.ts +1 -1
  238. package/dist/components/data/flow-canvas/flow-types.d.ts +12 -12
  239. package/dist/components/data/flow-controls/flow-controls.class.d.ts +1 -1
  240. package/dist/components/data/flow-controls/flow-controls.d.ts +1 -1
  241. package/dist/components/data/flow-minimap/flow-minimap.class.d.ts +1 -1
  242. package/dist/components/data/flow-minimap/flow-minimap.d.ts +1 -1
  243. package/dist/components/data/flow-node/flow-node.class.d.ts +9 -9
  244. package/dist/components/data/flow-node/flow-node.d.ts +1 -1
  245. package/dist/components/data/flow-run-status/flow-run-status.class.d.ts +2 -2
  246. package/dist/components/data/flow-run-status/flow-run-status.d.ts +1 -1
  247. package/dist/components/data/funnel/funnel.class.d.ts +8 -8
  248. package/dist/components/data/funnel/funnel.d.ts +1 -1
  249. package/dist/components/data/gauge/gauge.class.d.ts +2 -2
  250. package/dist/components/data/gauge/gauge.d.ts +1 -1
  251. package/dist/components/data/graph-query-builder/graph-query-builder.class.d.ts +19 -19
  252. package/dist/components/data/graph-query-builder/graph-query-builder.d.ts +1 -1
  253. package/dist/components/data/heatmap/calendar-grid.d.ts +5 -5
  254. package/dist/components/data/heatmap/heatmap-limits.d.ts +5 -5
  255. package/dist/components/data/heatmap/heatmap-matrix-source.d.ts +2 -2
  256. package/dist/components/data/heatmap/heatmap-scale.d.ts +3 -3
  257. package/dist/components/data/heatmap/heatmap.class.d.ts +20 -20
  258. package/dist/components/data/heatmap/heatmap.class.js +1 -1
  259. package/dist/components/data/heatmap/heatmap.d.ts +1 -1
  260. package/dist/components/data/pagination/pagination.class.d.ts +14 -14
  261. package/dist/components/data/pagination/pagination.d.ts +1 -1
  262. package/dist/components/data/sequence-strip/sequence-strip-source.d.ts +2 -2
  263. package/dist/components/data/sequence-strip/sequence-strip.class.d.ts +2 -2
  264. package/dist/components/data/sequence-strip/sequence-strip.d.ts +1 -1
  265. package/dist/components/data/sparkline/sparkline.class.d.ts +8 -8
  266. package/dist/components/data/sparkline/sparkline.d.ts +1 -1
  267. package/dist/components/data/stat/stat.class.d.ts +5 -5
  268. package/dist/components/data/stat/stat.d.ts +1 -1
  269. package/dist/components/data/table/table.class.d.ts +12 -12
  270. package/dist/components/data/table/table.d.ts +1 -1
  271. package/dist/components/data/timeline/timeline-item.d.ts +1 -1
  272. package/dist/components/data/timeline/timeline.class.d.ts +3 -3
  273. package/dist/components/data/timeline/timeline.d.ts +1 -1
  274. package/dist/components/data/tree/tree-item.class.d.ts +9 -9
  275. package/dist/components/data/tree/tree-item.d.ts +1 -1
  276. package/dist/components/data/tree/tree-types.d.ts +7 -7
  277. package/dist/components/data/tree/tree.class.d.ts +4 -4
  278. package/dist/components/data/tree/tree.d.ts +1 -1
  279. package/dist/components/data/word-cloud/word-cloud-layout.d.ts +14 -14
  280. package/dist/components/data/word-cloud/word-cloud.class.d.ts +4 -4
  281. package/dist/components/data/word-cloud/word-cloud.d.ts +1 -1
  282. package/dist/components/forms/button/button.class.d.ts +12 -12
  283. package/dist/components/forms/button/button.d.ts +1 -1
  284. package/dist/components/forms/catalog-picker-base.d.ts +24 -24
  285. package/dist/components/forms/checkbox/checkbox.class.d.ts +9 -9
  286. package/dist/components/forms/checkbox/checkbox.class.js +2 -2
  287. package/dist/components/forms/checkbox/checkbox.d.ts +1 -1
  288. package/dist/components/forms/checkbox-group/checkbox-group.class.d.ts +12 -12
  289. package/dist/components/forms/checkbox-group/checkbox-group.d.ts +1 -1
  290. package/dist/components/forms/code-editor/code-editor.class.d.ts +4 -4
  291. package/dist/components/forms/code-editor/code-editor.d.ts +1 -1
  292. package/dist/components/forms/color-picker/color-core.d.ts +11 -11
  293. package/dist/components/forms/color-picker/color-picker.class.d.ts +13 -13
  294. package/dist/components/forms/color-picker/color-picker.d.ts +1 -1
  295. package/dist/components/forms/combobox/combobox.class.d.ts +27 -27
  296. package/dist/components/forms/combobox/combobox.d.ts +1 -1
  297. package/dist/components/forms/combobox/option.class.d.ts +9 -9
  298. package/dist/components/forms/combobox/option.class.js +2 -2
  299. package/dist/components/forms/combobox/option.d.ts +1 -1
  300. package/dist/components/forms/country-picker/country-picker.class.d.ts +2 -2
  301. package/dist/components/forms/currency-picker/currency-catalog.d.ts +5 -5
  302. package/dist/components/forms/currency-picker/currency-picker.class.d.ts +1 -1
  303. package/dist/components/forms/currency-picker/currency-types.d.ts +1 -1
  304. package/dist/components/forms/date-picker/calendar-core.d.ts +10 -10
  305. package/dist/components/forms/date-picker/date-input.class.d.ts +25 -25
  306. package/dist/components/forms/date-picker/date-input.d.ts +1 -1
  307. package/dist/components/forms/date-picker/date-picker-disabled-dates.d.ts +1 -1
  308. package/dist/components/forms/date-picker/date-picker.class.d.ts +13 -13
  309. package/dist/components/forms/date-picker/date-picker.d.ts +1 -1
  310. package/dist/components/forms/emoji-picker/emoji-picker.class.d.ts +8 -8
  311. package/dist/components/forms/emoji-picker/emoji-picker.d.ts +1 -1
  312. package/dist/components/forms/emoji-picker/emoji-types.d.ts +1 -1
  313. package/dist/components/forms/form-validator.d.ts +3 -3
  314. package/dist/components/forms/icon-button/icon-button.class.d.ts +8 -8
  315. package/dist/components/forms/icon-button/icon-button.d.ts +1 -1
  316. package/dist/components/forms/input/input-shared.d.ts +14 -14
  317. package/dist/components/forms/input/input.class.d.ts +1 -1
  318. package/dist/components/forms/input/input.d.ts +1 -1
  319. package/dist/components/forms/input/native-time-input.class.d.ts +3 -3
  320. package/dist/components/forms/input/native-time-input.d.ts +1 -1
  321. package/dist/components/forms/input/number-input.class.d.ts +6 -6
  322. package/dist/components/forms/input/number-input.d.ts +1 -1
  323. package/dist/components/forms/input/time-input-shared.d.ts +7 -7
  324. package/dist/components/forms/input/time-input.class.d.ts +9 -9
  325. package/dist/components/forms/input/time-input.class.js +1 -1
  326. package/dist/components/forms/input/time-input.d.ts +1 -1
  327. package/dist/components/forms/locale-picker/locale-picker.class.d.ts +23 -18
  328. package/dist/components/forms/locale-picker/locale-picker.class.js +1 -1
  329. package/dist/components/forms/locale-picker/locale-picker.d.ts +1 -1
  330. package/dist/components/forms/otp-input/otp-input.class.d.ts +24 -24
  331. package/dist/components/forms/otp-input/otp-input.d.ts +1 -1
  332. package/dist/components/forms/phone-input/phone-input.class.d.ts +19 -19
  333. package/dist/components/forms/phone-input/phone-input.d.ts +1 -1
  334. package/dist/components/forms/phone-input/phone-number-adapter.d.ts +10 -10
  335. package/dist/components/forms/radio/radio-button.d.ts +1 -1
  336. package/dist/components/forms/radio/radio-group.class.d.ts +9 -9
  337. package/dist/components/forms/radio/radio-group.d.ts +1 -1
  338. package/dist/components/forms/radio/radio.class.d.ts +9 -9
  339. package/dist/components/forms/radio/radio.class.js +1 -1
  340. package/dist/components/forms/radio/radio.d.ts +1 -1
  341. package/dist/components/forms/rubric-form/rubric-form.class.d.ts +10 -10
  342. package/dist/components/forms/rubric-form/rubric-form.d.ts +1 -1
  343. package/dist/components/forms/select/select.class.d.ts +15 -15
  344. package/dist/components/forms/select/select.class.js +1 -1
  345. package/dist/components/forms/select/select.d.ts +1 -1
  346. package/dist/components/forms/signature-pad/signature-pad-limits.d.ts +2 -2
  347. package/dist/components/forms/signature-pad/signature-pad.class.d.ts +9 -9
  348. package/dist/components/forms/slider/slider.class.d.ts +21 -21
  349. package/dist/components/forms/slider/slider.class.js +1 -1
  350. package/dist/components/forms/slider/slider.d.ts +1 -1
  351. package/dist/components/forms/swatch-picker/swatch-picker.class.d.ts +5 -5
  352. package/dist/components/forms/swatch-picker/swatch-picker.d.ts +1 -1
  353. package/dist/components/forms/switch/switch.class.d.ts +7 -7
  354. package/dist/components/forms/switch/switch.class.js +1 -1
  355. package/dist/components/forms/switch/switch.d.ts +1 -1
  356. package/dist/components/forms/textarea/textarea.class.d.ts +10 -10
  357. package/dist/components/forms/textarea/textarea.d.ts +1 -1
  358. package/dist/components/forms/time-range/time-range.class.d.ts +4 -4
  359. package/dist/components/forms/time-range/time-range.d.ts +1 -1
  360. package/dist/components/forms/time-zone-picker/time-zone-picker.class.d.ts +1 -1
  361. package/dist/components/forms/toggle/toggle.class.d.ts +10 -10
  362. package/dist/components/forms/toggle/toggle.d.ts +1 -1
  363. package/dist/components/forms/toggle-group/toggle-group.class.d.ts +11 -11
  364. package/dist/components/forms/toggle-group/toggle-group.d.ts +1 -1
  365. package/dist/components/forms/token-input/token-input.class.d.ts +12 -12
  366. package/dist/components/forms/token-input/token-input.d.ts +1 -1
  367. package/dist/components/forms/unit-picker/unit-picker.class.d.ts +1 -1
  368. package/dist/components/layout/app-rail/app-rail-item.class.d.ts +5 -5
  369. package/dist/components/layout/app-rail/app-rail-item.d.ts +1 -1
  370. package/dist/components/layout/app-rail/app-rail-mode.d.ts +4 -4
  371. package/dist/components/layout/app-rail/app-rail.class.d.ts +4 -4
  372. package/dist/components/layout/app-rail/app-rail.d.ts +1 -1
  373. package/dist/components/layout/app-rail-group/app-rail-group.class.d.ts +3 -3
  374. package/dist/components/layout/app-rail-group/app-rail-group.d.ts +1 -1
  375. package/dist/components/layout/breadcrumb/breadcrumb-item.class.d.ts +2 -2
  376. package/dist/components/layout/breadcrumb/breadcrumb-item.d.ts +1 -1
  377. package/dist/components/layout/breadcrumb/breadcrumb.d.ts +1 -1
  378. package/dist/components/layout/button-group/button-group.class.d.ts +2 -2
  379. package/dist/components/layout/button-group/button-group.d.ts +1 -1
  380. package/dist/components/layout/card/card.class.d.ts +1 -1
  381. package/dist/components/layout/card/card.d.ts +1 -1
  382. package/dist/components/layout/carousel/carousel-item.d.ts +1 -1
  383. package/dist/components/layout/carousel/carousel.class.d.ts +5 -5
  384. package/dist/components/layout/command-palette/command-palette.class.d.ts +7 -7
  385. package/dist/components/layout/command-palette/command-palette.d.ts +1 -1
  386. package/dist/components/layout/control-group/control-group.d.ts +1 -1
  387. package/dist/components/layout/dashboard-grid/dashboard-grid.class.d.ts +3 -3
  388. package/dist/components/layout/dashboard-grid/dashboard-grid.d.ts +1 -1
  389. package/dist/components/layout/dashboard-grid/layout-types.d.ts +12 -12
  390. package/dist/components/layout/details/accordion-item.class.d.ts +10 -10
  391. package/dist/components/layout/details/accordion-item.d.ts +1 -1
  392. package/dist/components/layout/details/accordion-types.d.ts +2 -2
  393. package/dist/components/layout/details/accordion.class.d.ts +5 -5
  394. package/dist/components/layout/details/accordion.d.ts +1 -1
  395. package/dist/components/layout/details/details.class.d.ts +9 -9
  396. package/dist/components/layout/details/details.d.ts +1 -1
  397. package/dist/components/layout/dock-panel/dock-panel.class.d.ts +4 -4
  398. package/dist/components/layout/dock-panel/dock-panel.d.ts +1 -1
  399. package/dist/components/layout/drilldown-panel/drilldown-panel.class.d.ts +8 -8
  400. package/dist/components/layout/drilldown-panel/drilldown-panel.d.ts +1 -1
  401. package/dist/components/layout/filter-bar/filter-bar.class.d.ts +12 -12
  402. package/dist/components/layout/filter-bar/filter-bar.d.ts +1 -1
  403. package/dist/components/layout/menu/dropdown-item.class.d.ts +1 -1
  404. package/dist/components/layout/menu/dropdown-item.d.ts +1 -1
  405. package/dist/components/layout/menu/menu-item.class.d.ts +6 -6
  406. package/dist/components/layout/menu/menu-item.d.ts +1 -1
  407. package/dist/components/layout/menu/menu-label.d.ts +1 -1
  408. package/dist/components/layout/menu/menu.d.ts +1 -1
  409. package/dist/components/layout/menubar/menubar-item.class.d.ts +1 -1
  410. package/dist/components/layout/menubar/menubar-item.d.ts +1 -1
  411. package/dist/components/layout/menubar/menubar.class.d.ts +2 -2
  412. package/dist/components/layout/menubar/menubar.d.ts +1 -1
  413. package/dist/components/layout/multi-split/multi-split.class.d.ts +4 -4
  414. package/dist/components/layout/multi-split/multi-split.d.ts +1 -1
  415. package/dist/components/layout/navigation-menu/navigation-menu.class.d.ts +9 -9
  416. package/dist/components/layout/navigation-menu/navigation-menu.d.ts +1 -1
  417. package/dist/components/layout/navigation-menu-item/navigation-menu-item.class.d.ts +5 -5
  418. package/dist/components/layout/navigation-menu-item/navigation-menu-item.d.ts +1 -1
  419. package/dist/components/layout/page/page.class.d.ts +9 -9
  420. package/dist/components/layout/page/page.d.ts +1 -1
  421. package/dist/components/layout/reorder-list/reorder-item.class.d.ts +2 -2
  422. package/dist/components/layout/reorder-list/reorder-item.d.ts +1 -1
  423. package/dist/components/layout/reorder-list/reorder-list.d.ts +1 -1
  424. package/dist/components/layout/responsive-panel/responsive-panel-mode.d.ts +3 -3
  425. package/dist/components/layout/responsive-panel/responsive-panel.class.d.ts +4 -4
  426. package/dist/components/layout/responsive-panel/responsive-panel.d.ts +1 -1
  427. package/dist/components/layout/scroller/scroller.class.d.ts +2 -2
  428. package/dist/components/layout/scroller/scroller.d.ts +1 -1
  429. package/dist/components/layout/segmented/segmented.class.d.ts +2 -2
  430. package/dist/components/layout/segmented/segmented.d.ts +1 -1
  431. package/dist/components/layout/split-panel/split-panel-snap.d.ts +4 -4
  432. package/dist/components/layout/split-panel/split-panel.class.d.ts +11 -11
  433. package/dist/components/layout/split-panel/split-panel.d.ts +1 -1
  434. package/dist/components/layout/stepper/stepper.class.d.ts +4 -4
  435. package/dist/components/layout/stepper/stepper.d.ts +1 -1
  436. package/dist/components/layout/tab-group/tab-group.class.d.ts +4 -4
  437. package/dist/components/layout/tab-group/tab-group.d.ts +1 -1
  438. package/dist/components/layout/tab-group/tab-panel.class.d.ts +1 -1
  439. package/dist/components/layout/tab-group/tab-panel.d.ts +1 -1
  440. package/dist/components/layout/tab-group/tab.class.d.ts +2 -2
  441. package/dist/components/layout/tab-group/tab.d.ts +1 -1
  442. package/dist/components/layout/virtual-list/virtual-list-attributes.d.ts +2 -2
  443. package/dist/components/layout/virtual-list/virtual-list-limits.d.ts +1 -1
  444. package/dist/components/layout/virtual-list/virtual-list.class.d.ts +12 -12
  445. package/dist/components/layout/virtual-list/virtual-list.d.ts +1 -1
  446. package/dist/components/layout/widget/widget.class.d.ts +3 -3
  447. package/dist/components/layout/widget/widget.d.ts +1 -1
  448. package/dist/components/lr-map-anchor.js +1 -0
  449. package/dist/components/media/animated-image/animated-image.class.d.ts +4 -4
  450. package/dist/components/media/animated-image/animated-image.d.ts +1 -1
  451. package/dist/components/media/animation/animation-catalog.d.ts +3 -3
  452. package/dist/components/media/animation/animation.class.d.ts +5 -5
  453. package/dist/components/media/animation/animation.d.ts +1 -1
  454. package/dist/components/media/attachment-chip/attachment-chip.class.d.ts +5 -5
  455. package/dist/components/media/attachment-chip/attachment-chip.d.ts +1 -1
  456. package/dist/components/media/attachment-chip/file-size.d.ts +2 -2
  457. package/dist/components/media/attachment-trigger/attachment-trigger.class.d.ts +1 -1
  458. package/dist/components/media/attachment-trigger/attachment-trigger.d.ts +1 -1
  459. package/dist/components/media/av-player/av-cue-source.d.ts +3 -3
  460. package/dist/components/media/av-player/av-player.class.d.ts +10 -10
  461. package/dist/components/media/av-player/av-player.d.ts +1 -1
  462. package/dist/components/media/avatar/avatar.d.ts +1 -1
  463. package/dist/components/media/avatar-group/avatar-group.class.d.ts +2 -2
  464. package/dist/components/media/avatar-group/avatar-group.d.ts +1 -1
  465. package/dist/components/media/drop-zone/drop-zone.class.d.ts +3 -3
  466. package/dist/components/media/drop-zone/drop-zone.d.ts +1 -1
  467. package/dist/components/media/file-icon/file-icon.class.d.ts +5 -5
  468. package/dist/components/media/file-icon/file-icon.d.ts +1 -1
  469. package/dist/components/media/file-icon/file-type-metadata.d.ts +3 -3
  470. package/dist/components/media/file-input/file-input.class.d.ts +16 -16
  471. package/dist/components/media/file-input/file-input.d.ts +1 -1
  472. package/dist/components/media/file-input/file-intake.d.ts +6 -6
  473. package/dist/components/media/flag/flag-url-resolver.d.ts +1 -1
  474. package/dist/components/media/flag/flag.class.d.ts +4 -4
  475. package/dist/components/media/flag/flag.d.ts +1 -1
  476. package/dist/components/media/image-comparer/image-comparer.class.d.ts +3 -3
  477. package/dist/components/media/image-viewer/image-viewer-limits.d.ts +1 -1
  478. package/dist/components/media/image-viewer/image-viewer-panorama.d.ts +2 -2
  479. package/dist/components/media/image-viewer/image-viewer.class.d.ts +11 -11
  480. package/dist/components/media/image-viewer/image-viewer.d.ts +1 -1
  481. package/dist/components/media/index.d.ts +1 -1
  482. package/dist/components/media/index.js +1 -1
  483. package/dist/components/media/lightbox/lightbox-types.d.ts +2 -2
  484. package/dist/components/media/lightbox/lightbox.class.d.ts +9 -9
  485. package/dist/components/media/lightbox/lightbox.d.ts +1 -1
  486. package/dist/components/media/map/map-anchor-controller.js +1 -1
  487. package/dist/components/media/map/map-anchor-options.d.ts +3 -3
  488. package/dist/components/media/map/map-anchor-seam.js +1 -0
  489. package/dist/components/media/map/map-anchor.class.d.ts +79 -0
  490. package/dist/components/media/map/map-anchor.class.js +3 -0
  491. package/dist/components/media/map/map-anchor.d.ts +1 -0
  492. package/dist/components/media/map/map-anchor.js +1 -0
  493. package/dist/components/media/map/map-anchor.styles.js +1 -0
  494. package/dist/components/media/map/map-basemap-order.js +1 -0
  495. package/dist/components/media/map/map-camera.d.ts +9 -9
  496. package/dist/components/media/map/map-construction-scheduler.d.ts +5 -5
  497. package/dist/components/media/map/map-control-options.d.ts +16 -16
  498. package/dist/components/media/map/map-data-layer-model.d.ts +18 -18
  499. package/dist/components/media/map/map-drawing.d.ts +4 -4
  500. package/dist/components/media/map/map-empty-style.d.ts +1 -1
  501. package/dist/components/media/map/map-feature-state-router.d.ts +5 -5
  502. package/dist/components/media/map/map-feature-state.d.ts +4 -4
  503. package/dist/components/media/map/map-geojson-diff.d.ts +4 -4
  504. package/dist/components/media/map/map-hit-test.d.ts +4 -4
  505. package/dist/components/media/map/map-image-admission.d.ts +3 -3
  506. package/dist/components/media/map/map-image-export-error.d.ts +1 -1
  507. package/dist/components/media/map/map-image-export.d.ts +4 -4
  508. package/dist/components/media/map/map-image-provider.d.ts +9 -9
  509. package/dist/components/media/map/map-images.d.ts +4 -4
  510. package/dist/components/media/map/map-interaction-options.d.ts +8 -8
  511. package/dist/components/media/map/map-layer-order.js +1 -1
  512. package/dist/components/media/map/map-loader.d.ts +25 -25
  513. package/dist/components/media/map/map-overlay-admission.d.ts +1 -1
  514. package/dist/components/media/map/map-owned-features.js +1 -1
  515. package/dist/components/media/map/map-style-override-admission.d.ts +8 -5
  516. package/dist/components/media/map/map-style-override-admission.js +1 -1
  517. package/dist/components/media/map/map-style-value.d.ts +1 -1
  518. package/dist/components/media/map/map-vector-style.d.ts +3 -3
  519. package/dist/components/media/map/map.class.d.ts +125 -107
  520. package/dist/components/media/map/map.class.js +4 -3
  521. package/dist/components/media/map/map.d.ts +1 -1
  522. package/dist/components/media/map/map.styles.js +1 -1
  523. package/dist/components/media/media-card/media-card.class.d.ts +3 -3
  524. package/dist/components/media/media-card/media-card.d.ts +1 -1
  525. package/dist/components/media/pan-zoom/pan-zoom.class.d.ts +5 -5
  526. package/dist/components/media/qr-code/qr-code.class.d.ts +6 -6
  527. package/dist/components/media/qr-code/qr-code.d.ts +1 -1
  528. package/dist/components/media/sequence-playback/sequence-playback.class.d.ts +13 -13
  529. package/dist/components/media/sequence-playback/sequence-playback.d.ts +1 -1
  530. package/dist/components/media/video/video.class.d.ts +34 -34
  531. package/dist/components/media/video/video.d.ts +1 -1
  532. package/dist/components/media/video-playlist/video-playlist.class.d.ts +8 -8
  533. package/dist/components/media/video-playlist/video-playlist.d.ts +1 -1
  534. package/dist/components/media/zoomable-frame/zoomable-frame.class.d.ts +15 -15
  535. package/dist/components/overlays/alert/alert.class.d.ts +6 -6
  536. package/dist/components/overlays/alert/alert.d.ts +1 -1
  537. package/dist/components/overlays/badge/badge.class.d.ts +3 -3
  538. package/dist/components/overlays/badge/badge.d.ts +1 -1
  539. package/dist/components/overlays/badge/tag.class.d.ts +5 -5
  540. package/dist/components/overlays/badge/tag.d.ts +1 -1
  541. package/dist/components/overlays/callout/callout.class.d.ts +4 -4
  542. package/dist/components/overlays/callout/callout.d.ts +1 -1
  543. package/dist/components/overlays/chip/chip-group.d.ts +1 -1
  544. package/dist/components/overlays/chip/chip.class.d.ts +6 -6
  545. package/dist/components/overlays/chip/chip.d.ts +1 -1
  546. package/dist/components/overlays/context-menu/context-menu.class.d.ts +6 -6
  547. package/dist/components/overlays/context-menu/context-menu.d.ts +1 -1
  548. package/dist/components/overlays/dialog/confirm.d.ts +5 -5
  549. package/dist/components/overlays/dialog/dialog.class.d.ts +8 -8
  550. package/dist/components/overlays/dialog/dialog.class.js +1 -1
  551. package/dist/components/overlays/dialog/dialog.d.ts +1 -1
  552. package/dist/components/overlays/drawer/drawer.class.d.ts +1 -1
  553. package/dist/components/overlays/drawer/drawer.d.ts +1 -1
  554. package/dist/components/overlays/empty/empty.class.d.ts +2 -2
  555. package/dist/components/overlays/empty/empty.d.ts +1 -1
  556. package/dist/components/overlays/kbd/kbd.class.d.ts +3 -3
  557. package/dist/components/overlays/kbd/kbd.d.ts +1 -1
  558. package/dist/components/overlays/overlay/dropdown.class.d.ts +10 -10
  559. package/dist/components/overlays/overlay/dropdown.d.ts +1 -1
  560. package/dist/components/overlays/overlay/overlay-arrow.d.ts +5 -5
  561. package/dist/components/overlays/overlay/overlay-shared.d.ts +6 -6
  562. package/dist/components/overlays/overlay/popover.class.d.ts +14 -14
  563. package/dist/components/overlays/overlay/popover.d.ts +1 -1
  564. package/dist/components/overlays/overlay/tooltip.class.d.ts +5 -5
  565. package/dist/components/overlays/overlay/tooltip.d.ts +1 -1
  566. package/dist/components/overlays/popup/popup.class.d.ts +20 -20
  567. package/dist/components/overlays/popup/popup.d.ts +1 -1
  568. package/dist/components/overlays/progress/progress-bar.class.d.ts +1 -1
  569. package/dist/components/overlays/progress/progress-bar.d.ts +1 -1
  570. package/dist/components/overlays/progress/progress-base.d.ts +6 -6
  571. package/dist/components/overlays/progress/progress-ring.class.d.ts +2 -2
  572. package/dist/components/overlays/progress/progress-ring.d.ts +1 -1
  573. package/dist/components/overlays/rating/rating.class.d.ts +10 -10
  574. package/dist/components/overlays/rating/rating.d.ts +1 -1
  575. package/dist/components/overlays/skeleton/skeleton.class.d.ts +1 -1
  576. package/dist/components/overlays/skeleton/skeleton.d.ts +1 -1
  577. package/dist/components/overlays/spinner/spinner.d.ts +1 -1
  578. package/dist/components/overlays/toast/toast-item.class.d.ts +6 -6
  579. package/dist/components/overlays/toast/toast-item.d.ts +1 -1
  580. package/dist/components/overlays/toast/toast.class.d.ts +7 -7
  581. package/dist/components/overlays/toast/toast.d.ts +1 -1
  582. package/dist/components/overlays/toast/toaster.d.ts +2 -2
  583. package/dist/components/retrieval/chunk-inspector/chunk-inspector.class.d.ts +11 -11
  584. package/dist/components/retrieval/chunk-inspector/chunk-inspector.d.ts +1 -1
  585. package/dist/components/retrieval/citation-badge/citation-badge.class.d.ts +1 -1
  586. package/dist/components/retrieval/citation-badge/citation-badge.d.ts +1 -1
  587. package/dist/components/retrieval/claim-evidence/claim-evidence.class.d.ts +5 -5
  588. package/dist/components/retrieval/claim-evidence/claim-evidence.d.ts +1 -1
  589. package/dist/components/retrieval/community-card/community-card.class.d.ts +4 -4
  590. package/dist/components/retrieval/community-card/community-card.d.ts +1 -1
  591. package/dist/components/retrieval/embedding-explorer/embedding-explorer-data.d.ts +4 -4
  592. package/dist/components/retrieval/embedding-explorer/embedding-explorer.class.d.ts +3 -3
  593. package/dist/components/retrieval/embedding-explorer/embedding-explorer.d.ts +1 -1
  594. package/dist/components/retrieval/entity-card/entity-card.class.d.ts +7 -7
  595. package/dist/components/retrieval/entity-card/entity-card.d.ts +1 -1
  596. package/dist/components/retrieval/entity-chip/entity-chip.class.d.ts +2 -2
  597. package/dist/components/retrieval/entity-chip/entity-chip.d.ts +1 -1
  598. package/dist/components/retrieval/entity-dossier/entity-dossier.class.d.ts +10 -10
  599. package/dist/components/retrieval/entity-dossier/entity-dossier.d.ts +1 -1
  600. package/dist/components/retrieval/graph/graph-loader.d.ts +1 -1
  601. package/dist/components/retrieval/graph/graph-model.d.ts +16 -16
  602. package/dist/components/retrieval/graph/graph.class.d.ts +20 -20
  603. package/dist/components/retrieval/graph/graph.d.ts +1 -1
  604. package/dist/components/retrieval/graph-legend/graph-legend.class.d.ts +4 -4
  605. package/dist/components/retrieval/graph-legend/graph-legend.d.ts +1 -1
  606. package/dist/components/retrieval/grounding-summary/grounding-summary.class.d.ts +5 -5
  607. package/dist/components/retrieval/grounding-summary/grounding-summary.d.ts +1 -1
  608. package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.d.ts +9 -9
  609. package/dist/components/retrieval/ingestion-queue/ingestion-queue.d.ts +1 -1
  610. package/dist/components/retrieval/knowledge-base/knowledge-base.class.d.ts +16 -16
  611. package/dist/components/retrieval/knowledge-base/knowledge-base.d.ts +1 -1
  612. package/dist/components/retrieval/knowledge-base-admin/knowledge-base-admin.class.d.ts +3 -3
  613. package/dist/components/retrieval/knowledge-base-admin/knowledge-base-admin.d.ts +1 -1
  614. package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.d.ts +11 -11
  615. package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.d.ts +1 -1
  616. package/dist/components/retrieval/memory-panel/memory-panel.class.d.ts +10 -10
  617. package/dist/components/retrieval/memory-panel/memory-panel.d.ts +1 -1
  618. package/dist/components/retrieval/mind-map/mind-map-layout.d.ts +6 -6
  619. package/dist/components/retrieval/mind-map/mind-map.class.d.ts +1 -1
  620. package/dist/components/retrieval/mind-map/mind-map.d.ts +1 -1
  621. package/dist/components/retrieval/neighbor-list/neighbor-list.class.d.ts +13 -13
  622. package/dist/components/retrieval/neighbor-list/neighbor-list.class.js +2 -2
  623. package/dist/components/retrieval/neighbor-list/neighbor-list.d.ts +1 -1
  624. package/dist/components/retrieval/node-palette/node-palette.class.d.ts +5 -5
  625. package/dist/components/retrieval/node-palette/node-palette.d.ts +1 -1
  626. package/dist/components/retrieval/path-strip/path-strip.class.d.ts +1 -1
  627. package/dist/components/retrieval/path-strip/path-strip.d.ts +1 -1
  628. package/dist/components/retrieval/provenance-panel/provenance-panel.class.d.ts +3 -3
  629. package/dist/components/retrieval/provenance-panel/provenance-panel.d.ts +1 -1
  630. package/dist/components/retrieval/rag-answer/rag-answer.class.d.ts +7 -7
  631. package/dist/components/retrieval/rag-answer/rag-answer.d.ts +1 -1
  632. package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.class.d.ts +4 -4
  633. package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.d.ts +1 -1
  634. package/dist/components/retrieval/research-progress/research-progress.class.d.ts +6 -6
  635. package/dist/components/retrieval/research-progress/research-progress.d.ts +1 -1
  636. package/dist/components/retrieval/retrieval-compare/retrieval-compare.class.d.ts +4 -4
  637. package/dist/components/retrieval/retrieval-compare/retrieval-compare.d.ts +1 -1
  638. package/dist/components/retrieval/retrieval-results/retrieval-results.class.d.ts +8 -8
  639. package/dist/components/retrieval/retrieval-results/retrieval-results.d.ts +1 -1
  640. package/dist/components/retrieval/retrieval-search/retrieval-search.d.ts +1 -1
  641. package/dist/components/retrieval/retrieval-trace/retrieval-trace.class.d.ts +14 -14
  642. package/dist/components/retrieval/retrieval-trace/retrieval-trace.d.ts +1 -1
  643. package/dist/components/retrieval/source-card/source-card.class.d.ts +3 -3
  644. package/dist/components/retrieval/source-card/source-card.d.ts +1 -1
  645. package/dist/components/retrieval/source-list/source-list.class.d.ts +1 -1
  646. package/dist/components/retrieval/source-list/source-list.d.ts +1 -1
  647. package/dist/components/retrieval/source-picker/source-picker.class.d.ts +4 -4
  648. package/dist/components/retrieval/source-picker/source-picker.d.ts +1 -1
  649. package/dist/components/utility/copy-button/copy-button.class.d.ts +8 -8
  650. package/dist/components/utility/copy-button/copy-button.d.ts +1 -1
  651. package/dist/components/utility/diff-view/diff-line-diff.d.ts +1 -1
  652. package/dist/components/utility/diff-view/diff-view.class.d.ts +3 -3
  653. package/dist/components/utility/diff-view/diff-view.d.ts +1 -1
  654. package/dist/components/utility/divider/divider.class.d.ts +1 -1
  655. package/dist/components/utility/divider/divider.d.ts +1 -1
  656. package/dist/components/utility/export-button/csv.d.ts +2 -2
  657. package/dist/components/utility/export-button/export-button.class.d.ts +11 -11
  658. package/dist/components/utility/export-button/export-button.d.ts +1 -1
  659. package/dist/components/utility/format/format-bytes.d.ts +1 -1
  660. package/dist/components/utility/format/format-date.class.d.ts +1 -1
  661. package/dist/components/utility/format/format-date.d.ts +1 -1
  662. package/dist/components/utility/format/format-number.class.d.ts +2 -2
  663. package/dist/components/utility/format/format-number.d.ts +1 -1
  664. package/dist/components/utility/format/format-options.d.ts +4 -4
  665. package/dist/components/utility/format/relative-time.d.ts +1 -1
  666. package/dist/components/utility/icon/icon-library.d.ts +2 -2
  667. package/dist/components/utility/icon/icon.class.d.ts +10 -10
  668. package/dist/components/utility/icon/icon.d.ts +1 -1
  669. package/dist/components/utility/intersection-observer/intersection-observer.class.d.ts +1 -1
  670. package/dist/components/utility/intersection-observer/intersection-observer.d.ts +1 -1
  671. package/dist/components/utility/json-viewer/json-viewer.class.d.ts +5 -5
  672. package/dist/components/utility/json-viewer/json-viewer.d.ts +1 -1
  673. package/dist/components/utility/known-date/known-date.class.d.ts +18 -18
  674. package/dist/components/utility/known-date/known-date.d.ts +1 -1
  675. package/dist/components/utility/live-region/live-region.class.d.ts +1 -1
  676. package/dist/components/utility/live-region/live-region.d.ts +1 -1
  677. package/dist/components/utility/mention-popover/mention-popover.class.d.ts +9 -9
  678. package/dist/components/utility/mention-popover/mention-popover.d.ts +1 -1
  679. package/dist/components/utility/mutation-observer/mutation-observer.class.d.ts +1 -1
  680. package/dist/components/utility/mutation-observer/mutation-observer.d.ts +1 -1
  681. package/dist/components/utility/poll-status/poll-status.class.d.ts +1 -1
  682. package/dist/components/utility/poll-status/poll-status.d.ts +1 -1
  683. package/dist/components/utility/random-content/random-content.class.d.ts +4 -4
  684. package/dist/components/utility/random-content/random-content.d.ts +1 -1
  685. package/dist/components/utility/resize-observer/resize-observer.d.ts +1 -1
  686. package/dist/components/utility/tour/tour.class.d.ts +8 -8
  687. package/dist/components/utility/tour/tour.d.ts +1 -1
  688. package/dist/components/utility/visually-hidden/visually-hidden.d.ts +1 -1
  689. package/dist/components/viewers/archive-viewer/archive-viewer.class.d.ts +3 -3
  690. package/dist/components/viewers/archive-viewer/archive-viewer.d.ts +1 -1
  691. package/dist/components/viewers/calendar-viewer/calendar-loader.d.ts +1 -1
  692. package/dist/components/viewers/calendar-viewer/calendar-viewer.class.d.ts +6 -6
  693. package/dist/components/viewers/calendar-viewer/calendar-viewer.d.ts +1 -1
  694. package/dist/components/viewers/contact-viewer/contact-viewer.class.d.ts +4 -4
  695. package/dist/components/viewers/contact-viewer/contact-viewer.d.ts +1 -1
  696. package/dist/components/viewers/contact-viewer/vcard.d.ts +1 -1
  697. package/dist/components/viewers/csv-viewer/csv-viewer.class.d.ts +7 -7
  698. package/dist/components/viewers/csv-viewer/csv-viewer.d.ts +1 -1
  699. package/dist/components/viewers/dataset-viewer/dataset-viewer.class.d.ts +8 -8
  700. package/dist/components/viewers/dataset-viewer/dataset-viewer.d.ts +1 -1
  701. package/dist/components/viewers/document-compare/document-compare.class.d.ts +15 -15
  702. package/dist/components/viewers/document-compare/document-compare.d.ts +1 -1
  703. package/dist/components/viewers/document-preview/document-preview.class.d.ts +1 -1
  704. package/dist/components/viewers/document-preview/document-preview.d.ts +1 -1
  705. package/dist/components/viewers/document-viewer/anchors.d.ts +7 -7
  706. package/dist/components/viewers/document-viewer/document-viewer.class.d.ts +9 -9
  707. package/dist/components/viewers/document-viewer/document-viewer.d.ts +1 -1
  708. package/dist/components/viewers/docx-viewer/docx-viewer.class.d.ts +4 -4
  709. package/dist/components/viewers/docx-viewer/docx-viewer.d.ts +1 -1
  710. package/dist/components/viewers/ebook-viewer/ebook-viewer.class.d.ts +2 -2
  711. package/dist/components/viewers/ebook-viewer/ebook-viewer.d.ts +1 -1
  712. package/dist/components/viewers/email-viewer/email-loader.d.ts +2 -2
  713. package/dist/components/viewers/email-viewer/email-viewer.class.d.ts +3 -3
  714. package/dist/components/viewers/email-viewer/email-viewer.d.ts +1 -1
  715. package/dist/components/viewers/geojson-view/geojson-viewer.class.d.ts +2 -2
  716. package/dist/components/viewers/geojson-view/geojson-viewer.d.ts +1 -1
  717. package/dist/components/viewers/highlight-layer/highlight-layer.class.d.ts +1 -1
  718. package/dist/components/viewers/highlight-layer/highlight-layer.d.ts +1 -1
  719. package/dist/components/viewers/html-viewer/html-viewer.class.d.ts +5 -5
  720. package/dist/components/viewers/html-viewer/html-viewer.d.ts +1 -1
  721. package/dist/components/viewers/include/include-resource.d.ts +1 -1
  722. package/dist/components/viewers/include/include.class.d.ts +2 -2
  723. package/dist/components/viewers/include/include.d.ts +1 -1
  724. package/dist/components/viewers/model-viewer/model-viewer-loader.js +1 -1
  725. package/dist/components/viewers/model-viewer/model-viewer.class.d.ts +6 -6
  726. package/dist/components/viewers/model-viewer/model-viewer.class.js +1 -1
  727. package/dist/components/viewers/notebook-viewer/notebook-viewer.class.d.ts +3 -3
  728. package/dist/components/viewers/notebook-viewer/notebook-viewer.d.ts +1 -1
  729. package/dist/components/viewers/page-rail/page-rail.class.d.ts +5 -5
  730. package/dist/components/viewers/page-rail/page-rail.d.ts +1 -1
  731. package/dist/components/viewers/page-rail/page-viewer-snapshot.d.ts +2 -2
  732. package/dist/components/viewers/pdf-viewer/pdf-viewer.class.d.ts +4 -4
  733. package/dist/components/viewers/pdf-viewer/pdf-viewer.d.ts +1 -1
  734. package/dist/components/viewers/pptx-viewer/pptx-loader.d.ts +5 -5
  735. package/dist/components/viewers/pptx-viewer/pptx-viewer.class.d.ts +18 -18
  736. package/dist/components/viewers/pptx-viewer/pptx-viewer.class.js +1 -1
  737. package/dist/components/viewers/pptx-viewer/pptx-viewer.d.ts +1 -1
  738. package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer.class.d.ts +9 -9
  739. package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer.d.ts +1 -1
  740. package/dist/components/viewers/svg-viewer/svg-viewer.class.d.ts +1 -1
  741. package/dist/components/viewers/svg-viewer/svg-viewer.d.ts +1 -1
  742. package/dist/components/viewers/viewer-diagnostics.d.ts +3 -3
  743. package/dist/components/viewers/viewer-source.d.ts +2 -2
  744. package/dist/components/viewers/xml-viewer/xml-viewer.class.d.ts +9 -9
  745. package/dist/components/viewers/xml-viewer/xml-viewer.d.ts +1 -1
  746. package/dist/countries.d.ts +3 -3
  747. package/dist/currency.d.ts +5 -5
  748. package/dist/custom-elements-jsx.d.ts +1 -1
  749. package/dist/data-sources.d.ts +17 -17
  750. package/dist/events.d.ts +28 -28
  751. package/dist/framework-types.d.ts +4 -4
  752. package/dist/internal/a11y.d.ts +2 -2
  753. package/dist/internal/accessibility-visibility.d.ts +17 -17
  754. package/dist/internal/accessible-text-controller.js +1 -1
  755. package/dist/internal/active-element.d.ts +1 -1
  756. package/dist/internal/anchor-target.d.ts +3 -3
  757. package/dist/internal/anchored-overlay-runtime.js +1 -1
  758. package/dist/internal/announcer.d.ts +18 -18
  759. package/dist/internal/ansi.d.ts +2 -2
  760. package/dist/internal/approval-wait-until.d.ts +1 -1
  761. package/dist/internal/autoloader-tags.d.ts +1 -1
  762. package/dist/internal/autoloader-tags.js +1 -1
  763. package/dist/internal/av-metadata.d.ts +4 -4
  764. package/dist/internal/canvas-color.d.ts +1 -1
  765. package/dist/internal/catalog-picker.d.ts +1 -1
  766. package/dist/internal/clipboard.d.ts +5 -5
  767. package/dist/internal/component-loaders.generated.js +1 -1
  768. package/dist/internal/composed-tree.d.ts +2 -2
  769. package/dist/internal/converters.d.ts +10 -10
  770. package/dist/internal/css-length.d.ts +1 -1
  771. package/dist/internal/custom-element-upgrade-observer.d.ts +1 -1
  772. package/dist/internal/data-descriptors.d.ts +8 -8
  773. package/dist/internal/default-label-forwarding.js +1 -0
  774. package/dist/internal/deferred-focus-return.d.ts +5 -5
  775. package/dist/internal/definition-registry.d.ts +2 -2
  776. package/dist/internal/deprecated-alias-types.d.ts +1 -1
  777. package/dist/internal/deprecated-aliases.d.ts +1 -1
  778. package/dist/internal/direct-form-associated.d.ts +4 -4
  779. package/dist/internal/document-renderer-registry.d.ts +27 -27
  780. package/dist/internal/document-tokens.d.ts +1 -1
  781. package/dist/internal/docx-zip-admission.d.ts +1 -1
  782. package/dist/internal/drop-session-controller.d.ts +6 -6
  783. package/dist/internal/engine-3d-loader.d.ts +6 -6
  784. package/dist/internal/engine-3d.d.ts +9 -9
  785. package/dist/internal/focus-navigation.d.ts +9 -9
  786. package/dist/internal/form-associated.d.ts +20 -20
  787. package/dist/internal/form-control-element.d.ts +6 -6
  788. package/dist/internal/heading-level.d.ts +1 -1
  789. package/dist/internal/hierarchy-summary-source.js +1 -0
  790. package/dist/internal/highlight-collection.d.ts +3 -3
  791. package/dist/internal/icons.d.ts +23 -23
  792. package/dist/internal/inherited-attribute-hub.d.ts +3 -3
  793. package/dist/internal/layered-layout.d.ts +8 -8
  794. package/dist/internal/locale-loader.d.ts +1 -1
  795. package/dist/internal/localization-runtime.d.ts +7 -7
  796. package/dist/internal/localization-types.d.ts +1 -1
  797. package/dist/internal/lyra-element.d.ts +17 -17
  798. package/dist/internal/match-constraint.d.ts +1 -1
  799. package/dist/internal/model-viewer-contract.d.ts +2 -2
  800. package/dist/internal/node-type-style.d.ts +1 -1
  801. package/dist/internal/numbers.d.ts +12 -12
  802. package/dist/internal/optional-peer-capabilities.d.ts +9 -9
  803. package/dist/internal/overlay-manager.d.ts +22 -22
  804. package/dist/internal/overlay-manager.js +1 -1
  805. package/dist/internal/overlay-order.d.ts +3 -3
  806. package/dist/internal/overlay-stack.d.ts +3 -3
  807. package/dist/internal/package-metadata.js +1 -1
  808. package/dist/internal/positioner-geometry.d.ts +2 -2
  809. package/dist/internal/positioner.d.ts +34 -23
  810. package/dist/internal/positioner.js +1 -1
  811. package/dist/internal/registered-animation.d.ts +2 -2
  812. package/dist/internal/rendered-tree-traversal.d.ts +13 -13
  813. package/dist/internal/resource-loader.d.ts +7 -7
  814. package/dist/internal/root-registration-allowlist.js +1 -1
  815. package/dist/internal/safe-resource-cache.d.ts +3 -3
  816. package/dist/internal/scoped-definitions.generated.js +1 -1
  817. package/dist/internal/score-tiers.d.ts +2 -2
  818. package/dist/internal/selection-catalog.d.ts +3 -3
  819. package/dist/internal/semantic-variant.d.ts +3 -3
  820. package/dist/internal/shared-unions.d.ts +3 -3
  821. package/dist/internal/slugger.d.ts +1 -1
  822. package/dist/internal/stream-phase.d.ts +1 -1
  823. package/dist/internal/text-highlights.d.ts +4 -4
  824. package/dist/internal/text-quote.d.ts +18 -18
  825. package/dist/internal/text-viewer-target.d.ts +4 -4
  826. package/dist/internal/theme-watcher.d.ts +2 -2
  827. package/dist/internal/top-layer-escape.d.ts +1 -1
  828. package/dist/internal/typed-columns.d.ts +7 -7
  829. package/dist/internal/variant-values.d.ts +3 -3
  830. package/dist/internal/variants.d.ts +4 -4
  831. package/dist/lyra.d.ts +1 -1
  832. package/dist/ssr/all.d.ts +1 -1
  833. package/dist/ssr/all.js +1 -1
  834. package/dist/ssr.d.ts +16 -16
  835. package/dist/ssr.js +1 -1
  836. package/dist/svelte.d.ts +1 -1
  837. package/dist/testing/happy-dom-shims.d.ts +3 -3
  838. package/dist/testing/interaction-drivers.d.ts +3 -3
  839. package/dist/testing/jsdom-shims.d.ts +9 -9
  840. package/dist/testing/lyra-tag-event-map.d.ts +2 -2
  841. package/dist/testing/lyra-tag-event-map.js +1 -1
  842. package/dist/testing/wait-for-mount.d.ts +3 -3
  843. package/dist/theme/chart-palette.d.ts +2 -2
  844. package/dist/theme/gemstones-data.d.ts +2 -2
  845. package/dist/theme/look-css.d.ts +2 -2
  846. package/dist/theme/looks/data.d.ts +1 -1
  847. package/dist/theme/looks/high-contrast.d.ts +1 -1
  848. package/dist/theme/looks/material.d.ts +1 -1
  849. package/dist/theme/looks/shadcn.d.ts +1 -1
  850. package/dist/theme/looks/terminal.d.ts +1 -1
  851. package/dist/theme/options/charts.d.ts +5 -5
  852. package/dist/theme/options/elevation.d.ts +1 -1
  853. package/dist/theme/options/shape.d.ts +1 -1
  854. package/dist/theme/options/typography.d.ts +1 -1
  855. package/dist/theme/preferences.d.ts +1 -1
  856. package/dist/theme/style-ownership.d.ts +1 -1
  857. package/dist/theme/theme.d.ts +13 -13
  858. package/dist/theme/theme.js +1 -1
  859. package/dist/units.d.ts +2 -2
  860. package/dist/utilities/animation-registry.d.ts +5 -5
  861. package/dist/utilities/catalog.d.ts +1 -1
  862. package/dist/utilities/data-spatial.d.ts +9 -9
  863. package/dist/utilities/defined.d.ts +1 -1
  864. package/dist/utilities/deprecated-aliases.d.ts +1 -1
  865. package/dist/utilities/scoped-registry.d.ts +5 -5
  866. package/dist/vue.d.ts +3 -3
  867. package/llms/components/lr-locale-picker.md +11 -1
  868. package/llms/components/lr-map-anchor.md +165 -0
  869. package/llms/components/lr-map.md +83 -4
  870. package/llms/components/lr-pptx-viewer.md +9 -5
  871. package/llms/components/lr-tree.md +4 -0
  872. package/llms/index.md +4 -3
  873. package/llms/peers.md +1 -1
  874. package/llms/shared/events-and-types.md +4 -0
  875. package/llms/shared/imports-and-registration.md +1 -1
  876. package/llms/shared/testing-and-utilities.md +6 -1
  877. package/llms/shared.md +11 -2
  878. package/llms.txt +3 -3
  879. package/package.json +14 -7
  880. package/registrations.json +1 -1
@@ -3,14 +3,14 @@ import{type PropertyValues,type TemplateResult}from'lit';import{LyraElement}from
3
3
  * under RTL), `'vertical'` to the block axis with the domain minimum at the
4
4
  * block end. */
5
5
  export type SliderOrientation=LyraOrientation;
6
- /** Side of a handle used for its focus/drag tooltip. */
6
+ /** Side of a handle used for its focus/drag tooltip.*/
7
7
  export type SliderTooltipPlacement='top'|'right'|'bottom'|'left';
8
8
  /** Which handle a value belongs to: the single thumb of a plain slider, or
9
9
  * one of the two handles of a `range` slider. */
10
10
  export type SliderHandle='value'|'min'|'max';
11
- /** Text used by the optional visible readout. */
11
+ /** Text used by the optional visible readout.*/
12
12
  export type SliderValueDisplay='numeric'|'formatted';
13
- /** Places the optional readout beside the track or opposite the visible label. */
13
+ /** Places the optional readout beside the track or opposite the visible label.*/
14
14
  export type SliderValuePlacement='inline'|'label';
15
15
  /** Formats a finite, clamped slider value for `aria-valuetext` (and for the
16
16
  * `with-tooltip` bubble); return a nullish value to omit `aria-valuetext`
@@ -164,7 +164,7 @@ export interface LyraSliderChangeDetail{value:number;minValue:number;maxValue:nu
164
164
  * @since 4.0.0
165
165
  */
166
166
  export declare class LyraSlider extends LyraSliderBase{
167
- /** Public WA-compatible intrinsic validator catalog. */
167
+ /** Public WA-compatible intrinsic validator catalog.*/
168
168
  static get validators():LyraFormValidator<LyraSlider>[];static formAssociated:boolean;static styles:import("lit").CSSResultGroup[];static properties:{customError:{attribute:string;reflect:boolean;noAccessor:boolean;};value:{attribute:boolean;noAccessor:boolean;};defaultValue:{attribute:string;type:NumberConstructor;reflect:boolean;useDefault:boolean;noAccessor:boolean;};name:{reflect:boolean;noAccessor:boolean;};required:{type:BooleanConstructor;reflect:boolean;noAccessor:boolean;};disabled:{type:BooleanConstructor;reflect:boolean;noAccessor:boolean;};min:{type:NumberConstructor;noAccessor:boolean;};max:{type:NumberConstructor;noAccessor:boolean;};step:{type:NumberConstructor;noAccessor:boolean;};range:{type:BooleanConstructor;reflect:boolean;noAccessor:boolean;};minValue:{type:NumberConstructor;attribute:string;noAccessor:boolean;};maxValue:{type:NumberConstructor;attribute:string;noAccessor:boolean;};size:{reflect:boolean;};};
169
169
  /**
170
170
  * Control size, on the library's shared ladder. Accepts both spellings of every tier —
@@ -240,17 +240,17 @@ label:string;
240
240
  /** Plain-text description of what the slider controls, rendered below the track and wired to
241
241
  * every handle through `aria-describedby`. Use the `hint` slot instead for rich content. */
242
242
  hint:string;
243
- /** Shoelace-compatible spelling of `hint`; `hint` wins when both are supplied. */
243
+ /** Shoelace-compatible spelling of `hint`; `hint` wins when both are supplied.*/
244
244
  helpText:string;
245
- /** Plain-text error associated with every handle; rich content can use the `error` slot. */
245
+ /** Plain-text error associated with every handle; rich content can use the `error` slot.*/
246
246
  errorText:string;
247
- /** SSR presence hint for visible label chrome. Hydrated instances also inspect slot content. */
247
+ /** SSR presence hint for visible label chrome. Hydrated instances also inspect slot content.*/
248
248
  withLabel:boolean;
249
- /** SSR presence hint for hint chrome. Hydrated instances also inspect both hint slots. */
249
+ /** SSR presence hint for hint chrome. Hydrated instances also inspect both hint slots.*/
250
250
  withHint:boolean;
251
- /** Focuses the first thumb after the first client render. */
251
+ /** Focuses the first thumb after the first client render.*/
252
252
  autofocus:boolean;
253
- /** Origin of the single-slider indicator. The fill spans between this value and `value`. */
253
+ /** Origin of the single-slider indicator. The fill spans between this value and `value`.*/
254
254
  indicatorOffset?:number;
255
255
  /** Which axis carries the value. `'vertical'` also switches the primary keys to
256
256
  * ArrowUp/ArrowDown and exposes `aria-orientation="vertical"`. */
@@ -260,13 +260,13 @@ orientation:SliderOrientation;
260
260
  * Becoming readonly cancels unfinished gestures, preserving their live value.
261
261
  * @default false */
262
262
  readonly:boolean;requestUpdate(...args:Parameters<LyraElement['requestUpdate']>):void;
263
- /** Whether to draw a tick mark at every `step` position along the track. */
263
+ /** Whether to draw a tick mark at every `step` position along the track.*/
264
264
  withMarkers:boolean;
265
- /** Whether to show a live value bubble beside each focused or dragged handle. */
265
+ /** Whether to show a live value bubble beside each focused or dragged handle.*/
266
266
  withTooltip:boolean;
267
- /** Physical side of the handle on which the tooltip is placed. */
267
+ /** Physical side of the handle on which the tooltip is placed.*/
268
268
  tooltipPlacement:SliderTooltipPlacement;
269
- /** Gap between a handle and its tooltip, measured in CSS pixels. */
269
+ /** Gap between a handle and its tooltip, measured in CSS pixels.*/
270
270
  tooltipDistance:number;
271
271
  /** Shoelace-compatible tooltip switch. `none` hides; top/bottom also set the placement. Lyra
272
272
  * defaults to `none`, unlike `<sl-range>`'s `top`; the migration codemod inserts `tooltip="top"`,
@@ -279,9 +279,9 @@ tooltip:'top'|'bottom'|'none';
279
279
  * it unset preserves the existing numeric `aria-valuetext`. Return
280
280
  * `null`/`undefined` to omit the attribute. */
281
281
  valueFormatter?:SliderValueFormatter;
282
- /** Shoelace-compatible single-argument tooltip formatter. */
282
+ /** Shoelace-compatible single-argument tooltip formatter.*/
283
283
  tooltipFormatter?:(value:number)=>string;
284
- /** Renders the visible value readout (`part="value"`). `with-value="false"` is accepted as off. */
284
+ /** Renders the visible value readout (`part="value"`). `with-value="false"` is accepted as off.*/
285
285
  withValue:boolean;
286
286
  /** Visible readout text. `formatted` reuses valueFormatter (then tooltipFormatter when absent)
287
287
  * for each handle, with localized numeric fallback for nullish results. The numeric default
@@ -297,7 +297,7 @@ valuePlacement:SliderValuePlacement;private get hasHintSlot();private get hasErr
297
297
  * already republishes synchronously; this covers the other barring channel.
298
298
  */
299
299
  protected willUpdate(changed:PropertyValues):void;protected updated(changed:PropertyValues):void;protected firstUpdated(changed:PropertyValues):void;disconnectedCallback():void;adoptedCallback():void;private cancelAutofocusFrame;attributeChangedCallback(name:string,old:string|null,value:string|null):void;formDisabledCallback(fieldsetDisabled:boolean):void;checkValidity():boolean;reportValidity():boolean;setCustomValidity(message:string):void;
300
- /** Clears consumer-supplied validity and restores the current range constraints. */
300
+ /** Clears consumer-supplied validity and restores the current range constraints.*/
301
301
  resetValidity():void;formResetCallback():void;formStateRestoreCallback(state:string|File|FormData|null,reason:'autocomplete'|'restore'):void;private readFormDataStrings;private restoreLiveValueFromDefault;private updateValidity;private get barredFromValidation();private syncValidityStates;private markInteracted;private markFocusoutInteracted;private syncInteractionStates;
302
302
  /** Activates the first internal thumb control, mirroring `<lr-switch>`'s identical `override
303
303
  * click()`. Without this, `HTMLElement.prototype.click()` on the host is a no-op: no click
@@ -305,11 +305,11 @@ resetValidity():void;formResetCallback():void;formStateRestoreCallback(state:str
305
305
  * this targets the lower handle, matching `focus()` below; `blur()` instead follows whichever
306
306
  * thumb currently owns focus. */
307
307
  click():void;
308
- /** Moves focus to the first internal thumb control (the lower handle in `range` mode). */
308
+ /** Moves focus to the first internal thumb control (the lower handle in `range` mode).*/
309
309
  focus(options?:FocusOptions):void;
310
- /** Removes focus from whichever internal thumb currently owns it. */
310
+ /** Removes focus from whichever internal thumb currently owns it.*/
311
311
  blur():void;
312
- /** Silently advances the focused handle, matching native range IDL semantics. */
312
+ /** Silently advances the focused handle, matching native range IDL semantics.*/
313
313
  stepUp(steps?:number):void;
314
- /** Silently retreats the focused handle, matching native range IDL semantics. */
314
+ /** Silently retreats the focused handle, matching native range IDL semantics.*/
315
315
  stepDown(steps?:number):void;private stepBy;private directionalStep;private firstThumb;private handleElement;private get interactive();private sanitizeCurrentValue;private sanitizeHandles;private syncFormValue;private domain;private defaultNumericValue;private percentOf;private clampValue;private valueForHandle;private reachableBounds;private detailFor;private emitInput;private emitChange;private assignValueFor;private setValueFor;private onKeyDown;private onKeyUp;private ratioFromPointer;private nearestHandle;private beginDrag;private trackRect;private onPointerDown;private onBasePointerDown;private onPointerMove;private onPointerUp;private endDrag;private abortActiveDrags;private onHandleFocus;private onHandleBlur;private formatValue;private readoutText;private resolvedLabel;private offsetStyle;private markerPercents;private renderHandle;render():TemplateResult;}declare global{interface HTMLElementTagNameMap{'lr-slider':LyraSlider;}}export{};
@@ -1,4 +1,4 @@
1
- import{__decorate}from"tslib";import{RangeDragController,rangePointerRatio,nearestRangeEnd,RANGE_PAGE_STEP_MULTIPLIER}from"../../../internal/range-drag.js";import{SlotPresenceController}from"../../../internal/slot-presence-controller.js";import{installFormControlLabelSupport}from"../../../internal/form-control-labels.js";import{FormControlController,reflectFormName}from"../../../internal/form-control-controller.js";import{html,nothing}from"lit";import{property,state}from"lit/decorators.js";import{LyraElement}from"../../../internal/lyra-element.js";import{LyraFormControlElement}from"../../../internal/form-control-element.js";import{getFormOwner,isBarredFromValidation,setFormOwner}from"../../../internal/form-associated.js";import{VALIDITY_ANCHOR}from"../../../internal/anchored-validity.js";import{setCustomState,syncValidityStates}from"../../../internal/custom-states.js";import{falseDefaultBooleanConverter,literalSetConverter}from"../../../internal/converters.js";import{sizes}from"../../../internal/sizes.styles.js";import{isRtl}from"../../../internal/rtl.js";import{finiteInterpolate,finiteNumber,finiteRange,finiteRatio,isSliderKey}from"../../../internal/numbers.js";import{clampSteppedValue}from"../../../internal/step-value.js";import{styles}from"./slider.styles.js";import{getNumberFormat}from"../../../internal/intl-cache.js";import{dispatchNativeEvent,dispatchNativeInputEvent,relayNativeEvent}from"../../../internal/native-event-relay.js";import{activeElementIn,shadowFocusTarget}from"../../../internal/active-element.js";import{acquireResolvedAriaRelationship}from"../../../internal/aria-controls.js";import{currentValidityValidator}from"../form-validator.js";import{LYRA_DEFAULT_rangeEnd,LYRA_DEFAULT_rangeStart,LYRA_DEFAULT_sliderLabel}from"../../../internal/default-strings/forms.generated.js";import{LYRA_DEFAULT_fieldRequired}from"../../../internal/default-strings/shared.generated.js";installFormControlLabelSupport();const MAX_MARKER_INTERVALS=100,HINT_ID="slider-hint",ERROR_ID="slider-error",LABEL_ID="slider-label",SLIDER_ORIENTATION=literalSetConverter(["horizontal","vertical"],"horizontal");class LyraSliderBase extends LyraFormControlElement{}class LyraSlider extends LyraSliderBase{static{this.defaultStrings={...super.defaultStrings,fieldRequired:LYRA_DEFAULT_fieldRequired,rangeEnd:LYRA_DEFAULT_rangeEnd,rangeStart:LYRA_DEFAULT_rangeStart,sliderLabel:LYRA_DEFAULT_sliderLabel}}static get validators(){return[currentValidityValidator("required","disabled","value","min","max","step")]}static{this.formAssociated=!0}static{this.styles=[LyraElement.styles,sizes,styles]}static{this.properties={customError:{attribute:"custom-error",reflect:!0,noAccessor:!0},value:{attribute:!1,noAccessor:!0},defaultValue:{attribute:"value",type:Number,reflect:!0,useDefault:!0,noAccessor:!0},name:{reflect:!0,noAccessor:!0},required:{type:Boolean,reflect:!0,noAccessor:!0},disabled:{type:Boolean,reflect:!0,noAccessor:!0},min:{type:Number,noAccessor:!0},max:{type:Number,noAccessor:!0},step:{type:Number,noAccessor:!0},range:{type:Boolean,reflect:!0,noAccessor:!0},minValue:{type:Number,attribute:"min-value",noAccessor:!0},maxValue:{type:Number,attribute:"max-value",noAccessor:!0},size:{reflect:!0}}}captureValueBatch(){return this.pendingValueBatch||(this.pendingValueBatch={value:this._value,min:this._minValue,max:this._maxValue},this.requestUpdate()),this.pendingValueBatch}constructor(){super(),this.size="m",this._value=0,this._defaultValue=0,this._valueDirty=!1,this.settingDefaultValue=!1,this.reflectingDefaultValue=!1,this._name=null,this._required=!1,this._disabled=!1,this._fieldsetDisabled=!1,this._hasInteracted=!1,this._min=0,this._max=100,this._step=1,this._range=!1,this._minValue=0,this._maxValue=50,this._minValueDirty=!1,this._maxValueDirty=!1,this.applyingRangeValueAttribute=!1,this._defaultMinValue=0,this._defaultMaxValue=50,this.label="",this.hint="",this.helpText="",this.errorText="",this.withLabel=!1,this.withHint=!1,this.autofocus=!1,this.orientation="horizontal",this.readonly=!1,this.withMarkers=!1,this.withTooltip=!1,this.tooltipPlacement="top",this.tooltipDistance=8,this.tooltip="none",this.withValue=!1,this.valueDisplay="numeric",this.valuePlacement="inline",this.slotPresence=new SlotPresenceController(this),this.dragController=new RangeDragController(this,event=>this.onPointerMove(event),event=>this.onPointerUp(event)),this.pendingKeyHandle=null,this.focusedHandle=null,this.rangeFocusGeneration=0,this.markInteracted=()=>{this._hasInteracted||(this._hasInteracted=!0,this.syncValidityStates())},this.markFocusoutInteracted=()=>{this.effectiveDisabled||this.matches(":disabled")||this.rangeFocusTransfer||this.markInteracted()},this.onKeyDown=(handle,e)=>{if(!this.interactive)return;const current=this.valueForHandle(handle),rtl=isRtl(this),forwardKey=rtl?"ArrowLeft":"ArrowRight",backwardKey=rtl?"ArrowRight":"ArrowLeft",bounds=this.reachableBounds(handle),move=next=>{e.preventDefault(),this.assignValueFor(handle,next)&&(this.pendingKeyHandle=handle,this.emitInput(handle))};e.key===forwardKey||e.key==="ArrowUp"?move(this.directionalStep(current,1)):e.key===backwardKey||e.key==="ArrowDown"?move(this.directionalStep(current,-1)):e.key==="PageUp"?move(this.directionalStep(current,RANGE_PAGE_STEP_MULTIPLIER)):e.key==="PageDown"?move(this.directionalStep(current,-RANGE_PAGE_STEP_MULTIPLIER)):e.key==="Home"?move(bounds.min):e.key==="End"&&move(bounds.max)},this.onKeyUp=e=>{if(!this.interactive||!isSliderKey(e.key))return;const handle=this.pendingKeyHandle;handle!==null&&(this.pendingKeyHandle=null,this.emitChange(handle))},this.onPointerDown=(handle,e)=>{!this.interactive||e.button!==0||this.beginDrag(e,handle,e.target,this.trackRect(),isRtl(this))},this.onBasePointerDown=e=>{if(!this.interactive||e.button!==0)return;const thumbs=Array.from(this.renderRoot.querySelectorAll('[part~="thumb"]'));if(thumbs.length===0||thumbs.includes(e.target))return;const rect=this.trackRect();if(!rect)return;const rtl=isRtl(this),{lo,hi}=this.domain(),target=finiteInterpolate(lo,hi,this.ratioFromPointer(e,rect,rtl)),handle=this.range?this.nearestHandle(target):"value",thumb=this.handleElement(handle)??thumbs[0];if(!thumb)return;const drag=this.beginDrag(e,handle,thumb,rect,rtl);drag&&(this.setValueFor(handle,target,!1)&&(drag.changed=!0),thumb.focus())},this.onPointerMove=e=>{const drag=this.drags.get(e.pointerId);if(drag===void 0)return;if(!this.interactive){this.endDrag(e.pointerId,!1);return}if(!drag.rect)return;const{lo,hi}=this.domain(),value=finiteInterpolate(lo,hi,this.ratioFromPointer(e,drag.rect,drag.rtl));this.setValueFor(drag.handle,value,!1)&&(drag.changed=!0)},this.onPointerUp=e=>{this.endDrag(e.pointerId,e.type==="pointerup"&&this.interactive)},this.validityController=new FormControlController(this,{invalid:init=>this.emit("lr-invalid",null,init),interacted:this.markInteracted,customError:()=>this.validityController.customValidityMessage}),this.internals=this.validityController.formInternals,this.internals.setFormValue("0","0"),this.addEventListener("input",this.markInteracted),this.addEventListener("change",this.markInteracted),this.addEventListener("focusout",this.markFocusoutInteracted),this.syncValidityStates()}get value(){return this._value}set value(next){const old=this._value;this.settingDefaultValue||(this._valueDirty=!0);const raw=finiteNumber(Number(next),this.defaultNumericValue());this.captureValueBatch().value=raw,this._value=this.clampValue(raw),this.syncFormValue(),this.requestUpdate("value",old)}get defaultValue(){return this._defaultValue}set defaultValue(next){if(this.reflectingDefaultValue)return;const old=this._defaultValue;this._defaultValue=next==null?0:finiteNumber(Number(next),0),this.reflectingDefaultValue=!0;try{next==null?this.removeAttribute("value"):this.setAttribute("value",String(this._defaultValue))}finally{this.reflectingDefaultValue=!1}this._valueDirty||this.restoreLiveValueFromDefault(),this.requestUpdate("defaultValue",old)}get valueAsNumber(){return this.value}set valueAsNumber(next){this.value=next}get valueAsString(){return String(this.value)}set valueAsString(next){this.value=next}get name(){return this._name}set name(next){const old=this._name;this._name=next||null,reflectFormName(this,this._name),this.syncFormValue(),this.requestUpdate("name",old)}get required(){return this._required}set required(next){const old=this._required;this._required=!!next,this.toggleAttribute("required",this._required),this.updateValidity(),this.requestUpdate("required",old)}get disabled(){return this._disabled}set disabled(next){const old=this._disabled;this._disabled=!!next,this.toggleAttribute("disabled",this._disabled),this._fieldsetDisabled=this.validityController?.fieldsetDisabled(this._fieldsetDisabled)??this._fieldsetDisabled,this._disabled&&(this.pendingKeyHandle=null,this.abortActiveDrags()),this.syncInteractionStates(),this.syncValidityStates(),this.requestUpdate("disabled",old)}get effectiveDisabled(){return this.disabled||this._fieldsetDisabled}get form(){return getFormOwner(this.internals)}set form(owner){setFormOwner(this,owner)}get min(){return this._min}set min(next){this.captureValueBatch();const old=this._min;this._min=finiteNumber(next,0),this.requestUpdate("min",old),this.sanitizeCurrentValue()}get max(){return this._max}set max(next){this.captureValueBatch();const old=this._max;this._max=finiteNumber(next,100),this.requestUpdate("max",old),this.sanitizeCurrentValue()}get step(){return this._step}set step(next){this.captureValueBatch();const old=this._step;this._step=next==null?1:finiteRange(next,0,0),this.requestUpdate("step",old),this.sanitizeCurrentValue()}get range(){return this._range}set range(next){const old=this._range;this._range=!!next,this.requestUpdate("range",old),this.syncFormValue()}get isRange(){return this.range}get minValue(){return this._minValue}set minValue(next){const batch=this.captureValueBatch();batch.min=finiteNumber(next,0),batch.lastRange="min";const old=this._minValue;if(this.applyingRangeValueAttribute||(this._minValueDirty=!0),this._minValue=this.clampValue(finiteNumber(next,0)),this._minValue>this._maxValue){const oldMax=this._maxValue;this._maxValue=this._minValue,this.applyingRangeValueAttribute||(this._maxValueDirty=!0),this.requestUpdate("maxValue",oldMax)}this.syncFormValue(),this.requestUpdate("minValue",old)}get maxValue(){return this._maxValue}set maxValue(next){const batch=this.captureValueBatch();batch.max=finiteNumber(next,50),batch.lastRange="max";const old=this._maxValue;if(this.applyingRangeValueAttribute||(this._maxValueDirty=!0),this._maxValue=this.clampValue(finiteNumber(next,50)),this._maxValue<this._minValue){const oldMin=this._minValue;this._minValue=this._maxValue,this.applyingRangeValueAttribute||(this._minValueDirty=!0),this.requestUpdate("minValue",oldMin)}this.syncFormValue(),this.requestUpdate("maxValue",old)}requestUpdate(...args){args[0]==="readonly"&&this.readonly&&(this.pendingKeyHandle=null,this.abortActiveDrags()),super.requestUpdate(...args)}get hasHintSlot(){return this.slotPresence.has("hint")||this.slotPresence.has("help-text")}get hasErrorSlot(){return this.slotPresence.has("error")}get hasLabelSlot(){return this.slotPresence.has("label")}get hasReferenceSlot(){return this.slotPresence.has("reference")}get drags(){return this.dragController.active}syncExternalDescription(){const primary=this.isConnected?this.range?this.handleElement("min"):this.firstThumb():null;primary?this.externalDescriptionLease?this.externalDescriptionLease.update(primary):this.externalDescriptionLease=acquireResolvedAriaRelationship(this,primary,"aria-describedby"):(this.externalDescriptionLease?.release(),this.externalDescriptionLease=void 0);const secondary=this.isConnected&&this.range?this.handleElement("max"):null;secondary?this.externalDescriptionLeaseMax?this.externalDescriptionLeaseMax.update(secondary):this.externalDescriptionLeaseMax=acquireResolvedAriaRelationship(this,secondary,"aria-describedby"):(this.externalDescriptionLeaseMax?.release(),this.externalDescriptionLeaseMax=void 0)}releaseExternalDescription(){this.externalDescriptionLease?.release(),this.externalDescriptionLease=void 0,this.externalDescriptionLeaseMax?.release(),this.externalDescriptionLeaseMax=void 0}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this.syncExternalDescription(),this._valueDirty?this.sanitizeCurrentValue():this.restoreLiveValueFromDefault(),this._minValueDirty||(this._minValue=this.clampValue(this._defaultMinValue)),this._maxValueDirty||(this._maxValue=this.clampValue(this._defaultMaxValue)),this.sanitizeHandles(),this.syncFormValue(),this.updateValidity(),this.syncInteractionStates()}willUpdate(changed){if(super.willUpdate(changed),this.pendingValueBatch&&(this.sanitizeCurrentValue(),this.pendingValueBatch=void 0),!changed.has("range")||!this.hasUpdated)return;const active=shadowFocusTarget(this);if(active?.matches('[part~="thumb"]')){const target=this.range?"min":"value";this.rangeFocusTransfer={origin:active,target},this.focusedHandle=target,this.syncInteractionStates(),this.rangeFocusGeneration++}this.pendingKeyHandle=null,this.abortActiveDrags()}updated(changed){if(super.updated(changed),this.syncExternalDescription(),changed.has("readonly")&&this.syncValidityStates(),!changed.has("range"))return;const transfer=this.rangeFocusTransfer;if(this.rangeFocusTransfer=void 0,!transfer)return;const generation=this.rangeFocusGeneration;this.scheduleAfterUpdate(()=>{if(generation!==this.rangeFocusGeneration||!this.isConnected||this.effectiveDisabled)return;const internalActive=shadowFocusTarget(this),documentActive=activeElementIn(this.ownerDocument),focusStayedAtOrigin=internalActive===transfer.origin,originWasRemovedWithoutReplacement=internalActive===null&&(documentActive===null||documentActive===this||documentActive===this.ownerDocument.body);if(!focusStayedAtOrigin&&!originWasRemovedWithoutReplacement)return;this.handleElement(transfer.target)?.focus()},"slider-range-focus")}firstUpdated(changed){if(super.firstUpdated(changed),!this.autofocus)return;const owner=this.ownerDocument.defaultView;if(!owner)return;const handle=owner.requestAnimationFrame(()=>{this.autofocusFrame?.owner!==owner||this.autofocusFrame.handle!==handle||(this.autofocusFrame=void 0,this.isConnected&&this.ownerDocument.defaultView===owner&&this.autofocus&&this.focus())});this.autofocusFrame={owner,handle}}disconnectedCallback(){this.releaseExternalDescription(),super.disconnectedCallback(),this.rangeFocusGeneration++,this.rangeFocusTransfer=void 0,this.abortActiveDrags(),this.pendingKeyHandle=null,this.focusedHandle=null,this.syncInteractionStates(),this.cancelAutofocusFrame()}adoptedCallback(){super.adoptedCallback(),this.releaseExternalDescription(),this.isConnected&&this.hasUpdated&&this.syncExternalDescription(),this.rangeFocusGeneration++,this.rangeFocusTransfer=void 0,this.abortActiveDrags(),this.pendingKeyHandle=null,this.focusedHandle=null,this.syncInteractionStates(),this.cancelAutofocusFrame()}cancelAutofocusFrame(){const autofocusFrame=this.autofocusFrame;this.autofocusFrame=void 0,autofocusFrame&&autofocusFrame.owner.cancelAnimationFrame(autofocusFrame.handle)}attributeChangedCallback(name,old,value){const isRangeValue=name==="min-value"||name==="max-value";isRangeValue&&(this.applyingRangeValueAttribute=!0);try{super.attributeChangedCallback(name,old,value)}finally{isRangeValue&&(this.applyingRangeValueAttribute=!1)}name==="min-value"&&(this._defaultMinValue=value===null?0:finiteNumber(Number(value),0)),name==="max-value"&&(this._defaultMaxValue=value===null?50:finiteNumber(Number(value),50))}formDisabledCallback(fieldsetDisabled){if(this.validityController?.reflectingDisabled)return;const wasDisabled=this.effectiveDisabled;this._fieldsetDisabled=fieldsetDisabled,wasDisabled!==this.effectiveDisabled&&(fieldsetDisabled&&(this.pendingKeyHandle=null,this.abortActiveDrags()),this.syncInteractionStates(),this.syncValidityStates(),this.requestUpdate())}[VALIDITY_ANCHOR](){return this.firstThumb()}checkValidity(){return this.validityController.checkValidity()}reportValidity(){return this.validityController.syncConstraints(),this.markInteracted(),this.internals.reportValidity()}setCustomValidity(message){this.validityController.setCustomValidity(message??""),this.syncValidityStates(),this.requestUpdate()}resetValidity(){this.setCustomValidity("")}formResetCallback(){this.pendingValueBatch={value:this._defaultValue,min:this._defaultMinValue,max:this._defaultMaxValue},this.restoreLiveValueFromDefault(),this._minValue=this._defaultMinValue,this._maxValue=this._defaultMaxValue,this._minValueDirty=!1,this._maxValueDirty=!1,this.sanitizeHandles(),this._hasInteracted=!1,this.syncFormValue(),this.syncValidityStates(),this.requestUpdate()}formStateRestoreCallback(state2,reason){const values=this.readFormDataStrings(state2);if(values){values.length>=2&&(this.minValue=finiteNumber(Number(values[0]),this._defaultMinValue),this.maxValue=finiteNumber(Number(values[1]),this._defaultMaxValue));return}this.value=typeof state2=="string"?state2:this._defaultValue}readFormDataStrings(value){if(value===null||typeof value!="object")return null;const FormDataCtor=this.ownerDocument.defaultView?.FormData;if(!FormDataCtor)return null;try{const iterator=FormDataCtor.prototype.values.call(value),strings=[];for(const entry of iterator)typeof entry=="string"&&strings.push(entry);return strings}catch{return null}}restoreLiveValueFromDefault(){this.settingDefaultValue=!0;try{this.value=this._defaultValue}finally{this.settingDefaultValue=!1}this._valueDirty=!1}updateValidity(){this.validityController.setValidity({}),this.syncValidityStates()}get barredFromValidation(){return isBarredFromValidation(this,this.internals)}syncValidityStates(){syncValidityStates(this.internals,{required:this.required,hasInteracted:this._hasInteracted,barred:this.barredFromValidation})}syncInteractionStates(){setCustomState(this.internals,"disabled",this.effectiveDisabled),setCustomState(this.internals,"dragging",this.drags.size>0),setCustomState(this.internals,"focused",this.focusedHandle!==null)}click(){this.effectiveDisabled||this.firstThumb()?.click()}focus(options){this.effectiveDisabled||this.firstThumb()?.focus(options)}blur(){const active=shadowFocusTarget(this);active?.nodeType===1&&typeof active.matches=="function"&&typeof active.blur=="function"&&active.matches('[part~="thumb"]')?active.blur():this.firstThumb()?.blur()}stepUp(steps=1){this.stepBy(steps)}stepDown(steps=1){this.stepBy(-steps)}stepBy(steps){if(!this.interactive||finiteRange(this.step,0,0)<=0)return;const count=Math.trunc(finiteNumber(steps,1));if(count===0)return;const handle=this.range&&this.focusedHandle!=="max"?"min":this.focusedHandle??"value";this.assignValueFor(handle,this.directionalStep(this.valueForHandle(handle),count))}directionalStep(current,count){const{lo,hi}=this.domain();if(count===0)return current;const direction=Math.sign(count),magnitude=(this.step>0?this.step:(hi-lo)/100)*Math.abs(count);if(!Number.isFinite(magnitude))return direction>0?hi:lo;const candidate=current+direction*magnitude;return Number.isFinite(candidate)?candidate:direction>0?hi:lo}firstThumb(){return this.renderRoot?.querySelector('[part~="thumb"]')??null}handleElement(handle){const selector={value:'[part~="thumb"]',min:'[part~="thumb-min"]',max:'[part~="thumb-max"]'}[handle];return this.renderRoot?.querySelector(selector)??null}get interactive(){return!this.effectiveDisabled&&!this.matches(":disabled")&&!this.readonly}sanitizeCurrentValue(){this.sanitizeHandles();const old=this._value;this._value=this.clampValue(this.pendingValueBatch?.value??this._value),this._value!==old&&this.requestUpdate("value",old),this.syncFormValue()}sanitizeHandles(){this._minValue=this.clampValue(this.pendingValueBatch?.min??this._minValue),this._maxValue=this.clampValue(this.pendingValueBatch?.max??this._maxValue),this._minValue>this._maxValue&&(this.pendingValueBatch?.lastRange==="max"?this._minValue=this._maxValue:this._maxValue=this._minValue)}syncFormValue(){if(!this.internals)return;if(!this.range){const serialized=String(this.value);this.internals.setFormValue(serialized,serialized),this.updateValidity();return}const FormDataCtor=this.ownerDocument?.defaultView?.FormData;if(!FormDataCtor){this.internals.setFormValue(null),this.updateValidity();return}const state2=new FormDataCtor,stateKey=this.name||"value";if(state2.append(stateKey,String(this.minValue)),state2.append(stateKey,String(this.maxValue)),!this.name)this.internals.setFormValue(null,state2);else{const submission=new FormDataCtor;submission.append(this.name,String(this.minValue)),submission.append(this.name,String(this.maxValue)),this.internals.setFormValue(submission,state2)}this.updateValidity()}domain(){const min=finiteNumber(this.min,0),max=finiteNumber(this.max,100);return{lo:Math.min(min,max),hi:Math.max(min,max)}}defaultNumericValue(){return this.clampValue(0)}percentOf(value){const{lo,hi}=this.domain(),safeValue=finiteRange(value,lo,lo,hi);return finiteRatio(safeValue,lo,hi)*100}clampValue(raw){const{lo,hi}=this.domain();return clampSteppedValue(raw,lo,hi,this.step)}valueForHandle(handle){return handle==="min"?this.minValue:handle==="max"?this.maxValue:this.valueAsNumber}reachableBounds(handle){const{lo,hi}=this.domain();return{min:lo,max:hi}}detailFor(handle){return{value:this.valueForHandle(handle),minValue:this.minValue,maxValue:this.maxValue,handle}}emitInput(handle){dispatchNativeInputEvent(this),this.emit("lr-input",this.detailFor(handle))}emitChange(handle){dispatchNativeEvent(this,"change"),this.emit("lr-change",this.detailFor(handle))}assignValueFor(handle,raw){const previous=this.valueForHandle(handle),stepped=this.clampValue(raw);if(stepped===previous)return!1;if(handle==="min"){if(this._minValueDirty=!0,this._minValue=stepped,this.requestUpdate("minValue",previous),this._minValue>this._maxValue){const previousMax=this._maxValue;this._maxValueDirty=!0,this._maxValue=this._minValue,this.requestUpdate("maxValue",previousMax)}}else if(handle==="max"){if(this._maxValueDirty=!0,this._maxValue=stepped,this.requestUpdate("maxValue",previous),this._maxValue<this._minValue){const previousMin=this._minValue;this._minValueDirty=!0,this._minValue=this._maxValue,this.requestUpdate("minValue",previousMin)}}else this.value=stepped;return handle!=="value"&&this.syncFormValue(),!0}setValueFor(handle,raw,commit){return this.assignValueFor(handle,raw)?(this.emitInput(handle),commit&&this.emitChange(handle),!0):!1}ratioFromPointer(e,rect,rtl){return rangePointerRatio(e.clientX,e.clientY,rect,rtl,this.orientation==="vertical")}nearestHandle(target){return nearestRangeEnd(target,this.minValue,this.maxValue)===0?"min":"max"}beginDrag(event,handle,captureTarget,rect,rtl){const drag=this.dragController.begin(event,{handle,changed:!1,captureTarget,rect,rtl});return drag&&(this.syncInteractionStates(),this.requestUpdate()),drag}trackRect(){return this.renderRoot.querySelector('[part="track"]')?.getBoundingClientRect()??null}endDrag(pointerId,commit){const drag=this.dragController.end(pointerId);drag&&(commit&&drag.changed&&this.emitChange(drag.handle),this.syncInteractionStates(),this.requestUpdate())}abortActiveDrags(){this.drags.size!==0&&(this.dragController.abort(),this.syncInteractionStates())}onHandleFocus(handle,event){this.focusedHandle!==handle&&(this.focusedHandle=handle,this.syncInteractionStates(),this.requestUpdate()),relayNativeEvent(this,event)}onHandleBlur(handle,event){this.pendingKeyHandle===handle&&(this.pendingKeyHandle=null,this.interactive&&this.isConnected&&this.emitChange(handle)),this.focusedHandle===handle&&(this.focusedHandle=null,this.syncInteractionStates(),this.requestUpdate()),relayNativeEvent(this,event)}formatValue(value){return getNumberFormat(this.effectiveLocale,{maximumFractionDigits:20}).format(value)}readoutText(){const format=(value,handle)=>{if(this.valueDisplay==="formatted"){const text=this.valueFormatter?this.valueFormatter(value,handle):this.tooltipFormatter?.(value);if(text!=null)return text}return this.formatValue(value)};return this.range?[format(this.minValue,"min"),format(this.maxValue,"max")]:[format(this.valueAsNumber,"value")]}resolvedLabel(){const hostLabel=this.getAttribute("aria-label");return hostLabel!==null?hostLabel:this.label||this.localize("sliderLabel")}offsetStyle(percent){return this.orientation==="vertical"?`inset-block-end:${percent}%`:`inset-inline-start:${percent}%`}markerPercents(){if(!this.withMarkers)return[];const step=finiteRange(this.step,0,0);if(step<=0)return[];const{lo,hi}=this.domain(),span=hi-lo;if(!Number.isFinite(span)||span<=0)return[];const ratio=span/step,intervals=Math.floor(ratio+Number.EPSILON*Math.max(1,Math.abs(ratio))*4);return!Number.isFinite(intervals)||intervals<1||intervals>MAX_MARKER_INTERVALS?[]:Array.from({length:intervals+1},(_unused,index)=>{const value=lo+index*step;return finiteRatio(value,lo,hi)*100})}renderHandle(handle,describedBy,labelledBy,invalid){const value=this.valueForHandle(handle),bounds=this.reachableBounds(handle),percent=this.percentOf(value),ariaOrientation=SLIDER_ORIENTATION.normalize(this.orientation),numeric=this.formatValue(value),valueText=this.valueFormatter?this.valueFormatter(value,handle):this.tooltipFormatter?this.tooltipFormatter(value):numeric,partName={value:"thumb",min:"thumb thumb-min",max:"thumb thumb-max"}[handle],handleLabel={value:this.resolvedLabel(),min:this.localize("rangeStart"),max:this.localize("rangeEnd")}[handle],tooltipPart=this.focusedHandle===handle||Array.from(this.drags.values()).some(drag=>drag.handle===handle)?"tooltip tooltip__tooltip tooltip-visible":"tooltip tooltip__tooltip",showTooltip=this.withTooltip||this.tooltip!=="none",placement=this.tooltip==="none"?this.tooltipPlacement:this.tooltip,tooltipStyle=`${this.offsetStyle(percent)};--lr-slider-tooltip-distance:${finiteRange(this.tooltipDistance,8,0)}`;return html`
1
+ import{__decorate}from"tslib";import{RangeDragController,rangePointerRatio,nearestRangeEnd,RANGE_PAGE_STEP_MULTIPLIER}from"../../../internal/range-drag.js";import{SlotPresenceController}from"../../../internal/slot-presence-controller.js";import{installFormControlLabelSupport}from"../../../internal/form-control-labels.js";import{FormControlController,reflectFormName}from"../../../internal/form-control-controller.js";import{html,nothing}from"lit";import{property,state}from"lit/decorators.js";import{LyraElement}from"../../../internal/lyra-element.js";import{LyraFormControlElement}from"../../../internal/form-control-element.js";import{getFormOwner,isBarredFromValidation,setFormOwner}from"../../../internal/form-associated.js";import{VALIDITY_ANCHOR}from"../../../internal/anchored-validity.js";import{setCustomState,syncValidityStates}from"../../../internal/custom-states.js";import{falseDefaultBooleanConverter,literalSetConverter}from"../../../internal/converters.js";import{sizes}from"../../../internal/sizes.styles.js";import{isRtl}from"../../../internal/rtl.js";import{finiteInterpolate,finiteNumber,finiteRange,finiteRatio,isSliderKey}from"../../../internal/numbers.js";import{clampSteppedValue}from"../../../internal/step-value.js";import{styles}from"./slider.styles.js";import{getNumberFormat}from"../../../internal/intl-cache.js";import{dispatchNativeEvent,dispatchNativeInputEvent,relayNativeEvent}from"../../../internal/native-event-relay.js";import{activeElementIn,shadowFocusTarget}from"../../../internal/active-element.js";import{acquireResolvedAriaRelationship}from"../../../internal/aria-controls.js";import{currentValidityValidator}from"../form-validator.js";import{LYRA_DEFAULT_rangeEnd,LYRA_DEFAULT_rangeStart,LYRA_DEFAULT_sliderLabel}from"../../../internal/default-strings/forms.generated.js";import{LYRA_DEFAULT_fieldRequired}from"../../../internal/default-strings/shared.generated.js";installFormControlLabelSupport();const MAX_MARKER_INTERVALS=100,HINT_ID="slider-hint",ERROR_ID="slider-error",LABEL_ID="slider-label",SLIDER_ORIENTATION=literalSetConverter(["horizontal","vertical"],"horizontal");class LyraSliderBase extends LyraFormControlElement{}class LyraSlider extends LyraSliderBase{static{this.defaultStrings={...super.defaultStrings,fieldRequired:LYRA_DEFAULT_fieldRequired,rangeEnd:LYRA_DEFAULT_rangeEnd,rangeStart:LYRA_DEFAULT_rangeStart,sliderLabel:LYRA_DEFAULT_sliderLabel}}static get validators(){return[currentValidityValidator("required","disabled","value","min","max","step")]}static{this.formAssociated=!0}static{this.styles=[LyraElement.styles,sizes,styles]}static{this.properties={customError:{attribute:"custom-error",reflect:!0,noAccessor:!0},value:{attribute:!1,noAccessor:!0},defaultValue:{attribute:"value",type:Number,reflect:!0,useDefault:!0,noAccessor:!0},name:{reflect:!0,noAccessor:!0},required:{type:Boolean,reflect:!0,noAccessor:!0},disabled:{type:Boolean,reflect:!0,noAccessor:!0},min:{type:Number,noAccessor:!0},max:{type:Number,noAccessor:!0},step:{type:Number,noAccessor:!0},range:{type:Boolean,reflect:!0,noAccessor:!0},minValue:{type:Number,attribute:"min-value",noAccessor:!0},maxValue:{type:Number,attribute:"max-value",noAccessor:!0},size:{reflect:!0}}}captureValueBatch(){return this.pendingValueBatch||(this.pendingValueBatch={value:this._value,min:this._minValue,max:this._maxValue},this.requestUpdate()),this.pendingValueBatch}constructor(){super(),this.size="m",this._value=0,this._defaultValue=0,this._valueDirty=!1,this.settingDefaultValue=!1,this.reflectingDefaultValue=!1,this._name=null,this._required=!1,this._disabled=!1,this._fieldsetDisabled=!1,this._hasInteracted=!1,this._min=0,this._max=100,this._step=1,this._range=!1,this._minValue=0,this._maxValue=50,this._minValueDirty=!1,this._maxValueDirty=!1,this.applyingRangeValueAttribute=!1,this._defaultMinValue=0,this._defaultMaxValue=50,this.label="",this.hint="",this.helpText="",this.errorText="",this.withLabel=!1,this.withHint=!1,this.autofocus=!1,this.orientation="horizontal",this.readonly=!1,this.withMarkers=!1,this.withTooltip=!1,this.tooltipPlacement="top",this.tooltipDistance=8,this.tooltip="none",this.withValue=!1,this.valueDisplay="numeric",this.valuePlacement="inline",this.slotPresence=new SlotPresenceController(this),this.dragController=new RangeDragController(this,event=>this.onPointerMove(event),event=>this.onPointerUp(event)),this.pendingKeyHandle=null,this.focusedHandle=null,this.rangeFocusGeneration=0,this.markInteracted=()=>{this._hasInteracted||(this._hasInteracted=!0,this.syncValidityStates())},this.markFocusoutInteracted=()=>{this.effectiveDisabled||this.matches(":disabled")||this.rangeFocusTransfer||this.markInteracted()},this.onKeyDown=(handle,e)=>{if(!this.interactive)return;const current=this.valueForHandle(handle),rtl=isRtl(this),forwardKey=rtl?"ArrowLeft":"ArrowRight",backwardKey=rtl?"ArrowRight":"ArrowLeft",bounds=this.reachableBounds(handle),move=next=>{e.preventDefault(),this.assignValueFor(handle,next)&&(this.pendingKeyHandle=handle,this.emitInput(handle))};e.key===forwardKey||e.key==="ArrowUp"?move(this.directionalStep(current,1)):e.key===backwardKey||e.key==="ArrowDown"?move(this.directionalStep(current,-1)):e.key==="PageUp"?move(this.directionalStep(current,RANGE_PAGE_STEP_MULTIPLIER)):e.key==="PageDown"?move(this.directionalStep(current,-RANGE_PAGE_STEP_MULTIPLIER)):e.key==="Home"?move(bounds.min):e.key==="End"&&move(bounds.max)},this.onKeyUp=e=>{if(!this.interactive||!isSliderKey(e.key))return;const handle=this.pendingKeyHandle;handle!==null&&(this.pendingKeyHandle=null,this.emitChange(handle))},this.onPointerDown=(handle,e)=>{!this.interactive||e.button!==0||this.beginDrag(e,handle,e.target,this.trackRect(),isRtl(this))},this.onBasePointerDown=e=>{if(!this.interactive||e.button!==0)return;const thumbs=Array.from(this.renderRoot.querySelectorAll('[part~="thumb"]'));if(thumbs.length===0||thumbs.includes(e.target))return;const rect=this.trackRect();if(!rect)return;const rtl=isRtl(this),{lo,hi}=this.domain(),target=finiteInterpolate(lo,hi,this.ratioFromPointer(e,rect,rtl)),handle=this.range?this.nearestHandle(target):"value",thumb=this.handleElement(handle)??thumbs[0];if(!thumb)return;const drag=this.beginDrag(e,handle,thumb,rect,rtl);drag&&(this.setValueFor(handle,target,!1)&&(drag.changed=!0),thumb.focus())},this.onPointerMove=e=>{const drag=this.drags.get(e.pointerId);if(drag===void 0)return;if(!this.interactive){this.endDrag(e.pointerId,!1);return}if(!drag.rect)return;const{lo,hi}=this.domain(),value=finiteInterpolate(lo,hi,this.ratioFromPointer(e,drag.rect,drag.rtl));this.setValueFor(drag.handle,value,!1)&&(drag.changed=!0)},this.onPointerUp=e=>{this.endDrag(e.pointerId,e.type==="pointerup"&&this.interactive)},this.validityController=new FormControlController(this,{invalid:init=>this.emit("lr-invalid",null,init),interacted:this.markInteracted,customError:()=>this.validityController.customValidityMessage}),this.internals=this.validityController.formInternals,this.internals.setFormValue("0","0"),this.addEventListener("input",this.markInteracted),this.addEventListener("change",this.markInteracted),this.addEventListener("focusout",this.markFocusoutInteracted),this.syncValidityStates()}get value(){return this._value}set value(next){const old=this._value;this.settingDefaultValue||(this._valueDirty=!0);const raw=finiteNumber(Number(next),this.defaultNumericValue());this.captureValueBatch().value=raw,this._value=this.clampValue(raw),this.syncFormValue(),this.requestUpdate("value",old)}get defaultValue(){return this._defaultValue}set defaultValue(next){if(this.reflectingDefaultValue)return;const old=this._defaultValue;this._defaultValue=next==null?0:finiteNumber(Number(next),0),this.reflectingDefaultValue=!0;try{next==null?this.removeAttribute("value"):this.setAttribute("value",String(this._defaultValue))}finally{this.reflectingDefaultValue=!1}this._valueDirty||this.restoreLiveValueFromDefault(),this.requestUpdate("defaultValue",old)}get valueAsNumber(){return this.value}set valueAsNumber(next){this.value=next}get valueAsString(){return String(this.value)}set valueAsString(next){this.value=next}get name(){return this._name}set name(next){const old=this._name;this._name=next||null,reflectFormName(this,this._name),this.syncFormValue(),this.requestUpdate("name",old)}get required(){return this._required}set required(next){const old=this._required;this._required=!!next,this.toggleAttribute("required",this._required),this.updateValidity(),this.requestUpdate("required",old)}get disabled(){return this._disabled}set disabled(next){const old=this._disabled;this._disabled=!!next,this.toggleAttribute("disabled",this._disabled),this._fieldsetDisabled=this.validityController?.fieldsetDisabled(this._fieldsetDisabled)??this._fieldsetDisabled,this._disabled&&(this.pendingKeyHandle=null,this.abortActiveDrags()),this.syncInteractionStates(),this.syncValidityStates(),this.requestUpdate("disabled",old)}get effectiveDisabled(){return this.disabled||this._fieldsetDisabled}get form(){return getFormOwner(this.internals)}set form(owner){setFormOwner(this,owner)}get min(){return this._min}set min(next){this.captureValueBatch();const old=this._min;this._min=finiteNumber(next,0),this.requestUpdate("min",old),this.sanitizeCurrentValue()}get max(){return this._max}set max(next){this.captureValueBatch();const old=this._max;this._max=finiteNumber(next,100),this.requestUpdate("max",old),this.sanitizeCurrentValue()}get step(){return this._step}set step(next){this.captureValueBatch();const old=this._step;this._step=next==null?1:finiteRange(next,0,0),this.requestUpdate("step",old),this.sanitizeCurrentValue()}get range(){return this._range}set range(next){const old=this._range;this._range=!!next,this.requestUpdate("range",old),this.syncFormValue()}get isRange(){return this.range}get minValue(){return this._minValue}set minValue(next){const batch=this.captureValueBatch();batch.min=finiteNumber(next,0),batch.lastRange="min";const old=this._minValue;if(this.applyingRangeValueAttribute||(this._minValueDirty=!0),this._minValue=this.clampValue(finiteNumber(next,0)),this._minValue>this._maxValue){const oldMax=this._maxValue;this._maxValue=this._minValue,this.applyingRangeValueAttribute||(this._maxValueDirty=!0),this.requestUpdate("maxValue",oldMax)}this.syncFormValue(),this.requestUpdate("minValue",old)}get maxValue(){return this._maxValue}set maxValue(next){const batch=this.captureValueBatch();batch.max=finiteNumber(next,50),batch.lastRange="max";const old=this._maxValue;if(this.applyingRangeValueAttribute||(this._maxValueDirty=!0),this._maxValue=this.clampValue(finiteNumber(next,50)),this._maxValue<this._minValue){const oldMin=this._minValue;this._minValue=this._maxValue,this.applyingRangeValueAttribute||(this._minValueDirty=!0),this.requestUpdate("minValue",oldMin)}this.syncFormValue(),this.requestUpdate("maxValue",old)}requestUpdate(...args){args[0]==="readonly"&&this.readonly&&(this.pendingKeyHandle=null,this.abortActiveDrags()),super.requestUpdate(...args)}get hasHintSlot(){return this.slotPresence.has("hint")||this.slotPresence.has("help-text")}get hasErrorSlot(){return this.slotPresence.has("error")}get hasLabelSlot(){return this.slotPresence.has("label")}get hasReferenceSlot(){return this.slotPresence.has("reference")}get drags(){return this.dragController.active}syncExternalDescription(){const primary=this.isConnected?this.range?this.handleElement("min"):this.firstThumb():null;primary?this.externalDescriptionLease?this.externalDescriptionLease.update(primary):this.externalDescriptionLease=acquireResolvedAriaRelationship(this,primary,"aria-describedby"):(this.externalDescriptionLease?.release(),this.externalDescriptionLease=void 0);const secondary=this.isConnected&&this.range?this.handleElement("max"):null;secondary?this.externalDescriptionLeaseMax?this.externalDescriptionLeaseMax.update(secondary):this.externalDescriptionLeaseMax=acquireResolvedAriaRelationship(this,secondary,"aria-describedby"):(this.externalDescriptionLeaseMax?.release(),this.externalDescriptionLeaseMax=void 0)}releaseExternalDescription(){this.externalDescriptionLease?.release(),this.externalDescriptionLease=void 0,this.externalDescriptionLeaseMax?.release(),this.externalDescriptionLeaseMax=void 0}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this.syncExternalDescription(),this._valueDirty?this.sanitizeCurrentValue():this.restoreLiveValueFromDefault(),this._minValueDirty||(this._minValue=this.clampValue(this._defaultMinValue)),this._maxValueDirty||(this._maxValue=this.clampValue(this._defaultMaxValue)),this.sanitizeHandles(),this.syncFormValue(),this.updateValidity(),this.syncInteractionStates()}willUpdate(changed){if(super.willUpdate(changed),this.pendingValueBatch&&(this.sanitizeCurrentValue(),this.pendingValueBatch=void 0),!changed.has("range")||!this.hasUpdated)return;const active=shadowFocusTarget(this);if(active?.matches('[part~="thumb"]')){const target=this.range?"min":"value";this.rangeFocusTransfer={origin:active,target},this.focusedHandle=target,this.syncInteractionStates(),this.rangeFocusGeneration++}this.pendingKeyHandle=null,this.abortActiveDrags()}updated(changed){if(super.updated(changed),this.syncExternalDescription(),changed.has("readonly")&&this.syncValidityStates(),!changed.has("range"))return;const transfer=this.rangeFocusTransfer;if(this.rangeFocusTransfer=void 0,!transfer)return;const generation=this.rangeFocusGeneration;this.scheduleAfterUpdate(()=>{if(generation!==this.rangeFocusGeneration||!this.isConnected)return;const internalActive=shadowFocusTarget(this),documentActive=activeElementIn(this.ownerDocument),focusStayedAtOrigin=internalActive===transfer.origin,originWasRemovedWithoutReplacement=internalActive===null&&(documentActive===null||documentActive===this||documentActive===this.ownerDocument.body);if(!this.effectiveDisabled&&(focusStayedAtOrigin||originWasRemovedWithoutReplacement)&&this.handleElement(transfer.target)?.focus(),generation!==this.rangeFocusGeneration||!this.isConnected)return;const active=shadowFocusTarget(this),focused=active===null?null:active===this.handleElement("min")?"min":active===this.handleElement("max")?"max":active===this.firstThumb()?"value":null;this.focusedHandle!==focused&&(this.focusedHandle=focused,this.syncInteractionStates(),this.requestUpdate())},"slider-range-focus")}firstUpdated(changed){if(super.firstUpdated(changed),!this.autofocus)return;const owner=this.ownerDocument.defaultView;if(!owner)return;const handle=owner.requestAnimationFrame(()=>{this.autofocusFrame?.owner!==owner||this.autofocusFrame.handle!==handle||(this.autofocusFrame=void 0,this.isConnected&&this.ownerDocument.defaultView===owner&&this.autofocus&&this.focus())});this.autofocusFrame={owner,handle}}disconnectedCallback(){this.releaseExternalDescription(),super.disconnectedCallback(),this.rangeFocusGeneration++,this.rangeFocusTransfer=void 0,this.abortActiveDrags(),this.pendingKeyHandle=null,this.focusedHandle=null,this.syncInteractionStates(),this.cancelAutofocusFrame()}adoptedCallback(){super.adoptedCallback(),this.releaseExternalDescription(),this.isConnected&&this.hasUpdated&&this.syncExternalDescription(),this.rangeFocusGeneration++,this.rangeFocusTransfer=void 0,this.abortActiveDrags(),this.pendingKeyHandle=null,this.focusedHandle=null,this.syncInteractionStates(),this.cancelAutofocusFrame()}cancelAutofocusFrame(){const autofocusFrame=this.autofocusFrame;this.autofocusFrame=void 0,autofocusFrame&&autofocusFrame.owner.cancelAnimationFrame(autofocusFrame.handle)}attributeChangedCallback(name,old,value){const isRangeValue=name==="min-value"||name==="max-value";isRangeValue&&(this.applyingRangeValueAttribute=!0);try{super.attributeChangedCallback(name,old,value)}finally{isRangeValue&&(this.applyingRangeValueAttribute=!1)}name==="min-value"&&(this._defaultMinValue=value===null?0:finiteNumber(Number(value),0)),name==="max-value"&&(this._defaultMaxValue=value===null?50:finiteNumber(Number(value),50))}formDisabledCallback(fieldsetDisabled){if(this.validityController?.reflectingDisabled)return;const wasDisabled=this.effectiveDisabled;this._fieldsetDisabled=fieldsetDisabled,wasDisabled!==this.effectiveDisabled&&(fieldsetDisabled&&(this.pendingKeyHandle=null,this.abortActiveDrags()),this.syncInteractionStates(),this.syncValidityStates(),this.requestUpdate())}[VALIDITY_ANCHOR](){return this.firstThumb()}checkValidity(){return this.validityController.checkValidity()}reportValidity(){return this.validityController.syncConstraints(),this.markInteracted(),this.internals.reportValidity()}setCustomValidity(message){this.validityController.setCustomValidity(message??""),this.syncValidityStates(),this.requestUpdate()}resetValidity(){this.setCustomValidity("")}formResetCallback(){this.pendingValueBatch={value:this._defaultValue,min:this._defaultMinValue,max:this._defaultMaxValue},this.restoreLiveValueFromDefault(),this._minValue=this._defaultMinValue,this._maxValue=this._defaultMaxValue,this._minValueDirty=!1,this._maxValueDirty=!1,this.sanitizeHandles(),this._hasInteracted=!1,this.syncFormValue(),this.syncValidityStates(),this.requestUpdate()}formStateRestoreCallback(state2,reason){const values=this.readFormDataStrings(state2);if(values){values.length>=2&&(this.minValue=finiteNumber(Number(values[0]),this._defaultMinValue),this.maxValue=finiteNumber(Number(values[1]),this._defaultMaxValue));return}this.value=typeof state2=="string"?state2:this._defaultValue}readFormDataStrings(value){if(value===null||typeof value!="object")return null;const FormDataCtor=this.ownerDocument.defaultView?.FormData;if(!FormDataCtor)return null;try{const iterator=FormDataCtor.prototype.values.call(value),strings=[];for(const entry of iterator)typeof entry=="string"&&strings.push(entry);return strings}catch{return null}}restoreLiveValueFromDefault(){this.settingDefaultValue=!0;try{this.value=this._defaultValue}finally{this.settingDefaultValue=!1}this._valueDirty=!1}updateValidity(){this.validityController.setValidity({}),this.syncValidityStates()}get barredFromValidation(){return isBarredFromValidation(this,this.internals)}syncValidityStates(){syncValidityStates(this.internals,{required:this.required,hasInteracted:this._hasInteracted,barred:this.barredFromValidation})}syncInteractionStates(){setCustomState(this.internals,"disabled",this.effectiveDisabled),setCustomState(this.internals,"dragging",this.drags.size>0),setCustomState(this.internals,"focused",this.focusedHandle!==null)}click(){this.effectiveDisabled||this.firstThumb()?.click()}focus(options){this.effectiveDisabled||this.firstThumb()?.focus(options)}blur(){const active=shadowFocusTarget(this);active?.nodeType===1&&typeof active.matches=="function"&&typeof active.blur=="function"&&active.matches('[part~="thumb"]')?active.blur():this.firstThumb()?.blur()}stepUp(steps=1){this.stepBy(steps)}stepDown(steps=1){this.stepBy(-steps)}stepBy(steps){if(!this.interactive||finiteRange(this.step,0,0)<=0)return;const count=Math.trunc(finiteNumber(steps,1));if(count===0)return;const handle=this.range&&this.focusedHandle!=="max"?"min":this.focusedHandle??"value";this.assignValueFor(handle,this.directionalStep(this.valueForHandle(handle),count))}directionalStep(current,count){const{lo,hi}=this.domain();if(count===0)return current;const direction=Math.sign(count),magnitude=(this.step>0?this.step:(hi-lo)/100)*Math.abs(count);if(!Number.isFinite(magnitude))return direction>0?hi:lo;const candidate=current+direction*magnitude;return Number.isFinite(candidate)?candidate:direction>0?hi:lo}firstThumb(){return this.renderRoot?.querySelector('[part~="thumb"]')??null}handleElement(handle){const selector={value:'[part~="thumb"]',min:'[part~="thumb-min"]',max:'[part~="thumb-max"]'}[handle];return this.renderRoot?.querySelector(selector)??null}get interactive(){return!this.effectiveDisabled&&!this.matches(":disabled")&&!this.readonly}sanitizeCurrentValue(){this.sanitizeHandles();const old=this._value;this._value=this.clampValue(this.pendingValueBatch?.value??this._value),this._value!==old&&this.requestUpdate("value",old),this.syncFormValue()}sanitizeHandles(){this._minValue=this.clampValue(this.pendingValueBatch?.min??this._minValue),this._maxValue=this.clampValue(this.pendingValueBatch?.max??this._maxValue),this._minValue>this._maxValue&&(this.pendingValueBatch?.lastRange==="max"?this._minValue=this._maxValue:this._maxValue=this._minValue)}syncFormValue(){if(!this.internals)return;if(!this.range){const serialized=String(this.value);this.internals.setFormValue(serialized,serialized),this.updateValidity();return}const FormDataCtor=this.ownerDocument?.defaultView?.FormData;if(!FormDataCtor){this.internals.setFormValue(null),this.updateValidity();return}const state2=new FormDataCtor,stateKey=this.name||"value";if(state2.append(stateKey,String(this.minValue)),state2.append(stateKey,String(this.maxValue)),!this.name)this.internals.setFormValue(null,state2);else{const submission=new FormDataCtor;submission.append(this.name,String(this.minValue)),submission.append(this.name,String(this.maxValue)),this.internals.setFormValue(submission,state2)}this.updateValidity()}domain(){const min=finiteNumber(this.min,0),max=finiteNumber(this.max,100);return{lo:Math.min(min,max),hi:Math.max(min,max)}}defaultNumericValue(){return this.clampValue(0)}percentOf(value){const{lo,hi}=this.domain(),safeValue=finiteRange(value,lo,lo,hi);return finiteRatio(safeValue,lo,hi)*100}clampValue(raw){const{lo,hi}=this.domain();return clampSteppedValue(raw,lo,hi,this.step)}valueForHandle(handle){return handle==="min"?this.minValue:handle==="max"?this.maxValue:this.valueAsNumber}reachableBounds(handle){const{lo,hi}=this.domain();return{min:lo,max:hi}}detailFor(handle){return{value:this.valueForHandle(handle),minValue:this.minValue,maxValue:this.maxValue,handle}}emitInput(handle){dispatchNativeInputEvent(this),this.emit("lr-input",this.detailFor(handle))}emitChange(handle){dispatchNativeEvent(this,"change"),this.emit("lr-change",this.detailFor(handle))}assignValueFor(handle,raw){const previous=this.valueForHandle(handle),stepped=this.clampValue(raw);if(stepped===previous)return!1;if(handle==="min"){if(this._minValueDirty=!0,this._minValue=stepped,this.requestUpdate("minValue",previous),this._minValue>this._maxValue){const previousMax=this._maxValue;this._maxValueDirty=!0,this._maxValue=this._minValue,this.requestUpdate("maxValue",previousMax)}}else if(handle==="max"){if(this._maxValueDirty=!0,this._maxValue=stepped,this.requestUpdate("maxValue",previous),this._maxValue<this._minValue){const previousMin=this._minValue;this._minValueDirty=!0,this._minValue=this._maxValue,this.requestUpdate("minValue",previousMin)}}else this.value=stepped;return handle!=="value"&&this.syncFormValue(),!0}setValueFor(handle,raw,commit){return this.assignValueFor(handle,raw)?(this.emitInput(handle),commit&&this.emitChange(handle),!0):!1}ratioFromPointer(e,rect,rtl){return rangePointerRatio(e.clientX,e.clientY,rect,rtl,this.orientation==="vertical")}nearestHandle(target){return nearestRangeEnd(target,this.minValue,this.maxValue)===0?"min":"max"}beginDrag(event,handle,captureTarget,rect,rtl){const drag=this.dragController.begin(event,{handle,changed:!1,captureTarget,rect,rtl});return drag&&(this.syncInteractionStates(),this.requestUpdate()),drag}trackRect(){return this.renderRoot.querySelector('[part="track"]')?.getBoundingClientRect()??null}endDrag(pointerId,commit){const drag=this.dragController.end(pointerId);drag&&(commit&&drag.changed&&this.emitChange(drag.handle),this.syncInteractionStates(),this.requestUpdate())}abortActiveDrags(){this.drags.size!==0&&(this.dragController.abort(),this.syncInteractionStates())}onHandleFocus(handle,event){this.focusedHandle!==handle&&(this.focusedHandle=handle,this.syncInteractionStates(),this.requestUpdate()),relayNativeEvent(this,event)}onHandleBlur(handle,event){this.pendingKeyHandle===handle&&(this.pendingKeyHandle=null,this.interactive&&this.isConnected&&this.emitChange(handle)),this.focusedHandle===handle&&(this.focusedHandle=null,this.syncInteractionStates(),this.requestUpdate()),relayNativeEvent(this,event)}formatValue(value){return getNumberFormat(this.effectiveLocale,{maximumFractionDigits:20}).format(value)}readoutText(){const format=(value,handle)=>{if(this.valueDisplay==="formatted"){const text=this.valueFormatter?this.valueFormatter(value,handle):this.tooltipFormatter?.(value);if(text!=null)return text}return this.formatValue(value)};return this.range?[format(this.minValue,"min"),format(this.maxValue,"max")]:[format(this.valueAsNumber,"value")]}resolvedLabel(){const hostLabel=this.getAttribute("aria-label");return hostLabel!==null?hostLabel:this.label||this.localize("sliderLabel")}offsetStyle(percent){return this.orientation==="vertical"?`inset-block-end:${percent}%`:`inset-inline-start:${percent}%`}markerPercents(){if(!this.withMarkers)return[];const step=finiteRange(this.step,0,0);if(step<=0)return[];const{lo,hi}=this.domain(),span=hi-lo;if(!Number.isFinite(span)||span<=0)return[];const ratio=span/step,intervals=Math.floor(ratio+Number.EPSILON*Math.max(1,Math.abs(ratio))*4);return!Number.isFinite(intervals)||intervals<1||intervals>MAX_MARKER_INTERVALS?[]:Array.from({length:intervals+1},(_unused,index)=>{const value=lo+index*step;return finiteRatio(value,lo,hi)*100})}renderHandle(handle,describedBy,labelledBy,invalid){const value=this.valueForHandle(handle),bounds=this.reachableBounds(handle),percent=this.percentOf(value),ariaOrientation=SLIDER_ORIENTATION.normalize(this.orientation),numeric=this.formatValue(value),valueText=this.valueFormatter?this.valueFormatter(value,handle):this.tooltipFormatter?this.tooltipFormatter(value):numeric,partName={value:"thumb",min:"thumb thumb-min",max:"thumb thumb-max"}[handle],handleLabel={value:this.resolvedLabel(),min:this.localize("rangeStart"),max:this.localize("rangeEnd")}[handle],tooltipPart=this.focusedHandle===handle||Array.from(this.drags.values()).some(drag=>drag.handle===handle)?"tooltip tooltip__tooltip tooltip-visible":"tooltip tooltip__tooltip",showTooltip=this.withTooltip||this.tooltip!=="none",placement=this.tooltip==="none"?this.tooltipPlacement:this.tooltip,tooltipStyle=`${this.offsetStyle(percent)};--lr-slider-tooltip-distance:${finiteRange(this.tooltipDistance,8,0)}`;return html`
2
2
  <div
3
3
  part=${partName}
4
4
  role="slider"
@@ -1,2 +1,2 @@
1
- /** @deprecated Import @aceshooting/lyra-ui/components/lr-slider.js to register this component. */
1
+ /** @deprecated Import @aceshooting/lyra-ui/components/lr-slider.js to register this component.*/
2
2
  export*from'./slider.class.js';
@@ -1,7 +1,7 @@
1
1
  import{type PropertyValues,type TemplateResult}from'lit';import{LyraElement}from'../../../internal/lyra-element.js';import{type GemstoneKey}from'../../../theme/gemstones.js';import type{LyraSize}from'../../../internal/variants.js';export interface SwatchPickerItem{
2
- /** The option's value -- reported in `lr-change` and matched against `value`. */
2
+ /** The option's value -- reported in `lr-change` and matched against `value`.*/
3
3
  readonly value:string;
4
- /** The swatch's fill color. Invalid CSS colors and `url()` paint servers are ignored. */
4
+ /** The swatch's fill color. Invalid CSS colors and `url()` paint servers are ignored.*/
5
5
  readonly color:string;
6
6
  /** The swatch's nonblank accessible name; also used as its native `title` tooltip. Rows with
7
7
  * an empty or whitespace-only label are omitted. */
@@ -118,7 +118,7 @@ export declare class LyraSwatchPicker extends LyraElement<LyraSwatchPickerEventM
118
118
  /** The selectable color swatches, in display order. Assign a new array to update: mutating an
119
119
  * array and assigning it again does not. */
120
120
  get items():readonly SwatchPickerItem[];set items(next:readonly SwatchPickerItem[]);
121
- /** The currently selected option's `value`, or `null` when nothing is selected. */
121
+ /** The currently selected option's `value`, or `null` when nothing is selected.*/
122
122
  value:string|null;
123
123
  /** Visual size — scales the swatch hit-area and fill diameter proportionally, hit-area
124
124
  * floored at 24px (WCAG 2.5.8); not pixel-matched to `lr-input`'s row-height scale. The Web Awesome / Shoelace spellings
@@ -144,7 +144,7 @@ disabled:boolean;private selectedOption?;private fallbackTabbableIndex;private p
144
144
  * Without this, `HTMLElement.prototype.click()` on the host is a no-op: no click handler is
145
145
  * bound to the host itself, only to the individual `[part="swatch"]` buttons. */
146
146
  click():void;
147
- /** Moves focus to the tabbable swatch. */
147
+ /** Moves focus to the tabbable swatch.*/
148
148
  focus(options?:FocusOptions):void;
149
- /** Removes focus from the tabbable swatch. */
149
+ /** Removes focus from the tabbable swatch.*/
150
150
  blur():void;private keyboardOriginIndex;private onKeyDown;render():TemplateResult;}declare global{interface HTMLElementTagNameMap{'lr-swatch-picker':LyraSwatchPicker;}}
@@ -1,2 +1,2 @@
1
- /** @deprecated Import @aceshooting/lyra-ui/components/lr-swatch-picker.js to register this component. */
1
+ /** @deprecated Import @aceshooting/lyra-ui/components/lr-swatch-picker.js to register this component.*/
2
2
  export*from'./swatch-picker.class.js';
@@ -133,7 +133,7 @@ import{type TemplateResult,type PropertyValues}from'lit';import{LyraElement}from
133
133
  * @since 4.0.0
134
134
  */
135
135
  export declare class LyraSwitch extends LyraSwitch_base{
136
- /** Public WA-compatible intrinsic validator catalog. */
136
+ /** Public WA-compatible intrinsic validator catalog.*/
137
137
  static get validators():LyraFormValidator<LyraSwitch>[];static styles:import("lit").CSSResultGroup[];static properties:{size:{reflect:boolean;};};
138
138
  /**
139
139
  * Control size, on the library's shared ladder. Accepts both spellings of every tier —
@@ -144,11 +144,11 @@ static get validators():LyraFormValidator<LyraSwitch>[];static styles:import("li
144
144
  * through `::part(label)` if you want it to track the control.
145
145
  */
146
146
  size:LyraSize;
147
- /** Hint text below the switch. Unset: no hint chrome renders. */
147
+ /** Hint text below the switch. Unset: no hint chrome renders.*/
148
148
  hint:string;
149
- /** Shoelace alias for {@link hint}. `hint` wins when both are supplied. */
149
+ /** Shoelace alias for {@link hint}. `hint` wins when both are supplied.*/
150
150
  helpText:string;
151
- /** WA SSR slot-presence hint used before light-DOM assignment can be inspected. */
151
+ /** WA SSR slot-presence hint used before light-DOM assignment can be inspected.*/
152
152
  withHint:boolean;
153
153
  /** Error text below the switch (overridden by slotted `error` content). Unset: no error chrome
154
154
  * renders. */
@@ -161,7 +161,7 @@ protected checkedWritten(previous:boolean):void;protected requiredMessage():stri
161
161
  * on the host is a no-op: the real click handler is bound only to the internal
162
162
  * `[part~="base"]` control, not the host itself. */
163
163
  click():void;
164
- /** Moves focus to the internal switch control. */
164
+ /** Moves focus to the internal switch control.*/
165
165
  focus(options?:FocusOptions):void;
166
- /** Removes focus from the internal switch control. */
167
- blur():void;private externalDescriptionLease?;private syncExternalDescription;protected updated(changed:PropertyValues):void;private releaseExternalDescription;connectedCallback():void;adoptedCallback():void;disconnectedCallback():void;protected willUpdate(changed:PropertyValues):void;private setFromUser;private onClick;private onBlur;private onFocus;private onKeyDown;private isDefaultLabelNode;private labelForwardingSlots;private recomputeHasLabelSlot;private handleLabelSlotChange;private onLabelSlotChange;private onSlotChange;render():TemplateResult;}declare global{interface HTMLElementTagNameMap{'lr-switch':LyraSwitch;}}export{};
166
+ /** Removes focus from the internal switch control.*/
167
+ blur():void;private externalDescriptionLease?;private syncExternalDescription;protected updated(changed:PropertyValues):void;private releaseExternalDescription;connectedCallback():void;adoptedCallback():void;disconnectedCallback():void;protected willUpdate(changed:PropertyValues):void;private setFromUser;private onClick;private onBlur;private onFocus;private onKeyDown;private recomputeHasLabelSlot;private handleLabelSlotChange;private onLabelSlotChange;private onSlotChange;render():TemplateResult;}declare global{interface HTMLElementTagNameMap{'lr-switch':LyraSwitch;}}export{};
@@ -1,4 +1,4 @@
1
- import{__decorate}from"tslib";import{SlotPresenceController}from"../../../internal/slot-presence-controller.js";import{installFormControlLabelSupport}from"../../../internal/form-control-labels.js";import{acquireResolvedAriaRelationship}from"../../../internal/aria-controls.js";import{html,nothing}from"lit";import{property,state}from"lit/decorators.js";import{LyraElement}from"../../../internal/lyra-element.js";import{AccessibleTextController}from"../../../internal/accessible-text-controller.js";import{VALIDITY_ANCHOR}from"../../../internal/anchored-validity.js";import{sizes}from"../../../internal/sizes.styles.js";import{styles}from"./switch.styles.js";import{dispatchNativeEvent,relayNativeEvent}from"../../../internal/native-event-relay.js";import{requestThenCommit}from"../../../internal/request-commit.js";import{markVetoGuardWrite,VetoWriteGuard}from"../../../internal/veto-write-guard.js";import{hasRealContent}from"../../../internal/a11y.js";import{isActionableElement}from"../../../internal/focus-navigation.js";import{CheckedFormAssociated}from"../../../internal/form-associated.js";import{currentValidityValidator}from"../form-validator.js";import{LYRA_DEFAULT_switchRequired}from"../../../internal/default-strings/forms.generated.js";import{LYRA_DEFAULT_fieldRequired}from"../../../internal/default-strings/shared.generated.js";installFormControlLabelSupport();class LyraSwitchBase extends LyraElement{}class LyraSwitch extends CheckedFormAssociated(LyraSwitchBase){constructor(){super(...arguments),this.size="m",this.hint="",this.helpText="",this.withHint=!1,this.errorText="",this.hasLabelSlot=!1,this.slotPresence=new SlotPresenceController(this),this.labelTextObserver=new AccessibleTextController(this,[""],()=>this.recomputeHasLabelSlot(),["slot"]),this.toggleGuard=new VetoWriteGuard,this.onClick=event=>{const owner=this[VALIDITY_ANCHOR]();for(const target of event.composedPath()){if(target===event.currentTarget)break;if(target&&typeof target=="object"&&target.nodeType===1&&target!==owner&&isActionableElement(target))return}this.setFromUser(!this.checked)},this.onBlur=event=>{this.liveDisabled||this.setInteracted(!0),relayNativeEvent(this,event)},this.onFocus=event=>{if(this.liveDisabled){event.stopPropagation();return}relayNativeEvent(this,event)},this.onKeyDown=e=>{if(!this.liveDisabled&&!e.repeat){if(e.key===" "||e.key==="Spacebar"){e.preventDefault(),this.setFromUser(!this.checked);return}if(e.key==="ArrowLeft"||e.key==="ArrowRight"){e.preventDefault();const turnsOn=this.effectiveDirection==="rtl"?e.key==="ArrowLeft":e.key==="ArrowRight";this.setFromUser(turnsOn)}}},this.onLabelSlotChange=event=>this.handleLabelSlotChange(event),this.onSlotChange=event=>this.handleLabelSlotChange(event)}static{this.defaultStrings={...super.defaultStrings,fieldRequired:LYRA_DEFAULT_fieldRequired,switchRequired:LYRA_DEFAULT_switchRequired}}static get validators(){return[currentValidityValidator("required","disabled","checked","value")]}static{this.styles=[LyraElement.styles,sizes,styles]}static{this.properties={size:{reflect:!0}}}get hasHintSlot(){return this.slotPresence.has("hint")}get hasHelpTextSlot(){return this.slotPresence.has("help-text")}get hasErrorSlot(){return this.slotPresence.has("error")}checkedWritten(previous){markVetoGuardWrite(this.toggleGuard)}requiredMessage(){return this.localize("switchRequired")}[VALIDITY_ANCHOR](){return this.renderRoot?.querySelector(".switch-owner")??null}get liveDisabled(){return this.effectiveDisabled||this.matches(":disabled")}click(){this.liveDisabled||this[VALIDITY_ANCHOR]()?.click()}focus(options){this.liveDisabled||this[VALIDITY_ANCHOR]()?.focus(options)}blur(){this[VALIDITY_ANCHOR]()?.blur()}syncExternalDescription(){if(!this.isConnected)return;const target=this[VALIDITY_ANCHOR]();target&&(this.externalDescriptionLease?this.externalDescriptionLease.update(target):this.externalDescriptionLease=acquireResolvedAriaRelationship(this,target,"aria-describedby"))}updated(changed){super.updated(changed),this.syncExternalDescription()}releaseExternalDescription(){this.externalDescriptionLease?.release(),this.externalDescriptionLease=void 0}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this.syncExternalDescription(),this.addEventListener("slotchange",this.onLabelSlotChange),this.hasUpdated?this.recomputeHasLabelSlot():this.seedFirstRenderState(()=>this.recomputeHasLabelSlot())}adoptedCallback(){super.adoptedCallback(),this.labelTextObserver.adopted(),this.releaseExternalDescription(),this.hasUpdated&&this.syncExternalDescription()}disconnectedCallback(){this.releaseExternalDescription(),this.removeEventListener("slotchange",this.onLabelSlotChange),super.disconnectedCallback()}willUpdate(changed){super.willUpdate(changed)}setFromUser(next){this.liveDisabled||this.checked!==next&&requestThenCommit({requestDetail:{checked:next,value:this.value},emitRequest:(detail,init)=>this.emit("lr-switch-toggle-request",detail,init),guard:this.toggleGuard,commit:()=>{this.setInteracted(!0),this.checked=next,dispatchNativeEvent(this,"input"),this.emit("lr-input",{checked:this.checked,value:this.value}),dispatchNativeEvent(this,"change"),this.emit("lr-change",{checked:this.checked,value:this.value})}})}isDefaultLabelNode(node){if(node.nodeType!==1)return!0;const slotName=node.getAttribute("slot");return slotName===null||slotName===""}labelForwardingSlots(){return Array.from(this.querySelectorAll("slot")).filter(slot=>{let top=slot;for(;top.parentNode&&top.parentNode!==this;)top=top.parentNode;return top.parentNode===this&&this.isDefaultLabelNode(top)})}recomputeHasLabelSlot(){const renderRoot=this.renderRoot,childNodes=this.childNodes;if(!renderRoot||!childNodes)return;const slot=renderRoot.querySelector("slot:not([name])"),nodes=slot?slot.assignedNodes({flatten:!0}):Array.from(childNodes).filter(node=>this.isDefaultLabelNode(node)).flatMap(node=>{if(node.nodeType!==1||node.localName!=="slot")return[node];const forwardingSlot=node;return forwardingSlot.assignedNodes().length>0?forwardingSlot.assignedNodes({flatten:!0}):Array.from(forwardingSlot.childNodes)});this.hasLabelSlot=hasRealContent(nodes)}handleLabelSlotChange(event){const target=event.target;if(!(target?.nodeType!==1||target.localName!=="slot")){if(target.getRootNode()===this.renderRoot){if((target.getAttribute("name")??"")!=="")return}else if(!this.labelForwardingSlots().includes(target))return;this.labelTextObserver.bind(),this.recomputeHasLabelSlot()}}render(){const hasHint=this.withHint||this.hasHintSlot||this.hasHelpTextSlot||(this.hint??"").length>0||(this.helpText??"").length>0,hasError=this.hasErrorSlot||(this.errorText??"").length>0,describedBy=[hasError?"switch-error":"",hasHint?"switch-hint":""].filter(Boolean).join(" "),invalid=hasError||this.hasInteracted&&!this.internals.validity.valid;return html`
1
+ import{__decorate}from"tslib";import{SlotPresenceController}from"../../../internal/slot-presence-controller.js";import{installFormControlLabelSupport}from"../../../internal/form-control-labels.js";import{acquireResolvedAriaRelationship}from"../../../internal/aria-controls.js";import{html,nothing}from"lit";import{property,state}from"lit/decorators.js";import{LyraElement}from"../../../internal/lyra-element.js";import{AccessibleTextController}from"../../../internal/accessible-text-controller.js";import{defaultLabelForwardingSlots,isDefaultLabelNode}from"../../../internal/default-label-forwarding.js";import{VALIDITY_ANCHOR}from"../../../internal/anchored-validity.js";import{sizes}from"../../../internal/sizes.styles.js";import{styles}from"./switch.styles.js";import{dispatchNativeEvent,relayNativeEvent}from"../../../internal/native-event-relay.js";import{requestThenCommit}from"../../../internal/request-commit.js";import{markVetoGuardWrite,VetoWriteGuard}from"../../../internal/veto-write-guard.js";import{hasRealContent}from"../../../internal/a11y.js";import{isActionableElement}from"../../../internal/focus-navigation.js";import{CheckedFormAssociated}from"../../../internal/form-associated.js";import{currentValidityValidator}from"../form-validator.js";import{LYRA_DEFAULT_switchRequired}from"../../../internal/default-strings/forms.generated.js";import{LYRA_DEFAULT_fieldRequired}from"../../../internal/default-strings/shared.generated.js";installFormControlLabelSupport();class LyraSwitchBase extends LyraElement{}class LyraSwitch extends CheckedFormAssociated(LyraSwitchBase){constructor(){super(...arguments),this.size="m",this.hint="",this.helpText="",this.withHint=!1,this.errorText="",this.hasLabelSlot=!1,this.slotPresence=new SlotPresenceController(this),this.labelTextObserver=new AccessibleTextController(this,[""],()=>this.recomputeHasLabelSlot(),["slot"]),this.toggleGuard=new VetoWriteGuard,this.onClick=event=>{const owner=this[VALIDITY_ANCHOR]();for(const target of event.composedPath()){if(target===event.currentTarget)break;if(target&&typeof target=="object"&&target.nodeType===1&&target!==owner&&isActionableElement(target))return}this.setFromUser(!this.checked)},this.onBlur=event=>{this.liveDisabled||this.setInteracted(!0),relayNativeEvent(this,event)},this.onFocus=event=>{if(this.liveDisabled){event.stopPropagation();return}relayNativeEvent(this,event)},this.onKeyDown=e=>{if(!this.liveDisabled&&!e.repeat){if(e.key===" "||e.key==="Spacebar"){e.preventDefault(),this.setFromUser(!this.checked);return}if(e.key==="ArrowLeft"||e.key==="ArrowRight"){e.preventDefault();const turnsOn=this.effectiveDirection==="rtl"?e.key==="ArrowLeft":e.key==="ArrowRight";this.setFromUser(turnsOn)}}},this.onLabelSlotChange=event=>this.handleLabelSlotChange(event),this.onSlotChange=event=>this.handleLabelSlotChange(event)}static{this.defaultStrings={...super.defaultStrings,fieldRequired:LYRA_DEFAULT_fieldRequired,switchRequired:LYRA_DEFAULT_switchRequired}}static get validators(){return[currentValidityValidator("required","disabled","checked","value")]}static{this.styles=[LyraElement.styles,sizes,styles]}static{this.properties={size:{reflect:!0}}}get hasHintSlot(){return this.slotPresence.has("hint")}get hasHelpTextSlot(){return this.slotPresence.has("help-text")}get hasErrorSlot(){return this.slotPresence.has("error")}checkedWritten(previous){markVetoGuardWrite(this.toggleGuard)}requiredMessage(){return this.localize("switchRequired")}[VALIDITY_ANCHOR](){return this.renderRoot?.querySelector(".switch-owner")??null}get liveDisabled(){return this.effectiveDisabled||this.matches(":disabled")}click(){this.liveDisabled||this[VALIDITY_ANCHOR]()?.click()}focus(options){this.liveDisabled||this[VALIDITY_ANCHOR]()?.focus(options)}blur(){this[VALIDITY_ANCHOR]()?.blur()}syncExternalDescription(){if(!this.isConnected)return;const target=this[VALIDITY_ANCHOR]();target&&(this.externalDescriptionLease?this.externalDescriptionLease.update(target):this.externalDescriptionLease=acquireResolvedAriaRelationship(this,target,"aria-describedby"))}updated(changed){super.updated(changed),this.syncExternalDescription()}releaseExternalDescription(){this.externalDescriptionLease?.release(),this.externalDescriptionLease=void 0}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this.syncExternalDescription(),this.addEventListener("slotchange",this.onLabelSlotChange),this.hasUpdated?this.recomputeHasLabelSlot():this.seedFirstRenderState(()=>this.recomputeHasLabelSlot())}adoptedCallback(){super.adoptedCallback(),this.labelTextObserver.adopted(),this.releaseExternalDescription(),this.hasUpdated&&this.syncExternalDescription()}disconnectedCallback(){this.releaseExternalDescription(),this.removeEventListener("slotchange",this.onLabelSlotChange),super.disconnectedCallback()}willUpdate(changed){super.willUpdate(changed)}setFromUser(next){this.liveDisabled||this.checked!==next&&requestThenCommit({requestDetail:{checked:next,value:this.value},emitRequest:(detail,init)=>this.emit("lr-switch-toggle-request",detail,init),guard:this.toggleGuard,commit:()=>{this.setInteracted(!0),this.checked=next,dispatchNativeEvent(this,"input"),this.emit("lr-input",{checked:this.checked,value:this.value}),dispatchNativeEvent(this,"change"),this.emit("lr-change",{checked:this.checked,value:this.value})}})}recomputeHasLabelSlot(){const renderRoot=this.renderRoot,childNodes=this.childNodes;if(!renderRoot||!childNodes)return;const slot=renderRoot.querySelector("slot:not([name])"),nodes=slot?slot.assignedNodes({flatten:!0}):Array.from(childNodes).filter(node=>isDefaultLabelNode(node)).flatMap(node=>{if(node.nodeType!==1||node.localName!=="slot")return[node];const forwardingSlot=node;return forwardingSlot.assignedNodes().length>0?forwardingSlot.assignedNodes({flatten:!0}):Array.from(forwardingSlot.childNodes)});this.hasLabelSlot=hasRealContent(nodes)}handleLabelSlotChange(event){const target=event.target;if(!(target?.nodeType!==1||target.localName!=="slot")){if(target.getRootNode()===this.renderRoot){if((target.getAttribute("name")??"")!=="")return}else if(!defaultLabelForwardingSlots(this).includes(target))return;this.labelTextObserver.bind(),this.recomputeHasLabelSlot()}}render(){const hasHint=this.withHint||this.hasHintSlot||this.hasHelpTextSlot||(this.hint??"").length>0||(this.helpText??"").length>0,hasError=this.hasErrorSlot||(this.errorText??"").length>0,describedBy=[hasError?"switch-error":"",hasHint?"switch-hint":""].filter(Boolean).join(" "),invalid=hasError||this.hasInteracted&&!this.internals.validity.valid;return html`
2
2
  <div part="form-control">
3
3
  <span class="switch-layout" part="row" @click=${this.onClick}>
4
4
  <span
@@ -1,2 +1,2 @@
1
- /** @deprecated Import @aceshooting/lyra-ui/components/lr-switch.js to register this component. */
1
+ /** @deprecated Import @aceshooting/lyra-ui/components/lr-switch.js to register this component.*/
2
2
  export*from'./switch.class.js';
@@ -1,5 +1,5 @@
1
1
  import{type TemplateResult,type PropertyValues}from'lit';import{LyraElement}from'../../../internal/lyra-element.js';import type{LyraAppearance,LyraSize}from'../../../internal/variants.js';import type{LyraSelectionDirection,LyraTextWrap}from'../../../internal/shared-unions.js';import{type LyraFormValidator}from'../form-validator.js';export type TextareaResize='none'|'vertical'|'horizontal'|'both'|'auto';export type TextareaWrap=LyraTextWrap;export type TextareaSelectionDirection=LyraSelectionDirection;
2
- /** Scroll offsets read from, or written to, the internal native `<textarea>`. */
2
+ /** Scroll offsets read from, or written to, the internal native `<textarea>`.*/
3
3
  export interface TextareaScrollPosition{top:number;left:number;}
4
4
  /** Enumerated (not boolean-presence) attribute parsing for `spellcheck`, matching the native HTML
5
5
  * `spellcheck` attribute's own true/false/empty/inherit semantics -- Lit's built-in `type:
@@ -108,9 +108,9 @@ export interface LyraTextareaEventMap{input:InputEvent;change:Event;'lr-input':C
108
108
  * @since 4.0.0
109
109
  */
110
110
  export declare class LyraTextarea extends LyraTextarea_base{
111
- /** Public WA-compatible intrinsic validator catalog. */
111
+ /** Public WA-compatible intrinsic validator catalog.*/
112
112
  static get validators():LyraFormValidator<LyraTextarea>[];static styles:import("lit").CSSResultGroup[];get value():string;set value(next:string|null);
113
- /** Visible text rows. */
113
+ /** Visible text rows.*/
114
114
  rows:number;
115
115
  /** Native CSS `resize` behavior for the textarea (`'none'`, `'vertical'`, `'horizontal'`,
116
116
  * `'both'`), plus `'auto'`: a `ResizeObserver`-driven grow-to-content mode with no manual drag
@@ -127,7 +127,7 @@ size:LyraSize;
127
127
  * meanings as `<lr-input>`'s `appearance`. Each value only swaps
128
128
  * `--lr-textarea-fill`/`--lr-textarea-border-color`. */
129
129
  appearance:LyraAppearance;
130
- /** Shoelace boolean alias for the filled treatment. */
130
+ /** Shoelace boolean alias for the filled treatment.*/
131
131
  filled:boolean;
132
132
  /** Fully rounded field corners, matching `<lr-input>`'s/`<lr-select>`'s own `pill` — Shoelace and
133
133
  * Web Awesome both ship it on their textarea, so a mechanical tag rename must not drop it.
@@ -146,9 +146,9 @@ withCount:boolean;placeholder:string;
146
146
  * selectable, copyable, and form-submittable; constraint validation is suspended until the
147
147
  * property is unset. */
148
148
  readonly:boolean;label:string;hint:string;
149
- /** Shoelace alias for {@link hint}. `hint` wins when both are set. */
149
+ /** Shoelace alias for {@link hint}. `hint` wins when both are set.*/
150
150
  helpText:string;
151
- /** SSR slot-presence hints for declarative shadow DOM and hydration. */
151
+ /** SSR slot-presence hints for declarative shadow DOM and hydration.*/
152
152
  withLabel:boolean;withHint:boolean;errorText:string;
153
153
  /** Accessible name overriding the label/placeholder-derived default. Any non-`null` value takes
154
154
  * precedence by presence—including `''`—matching `<lr-date-input>`'s `accessibleLabel`. */
@@ -156,14 +156,14 @@ accessibleLabel:string|null;
156
156
  /** Forwarded to the native `<textarea>`'s own `spellcheck`. Defaults to `true`, matching the
157
157
  * native element's own default. */
158
158
  spellcheck:boolean;
159
- /** Forwarded to the internal native textarea. */
159
+ /** Forwarded to the internal native textarea.*/
160
160
  autofocus:boolean;
161
- /** Forwarded to the internal native textarea. */
161
+ /** Forwarded to the internal native textarea.*/
162
162
  title:string;
163
163
  /** Forwarded to the native `<textarea>`'s own `autocapitalize`. Empty string omits the
164
164
  * attribute (browser default). */
165
165
  autocapitalize:string;private autocorrectValue;
166
- /** Forwarded to the native `<textarea>`'s own `wrap`. */
166
+ /** Forwarded to the native `<textarea>`'s own `wrap`.*/
167
167
  wrap:TextareaWrap;
168
168
  /** Native editing-assistance attributes forwarded to the wrapped textarea. Empty strings omit
169
169
  * the corresponding attribute and retain the browser default. */
@@ -172,7 +172,7 @@ autocomplete:string;inputMode:string;enterKeyHint:string;
172
172
  * boolean. Writes accept Web Awesome's boolean IDL and Shoelace's string vocabulary:
173
173
  * `'off'`/`'false'` normalize to false and every other string normalizes to true. */
174
174
  get autocorrect():boolean;set autocorrect(next:boolean|string);
175
- /** Lowercase mapped IDLs that delegate to the existing reactive native spellings. */
175
+ /** Lowercase mapped IDLs that delegate to the existing reactive native spellings.*/
176
176
  get inputmode():string;set inputmode(next:string);get enterkeyhint():string;set enterkeyhint(next:string);set defaultValueAlias(next:string);
177
177
  /** Minimum text length, forwarded to the native `<textarea>`'s own `minlength` and reported as
178
178
  * `tooShort` by `updateValidity()`. Defaults to `undefined` (no lower bound). Like native
@@ -1,2 +1,2 @@
1
- /** @deprecated Import @aceshooting/lyra-ui/components/lr-textarea.js to register this component. */
1
+ /** @deprecated Import @aceshooting/lyra-ui/components/lr-textarea.js to register this component.*/
2
2
  export*from'./textarea.class.js';
@@ -165,7 +165,7 @@ valueFormatter?:TimeRangeValueFormatter;private _presets;get presets():readonly
165
165
  * the caller should persist that relative shortcut. The returned object is the caller's own entry.
166
166
  */
167
167
  get appliedPreset():TimeRangePreset|undefined;private _disabled;private _fieldsetDisabled;private readonly dragController;private get drags();private keyboardChanged;private internals;private validityController;
168
- /** Reflected consumer validity message; only `setCustomValidity('')` clears it. */
168
+ /** Reflected consumer validity message; only `setCustomValidity('')` clears it.*/
169
169
  customError:string|null;private hasInteracted;constructor();private markInteracted;private get liveDisabled();private emitInput;private emitChange;private movesBetweenHandles;private onHandleFocus;private onHandleBlur;private reflectValidityStates;get form():HTMLFormElement|null;set form(owner:FormOwnerValue);
170
170
  /** Whether the control currently satisfies its constraints — the silent query, so it
171
171
  * deliberately does not count as interaction for the `user-*` custom states.
@@ -173,7 +173,7 @@ customError:string|null;private hasInteracted;constructor();private markInteract
173
173
  * whatever `invalid` event fires synchronously inside this call is this call, not a
174
174
  * submission attempt. */
175
175
  checkValidity():boolean;
176
- /** `checkValidity()`, plus the browser's own validation UI on failure. */
176
+ /** `checkValidity()`, plus the browser's own validation UI on failure.*/
177
177
  reportValidity():boolean;
178
178
  /**
179
179
  * Sets or clears a consumer-supplied validation error — the only validation channel this control
@@ -231,7 +231,7 @@ formResetCallback():void;disconnectedCallback():void;adoptedCallback():void;
231
231
  * controls. Targets the start handle specifically, matching `focus()` below; `blur()` instead
232
232
  * follows whichever handle currently owns focus. */
233
233
  click():void;
234
- /** Moves focus to the start handle. */
234
+ /** Moves focus to the start handle.*/
235
235
  focus(options?:FocusOptions):void;
236
- /** Removes focus from whichever handle currently owns it. */
236
+ /** Removes focus from whichever handle currently owns it.*/
237
237
  blur():void;private domain;private percentOf;private reachableBounds;private clamp;private setValue;private applyPreset;private normalizePreset;private reconcileAppliedPreset;private onKeyDown;private finishKeyboardGesture;private onKeyUp;private onPointerDown;private beginDrag;private valueAtPointer;private nearestHandle;private onBasePointerDown;private onPointerMove;private onPointerUp;private abortActiveGestures;private endDrag;protected willUpdate(changed:PropertyValues):void;render():TemplateResult;}declare global{interface HTMLElementTagNameMap{'lr-time-range':LyraTimeRange;}}
@@ -1,2 +1,2 @@
1
- /** @deprecated Import @aceshooting/lyra-ui/components/lr-time-range.js to register this component. */
1
+ /** @deprecated Import @aceshooting/lyra-ui/components/lr-time-range.js to register this component.*/
2
2
  export*from'./time-range.class.js';
@@ -38,5 +38,5 @@ import{type SelectionCatalogRow}from'../../../internal/selection-catalog.js';imp
38
38
  * @since 25.5.0
39
39
  */
40
40
  export declare class LyraTimeZonePicker extends LyraCatalogPickerBase{static styles:import("lit").CSSResultGroup[];private _timeZones?;
41
- /** Clone-owned ordered catalog, capped at 1024 rows. Undefined/null restores runtime defaults; [] stays empty. */
41
+ /** Clone-owned ordered catalog, capped at 1024 rows. Undefined/null restores runtime defaults; [] stays empty.*/
42
42
  get timeZones():LyraTimeZoneCatalog|undefined;set timeZones(value:LyraTimeZoneCatalog|null|undefined);protected get entries():readonly LyraTimeZoneEntry[];protected get pickerLabel():string;protected resolveRows():readonly SelectionCatalogRow[];}declare global{interface HTMLElementTagNameMap{'lr-time-zone-picker':LyraTimeZonePicker;}}
@@ -1,11 +1,11 @@
1
1
  import{type PropertyValues,type TemplateResult}from'lit';import{LyraElement}from'../../../internal/lyra-element.js';import{type LyraAppearance,type LyraSize,type LyraVariant}from'../../../internal/variants.js';import type{LyraToolbarAction}from'../../conversation/message-actions/toolbar-actions.js';
2
- /** The two fill treatments a toggle takes: text-only chrome, or a bounded outline. */
2
+ /** The two fill treatments a toggle takes: text-only chrome, or a bounded outline.*/
3
3
  export type LyraToggleAppearance=Extract<LyraAppearance,'plain'|'outlined'>;
4
- /** Detail of a toggle's request and settled events. */
4
+ /** Detail of a toggle's request and settled events.*/
5
5
  export interface LyraToggleChangeDetail{
6
- /** The request's proposed state, or the committed state on `lr-change`. */
6
+ /** The request's proposed state, or the committed state on `lr-change`.*/
7
7
  readonly pressed:boolean;
8
- /** The toggle's current `value`, unaffected by the toggle. */
8
+ /** The toggle's current `value`, unaffected by the toggle.*/
9
9
  readonly value:string;}export interface LyraToggleEventMap{focus:FocusEvent;blur:FocusEvent;'lr-toggle-toggle-request':CustomEvent<LyraToggleChangeDetail>;'lr-change':CustomEvent<LyraToggleChangeDetail>;'lr-toolbar-actions-change':Event;}
10
10
  /**
11
11
  * `<lr-toggle>` — a two-state button that owns its `pressed` state.
@@ -95,13 +95,13 @@ readonly value:string;}export interface LyraToggleEventMap{focus:FocusEvent;blur
95
95
  * @since 21.0.0
96
96
  */
97
97
  export declare class LyraToggle extends LyraElement<LyraToggleEventMap>{static styles:import("lit").CSSResultGroup[];static properties:{pressed:{type:BooleanConstructor;reflect:boolean;noAccessor:boolean;};};private readonly stateInternals;private _pressed;private _variant;private _appearance;private _size;private readonly pressGuard;private groupLink;private projection;private descriptionLease?;private labelLease?;private readonly slots;private isIconOnly;private readonly toolbarAction;private button?;
98
- /** Whether the toggle is pressed. Reflected; programmatic writes emit nothing. */
98
+ /** Whether the toggle is pressed. Reflected; programmatic writes emit nothing.*/
99
99
  get pressed():boolean;set pressed(next:boolean);
100
- /** Disables the toggle. An owning group's `disabled` is projected without changing this. */
100
+ /** Disables the toggle. An owning group's `disabled` is projected without changing this.*/
101
101
  disabled:boolean;
102
- /** Item identity inside an `<lr-toggle-group>`, echoed in event details. Never submitted. */
102
+ /** Item identity inside an `<lr-toggle-group>`, echoed in event details. Never submitted.*/
103
103
  value:string;
104
- /** Semantic tone of the pressed fill. Unsupported values fall back to `neutral`. */
104
+ /** Semantic tone of the pressed fill. Unsupported values fall back to `neutral`.*/
105
105
  get variant():LyraVariant;set variant(next:LyraVariant);
106
106
  /** `plain` (text-only chrome) or `outlined` (a bounded border). Unsupported values fall back to
107
107
  * `plain`. An owning group's opt-in `appearance` overrides it without rewriting it. */
@@ -110,9 +110,9 @@ get appearance():LyraToggleAppearance;set appearance(next:LyraToggleAppearance);
110
110
  * Unsupported values fall back to `m`. An owning group's opt-in `size` overrides it without
111
111
  * rewriting it. */
112
112
  get size():LyraSize;set size(next:LyraSize);
113
- /** Whether the toggle is disabled by its own `disabled` or by an owning group. */
113
+ /** Whether the toggle is disabled by its own `disabled` or by an owning group.*/
114
114
  get effectiveDisabled():boolean;
115
- /** Activates the toggle through its full user-activation path; a no-op while disabled. */
115
+ /** Activates the toggle through its full user-activation path; a no-op while disabled.*/
116
116
  click():void;focus(options?:FocusOptions):void;blur():void;
117
117
  /**
118
118
  * The logical action this toggle contributes to an enclosing composite toolbar
@@ -1,2 +1,2 @@
1
- /** @deprecated Import @aceshooting/lyra-ui/components/lr-toggle.js to register this component. */
1
+ /** @deprecated Import @aceshooting/lyra-ui/components/lr-toggle.js to register this component.*/
2
2
  export*from'./toggle.class.js';
@@ -1,13 +1,13 @@
1
1
  import{type PropertyValues,type TemplateResult}from'lit';import{LyraElement,type LyraEventDetailSnapshot}from'../../../internal/lyra-element.js';import{type LyraSize}from'../../../internal/variants.js';import type{LyraOrientation}from'../../../internal/shared-unions.js';import type{LyraToggle,LyraToggleAppearance}from'../toggle/toggle.class.js';
2
- /** `multiple`: zero or more pressed. `single`: zero or one pressed, so the choice can be cleared. */
2
+ /** `multiple`: zero or more pressed. `single`: zero or one pressed, so the choice can be cleared.*/
3
3
  export type LyraToggleGroupSelectionMode='single'|'multiple';
4
- /** The group-level proposal one owned toggle's pending activation translates into. */
4
+ /** The group-level proposal one owned toggle's pending activation translates into.*/
5
5
  export interface LyraToggleGroupToggleRequestDetail{
6
- /** The group value that would result from the activation, in DOM order. */
6
+ /** The group value that would result from the activation, in DOM order.*/
7
7
  readonly value:readonly string[];
8
- /** The group value as it stands while the request is dispatched. */
8
+ /** The group value as it stands while the request is dispatched.*/
9
9
  readonly previousValue:readonly string[];
10
- /** The toggle the user acted on, kept by identity. */
10
+ /** The toggle the user acted on, kept by identity.*/
11
11
  readonly option:LyraToggle;}export interface LyraToggleGroupEventMap{'lr-toggle-group-toggle-request':CustomEvent<LyraEventDetailSnapshot<LyraToggleGroupToggleRequestDetail>>;'lr-change':CustomEvent<Readonly<{value:readonly string[];}>>;}
12
12
  /**
13
13
  * `<lr-toggle-group>` — a set of `<lr-toggle>` children behind one tab stop.
@@ -67,7 +67,7 @@ export declare class LyraToggleGroup extends LyraElement<LyraToggleGroupEventMap
67
67
  /** `multiple` (zero or more, the default) or `single` (zero or one). Unsupported values fall back
68
68
  * to `multiple`. Switching to `single` silently keeps only the first pressed toggle. */
69
69
  get selectionMode():LyraToggleGroupSelectionMode;set selectionMode(next:LyraToggleGroupSelectionMode);
70
- /** Arrow-key axis and layout. Vertical groups never join their toggles into a run. */
70
+ /** Arrow-key axis and layout. Vertical groups never join their toggles into a run.*/
71
71
  get orientation():LyraOrientation;set orientation(next:LyraOrientation);
72
72
  /** Opt-in tier projected onto every owned toggle, on the shared ladder. Unset (the default) and
73
73
  * unsupported values leave each toggle's own `size` in charge. */
@@ -75,9 +75,9 @@ get size():LyraSize|undefined;set size(next:LyraSize|undefined);
75
75
  /** Opt-in `plain`/`outlined` appearance projected onto every owned toggle. Unset (the default)
76
76
  * and unsupported values leave each toggle's own `appearance` in charge. */
77
77
  get appearance():LyraToggleAppearance|undefined;set appearance(next:LyraToggleAppearance|undefined);
78
- /** Accessible-name fallback for the group when the host has no `aria-label`. */
78
+ /** Accessible-name fallback for the group when the host has no `aria-label`.*/
79
79
  label:string;
80
- /** Disables every owned toggle, leaving each toggle's own `disabled` untouched. */
80
+ /** Disables every owned toggle, leaving each toggle's own `disabled` untouched.*/
81
81
  get disabled():boolean;set disabled(next:boolean);
82
82
  /**
83
83
  * The distinct `value`s of the pressed owned toggles, in DOM order, as a frozen snapshot.
@@ -87,9 +87,9 @@ get disabled():boolean;set disabled(next:boolean);
87
87
  * toggle is pressed. An assignment made before any toggle exists is applied once they arrive.
88
88
  */
89
89
  get value():readonly string[];set value(next:readonly string[]|null|undefined);constructor();connectedCallback():void;disconnectedCallback():void;protected updated(changed:PropertyValues):void;
90
- /** Moves focus to the current tab-stop toggle. */
90
+ /** Moves focus to the current tab-stop toggle.*/
91
91
  focus(options?:FocusOptions):void;
92
- /** Removes focus from whichever owned toggle contains the deep active element. */
92
+ /** Removes focus from whichever owned toggle contains the deep active element.*/
93
93
  blur():void;
94
- /** Toggles the current tab-stop toggle through its full user-activation path. */
94
+ /** Toggles the current tab-stop toggle through its full user-activation path.*/
95
95
  click():void;private currentStop;private ownsToggle;private isOwnedToggle;private toggles;private ownedElements;private isAvailable;private sync;private keepOnePressed;private applyValue;private onPressedWritten;private warnOnAmbiguousValues;private computeTabStop;private project;private repairFocus;private queueDefinitionSync;private armMembershipObserver;private observeSizes;private measureRuns;private firstToggleInPath;private onToggleRequest;private onToggleChange;private projectedValue;private onKeyDown;private onFocusIn;private onFocusOut;private onClick;private onSlotChange;render():TemplateResult;}declare global{interface HTMLElementTagNameMap{'lr-toggle-group':LyraToggleGroup;}}
@@ -1,2 +1,2 @@
1
- /** @deprecated Import @aceshooting/lyra-ui/components/lr-toggle-group.js to register this component. */
1
+ /** @deprecated Import @aceshooting/lyra-ui/components/lr-toggle-group.js to register this component.*/
2
2
  export*from'./toggle-group.class.js';