@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
@@ -12,7 +12,7 @@ export interface LyraDateRangePreset{readonly label:string;
12
12
  * resolved, so its button renders disabled rather than doing nothing when pressed.
13
13
  */
14
14
  readonly start?:string;
15
- /** Inclusive range end, ISO `YYYY-MM-DD`. Omit for an OPEN end, resolving to `max`. */
15
+ /** Inclusive range end, ISO `YYYY-MM-DD`. Omit for an OPEN end, resolving to `max`.*/
16
16
  readonly end?:string;
17
17
  /**
18
18
  * Caller-owned stable identity, echoed verbatim on `appliedPreset` -- never read, compared, or
@@ -156,16 +156,16 @@ export declare class LyraDatePicker extends LyraElement<LyraDatePickerEventMap>{
156
156
  /** The sequence is bounded/detached/frozen while applying a preset still reports its exact
157
157
  * caller-owned source identity through `appliedPreset`. */
158
158
  protected static collectionSupport:import("../../../internal/lyra-element.js").LyraCollectionSupport;protected static readonly ownedCollectionProperties:readonly string[];protected static readonly identityCollectionProperties:readonly string[];
159
- /** ISO value: `YYYY-MM-DD` or `YYYY-MM-DD/YYYY-MM-DD`. */
159
+ /** ISO value: `YYYY-MM-DD` or `YYYY-MM-DD/YYYY-MM-DD`.*/
160
160
  value:string;mode:CalendarMode;min:string;max:string;disabled:boolean;readonly:boolean;months:1|2;
161
161
  /** Visual size — scales the private default behind `--lr-date-picker-cell-size` proportionally; not pixel-matched to
162
162
  * `lr-input`'s row-height scale (a calendar cell isn't a text row). The Web Awesome / Shoelace spellings
163
163
  * `small`/`medium`/`large` are accepted for `s`/`m`/`l`, so a migration is a tag rename with no
164
164
  * attribute rewrite. */
165
165
  size:LyraSize;locale:string;firstDayOfWeek:LyraDatePickerFirstDayOfWeek;weekdayFormat:WeekdayFormat;disablePast:boolean;disableFuture:boolean;withOutsideDays:boolean;withWeekNumbers:boolean;disabledDates:LyraDatePickerDisabledDates;disabledDaysOfWeek:string;
166
- /** Optional JavaScript predicate that disables matching calendar dates. */
166
+ /** Optional JavaScript predicate that disables matching calendar dates.*/
167
167
  isDateDisabled?:(date:Date)=>boolean;
168
- /** Optional JavaScript renderer for individual calendar-day content. */
168
+ /** Optional JavaScript renderer for individual calendar-day content.*/
169
169
  dayContent?:LyraDatePickerDayContent;private _presets;get presets():readonly LyraDateRangePreset[];set presets(next:readonly LyraDateRangePreset[]);private _appliedPreset?;
170
170
  /**
171
171
  * The preset whose button produced the current `value`, or `undefined` when the range was picked
@@ -193,23 +193,23 @@ previousLabel:string;private previousLabelAuthored;
193
193
  * @default 'Next month'
194
194
  */
195
195
  nextLabel:string;private nextLabelAuthored;private viewDate;private rangePreview;private focusedViewStart;private focusPending;private viewFocusPending;private restoringViewFocus;private readonly internals;private disabledDatesCacheSource?;private disabledDatesCache;private disabledWeekdaysCacheSource?;private disabledWeekdaysCache;private viewPeriodAvailabilityCache;private readonly titleIds;private committedValue;private constraintFocusOwner;static get observedAttributes():string[];constructor();private get effectiveMode();private get visibleMonths();private get effectiveWeekdayFormat();private get effectiveView();
196
- /** Parsed range view of `value`. Writes share `valueAsRange` normalization and stay silent. */
196
+ /** Parsed range view of `value`. Writes share `valueAsRange` normalization and stay silent.*/
197
197
  get selection():DateRange;set selection(next:DateRange);
198
- /** Date view of a single-mode value. Writes serialize to local ISO and are silent. */
198
+ /** Date view of a single-mode value. Writes serialize to local ISO and are silent.*/
199
199
  get valueAsDate():Date|null;set valueAsDate(next:Date|null);
200
- /** Same as `valueAsDate`: the value at local midnight. */
200
+ /** Same as `valueAsDate`: the value at local midnight.*/
201
201
  get valueAsLocalDate():Date|null;set valueAsLocalDate(next:Date|null);
202
- /** The value at UTC midnight, like a native date input's `valueAsDate`. */
202
+ /** The value at UTC midnight, like a native date input's `valueAsDate`.*/
203
203
  get valueAsUTCDate():Date|null;set valueAsUTCDate(next:Date|null);
204
- /** Date-range view of a range-mode value. Reversed endpoints are normalized. */
204
+ /** Date-range view of a range-mode value. Reversed endpoints are normalized.*/
205
205
  get valueAsRange():DateRange;set valueAsRange(next:DateRange);private get focusedDateValue();private setFocusedDate;private resolvedToday;private syncCustomStates;protected willUpdate(changed:PropertyValues):void;private get fdow();private get disabledDateKeys();private get disabledWeekdays();private isDisabled;private nearestEnabledDate;private isVisibleDate;private normalizeFocusedDate;private firstEnabledDate;private admitsRange;private commit;private selectDate;
206
- /** Clear the selection (`input`, `change`, `lr-clear`); inert while blank, disabled or readonly. */
206
+ /** Clear the selection (`input`, `change`, `lr-clear`); inert while blank, disabled or readonly.*/
207
207
  clear():void;
208
- /** Navigate to today and focus it. */
208
+ /** Navigate to today and focus it.*/
209
209
  goToToday():void;
210
- /** Navigate the view to a date and focus it, clamped to `min`/`max`. */
210
+ /** Navigate the view to a date and focus it, clamped to `min`/`max`.*/
211
211
  goToDate(date:string|Date):void;private clampViewAnchor;private nav;private get rovingTarget();
212
- /** Focus the current roving day (or the first item in a non-day view). */
212
+ /** Focus the current roving day (or the first item in a non-day view).*/
213
213
  focus(options?:FocusOptions):void;
214
214
  /** Blur the current roving day/view-item -- mirrors `focus()`: the host itself is never the
215
215
  * actual focus target. */
@@ -1,2 +1,2 @@
1
- /** @deprecated Import @aceshooting/lyra-ui/components/lr-date-picker.js to register this component. */
1
+ /** @deprecated Import @aceshooting/lyra-ui/components/lr-date-picker.js to register this component.*/
2
2
  export*from'./date-picker.class.js';
@@ -1,9 +1,9 @@
1
1
  import{type TemplateResult,type PropertyValues}from'lit';import{LyraElement}from'../../../internal/lyra-element.js';import type{LyraSize}from'../../../internal/variants.js';import type{EmojiPickerItem,EmojiPickerGroup}from'./emoji-types.js';export type{EmojiPickerItem,EmojiPickerGroup};export interface LyraEmojiPickerEventMap{'lr-invalid':CustomEvent<null>;input:InputEvent;change:Event;blur:FocusEvent;focus:FocusEvent;
2
- /** Fired when an emoji is picked. `detail.value` is the picked glyph. */
2
+ /** Fired when an emoji is picked. `detail.value` is the picked glyph.*/
3
3
  'lr-input':CustomEvent<{value:string;previousValue:string;}>;
4
- /** Fired when an emoji pick is committed. `detail.value` is the picked glyph. */
4
+ /** Fired when an emoji pick is committed. `detail.value` is the picked glyph.*/
5
5
  'lr-change':CustomEvent<{value:string;previousValue:string;}>;
6
- /** Fired when the built-in emoji set fails to load; the picker offers a retry. */
6
+ /** Fired when the built-in emoji set fails to load; the picker offers a retry.*/
7
7
  'lr-load-error':CustomEvent<null>;}declare class EmojiPickerBase extends LyraElement<LyraEmojiPickerEventMap>{}declare const LyraEmojiPicker_base:typeof EmojiPickerBase&(new(...args:any[])=>import("../../../lyra.js").FormAssociatedInterface<string> &import("../../../internal/form-associated.js").FormAssociatedSubclassInterface<string>);
8
8
  /**
9
9
  * `<lr-emoji-picker>` — a searchable, keyboard-navigable, form-associated emoji picker. In the
@@ -186,13 +186,13 @@ size:LyraSize;
186
186
  /** Visible label content, rendered above the search/grid. Empty (the default) renders no label
187
187
  * chrome at all -- see the class doc above for the full label/hint/error contract. */
188
188
  label:string;
189
- /** Supporting text rendered below the search/grid. */
189
+ /** Supporting text rendered below the search/grid.*/
190
190
  hint:string;
191
- /** Validation-error text rendered below the hint. */
191
+ /** Validation-error text rendered below the hint.*/
192
192
  errorText:string;private readonly slotPresence;private touched;private readonly labelId;private readonly hintId;private readonly errorId;private loadGroups;connectedCallback():void;private loadBuiltInGroups;private retryLoad;private queryText;private activeIndex;private focusedGridItem?;private pendingGridFocus?;private virtualScrollTop;private virtualScrollRaf?;private virtualScrollRafWindow?;private virtualScrollRafDocument?;private observedGrid?;private observedGridVirtualized;private gridResizeObserver?;private gridResizeObserverDocument?;private geometryProbe?;private geometryCache?;private liveGeometryReady;private geometryObserver?;private geometryObserverDocument?;private geometryObserverRoot?;private ownerRealmGeneration;private searchEl?;private get liveDisabled();
193
- /** Moves focus to the search combobox while the form control is enabled. */
193
+ /** Moves focus to the search combobox while the form control is enabled.*/
194
194
  focus(options?:FocusOptions):void;
195
- /** Blurs the currently focused owned search or emoji target, including a nested shadow owner. */
195
+ /** Blurs the currently focused owned search or emoji target, including a nested shadow owner.*/
196
196
  blur():void;
197
- /** Activates the live search control while the form control is enabled. */
197
+ /** Activates the live search control while the form control is enabled.*/
198
198
  click():void;private readonly gridId;private externalDescriptionLease?;private syncExternalDescription;private releaseExternalDescription;formResetCallback():void;private readonly haystacks;private projectionCache?;private rowCache?;private haystackFor;private projection;private get filteredGroups();private get flatItems();private get isVirtualized();private geometry;private syncGeometryProbe;private bindRenderedGeometryProbe;private observeGeometryProbe;private resetGeometryObserver;private onGeometryResize;private groupLabel;private virtualRows;private optionButtons;private get selectedIndex();private syncSelectedProjection;private columnsPerRow;private setActiveIndex;private onSearchInput;private onClearSearch;private onSearchFocus;private onSearchBlur;private pick;private onNavigationKeyDown;private onGridFocusIn;private onGridScroll;private cancelVirtualScrollFrame;private syncGridObserver;private resetGridObserver;protected willUpdate(changed:PropertyValues):void;private inputLimited;private readonly limitAnnouncements;private limitMounted;protected updated(changed:PropertyValues):void;private restorePendingGridFocus;disconnectedCallback():void;private peerLoadMessage;private announcePeerLoadFailure;adoptedCallback():void;private resetOwnerRealmResources;private renderEmojiButton;private renderVirtualRows;render():TemplateResult;}declare global{interface HTMLElementTagNameMap{'lr-emoji-picker':LyraEmojiPicker;}}
@@ -1,2 +1,2 @@
1
- /** @deprecated Import @aceshooting/lyra-ui/components/lr-emoji-picker.js to register this component. */
1
+ /** @deprecated Import @aceshooting/lyra-ui/components/lr-emoji-picker.js to register this component.*/
2
2
  export*from'./emoji-picker.class.js';
@@ -2,7 +2,7 @@ export interface EmojiPickerItem{readonly emoji:string;
2
2
  /** Accessible/searchable name (e.g. 'grinning face'). Used for the picked button's `aria-label`
3
3
  * and as one of the two fields `queryText` matches against. */
4
4
  readonly name:string;
5
- /** Additional searchable aliases (e.g. `['grinning']`). Matched the same way `name` is. */
5
+ /** Additional searchable aliases (e.g. `['grinning']`). Matched the same way `name` is.*/
6
6
  readonly shortcodes?:readonly string[];}export interface EmojiPickerGroup{readonly key:string;
7
7
  /** The heading text. Consumer-supplied content is rendered verbatim. Groups produced by the
8
8
  * built-in data adapter retain private provenance through filtering so their library-owned
@@ -1,6 +1,6 @@
1
- /** A public Web Awesome-compatible validator result returned by form-control static validators. */
1
+ /** A public Web Awesome-compatible validator result returned by form-control static validators.*/
2
2
  export interface LyraFormValidatorResult{isValid:boolean;message:string;invalidKeys:Exclude<keyof ValidityState,'valid'>[];}
3
- /** Public validator shape exposed by mirrored form-control constructors. */
3
+ /** Public validator shape exposed by mirrored form-control constructors.*/
4
4
  export interface LyraFormValidator<T extends{readonly validity:ValidityState;readonly validationMessage:string;}>{observedAttributes?:string[];checkValidity(element:T):LyraFormValidatorResult;message?:string|((element:T)=>string);}
5
- /** Creates a fresh callable projection of a control's current intrinsic/custom validity. */
5
+ /** Creates a fresh callable projection of a control's current intrinsic/custom validity.*/
6
6
  export declare function currentValidityValidator<T extends{readonly validity:ValidityState;readonly validationMessage:string;}>(...observedAttributes:string[]):LyraFormValidator<T>;
@@ -145,20 +145,20 @@ import{type PropertyValues,type TemplateResult}from'lit';import{LyraElement}from
145
145
  * @since 4.0.0
146
146
  */
147
147
  export declare class LyraIconButton extends LyraElement<LyraIconButtonEventMap>{static styles:import("lit").CSSResultGroup[];static properties:{disabled:{type:BooleanConstructor;reflect:boolean;noAccessor:boolean;};};private _disabled;private externalDescriptionLease?;private externalLabelLease?;private readonly toolbarAction;get disabled():boolean;set disabled(next:boolean);
148
- /** Whether the action is disabled. */
148
+ /** Whether the action is disabled.*/
149
149
  get effectiveDisabled():boolean;
150
- /** Canonical Lyra glyph name. Shoelace's `name` alias delegates to the same state. */
150
+ /** Canonical Lyra glyph name. Shoelace's `name` alias delegates to the same state.*/
151
151
  icon:string;
152
152
  /** Shoelace alias for `icon`. Reads and writes remain synchronized in both directions; an
153
153
  * upstream `undefined` write clears both to the canonical empty-string read value. */
154
154
  get name():string;set name(next:string|undefined);
155
- /** Icon-library name forwarded to the nested `<lr-icon>`. */
155
+ /** Icon-library name forwarded to the nested `<lr-icon>`.*/
156
156
  library?:string;
157
- /** Remote SVG URL forwarded to the nested `<lr-icon>` and handled by its guarded loader. */
157
+ /** Remote SVG URL forwarded to the nested `<lr-icon>` and handled by its guarded loader.*/
158
158
  src?:string;accessibleLabel:string;private triggerHasPopup;private triggerKeyShortcuts;private triggerExpanded;private triggerControls;private triggerDescribedBy;private triggerPressed;private triggerCurrent;label:string;
159
- /** Safe link URL. When valid, the native root is an anchor rather than a button. */
159
+ /** Safe link URL. When valid, the native root is an anchor rather than a button.*/
160
160
  href?:string;
161
- /** Native anchor target. A non-empty target always derives a safe `rel`. */
161
+ /** Native anchor target. A non-empty target always derives a safe `rel`.*/
162
162
  target?:string;
163
163
  /** Author relationship tokens for the rendered anchor, e.g. `nofollow me license` -- mirrors
164
164
  * `sl-icon-button`'s own `rel`, so values a migrating consumer already relies
@@ -169,7 +169,7 @@ target?:string;
169
169
  * link renders exactly the author's tokens. Deliberately left with no default, matching
170
170
  * `<lr-button>`'s own `rel`. */
171
171
  rel?:string;
172
- /** Native anchor download filename; also selects the stricter download URL allowlist. */
172
+ /** Native anchor download filename; also selects the stricter download URL allowlist.*/
173
173
  download?:string;private baseEl?;private slotEl?;private fallbackSvgEl?;private hasBareGeometry;private contentNamed;private get resolvedRel();
174
174
  /**
175
175
  * The internal native `<button>` (or `<a>` in link mode) that owns the role -- the element a
@@ -179,7 +179,7 @@ download?:string;private baseEl?;private slotEl?;private fallbackSvgEl?;private
179
179
  * exists for exactly the same reason.
180
180
  */
181
181
  get control():HTMLButtonElement|HTMLAnchorElement|null;
182
- /** Activates the internal native action or link. */
182
+ /** Activates the internal native action or link.*/
183
183
  click():void;focus(options?:FocusOptions):void;blur():void;private onFocus;private onBlur;private onSlotChange;private onSlotChangeFromSlot;connectedCallback():void;protected firstUpdated(changed:PropertyValues):void;disconnectedCallback():void;adoptedCallback():void;protected willUpdate(changed:PropertyValues):void;protected updated(changed:PropertyValues):void;private syncDescribedByElements;private releaseExternalDescription;
184
184
  /**
185
185
  * The stable logical action this control contributes to an enclosing composite toolbar
@@ -1,2 +1,2 @@
1
- /** @deprecated Import @aceshooting/lyra-ui/components/lr-icon-button.js to register this component. */
1
+ /** @deprecated Import @aceshooting/lyra-ui/components/lr-icon-button.js to register this component.*/
2
2
  export*from'./icon-button.class.js';import'../../utility/icon/icon.js';
@@ -110,7 +110,7 @@ import{type PropertyValues,type TemplateResult}from'lit';import{LyraElement}from
110
110
  * @cssstate blank - The live value is empty.
111
111
  */
112
112
  export declare class LyraInputShared extends LyraInputShared_base{static styles:import("lit").CSSResultGroup[];
113
- /** Live string value. A Web Awesome-compatible null write clears it without widening reads. */
113
+ /** Live string value. A Web Awesome-compatible null write clears it without widening reads.*/
114
114
  get value():string;set value(next:string|null);private _type;
115
115
  /** Native input type. Unsupported runtime strings normalize to `text` at the public boundary so
116
116
  * native validity, type-dependent chrome, and the reflected host state cannot diverge. */
@@ -133,7 +133,7 @@ filled:boolean;
133
133
  /** Rounds the control row to a full pill by swapping `--lr-input-radius` to
134
134
  * `--lr-radius-pill`. */
135
135
  pill:boolean;placeholder:string;
136
- /** Shows a built-in clear action for non-empty `text` and `search` inputs. */
136
+ /** Shows a built-in clear action for non-empty `text` and `search` inputs.*/
137
137
  clearable:boolean;
138
138
  /** Web Awesome's spelling of {@link clearable}, accepted so a mechanical `wa-` → `lr-` rename
139
139
  * does not silently drop the clear action. Prefer `clearable` in new code. */
@@ -147,18 +147,18 @@ withClear:boolean;
147
147
  * cancelled with no stray settle by disconnection, the built-in clear button, and a
148
148
  * programmatic `value` write that changes the value -- a same-value write does not disturb it. */
149
149
  debounce?:number;
150
- /** Forwards native read-only behavior to the internal input and disables the clear action. */
150
+ /** Forwards native read-only behavior to the internal input and disables the clear action.*/
151
151
  readonly:boolean;label:string;hint:string;
152
- /** Shoelace alias for {@link hint}. `hint` wins when both are supplied. */
152
+ /** Shoelace alias for {@link hint}. `hint` wins when both are supplied.*/
153
153
  helpText:string;
154
- /** SSR slot-presence hint for label content that cannot be inspected before hydration. */
154
+ /** SSR slot-presence hint for label content that cannot be inspected before hydration.*/
155
155
  withLabel:boolean;
156
- /** SSR slot-presence hint for hint/help-text content that cannot be inspected before hydration. */
156
+ /** SSR slot-presence hint for hint/help-text content that cannot be inspected before hydration.*/
157
157
  withHint:boolean;errorText:string;
158
158
  /** Accessible name overriding the label/placeholder-derived default. Takes precedence over both
159
159
  * `label` and `placeholder` when set, matching `<lr-textarea>`'s `accessibleLabel`. */
160
160
  accessibleLabel:string|null;autocomplete:string;
161
- /** Forwarded to the internal native control. */
161
+ /** Forwarded to the internal native control.*/
162
162
  title:string;
163
163
  /** Forwarded to the internal native `<input>`, so the browser's own autofocus algorithm targets
164
164
  * the real text control rather than the (non-focusable) custom-element host. */
@@ -169,9 +169,9 @@ get autocorrect():boolean;set autocorrect(next:boolean|'off'|'on');get inputmode
169
169
  /** Forwarded to the native `<input>`'s `min` for its constraint validation, for any `type`.
170
170
  * Defaults to `undefined`. A numeric attribute reads back as a number, other text as a string. */
171
171
  min?:number|string;
172
- /** Upper counterpart of `min`, with the same parsing and the same default of `undefined`. */
172
+ /** Upper counterpart of `min`, with the same parsing and the same default of `undefined`.*/
173
173
  max?:number|string;
174
- /** Accepts `'any'` (the native way to disable step validation) in addition to a numeric step. */
174
+ /** Accepts `'any'` (the native way to disable step validation) in addition to a numeric step.*/
175
175
  step?:number|'any';
176
176
  /** Minimum text length, forwarded to the internal native `<input>`'s own `minlength` and
177
177
  * consulted by that same native input's constraint validation (`tooShort`, see
@@ -215,14 +215,14 @@ withoutSpinButtons:boolean;protected get hidesSpinButtons():boolean;
215
215
  * field (`type="password"` or otherwise); the referenced element only needs a string `.value`,
216
216
  * so a native `<input>`/`<textarea>` works the same as another `lr-input`. */
217
217
  match:LyraMatchTarget;set defaultValueAlias(next:string);private touched;private readonly slotPresence;private settlingValueFromInput;private readonly settledDebounce;private readonly matchController;private inputEl?;private readonly hostDescription;private get inputId();constructor();disconnectedCallback():void;adoptedCallback():void;formResetCallback():void;
218
- /** The internal native `<input>` element, for direct DOM access — mirrors `<lr-textarea>`'s own `input` getter. */
218
+ /** The internal native `<input>` element, for direct DOM access — mirrors `<lr-textarea>`'s own `input` getter.*/
219
219
  get input():HTMLInputElement|null;click():void;focus(options?:FocusOptions):void;blur():void;select():void;
220
220
  /** Native date/time value view. Unsupported input types mirror the native getter and return
221
221
  * `null`; assignment follows the native input's own conversion and remains event-silent. */
222
222
  get valueAsDate():Date|null;set valueAsDate(next:Date|null);
223
- /** A date/time value at local fields (a `time` on today's date), like `lr-date-input`. Silent. */
223
+ /** A date/time value at local fields (a `time` on today's date), like `lr-date-input`. Silent.*/
224
224
  get valueAsLocalDate():Date|null;set valueAsLocalDate(next:Date|null);
225
- /** A date/time value at UTC fields, the native `valueAsDate` reading. Silent. */
225
+ /** A date/time value at UTC fields, the native `valueAsDate` reading. Silent.*/
226
226
  get valueAsUTCDate():Date|null;set valueAsUTCDate(next:Date|null);
227
227
  /** Native numeric view (milliseconds for date/time inputs, numeric value for number inputs).
228
228
  * Assignment is silent, matching `HTMLInputElement.valueAsNumber`. */
@@ -249,14 +249,14 @@ showPicker():void;
249
249
  * but emits no `input`/`change`. A stepper *button* is a user edit and emits them itself.
250
250
  */
251
251
  stepUp(steps?:number):void;
252
- /** Decrementing counterpart of `stepUp()`, with the same signature and the same silence. */
252
+ /** Decrementing counterpart of `stepUp()`, with the same signature and the same silence.*/
253
253
  stepDown(steps?:number):void;private applyStep;
254
254
  /** Cursor/selection extent, mirroring `<lr-textarea>`'s identical passthrough. `null` both when
255
255
  * the internal input hasn't rendered yet and whenever the current `type` doesn't support
256
256
  * selection at all (matching the native `<input>`'s own contract — only `text`/`search` among
257
257
  * this component's types do; `password` also supports it natively but isn't exercised here). */
258
258
  get selectionStart():number|null;set selectionStart(value:number|null);get selectionEnd():number|null;set selectionEnd(value:number|null);
259
- /** The native `selectionDirection`; `null` before render. */
259
+ /** The native `selectionDirection`; `null` before render.*/
260
260
  get selectionDirection():LyraSelectionDirection|null;set selectionDirection(value:LyraSelectionDirection|null);
261
261
  /** Passthrough to the native `<input>`'s own `setSelectionRange()`. No-op if the element hasn't
262
262
  * rendered yet, or throws the same native `InvalidStateError` the native `<input>` itself would
@@ -66,5 +66,5 @@ import{LyraInputShared}from'./input-shared.js';import type{LyraFormValidator}fro
66
66
  * @since 4.0.0
67
67
  */
68
68
  export declare class LyraInput extends LyraInputShared{
69
- /** Shoelace alias for {@link withoutSpinButtons}. */
69
+ /** Shoelace alias for {@link withoutSpinButtons}.*/
70
70
  noSpinButtons:boolean;protected get hidesSpinButtons():boolean;static get validators():LyraFormValidator<LyraInput>[];}declare global{interface HTMLElementTagNameMap{'lr-input':LyraInput;}}
@@ -1,2 +1,2 @@
1
- /** @deprecated Import @aceshooting/lyra-ui/components/lr-input.js to register this component. */
1
+ /** @deprecated Import @aceshooting/lyra-ui/components/lr-input.js to register this component.*/
2
2
  export*from'./input.class.js';
@@ -20,12 +20,12 @@ import type{LyraFormValidator}from'../form-validator.js';import{LyraInputShared}
20
20
  * @since 8.0.0
21
21
  */
22
22
  export declare class LyraNativeTimeInput extends LyraInputShared{
23
- /** Intrinsic validator catalog for the native time control. */
23
+ /** Intrinsic validator catalog for the native time control.*/
24
24
  static get validators():LyraFormValidator<LyraNativeTimeInput>[];
25
25
  /** Lyra 7 visual default retained intentionally while the mapped `lr-input` default moves to
26
26
  * outlined in v8. */
27
27
  appearance:LyraAppearance;protected get inputWrapperParts():string;
28
- /** Earliest selectable native time. */
28
+ /** Earliest selectable native time.*/
29
29
  min?:string|number;
30
- /** Latest selectable native time. */
30
+ /** Latest selectable native time.*/
31
31
  max?:string|number;constructor();connectedCallback():void;}declare global{interface HTMLElementTagNameMap{'lr-native-time-input':LyraNativeTimeInput;}}
@@ -1,2 +1,2 @@
1
- /** @deprecated Import @aceshooting/lyra-ui/components/lr-native-time-input.js to register this component. */
1
+ /** @deprecated Import @aceshooting/lyra-ui/components/lr-native-time-input.js to register this component.*/
2
2
  export*from'./native-time-input.class.js';
@@ -1,5 +1,5 @@
1
1
  import{nothing,type TemplateResult}from'lit';import{LyraInput}from'./input.class.js';import type{LyraInputEventMap}from'./input-shared.js';import type{LyraAppearance}from'../../../internal/variants.js';import type{LyraFormValidator}from'../form-validator.js';
2
- /** Number-input events, including the native cancelable edit veto exposed by its mapped API. */
2
+ /** Number-input events, including the native cancelable edit veto exposed by its mapped API.*/
3
3
  export interface LyraNumberInputEventMap extends LyraInputEventMap{beforeinput:InputEvent;}
4
4
  /**
5
5
  * `<lr-number-input>` — a numeric field with the complete `lr-input` form, validation, and native
@@ -47,15 +47,15 @@ export interface LyraNumberInputEventMap extends LyraInputEventMap{beforeinput:I
47
47
  * @since 4.0.0
48
48
  */
49
49
  export declare class LyraNumberInput extends LyraInput{
50
- /** Public WA-compatible catalog, inherited without narrowing its accepted base-input type. */
50
+ /** Public WA-compatible catalog, inherited without narrowing its accepted base-input type.*/
51
51
  static get validators():LyraFormValidator<LyraInput>[];static styles:import("lit").CSSResultGroup[];protected get inputWrapperParts():string;
52
- /** Hides the increment/decrement pair for a bare numeric field. */
52
+ /** Hides the increment/decrement pair for a bare numeric field.*/
53
53
  withoutSteppers:boolean;
54
- /** Numeric inputs use the outlined field treatment by default. */
54
+ /** Numeric inputs use the outlined field treatment by default.*/
55
55
  appearance:LyraAppearance;
56
- /** Requests a numeric virtual keyboard unless the consumer chooses `decimal`. */
56
+ /** Requests a numeric virtual keyboard unless the consumer chooses `decimal`.*/
57
57
  inputMode:string;
58
- /** Native step-grid default. */
58
+ /** Native step-grid default.*/
59
59
  step:number|'any'|undefined;
60
60
  /** Defaults to `true` here (unlike `<lr-input>`) so the component's own steppers are not shown
61
61
  * alongside the browser's built-in spin buttons. `without-spin-buttons="false"` brings the
@@ -1,2 +1,2 @@
1
- /** @deprecated Import @aceshooting/lyra-ui/components/lr-number-input.js to register this component. */
1
+ /** @deprecated Import @aceshooting/lyra-ui/components/lr-number-input.js to register this component.*/
2
2
  export*from'./number-input.class.js';
@@ -1,7 +1,7 @@
1
1
  type TimePrecision='minute'|'second'|'millisecond';export interface ParsedTimeValue{hour:number;minute:number;second:number;millisecond:number;precision:TimePrecision;milliseconds:number;}export type TimeHourFormat='auto'|'12'|'24';export type TimePatternPart={type:'hour'|'minute'|'second'|'dayPeriod';value:string;}|{type:'literal';value:string;};
2
- /** Parses the canonical, timezone-free wire representation used by an HTML time control. */
2
+ /** Parses the canonical, timezone-free wire representation used by an HTML time control.*/
3
3
  export declare function parseTimeValue(value:string):ParsedTimeValue|undefined;
4
- /** Normalizes a public string/Date value without applying timezone or elapsed-time arithmetic. */
4
+ /** Normalizes a public string/Date value without applying timezone or elapsed-time arithmetic.*/
5
5
  export declare function normalizeTimeValue(value:string|Date|null|undefined):string;
6
6
  /**
7
7
  * Formats milliseconds since local midnight as the canonical wire value, the inverse of
@@ -14,13 +14,13 @@ export declare function normalizeTimeValue(value:string|Date|null|undefined):str
14
14
  * `valueAsNumber` rather than silently wrapping it into a different time.
15
15
  */
16
16
  export declare function timeValueFromMilliseconds(value:number):string;export declare function to24Hour(hour:number,dayPeriod:'am'|'pm'):number;
17
- /** Implements HTML time's ordinary range and its useful reversed-bound overnight range. */
17
+ /** Implements HTML time's ordinary range and its useful reversed-bound overnight range.*/
18
18
  export declare function isTimeInRange(value:string,min:string,max:string):boolean;
19
- /** HTML time's step base: valid `min`, otherwise the valid content/reset value, otherwise midnight. */
19
+ /** HTML time's step base: valid `min`, otherwise the valid content/reset value, otherwise midnight.*/
20
20
  export declare function timeStepBaseMilliseconds(min:string,defaultValue?:string):number;
21
- /** Checks the HTML time step grid using pure milliseconds since local midnight. */
21
+ /** Checks the HTML time step grid using pure milliseconds since local midnight.*/
22
22
  export declare function hasTimeStepMismatch(value:string,step:number|'any',min:string,defaultValue?:string):boolean;
23
- /** Derives segment order and separators from the active locale instead of assuming `HH:mm`. */
23
+ /** Derives segment order and separators from the active locale instead of assuming `HH:mm`.*/
24
24
  export declare function localeTimePattern(locale:string,hourFormat:TimeHourFormat,includeSeconds:boolean):TimePatternPart[];
25
- /** Returns the locale's actual day-period labels, including non-Latin and punctuated forms. */
25
+ /** Returns the locale's actual day-period labels, including non-Latin and punctuated forms.*/
26
26
  export declare function dayPeriodLabels(locale:string):{am:string;pm:string;};export declare function wrapTimeMilliseconds(value:number):number;export{};
@@ -155,12 +155,12 @@ import{type ComplexAttributeConverter,type PropertyValues,type TemplateResult}fr
155
155
  * @since 4.0.0
156
156
  */
157
157
  export declare class LyraTimeInput extends LyraTimeInput_base{
158
- /** Public WA-compatible intrinsic validator catalog. */
158
+ /** Public WA-compatible intrinsic validator catalog.*/
159
159
  static get validators():LyraFormValidator<LyraTimeInput>[];static styles:import("lit").CSSResultGroup[];static properties:{open:{type:BooleanConstructor;reflect:boolean;noAccessor:boolean;};readonly:{type:BooleanConstructor;reflect:boolean;noAccessor:boolean;};step:{converter:ComplexAttributeConverter<LyraTimeInputStep,unknown>;reflect:boolean;noAccessor:boolean;};};appearance:LyraAppearance;autocomplete:string;distance:number;hint:string;hourFormat:LyraTimeInputHourFormat;label:string;min:string;max:string;pill:boolean;placement:LyraTimeInputPlacement;size:LyraSize;
160
- /** Shows the clear action while there is a value; same as `withClear`. */
160
+ /** Shows the clear action while there is a value; same as `withClear`.*/
161
161
  clearable:boolean;
162
- /** Alias of {@link clearable}. */
163
- withClear:boolean;withHint:boolean;withLabel:boolean;withNow:boolean;errorText:string;private activeSegment;private touched;private readonly slotPresence;private get hasLabelSlot();private get hasHintSlot();private get hasErrorSlot();private get hasStartSlot();private get hasEndSlot();private get hasFooterSlot();private popupHidden;private popupPositioned;private _open;private _readonly;private _step;private draft;private partial;private secondsVisible;private genuineValue;private digitBuffer;private digitSegment?;private inputDigitLocale;private inputDigitMap?;private pendingSegmentFocus?;private restoringSegmentFocus;private cleanupPositioner?;private overlayHandle?;private restoreFocusOnClose;private readonly popupController;private visibilityPromise;private segmentOrderKey;private segmentModelCache?;private pickerGridKey;private pickerGridMilliseconds;private inputId;private labelId;private hintId;private errorId;private requiredDescriptionId;private popupId;private readonly hostDescription;private now;constructor();
162
+ /** Alias of {@link clearable}.*/
163
+ withClear:boolean;withHint:boolean;withLabel:boolean;withNow:boolean;errorText:string;private activeSegment;private touched;private readonly slotPresence;private get hasLabelSlot();private get hasHintSlot();private get hasErrorSlot();private get hasStartSlot();private get hasEndSlot();private get hasFooterSlot();private popupHidden;private popupPositioned;private _open;private _readonly;private _step;private draft;private partial;private secondsVisible;private genuineValue;private digitBuffer;private digitSegment?;private inputDigitLocale;private inputDigitMap?;private pendingSegmentFocus?;private restoringSegmentFocus;private restoringPopupFocus;private cleanupPositioner?;private overlayHandle?;private restoreFocusOnClose;private readonly popupController;private visibilityPromise;private segmentOrderKey;private segmentModelCache?;private pickerGridKey;private pickerGridMilliseconds;private inputId;private labelId;private hintId;private errorId;private requiredDescriptionId;private popupId;private readonly hostDescription;private now;constructor();
164
164
  /** Whether the column picker is open.
165
165
  * @default false */
166
166
  get open():boolean;set open(next:boolean);
@@ -182,13 +182,13 @@ get valueAsNumber():number;set valueAsNumber(next:number);
182
182
  * Assigning reads the same local clock fields back off the given Date, so it round-trips with
183
183
  * the getter; `null` or an invalid Date clears the field. Assignment is silent. */
184
184
  get valueAsDate():Date|null;set valueAsDate(next:Date|null);
185
- /** Same as `valueAsDate`: local clock fields on today's date. */
185
+ /** Same as `valueAsDate`: local clock fields on today's date.*/
186
186
  get valueAsLocalDate():Date|null;set valueAsLocalDate(next:Date|null);
187
- /** UTC clock fields on 1970-01-01, like a native time input's `valueAsDate`. */
187
+ /** UTC clock fields on 1970-01-01, like a native time input's `valueAsDate`.*/
188
188
  get valueAsUTCDate():Date|null;set valueAsUTCDate(next:Date|null);private get numericStep();private padToStepPrecision;private get committedValue();private get includeSeconds();private get segmentModel();private get pattern();private get segmentOrder();private get periodLabels();private get liveDisabled();private activeSegmentFor;private get usesTwelveHour();private get draftComplete();private get draftHasAny();private syncDraft;private canonicalDraftValue;private syncComponentStates;private formattedNumber;private numberFormatter;private inputDigit;private displayTime;private segmentNumericValue;private segmentText;private segmentLabel;private segmentBounds;private setDraftSegment;private publishDraftEdit;private commitUserValue;private resetDigitBuffer;private moveSegment;private acceptDigit;private stepSegment;private onSegmentKeyDown;private onSegmentPaste;private onSegmentFocus;private onSegmentBlur;private segmentElement;
189
- /** Focuses the active segment unless the control is directly or fieldset disabled. */
189
+ /** Focuses the active segment unless the control is directly or fieldset disabled.*/
190
190
  focus(options?:FocusOptions):void;blur():void;click():void;private setOpen;private syncOpenAttribute;private requestVisibility;
191
- /** Opens the picker unless disabled or vetoed by `lr-show`. */
191
+ /** Opens the picker unless disabled or vetoed by `lr-show`.*/
192
192
  show():Promise<void>;
193
- /** Closes the picker unless vetoed by `lr-hide`. */
193
+ /** Closes the picker unless vetoed by `lr-hide`.*/
194
194
  hide():Promise<void>;private forceClose;private settleTransition;private positionPopup;private activatePopup;private teardownPopup;private onDocumentPointerDown;private onExpand;private onClear;private onNow;private onColumnSelect;private onPopupPointerDown;private onAutofillInput;private onAutofillChange;protected updateValidity():void;checkValidity():boolean;reportValidity():boolean;formResetCallback():void;formStateRestoreCallback(state:string|File|FormData|null,reason?:'autocomplete'|'restore'):void;protected willUpdate(changed:PropertyValues):void;protected updated(changed:PropertyValues):void;disconnectedCallback():void;adoptedCallback():void;private renderSegment;private renderPatternPart;private columnValues;private validPickerGridMilliseconds;private onColumnKeyDown;private renderColumn;render():TemplateResult;}declare global{interface HTMLElementTagNameMap{'lr-time-input':LyraTimeInput;}}export{};
@@ -1,4 +1,4 @@
1
- import{__decorate}from"tslib";import{SlotPresenceController}from"../../../internal/slot-presence-controller.js";import{GlassScrollLayer}from"../../../internal/glass-scroll-layer.js";import{html,nothing}from"lit";import{property,state}from"lit/decorators.js";import{LyraElement}from"../../../internal/lyra-element.js";import{FormAssociated,isBarredFromValidation}from"../../../internal/form-associated.js";import{SET_ANCHORED_VALIDITY,VALIDITY_ANCHOR}from"../../../internal/anchored-validity.js";import{nextId,srOnly}from"../../../internal/a11y.js";import{HostDescriptionController}from"../../../internal/aria-controls.js";import{sizes}from"../../../internal/sizes.styles.js";import{closeIcon,chevronIcon}from"../../../internal/icons.js";import{finiteNumber}from"../../../internal/numbers.js";import{shadowFocusTarget}from"../../../internal/active-element.js";import{deferredPlaceReady as place,waitForDeferredPlacement}from"../../../internal/anchored-overlay-runtime.js";import{PopupController,emitPopupEvent}from"../../../internal/popup-controller.js";import{resolveEffectivePositioningStrategy}from"../../../internal/positioning-strategy.js";import{rtlAwarePlacement}from"../../../internal/rtl.js";import{activateNonmodalOverlay,composedContains}from"../../../internal/nonmodal-overlay-manager.js";import{dispatchNativeEvent,dispatchNativeInputEvent,relayNativeEvent}from"../../../internal/native-event-relay.js";import{setCustomState}from"../../../internal/custom-states.js";import{submitOnEnter}from"../../../internal/submit-on-enter.js";import{getNumberFormat}from"../../../internal/intl-cache.js";import{dayPeriodLabels,hasTimeStepMismatch,isTimeInRange,localeTimePattern,normalizeTimeValue,parseTimeValue,timeValueFromMilliseconds,timeStepBaseMilliseconds,to24Hour,wrapTimeMilliseconds}from"./time-input-shared.js";import{styles}from"./time-input.styles.js";import{isDateObject}from"../../../internal/dom-guards.js";import{currentValidityValidator}from"../form-validator.js";import{LYRA_DEFAULT_timeInputDayPeriod,LYRA_DEFAULT_timeInputEmptySegment,LYRA_DEFAULT_timeInputHour,LYRA_DEFAULT_timeInputInvalid,LYRA_DEFAULT_timeInputLabel,LYRA_DEFAULT_timeInputMaxMessage,LYRA_DEFAULT_timeInputMinMessage,LYRA_DEFAULT_timeInputMinute,LYRA_DEFAULT_timeInputNow,LYRA_DEFAULT_timeInputOpen,LYRA_DEFAULT_timeInputPopup,LYRA_DEFAULT_timeInputRangeMessage,LYRA_DEFAULT_timeInputSecond,LYRA_DEFAULT_timeInputStepMessage}from"../../../internal/default-strings/forms.generated.js";import{LYRA_DEFAULT_clear,LYRA_DEFAULT_fieldRequired}from"../../../internal/default-strings/shared.generated.js";class LyraTimeInputBase extends LyraElement{}const stepConverter={fromAttribute(value){if(value==="any")return"any";const parsed=Number(value);return Number.isFinite(parsed)&&parsed>0?parsed:60},toAttribute(value){return String(value)}},hourFormatConverter={fromAttribute(value){return value==="12"||value==="24"?value:"auto"},toAttribute(value){return value}},PLACEMENTS=new Set(["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"]),placementConverter={fromAttribute(value){return PLACEMENTS.has(value)?value:"bottom-start"},toAttribute(value){return value}},blankDraft=()=>({hour:null,minute:null,second:null,dayPeriod:null}),pad=value=>String(value).padStart(2,"0");function isElementNode(value){if(value===null||typeof value!="object")return!1;const candidate=value;return candidate.nodeType===1&&typeof candidate.getRootNode=="function"&&typeof candidate.contains=="function"}function containsElement(container,value){if(!container||!isElementNode(value))return!1;try{return container.contains(value)}catch{return!1}}class LyraTimeInput extends FormAssociated(LyraTimeInputBase){static{this.defaultStrings={...super.defaultStrings,clear:LYRA_DEFAULT_clear,fieldRequired:LYRA_DEFAULT_fieldRequired,timeInputDayPeriod:LYRA_DEFAULT_timeInputDayPeriod,timeInputEmptySegment:LYRA_DEFAULT_timeInputEmptySegment,timeInputHour:LYRA_DEFAULT_timeInputHour,timeInputInvalid:LYRA_DEFAULT_timeInputInvalid,timeInputLabel:LYRA_DEFAULT_timeInputLabel,timeInputMaxMessage:LYRA_DEFAULT_timeInputMaxMessage,timeInputMinMessage:LYRA_DEFAULT_timeInputMinMessage,timeInputMinute:LYRA_DEFAULT_timeInputMinute,timeInputNow:LYRA_DEFAULT_timeInputNow,timeInputOpen:LYRA_DEFAULT_timeInputOpen,timeInputPopup:LYRA_DEFAULT_timeInputPopup,timeInputRangeMessage:LYRA_DEFAULT_timeInputRangeMessage,timeInputSecond:LYRA_DEFAULT_timeInputSecond,timeInputStepMessage:LYRA_DEFAULT_timeInputStepMessage}}static get validators(){return[currentValidityValidator("required","disabled","readonly","value","min","max","step")]}static{this.styles=[LyraElement.styles,sizes,srOnly,styles]}static{this.properties={open:{type:Boolean,reflect:!0,noAccessor:!0},readonly:{type:Boolean,reflect:!0,noAccessor:!0},step:{converter:stepConverter,reflect:!0,noAccessor:!0}}}get hasLabelSlot(){return this.slotPresence.has("label")}get hasHintSlot(){return this.slotPresence.has("hint")}get hasErrorSlot(){return this.slotPresence.has("error")}get hasStartSlot(){return this.slotPresence.has("start")}get hasEndSlot(){return this.slotPresence.has("end")}get hasFooterSlot(){return this.slotPresence.has("footer")}constructor(){super(),this.appearance="outlined",this.autocomplete="",this.distance=0,this.hint="",this.hourFormat="auto",this.label="",this.min="",this.max="",this.pill=!1,this.placement="bottom-start",this.size="m",this.clearable=!1,this.withClear=!1,this.withHint=!1,this.withLabel=!1,this.withNow=!1,this.errorText="",this.activeSegment="hour",this.touched=!1,this.slotPresence=new SlotPresenceController(this),this.popupHidden=!0,this.popupPositioned=!1,this._open=!1,this._readonly=!1,this._step=60,this.draft=blankDraft(),this.partial=!1,this.secondsVisible=!1,this.genuineValue="",this.digitBuffer="",this.inputDigitLocale="",this.restoringSegmentFocus=!1,this.restoreFocusOnClose=!0,this.popupController=new PopupController({host:this,popup:()=>this.renderRoot.querySelector('[part="popup"]'),emit:(name,cancelable)=>emitPopupEvent(this,name,cancelable),onPointer:event=>this.onDocumentPointerDown(event)}),this.visibilityPromise=Promise.resolve(),this.segmentOrderKey="",this.pickerGridKey="",this.pickerGridMilliseconds=[],this.inputId=nextId("time-input"),this.labelId=nextId("time-input-label"),this.hintId=nextId("time-input-hint"),this.errorId=nextId("time-input-error"),this.requiredDescriptionId=nextId("time-input-required"),this.popupId=nextId("time-input-popup"),this.hostDescription=new HostDescriptionController(this,()=>this.renderRoot.querySelector('[part~="input"]'),()=>{const description=this.renderRoot.querySelector(`#${this.requiredDescriptionId}`);return this.required&&description?[description]:[]}),this.now=()=>new Date,this.onSegmentKeyDown=event=>{const name=event.currentTarget.dataset.segment;if(this.liveDisabled)return;if(event.altKey&&event.key==="ArrowDown"){event.preventDefault(),this.show();return}const digit=this.inputDigit(event.key);if(digit!==void 0&&!event.ctrlKey&&!event.metaKey&&!event.altKey&&!this.readonly){event.preventDefault(),this.acceptDigit(name,digit);return}if(name==="dayPeriod"&&!this.readonly&&(event.key.toLowerCase()==="a"||event.key.toLowerCase()==="p")){event.preventDefault(),this.setDraftSegment(name,event.key.toLowerCase()==="a"?"am":"pm");return}if(event.key==="ArrowLeft"||event.key==="ArrowRight"){event.preventDefault();const physical=event.key==="ArrowRight"?1:-1;this.resetDigitBuffer(),this.moveSegment(name,this.effectiveDirection==="rtl"?-physical:physical);return}if((event.key==="ArrowUp"||event.key==="ArrowDown")&&!this.readonly){event.preventDefault(),this.resetDigitBuffer(),this.stepSegment(name,event.key==="ArrowUp"?1:-1);return}if((event.key==="Home"||event.key==="End")&&!this.readonly){event.preventDefault();const bounds=this.segmentBounds(name),next=event.key==="Home"?bounds.min:bounds.max;this.setDraftSegment(name,name==="dayPeriod"?next===0?"am":"pm":next);return}if((event.key==="Backspace"||event.key==="Delete")&&!this.readonly){event.preventDefault(),this.resetDigitBuffer(),this.setDraftSegment(name,null);return}event.key==="Enter"&&(this.open?this.hide():this.readonly||submitOnEnter(this,event))},this.onSegmentPaste=event=>{if(this.liveDisabled||this.readonly)return;const pasted=normalizeTimeValue(event.clipboardData?.getData("text").trim()??"");pasted&&(event.preventDefault(),this.resetDigitBuffer(),this.commitUserValue(pasted,"insertFromPaste",!0))},this.onSegmentFocus=event=>{if(event.stopPropagation(),this.liveDisabled)return;const focusedSegment=event.target.dataset.segment??this.activeSegment;if(this.restoringSegmentFocus){queueMicrotask(()=>{this.isConnected&&this.segmentOrder.includes(focusedSegment)&&(this.activeSegment=focusedSegment)});return}else this.activeSegment=focusedSegment;const related=event.relatedTarget;containsElement(this.renderRoot.querySelector('[part="input"]'),related)||relayNativeEvent(this,event)},this.onSegmentBlur=event=>{if(event.stopPropagation(),this.pendingSegmentFocus){this.resetDigitBuffer();return}const related=event.relatedTarget;containsElement(this.renderRoot.querySelector('[part="input"]'),related)||(this.liveDisabled||(this.touched=!0),this.resetDigitBuffer(),relayNativeEvent(this,event))},this.onDocumentPointerDown=event=>{const target=event.composedPath()[0];isElementNode(target)&&composedContains(this,target)||this.requestVisibility(!1,!0,!1)},this.onExpand=()=>{this.liveDisabled||(this.open?this.hide():this.show())},this.onClear=()=>{this.liveDisabled||this.readonly||!this.draftHasAny&&this.value===""||(this.touched=!0,this.commitUserValue("","deleteContentBackward",!0),this.emit("lr-clear"),this.focus())},this.onNow=()=>{if(this.liveDisabled||this.readonly)return;const now=this.now();let value=`${pad(now.getHours())}:${pad(now.getMinutes())}`;this.includeSeconds&&(value+=`:${pad(now.getSeconds())}`),this.commitUserValue(value)},this.onPopupPointerDown=event=>{event.preventDefault()},this.onAutofillInput=event=>{event.stopPropagation();const input=event.currentTarget,normalized=normalizeTimeValue(input.value),intentionalClear=input.value===""&&(event.isTrusted||event.inputType.startsWith("delete")||event.inputType==="insertReplacementText");if(input.value===""&&this.value!==""&&!intentionalClear){input.value=this.value;return}input.value!==""&&!normalized||this.readonly||this.liveDisabled||(this.value=normalized,dispatchNativeInputEvent(this,{data:event.data,inputType:event.inputType||"insertReplacementText"}),this.emit("lr-input",{value:this.value}))},this.onAutofillChange=event=>{event.stopPropagation();const input=event.currentTarget,normalized=normalizeTimeValue(input.value);input.value!==""&&!normalized||this.readonly||this.liveDisabled||(this.value=normalized,dispatchNativeEvent(this,"change"),this.emit("lr-change",{value:this.value}))},this.onColumnKeyDown=event=>{if(this.liveDisabled||!["ArrowUp","ArrowDown","Home","End"].includes(event.key))return;const current=event.currentTarget,column=current.closest('[role="listbox"]'),options=Array.from(column?.querySelectorAll('[role="option"]')??[]).filter(option=>!option.disabled);if(options.length===0)return;event.preventDefault();const index=Math.max(0,options.indexOf(current)),nextIndex=event.key==="Home"?0:event.key==="End"?options.length-1:(index+(event.key==="ArrowDown"?1:-1)+options.length)%options.length;for(const option of options)option.tabIndex=option===options[nextIndex]?0:-1;options[nextIndex].focus(),options[nextIndex].scrollIntoView({block:"nearest"})},new GlassScrollLayer(this,'[part="popup"]',()=>this.open),this.addEventListener("invalid",()=>{this.touched=!0})}get open(){return this._open}set open(next){this.requestVisibility(!!next,this.isConnected&&this.hasUpdated,!0)}get readonly(){return this._readonly}set readonly(next){const old=this._readonly;this._readonly=!!next,this.toggleAttribute("readonly",this._readonly),this._readonly&&this.forceClose(!1),this.updateValidity(),this.requestUpdate("readonly",old)}get step(){return this._step}set step(next){const old=this._step;if(next==="any")this._step=next;else{const numeric=finiteNumber(Number(next),60);this._step=numeric>0?numeric:60}const genuinePrecision=parseTimeValue(this.genuineValue)?.precision;this.secondsVisible=this.numericStep<60||genuinePrecision!==void 0&&genuinePrecision!=="minute";const committed=this.committedValue;committed!==this.value&&(super.value=committed),this.updateValidity(),this.requestUpdate("step",old)}get disabled(){return super.disabled}set disabled(next){super.disabled=next,next&&this.forceClose(!1),this.syncComponentStates()}get value(){return super.value}set value(next){this.genuineValue=normalizeTimeValue(next);const normalized=this.committedValue;this.partial=!1,this.resetDigitBuffer(),this.syncDraft(normalized),super.value=normalized,this.syncComponentStates()}get valueAsNumber(){return parseTimeValue(this.value)?.milliseconds??Number.NaN}set valueAsNumber(next){this.value=timeValueFromMilliseconds(next)}get valueAsDate(){const parsed=parseTimeValue(this.value);if(!parsed)return null;const result=this.now();return result.setHours(parsed.hour,parsed.minute,parsed.second,parsed.millisecond),result}set valueAsDate(next){this.value=normalizeTimeValue(next)}get valueAsLocalDate(){return this.valueAsDate}set valueAsLocalDate(next){this.valueAsDate=next}get valueAsUTCDate(){const parsed=parseTimeValue(this.value);return parsed?new Date(parsed.milliseconds):null}set valueAsUTCDate(next){this.value=timeValueFromMilliseconds(wrapTimeMilliseconds(isDateObject(next)?next.getTime():NaN))}get numericStep(){return this.step==="any"?60:finiteNumber(this.step,60)}padToStepPrecision(value){return value&&this.numericStep<60&&parseTimeValue(value)?.precision==="minute"?`${value}:00`:value}get committedValue(){return this.padToStepPrecision(this.genuineValue)}get includeSeconds(){return this.numericStep<60||this.secondsVisible}get segmentModel(){const locale=this.effectiveLocale,key=`${locale}|${this.hourFormat}|${this.includeSeconds}`;if(this.segmentModelCache?.key!==key){const pattern=localeTimePattern(locale,this.hourFormat,this.includeSeconds),order=pattern.filter(part=>part.type!=="literal").map(part=>part.type);this.segmentModelCache={key,pattern,order,twelveHour:order.includes("dayPeriod")}}return this.segmentModelCache}get pattern(){return this.segmentModel.pattern}get segmentOrder(){return this.segmentModel.order}get periodLabels(){const model=this.segmentModel;return model.labels??=dayPeriodLabels(this.effectiveLocale)}get liveDisabled(){const matches=this.matches;return this.effectiveDisabled||typeof matches=="function"&&matches.call(this,":disabled")}activeSegmentFor(order=this.segmentOrder){return order.includes(this.activeSegment)?this.activeSegment:order[0]??"hour"}get usesTwelveHour(){return this.segmentModel.twelveHour}get draftComplete(){return this.draft.hour!==null&&this.draft.minute!==null&&(!this.includeSeconds||this.draft.second!==null)&&(!this.usesTwelveHour||this.draft.dayPeriod!==null)}get draftHasAny(){return Object.values(this.draft).some(value=>value!==null)}syncDraft(value){const parsed=parseTimeValue(value);if(!parsed){this.draft=blankDraft(),this.secondsVisible=this.numericStep<60;return}this.draft={hour:parsed.hour,minute:parsed.minute,second:parsed.second,dayPeriod:parsed.hour>=12?"pm":"am"};const genuinePrecision=parseTimeValue(this.genuineValue)?.precision;this.secondsVisible=this.numericStep<60||genuinePrecision!==void 0&&genuinePrecision!=="minute"}canonicalDraftValue(){if(!this.draftComplete)return"";const value=`${pad(this.draft.hour)}:${pad(this.draft.minute)}`;return this.includeSeconds?`${value}:${pad(this.draft.second)}`:value}syncComponentStates(){setCustomState(this.internals,"blank",this.value===""),setCustomState(this.internals,"disabled",this.effectiveDisabled),setCustomState(this.internals,"open",this.open)}formattedNumber(value,minimumIntegerDigits){return this.numberFormatter(minimumIntegerDigits)(value)}numberFormatter(minimumIntegerDigits){try{const formatter=getNumberFormat(this.effectiveLocale,{minimumIntegerDigits,useGrouping:!1});return value=>formatter.format(value)}catch{return value=>String(value).padStart(minimumIntegerDigits,"0")}}inputDigit(key){if(/^[0-9]$/.test(key))return key;const locale=this.effectiveLocale;if(this.inputDigitMap&&this.inputDigitLocale===locale)return this.inputDigitMap.get(key);const digits=new Map;try{const formatter=getNumberFormat(locale,{useGrouping:!1});for(let value=0;value<=9;value++){const integer=formatter.formatToParts(value).find(part=>part.type==="integer")?.value;integer!==void 0&&!digits.has(integer)&&digits.set(integer,String(value))}this.inputDigitLocale=locale,this.inputDigitMap=digits}catch{}return digits.get(key)}displayTime(value){const parsed=parseTimeValue(value);if(!parsed)return value;const includeSeconds=parsed.precision!=="minute",labels=this.periodLabels;return localeTimePattern(this.effectiveLocale,this.hourFormat,includeSeconds).map(part=>{if(part.type==="literal")return part.value;if(part.type==="hour"){const hour=this.usesTwelveHour?parsed.hour%12||12:parsed.hour;return this.formattedNumber(hour,this.usesTwelveHour?1:2)}return part.type==="minute"?this.formattedNumber(parsed.minute,2):part.type==="second"?this.formattedNumber(parsed.second,2):parsed.hour>=12?labels.pm:labels.am}).join("")}segmentNumericValue(name){return name==="hour"?this.draft.hour===null?null:this.usesTwelveHour?this.draft.hour%12||12:this.draft.hour:name==="minute"?this.draft.minute:name==="second"?this.draft.second:this.draft.dayPeriod==="am"?0:this.draft.dayPeriod==="pm"?1:null}segmentText(name){if(this.digitSegment===name&&this.digitBuffer)return this.formattedNumber(Number(this.digitBuffer),this.digitBuffer.length);if(name==="dayPeriod")return this.draft.dayPeriod?this.periodLabels[this.draft.dayPeriod]:"--";const value=this.segmentNumericValue(name);if(value===null)return"--";const minimumDigits=name==="hour"&&this.usesTwelveHour?1:2;return this.formattedNumber(value,minimumDigits)}segmentLabel(name){const keys={hour:"timeInputHour",minute:"timeInputMinute",second:"timeInputSecond",dayPeriod:"timeInputDayPeriod"};return this.localize(keys[name])}segmentBounds(name){return name==="hour"?this.usesTwelveHour?{min:1,max:12}:{min:0,max:23}:name==="dayPeriod"?{min:0,max:1}:{min:0,max:59}}setDraftSegment(name,value,user=!0){if(!(this.liveDisabled||user&&this.readonly)){if(name==="hour")if(value===null)this.draft.hour=null;else{const numeric=Number(value);this.draft.hour=this.usesTwelveHour?to24Hour(numeric,this.draft.dayPeriod??"am"):numeric}else if(name==="dayPeriod"){const period=value==="pm"?"pm":value==="am"?"am":null;if(period&&this.draft.hour!==null){const displayHour=this.draft.hour%12||12;this.draft.hour=to24Hour(displayHour,period)}this.draft.dayPeriod=period}else this.draft[name]=value===null?null:Number(value);if(!user){this.requestUpdate();return}this.publishDraftEdit()}}publishDraftEdit(){const before=super.value,next=this.canonicalDraftValue();this.partial=this.draftHasAny&&!this.draftComplete,this.genuineValue=next,super.value=next,this.syncComponentStates(),dispatchNativeInputEvent(this,{inputType:"insertReplacementText"}),this.emit("lr-input",{value:this.value}),next!==""&&next!==before&&(dispatchNativeEvent(this,"change"),this.emit("lr-change",{value:this.value})),this.requestUpdate()}commitUserValue(value,inputType="insertReplacementText",forceChange=!1){const before=this.value;this.value=value,dispatchNativeInputEvent(this,{inputType}),this.emit("lr-input",{value:this.value}),(forceChange||this.value!==before)&&(dispatchNativeEvent(this,"change"),this.emit("lr-change",{value:this.value}))}resetDigitBuffer(){this.digitBuffer="",this.digitSegment=void 0}moveSegment(from,direction){const order=this.segmentOrder,current=Math.max(0,order.indexOf(from)),next=Math.min(order.length-1,Math.max(0,current+direction));this.activeSegment=order[next]??"hour",this.segmentElement(this.activeSegment)?.focus()}acceptDigit(name,digit){if(name==="dayPeriod")return;this.digitSegment!==name&&(this.digitSegment=name,this.digitBuffer="");const bounds=this.segmentBounds(name);let candidateText=`${this.digitBuffer}${digit}`.slice(-2),candidate=Number(candidateText);(candidate>bounds.max||candidateText.length===2&&candidate<bounds.min)&&(candidateText=digit,candidate=Number(digit)),this.digitBuffer=candidateText,candidate>=bounds.min&&candidate<=bounds.max?this.setDraftSegment(name,candidate):this.requestUpdate();const cannotAcceptAnother=candidate*10>bounds.max;(candidateText.length===2||cannotAcceptAnother)&&(this.resetDigitBuffer(),this.moveSegment(name,1))}stepSegment(name,delta){const bounds=this.segmentBounds(name),current=this.segmentNumericValue(name),next=current===null?bounds.min:(current-bounds.min+delta+(bounds.max-bounds.min+1))%(bounds.max-bounds.min+1)+bounds.min;name==="dayPeriod"?this.setDraftSegment(name,next===0?"am":"pm"):this.setDraftSegment(name,next)}segmentElement(name){return this.renderRoot?.querySelector(`[data-segment="${name}"]`)}focus(options){if(this.liveDisabled)return;const order=this.segmentOrder,activeSegment=this.activeSegmentFor(order);activeSegment!==this.activeSegment&&(this.activeSegment=activeSegment),this.segmentElement(activeSegment)?.focus(options)}blur(){const active=shadowFocusTarget(this);active&&typeof active.blur=="function"&&active.blur()}click(){this.liveDisabled||this.focus()}setOpen(next){if(this._open===next)return;const old=this._open;this._open=next,this.syncComponentStates(),this.requestUpdate("open",old)}syncOpenAttribute(){this.toggleAttribute("open",this._open)}requestVisibility(next,announce,restoreFocus){return this._open===next?this.visibilityPromise:next&&(this.liveDisabled||this.readonly)?(this.syncOpenAttribute(),Promise.resolve()):announce&&this.emit(next?"lr-show":"lr-hide",null,{cancelable:!0}).defaultPrevented?(this.syncOpenAttribute(),Promise.resolve()):(this.restoreFocusOnClose=restoreFocus,this.setOpen(next),this.visibilityPromise=announce?this.settleTransition(next?"lr-after-show":"lr-after-hide"):Promise.resolve(),this.visibilityPromise)}show(){return this.requestVisibility(!0,!0,!0)}hide(){return this.requestVisibility(!1,!0,!0)}forceClose(restoreFocus){this._open&&(this.restoreFocusOnClose=restoreFocus,this.setOpen(!1))}settleTransition(event){return this.popupController.settle(event,{waitForPosition:async stale=>{const positioned=await waitForDeferredPlacement(()=>this.cleanupPositioner);return stale()||!this.open?!1:positioned?(this.popupPositioned=!0,!0):(this.forceClose(!1),!1)},conceal:()=>{this.popupHidden=!0}})}positionPopup(){this.cleanupPositioner?.(),this.cleanupPositioner=void 0;const anchor=this.renderRoot.querySelector('[part~="time-input"]'),popup=this.renderRoot.querySelector('[part="popup"]');if(!anchor||!popup)return;this.cleanupPositioner=place(anchor,popup,{placement:rtlAwarePlacement(this.placement,this),offset:finiteNumber(this.distance,0),sync:"width",strategy:resolveEffectivePositioningStrategy(this,void 0,"fixed")});const operation=this.cleanupPositioner;operation.ready.then(positioned=>{positioned&&this.cleanupPositioner===operation&&this.open&&this.isConnected&&(this.popupPositioned=!0)})}activatePopup(){this.isConnected&&(this.positionPopup(),this.overlayHandle=activateNonmodalOverlay({host:this,panel:()=>this.renderRoot.querySelector('[part="popup"]'),onEscape:()=>{this.hide()},restoreFocusTo:this.segmentElement(this.activeSegment)}),this.popupController.bindPointer(),this.updateComplete.then(()=>{const option=this.renderRoot.querySelector('[part~="column-item-selected"]'),column=option?.closest('[part="column"]');if(!option||!column)return;const offset=option.getBoundingClientRect().top-column.getBoundingClientRect().top;column.scrollTop+=offset-(column.clientHeight-option.offsetHeight)/2}))}teardownPopup(){this.cleanupPositioner?.(),this.cleanupPositioner=void 0,this.overlayHandle?.deactivate({restoreFocus:this.restoreFocusOnClose}),this.overlayHandle=void 0,this.popupController.unbindPointer(),this.restoreFocusOnClose=!0}onColumnSelect(name,value){this.readonly||this.liveDisabled||(this.resetDigitBuffer(),this.setDraftSegment(name,value),this.activeSegment=name,this.updateComplete.then(()=>this.segmentElement(name)?.focus()))}updateValidity(){if(isBarredFromValidation(this,this.internals)){this[SET_ANCHORED_VALIDITY]({});return}const flags={};let message="";this.required&&this.value===""&&(flags.valueMissing=!0),this.partial&&(flags.badInput=!0);const parsed=parseTimeValue(this.value);if(this.value!==""&&!parsed&&(flags.badInput=!0),parsed&&!isTimeInRange(this.value,this.min,this.max)){const parsedMin=parseTimeValue(this.min),parsedMax=parseTimeValue(this.max);parsedMin&&parsedMax&&parsedMin.milliseconds>parsedMax.milliseconds?(flags.rangeUnderflow=!0,message=this.localize("timeInputRangeMessage",void 0,{min:this.displayTime(this.min),max:this.displayTime(this.max)})):parsedMin&&parsed.milliseconds<parsedMin.milliseconds?(flags.rangeUnderflow=!0,message=this.localize("timeInputMinMessage",void 0,{min:this.displayTime(this.min)})):(flags.rangeOverflow=!0,message=this.localize("timeInputMaxMessage",void 0,{max:this.displayTime(this.max)}))}parsed&&hasTimeStepMismatch(this.value,this.step,this.min,this.defaultValue)&&(flags.stepMismatch=!0,message||=this.localize("timeInputStepMessage")),flags.badInput?message=this.localize("timeInputInvalid"):flags.valueMissing&&(message=this.localize("fieldRequired")),this[SET_ANCHORED_VALIDITY](flags,message)}checkValidity(){return this.updateValidity(),super.checkValidity()}reportValidity(){return this.touched=!0,this.updateValidity(),super.reportValidity()}[VALIDITY_ANCHOR](){return this.segmentElement(this.activeSegmentFor())}formResetCallback(){super.formResetCallback(),this.touched=!1,this.partial=!1,this.resetDigitBuffer()}formStateRestoreCallback(state2,reason="restore"){super.formStateRestoreCallback(state2,reason)}willUpdate(changed){super.willUpdate(changed),this.open&&this.effectiveDisabled&&this.forceClose(!1);const order=this.segmentOrder,orderKey=order.join("|"),focused=orderKey!==this.segmentOrderKey?shadowFocusTarget(this):null,focusedSegment=typeof focused?.getAttribute=="function"?focused.getAttribute("data-segment"):null,nextActiveSegment=focusedSegment&&order.includes(focusedSegment)?focusedSegment:this.activeSegmentFor(order);focusedSegment&&(this.pendingSegmentFocus=order.includes(focusedSegment)?focusedSegment:nextActiveSegment),this.segmentOrderKey=orderKey,changed.has("open")&&(this.popupPositioned=!1),this.open&&(this.popupHidden=!1)}updated(changed){super.updated(changed),changed.has("open")?this.open?this.activatePopup():this.teardownPopup():this.open&&(changed.has("placement")||changed.has("distance"))&&this.positionPopup(),(changed.has("value")||changed.has("required")||changed.has("readonly")||changed.has("min")||changed.has("max")||changed.has("step"))&&this.updateValidity(),this.syncComponentStates(),this.toggleAttribute("data-invalid",this.touched&&!this.validity.valid);const pendingSegmentFocus=this.pendingSegmentFocus;if(this.pendingSegmentFocus=void 0,pendingSegmentFocus&&!this.effectiveDisabled){this.restoringSegmentFocus=!0;try{this.segmentElement(pendingSegmentFocus)?.focus()}finally{this.restoringSegmentFocus=!1}}}disconnectedCallback(){this.popupHidden=!0,this.popupController.cancel(),this.forceClose(!1),this.teardownPopup(),this.syncOpenAttribute(),this.pendingSegmentFocus=void 0,super.disconnectedCallback()}adoptedCallback(){super.adoptedCallback(),this.hostDescription.adopted()}renderSegment(name,invalid){const value=this.segmentNumericValue(name),bounds=this.segmentBounds(name),empty=value===null;return html`
1
+ import{__decorate}from"tslib";import{SlotPresenceController}from"../../../internal/slot-presence-controller.js";import{GlassScrollLayer}from"../../../internal/glass-scroll-layer.js";import{html,nothing}from"lit";import{property,state}from"lit/decorators.js";import{LyraElement}from"../../../internal/lyra-element.js";import{FormAssociated,isBarredFromValidation}from"../../../internal/form-associated.js";import{SET_ANCHORED_VALIDITY,VALIDITY_ANCHOR}from"../../../internal/anchored-validity.js";import{nextId,srOnly}from"../../../internal/a11y.js";import{HostDescriptionController}from"../../../internal/aria-controls.js";import{sizes}from"../../../internal/sizes.styles.js";import{closeIcon,chevronIcon}from"../../../internal/icons.js";import{finiteNumber}from"../../../internal/numbers.js";import{shadowFocusTarget}from"../../../internal/active-element.js";import{deferredPlaceReady as place,waitForDeferredPlacement}from"../../../internal/anchored-overlay-runtime.js";import{PopupController,emitPopupEvent}from"../../../internal/popup-controller.js";import{resolveEffectivePositioningStrategy}from"../../../internal/positioning-strategy.js";import{rtlAwarePlacement}from"../../../internal/rtl.js";import{activateNonmodalOverlay,composedContains}from"../../../internal/nonmodal-overlay-manager.js";import{dispatchNativeEvent,dispatchNativeInputEvent,relayNativeEvent}from"../../../internal/native-event-relay.js";import{setCustomState}from"../../../internal/custom-states.js";import{submitOnEnter}from"../../../internal/submit-on-enter.js";import{getNumberFormat}from"../../../internal/intl-cache.js";import{dayPeriodLabels,hasTimeStepMismatch,isTimeInRange,localeTimePattern,normalizeTimeValue,parseTimeValue,timeValueFromMilliseconds,timeStepBaseMilliseconds,to24Hour,wrapTimeMilliseconds}from"./time-input-shared.js";import{styles}from"./time-input.styles.js";import{isDateObject}from"../../../internal/dom-guards.js";import{currentValidityValidator}from"../form-validator.js";import{LYRA_DEFAULT_timeInputDayPeriod,LYRA_DEFAULT_timeInputEmptySegment,LYRA_DEFAULT_timeInputHour,LYRA_DEFAULT_timeInputInvalid,LYRA_DEFAULT_timeInputLabel,LYRA_DEFAULT_timeInputMaxMessage,LYRA_DEFAULT_timeInputMinMessage,LYRA_DEFAULT_timeInputMinute,LYRA_DEFAULT_timeInputNow,LYRA_DEFAULT_timeInputOpen,LYRA_DEFAULT_timeInputPopup,LYRA_DEFAULT_timeInputRangeMessage,LYRA_DEFAULT_timeInputSecond,LYRA_DEFAULT_timeInputStepMessage}from"../../../internal/default-strings/forms.generated.js";import{LYRA_DEFAULT_clear,LYRA_DEFAULT_fieldRequired}from"../../../internal/default-strings/shared.generated.js";class LyraTimeInputBase extends LyraElement{}const stepConverter={fromAttribute(value){if(value==="any")return"any";const parsed=Number(value);return Number.isFinite(parsed)&&parsed>0?parsed:60},toAttribute(value){return String(value)}},hourFormatConverter={fromAttribute(value){return value==="12"||value==="24"?value:"auto"},toAttribute(value){return value}},PLACEMENTS=new Set(["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"]),placementConverter={fromAttribute(value){return PLACEMENTS.has(value)?value:"bottom-start"},toAttribute(value){return value}},blankDraft=()=>({hour:null,minute:null,second:null,dayPeriod:null}),pad=value=>String(value).padStart(2,"0");function isElementNode(value){if(value===null||typeof value!="object")return!1;const candidate=value;return candidate.nodeType===1&&typeof candidate.getRootNode=="function"&&typeof candidate.contains=="function"}function containsElement(container,value){if(!container||!isElementNode(value))return!1;try{return container.contains(value)}catch{return!1}}class LyraTimeInput extends FormAssociated(LyraTimeInputBase){static{this.defaultStrings={...super.defaultStrings,clear:LYRA_DEFAULT_clear,fieldRequired:LYRA_DEFAULT_fieldRequired,timeInputDayPeriod:LYRA_DEFAULT_timeInputDayPeriod,timeInputEmptySegment:LYRA_DEFAULT_timeInputEmptySegment,timeInputHour:LYRA_DEFAULT_timeInputHour,timeInputInvalid:LYRA_DEFAULT_timeInputInvalid,timeInputLabel:LYRA_DEFAULT_timeInputLabel,timeInputMaxMessage:LYRA_DEFAULT_timeInputMaxMessage,timeInputMinMessage:LYRA_DEFAULT_timeInputMinMessage,timeInputMinute:LYRA_DEFAULT_timeInputMinute,timeInputNow:LYRA_DEFAULT_timeInputNow,timeInputOpen:LYRA_DEFAULT_timeInputOpen,timeInputPopup:LYRA_DEFAULT_timeInputPopup,timeInputRangeMessage:LYRA_DEFAULT_timeInputRangeMessage,timeInputSecond:LYRA_DEFAULT_timeInputSecond,timeInputStepMessage:LYRA_DEFAULT_timeInputStepMessage}}static get validators(){return[currentValidityValidator("required","disabled","readonly","value","min","max","step")]}static{this.styles=[LyraElement.styles,sizes,srOnly,styles]}static{this.properties={open:{type:Boolean,reflect:!0,noAccessor:!0},readonly:{type:Boolean,reflect:!0,noAccessor:!0},step:{converter:stepConverter,reflect:!0,noAccessor:!0}}}get hasLabelSlot(){return this.slotPresence.has("label")}get hasHintSlot(){return this.slotPresence.has("hint")}get hasErrorSlot(){return this.slotPresence.has("error")}get hasStartSlot(){return this.slotPresence.has("start")}get hasEndSlot(){return this.slotPresence.has("end")}get hasFooterSlot(){return this.slotPresence.has("footer")}constructor(){super(),this.appearance="outlined",this.autocomplete="",this.distance=0,this.hint="",this.hourFormat="auto",this.label="",this.min="",this.max="",this.pill=!1,this.placement="bottom-start",this.size="m",this.clearable=!1,this.withClear=!1,this.withHint=!1,this.withLabel=!1,this.withNow=!1,this.errorText="",this.activeSegment="hour",this.touched=!1,this.slotPresence=new SlotPresenceController(this),this.popupHidden=!0,this.popupPositioned=!1,this._open=!1,this._readonly=!1,this._step=60,this.draft=blankDraft(),this.partial=!1,this.secondsVisible=!1,this.genuineValue="",this.digitBuffer="",this.inputDigitLocale="",this.restoringSegmentFocus=!1,this.restoringPopupFocus=!1,this.restoreFocusOnClose=!0,this.popupController=new PopupController({host:this,popup:()=>this.renderRoot.querySelector('[part="popup"]'),emit:(name,cancelable)=>emitPopupEvent(this,name,cancelable),onPointer:event=>this.onDocumentPointerDown(event)}),this.visibilityPromise=Promise.resolve(),this.segmentOrderKey="",this.pickerGridKey="",this.pickerGridMilliseconds=[],this.inputId=nextId("time-input"),this.labelId=nextId("time-input-label"),this.hintId=nextId("time-input-hint"),this.errorId=nextId("time-input-error"),this.requiredDescriptionId=nextId("time-input-required"),this.popupId=nextId("time-input-popup"),this.hostDescription=new HostDescriptionController(this,()=>this.renderRoot.querySelector('[part~="input"]'),()=>{const description=this.renderRoot.querySelector(`#${this.requiredDescriptionId}`);return this.required&&description?[description]:[]}),this.now=()=>new Date,this.onSegmentKeyDown=event=>{const name=event.currentTarget.dataset.segment;if(this.liveDisabled)return;if(event.altKey&&event.key==="ArrowDown"){event.preventDefault(),this.show();return}const digit=this.inputDigit(event.key);if(digit!==void 0&&!event.ctrlKey&&!event.metaKey&&!event.altKey&&!this.readonly){event.preventDefault(),this.acceptDigit(name,digit);return}if(name==="dayPeriod"&&!this.readonly&&(event.key.toLowerCase()==="a"||event.key.toLowerCase()==="p")){event.preventDefault(),this.setDraftSegment(name,event.key.toLowerCase()==="a"?"am":"pm");return}if(event.key==="ArrowLeft"||event.key==="ArrowRight"){event.preventDefault();const physical=event.key==="ArrowRight"?1:-1;this.resetDigitBuffer(),this.moveSegment(name,this.effectiveDirection==="rtl"?-physical:physical);return}if((event.key==="ArrowUp"||event.key==="ArrowDown")&&!this.readonly){event.preventDefault(),this.resetDigitBuffer(),this.stepSegment(name,event.key==="ArrowUp"?1:-1);return}if((event.key==="Home"||event.key==="End")&&!this.readonly){event.preventDefault();const bounds=this.segmentBounds(name),next=event.key==="Home"?bounds.min:bounds.max;this.setDraftSegment(name,name==="dayPeriod"?next===0?"am":"pm":next);return}if((event.key==="Backspace"||event.key==="Delete")&&!this.readonly){event.preventDefault(),this.resetDigitBuffer(),this.setDraftSegment(name,null);return}event.key==="Enter"&&(this.open?this.hide():this.readonly||submitOnEnter(this,event))},this.onSegmentPaste=event=>{if(this.liveDisabled||this.readonly)return;const pasted=normalizeTimeValue(event.clipboardData?.getData("text").trim()??"");pasted&&(event.preventDefault(),this.resetDigitBuffer(),this.commitUserValue(pasted,"insertFromPaste",!0))},this.onSegmentFocus=event=>{if(event.stopPropagation(),this.liveDisabled)return;const target=event.target,focusedSegment=target.dataset.segment??this.activeSegment;if(this.restoringSegmentFocus||this.restoringPopupFocus){if(queueMicrotask(()=>{this.isConnected&&this.segmentOrder.includes(focusedSegment)&&shadowFocusTarget(this)===target&&(this.activeSegment=focusedSegment)}),this.restoringSegmentFocus)return}else this.activeSegment=focusedSegment;const related=event.relatedTarget;containsElement(this.renderRoot.querySelector('[part="input"]'),related)||relayNativeEvent(this,event)},this.onSegmentBlur=event=>{if(event.stopPropagation(),this.pendingSegmentFocus){this.resetDigitBuffer();return}const related=event.relatedTarget;containsElement(this.renderRoot.querySelector('[part="input"]'),related)||(this.liveDisabled||(this.touched=!0),this.resetDigitBuffer(),relayNativeEvent(this,event))},this.onDocumentPointerDown=event=>{const target=event.composedPath()[0];isElementNode(target)&&composedContains(this,target)||this.requestVisibility(!1,!0,!1)},this.onExpand=()=>{this.liveDisabled||(this.open?this.hide():this.show())},this.onClear=()=>{this.liveDisabled||this.readonly||!this.draftHasAny&&this.value===""||(this.touched=!0,this.commitUserValue("","deleteContentBackward",!0),this.emit("lr-clear"),this.focus())},this.onNow=()=>{if(this.liveDisabled||this.readonly)return;const now=this.now();let value=`${pad(now.getHours())}:${pad(now.getMinutes())}`;this.includeSeconds&&(value+=`:${pad(now.getSeconds())}`),this.commitUserValue(value)},this.onPopupPointerDown=event=>{event.preventDefault()},this.onAutofillInput=event=>{event.stopPropagation();const input=event.currentTarget,normalized=normalizeTimeValue(input.value),intentionalClear=input.value===""&&(event.isTrusted||event.inputType.startsWith("delete")||event.inputType==="insertReplacementText");if(input.value===""&&this.value!==""&&!intentionalClear){input.value=this.value;return}input.value!==""&&!normalized||this.readonly||this.liveDisabled||(this.value=normalized,dispatchNativeInputEvent(this,{data:event.data,inputType:event.inputType||"insertReplacementText"}),this.emit("lr-input",{value:this.value}))},this.onAutofillChange=event=>{event.stopPropagation();const input=event.currentTarget,normalized=normalizeTimeValue(input.value);input.value!==""&&!normalized||this.readonly||this.liveDisabled||(this.value=normalized,dispatchNativeEvent(this,"change"),this.emit("lr-change",{value:this.value}))},this.onColumnKeyDown=event=>{if(this.liveDisabled||!["ArrowUp","ArrowDown","Home","End"].includes(event.key))return;const current=event.currentTarget,column=current.closest('[role="listbox"]'),options=Array.from(column?.querySelectorAll('[role="option"]')??[]).filter(option=>!option.disabled);if(options.length===0)return;event.preventDefault();const index=Math.max(0,options.indexOf(current)),nextIndex=event.key==="Home"?0:event.key==="End"?options.length-1:(index+(event.key==="ArrowDown"?1:-1)+options.length)%options.length;for(const option of options)option.tabIndex=option===options[nextIndex]?0:-1;options[nextIndex].focus(),options[nextIndex].scrollIntoView({block:"nearest"})},new GlassScrollLayer(this,'[part="popup"]',()=>this.open),this.addEventListener("invalid",()=>{this.touched=!0})}get open(){return this._open}set open(next){this.requestVisibility(!!next,this.isConnected&&this.hasUpdated,!0)}get readonly(){return this._readonly}set readonly(next){const old=this._readonly;this._readonly=!!next,this.toggleAttribute("readonly",this._readonly),this._readonly&&this.forceClose(!1),this.updateValidity(),this.requestUpdate("readonly",old)}get step(){return this._step}set step(next){const old=this._step;if(next==="any")this._step=next;else{const numeric=finiteNumber(Number(next),60);this._step=numeric>0?numeric:60}const genuinePrecision=parseTimeValue(this.genuineValue)?.precision;this.secondsVisible=this.numericStep<60||genuinePrecision!==void 0&&genuinePrecision!=="minute";const committed=this.committedValue;committed!==this.value&&(super.value=committed),this.updateValidity(),this.requestUpdate("step",old)}get disabled(){return super.disabled}set disabled(next){super.disabled=next,next&&this.forceClose(!1),this.syncComponentStates()}get value(){return super.value}set value(next){this.genuineValue=normalizeTimeValue(next);const normalized=this.committedValue;this.partial=!1,this.resetDigitBuffer(),this.syncDraft(normalized),super.value=normalized,this.syncComponentStates()}get valueAsNumber(){return parseTimeValue(this.value)?.milliseconds??Number.NaN}set valueAsNumber(next){this.value=timeValueFromMilliseconds(next)}get valueAsDate(){const parsed=parseTimeValue(this.value);if(!parsed)return null;const result=this.now();return result.setHours(parsed.hour,parsed.minute,parsed.second,parsed.millisecond),result}set valueAsDate(next){this.value=normalizeTimeValue(next)}get valueAsLocalDate(){return this.valueAsDate}set valueAsLocalDate(next){this.valueAsDate=next}get valueAsUTCDate(){const parsed=parseTimeValue(this.value);return parsed?new Date(parsed.milliseconds):null}set valueAsUTCDate(next){this.value=timeValueFromMilliseconds(wrapTimeMilliseconds(isDateObject(next)?next.getTime():NaN))}get numericStep(){return this.step==="any"?60:finiteNumber(this.step,60)}padToStepPrecision(value){return value&&this.numericStep<60&&parseTimeValue(value)?.precision==="minute"?`${value}:00`:value}get committedValue(){return this.padToStepPrecision(this.genuineValue)}get includeSeconds(){return this.numericStep<60||this.secondsVisible}get segmentModel(){const locale=this.effectiveLocale,key=`${locale}|${this.hourFormat}|${this.includeSeconds}`;if(this.segmentModelCache?.key!==key){const pattern=localeTimePattern(locale,this.hourFormat,this.includeSeconds),order=pattern.filter(part=>part.type!=="literal").map(part=>part.type);this.segmentModelCache={key,pattern,order,twelveHour:order.includes("dayPeriod")}}return this.segmentModelCache}get pattern(){return this.segmentModel.pattern}get segmentOrder(){return this.segmentModel.order}get periodLabels(){const model=this.segmentModel;return model.labels??=dayPeriodLabels(this.effectiveLocale)}get liveDisabled(){const matches=this.matches;return this.effectiveDisabled||typeof matches=="function"&&matches.call(this,":disabled")}activeSegmentFor(order=this.segmentOrder){return order.includes(this.activeSegment)?this.activeSegment:order[0]??"hour"}get usesTwelveHour(){return this.segmentModel.twelveHour}get draftComplete(){return this.draft.hour!==null&&this.draft.minute!==null&&(!this.includeSeconds||this.draft.second!==null)&&(!this.usesTwelveHour||this.draft.dayPeriod!==null)}get draftHasAny(){return Object.values(this.draft).some(value=>value!==null)}syncDraft(value){const parsed=parseTimeValue(value);if(!parsed){this.draft=blankDraft(),this.secondsVisible=this.numericStep<60;return}this.draft={hour:parsed.hour,minute:parsed.minute,second:parsed.second,dayPeriod:parsed.hour>=12?"pm":"am"};const genuinePrecision=parseTimeValue(this.genuineValue)?.precision;this.secondsVisible=this.numericStep<60||genuinePrecision!==void 0&&genuinePrecision!=="minute"}canonicalDraftValue(){if(!this.draftComplete)return"";const value=`${pad(this.draft.hour)}:${pad(this.draft.minute)}`;return this.includeSeconds?`${value}:${pad(this.draft.second)}`:value}syncComponentStates(){setCustomState(this.internals,"blank",this.value===""),setCustomState(this.internals,"disabled",this.effectiveDisabled),setCustomState(this.internals,"open",this.open)}formattedNumber(value,minimumIntegerDigits){return this.numberFormatter(minimumIntegerDigits)(value)}numberFormatter(minimumIntegerDigits){try{const formatter=getNumberFormat(this.effectiveLocale,{minimumIntegerDigits,useGrouping:!1});return value=>formatter.format(value)}catch{return value=>String(value).padStart(minimumIntegerDigits,"0")}}inputDigit(key){if(/^[0-9]$/.test(key))return key;const locale=this.effectiveLocale;if(this.inputDigitMap&&this.inputDigitLocale===locale)return this.inputDigitMap.get(key);const digits=new Map;try{const formatter=getNumberFormat(locale,{useGrouping:!1});for(let value=0;value<=9;value++){const integer=formatter.formatToParts(value).find(part=>part.type==="integer")?.value;integer!==void 0&&!digits.has(integer)&&digits.set(integer,String(value))}this.inputDigitLocale=locale,this.inputDigitMap=digits}catch{}return digits.get(key)}displayTime(value){const parsed=parseTimeValue(value);if(!parsed)return value;const includeSeconds=parsed.precision!=="minute",labels=this.periodLabels;return localeTimePattern(this.effectiveLocale,this.hourFormat,includeSeconds).map(part=>{if(part.type==="literal")return part.value;if(part.type==="hour"){const hour=this.usesTwelveHour?parsed.hour%12||12:parsed.hour;return this.formattedNumber(hour,this.usesTwelveHour?1:2)}return part.type==="minute"?this.formattedNumber(parsed.minute,2):part.type==="second"?this.formattedNumber(parsed.second,2):parsed.hour>=12?labels.pm:labels.am}).join("")}segmentNumericValue(name){return name==="hour"?this.draft.hour===null?null:this.usesTwelveHour?this.draft.hour%12||12:this.draft.hour:name==="minute"?this.draft.minute:name==="second"?this.draft.second:this.draft.dayPeriod==="am"?0:this.draft.dayPeriod==="pm"?1:null}segmentText(name){if(this.digitSegment===name&&this.digitBuffer)return this.formattedNumber(Number(this.digitBuffer),this.digitBuffer.length);if(name==="dayPeriod")return this.draft.dayPeriod?this.periodLabels[this.draft.dayPeriod]:"--";const value=this.segmentNumericValue(name);if(value===null)return"--";const minimumDigits=name==="hour"&&this.usesTwelveHour?1:2;return this.formattedNumber(value,minimumDigits)}segmentLabel(name){const keys={hour:"timeInputHour",minute:"timeInputMinute",second:"timeInputSecond",dayPeriod:"timeInputDayPeriod"};return this.localize(keys[name])}segmentBounds(name){return name==="hour"?this.usesTwelveHour?{min:1,max:12}:{min:0,max:23}:name==="dayPeriod"?{min:0,max:1}:{min:0,max:59}}setDraftSegment(name,value,user=!0){if(!(this.liveDisabled||user&&this.readonly)){if(name==="hour")if(value===null)this.draft.hour=null;else{const numeric=Number(value);this.draft.hour=this.usesTwelveHour?to24Hour(numeric,this.draft.dayPeriod??"am"):numeric}else if(name==="dayPeriod"){const period=value==="pm"?"pm":value==="am"?"am":null;if(period&&this.draft.hour!==null){const displayHour=this.draft.hour%12||12;this.draft.hour=to24Hour(displayHour,period)}this.draft.dayPeriod=period}else this.draft[name]=value===null?null:Number(value);if(!user){this.requestUpdate();return}this.publishDraftEdit()}}publishDraftEdit(){const before=super.value,next=this.canonicalDraftValue();this.partial=this.draftHasAny&&!this.draftComplete,this.genuineValue=next,super.value=next,this.syncComponentStates(),dispatchNativeInputEvent(this,{inputType:"insertReplacementText"}),this.emit("lr-input",{value:this.value}),next!==""&&next!==before&&(dispatchNativeEvent(this,"change"),this.emit("lr-change",{value:this.value})),this.requestUpdate()}commitUserValue(value,inputType="insertReplacementText",forceChange=!1){const before=this.value;this.value=value,dispatchNativeInputEvent(this,{inputType}),this.emit("lr-input",{value:this.value}),(forceChange||this.value!==before)&&(dispatchNativeEvent(this,"change"),this.emit("lr-change",{value:this.value}))}resetDigitBuffer(){this.digitBuffer="",this.digitSegment=void 0}moveSegment(from,direction){const order=this.segmentOrder,current=Math.max(0,order.indexOf(from)),next=Math.min(order.length-1,Math.max(0,current+direction));this.activeSegment=order[next]??"hour",this.segmentElement(this.activeSegment)?.focus()}acceptDigit(name,digit){if(name==="dayPeriod")return;this.digitSegment!==name&&(this.digitSegment=name,this.digitBuffer="");const bounds=this.segmentBounds(name);let candidateText=`${this.digitBuffer}${digit}`.slice(-2),candidate=Number(candidateText);(candidate>bounds.max||candidateText.length===2&&candidate<bounds.min)&&(candidateText=digit,candidate=Number(digit)),this.digitBuffer=candidateText,candidate>=bounds.min&&candidate<=bounds.max?this.setDraftSegment(name,candidate):this.requestUpdate();const cannotAcceptAnother=candidate*10>bounds.max;(candidateText.length===2||cannotAcceptAnother)&&(this.resetDigitBuffer(),this.moveSegment(name,1))}stepSegment(name,delta){const bounds=this.segmentBounds(name),current=this.segmentNumericValue(name),next=current===null?bounds.min:(current-bounds.min+delta+(bounds.max-bounds.min+1))%(bounds.max-bounds.min+1)+bounds.min;name==="dayPeriod"?this.setDraftSegment(name,next===0?"am":"pm"):this.setDraftSegment(name,next)}segmentElement(name){return this.renderRoot?.querySelector(`[data-segment="${name}"]`)}focus(options){if(this.liveDisabled)return;const order=this.segmentOrder,activeSegment=this.activeSegmentFor(order);activeSegment!==this.activeSegment&&(this.activeSegment=activeSegment),this.segmentElement(activeSegment)?.focus(options)}blur(){const active=shadowFocusTarget(this);active&&typeof active.blur=="function"&&active.blur()}click(){this.liveDisabled||this.focus()}setOpen(next){if(this._open===next)return;const old=this._open;this._open=next,this.syncComponentStates(),this.requestUpdate("open",old)}syncOpenAttribute(){this.toggleAttribute("open",this._open)}requestVisibility(next,announce,restoreFocus){return this._open===next?this.visibilityPromise:next&&(this.liveDisabled||this.readonly)?(this.syncOpenAttribute(),Promise.resolve()):announce&&this.emit(next?"lr-show":"lr-hide",null,{cancelable:!0}).defaultPrevented?(this.syncOpenAttribute(),Promise.resolve()):(this.restoreFocusOnClose=restoreFocus,this.setOpen(next),this.visibilityPromise=announce?this.settleTransition(next?"lr-after-show":"lr-after-hide"):Promise.resolve(),this.visibilityPromise)}show(){return this.requestVisibility(!0,!0,!0)}hide(){return this.requestVisibility(!1,!0,!0)}forceClose(restoreFocus){this._open&&(this.restoreFocusOnClose=restoreFocus,this.setOpen(!1))}settleTransition(event){return this.popupController.settle(event,{waitForPosition:async stale=>{const positioned=await waitForDeferredPlacement(()=>this.cleanupPositioner);return stale()||!this.open?!1:positioned?(this.popupPositioned=!0,!0):(this.forceClose(!1),!1)},conceal:()=>{this.popupHidden=!0}})}positionPopup(){this.cleanupPositioner?.(),this.cleanupPositioner=void 0;const anchor=this.renderRoot.querySelector('[part~="time-input"]'),popup=this.renderRoot.querySelector('[part="popup"]');if(!anchor||!popup)return;this.cleanupPositioner=place(anchor,popup,{placement:rtlAwarePlacement(this.placement,this),offset:finiteNumber(this.distance,0),sync:"width",strategy:resolveEffectivePositioningStrategy(this,void 0,"fixed")});const operation=this.cleanupPositioner;operation.ready.then(positioned=>{positioned&&this.cleanupPositioner===operation&&this.open&&this.isConnected&&(this.popupPositioned=!0)})}activatePopup(){this.isConnected&&(this.positionPopup(),this.overlayHandle=activateNonmodalOverlay({host:this,panel:()=>this.renderRoot.querySelector('[part="popup"]'),onEscape:()=>{this.hide()},restoreFocusTo:this.segmentElement(this.activeSegment)}),this.popupController.bindPointer(),this.updateComplete.then(()=>{const option=this.renderRoot.querySelector('[part~="column-item-selected"]'),column=option?.closest('[part="column"]');if(!option||!column)return;const offset=option.getBoundingClientRect().top-column.getBoundingClientRect().top;column.scrollTop+=offset-(column.clientHeight-option.offsetHeight)/2}))}teardownPopup(){this.cleanupPositioner?.(),this.cleanupPositioner=void 0;const restoringPopupFocus=this.restoringPopupFocus;this.restoringPopupFocus=!0;try{this.overlayHandle?.deactivate({restoreFocus:this.restoreFocusOnClose})}finally{this.restoringPopupFocus=restoringPopupFocus}this.overlayHandle=void 0,this.popupController.unbindPointer(),this.restoreFocusOnClose=!0}onColumnSelect(name,value){this.readonly||this.liveDisabled||(this.resetDigitBuffer(),this.setDraftSegment(name,value),this.activeSegment=name,this.updateComplete.then(()=>this.segmentElement(name)?.focus()))}updateValidity(){if(isBarredFromValidation(this,this.internals)){this[SET_ANCHORED_VALIDITY]({});return}const flags={};let message="";this.required&&this.value===""&&(flags.valueMissing=!0),this.partial&&(flags.badInput=!0);const parsed=parseTimeValue(this.value);if(this.value!==""&&!parsed&&(flags.badInput=!0),parsed&&!isTimeInRange(this.value,this.min,this.max)){const parsedMin=parseTimeValue(this.min),parsedMax=parseTimeValue(this.max);parsedMin&&parsedMax&&parsedMin.milliseconds>parsedMax.milliseconds?(flags.rangeUnderflow=!0,message=this.localize("timeInputRangeMessage",void 0,{min:this.displayTime(this.min),max:this.displayTime(this.max)})):parsedMin&&parsed.milliseconds<parsedMin.milliseconds?(flags.rangeUnderflow=!0,message=this.localize("timeInputMinMessage",void 0,{min:this.displayTime(this.min)})):(flags.rangeOverflow=!0,message=this.localize("timeInputMaxMessage",void 0,{max:this.displayTime(this.max)}))}parsed&&hasTimeStepMismatch(this.value,this.step,this.min,this.defaultValue)&&(flags.stepMismatch=!0,message||=this.localize("timeInputStepMessage")),flags.badInput?message=this.localize("timeInputInvalid"):flags.valueMissing&&(message=this.localize("fieldRequired")),this[SET_ANCHORED_VALIDITY](flags,message)}checkValidity(){return this.updateValidity(),super.checkValidity()}reportValidity(){return this.touched=!0,this.updateValidity(),super.reportValidity()}[VALIDITY_ANCHOR](){return this.segmentElement(this.activeSegmentFor())}formResetCallback(){super.formResetCallback(),this.touched=!1,this.partial=!1,this.resetDigitBuffer()}formStateRestoreCallback(state2,reason="restore"){super.formStateRestoreCallback(state2,reason)}willUpdate(changed){super.willUpdate(changed),this.open&&this.effectiveDisabled&&this.forceClose(!1);const order=this.segmentOrder,orderKey=order.join("|"),focused=orderKey!==this.segmentOrderKey?shadowFocusTarget(this):null,focusedSegment=typeof focused?.getAttribute=="function"?focused.getAttribute("data-segment"):null,nextActiveSegment=focusedSegment&&order.includes(focusedSegment)?focusedSegment:this.activeSegmentFor(order);focusedSegment&&(this.pendingSegmentFocus=order.includes(focusedSegment)?focusedSegment:nextActiveSegment),this.segmentOrderKey=orderKey,changed.has("open")&&(this.popupPositioned=!1),this.open&&(this.popupHidden=!1)}updated(changed){super.updated(changed),changed.has("open")?this.open?this.activatePopup():this.teardownPopup():this.open&&(changed.has("placement")||changed.has("distance"))&&this.positionPopup(),(changed.has("value")||changed.has("required")||changed.has("readonly")||changed.has("min")||changed.has("max")||changed.has("step"))&&this.updateValidity(),this.syncComponentStates(),this.toggleAttribute("data-invalid",this.touched&&!this.validity.valid);const pendingSegmentFocus=this.pendingSegmentFocus;if(this.pendingSegmentFocus=void 0,pendingSegmentFocus&&!this.effectiveDisabled){this.restoringSegmentFocus=!0;try{this.segmentElement(pendingSegmentFocus)?.focus()}finally{this.restoringSegmentFocus=!1}}}disconnectedCallback(){this.popupHidden=!0,this.popupController.cancel(),this.forceClose(!1),this.teardownPopup(),this.syncOpenAttribute(),this.pendingSegmentFocus=void 0,super.disconnectedCallback()}adoptedCallback(){super.adoptedCallback(),this.hostDescription.adopted()}renderSegment(name,invalid){const value=this.segmentNumericValue(name),bounds=this.segmentBounds(name),empty=value===null;return html`
2
2
  <span
3
3
  part="segment"
4
4
  role="spinbutton"
@@ -1,2 +1,2 @@
1
- /** @deprecated Import @aceshooting/lyra-ui/components/lr-time-input.js to register this component. */
1
+ /** @deprecated Import @aceshooting/lyra-ui/components/lr-time-input.js to register this component.*/
2
2
  export*from'./time-input.class.js';