@aceshooting/lyra-ui 29.2.2 → 30.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1158) hide show
  1. package/CHANGELOG.md +164 -89
  2. package/README.md +9 -8
  3. package/dist/ai/adapters/ag-ui.d.ts +2 -2
  4. package/dist/ai/index.d.ts +1 -1
  5. package/dist/ai/runtime.d.ts +7 -7
  6. package/dist/ai/runtime.js +1 -1
  7. package/dist/ai/snapshot.d.ts +5 -5
  8. package/dist/ai/snapshot.js +1 -1
  9. package/dist/ai/types.d.ts +34 -34
  10. package/dist/all.d.ts +1 -1
  11. package/dist/all.js +1 -1
  12. package/dist/autoloader.d.ts +5 -5
  13. package/dist/autoloader.js +1 -1
  14. package/dist/cli/component-inventory.mjs +1 -1
  15. package/dist/cli/lyra-rename-ledger.mjs +1 -1
  16. package/dist/cli/migrate-wa.mjs +7 -3
  17. package/dist/cli/migration-analysis.mjs +1 -1
  18. package/dist/cli/migration-contract.json +1 -1
  19. package/dist/cli/migration-contract.mjs +1 -1
  20. package/dist/cli/migration-immutable-collections.mjs +6 -0
  21. package/dist/cli/migration-renames.mjs +1 -1
  22. package/dist/cli/migration-transforms.mjs +1 -1
  23. package/dist/components/agent-tools/activity-feed/activity-feed.class.d.ts +6 -6
  24. package/dist/components/agent-tools/activity-feed/activity-feed.d.ts +1 -1
  25. package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.class.d.ts +5 -6
  26. package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.class.js +1 -1
  27. package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.d.ts +1 -1
  28. package/dist/components/agent-tools/agent-question/agent-question.class.d.ts +9 -9
  29. package/dist/components/agent-tools/agent-question/agent-question.d.ts +1 -1
  30. package/dist/components/agent-tools/agent-run/agent-run.class.d.ts +5 -6
  31. package/dist/components/agent-tools/agent-run/agent-run.class.js +1 -1
  32. package/dist/components/agent-tools/agent-run/agent-run.d.ts +1 -1
  33. package/dist/components/agent-tools/agent-status-presentation.d.ts +6 -6
  34. package/dist/components/agent-tools/agent-trace/agent-trace.class.d.ts +6 -6
  35. package/dist/components/agent-tools/agent-trace/agent-trace.class.js +2 -2
  36. package/dist/components/agent-tools/agent-trace/agent-trace.d.ts +1 -1
  37. package/dist/components/agent-tools/approval-queue/approval-queue.class.d.ts +6 -6
  38. package/dist/components/agent-tools/approval-queue/approval-queue.d.ts +1 -1
  39. package/dist/components/agent-tools/approval-state.d.ts +4 -4
  40. package/dist/components/agent-tools/artifact-panel/artifact-panel.class.d.ts +7 -7
  41. package/dist/components/agent-tools/artifact-panel/artifact-panel.d.ts +1 -1
  42. package/dist/components/agent-tools/background-runs/background-runs.class.d.ts +6 -7
  43. package/dist/components/agent-tools/background-runs/background-runs.class.js +1 -1
  44. package/dist/components/agent-tools/background-runs/background-runs.d.ts +1 -1
  45. package/dist/components/agent-tools/browser-frame/browser-frame.class.d.ts +2 -2
  46. package/dist/components/agent-tools/browser-frame/browser-frame.d.ts +1 -1
  47. package/dist/components/agent-tools/budget-meter/budget-meter.class.d.ts +5 -5
  48. package/dist/components/agent-tools/budget-meter/budget-meter.d.ts +1 -1
  49. package/dist/components/agent-tools/change-review/change-review.class.d.ts +6 -7
  50. package/dist/components/agent-tools/change-review/change-review.class.js +1 -1
  51. package/dist/components/agent-tools/change-review/change-review.d.ts +1 -1
  52. package/dist/components/agent-tools/commit-card/commit-card.class.d.ts +5 -5
  53. package/dist/components/agent-tools/commit-card/commit-card.d.ts +1 -1
  54. package/dist/components/agent-tools/compare-panel/compare-panel.d.ts +1 -1
  55. package/dist/components/agent-tools/confirm-bar/confirm-bar.class.d.ts +4 -4
  56. package/dist/components/agent-tools/confirm-bar/confirm-bar.d.ts +1 -1
  57. package/dist/components/agent-tools/connector-manager/connector-manager.class.d.ts +4 -4
  58. package/dist/components/agent-tools/connector-manager/connector-manager.d.ts +1 -1
  59. package/dist/components/agent-tools/context-inspector/context-inspector.class.d.ts +13 -13
  60. package/dist/components/agent-tools/context-inspector/context-inspector.d.ts +1 -1
  61. package/dist/components/agent-tools/eval-dataset/eval-dataset.class.d.ts +11 -10
  62. package/dist/components/agent-tools/eval-dataset/eval-dataset.class.js +1 -1
  63. package/dist/components/agent-tools/eval-dataset/eval-dataset.d.ts +1 -1
  64. package/dist/components/agent-tools/eval-result/eval-result.class.d.ts +7 -7
  65. package/dist/components/agent-tools/eval-result/eval-result.d.ts +1 -1
  66. package/dist/components/agent-tools/evaluation-run/evaluation-run.class.d.ts +13 -7
  67. package/dist/components/agent-tools/evaluation-run/evaluation-run.class.js +1 -1
  68. package/dist/components/agent-tools/evaluation-run/evaluation-run.d.ts +1 -1
  69. package/dist/components/agent-tools/mcp-app/mcp-app.class.d.ts +5 -5
  70. package/dist/components/agent-tools/mcp-app/mcp-app.d.ts +1 -1
  71. package/dist/components/agent-tools/permission-grant/permission-grant.class.d.ts +7 -7
  72. package/dist/components/agent-tools/permission-grant/permission-grant.d.ts +1 -1
  73. package/dist/components/agent-tools/permission-rules/permission-rules.class.d.ts +3 -3
  74. package/dist/components/agent-tools/permission-rules/permission-rules.d.ts +1 -1
  75. package/dist/components/agent-tools/policy-summary/policy-summary.class.d.ts +3 -3
  76. package/dist/components/agent-tools/policy-summary/policy-summary.d.ts +1 -1
  77. package/dist/components/agent-tools/prompt-studio/prompt-studio.class.d.ts +10 -10
  78. package/dist/components/agent-tools/prompt-studio/prompt-studio.class.js +3 -3
  79. package/dist/components/agent-tools/prompt-studio/prompt-studio.d.ts +1 -1
  80. package/dist/components/agent-tools/result-card/result-card.class.d.ts +1 -1
  81. package/dist/components/agent-tools/result-card/result-card.d.ts +1 -1
  82. package/dist/components/agent-tools/result-card/result-field.class.d.ts +1 -1
  83. package/dist/components/agent-tools/result-card/result-field.d.ts +1 -1
  84. package/dist/components/agent-tools/run-events.d.ts +1 -1
  85. package/dist/components/agent-tools/schema-viewer/schema-viewer.class.d.ts +2 -2
  86. package/dist/components/agent-tools/schema-viewer/schema-viewer.d.ts +1 -1
  87. package/dist/components/agent-tools/span-waterfall/span-waterfall.class.d.ts +3 -3
  88. package/dist/components/agent-tools/span-waterfall/span-waterfall.d.ts +1 -1
  89. package/dist/components/agent-tools/stack-trace/stack-trace-parse.d.ts +4 -4
  90. package/dist/components/agent-tools/stack-trace/stack-trace.class.d.ts +3 -3
  91. package/dist/components/agent-tools/stack-trace/stack-trace.d.ts +1 -1
  92. package/dist/components/agent-tools/subagent-panel/subagent-panel.class.d.ts +2 -3
  93. package/dist/components/agent-tools/subagent-panel/subagent-panel.class.js +2 -2
  94. package/dist/components/agent-tools/subagent-panel/subagent-panel.d.ts +1 -1
  95. package/dist/components/agent-tools/task-list/task-list.class.d.ts +7 -7
  96. package/dist/components/agent-tools/task-list/task-list.d.ts +1 -1
  97. package/dist/components/agent-tools/terminal/terminal.class.d.ts +2 -2
  98. package/dist/components/agent-tools/terminal/terminal.d.ts +1 -1
  99. package/dist/components/agent-tools/test-results/test-results.class.d.ts +9 -9
  100. package/dist/components/agent-tools/test-results/test-results.d.ts +1 -1
  101. package/dist/components/agent-tools/thinking-panel/thinking-panel.class.d.ts +1 -1
  102. package/dist/components/agent-tools/thinking-panel/thinking-panel.d.ts +1 -1
  103. package/dist/components/agent-tools/tool-approval-dialog/tool-approval-dialog.class.d.ts +9 -9
  104. package/dist/components/agent-tools/tool-approval-dialog/tool-approval-dialog.d.ts +1 -1
  105. package/dist/components/agent-tools/tool-call-block/tool-call-block.class.d.ts +8 -8
  106. package/dist/components/agent-tools/tool-call-block/tool-call-block.d.ts +1 -1
  107. package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.d.ts +9 -10
  108. package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.js +1 -5
  109. package/dist/components/agent-tools/tool-call-chip/tool-call-chip.d.ts +1 -1
  110. package/dist/components/agent-tools/tool-param-form/tool-param-form.class.d.ts +7 -7
  111. package/dist/components/agent-tools/tool-param-form/tool-param-form.d.ts +1 -1
  112. package/dist/components/agent-tools/tool-param-form/tool-param-types.d.ts +14 -14
  113. package/dist/components/agent-tools/tool-result-dialog/tool-result-dialog.class.d.ts +7 -7
  114. package/dist/components/agent-tools/tool-result-dialog/tool-result-dialog.d.ts +1 -1
  115. package/dist/components/agent-tools/tool-result-view/registry.d.ts +9 -9
  116. package/dist/components/agent-tools/tool-result-view/tool-result-view.class.d.ts +7 -7
  117. package/dist/components/agent-tools/tool-result-view/tool-result-view.d.ts +1 -1
  118. package/dist/components/agent-tools/tool-select-dialog/tool-select-dialog.class.d.ts +9 -9
  119. package/dist/components/agent-tools/tool-select-dialog/tool-select-dialog.d.ts +1 -1
  120. package/dist/components/agent-tools/tool-timeline/tool-timeline.class.d.ts +7 -7
  121. package/dist/components/agent-tools/tool-timeline/tool-timeline.d.ts +1 -1
  122. package/dist/components/agent-tools/trace-tree/span-shared.d.ts +9 -9
  123. package/dist/components/agent-tools/trace-tree/trace-tree.class.d.ts +10 -9
  124. package/dist/components/agent-tools/trace-tree/trace-tree.class.js +1 -1
  125. package/dist/components/agent-tools/trace-tree/trace-tree.d.ts +1 -1
  126. package/dist/components/charts/chart/bar-chart.d.ts +1 -1
  127. package/dist/components/charts/chart/box-plot.class.d.ts +10 -10
  128. package/dist/components/charts/chart/box-plot.d.ts +1 -1
  129. package/dist/components/charts/chart/bubble-chart.d.ts +1 -1
  130. package/dist/components/charts/chart/chart-chrome.d.ts +2 -2
  131. package/dist/components/charts/chart/chart-colors.d.ts +1 -1
  132. package/dist/components/charts/chart/chart-core-loader.d.ts +2 -2
  133. package/dist/components/charts/chart/chart-feature-loader.d.ts +1 -1
  134. package/dist/components/charts/chart/chart-legend-visibility.d.ts +9 -9
  135. package/dist/components/charts/chart/chart-prepared-data.d.ts +4 -4
  136. package/dist/components/charts/chart/chart.class.d.ts +35 -35
  137. package/dist/components/charts/chart/chart.class.js +4 -4
  138. package/dist/components/charts/chart/chart.d.ts +1 -1
  139. package/dist/components/charts/chart/doughnut-chart.d.ts +1 -1
  140. package/dist/components/charts/chart/histogram-bin.d.ts +1 -1
  141. package/dist/components/charts/chart/histogram.class.d.ts +2 -2
  142. package/dist/components/charts/chart/histogram.d.ts +1 -1
  143. package/dist/components/charts/chart/line-chart.d.ts +1 -1
  144. package/dist/components/charts/chart/lite-chart.class.d.ts +9 -9
  145. package/dist/components/charts/chart/lite-chart.d.ts +1 -1
  146. package/dist/components/charts/chart/pie-chart.d.ts +1 -1
  147. package/dist/components/charts/chart/polar-area-chart.d.ts +1 -1
  148. package/dist/components/charts/chart/radar-chart.d.ts +1 -1
  149. package/dist/components/charts/chart/scatter-chart.d.ts +1 -1
  150. package/dist/components/charts/chart-3d/chart-3d-data.d.ts +50 -0
  151. package/dist/components/charts/chart-3d/chart-3d-data.js +1 -0
  152. package/dist/components/charts/chart-3d/chart-3d-engine.js +1 -0
  153. package/dist/components/charts/chart-3d/chart-3d.class.d.ts +96 -0
  154. package/dist/components/charts/chart-3d/chart-3d.class.js +47 -0
  155. package/dist/components/charts/chart-3d/chart-3d.d.ts +1 -0
  156. package/dist/components/charts/chart-3d/chart-3d.js +1 -0
  157. package/dist/components/charts/chart-3d/chart-3d.styles.js +1 -0
  158. package/dist/components/charts/index.d.ts +1 -1
  159. package/dist/components/charts/index.js +1 -1
  160. package/dist/components/conversation/agent-workspace/agent-workspace.class.d.ts +29 -29
  161. package/dist/components/conversation/agent-workspace/agent-workspace.class.js +4 -5
  162. package/dist/components/conversation/agent-workspace/agent-workspace.d.ts +1 -1
  163. package/dist/components/conversation/audio-visualizer/audio-visualizer.class.d.ts +3 -3
  164. package/dist/components/conversation/audio-visualizer/audio-visualizer.d.ts +1 -1
  165. package/dist/components/conversation/branch-picker/branch-picker.class.d.ts +2 -2
  166. package/dist/components/conversation/branch-picker/branch-picker.d.ts +1 -1
  167. package/dist/components/conversation/catalog-picker-element.d.ts +20 -20
  168. package/dist/components/conversation/chat-composer/chat-composer-status.d.ts +1 -1
  169. package/dist/components/conversation/chat-composer/chat-composer.class.d.ts +10 -10
  170. package/dist/components/conversation/chat-composer/chat-composer.d.ts +1 -1
  171. package/dist/components/conversation/chat-message/chat-message.class.d.ts +5 -5
  172. package/dist/components/conversation/chat-message/chat-message.d.ts +1 -1
  173. package/dist/components/conversation/chat-viewport/chat-viewport.class.d.ts +1 -1
  174. package/dist/components/conversation/chat-viewport/chat-viewport.d.ts +1 -1
  175. package/dist/components/conversation/checkpoint/checkpoint.class.d.ts +4 -4
  176. package/dist/components/conversation/checkpoint/checkpoint.d.ts +1 -1
  177. package/dist/components/conversation/code-block/code-block-base.class.d.ts +3 -3
  178. package/dist/components/conversation/code-block/code-block-base.class.js +1 -1
  179. package/dist/components/conversation/code-block/code-block-core.class.d.ts +6 -6
  180. package/dist/components/conversation/code-block/code-block-core.d.ts +1 -1
  181. package/dist/components/conversation/code-block/code-block-shared.d.ts +12 -12
  182. package/dist/components/conversation/code-block/code-block.class.d.ts +7 -7
  183. package/dist/components/conversation/code-block/code-block.d.ts +1 -1
  184. package/dist/components/conversation/code-block/shiki-oniguruma.d.ts +3 -0
  185. package/dist/components/conversation/code-block/shiki-oniguruma.js +1 -0
  186. package/dist/components/conversation/code-block/shiki-types.d.ts +8 -10
  187. package/dist/components/conversation/code-block/shiki-types.js +1 -1
  188. package/dist/components/conversation/conversation-item/conversation-item.class.d.ts +2 -2
  189. package/dist/components/conversation/conversation-item/conversation-item.d.ts +1 -1
  190. package/dist/components/conversation/generation-metrics/generation-metrics.class.d.ts +1 -1
  191. package/dist/components/conversation/generation-metrics/generation-metrics.class.js +1 -1
  192. package/dist/components/conversation/generation-metrics/generation-metrics.d.ts +1 -1
  193. package/dist/components/conversation/handoff-divider/handoff-divider.d.ts +1 -1
  194. package/dist/components/conversation/markdown/markdown-base.class.d.ts +8 -8
  195. package/dist/components/conversation/markdown/markdown-code-header.d.ts +2 -2
  196. package/dist/components/conversation/markdown/markdown-core.class.d.ts +4 -4
  197. package/dist/components/conversation/markdown/markdown-core.d.ts +1 -1
  198. package/dist/components/conversation/markdown/markdown-fallback-code.d.ts +3 -3
  199. package/dist/components/conversation/markdown/markdown-loader.d.ts +3 -3
  200. package/dist/components/conversation/markdown/markdown-progressive.js +2 -2
  201. package/dist/components/conversation/markdown/markdown-shared.d.ts +24 -24
  202. package/dist/components/conversation/markdown/markdown.class.d.ts +3 -3
  203. package/dist/components/conversation/markdown/markdown.d.ts +1 -1
  204. package/dist/components/conversation/message-actions/message-actions.class.d.ts +2 -2
  205. package/dist/components/conversation/message-actions/message-actions.class.js +1 -1
  206. package/dist/components/conversation/message-actions/message-actions.d.ts +1 -1
  207. package/dist/components/conversation/message-actions/toolbar-actions.d.ts +2 -2
  208. package/dist/components/conversation/message-feedback/message-feedback.class.d.ts +8 -8
  209. package/dist/components/conversation/message-feedback/message-feedback.d.ts +1 -1
  210. package/dist/components/conversation/message-parts/message-parts.class.d.ts +6 -6
  211. package/dist/components/conversation/message-parts/message-parts.class.js +1 -1
  212. package/dist/components/conversation/message-parts/message-parts.d.ts +1 -1
  213. package/dist/components/conversation/model-select/model-select.class.d.ts +9 -9
  214. package/dist/components/conversation/model-select/model-select.class.js +1 -1
  215. package/dist/components/conversation/model-select/model-select.d.ts +1 -1
  216. package/dist/components/conversation/model-settings-panel/model-settings-panel.class.d.ts +4 -4
  217. package/dist/components/conversation/model-settings-panel/model-settings-panel.class.js +1 -1
  218. package/dist/components/conversation/model-settings-panel/model-settings-panel.d.ts +1 -1
  219. package/dist/components/conversation/prompt-input/prompt-input.class.d.ts +16 -16
  220. package/dist/components/conversation/prompt-input/prompt-input.class.js +3 -4
  221. package/dist/components/conversation/prompt-input/prompt-input.d.ts +1 -1
  222. package/dist/components/conversation/prompt-queue/prompt-queue.class.d.ts +4 -4
  223. package/dist/components/conversation/prompt-queue/prompt-queue.d.ts +1 -1
  224. package/dist/components/conversation/push-to-talk/push-to-talk.class.d.ts +3 -3
  225. package/dist/components/conversation/push-to-talk/push-to-talk.class.js +1 -1
  226. package/dist/components/conversation/push-to-talk/push-to-talk.d.ts +1 -1
  227. package/dist/components/conversation/realtime-session/realtime-session.d.ts +1 -1
  228. package/dist/components/conversation/selection-toolbar/selection-toolbar.class.d.ts +1 -1
  229. package/dist/components/conversation/selection-toolbar/selection-toolbar.class.js +1 -1
  230. package/dist/components/conversation/selection-toolbar/selection-toolbar.d.ts +1 -1
  231. package/dist/components/conversation/stream-status/stream-status.class.d.ts +5 -5
  232. package/dist/components/conversation/stream-status/stream-status.d.ts +1 -1
  233. package/dist/components/conversation/streaming-text/markdown-detection.d.ts +1 -1
  234. package/dist/components/conversation/streaming-text/streaming-text-core.class.d.ts +1 -1
  235. package/dist/components/conversation/streaming-text/streaming-text-core.d.ts +1 -1
  236. package/dist/components/conversation/streaming-text/streaming-text.class.d.ts +1 -1
  237. package/dist/components/conversation/streaming-text/streaming-text.d.ts +1 -1
  238. package/dist/components/conversation/suggestion-chips/suggestion-chips.class.d.ts +4 -4
  239. package/dist/components/conversation/suggestion-chips/suggestion-chips.d.ts +1 -1
  240. package/dist/components/conversation/thread-list/thread-list.class.d.ts +15 -15
  241. package/dist/components/conversation/thread-list/thread-list.class.js +1 -1
  242. package/dist/components/conversation/thread-list/thread-list.d.ts +1 -1
  243. package/dist/components/conversation/timestamp.d.ts +2 -2
  244. package/dist/components/conversation/transcript-feed/transcript-feed.class.d.ts +3 -3
  245. package/dist/components/conversation/transcript-feed/transcript-feed.d.ts +1 -1
  246. package/dist/components/conversation/typing-indicator/typing-indicator.class.d.ts +1 -1
  247. package/dist/components/conversation/typing-indicator/typing-indicator.d.ts +1 -1
  248. package/dist/components/conversation/usage-badge/usage-badge.class.d.ts +2 -2
  249. package/dist/components/conversation/usage-badge/usage-badge.d.ts +1 -1
  250. package/dist/components/conversation/voice-picker/voice-picker.class.d.ts +10 -10
  251. package/dist/components/conversation/voice-picker/voice-picker.d.ts +1 -1
  252. package/dist/components/conversation/widget-renderer/default-registry.d.ts +1 -1
  253. package/dist/components/conversation/widget-renderer/registry.d.ts +12 -12
  254. package/dist/components/conversation/widget-renderer/registry.js +1 -1
  255. package/dist/components/conversation/widget-renderer/resolve.d.ts +7 -7
  256. package/dist/components/conversation/widget-renderer/resolve.js +1 -1
  257. package/dist/components/conversation/widget-renderer/widget-renderer.class.d.ts +1 -1
  258. package/dist/components/conversation/widget-renderer/widget-renderer.d.ts +1 -1
  259. package/dist/components/data/calendar/calendar.class.d.ts +4 -2
  260. package/dist/components/data/calendar/calendar.d.ts +1 -1
  261. package/dist/components/data/condition-builder/condition-builder.class.d.ts +11 -11
  262. package/dist/components/data/condition-builder/condition-builder.d.ts +1 -1
  263. package/dist/components/data/context-meter/context-meter.class.d.ts +12 -12
  264. package/dist/components/data/context-meter/context-meter.d.ts +1 -1
  265. package/dist/components/data/data-grid/data-grid-types.d.ts +19 -19
  266. package/dist/components/data/data-grid/data-grid.class.d.ts +58 -58
  267. package/dist/components/data/data-grid/data-grid.class.js +2 -2
  268. package/dist/components/data/data-grid/data-grid.d.ts +1 -1
  269. package/dist/components/data/document-library/document-library.class.d.ts +12 -12
  270. package/dist/components/data/document-library/document-library.d.ts +1 -1
  271. package/dist/components/data/env-list/env-list.class.d.ts +1 -1
  272. package/dist/components/data/env-list/env-list.d.ts +1 -1
  273. package/dist/components/data/file-tree/file-tree.class.d.ts +6 -4
  274. package/dist/components/data/file-tree/file-tree.class.js +2 -2
  275. package/dist/components/data/file-tree/file-tree.d.ts +1 -1
  276. package/dist/components/data/flow-canvas/flow-canvas.class.d.ts +19 -19
  277. package/dist/components/data/flow-canvas/flow-canvas.class.js +2 -2
  278. package/dist/components/data/flow-canvas/flow-canvas.d.ts +1 -1
  279. package/dist/components/data/flow-canvas/flow-source.js +1 -1
  280. package/dist/components/data/flow-canvas/flow-types.d.ts +12 -12
  281. package/dist/components/data/flow-controls/flow-controls.class.d.ts +1 -1
  282. package/dist/components/data/flow-controls/flow-controls.d.ts +1 -1
  283. package/dist/components/data/flow-minimap/flow-minimap.class.d.ts +1 -1
  284. package/dist/components/data/flow-minimap/flow-minimap.d.ts +1 -1
  285. package/dist/components/data/flow-node/flow-node.class.d.ts +11 -12
  286. package/dist/components/data/flow-node/flow-node.class.js +2 -4
  287. package/dist/components/data/flow-node/flow-node.d.ts +1 -1
  288. package/dist/components/data/flow-run-status/flow-run-status.class.d.ts +2 -2
  289. package/dist/components/data/flow-run-status/flow-run-status.d.ts +1 -1
  290. package/dist/components/data/funnel/funnel.class.d.ts +8 -8
  291. package/dist/components/data/funnel/funnel.d.ts +1 -1
  292. package/dist/components/data/gauge/gauge.class.d.ts +2 -2
  293. package/dist/components/data/gauge/gauge.d.ts +1 -1
  294. package/dist/components/data/graph-query-builder/graph-query-builder.class.d.ts +19 -19
  295. package/dist/components/data/graph-query-builder/graph-query-builder.d.ts +1 -1
  296. package/dist/components/data/heatmap/calendar-grid.d.ts +5 -5
  297. package/dist/components/data/heatmap/heatmap-limits.d.ts +5 -5
  298. package/dist/components/data/heatmap/heatmap-matrix-source.d.ts +2 -2
  299. package/dist/components/data/heatmap/heatmap-scale.d.ts +3 -3
  300. package/dist/components/data/heatmap/heatmap.class.d.ts +20 -20
  301. package/dist/components/data/heatmap/heatmap.class.js +2 -2
  302. package/dist/components/data/heatmap/heatmap.d.ts +1 -1
  303. package/dist/components/data/pagination/pagination.class.d.ts +14 -14
  304. package/dist/components/data/pagination/pagination.d.ts +1 -1
  305. package/dist/components/data/sequence-strip/sequence-strip-source.d.ts +2 -2
  306. package/dist/components/data/sequence-strip/sequence-strip.class.d.ts +2 -2
  307. package/dist/components/data/sequence-strip/sequence-strip.d.ts +1 -1
  308. package/dist/components/data/sparkline/sparkline.class.d.ts +8 -9
  309. package/dist/components/data/sparkline/sparkline.class.js +1 -1
  310. package/dist/components/data/sparkline/sparkline.d.ts +1 -1
  311. package/dist/components/data/stat/stat.class.d.ts +5 -5
  312. package/dist/components/data/stat/stat.d.ts +1 -1
  313. package/dist/components/data/table/table.class.d.ts +12 -12
  314. package/dist/components/data/table/table.class.js +1 -1
  315. package/dist/components/data/table/table.d.ts +1 -1
  316. package/dist/components/data/timeline/timeline-item.d.ts +1 -1
  317. package/dist/components/data/timeline/timeline.class.d.ts +3 -3
  318. package/dist/components/data/timeline/timeline.d.ts +1 -1
  319. package/dist/components/data/tree/tree-item.class.d.ts +9 -9
  320. package/dist/components/data/tree/tree-item.d.ts +1 -1
  321. package/dist/components/data/tree/tree-types.d.ts +7 -7
  322. package/dist/components/data/tree/tree.class.d.ts +4 -4
  323. package/dist/components/data/tree/tree.d.ts +1 -1
  324. package/dist/components/data/word-cloud/word-cloud-layout.d.ts +14 -14
  325. package/dist/components/data/word-cloud/word-cloud.class.d.ts +4 -4
  326. package/dist/components/data/word-cloud/word-cloud.d.ts +1 -1
  327. package/dist/components/forms/button/button.class.d.ts +12 -12
  328. package/dist/components/forms/button/button.d.ts +1 -1
  329. package/dist/components/forms/catalog-picker-base.d.ts +24 -24
  330. package/dist/components/forms/checkbox/checkbox.class.d.ts +8 -8
  331. package/dist/components/forms/checkbox/checkbox.d.ts +1 -1
  332. package/dist/components/forms/checkbox-group/checkbox-group.class.d.ts +12 -12
  333. package/dist/components/forms/checkbox-group/checkbox-group.d.ts +1 -1
  334. package/dist/components/forms/code-editor/code-editor.class.d.ts +4 -4
  335. package/dist/components/forms/code-editor/code-editor.d.ts +1 -1
  336. package/dist/components/forms/color-picker/color-core.d.ts +11 -11
  337. package/dist/components/forms/color-picker/color-core.js +1 -1
  338. package/dist/components/forms/color-picker/color-picker.class.d.ts +13 -13
  339. package/dist/components/forms/color-picker/color-picker.d.ts +1 -1
  340. package/dist/components/forms/combobox/combobox.class.d.ts +27 -27
  341. package/dist/components/forms/combobox/combobox.d.ts +1 -1
  342. package/dist/components/forms/combobox/option.class.d.ts +8 -8
  343. package/dist/components/forms/combobox/option.d.ts +1 -1
  344. package/dist/components/forms/country-picker/country-picker.class.d.ts +2 -2
  345. package/dist/components/forms/currency-picker/currency-catalog.d.ts +5 -5
  346. package/dist/components/forms/currency-picker/currency-picker.class.d.ts +1 -1
  347. package/dist/components/forms/currency-picker/currency-types.d.ts +1 -1
  348. package/dist/components/forms/date-picker/calendar-core.d.ts +10 -10
  349. package/dist/components/forms/date-picker/calendar-core.js +1 -1
  350. package/dist/components/forms/date-picker/date-input.class.d.ts +25 -25
  351. package/dist/components/forms/date-picker/date-input.d.ts +1 -1
  352. package/dist/components/forms/date-picker/date-picker-disabled-dates.d.ts +1 -1
  353. package/dist/components/forms/date-picker/date-picker.class.d.ts +13 -13
  354. package/dist/components/forms/date-picker/date-picker.d.ts +1 -1
  355. package/dist/components/forms/emoji-picker/emoji-picker.class.d.ts +8 -8
  356. package/dist/components/forms/emoji-picker/emoji-picker.d.ts +1 -1
  357. package/dist/components/forms/emoji-picker/emoji-types.d.ts +1 -1
  358. package/dist/components/forms/form-validator.d.ts +3 -3
  359. package/dist/components/forms/icon-button/icon-button.class.d.ts +8 -8
  360. package/dist/components/forms/icon-button/icon-button.d.ts +1 -1
  361. package/dist/components/forms/input/input-shared.d.ts +14 -14
  362. package/dist/components/forms/input/input.class.d.ts +1 -1
  363. package/dist/components/forms/input/input.d.ts +1 -1
  364. package/dist/components/forms/input/native-time-input.class.d.ts +3 -3
  365. package/dist/components/forms/input/native-time-input.d.ts +1 -1
  366. package/dist/components/forms/input/number-input.class.d.ts +6 -6
  367. package/dist/components/forms/input/number-input.d.ts +1 -1
  368. package/dist/components/forms/input/time-input-shared.d.ts +7 -7
  369. package/dist/components/forms/input/time-input.class.d.ts +9 -9
  370. package/dist/components/forms/input/time-input.class.js +1 -1
  371. package/dist/components/forms/input/time-input.d.ts +1 -1
  372. package/dist/components/forms/locale-picker/locale-picker.class.d.ts +23 -18
  373. package/dist/components/forms/locale-picker/locale-picker.class.js +1 -1
  374. package/dist/components/forms/locale-picker/locale-picker.d.ts +1 -1
  375. package/dist/components/forms/otp-input/otp-input.class.d.ts +24 -24
  376. package/dist/components/forms/otp-input/otp-input.class.js +1 -1
  377. package/dist/components/forms/otp-input/otp-input.d.ts +1 -1
  378. package/dist/components/forms/phone-input/phone-input.class.d.ts +19 -19
  379. package/dist/components/forms/phone-input/phone-input.d.ts +1 -1
  380. package/dist/components/forms/phone-input/phone-number-adapter.d.ts +10 -10
  381. package/dist/components/forms/radio/radio-button.d.ts +1 -1
  382. package/dist/components/forms/radio/radio-group.class.d.ts +9 -9
  383. package/dist/components/forms/radio/radio-group.d.ts +1 -1
  384. package/dist/components/forms/radio/radio.class.d.ts +8 -8
  385. package/dist/components/forms/radio/radio.d.ts +1 -1
  386. package/dist/components/forms/rubric-form/rubric-form.class.d.ts +10 -10
  387. package/dist/components/forms/rubric-form/rubric-form.d.ts +1 -1
  388. package/dist/components/forms/select/select.class.d.ts +15 -15
  389. package/dist/components/forms/select/select.class.js +1 -1
  390. package/dist/components/forms/select/select.d.ts +1 -1
  391. package/dist/components/forms/signature-pad/signature-pad-limits.d.ts +2 -2
  392. package/dist/components/forms/signature-pad/signature-pad.class.d.ts +13 -12
  393. package/dist/components/forms/signature-pad/signature-pad.class.js +1 -1
  394. package/dist/components/forms/slider/slider.class.d.ts +21 -21
  395. package/dist/components/forms/slider/slider.class.js +1 -1
  396. package/dist/components/forms/slider/slider.d.ts +1 -1
  397. package/dist/components/forms/swatch-picker/swatch-picker.class.d.ts +8 -7
  398. package/dist/components/forms/swatch-picker/swatch-picker.class.js +1 -1
  399. package/dist/components/forms/swatch-picker/swatch-picker.d.ts +1 -1
  400. package/dist/components/forms/switch/switch.class.d.ts +6 -6
  401. package/dist/components/forms/switch/switch.d.ts +1 -1
  402. package/dist/components/forms/textarea/textarea.class.d.ts +10 -10
  403. package/dist/components/forms/textarea/textarea.d.ts +1 -1
  404. package/dist/components/forms/time-range/time-range.class.d.ts +4 -4
  405. package/dist/components/forms/time-range/time-range.d.ts +1 -1
  406. package/dist/components/forms/time-zone-picker/time-zone-picker.class.d.ts +1 -1
  407. package/dist/components/forms/toggle/toggle.class.d.ts +10 -10
  408. package/dist/components/forms/toggle/toggle.d.ts +1 -1
  409. package/dist/components/forms/toggle-group/toggle-group.class.d.ts +11 -11
  410. package/dist/components/forms/toggle-group/toggle-group.d.ts +1 -1
  411. package/dist/components/forms/token-input/token-input.class.d.ts +12 -12
  412. package/dist/components/forms/token-input/token-input.d.ts +1 -1
  413. package/dist/components/forms/unit-picker/unit-picker.class.d.ts +1 -1
  414. package/dist/components/layout/app-rail/app-rail-item.class.d.ts +5 -7
  415. package/dist/components/layout/app-rail/app-rail-item.class.js +1 -1
  416. package/dist/components/layout/app-rail/app-rail-item.d.ts +1 -1
  417. package/dist/components/layout/app-rail/app-rail-mode.d.ts +4 -4
  418. package/dist/components/layout/app-rail/app-rail.class.d.ts +7 -7
  419. package/dist/components/layout/app-rail/app-rail.d.ts +1 -1
  420. package/dist/components/layout/app-rail-group/app-rail-group.class.d.ts +3 -3
  421. package/dist/components/layout/app-rail-group/app-rail-group.d.ts +1 -1
  422. package/dist/components/layout/breadcrumb/breadcrumb-item.class.d.ts +2 -2
  423. package/dist/components/layout/breadcrumb/breadcrumb-item.d.ts +1 -1
  424. package/dist/components/layout/breadcrumb/breadcrumb.d.ts +1 -1
  425. package/dist/components/layout/button-group/button-group.class.d.ts +2 -2
  426. package/dist/components/layout/button-group/button-group.d.ts +1 -1
  427. package/dist/components/layout/card/card.class.d.ts +1 -1
  428. package/dist/components/layout/card/card.d.ts +1 -1
  429. package/dist/components/layout/carousel/carousel-item.d.ts +1 -1
  430. package/dist/components/layout/carousel/carousel.class.d.ts +5 -5
  431. package/dist/components/layout/command-palette/command-palette.class.d.ts +8 -8
  432. package/dist/components/layout/command-palette/command-palette.d.ts +1 -1
  433. package/dist/components/layout/control-group/control-group.d.ts +1 -1
  434. package/dist/components/layout/dashboard-grid/dashboard-grid.class.d.ts +3 -3
  435. package/dist/components/layout/dashboard-grid/dashboard-grid.d.ts +1 -1
  436. package/dist/components/layout/dashboard-grid/layout-types.d.ts +12 -12
  437. package/dist/components/layout/details/accordion-item.class.d.ts +11 -12
  438. package/dist/components/layout/details/accordion-item.class.js +1 -1
  439. package/dist/components/layout/details/accordion-item.d.ts +1 -1
  440. package/dist/components/layout/details/accordion-types.d.ts +2 -2
  441. package/dist/components/layout/details/accordion.class.d.ts +5 -5
  442. package/dist/components/layout/details/accordion.d.ts +1 -1
  443. package/dist/components/layout/details/details.class.d.ts +9 -9
  444. package/dist/components/layout/details/details.d.ts +1 -1
  445. package/dist/components/layout/dock-panel/dock-panel.class.d.ts +8 -15
  446. package/dist/components/layout/dock-panel/dock-panel.class.js +1 -1
  447. package/dist/components/layout/dock-panel/dock-panel.d.ts +1 -1
  448. package/dist/components/layout/drilldown-panel/drilldown-panel.class.d.ts +8 -8
  449. package/dist/components/layout/drilldown-panel/drilldown-panel.class.js +1 -1
  450. package/dist/components/layout/drilldown-panel/drilldown-panel.d.ts +1 -1
  451. package/dist/components/layout/filter-bar/filter-bar.class.d.ts +12 -12
  452. package/dist/components/layout/filter-bar/filter-bar.d.ts +1 -1
  453. package/dist/components/layout/menu/dropdown-item.class.d.ts +1 -1
  454. package/dist/components/layout/menu/dropdown-item.d.ts +1 -1
  455. package/dist/components/layout/menu/menu-item.class.d.ts +6 -6
  456. package/dist/components/layout/menu/menu-item.d.ts +1 -1
  457. package/dist/components/layout/menu/menu-label.d.ts +1 -1
  458. package/dist/components/layout/menu/menu.class.js +1 -1
  459. package/dist/components/layout/menu/menu.d.ts +1 -1
  460. package/dist/components/layout/menubar/menubar-item.class.d.ts +2 -2
  461. package/dist/components/layout/menubar/menubar-item.d.ts +1 -1
  462. package/dist/components/layout/menubar/menubar.class.d.ts +3 -3
  463. package/dist/components/layout/menubar/menubar.d.ts +1 -1
  464. package/dist/components/layout/multi-split/multi-split.class.d.ts +5 -5
  465. package/dist/components/layout/multi-split/multi-split.class.js +1 -1
  466. package/dist/components/layout/multi-split/multi-split.d.ts +1 -1
  467. package/dist/components/layout/navigation-menu/navigation-menu.class.d.ts +10 -14
  468. package/dist/components/layout/navigation-menu/navigation-menu.class.js +1 -1
  469. package/dist/components/layout/navigation-menu/navigation-menu.d.ts +1 -1
  470. package/dist/components/layout/navigation-menu-item/navigation-menu-item.class.d.ts +5 -5
  471. package/dist/components/layout/navigation-menu-item/navigation-menu-item.d.ts +1 -1
  472. package/dist/components/layout/page/page.class.d.ts +9 -9
  473. package/dist/components/layout/page/page.d.ts +1 -1
  474. package/dist/components/layout/reorder-list/reorder-item.class.d.ts +2 -2
  475. package/dist/components/layout/reorder-list/reorder-item.d.ts +1 -1
  476. package/dist/components/layout/reorder-list/reorder-list.d.ts +1 -1
  477. package/dist/components/layout/responsive-panel/responsive-panel-mode.d.ts +3 -3
  478. package/dist/components/layout/responsive-panel/responsive-panel.class.d.ts +4 -4
  479. package/dist/components/layout/responsive-panel/responsive-panel.d.ts +1 -1
  480. package/dist/components/layout/scroller/scroller.class.d.ts +2 -2
  481. package/dist/components/layout/scroller/scroller.d.ts +1 -1
  482. package/dist/components/layout/segmented/segmented.class.d.ts +2 -2
  483. package/dist/components/layout/segmented/segmented.d.ts +1 -1
  484. package/dist/components/layout/split-panel/split-panel-snap.d.ts +4 -4
  485. package/dist/components/layout/split-panel/split-panel.class.d.ts +11 -11
  486. package/dist/components/layout/split-panel/split-panel.d.ts +1 -1
  487. package/dist/components/layout/stepper/stepper.class.d.ts +4 -4
  488. package/dist/components/layout/stepper/stepper.d.ts +1 -1
  489. package/dist/components/layout/tab-group/tab-group.class.d.ts +4 -4
  490. package/dist/components/layout/tab-group/tab-group.class.js +1 -1
  491. package/dist/components/layout/tab-group/tab-group.d.ts +1 -1
  492. package/dist/components/layout/tab-group/tab-panel.class.d.ts +1 -1
  493. package/dist/components/layout/tab-group/tab-panel.d.ts +1 -1
  494. package/dist/components/layout/tab-group/tab.class.d.ts +2 -2
  495. package/dist/components/layout/tab-group/tab.d.ts +1 -1
  496. package/dist/components/layout/virtual-list/virtual-list-attributes.d.ts +2 -2
  497. package/dist/components/layout/virtual-list/virtual-list-limits.d.ts +1 -1
  498. package/dist/components/layout/virtual-list/virtual-list.class.d.ts +15 -14
  499. package/dist/components/layout/virtual-list/virtual-list.class.js +1 -1
  500. package/dist/components/layout/virtual-list/virtual-list.d.ts +1 -1
  501. package/dist/components/layout/widget/widget.class.d.ts +8 -17
  502. package/dist/components/layout/widget/widget.class.js +2 -2
  503. package/dist/components/layout/widget/widget.d.ts +1 -1
  504. package/dist/components/lr-chart-3d.js +1 -0
  505. package/dist/components/lr-map-anchor.js +1 -0
  506. package/dist/components/lr-model-viewer.js +1 -0
  507. package/dist/components/media/animated-image/animated-image.class.d.ts +4 -4
  508. package/dist/components/media/animated-image/animated-image.d.ts +1 -1
  509. package/dist/components/media/animation/animation-catalog.d.ts +3 -3
  510. package/dist/components/media/animation/animation.class.d.ts +5 -5
  511. package/dist/components/media/animation/animation.d.ts +1 -1
  512. package/dist/components/media/attachment-chip/attachment-chip.class.d.ts +5 -5
  513. package/dist/components/media/attachment-chip/attachment-chip.d.ts +1 -1
  514. package/dist/components/media/attachment-chip/file-size.d.ts +2 -2
  515. package/dist/components/media/attachment-trigger/attachment-trigger.class.d.ts +1 -1
  516. package/dist/components/media/attachment-trigger/attachment-trigger.d.ts +1 -1
  517. package/dist/components/media/av-player/av-cue-source.d.ts +3 -3
  518. package/dist/components/media/av-player/av-metadata.d.ts +1 -13
  519. package/dist/components/media/av-player/av-metadata.js +1 -1
  520. package/dist/components/media/av-player/av-player.class.d.ts +10 -10
  521. package/dist/components/media/av-player/av-player.class.js +1 -1
  522. package/dist/components/media/av-player/av-player.d.ts +1 -1
  523. package/dist/components/media/avatar/avatar.d.ts +1 -1
  524. package/dist/components/media/avatar-group/avatar-group.class.d.ts +2 -2
  525. package/dist/components/media/avatar-group/avatar-group.d.ts +1 -1
  526. package/dist/components/media/drop-zone/drop-zone.class.d.ts +3 -3
  527. package/dist/components/media/drop-zone/drop-zone.d.ts +1 -1
  528. package/dist/components/media/file-icon/file-icon.class.d.ts +5 -5
  529. package/dist/components/media/file-icon/file-icon.d.ts +1 -1
  530. package/dist/components/media/file-icon/file-type-metadata.d.ts +3 -3
  531. package/dist/components/media/file-input/file-input.class.d.ts +26 -29
  532. package/dist/components/media/file-input/file-input.class.js +3 -3
  533. package/dist/components/media/file-input/file-input.d.ts +1 -1
  534. package/dist/components/media/file-input/file-input.styles.js +1 -1
  535. package/dist/components/media/file-input/file-intake.d.ts +6 -6
  536. package/dist/components/media/flag/flag-url-resolver.d.ts +1 -1
  537. package/dist/components/media/flag/flag.class.d.ts +4 -4
  538. package/dist/components/media/flag/flag.d.ts +1 -1
  539. package/dist/components/media/image-comparer/image-comparer.class.d.ts +3 -3
  540. package/dist/components/media/image-viewer/image-viewer-limits.d.ts +1 -1
  541. package/dist/components/media/image-viewer/image-viewer-panorama.d.ts +5 -0
  542. package/dist/components/media/image-viewer/image-viewer-panorama.js +8 -0
  543. package/dist/components/media/image-viewer/image-viewer-panorama.styles.js +1 -0
  544. package/dist/components/media/image-viewer/image-viewer.class.d.ts +37 -13
  545. package/dist/components/media/image-viewer/image-viewer.class.js +8 -5
  546. package/dist/components/media/image-viewer/image-viewer.d.ts +1 -1
  547. package/dist/components/media/image-viewer/image-viewer.styles.js +1 -1
  548. package/dist/components/media/index.d.ts +1 -1
  549. package/dist/components/media/index.js +1 -1
  550. package/dist/components/media/lightbox/lightbox-types.d.ts +2 -2
  551. package/dist/components/media/lightbox/lightbox.class.d.ts +9 -9
  552. package/dist/components/media/lightbox/lightbox.d.ts +1 -1
  553. package/dist/components/media/map/map-anchor-controller.js +1 -0
  554. package/dist/components/media/map/map-anchor-options.d.ts +14 -0
  555. package/dist/components/media/map/map-anchor-options.js +1 -0
  556. package/dist/components/media/map/map-anchor-seam.js +1 -0
  557. package/dist/components/media/map/map-anchor.class.d.ts +79 -0
  558. package/dist/components/media/map/map-anchor.class.js +3 -0
  559. package/dist/components/media/map/map-anchor.d.ts +1 -0
  560. package/dist/components/media/map/map-anchor.js +1 -0
  561. package/dist/components/media/map/map-anchor.styles.js +1 -0
  562. package/dist/components/media/map/map-basemap-order.js +1 -0
  563. package/dist/components/media/map/map-camera.d.ts +34 -0
  564. package/dist/components/media/map/map-camera.js +1 -0
  565. package/dist/components/media/map/map-construction-scheduler.d.ts +13 -0
  566. package/dist/components/media/map/map-construction-scheduler.js +1 -0
  567. package/dist/components/media/map/map-control-options.d.ts +39 -0
  568. package/dist/components/media/map/map-control-options.js +1 -0
  569. package/dist/components/media/map/map-controls-lifecycle.js +1 -0
  570. package/dist/components/media/map/map-cursor.js +1 -0
  571. package/dist/components/media/map/map-data-layer-model.d.ts +40 -0
  572. package/dist/components/media/map/map-data-layer-model.js +1 -0
  573. package/dist/components/media/map/map-drawing-controller.js +1 -0
  574. package/dist/components/media/map/map-drawing-gesture.js +1 -0
  575. package/dist/components/media/map/map-drawing-pan.js +1 -0
  576. package/dist/components/media/map/map-drawing-pointer.js +1 -0
  577. package/dist/components/media/map/map-drawing.d.ts +29 -0
  578. package/dist/components/media/map/map-drawing.js +1 -0
  579. package/dist/components/media/map/map-empty-style.d.ts +8 -0
  580. package/dist/components/media/map/map-empty-style.js +1 -0
  581. package/dist/components/media/map/map-engine-events.js +1 -0
  582. package/dist/components/media/map/map-export-attribution.js +1 -0
  583. package/dist/components/media/map/map-external-source-effects.js +1 -0
  584. package/dist/components/media/map/map-feature-loader-core.js +1 -0
  585. package/dist/components/media/map/map-feature-loader.js +1 -0
  586. package/dist/components/media/map/map-feature-state-router.d.ts +16 -0
  587. package/dist/components/media/map/map-feature-state-router.js +1 -0
  588. package/dist/components/media/map/map-feature-state-routes.js +1 -0
  589. package/dist/components/media/map/map-feature-state.d.ts +16 -0
  590. package/dist/components/media/map/map-feature-state.js +1 -0
  591. package/dist/components/media/map/map-geojson-diff.d.ts +4 -4
  592. package/dist/components/media/map/map-hash-option.js +1 -0
  593. package/dist/components/media/map/map-hash-owner.js +1 -0
  594. package/dist/components/media/map/map-hash.js +1 -0
  595. package/dist/components/media/map/map-hit-test.d.ts +17 -0
  596. package/dist/components/media/map/map-hit-test.js +1 -0
  597. package/dist/components/media/map/map-image-admission.d.ts +7 -0
  598. package/dist/components/media/map/map-image-admission.js +1 -0
  599. package/dist/components/media/map/map-image-export-controller.js +1 -0
  600. package/dist/components/media/map/map-image-export-error.d.ts +3 -0
  601. package/dist/components/media/map/map-image-export-error.js +1 -0
  602. package/dist/components/media/map/map-image-export.d.ts +15 -0
  603. package/dist/components/media/map/map-image-export.js +5 -0
  604. package/dist/components/media/map/map-image-limits.d.ts +4 -0
  605. package/dist/components/media/map/map-image-limits.js +1 -0
  606. package/dist/components/media/map/map-image-metadata.js +3 -0
  607. package/dist/components/media/map/map-image-provider.d.ts +33 -0
  608. package/dist/components/media/map/map-image-provider.js +1 -0
  609. package/dist/components/media/map/map-images.d.ts +9 -0
  610. package/dist/components/media/map/map-images.js +1 -0
  611. package/dist/components/media/map/map-interaction-options.d.ts +26 -0
  612. package/dist/components/media/map/map-interaction-options.js +1 -0
  613. package/dist/components/media/map/map-layer-order.js +1 -0
  614. package/dist/components/media/map/map-loader.d.ts +47 -17
  615. package/dist/components/media/map/map-loader.js +1 -1
  616. package/dist/components/media/map/map-local-image-url.js +1 -0
  617. package/dist/components/media/map/map-local-image.js +1 -0
  618. package/dist/components/media/map/map-overlay-admission.d.ts +13 -0
  619. package/dist/components/media/map/map-overlay-admission.js +1 -0
  620. package/dist/components/media/map/map-owned-feature-input.js +1 -0
  621. package/dist/components/media/map/map-owned-features.js +1 -0
  622. package/dist/components/media/map/map-owned-resources.js +1 -0
  623. package/dist/components/media/map/map-paint-batch.js +1 -0
  624. package/dist/components/media/map/map-readers.js +1 -0
  625. package/dist/components/media/map/map-readiness.js +1 -0
  626. package/dist/components/media/map/map-resource-feature-loaders.js +1 -0
  627. package/dist/components/media/map/map-source-updates.js +1 -0
  628. package/dist/components/media/map/map-style-input.js +1 -0
  629. package/dist/components/media/map/map-style-lifecycle.js +1 -0
  630. package/dist/components/media/map/map-style-override-admission.d.ts +13 -0
  631. package/dist/components/media/map/map-style-override-admission.js +1 -0
  632. package/dist/components/media/map/map-style-overrides.js +1 -0
  633. package/dist/components/media/map/map-style-value.d.ts +3 -0
  634. package/dist/components/media/map/map-style-value.js +1 -0
  635. package/dist/components/media/map/map-vector-style.d.ts +10 -0
  636. package/dist/components/media/map/map-vector-style.js +1 -0
  637. package/dist/components/media/map/map.class.d.ts +642 -117
  638. package/dist/components/media/map/map.class.js +59 -11
  639. package/dist/components/media/map/map.d.ts +1 -1
  640. package/dist/components/media/map/map.styles.js +1 -1
  641. package/dist/components/media/media-card/media-card.class.d.ts +3 -3
  642. package/dist/components/media/media-card/media-card.d.ts +1 -1
  643. package/dist/components/media/pan-zoom/pan-zoom.class.d.ts +5 -5
  644. package/dist/components/media/qr-code/qr-code.class.d.ts +7 -9
  645. package/dist/components/media/qr-code/qr-code.class.js +1 -1
  646. package/dist/components/media/qr-code/qr-code.d.ts +1 -1
  647. package/dist/components/media/qr-code/qr-code.styles.js +1 -1
  648. package/dist/components/media/sequence-playback/sequence-playback.class.d.ts +13 -13
  649. package/dist/components/media/sequence-playback/sequence-playback.d.ts +1 -1
  650. package/dist/components/media/video/video.class.d.ts +56 -35
  651. package/dist/components/media/video/video.class.js +11 -3
  652. package/dist/components/media/video/video.d.ts +1 -1
  653. package/dist/components/media/video/video.styles.js +1 -1
  654. package/dist/components/media/video-playlist/video-playlist.class.d.ts +8 -9
  655. package/dist/components/media/video-playlist/video-playlist.class.js +1 -1
  656. package/dist/components/media/video-playlist/video-playlist.d.ts +1 -1
  657. package/dist/components/media/zoomable-frame/zoomable-frame.class.d.ts +15 -15
  658. package/dist/components/overlays/alert/alert.class.d.ts +6 -6
  659. package/dist/components/overlays/alert/alert.d.ts +1 -1
  660. package/dist/components/overlays/badge/badge.class.d.ts +3 -3
  661. package/dist/components/overlays/badge/badge.d.ts +1 -1
  662. package/dist/components/overlays/badge/tag.class.d.ts +5 -5
  663. package/dist/components/overlays/badge/tag.d.ts +1 -1
  664. package/dist/components/overlays/callout/callout.class.d.ts +4 -4
  665. package/dist/components/overlays/callout/callout.d.ts +1 -1
  666. package/dist/components/overlays/chip/chip-group.class.d.ts +1 -1
  667. package/dist/components/overlays/chip/chip-group.class.js +1 -1
  668. package/dist/components/overlays/chip/chip-group.d.ts +1 -1
  669. package/dist/components/overlays/chip/chip.class.d.ts +6 -6
  670. package/dist/components/overlays/chip/chip.d.ts +1 -1
  671. package/dist/components/overlays/context-menu/context-menu.class.d.ts +6 -6
  672. package/dist/components/overlays/context-menu/context-menu.d.ts +1 -1
  673. package/dist/components/overlays/dialog/confirm.d.ts +5 -5
  674. package/dist/components/overlays/dialog/confirm.js +1 -1
  675. package/dist/components/overlays/dialog/dialog.class.d.ts +8 -8
  676. package/dist/components/overlays/dialog/dialog.class.js +1 -1
  677. package/dist/components/overlays/dialog/dialog.d.ts +1 -1
  678. package/dist/components/overlays/drawer/drawer.class.d.ts +1 -1
  679. package/dist/components/overlays/drawer/drawer.d.ts +1 -1
  680. package/dist/components/overlays/empty/empty.class.d.ts +2 -2
  681. package/dist/components/overlays/empty/empty.d.ts +1 -1
  682. package/dist/components/overlays/kbd/kbd.class.d.ts +3 -3
  683. package/dist/components/overlays/kbd/kbd.d.ts +1 -1
  684. package/dist/components/overlays/overlay/dropdown.class.d.ts +10 -10
  685. package/dist/components/overlays/overlay/dropdown.d.ts +1 -1
  686. package/dist/components/overlays/overlay/overlay-arrow.d.ts +5 -5
  687. package/dist/components/overlays/overlay/overlay-shared.d.ts +6 -6
  688. package/dist/components/overlays/overlay/popover.class.d.ts +15 -15
  689. package/dist/components/overlays/overlay/popover.class.js +2 -1
  690. package/dist/components/overlays/overlay/popover.d.ts +1 -1
  691. package/dist/components/overlays/overlay/tooltip.class.d.ts +5 -5
  692. package/dist/components/overlays/overlay/tooltip.class.js +1 -1
  693. package/dist/components/overlays/overlay/tooltip.d.ts +1 -1
  694. package/dist/components/overlays/popup/popup.class.d.ts +20 -20
  695. package/dist/components/overlays/popup/popup.d.ts +1 -1
  696. package/dist/components/overlays/progress/progress-bar.class.d.ts +1 -1
  697. package/dist/components/overlays/progress/progress-bar.d.ts +1 -1
  698. package/dist/components/overlays/progress/progress-base.d.ts +6 -6
  699. package/dist/components/overlays/progress/progress-ring.class.d.ts +2 -2
  700. package/dist/components/overlays/progress/progress-ring.d.ts +1 -1
  701. package/dist/components/overlays/rating/rating.class.d.ts +10 -10
  702. package/dist/components/overlays/rating/rating.d.ts +1 -1
  703. package/dist/components/overlays/skeleton/skeleton.class.d.ts +1 -1
  704. package/dist/components/overlays/skeleton/skeleton.d.ts +1 -1
  705. package/dist/components/overlays/spinner/spinner.d.ts +1 -1
  706. package/dist/components/overlays/toast/toast-item.class.d.ts +6 -6
  707. package/dist/components/overlays/toast/toast-item.d.ts +1 -1
  708. package/dist/components/overlays/toast/toast.class.d.ts +7 -7
  709. package/dist/components/overlays/toast/toast.d.ts +1 -1
  710. package/dist/components/overlays/toast/toaster.d.ts +2 -2
  711. package/dist/components/retrieval/chunk-inspector/chunk-inspector.class.d.ts +15 -18
  712. package/dist/components/retrieval/chunk-inspector/chunk-inspector.class.js +2 -2
  713. package/dist/components/retrieval/chunk-inspector/chunk-inspector.d.ts +1 -1
  714. package/dist/components/retrieval/citation-badge/citation-badge.class.d.ts +1 -1
  715. package/dist/components/retrieval/citation-badge/citation-badge.d.ts +1 -1
  716. package/dist/components/retrieval/claim-evidence/claim-evidence.class.d.ts +5 -5
  717. package/dist/components/retrieval/claim-evidence/claim-evidence.d.ts +1 -1
  718. package/dist/components/retrieval/community-card/community-card.class.d.ts +5 -8
  719. package/dist/components/retrieval/community-card/community-card.class.js +1 -1
  720. package/dist/components/retrieval/community-card/community-card.d.ts +1 -1
  721. package/dist/components/retrieval/embedding-explorer/embedding-explorer-data.d.ts +12 -0
  722. package/dist/components/retrieval/embedding-explorer/embedding-explorer-data.js +1 -0
  723. package/dist/components/retrieval/embedding-explorer/embedding-explorer-engine.js +1 -0
  724. package/dist/components/retrieval/embedding-explorer/embedding-explorer.class.d.ts +29 -10
  725. package/dist/components/retrieval/embedding-explorer/embedding-explorer.class.js +35 -4
  726. package/dist/components/retrieval/embedding-explorer/embedding-explorer.d.ts +1 -1
  727. package/dist/components/retrieval/embedding-explorer/embedding-explorer.styles.js +1 -1
  728. package/dist/components/retrieval/entity-card/entity-card.class.d.ts +7 -7
  729. package/dist/components/retrieval/entity-card/entity-card.d.ts +1 -1
  730. package/dist/components/retrieval/entity-chip/entity-chip.class.d.ts +2 -2
  731. package/dist/components/retrieval/entity-chip/entity-chip.d.ts +1 -1
  732. package/dist/components/retrieval/entity-dossier/entity-dossier.class.d.ts +13 -19
  733. package/dist/components/retrieval/entity-dossier/entity-dossier.d.ts +1 -1
  734. package/dist/components/retrieval/graph/graph-builtin-3d-engine.js +1 -0
  735. package/dist/components/retrieval/graph/graph-engine-adapter.js +1 -0
  736. package/dist/components/retrieval/graph/graph-engine-columns.js +1 -0
  737. package/dist/components/retrieval/graph/graph-loader.d.ts +1 -1
  738. package/dist/components/retrieval/graph/graph-model.d.ts +16 -16
  739. package/dist/components/retrieval/graph/graph-model.js +1 -1
  740. package/dist/components/retrieval/graph/graph-spatial-controller.js +13 -8
  741. package/dist/components/retrieval/graph/graph-webgl-engine.js +1 -0
  742. package/dist/components/retrieval/graph/graph.class.d.ts +38 -25
  743. package/dist/components/retrieval/graph/graph.class.js +4 -4
  744. package/dist/components/retrieval/graph/graph.d.ts +1 -1
  745. package/dist/components/retrieval/graph/graph.styles.js +1 -1
  746. package/dist/components/retrieval/graph-legend/graph-legend.class.d.ts +4 -4
  747. package/dist/components/retrieval/graph-legend/graph-legend.d.ts +1 -1
  748. package/dist/components/retrieval/grounding-summary/grounding-summary.class.d.ts +6 -6
  749. package/dist/components/retrieval/grounding-summary/grounding-summary.d.ts +1 -1
  750. package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.d.ts +10 -10
  751. package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.js +2 -2
  752. package/dist/components/retrieval/ingestion-queue/ingestion-queue.d.ts +1 -1
  753. package/dist/components/retrieval/knowledge-base/knowledge-base.class.d.ts +16 -16
  754. package/dist/components/retrieval/knowledge-base/knowledge-base.d.ts +1 -1
  755. package/dist/components/retrieval/knowledge-base-admin/knowledge-base-admin.class.d.ts +3 -3
  756. package/dist/components/retrieval/knowledge-base-admin/knowledge-base-admin.d.ts +1 -1
  757. package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.d.ts +16 -13
  758. package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.js +3 -3
  759. package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.d.ts +1 -1
  760. package/dist/components/retrieval/memory-panel/memory-panel.class.d.ts +11 -18
  761. package/dist/components/retrieval/memory-panel/memory-panel.class.js +1 -1
  762. package/dist/components/retrieval/memory-panel/memory-panel.d.ts +1 -1
  763. package/dist/components/retrieval/mind-map/mind-map-layout.d.ts +6 -6
  764. package/dist/components/retrieval/mind-map/mind-map.class.d.ts +1 -1
  765. package/dist/components/retrieval/mind-map/mind-map.d.ts +1 -1
  766. package/dist/components/retrieval/neighbor-list/neighbor-list.class.d.ts +13 -13
  767. package/dist/components/retrieval/neighbor-list/neighbor-list.class.js +2 -2
  768. package/dist/components/retrieval/neighbor-list/neighbor-list.d.ts +1 -1
  769. package/dist/components/retrieval/node-palette/node-palette.class.d.ts +6 -6
  770. package/dist/components/retrieval/node-palette/node-palette.d.ts +1 -1
  771. package/dist/components/retrieval/path-strip/path-strip.class.d.ts +2 -5
  772. package/dist/components/retrieval/path-strip/path-strip.class.js +1 -1
  773. package/dist/components/retrieval/path-strip/path-strip.d.ts +1 -1
  774. package/dist/components/retrieval/provenance-panel/provenance-panel.class.d.ts +5 -11
  775. package/dist/components/retrieval/provenance-panel/provenance-panel.d.ts +1 -1
  776. package/dist/components/retrieval/rag-answer/rag-answer.class.d.ts +9 -9
  777. package/dist/components/retrieval/rag-answer/rag-answer.class.js +2 -3
  778. package/dist/components/retrieval/rag-answer/rag-answer.d.ts +1 -1
  779. package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.class.d.ts +5 -15
  780. package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.class.js +1 -1
  781. package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.d.ts +1 -1
  782. package/dist/components/retrieval/research-progress/research-progress.class.d.ts +6 -6
  783. package/dist/components/retrieval/research-progress/research-progress.d.ts +1 -1
  784. package/dist/components/retrieval/retrieval-compare/retrieval-compare.class.d.ts +4 -4
  785. package/dist/components/retrieval/retrieval-compare/retrieval-compare.d.ts +1 -1
  786. package/dist/components/retrieval/retrieval-results/retrieval-results.class.d.ts +15 -19
  787. package/dist/components/retrieval/retrieval-results/retrieval-results.class.js +5 -6
  788. package/dist/components/retrieval/retrieval-results/retrieval-results.d.ts +1 -1
  789. package/dist/components/retrieval/retrieval-search/retrieval-search.class.d.ts +1 -1
  790. package/dist/components/retrieval/retrieval-search/retrieval-search.d.ts +1 -1
  791. package/dist/components/retrieval/retrieval-trace/retrieval-trace.class.d.ts +18 -21
  792. package/dist/components/retrieval/retrieval-trace/retrieval-trace.class.js +2 -3
  793. package/dist/components/retrieval/retrieval-trace/retrieval-trace.d.ts +1 -1
  794. package/dist/components/retrieval/source-card/source-card.class.d.ts +9 -12
  795. package/dist/components/retrieval/source-card/source-card.class.js +1 -1
  796. package/dist/components/retrieval/source-card/source-card.d.ts +1 -1
  797. package/dist/components/retrieval/source-list/source-list.class.d.ts +1 -1
  798. package/dist/components/retrieval/source-list/source-list.d.ts +1 -1
  799. package/dist/components/retrieval/source-picker/source-picker.class.d.ts +5 -8
  800. package/dist/components/retrieval/source-picker/source-picker.class.js +1 -1
  801. package/dist/components/retrieval/source-picker/source-picker.d.ts +1 -1
  802. package/dist/components/utility/copy-button/copy-button.class.d.ts +8 -8
  803. package/dist/components/utility/copy-button/copy-button.d.ts +1 -1
  804. package/dist/components/utility/diff-view/diff-line-diff.d.ts +1 -1
  805. package/dist/components/utility/diff-view/diff-view.class.d.ts +3 -3
  806. package/dist/components/utility/diff-view/diff-view.class.js +1 -1
  807. package/dist/components/utility/diff-view/diff-view.d.ts +1 -1
  808. package/dist/components/utility/divider/divider.class.d.ts +1 -1
  809. package/dist/components/utility/divider/divider.d.ts +1 -1
  810. package/dist/components/utility/export-button/csv.d.ts +2 -2
  811. package/dist/components/utility/export-button/export-button.class.d.ts +11 -11
  812. package/dist/components/utility/export-button/export-button.d.ts +1 -1
  813. package/dist/components/utility/format/format-bytes.d.ts +1 -1
  814. package/dist/components/utility/format/format-date.class.d.ts +1 -1
  815. package/dist/components/utility/format/format-date.d.ts +1 -1
  816. package/dist/components/utility/format/format-number.class.d.ts +2 -2
  817. package/dist/components/utility/format/format-number.d.ts +1 -1
  818. package/dist/components/utility/format/format-options.d.ts +4 -4
  819. package/dist/components/utility/format/format-options.js +1 -1
  820. package/dist/components/utility/format/relative-time.d.ts +1 -1
  821. package/dist/components/utility/icon/icon-library.d.ts +2 -2
  822. package/dist/components/utility/icon/icon.class.d.ts +10 -15
  823. package/dist/components/utility/icon/icon.class.js +2 -2
  824. package/dist/components/utility/icon/icon.d.ts +1 -1
  825. package/dist/components/utility/icon/icon.styles.js +1 -1
  826. package/dist/components/utility/intersection-observer/intersection-observer.class.d.ts +1 -1
  827. package/dist/components/utility/intersection-observer/intersection-observer.d.ts +1 -1
  828. package/dist/components/utility/json-viewer/json-viewer.class.d.ts +5 -5
  829. package/dist/components/utility/json-viewer/json-viewer.class.js +1 -1
  830. package/dist/components/utility/json-viewer/json-viewer.d.ts +1 -1
  831. package/dist/components/utility/known-date/known-date.class.d.ts +18 -21
  832. package/dist/components/utility/known-date/known-date.class.js +1 -1
  833. package/dist/components/utility/known-date/known-date.d.ts +1 -1
  834. package/dist/components/utility/live-region/live-region.class.d.ts +1 -1
  835. package/dist/components/utility/live-region/live-region.d.ts +1 -1
  836. package/dist/components/utility/mention-popover/mention-popover.class.d.ts +12 -11
  837. package/dist/components/utility/mention-popover/mention-popover.class.js +1 -1
  838. package/dist/components/utility/mention-popover/mention-popover.d.ts +1 -1
  839. package/dist/components/utility/mutation-observer/mutation-observer.class.d.ts +1 -1
  840. package/dist/components/utility/mutation-observer/mutation-observer.d.ts +1 -1
  841. package/dist/components/utility/poll-status/poll-status.class.d.ts +1 -1
  842. package/dist/components/utility/poll-status/poll-status.d.ts +1 -1
  843. package/dist/components/utility/random-content/random-content.class.d.ts +4 -4
  844. package/dist/components/utility/random-content/random-content.d.ts +1 -1
  845. package/dist/components/utility/resize-observer/resize-observer.d.ts +1 -1
  846. package/dist/components/utility/tour/tour.class.d.ts +8 -8
  847. package/dist/components/utility/tour/tour.d.ts +1 -1
  848. package/dist/components/utility/visually-hidden/visually-hidden.d.ts +1 -1
  849. package/dist/components/viewers/archive-viewer/archive-viewer.class.d.ts +3 -3
  850. package/dist/components/viewers/archive-viewer/archive-viewer.class.js +1 -1
  851. package/dist/components/viewers/archive-viewer/archive-viewer.d.ts +1 -1
  852. package/dist/components/viewers/calendar-viewer/calendar-loader.d.ts +1 -1
  853. package/dist/components/viewers/calendar-viewer/calendar-viewer.class.d.ts +6 -6
  854. package/dist/components/viewers/calendar-viewer/calendar-viewer.class.js +1 -1
  855. package/dist/components/viewers/calendar-viewer/calendar-viewer.d.ts +1 -1
  856. package/dist/components/viewers/contact-viewer/contact-viewer.class.d.ts +4 -4
  857. package/dist/components/viewers/contact-viewer/contact-viewer.class.js +1 -1
  858. package/dist/components/viewers/contact-viewer/contact-viewer.d.ts +1 -1
  859. package/dist/components/viewers/contact-viewer/vcard.d.ts +1 -1
  860. package/dist/components/viewers/csv-viewer/csv-viewer.class.d.ts +7 -7
  861. package/dist/components/viewers/csv-viewer/csv-viewer.d.ts +1 -1
  862. package/dist/components/viewers/dataset-viewer/dataset-viewer.class.d.ts +8 -8
  863. package/dist/components/viewers/dataset-viewer/dataset-viewer.d.ts +1 -1
  864. package/dist/components/viewers/document-compare/document-compare.class.d.ts +15 -15
  865. package/dist/components/viewers/document-compare/document-compare.d.ts +1 -1
  866. package/dist/components/viewers/document-preview/document-preview.class.d.ts +1 -1
  867. package/dist/components/viewers/document-preview/document-preview.class.js +1 -1
  868. package/dist/components/viewers/document-preview/document-preview.d.ts +1 -1
  869. package/dist/components/viewers/document-viewer/anchors.d.ts +7 -7
  870. package/dist/components/viewers/document-viewer/document-viewer-kinds.d.ts +1 -1
  871. package/dist/components/viewers/document-viewer/document-viewer-kinds.js +1 -1
  872. package/dist/components/viewers/document-viewer/document-viewer.class.d.ts +9 -9
  873. package/dist/components/viewers/document-viewer/document-viewer.class.js +1 -1
  874. package/dist/components/viewers/document-viewer/document-viewer.d.ts +1 -1
  875. package/dist/components/viewers/document-viewer/registry.d.ts +1 -69
  876. package/dist/components/viewers/document-viewer/registry.js +1 -1
  877. package/dist/components/viewers/docx-viewer/docx-viewer.class.d.ts +4 -4
  878. package/dist/components/viewers/docx-viewer/docx-viewer.class.js +1 -1
  879. package/dist/components/viewers/docx-viewer/docx-viewer.d.ts +1 -1
  880. package/dist/components/viewers/ebook-viewer/ebook-viewer.class.d.ts +2 -2
  881. package/dist/components/viewers/ebook-viewer/ebook-viewer.d.ts +1 -1
  882. package/dist/components/viewers/email-viewer/email-loader.d.ts +2 -2
  883. package/dist/components/viewers/email-viewer/email-viewer.class.d.ts +3 -3
  884. package/dist/components/viewers/email-viewer/email-viewer.class.js +1 -1
  885. package/dist/components/viewers/email-viewer/email-viewer.d.ts +1 -1
  886. package/dist/components/viewers/geojson-view/geojson-viewer.class.d.ts +2 -2
  887. package/dist/components/viewers/geojson-view/geojson-viewer.d.ts +1 -1
  888. package/dist/components/viewers/highlight-layer/highlight-layer.class.d.ts +1 -1
  889. package/dist/components/viewers/highlight-layer/highlight-layer.d.ts +1 -1
  890. package/dist/components/viewers/html-viewer/html-viewer.class.d.ts +5 -5
  891. package/dist/components/viewers/html-viewer/html-viewer.class.js +1 -1
  892. package/dist/components/viewers/html-viewer/html-viewer.d.ts +1 -1
  893. package/dist/components/viewers/include/include-resource.d.ts +1 -1
  894. package/dist/components/viewers/include/include.class.d.ts +2 -2
  895. package/dist/components/viewers/include/include.class.js +1 -1
  896. package/dist/components/viewers/include/include.d.ts +1 -1
  897. package/dist/components/viewers/index.d.ts +1 -1
  898. package/dist/components/viewers/index.js +1 -1
  899. package/dist/components/viewers/model-viewer/model-viewer-document.js +1 -0
  900. package/dist/components/viewers/model-viewer/model-viewer-loader.js +1 -0
  901. package/dist/components/viewers/model-viewer/model-viewer-register.d.ts +1 -0
  902. package/dist/components/viewers/model-viewer/model-viewer-register.js +1 -0
  903. package/dist/components/viewers/model-viewer/model-viewer-source.d.ts +1 -0
  904. package/dist/components/viewers/model-viewer/model-viewer-source.js +1 -0
  905. package/dist/components/viewers/model-viewer/model-viewer.class.d.ts +61 -0
  906. package/dist/components/viewers/model-viewer/model-viewer.class.js +9 -0
  907. package/dist/components/viewers/model-viewer/model-viewer.d.ts +1 -0
  908. package/dist/components/viewers/model-viewer/model-viewer.js +1 -0
  909. package/dist/components/viewers/model-viewer/model-viewer.styles.js +1 -0
  910. package/dist/components/viewers/notebook-viewer/notebook-viewer.class.d.ts +3 -3
  911. package/dist/components/viewers/notebook-viewer/notebook-viewer.class.js +2 -2
  912. package/dist/components/viewers/notebook-viewer/notebook-viewer.d.ts +1 -1
  913. package/dist/components/viewers/page-rail/page-rail.class.d.ts +5 -5
  914. package/dist/components/viewers/page-rail/page-rail.class.js +1 -1
  915. package/dist/components/viewers/page-rail/page-rail.d.ts +1 -1
  916. package/dist/components/viewers/page-rail/page-viewer-snapshot.d.ts +2 -2
  917. package/dist/components/viewers/pdf-viewer/pdf-viewer.class.d.ts +4 -4
  918. package/dist/components/viewers/pdf-viewer/pdf-viewer.class.js +1 -1
  919. package/dist/components/viewers/pdf-viewer/pdf-viewer.d.ts +1 -1
  920. package/dist/components/viewers/pptx-viewer/pptx-loader.d.ts +5 -5
  921. package/dist/components/viewers/pptx-viewer/pptx-viewer.class.d.ts +7 -7
  922. package/dist/components/viewers/pptx-viewer/pptx-viewer.class.js +3 -3
  923. package/dist/components/viewers/pptx-viewer/pptx-viewer.d.ts +1 -1
  924. package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer.class.d.ts +9 -9
  925. package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer.d.ts +1 -1
  926. package/dist/components/viewers/svg-viewer/svg-viewer.class.d.ts +1 -1
  927. package/dist/components/viewers/svg-viewer/svg-viewer.class.js +1 -1
  928. package/dist/components/viewers/svg-viewer/svg-viewer.d.ts +1 -1
  929. package/dist/components/viewers/table-viewer-shared.js +1 -1
  930. package/dist/components/viewers/viewer-diagnostics.d.ts +3 -3
  931. package/dist/components/viewers/viewer-source.d.ts +2 -2
  932. package/dist/components/viewers/xml-viewer/xml-viewer.class.d.ts +9 -9
  933. package/dist/components/viewers/xml-viewer/xml-viewer.class.js +1 -1
  934. package/dist/components/viewers/xml-viewer/xml-viewer.d.ts +1 -1
  935. package/dist/countries.d.ts +3 -3
  936. package/dist/currency.d.ts +5 -5
  937. package/dist/custom-elements-jsx.d.ts +1 -1
  938. package/dist/data-sources.d.ts +17 -17
  939. package/dist/events.d.ts +164 -119
  940. package/dist/framework-types.d.ts +4 -4
  941. package/dist/hydration.d.ts +1 -1
  942. package/dist/internal/a11y.d.ts +2 -2
  943. package/dist/internal/accessibility-visibility.d.ts +17 -17
  944. package/dist/internal/active-element.d.ts +1 -1
  945. package/dist/internal/anchor-target.d.ts +3 -3
  946. package/dist/internal/announcer.d.ts +18 -18
  947. package/dist/internal/ansi.d.ts +5 -3
  948. package/dist/internal/ansi.js +1 -1
  949. package/dist/internal/approval-wait-until.d.ts +1 -1
  950. package/dist/internal/autoloader-manifest.js +1 -1
  951. package/dist/internal/autoloader-tags.d.ts +1 -1
  952. package/dist/internal/autoloader-tags.js +1 -1
  953. package/dist/internal/av-metadata.d.ts +13 -0
  954. package/dist/internal/av-metadata.js +1 -0
  955. package/dist/internal/canvas-color.d.ts +1 -1
  956. package/dist/internal/catalog-picker.d.ts +1 -1
  957. package/dist/internal/clipboard.d.ts +5 -5
  958. package/dist/internal/collection-snapshot.js +1 -1
  959. package/dist/internal/component-loaders.generated.js +1 -1
  960. package/dist/internal/composed-tree.d.ts +2 -2
  961. package/dist/internal/converters.d.ts +10 -10
  962. package/dist/internal/css-length.d.ts +1 -1
  963. package/dist/internal/custom-element-upgrade-observer.d.ts +1 -1
  964. package/dist/internal/data-descriptors.d.ts +30 -0
  965. package/dist/internal/default-strings/agent-tools.generated.js +1 -1
  966. package/dist/internal/default-strings/charts.generated.js +1 -1
  967. package/dist/internal/default-strings/conversation.generated.js +1 -1
  968. package/dist/internal/default-strings/media.generated.js +1 -1
  969. package/dist/internal/default-strings/shared.generated.js +1 -1
  970. package/dist/internal/default-strings/viewers.generated.js +1 -1
  971. package/dist/internal/deferred-focus-return.d.ts +5 -5
  972. package/dist/internal/definition-registry.d.ts +2 -2
  973. package/dist/internal/deprecated-alias-types.d.ts +1 -1
  974. package/dist/internal/deprecated-aliases.d.ts +1 -1
  975. package/dist/internal/direct-form-associated.d.ts +4 -4
  976. package/dist/internal/document-renderer-registry.d.ts +75 -0
  977. package/dist/internal/document-renderer-registry.js +1 -0
  978. package/dist/internal/document-tokens.d.ts +1 -1
  979. package/dist/internal/docx-zip-admission.d.ts +1 -1
  980. package/dist/internal/drop-session-controller.d.ts +6 -6
  981. package/dist/internal/drop-session-controller.js +1 -1
  982. package/dist/internal/engine-3d-loader.d.ts +47 -0
  983. package/dist/internal/engine-3d-loader.js +1 -0
  984. package/dist/internal/engine-3d.d.ts +57 -0
  985. package/dist/internal/engine-3d.js +1 -0
  986. package/dist/internal/focus-navigation.d.ts +9 -9
  987. package/dist/internal/form-associated.d.ts +20 -20
  988. package/dist/internal/form-control-element.d.ts +6 -6
  989. package/dist/internal/heading-level.d.ts +1 -1
  990. package/dist/internal/hierarchy-source-controller.js +1 -1
  991. package/dist/internal/highlight-collection.d.ts +3 -3
  992. package/dist/internal/icons.d.ts +23 -23
  993. package/dist/internal/inherited-attribute-hub.d.ts +3 -3
  994. package/dist/internal/layered-layout.d.ts +8 -8
  995. package/dist/internal/locale-loader.d.ts +1 -1
  996. package/dist/internal/localization-runtime.d.ts +7 -7
  997. package/dist/internal/localization-runtime.js +1 -1
  998. package/dist/internal/localization-types.d.ts +2 -2
  999. package/dist/internal/localization.js +1 -1
  1000. package/dist/internal/lyra-element.d.ts +19 -19
  1001. package/dist/internal/lyra-element.js +1 -1
  1002. package/dist/internal/match-constraint.d.ts +1 -1
  1003. package/dist/internal/model-viewer-contract.d.ts +5 -0
  1004. package/dist/internal/model-viewer-contract.js +1 -0
  1005. package/dist/internal/node-type-style.d.ts +1 -1
  1006. package/dist/internal/numbers.d.ts +12 -12
  1007. package/dist/internal/optional-peer-capabilities.d.ts +9 -9
  1008. package/dist/internal/overlay-manager.d.ts +22 -22
  1009. package/dist/internal/overlay-manager.js +1 -1
  1010. package/dist/internal/overlay-order.d.ts +3 -3
  1011. package/dist/internal/overlay-stack.d.ts +3 -3
  1012. package/dist/internal/package-metadata.js +1 -1
  1013. package/dist/internal/positioner-geometry.d.ts +2 -2
  1014. package/dist/internal/positioner.d.ts +26 -23
  1015. package/dist/internal/positioner.js +1 -1
  1016. package/dist/internal/registered-animation.d.ts +2 -2
  1017. package/dist/internal/rendered-state.js +1 -1
  1018. package/dist/internal/rendered-tree-traversal.d.ts +13 -13
  1019. package/dist/internal/resource-loader.d.ts +7 -7
  1020. package/dist/internal/root-registration-allowlist.js +1 -1
  1021. package/dist/internal/safe-resource-cache.d.ts +3 -3
  1022. package/dist/internal/scoped-definitions.generated.js +1 -1
  1023. package/dist/internal/score-tiers.d.ts +2 -2
  1024. package/dist/internal/selection-catalog.d.ts +3 -3
  1025. package/dist/internal/semantic-variant.d.ts +3 -3
  1026. package/dist/internal/shared-unions.d.ts +3 -3
  1027. package/dist/internal/slugger.d.ts +1 -1
  1028. package/dist/internal/stream-phase.d.ts +1 -1
  1029. package/dist/internal/text-highlights.d.ts +4 -4
  1030. package/dist/internal/text-quote.d.ts +18 -18
  1031. package/dist/internal/text-viewer-target.d.ts +4 -4
  1032. package/dist/internal/theme-watcher.d.ts +2 -2
  1033. package/dist/internal/top-layer-escape.d.ts +1 -1
  1034. package/dist/internal/typed-columns.d.ts +39 -0
  1035. package/dist/internal/typed-columns.js +1 -0
  1036. package/dist/internal/variant-values.d.ts +3 -3
  1037. package/dist/internal/variants.d.ts +4 -4
  1038. package/dist/localization.js +1 -1
  1039. package/dist/lyra.d.ts +1 -1
  1040. package/dist/lyra.js +1 -1
  1041. package/dist/ssr/all.d.ts +1 -1
  1042. package/dist/ssr/all.js +1 -1
  1043. package/dist/ssr.d.ts +16 -16
  1044. package/dist/ssr.js +1 -1
  1045. package/dist/svelte.d.ts +1 -1
  1046. package/dist/testing/happy-dom-shims.d.ts +3 -3
  1047. package/dist/testing/interaction-drivers.d.ts +3 -3
  1048. package/dist/testing/jsdom-shims.d.ts +9 -9
  1049. package/dist/testing/lyra-tag-event-map.d.ts +2 -2
  1050. package/dist/testing/lyra-tag-event-map.js +1 -1
  1051. package/dist/testing/wait-for-mount.d.ts +3 -3
  1052. package/dist/theme/chart-palette.d.ts +2 -2
  1053. package/dist/theme/gemstones-data.d.ts +2 -2
  1054. package/dist/theme/look-css.d.ts +2 -2
  1055. package/dist/theme/looks/data.d.ts +1 -1
  1056. package/dist/theme/looks/high-contrast.d.ts +1 -1
  1057. package/dist/theme/looks/material.d.ts +1 -1
  1058. package/dist/theme/looks/shadcn.d.ts +1 -1
  1059. package/dist/theme/looks/terminal.d.ts +1 -1
  1060. package/dist/theme/options/charts.d.ts +5 -5
  1061. package/dist/theme/options/elevation.d.ts +1 -1
  1062. package/dist/theme/options/shape.d.ts +1 -1
  1063. package/dist/theme/options/typography.d.ts +1 -1
  1064. package/dist/theme/preferences.d.ts +1 -1
  1065. package/dist/theme/style-ownership.d.ts +1 -1
  1066. package/dist/theme/theme-bootstrap.js +1 -1
  1067. package/dist/theme/theme.d.ts +13 -13
  1068. package/dist/theme/theme.js +1 -1
  1069. package/dist/units.d.ts +2 -2
  1070. package/dist/utilities/animation-registry.d.ts +5 -5
  1071. package/dist/utilities/catalog.d.ts +1 -1
  1072. package/dist/utilities/data-spatial.d.ts +9 -9
  1073. package/dist/utilities/defined.d.ts +1 -1
  1074. package/dist/utilities/deprecated-aliases.d.ts +1 -1
  1075. package/dist/utilities/scoped-registry.d.ts +5 -5
  1076. package/dist/vue.d.ts +3 -3
  1077. package/llms/components/lr-accordion-item.md +2 -2
  1078. package/llms/components/lr-agent-eval-dashboard.md +3 -3
  1079. package/llms/components/lr-agent-run.md +3 -3
  1080. package/llms/components/lr-agent-trace.md +1 -1
  1081. package/llms/components/lr-agent-workspace.md +1 -1
  1082. package/llms/components/lr-app-rail-item.md +1 -1
  1083. package/llms/components/lr-app-rail.md +5 -6
  1084. package/llms/components/lr-background-runs.md +4 -4
  1085. package/llms/components/lr-calendar.md +1 -1
  1086. package/llms/components/lr-change-review.md +5 -5
  1087. package/llms/components/lr-chart-3d.md +164 -0
  1088. package/llms/components/lr-chunk-inspector.md +4 -5
  1089. package/llms/components/lr-citation-badge.md +1 -1
  1090. package/llms/components/lr-code-block-core.md +2 -4
  1091. package/llms/components/lr-command-palette.md +3 -3
  1092. package/llms/components/lr-community-card.md +2 -2
  1093. package/llms/components/lr-date-picker.md +1 -1
  1094. package/llms/components/lr-details.md +2 -2
  1095. package/llms/components/lr-diff-view.md +2 -2
  1096. package/llms/components/lr-dock-panel.md +5 -10
  1097. package/llms/components/lr-document-viewer.md +21 -14
  1098. package/llms/components/lr-embedding-explorer.md +24 -4
  1099. package/llms/components/lr-entity-dossier.md +3 -4
  1100. package/llms/components/lr-eval-dataset.md +3 -3
  1101. package/llms/components/lr-eval-run.md +7 -1
  1102. package/llms/components/lr-file-input.md +10 -11
  1103. package/llms/components/lr-flow-node.md +2 -3
  1104. package/llms/components/lr-geojson-viewer.md +1 -1
  1105. package/llms/components/lr-graph.md +21 -2
  1106. package/llms/components/lr-grounding-summary.md +1 -1
  1107. package/llms/components/lr-icon.md +1 -3
  1108. package/llms/components/lr-image-viewer.md +29 -2
  1109. package/llms/components/lr-ingestion-queue.md +1 -1
  1110. package/llms/components/lr-knowledge-base-admin.md +2 -2
  1111. package/llms/components/lr-knowledge-graph-explorer.md +7 -1
  1112. package/llms/components/lr-known-date.md +3 -10
  1113. package/llms/components/lr-lite-chart.md +1 -1
  1114. package/llms/components/lr-locale-picker.md +11 -1
  1115. package/llms/components/lr-map-anchor.md +165 -0
  1116. package/llms/components/lr-map.md +939 -49
  1117. package/llms/components/lr-markdown-core.md +1 -2
  1118. package/llms/components/lr-memory-panel.md +4 -8
  1119. package/llms/components/lr-model-viewer.md +170 -0
  1120. package/llms/components/lr-navigation-menu.md +3 -4
  1121. package/llms/components/lr-node-palette.md +1 -1
  1122. package/llms/components/lr-path-strip.md +2 -3
  1123. package/llms/components/lr-provenance-panel.md +3 -5
  1124. package/llms/components/lr-qr-code.md +3 -4
  1125. package/llms/components/lr-rag-answer.md +1 -1
  1126. package/llms/components/lr-rag-eval-dashboard.md +2 -5
  1127. package/llms/components/lr-retrieval-results.md +6 -7
  1128. package/llms/components/lr-retrieval-trace.md +3 -4
  1129. package/llms/components/lr-signature-pad.md +4 -3
  1130. package/llms/components/lr-source-card.md +1 -1
  1131. package/llms/components/lr-source-list.md +5 -5
  1132. package/llms/components/lr-source-picker.md +2 -3
  1133. package/llms/components/lr-span-waterfall.md +4 -3
  1134. package/llms/components/lr-sparkline.md +3 -3
  1135. package/llms/components/lr-subagent-panel.md +3 -3
  1136. package/llms/components/lr-tool-call-chip.md +6 -6
  1137. package/llms/components/lr-tool-timeline.md +1 -1
  1138. package/llms/components/lr-tree.md +4 -0
  1139. package/llms/components/lr-video-playlist.md +3 -3
  1140. package/llms/components/lr-video.md +29 -2
  1141. package/llms/components/lr-virtual-list.md +3 -2
  1142. package/llms/components/lr-widget.md +6 -13
  1143. package/llms/index.md +100 -96
  1144. package/llms/migration.md +27 -38
  1145. package/llms/peers.md +7 -6
  1146. package/llms/shared/ai-and-peers.md +1 -1
  1147. package/llms/shared/events-and-types.md +12 -0
  1148. package/llms/shared/imports-and-registration.md +2 -2
  1149. package/llms/shared/testing-and-utilities.md +6 -1
  1150. package/llms/shared/v29-to-v30-migration.md +256 -0
  1151. package/llms/shared.md +21 -4
  1152. package/llms.txt +7 -7
  1153. package/locales.json +1 -2328
  1154. package/package.json +49 -14
  1155. package/registrations.json +1 -1
  1156. package/skills/lyra-ui/SKILL.md +4 -3
  1157. /package/dist/{components/viewers/document-viewer → internal}/deferred-teardown.js +0 -0
  1158. /package/dist/{components/viewers/document-viewer/registry-ownership.js → internal/document-renderer-registry-ownership.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{__decorate}from"tslib";import{AnnouncementSinkController}from"../../../internal/announcer.js";import{guard}from"lit/directives/guard.js";import{emitValueEvents}from"../../../internal/value-events.js";import{renderFormControlHintError}from"../../../internal/form-control-template.js";import{installFormControlLabelSupport}from"../../../internal/form-control-labels.js";import{FormControlController,reflectFormName}from"../../../internal/form-control-controller.js";import{GlassScrollLayer}from"../../../internal/glass-scroll-layer.js";import{acquireAnnouncementSink}from"../../../internal/announcer.js";import{acquireNativeControlDescription}from"../../../internal/native-control-description.js";import{html,nothing}from"lit";import{property,query,state}from"lit/decorators.js";import{LyraElement}from"../../../internal/lyra-element.js";import{LyraFormControlElement}from"../../../internal/form-control-element.js";import{deferredPlace as place,awaitPopupAnimations,syncTopLayerRelease,topLayerPlacement}from"../../../internal/anchored-overlay-runtime.js";import{resolveEffectivePositioningStrategy}from"../../../internal/positioning-strategy.js";import{hostAriaLabel,nextId,srOnly}from"../../../internal/a11y.js";import{chevronIcon}from"../../../internal/icons.js";import{VALIDITY_ANCHOR}from"../../../internal/anchored-validity.js";import{syncValidityStates}from"../../../internal/custom-states.js";import{TypeAheadBuffer}from"../../../internal/type-ahead-buffer.js";import{resolveListMove}from"../../../internal/list-navigation.js";import{getDisplayNames,resolveIntlLocale}from"../../../internal/intl-cache.js";import{activeElementIn,shadowFocusTarget}from"../../../internal/active-element.js";import{activateNonmodalOverlay}from"../../../internal/nonmodal-overlay-manager.js";import{getLyraLocale,getLyraLocaleDirection,getRegisteredLyraLocales,subscribeLyraLocaleRegistry,setLyraLocale}from"../../../internal/localization-runtime.js";import{localeNativeName}from"../../media/flag/language-map.js";import{sizes}from"../../../internal/sizes.styles.js";import{styles}from"./locale-picker.styles.js";import{autocorrectConverter,declaredDefaultConverter,spellcheckConverter}from"../../../internal/converters.js";import{getFormOwner,isBarredFromValidation,setFormOwner}from"../../../internal/form-associated.js";import{relayNativeEvent}from"../../../internal/native-event-relay.js";import{PopupController,emitPopupEvent}from"../../../internal/popup-controller.js";import{revealRow}from"../../../internal/reveal-row.js";import{SlotPresenceController}from"../../../internal/slot-presence-controller.js";import{LYRA_DEFAULT_localePickerEmpty,LYRA_DEFAULT_localePickerInputLimit,LYRA_DEFAULT_localePickerLabel,LYRA_DEFAULT_localePickerRequired,LYRA_DEFAULT_localePickerSearchLabel}from"../../../internal/default-strings/forms.generated.js";import{LYRA_DEFAULT_fieldRequired,LYRA_DEFAULT_loading,LYRA_DEFAULT_retry,LYRA_DEFAULT_statusError}from"../../../internal/default-strings/shared.generated.js";installFormControlLabelSupport();const MAX_LOCALE_ENTRIES=512,localeSpellcheckConverter={...spellcheckConverter,fromAttribute:(value,type)=>value===null?void 0:spellcheckConverter.fromAttribute?.(value,type)};function snapshotLocaleCatalog(source){if(!Array.isArray(source))return Object.freeze([]);const rows=[];for(let index=0;index<Math.min(source.length,MAX_LOCALE_ENTRIES);index+=1)try{const raw=source[index];if(typeof raw=="string"){raw.length>0&&rows.push(raw);continue}if(raw===null||typeof raw!="object")continue;const candidate=raw,tag=candidate.tag,label=candidate.label,country=candidate.country;if(typeof tag!="string"||tag.length===0||label!==void 0&&typeof label!="string"||country!==void 0&&typeof country!="string")continue;rows.push(Object.freeze({tag,...label===void 0?{}:{label},...country===void 0?{}:{country}}))}catch{}return Object.freeze(rows)}class LyraLocalePicker extends LyraFormControlElement{static{this.defaultStrings={...super.defaultStrings,fieldRequired:LYRA_DEFAULT_fieldRequired,loading:LYRA_DEFAULT_loading,localePickerEmpty:LYRA_DEFAULT_localePickerEmpty,localePickerInputLimit:LYRA_DEFAULT_localePickerInputLimit,localePickerLabel:LYRA_DEFAULT_localePickerLabel,localePickerRequired:LYRA_DEFAULT_localePickerRequired,localePickerSearchLabel:LYRA_DEFAULT_localePickerSearchLabel,retry:LYRA_DEFAULT_retry,statusError:LYRA_DEFAULT_statusError}}static{this.formAssociated=!0}static{this.styles=[LyraElement.styles,sizes,srOnly,styles]}static{this.properties={customError:{attribute:"custom-error",reflect:!0,noAccessor:!0},disabled:{type:Boolean,reflect:!0,noAccessor:!0},required:{type:Boolean,reflect:!0,noAccessor:!0},value:{attribute:!1,noAccessor:!0},defaultValue:{attribute:"value",reflect:!0,useDefault:!0,noAccessor:!0},name:{reflect:!0,noAccessor:!0}}}get localeLoader(){return this._localeLoader}set localeLoader(next){const previous=this._localeLoader;previous!==next&&(this.cancelLocaleLoad(),this._localeLoader=next,this.requestUpdate("localeLoader",previous))}get locales(){return this._locales}set locales(next){this.cancelLocaleLoad();const previous=this._locales;this.inputLimited=Array.isArray(next)&&next.length>MAX_LOCALE_ENTRIES,this._locales=next===void 0?void 0:snapshotLocaleCatalog(next),this.requestUpdate("locales",previous)}get autocorrect(){return this.autocorrectValue}set autocorrect(next){this.autocorrectValue=!!next,this.requestUpdate()}get open(){return this._open}set open(next){const old=this._open,liveDisabled=this.effectiveDisabled||typeof this.matches=="function"&&this.matches(":disabled");if(this._open=!!next&&!liveDisabled,this._open===old){next&&!this._open&&this.hasAttribute("open")&&this.removeAttribute("open");return}this._open||(this.activeIndex=-1,this.clearSearch()),this.requestUpdate("open",old)}constructor(){super(),this.withoutFlags=!1,this.topLayer=!1,this.triggerDisplay="flag-label",this.optionDisplay="label-tag",this.searchable=!1,this.autocomplete="off",this.inputMode="",this.enterKeyHint="",this.spellcheck=!1,this.autocapitalize="",this.autocorrectValue=!0,this.label="",this.hint="",this.errorText="",this.size="m",this.activeIndex=-1,this.searchQuery="",this.touched=!1,this.slotPresence=new SlotPresenceController(this),this.registryTick=0,this.searchFocusGeneration=0,this.listId=nextId("locale-picker-list"),this.controlId=nextId("locale-picker-control"),this.listboxHidden=!0,this.closeSettleToken=0,this.popupController=new PopupController({host:this,popup:()=>this.renderRoot.querySelector('[part="listbox"]'),emit:(name,cancelable)=>emitPopupEvent(this,name,cancelable),onPointer:event=>this.onDocPointer(event)}),this._value="",this._open=!1,this._fieldsetDisabled=!1,this._name="",this._disabled=!1,this._required=!1,this._defaultValue="",this._valueDirty=!1,this.settingDefaultValue=!1,this.reflectingDefaultValue=!1,this.typeBuffer=new TypeAheadBuffer(this),this.activeScrollGeneration=0,this.localizedValidityLocale="",this.localizedIntrinsicMessage="",this.localDescriptionIds="",this.markInteracted=()=>{this.touched||(this.touched=!0,this.syncCustomStates())},this.onDocPointer=e=>{if(!e.composedPath().includes(this)){if(this.overlayHandle?.isActive()){this.overlayHandle.dismissBackdrop();return}this.hide()}},this.inputLimited=!1,this.limitAnnouncements=new AnnouncementSinkController(this),this.limitMounted=!1,this.commitDispatching=!1,this.valueWriteVersion=0,this.loadGeneration=0,this.retryLocaleLoad=()=>{const restoreFocus=shadowFocusTarget(this)?.getAttribute("part")==="load-retry";this.loadFailureTag!==void 0&&this.commit(this.loadFailureTag),restoreFocus&&this.loadFailureTag===void 0&&this.isConnected&&shadowFocusTarget(this)?.getAttribute("part")==="load-retry"&&this.focus()},this.onTriggerClick=()=>{this.liveDisabled||(this.open?this.hide():this.show())},this.onTriggerBlur=event=>{if(this.isSearchFocusTransfer(event)){event.stopPropagation();return}this.liveDisabled||(this.touched=!0),this.syncCustomStates(),this.hide(),relayNativeEvent(this,event)},this.onTriggerFocus=event=>{if(this.isSearchFocusTransfer(event)){event.stopPropagation();return}if(this.liveDisabled){event.stopPropagation();return}relayNativeEvent(this,event)},this.onSearchInput=event=>{event.stopPropagation(),!(!this.searchable||!this.open||this.liveDisabled)&&(this.searchQuery=event.currentTarget.value,this.setActiveIndex(this.visibleEntries.length?0:-1))},this.onSearchChange=event=>{event.stopPropagation()},this.onSearchKeyDown=event=>{if(this.liveDisabled||!this.open||event.isComposing||event.keyCode===229)return;const rows=this.visibleEntries;if(event.key==="ArrowDown"||event.key==="ArrowUp")event.preventDefault(),this.setActiveIndex(event.key==="ArrowDown"?Math.min(rows.length-1,this.activeIndex+1):Math.max(0,this.activeIndex-1));else if(event.key==="Enter"){event.preventDefault();const row=rows[this.activeIndex];row&&this.commit(row.tag)}else event.key==="Escape"&&(!this.overlayHandle?.isActive()||this.overlayHandle.isTopmost())&&(event.preventDefault(),this.dismissFromEscape())},this.onKeyDown=e=>{if(this.liveDisabled||e.isComposing||e.keyCode===229)return;const rows=this.visibleEntries,move=()=>resolveListMove(e,{count:rows.length,current:this.activeIndex,orientation:"vertical",wrap:!1,clamp:!0,backwardFromMissing:"first"});switch(e.key){case"ArrowDown":if(e.preventDefault(),!this.open)return this.show();this.setActiveIndex(move()??-1),this.queueSearchFocus();break;case"ArrowUp":if(e.preventDefault(),!this.open)return this.show();this.setActiveIndex(move()??-1),this.queueSearchFocus();break;case"Enter":case" ":if(this.open){e.preventDefault();const activeRow=rows[this.activeIndex];this.activeIndex>=0&&activeRow?this.commit(activeRow.tag):this.hide()}break;case"Escape":this.open&&(!this.overlayHandle?.isActive()||this.overlayHandle.isTopmost())&&(e.preventDefault(),this.dismissFromEscape());break;case"Home":this.open&&(e.preventDefault(),this.setActiveIndex(move()??-1));break;case"End":this.open&&(e.preventDefault(),this.setActiveIndex(move()??-1));break;default:this.typeBuffer.accepts(e)&&(this.searchable?(e.preventDefault(),this.show(),this.searchQuery+=e.key,this.setActiveIndex(this.visibleEntries.length?0:-1),this.queueSearchFocus()):this.typeAhead(e.key));break}},this.onListboxMouseDown=e=>{e.composedPath()[0]!==this.searchElement&&e.preventDefault()},this.onListboxClick=e=>{if(this.liveDisabled)return;const tag=e.target.closest('[part="option"]')?.dataset.value;tag!==void 0&&this.commit(tag)},this.validityController=new FormControlController(this,{invalid:init=>this.emit("lr-invalid",null,init),interacted:this.markInteracted,customError:()=>this.validityController.customValidityMessage}),this.internals=this.validityController.formInternals,new GlassScrollLayer(this,'[part="listbox"]',()=>this.open),this.internals.setFormValue("")}get liveDisabled(){return this.effectiveDisabled||this.matches(":disabled")}focus(options){this.liveDisabled||this.triggerElement?.focus(options)}blur(){this.searchElement&&shadowFocusTarget(this)===this.searchElement?this.searchElement.blur():this.triggerElement?.blur()}click(){this.liveDisabled||this.triggerElement?.click()}get input(){return this.searchable?this.searchElement??null:null}get form(){return getFormOwner(this.internals)}set form(owner){setFormOwner(this,owner)}[VALIDITY_ANCHOR](){return this.renderRoot?.querySelector('[part="trigger"]')??null}syncExternalDescription(){if(!this.isConnected)return;const target=this.triggerElement??null;target&&(this.externalDescriptionLease?this.externalDescriptionLease.update(target):this.externalDescriptionLease=acquireNativeControlDescription(this,target,()=>this.localDescriptionIds))}releaseExternalDescription(){this.externalDescriptionLease?.release(),this.externalDescriptionLease=void 0}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this.syncExternalDescription(),this.syncLocaleAttributeForLocalization(),this.updateValidity(),this.stopRegistrySubscription=subscribeLyraLocaleRegistry(()=>{this.registryTick+=1}),this.hasUpdated&&this.open&&queueMicrotask(()=>this.syncPopup())}disconnectedCallback(){this.clearSearch(),this.cancelLocaleLoad(),this.loadAnnouncements?.release(),this.loadAnnouncements=void 0,this.closeSettleToken++,this.listboxHidden=!0,this.releaseExternalDescription(),super.disconnectedCallback(),this.cleanup?.(),this.cleanup=void 0,this.deactivatePopupOverlay(!1),this.stopRegistrySubscription?.(),this.stopRegistrySubscription=void 0,this.typeBuffer.clear(),this.activeScrollGeneration+=1,this.open=!1}adoptedCallback(){this.closeSettleToken++,this.clearSearch(),this.cancelLocaleLoad(),this.loadAnnouncements?.release(),this.loadAnnouncements=void 0,super.adoptedCallback(),this.releaseExternalDescription(),this.hasUpdated&&this.syncExternalDescription(),this.cleanup?.(),this.cleanup=void 0,this.popupController.unbindPointer(),this.overlayHandle?.suspend(),this.typeBuffer.clear(),this.open&&queueMicrotask(()=>this.syncPopup())}willUpdate(changed){super.willUpdate(changed),changed.has("locale")&&this.syncLocaleAttributeForLocalization(),this.hasUpdated&&this.refreshLocalizedIntrinsicValidity(changed),changed.has("searchable")&&!this.searchable&&(this.clearSearch(),this.searchElement&&shadowFocusTarget(this)===this.searchElement&&this.focus()),changed.has("open")&&this.open&&this.setActiveIndex(this.visibleEntries.findIndex(row=>row.tag===this._value)),this.open&&(this.searchable||changed.has("locales")||changed.has("registryTick"))&&this.activeIndex>=0&&(this.activeIndex=Math.min(this.activeIndex,this.visibleEntries.length-1),this.queueActiveScroll()),this.open&&(this.listboxHidden=!1)}get value(){return this._value}set value(next){this.cancelLocaleLoad(),this.valueWriteVersion++;const old=this._value;this.settingDefaultValue||(this._valueDirty=!0),this._value=next??"",this.internals.setFormValue(this._value),this.updateValidity(),this.requestUpdate("value",old)}get defaultValue(){return this._defaultValue}set defaultValue(next){if(this.reflectingDefaultValue)return;const old=this._defaultValue;this._defaultValue=next??"",this.reflectingDefaultValue=!0;try{this._defaultValue?this.setAttribute("value",this._defaultValue):this.removeAttribute("value")}finally{this.reflectingDefaultValue=!1}this._valueDirty||this.restoreLiveValueFromDefault(),this.requestUpdate("defaultValue",old)}get name(){return this._name}set name(next){const old=this._name;this._name=next??"",reflectFormName(this,this._name),this.requestUpdate("name",old)}get disabled(){return this._disabled}set disabled(next){next&&this.cancelLocaleLoad();const old=this._disabled;this._disabled=!!next,this.toggleAttribute("disabled",this._disabled),this._fieldsetDisabled=this.validityController?.fieldsetDisabled(this._fieldsetDisabled)??this._fieldsetDisabled,this._disabled&&this.hide(),this.updateValidity(),this.requestUpdate("disabled",old)}get required(){return this._required}set required(next){const old=this._required;this._required=!!next,this.toggleAttribute("required",this._required),this.updateValidity(),this.requestUpdate("required",old)}get effectiveDisabled(){return this.disabled||this._fieldsetDisabled}updateValidity(){this.localizedValidityLocale=this.effectiveMessageLocale;const valueMissing=this.hasMissingRequiredValue(),message=valueMissing?this.localize("localePickerRequired"):"";this.localizedIntrinsicMessage=message,valueMissing?this.validityController.setValidity({valueMissing:!0},message):this.validityController.setValidity({}),this.syncCustomStates()}refreshLocalizedIntrinsicValidity(changed){const locale=this.effectiveMessageLocale,message=this.hasMissingRequiredValue()?this.localize("localePickerRequired"):"";(changed.has("strings")||locale!==this.localizedValidityLocale||message!==this.localizedIntrinsicMessage)&&this.updateValidity()}hasMissingRequiredValue(){return!this.isBarred()&&this.required&&!this._value}syncLocaleAttributeForLocalization(){this.locale?this.getAttribute("locale")!==this.locale&&this.setAttribute("locale",this.locale):this.hasAttribute("locale")&&this.removeAttribute("locale")}isBarred(){return isBarredFromValidation(this,this.internals)}syncCustomStates(){syncValidityStates(this.internals,{required:this.required,hasInteracted:this.touched,barred:this.isBarred()})}formResetCallback(){this.touched=!1,this.clearSearch(),this.restoreLiveValueFromDefault()}restoreLiveValueFromDefault(){this.settingDefaultValue=!0;try{this.value=this._defaultValue}finally{this.settingDefaultValue=!1}this._valueDirty=!1}formStateRestoreCallback(state2,_mode){this.value=typeof state2=="string"?state2:""}formDisabledCallback(disabled){this.validityController?.reflectingDisabled||(disabled&&this.cancelLocaleLoad(),this._fieldsetDisabled=disabled,disabled&&this.hide(),this.updateValidity(),this.requestUpdate())}checkValidity(){return this.validityController.checkValidity()}reportValidity(){return this.validityController.syncConstraints(),this.touched=!0,this.syncCustomStates(),this.internals.reportValidity()}setCustomValidity(message){this.validityController.setCustomValidity(message??""),this.syncCustomStates(),this.toggleAttribute("data-invalid",this.touched&&!this.internals.validity.valid),this.requestUpdate()}get normalizedEntries(){const raw=this.locales,cached=this.entriesCache;if(cached&&cached.raw===raw&&cached.tick===this.registryTick)return cached.rows;const rows=raw!==void 0?raw.map(entry=>typeof entry=="string"?{tag:entry,label:localeNativeName(entry)}:{tag:entry.tag,label:entry.label!==void 0&&entry.label.trim().length>0?entry.label:localeNativeName(entry.tag),country:entry.country}):getRegisteredLyraLocales().map(tag=>({tag,label:localeNativeName(tag)}));return this.entriesCache={raw,tick:this.registryTick,rows},rows}normalizeSearch(text,locale){return text.toLocaleLowerCase(resolveIntlLocale(locale)).normalize("NFKD").replace(/\p{M}/gu,"").trim()}get visibleEntries(){const rows=this.normalizedEntries;if(!this.searchable)return rows;const locale=this.effectiveLocale,query2=this.normalizeSearch(this.searchQuery,locale);if(!query2)return rows;const cached=this.visibleCache;if(cached&&cached.rows===rows&&cached.query===this.searchQuery&&cached.locale===locale)return cached.result;let keys=this.searchKeys;if(!keys||keys.rows!==rows||keys.locale!==locale){let names,englishNames;try{names=getDisplayNames(locale,{type:"language"})}catch{}try{englishNames=getDisplayNames("en",{type:"language"})}catch{}keys={rows,locale,values:rows.map(row=>{let localizedName="",englishName="";try{localizedName=names?.of(row.tag)??""}catch{}try{englishName=englishNames?.of(row.tag)??""}catch{}return{local:[row.label,localeNativeName(row.tag),localizedName].map(text=>this.normalizeSearch(text,locale)),invariant:[row.tag,englishName].map(text=>this.normalizeSearch(text,"en"))}})},this.searchKeys=keys}const invariantQuery=this.normalizeSearch(this.searchQuery,"en"),result=rows.filter((_,index)=>keys.values[index].local.some(text=>text.includes(query2))||keys.values[index].invariant.some(text=>text.includes(invariantQuery)));return this.visibleCache={rows,query:this.searchQuery,locale,result},result}clearSearch(){this.searchQuery="",this.searchFocusGeneration++,this.searchAnnouncements?.release(),this.searchAnnouncements=void 0}queueSearchFocus(){if(!this.searchable||!this.open||this.liveDisabled)return;const generation=++this.searchFocusGeneration,ownerDocument=this.ownerDocument,outerFocus=activeElementIn(ownerDocument),innerFocus=shadowFocusTarget(this);this.updateComplete.then(()=>{generation!==this.searchFocusGeneration||!this.isConnected||!this.open||!this.searchable||this.liveDisabled||this.ownerDocument!==ownerDocument||activeElementIn(ownerDocument)!==outerFocus||shadowFocusTarget(this)!==innerFocus||this.searchElement?.focus()})}get previewTag(){return this._value||this.effectiveLocale}entryFor(tag){const rows=this.normalizedEntries;if(this.entryIndex?.rows!==rows){const byTag=new Map;for(const row of rows)byTag.has(row.tag)||byTag.set(row.tag,row);this.entryIndex={rows,byTag}}return this.entryIndex.byTag.get(tag)}labelFor(tag){return this.entryFor(tag)?.label??localeNativeName(tag)}show(){this.open||this.liveDisabled||(this.open=!0,this.queueSearchFocus())}hide(){this.open&&(this.open=!1,this.setActiveIndex(-1))}dismissFromEscape(){if(this.open){if(this.searchable&&this.searchQuery.length){this.clearSearch(),this.setActiveIndex(this.visibleEntries.length?0:-1);return}this.deactivatePopupOverlay(!0),this.hide()}}activatePopupOverlay(){if(this.overlayHandle?.isActive()){this.overlayHandle.resume();return}this.overlayHandle=activateNonmodalOverlay({host:this,panel:()=>this.renderRoot.querySelector('[part="listbox"]'),onEscape:()=>this.dismissFromEscape(),onBackdrop:()=>this.hide(),restoreFocusTo:()=>this.renderRoot.querySelector('[part="trigger"]')})}deactivatePopupOverlay(restoreFocus){const overlay=this.overlayHandle;this.overlayHandle=void 0,overlay?.deactivate({restoreFocus}),this.popupController.unbindPointer()}syncPopup(){if(this.cleanup?.(),this.cleanup=void 0,!this.open||!this.isConnected){this.deactivatePopupOverlay(!1);return}this.activatePopupOverlay(),this.popupController.bindPointer();const anchor=this.renderRoot.querySelector(this.loadFailureTag!==void 0?'[part="form-control"]':'[part="trigger"]'),listbox=this.renderRoot.querySelector('[part="listbox"]');anchor&&listbox&&(this.placedTopLayer=syncTopLayerRelease(listbox,this.placedTopLayer,this.topLayer),this.cleanup=place(anchor,listbox,topLayerPlacement(this.topLayer,resolveEffectivePositioningStrategy(this,void 0,"fixed"))))}async settleClosedLayout(){const token=++this.closeSettleToken;await awaitPopupAnimations(this,()=>this.renderRoot.querySelector('[part="listbox"]'),()=>this.closeSettleToken===token)&&(this.listboxHidden=!0)}updated(changed){super.updated(changed),this.limitMounted&&changed.has("inputLimited")&&this.inputLimited&&this.limitAnnouncements.announcePolite(this.localize("localePickerInputLimit")),this.limitMounted=!0,this.syncExternalDescription();const activeId=this.open&&this.activeIndex>=0?`${this.listId}-opt-${this.activeIndex}`:"",previous=this.renderRoot.querySelector('[part="option"][data-active]');previous?.id!==activeId&&previous?.removeAttribute("data-active"),activeId&&this.renderRoot.querySelector(`[id="${activeId}"]`)?.setAttribute("data-active",""),(changed.has("open")||this.open&&(changed.has("locales")||changed.has("registryTick")||changed.has("locale")||changed.has("searchQuery")||changed.has("searchable")||changed.has("loadFailureTag")||changed.has("topLayer")))&&this.syncPopup(),changed.has("open")&&(this.open?this.closeSettleToken++:this.settleClosedLayout()),this.open&&this.searchable&&changed.has("searchQuery")&&this.searchQuery.trim()&&this.visibleEntries.length===0&&(this.searchAnnouncements??=acquireAnnouncementSink("polite",{document:this.ownerDocument,source:this}),this.searchAnnouncements.announce(this.localize("localePickerEmpty"))),changed.has("searchable")&&this.searchable&&shadowFocusTarget(this)===this.triggerElement&&this.queueSearchFocus(),(changed.has("touched")||changed.has("required")||changed.has("value"))&&this.toggleAttribute("data-invalid",this.touched&&!this.internals.validity.valid)}cancelLocaleLoad(){this.loadAnnouncements?.release(),this.loadAnnouncements=void 0,this.loadGeneration++,this.loadingTag=void 0,this.loadFailureTag=void 0}announceLoad(key){this.loadAnnouncements??=acquireAnnouncementSink("polite",{document:this.ownerDocument,source:this}),this.loadAnnouncements.announce(key==="loading"?this.localize("loading"):this.localize("statusError"))}commit(tag){if(!(this.commitDispatching||this.liveDisabled||!this.entryFor(tag))){if(tag===this._value&&tag===getLyraLocale()){this.hide();return}this.commitDispatching=!0;try{const previousValue=this._value,version=this.valueWriteVersion,loader=this.localeLoader,generation=this.loadGeneration,detail=Object.freeze({value:tag,previousValue,direction:getLyraLocaleDirection(tag)});if(this.emit("lr-change-request",detail,{cancelable:!0}).defaultPrevented||this.liveDisabled||this.valueWriteVersion!==version||this.loadGeneration!==generation||this.localeLoader!==loader||!this.entryFor(tag))return;const commitValue=()=>{const searchFocus=this.searchElement&&shadowFocusTarget(this)===this.searchElement?this.searchElement:void 0;this.value=tag,this.hide(),setLyraLocale(tag);const committed=Object.freeze({...detail,direction:getLyraLocaleDirection(tag)});emitValueEvents(this,"input",committed,detail2=>this.emit("lr-input",detail2)),emitValueEvents(this,"change",committed,detail2=>this.emit("lr-change",detail2)),searchFocus&&this.isConnected&&this.searchable&&shadowFocusTarget(this)===searchFocus&&this.focus()};if(loader===void 0){commitValue();return}this.cancelLocaleLoad();const operation=this.loadGeneration,ownerDocument=this.ownerDocument;this.loadingTag=tag,this.announceLoad("loading");const ownsSelection=()=>this.isConnected&&this.ownerDocument===ownerDocument&&this.loadGeneration===operation&&this.valueWriteVersion===version&&this.localeLoader===loader&&!this.liveDisabled&&this.entryFor(tag)!==void 0;Promise.resolve().then(()=>{if(ownsSelection())return loader(tag)}).then(()=>{ownsSelection()&&commitValue()},()=>{ownsSelection()&&(this.loadingTag=void 0,this.loadFailureTag=tag,this.announceLoad("statusError"))})}finally{this.commitDispatching=!1}}}isSearchFocusTransfer(event){const related=event.relatedTarget;return(this.searchable||event.currentTarget===this.searchElement||related===this.searchElement)&&related!==null&&"nodeType"in related&&this.renderRoot.contains(related)}typeAhead(char){this.typeBuffer.add(char,this.effectiveLocale);const rows=this.normalizedEntries;if(!rows.length)return;const currentTag=this.open?rows[this.activeIndex]?.tag:this.previewTag,currentIndex=rows.findIndex(r=>r.tag===currentTag),match=this.typeBuffer.match(rows,currentIndex,row=>row.label,this.effectiveLocale);match!==null&&(this.open?this.setActiveIndex(match):this.commit(rows[match].tag))}setActiveIndex(index){const last=this.visibleEntries.length-1,next=last<0||index<0?-1:Math.min(last,index);this.activeIndex=next,this.queueActiveScroll()}queueActiveScroll(){const generation=++this.activeScrollGeneration,index=this.activeIndex;index<0||!this.open||this.updateComplete.then(()=>{if(generation!==this.activeScrollGeneration||!this.isConnected||!this.open||this.activeIndex!==index)return;const row=this.shadowRoot?.getElementById(`${this.listId}-opt-${index}`),popup=this.renderRoot.querySelector('[part="listbox"]');row&&popup&&revealRow(popup,row,this.searchElement?.offsetHeight)})}renderRows(rows,activeId){return rows.map((entry,i)=>{const id=`${this.listId}-opt-${i}`,selected=entry.tag===this._value;return html`<div
1
+ import{__decorate}from"tslib";import{AnnouncementSinkController}from"../../../internal/announcer.js";import{guard}from"lit/directives/guard.js";import{emitValueEvents}from"../../../internal/value-events.js";import{renderFormControlHintError}from"../../../internal/form-control-template.js";import{installFormControlLabelSupport}from"../../../internal/form-control-labels.js";import{FormControlController,reflectFormName}from"../../../internal/form-control-controller.js";import{GlassScrollLayer}from"../../../internal/glass-scroll-layer.js";import{acquireAnnouncementSink}from"../../../internal/announcer.js";import{acquireNativeControlDescription}from"../../../internal/native-control-description.js";import{html,nothing}from"lit";import{property,query,state}from"lit/decorators.js";import{LyraElement}from"../../../internal/lyra-element.js";import{LyraFormControlElement}from"../../../internal/form-control-element.js";import{deferredPlaceReady as place,waitForDeferredPlacement,syncTopLayerRelease,topLayerPlacement}from"../../../internal/anchored-overlay-runtime.js";import{resolveEffectivePositioningStrategy}from"../../../internal/positioning-strategy.js";import{hostAriaLabel,nextId,srOnly}from"../../../internal/a11y.js";import{chevronIcon}from"../../../internal/icons.js";import{VALIDITY_ANCHOR}from"../../../internal/anchored-validity.js";import{syncValidityStates}from"../../../internal/custom-states.js";import{TypeAheadBuffer}from"../../../internal/type-ahead-buffer.js";import{resolveListMove}from"../../../internal/list-navigation.js";import{getDisplayNames,resolveIntlLocale}from"../../../internal/intl-cache.js";import{activeElementIn,shadowFocusTarget}from"../../../internal/active-element.js";import{activateNonmodalOverlay}from"../../../internal/nonmodal-overlay-manager.js";import{getLyraLocale,getLyraLocaleDirection,getRegisteredLyraLocales,subscribeLyraLocaleRegistry,setLyraLocale}from"../../../internal/localization-runtime.js";import{localeNativeName}from"../../media/flag/language-map.js";import{sizes}from"../../../internal/sizes.styles.js";import{styles}from"./locale-picker.styles.js";import{autocorrectConverter,declaredDefaultConverter,spellcheckConverter}from"../../../internal/converters.js";import{getFormOwner,isBarredFromValidation,setFormOwner}from"../../../internal/form-associated.js";import{relayNativeEvent}from"../../../internal/native-event-relay.js";import{PopupController,emitPopupEvent}from"../../../internal/popup-controller.js";import{revealRow}from"../../../internal/reveal-row.js";import{SlotPresenceController}from"../../../internal/slot-presence-controller.js";import{LYRA_DEFAULT_localePickerEmpty,LYRA_DEFAULT_localePickerInputLimit,LYRA_DEFAULT_localePickerLabel,LYRA_DEFAULT_localePickerRequired,LYRA_DEFAULT_localePickerSearchLabel}from"../../../internal/default-strings/forms.generated.js";import{LYRA_DEFAULT_fieldRequired,LYRA_DEFAULT_loading,LYRA_DEFAULT_retry,LYRA_DEFAULT_statusError}from"../../../internal/default-strings/shared.generated.js";installFormControlLabelSupport();const MAX_LOCALE_ENTRIES=512,localeSpellcheckConverter={...spellcheckConverter,fromAttribute:(value,type)=>value===null?void 0:spellcheckConverter.fromAttribute?.(value,type)};function snapshotLocaleCatalog(source){if(!Array.isArray(source))return Object.freeze([]);const rows=[];for(let index=0;index<Math.min(source.length,MAX_LOCALE_ENTRIES);index+=1)try{const raw=source[index];if(typeof raw=="string"){raw.length>0&&rows.push(raw);continue}if(raw===null||typeof raw!="object")continue;const candidate=raw,tag=candidate.tag,label=candidate.label,country=candidate.country;if(typeof tag!="string"||tag.length===0||label!==void 0&&typeof label!="string"||country!==void 0&&typeof country!="string")continue;rows.push(Object.freeze({tag,...label===void 0?{}:{label},...country===void 0?{}:{country}}))}catch{}return Object.freeze(rows)}class LyraLocalePicker extends LyraFormControlElement{static{this.defaultStrings={...super.defaultStrings,fieldRequired:LYRA_DEFAULT_fieldRequired,loading:LYRA_DEFAULT_loading,localePickerEmpty:LYRA_DEFAULT_localePickerEmpty,localePickerInputLimit:LYRA_DEFAULT_localePickerInputLimit,localePickerLabel:LYRA_DEFAULT_localePickerLabel,localePickerRequired:LYRA_DEFAULT_localePickerRequired,localePickerSearchLabel:LYRA_DEFAULT_localePickerSearchLabel,retry:LYRA_DEFAULT_retry,statusError:LYRA_DEFAULT_statusError}}static{this.formAssociated=!0}static{this.styles=[LyraElement.styles,sizes,srOnly,styles]}static{this.properties={customError:{attribute:"custom-error",reflect:!0,noAccessor:!0},disabled:{type:Boolean,reflect:!0,noAccessor:!0},required:{type:Boolean,reflect:!0,noAccessor:!0},value:{attribute:!1,noAccessor:!0},defaultValue:{attribute:"value",reflect:!0,useDefault:!0,noAccessor:!0},name:{reflect:!0,noAccessor:!0}}}get localeLoader(){return this._localeLoader}set localeLoader(next){const previous=this._localeLoader;previous!==next&&(this.cancelLocaleLoad(),this._localeLoader=next,this.requestUpdate("localeLoader",previous))}get locales(){return this._locales}set locales(next){this.cancelLocaleLoad();const previous=this._locales;this.inputLimited=Array.isArray(next)&&next.length>MAX_LOCALE_ENTRIES,this._locales=next===void 0?void 0:snapshotLocaleCatalog(next),this.requestUpdate("locales",previous)}get autocorrect(){return this.autocorrectValue}set autocorrect(next){this.autocorrectValue=!!next,this.requestUpdate()}get open(){return this._open}set open(next){const old=this._open,liveDisabled=this.effectiveDisabled||typeof this.matches=="function"&&this.matches(":disabled");if(this._open=!!next&&!liveDisabled,this._open===old){next&&!this._open&&this.hasAttribute("open")&&this.removeAttribute("open");return}this.openGeneration++,this.requestUpdate("open",old)}constructor(){super(),this.withoutFlags=!1,this.topLayer=!1,this.triggerDisplay="flag-label",this.optionDisplay="label-tag",this.searchable=!1,this.autocomplete="off",this.inputMode="",this.enterKeyHint="",this.spellcheck=!1,this.autocapitalize="",this.autocorrectValue=!0,this.label="",this.hint="",this.errorText="",this.size="m",this.activeIndex=-1,this.searchQuery="",this.touched=!1,this.slotPresence=new SlotPresenceController(this),this.registryTick=0,this.searchFocusGeneration=0,this.listId=nextId("locale-picker-list"),this.controlId=nextId("locale-picker-control"),this.listboxHidden=!0,this.openGeneration=0,this.openVetoed=!1,this.lifecycleMounted=!1,this.lastRenderedOpen=!1,this.announcingHide=!1,this.restoreFocusOnClose=!1,this.popupController=new PopupController({host:this,popup:()=>this.renderRoot.querySelector('[part="listbox"]'),emit:(name,cancelable)=>emitPopupEvent(this,name,cancelable),onPointer:event=>this.onDocPointer(event)}),this._value="",this._open=!1,this._fieldsetDisabled=!1,this._name="",this._disabled=!1,this._required=!1,this._defaultValue="",this._valueDirty=!1,this.settingDefaultValue=!1,this.reflectingDefaultValue=!1,this.typeBuffer=new TypeAheadBuffer(this),this.activeScrollGeneration=0,this.localizedValidityLocale="",this.localizedIntrinsicMessage="",this.localDescriptionIds="",this.markInteracted=()=>{this.touched||(this.touched=!0,this.syncCustomStates())},this.onDocPointer=e=>{if(!e.composedPath().includes(this)){if(this.overlayHandle?.isActive()){this.overlayHandle.dismissBackdrop();return}this.hide()}},this.inputLimited=!1,this.limitAnnouncements=new AnnouncementSinkController(this),this.limitMounted=!1,this.commitDispatching=!1,this.valueWriteVersion=0,this.loadGeneration=0,this.retryLocaleLoad=()=>{const restoreFocus=shadowFocusTarget(this)?.getAttribute("part")==="load-retry";this.loadFailureTag!==void 0&&this.commit(this.loadFailureTag),restoreFocus&&this.loadFailureTag===void 0&&this.isConnected&&shadowFocusTarget(this)?.getAttribute("part")==="load-retry"&&this.focus()},this.onTriggerClick=()=>{this.liveDisabled||(this.open?this.hide():this.show())},this.onTriggerBlur=event=>{if(this.isSearchFocusTransfer(event)){event.stopPropagation();return}this.liveDisabled||(this.touched=!0),this.syncCustomStates(),this.hide(),relayNativeEvent(this,event)},this.onTriggerFocus=event=>{if(this.isSearchFocusTransfer(event)){event.stopPropagation();return}if(this.liveDisabled){event.stopPropagation();return}relayNativeEvent(this,event)},this.onSearchInput=event=>{event.stopPropagation(),!(!this.searchable||!this.open||this.liveDisabled)&&(this.searchQuery=event.currentTarget.value,this.setActiveIndex(this.visibleEntries.length?0:-1))},this.onSearchChange=event=>{event.stopPropagation()},this.onSearchKeyDown=event=>{if(this.liveDisabled||!this.open||event.isComposing||event.keyCode===229)return;const rows=this.visibleEntries;if(event.key==="ArrowDown"||event.key==="ArrowUp")event.preventDefault(),this.setActiveIndex(event.key==="ArrowDown"?Math.min(rows.length-1,this.activeIndex+1):Math.max(0,this.activeIndex-1));else if(event.key==="Enter"){event.preventDefault();const row=rows[this.activeIndex];row&&this.commit(row.tag)}else event.key==="Escape"&&(!this.overlayHandle?.isActive()||this.overlayHandle.isTopmost())&&(event.preventDefault(),this.dismissFromEscape())},this.onKeyDown=e=>{if(this.liveDisabled||e.isComposing||e.keyCode===229)return;const rows=this.visibleEntries,move=()=>resolveListMove(e,{count:rows.length,current:this.activeIndex,orientation:"vertical",wrap:!1,clamp:!0,backwardFromMissing:"first"});switch(e.key){case"ArrowDown":if(e.preventDefault(),!this.open)return this.show();this.setActiveIndex(move()??-1),this.queueSearchFocus();break;case"ArrowUp":if(e.preventDefault(),!this.open)return this.show();this.setActiveIndex(move()??-1),this.queueSearchFocus();break;case"Enter":case" ":if(this.open){e.preventDefault();const activeRow=rows[this.activeIndex];this.activeIndex>=0&&activeRow?this.commit(activeRow.tag):this.hide()}break;case"Escape":this.open&&(!this.overlayHandle?.isActive()||this.overlayHandle.isTopmost())&&(e.preventDefault(),this.dismissFromEscape());break;case"Home":this.open&&(e.preventDefault(),this.setActiveIndex(move()??-1));break;case"End":this.open&&(e.preventDefault(),this.setActiveIndex(move()??-1));break;default:this.typeBuffer.accepts(e)&&(this.searchable?(e.preventDefault(),this.show(),this.searchQuery+=e.key,this.setActiveIndex(this.visibleEntries.length?0:-1),this.queueSearchFocus()):this.typeAhead(e.key));break}},this.onListboxMouseDown=e=>{e.composedPath()[0]!==this.searchElement&&e.preventDefault()},this.onListboxClick=e=>{if(this.liveDisabled)return;const tag=e.target.closest('[part="option"]')?.dataset.value;tag!==void 0&&this.commit(tag)},this.validityController=new FormControlController(this,{invalid:init=>this.emit("lr-invalid",null,init),interacted:this.markInteracted,customError:()=>this.validityController.customValidityMessage}),this.internals=this.validityController.formInternals,new GlassScrollLayer(this,'[part="listbox"]',()=>this.open),this.internals.setFormValue("")}get liveDisabled(){return this.effectiveDisabled||this.matches(":disabled")}focus(options){this.liveDisabled||this.triggerElement?.focus(options)}blur(){this.searchElement&&shadowFocusTarget(this)===this.searchElement?this.searchElement.blur():this.triggerElement?.blur()}click(){this.liveDisabled||this.triggerElement?.click()}get input(){return this.searchable?this.searchElement??null:null}get form(){return getFormOwner(this.internals)}set form(owner){setFormOwner(this,owner)}[VALIDITY_ANCHOR](){return this.renderRoot?.querySelector('[part="trigger"]')??null}syncExternalDescription(){if(!this.isConnected)return;const target=this.triggerElement??null;target&&(this.externalDescriptionLease?this.externalDescriptionLease.update(target):this.externalDescriptionLease=acquireNativeControlDescription(this,target,()=>this.localDescriptionIds))}releaseExternalDescription(){this.externalDescriptionLease?.release(),this.externalDescriptionLease=void 0}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this.syncExternalDescription(),this.syncLocaleAttributeForLocalization(),this.updateValidity(),this.stopRegistrySubscription=subscribeLyraLocaleRegistry(()=>{this.registryTick+=1}),this.hasUpdated&&this.open&&queueMicrotask(()=>this.syncPopup())}disconnectedCallback(){this.popupController.cancel(),(this.open||this.lastRenderedOpen)&&this.hasUpdated&&!this.announcingHide&&emitPopupEvent(this,"lr-hide",!1),this.lastRenderedOpen=!1,this.clearSearch(),this.cancelLocaleLoad(),this.loadAnnouncements?.release(),this.loadAnnouncements=void 0,this.listboxHidden=!0,this.releaseExternalDescription(),super.disconnectedCallback(),this.cleanup?.(),this.cleanup=void 0,this.deactivatePopupOverlay(!1),this.stopRegistrySubscription?.(),this.stopRegistrySubscription=void 0,this.typeBuffer.clear(),this.activeScrollGeneration+=1,this.open=!1,this.suppressedOpenGeneration=this.openGeneration}adoptedCallback(){this.popupController.cancel(),this.clearSearch(),this.cancelLocaleLoad(),this.loadAnnouncements?.release(),this.loadAnnouncements=void 0,super.adoptedCallback(),this.releaseExternalDescription(),this.hasUpdated&&this.syncExternalDescription(),this.cleanup?.(),this.cleanup=void 0,this.popupController.unbindPointer(),this.overlayHandle?.suspend(),this.typeBuffer.clear(),this.open&&queueMicrotask(()=>this.syncPopup())}willUpdate(changed){super.willUpdate(changed),changed.has("locale")&&this.syncLocaleAttributeForLocalization(),this.hasUpdated&&this.refreshLocalizedIntrinsicValidity(changed),changed.has("searchable")&&!this.searchable&&(this.clearSearch(),this.searchElement&&shadowFocusTarget(this)===this.searchElement&&this.focus()),this.announceOpenTransition(changed),!this.openVetoed&&changed.has("open")&&!this.open&&(this.activeIndex=-1,this.clearSearch()),!this.openVetoed&&changed.has("open")&&this.open&&this.setActiveIndex(this.visibleEntries.findIndex(row=>row.tag===this._value)),this.open&&(this.searchable||changed.has("locales")||changed.has("registryTick"))&&this.activeIndex>=0&&(this.activeIndex=Math.min(this.activeIndex,this.visibleEntries.length-1),this.queueActiveScroll()),this.open&&(this.listboxHidden=!1)}get value(){return this._value}set value(next){this.cancelLocaleLoad(),this.valueWriteVersion++;const old=this._value;this.settingDefaultValue||(this._valueDirty=!0),this._value=next??"",this.internals.setFormValue(this._value),this.updateValidity(),this.requestUpdate("value",old)}get defaultValue(){return this._defaultValue}set defaultValue(next){if(this.reflectingDefaultValue)return;const old=this._defaultValue;this._defaultValue=next??"",this.reflectingDefaultValue=!0;try{this._defaultValue?this.setAttribute("value",this._defaultValue):this.removeAttribute("value")}finally{this.reflectingDefaultValue=!1}this._valueDirty||this.restoreLiveValueFromDefault(),this.requestUpdate("defaultValue",old)}get name(){return this._name}set name(next){const old=this._name;this._name=next??"",reflectFormName(this,this._name),this.requestUpdate("name",old)}get disabled(){return this._disabled}set disabled(next){next&&this.cancelLocaleLoad();const old=this._disabled;this._disabled=!!next,this.toggleAttribute("disabled",this._disabled),this._fieldsetDisabled=this.validityController?.fieldsetDisabled(this._fieldsetDisabled)??this._fieldsetDisabled,this._disabled&&this.hide(),this.updateValidity(),this.requestUpdate("disabled",old)}get required(){return this._required}set required(next){const old=this._required;this._required=!!next,this.toggleAttribute("required",this._required),this.updateValidity(),this.requestUpdate("required",old)}get effectiveDisabled(){return this.disabled||this._fieldsetDisabled}updateValidity(){this.localizedValidityLocale=this.effectiveMessageLocale;const valueMissing=this.hasMissingRequiredValue(),message=valueMissing?this.localize("localePickerRequired"):"";this.localizedIntrinsicMessage=message,valueMissing?this.validityController.setValidity({valueMissing:!0},message):this.validityController.setValidity({}),this.syncCustomStates()}refreshLocalizedIntrinsicValidity(changed){const locale=this.effectiveMessageLocale,message=this.hasMissingRequiredValue()?this.localize("localePickerRequired"):"";(changed.has("strings")||locale!==this.localizedValidityLocale||message!==this.localizedIntrinsicMessage)&&this.updateValidity()}hasMissingRequiredValue(){return!this.isBarred()&&this.required&&!this._value}syncLocaleAttributeForLocalization(){this.locale?this.getAttribute("locale")!==this.locale&&this.setAttribute("locale",this.locale):this.hasAttribute("locale")&&this.removeAttribute("locale")}isBarred(){return isBarredFromValidation(this,this.internals)}syncCustomStates(){syncValidityStates(this.internals,{required:this.required,hasInteracted:this.touched,barred:this.isBarred()})}formResetCallback(){this.touched=!1,this.clearSearch(),this.restoreLiveValueFromDefault()}restoreLiveValueFromDefault(){this.settingDefaultValue=!0;try{this.value=this._defaultValue}finally{this.settingDefaultValue=!1}this._valueDirty=!1}formStateRestoreCallback(state2,_mode){this.value=typeof state2=="string"?state2:""}formDisabledCallback(disabled){this.validityController?.reflectingDisabled||(disabled&&this.cancelLocaleLoad(),this._fieldsetDisabled=disabled,disabled&&this.hide(),this.updateValidity(),this.requestUpdate())}checkValidity(){return this.validityController.checkValidity()}reportValidity(){return this.validityController.syncConstraints(),this.touched=!0,this.syncCustomStates(),this.internals.reportValidity()}setCustomValidity(message){this.validityController.setCustomValidity(message??""),this.syncCustomStates(),this.toggleAttribute("data-invalid",this.touched&&!this.internals.validity.valid),this.requestUpdate()}get normalizedEntries(){const raw=this.locales,cached=this.entriesCache;if(cached&&cached.raw===raw&&cached.tick===this.registryTick)return cached.rows;const rows=raw!==void 0?raw.map(entry=>typeof entry=="string"?{tag:entry,label:localeNativeName(entry)}:{tag:entry.tag,label:entry.label!==void 0&&entry.label.trim().length>0?entry.label:localeNativeName(entry.tag),country:entry.country}):getRegisteredLyraLocales().map(tag=>({tag,label:localeNativeName(tag)}));return this.entriesCache={raw,tick:this.registryTick,rows},rows}normalizeSearch(text,locale){return text.toLocaleLowerCase(resolveIntlLocale(locale)).normalize("NFKD").replace(/\p{M}/gu,"").trim()}get visibleEntries(){const rows=this.normalizedEntries;if(!this.searchable)return rows;const locale=this.effectiveLocale,query2=this.normalizeSearch(this.searchQuery,locale);if(!query2)return rows;const cached=this.visibleCache;if(cached&&cached.rows===rows&&cached.query===this.searchQuery&&cached.locale===locale)return cached.result;let keys=this.searchKeys;if(!keys||keys.rows!==rows||keys.locale!==locale){let names,englishNames;try{names=getDisplayNames(locale,{type:"language"})}catch{}try{englishNames=getDisplayNames("en",{type:"language"})}catch{}keys={rows,locale,values:rows.map(row=>{let localizedName="",englishName="";try{localizedName=names?.of(row.tag)??""}catch{}try{englishName=englishNames?.of(row.tag)??""}catch{}return{local:[row.label,localeNativeName(row.tag),localizedName].map(text=>this.normalizeSearch(text,locale)),invariant:[row.tag,englishName].map(text=>this.normalizeSearch(text,"en"))}})},this.searchKeys=keys}const invariantQuery=this.normalizeSearch(this.searchQuery,"en"),result=rows.filter((_,index)=>keys.values[index].local.some(text=>text.includes(query2))||keys.values[index].invariant.some(text=>text.includes(invariantQuery)));return this.visibleCache={rows,query:this.searchQuery,locale,result},result}clearSearch(){this.searchQuery="",this.searchFocusGeneration++,this.searchAnnouncements?.release(),this.searchAnnouncements=void 0}queueSearchFocus(){if(!this.searchable||!this.open||this.liveDisabled)return;const generation=++this.searchFocusGeneration,ownerDocument=this.ownerDocument,outerFocus=activeElementIn(ownerDocument),innerFocus=shadowFocusTarget(this);this.updateComplete.then(()=>{generation!==this.searchFocusGeneration||!this.isConnected||!this.open||!this.searchable||this.liveDisabled||this.ownerDocument!==ownerDocument||activeElementIn(ownerDocument)!==outerFocus||shadowFocusTarget(this)!==innerFocus||this.searchElement?.focus()})}get previewTag(){return this._value||this.effectiveLocale}entryFor(tag){const rows=this.normalizedEntries;if(this.entryIndex?.rows!==rows){const byTag=new Map;for(const row of rows)byTag.has(row.tag)||byTag.set(row.tag,row);this.entryIndex={rows,byTag}}return this.entryIndex.byTag.get(tag)}labelFor(tag){return this.entryFor(tag)?.label??localeNativeName(tag)}show(){this.open||this.liveDisabled||(this.open=!0,this.queueSearchFocus())}hide(){this.open&&(this.open=!1)}dismissFromEscape(){if(this.open){if(this.searchable&&this.searchQuery.length){this.clearSearch(),this.setActiveIndex(this.visibleEntries.length?0:-1);return}this.restoreFocusOnClose=!0,this.hide()}}activatePopupOverlay(){if(this.overlayHandle?.isActive()){this.overlayHandle.resume();return}this.overlayHandle=activateNonmodalOverlay({host:this,panel:()=>this.renderRoot.querySelector('[part="listbox"]'),onEscape:()=>this.dismissFromEscape(),onBackdrop:()=>this.hide(),restoreFocusTo:()=>this.renderRoot.querySelector('[part="trigger"]')})}deactivatePopupOverlay(restoreFocus){const overlay=this.overlayHandle;this.overlayHandle=void 0,overlay?.deactivate({restoreFocus}),this.popupController.unbindPointer()}syncPopup(){if(this.cleanup?.(),this.cleanup=void 0,!this.open||!this.isConnected){this.deactivatePopupOverlay(this.isConnected&&this.restoreFocusOnClose),this.restoreFocusOnClose=!1;return}this.activatePopupOverlay(),this.popupController.bindPointer();const anchor=this.renderRoot.querySelector(this.loadFailureTag!==void 0?'[part="form-control"]':'[part="trigger"]'),listbox=this.renderRoot.querySelector('[part="listbox"]');anchor&&listbox&&(this.placedTopLayer=syncTopLayerRelease(listbox,this.placedTopLayer,this.topLayer),this.cleanup=place(anchor,listbox,topLayerPlacement(this.topLayer,resolveEffectivePositioningStrategy(this,void 0,"fixed"))))}announceOpenTransition(changed){if(this.openVetoed=!1,this.openTransition=void 0,!changed.has("open")||!this.lifecycleMounted||!this.isConnected||this.suppressedOpenGeneration===this.openGeneration||changed.get("open")===this.open)return;const opening=this.open,generation=this.openGeneration;this.announcingHide=!opening;try{!opening&&this.liveDisabled?emitPopupEvent(this,"lr-hide",!1):this.openVetoed=this.popupController.announce(opening,()=>{this.isConnected&&this.openGeneration===generation&&(opening||!this.liveDisabled)&&(this._open=!opening)})}finally{this.announcingHide=!1}if(!this.isConnected||generation!==this.openGeneration||opening!==this.open){this.openVetoed=this.open===changed.get("open");return}this.openVetoed&&this.liveDisabled&&!this.open&&(this.openVetoed=!1),this.openVetoed||(this.popupController.cancel(),this.openTransition=opening)}updated(changed){super.updated(changed),this.limitMounted&&changed.has("inputLimited")&&this.inputLimited&&this.limitAnnouncements.announcePolite(this.localize("localePickerInputLimit")),this.limitMounted=!0,this.syncExternalDescription();const activeId=this.open&&this.activeIndex>=0?`${this.listId}-opt-${this.activeIndex}`:"",previous=this.renderRoot.querySelector('[part="option"][data-active]');previous?.id!==activeId&&previous?.removeAttribute("data-active"),activeId&&this.renderRoot.querySelector(`[id="${activeId}"]`)?.setAttribute("data-active",""),(changed.has("open")&&!this.openVetoed||this.open&&(changed.has("locales")||changed.has("registryTick")||changed.has("locale")||changed.has("searchQuery")||changed.has("searchable")||changed.has("loadFailureTag")||changed.has("topLayer")))&&this.syncPopup(),this.openTransition!==void 0&&this.isConnected&&this.popupController.settle(this.openTransition?"lr-after-show":"lr-after-hide",{waitForPosition:()=>waitForDeferredPlacement(()=>this.cleanup),conceal:()=>{this.listboxHidden=!0}}),this.openVetoed&&(this.restoreFocusOnClose=!1),this.lastRenderedOpen=this.open&&this.isConnected,this.lifecycleMounted=!0,this.suppressedOpenGeneration=void 0,this.open&&this.searchable&&changed.has("searchQuery")&&this.searchQuery.trim()&&this.visibleEntries.length===0&&(this.searchAnnouncements??=acquireAnnouncementSink("polite",{document:this.ownerDocument,source:this}),this.searchAnnouncements.announce(this.localize("localePickerEmpty"))),changed.has("searchable")&&this.searchable&&shadowFocusTarget(this)===this.triggerElement&&this.queueSearchFocus(),(changed.has("touched")||changed.has("required")||changed.has("value"))&&this.toggleAttribute("data-invalid",this.touched&&!this.internals.validity.valid)}cancelLocaleLoad(){this.loadAnnouncements?.release(),this.loadAnnouncements=void 0,this.loadGeneration++,this.loadingTag=void 0,this.loadFailureTag=void 0}announceLoad(key){this.loadAnnouncements??=acquireAnnouncementSink("polite",{document:this.ownerDocument,source:this}),this.loadAnnouncements.announce(key==="loading"?this.localize("loading"):this.localize("statusError"))}commit(tag){if(!(this.commitDispatching||this.liveDisabled||!this.entryFor(tag))){if(tag===this._value&&tag===getLyraLocale()){this.hide();return}this.commitDispatching=!0;try{const previousValue=this._value,version=this.valueWriteVersion,loader=this.localeLoader,generation=this.loadGeneration,detail=Object.freeze({value:tag,previousValue,direction:getLyraLocaleDirection(tag)});if(this.emit("lr-change-request",detail,{cancelable:!0}).defaultPrevented||this.liveDisabled||this.valueWriteVersion!==version||this.loadGeneration!==generation||this.localeLoader!==loader||!this.entryFor(tag))return;const commitValue=()=>{const searchFocus=this.searchElement&&shadowFocusTarget(this)===this.searchElement?this.searchElement:void 0;this.value=tag,this.hide(),setLyraLocale(tag);const committed=Object.freeze({...detail,direction:getLyraLocaleDirection(tag)});emitValueEvents(this,"input",committed,detail2=>this.emit("lr-input",detail2)),emitValueEvents(this,"change",committed,detail2=>this.emit("lr-change",detail2)),searchFocus&&this.isConnected&&this.searchable&&shadowFocusTarget(this)===searchFocus&&this.focus()};if(loader===void 0){commitValue();return}this.cancelLocaleLoad();const operation=this.loadGeneration,ownerDocument=this.ownerDocument;this.loadingTag=tag,this.announceLoad("loading");const ownsSelection=()=>this.isConnected&&this.ownerDocument===ownerDocument&&this.loadGeneration===operation&&this.valueWriteVersion===version&&this.localeLoader===loader&&!this.liveDisabled&&this.entryFor(tag)!==void 0;Promise.resolve().then(()=>{if(ownsSelection())return loader(tag)}).then(()=>{ownsSelection()&&commitValue()},()=>{ownsSelection()&&(this.loadingTag=void 0,this.loadFailureTag=tag,this.announceLoad("statusError"))})}finally{this.commitDispatching=!1}}}isSearchFocusTransfer(event){const related=event.relatedTarget;return(this.searchable||event.currentTarget===this.searchElement||related===this.searchElement)&&related!==null&&"nodeType"in related&&this.renderRoot.contains(related)}typeAhead(char){this.typeBuffer.add(char,this.effectiveLocale);const rows=this.normalizedEntries;if(!rows.length)return;const currentTag=this.open?rows[this.activeIndex]?.tag:this.previewTag,currentIndex=rows.findIndex(r=>r.tag===currentTag),match=this.typeBuffer.match(rows,currentIndex,row=>row.label,this.effectiveLocale);match!==null&&(this.open?this.setActiveIndex(match):this.commit(rows[match].tag))}setActiveIndex(index){const last=this.visibleEntries.length-1,next=last<0||index<0?-1:Math.min(last,index);this.activeIndex=next,this.queueActiveScroll()}queueActiveScroll(){const generation=++this.activeScrollGeneration,index=this.activeIndex;index<0||!this.open||this.updateComplete.then(()=>{if(generation!==this.activeScrollGeneration||!this.isConnected||!this.open||this.activeIndex!==index)return;const row=this.shadowRoot?.getElementById(`${this.listId}-opt-${index}`),popup=this.renderRoot.querySelector('[part="listbox"]');row&&popup&&revealRow(popup,row,this.searchElement?.offsetHeight)})}renderRows(rows,activeId){return rows.map((entry,i)=>{const id=`${this.listId}-opt-${i}`,selected=entry.tag===this._value;return html`<div
2
2
  part="option"
3
3
  id=${id}
4
4
  role="option"
@@ -1,2 +1,2 @@
1
- /** @deprecated Import @aceshooting/lyra-ui/components/lr-locale-picker.js to register this component. */
1
+ /** @deprecated Import @aceshooting/lyra-ui/components/lr-locale-picker.js to register this component.*/
2
2
  export*from'./locale-picker.class.js';import'../../media/flag/flag.js';
@@ -1,9 +1,9 @@
1
1
  import{type PropertyValues,type TemplateResult}from'lit';import{LyraElement}from'../../../internal/lyra-element.js';import type{LyraAppearance,LyraSize}from'../../../internal/variants.js';import type{LyraSelectionDirection}from'../../../internal/shared-unions.js';import{type LyraFormValidator}from'../form-validator.js';
2
- /** Which characters a segment accepts. */
2
+ /** Which characters a segment accepts.*/
3
3
  export type OtpInputType='numeric'|'alpha'|'alphanumeric';
4
- /** Case transform applied as characters are entered. */
4
+ /** Case transform applied as characters are entered.*/
5
5
  export type OtpInputCase='preserve'|'upper'|'lower';
6
- /** Direction of the native compact-string selection exposed by the host editing facade. */
6
+ /** Direction of the native compact-string selection exposed by the host editing facade.*/
7
7
  export type OtpInputSelectionDirection=LyraSelectionDirection;
8
8
  /** Segment fill treatment, including the OTP-specific joined `contained` treatment. Drops the
9
9
  * shared `LyraAppearance` vocabulary's `accent`/`plain` tiers -- neither has a stylesheet rule
@@ -130,17 +130,17 @@ export type OtpInputAppearance=Extract<LyraAppearance,'outlined'|'filled'|'fille
130
130
  * @since 8.0.0
131
131
  */
132
132
  export declare class LyraOtpInput extends LyraOtpInput_base{
133
- /** Public WA-compatible intrinsic validator catalog. */
133
+ /** Public WA-compatible intrinsic validator catalog.*/
134
134
  static get validators():LyraFormValidator<LyraOtpInput>[];
135
- /** Visible label text, rendered before any `label`-slot content. */
135
+ /** Visible label text, rendered before any `label`-slot content.*/
136
136
  label:string;
137
- /** Supporting text, rendered before any `hint`-slot content. */
137
+ /** Supporting text, rendered before any `hint`-slot content.*/
138
138
  hint:string;
139
- /** Validation text, rendered before any `error`-slot content; marks the input invalid. */
139
+ /** Validation text, rendered before any `error`-slot content; marks the input invalid.*/
140
140
  errorText:string;
141
- /** SSR slot-presence hint for label content that cannot be inspected before hydration. */
141
+ /** SSR slot-presence hint for label content that cannot be inspected before hydration.*/
142
142
  withLabel:boolean;
143
- /** SSR slot-presence hint for hint content that cannot be inspected before hydration. */
143
+ /** SSR slot-presence hint for hint content that cannot be inspected before hydration.*/
144
144
  withHint:boolean;private _appearance;
145
145
  /**
146
146
  * Visual fill treatment for each segment, or a single joined `contained` field. Does not
@@ -150,7 +150,7 @@ withHint:boolean;private _appearance;
150
150
  * @default 'outlined'
151
151
  */
152
152
  get appearance():OtpInputAppearance;set appearance(next:OtpInputAppearance);
153
- /** Automatically focus the real input after the first client render. */
153
+ /** Automatically focus the real input after the first client render.*/
154
154
  autofocus:boolean;
155
155
  /** Submit the owning form after an un-canceled `lr-complete`, one task later so an asynchronous
156
156
  * listener can still veto it. Replacing or restoring the code before that task runs cancels
@@ -159,7 +159,7 @@ autosubmit:boolean;
159
159
  /** Segment size on the shared form-control ladder. An unset size inherits its containing context;
160
160
  * standalone rendering falls back to `m`. */
161
161
  size:LyraSize;
162
- /** Number of character segments. Ignored when `format` is set. */
162
+ /** Number of character segments. Ignored when `format` is set.*/
163
163
  length:number;
164
164
  /**
165
165
  * Segment layout with literal separators — `#` marks a segment, any other character becomes a
@@ -169,11 +169,11 @@ length:number;
169
169
  * segments are retained.
170
170
  */
171
171
  format:string;
172
- /** Which characters are accepted; also drives the mobile keyboard through `inputmode`. */
172
+ /** Which characters are accepted; also drives the mobile keyboard through `inputmode`.*/
173
173
  type:OtpInputType;
174
- /** Case transform applied as characters are entered. */
174
+ /** Case transform applied as characters are entered.*/
175
175
  case:OtpInputCase;
176
- /** Show entered characters as the mask glyph instead of their real value. Display-only. */
176
+ /** Show entered characters as the mask glyph instead of their real value. Display-only.*/
177
177
  mask:boolean;
178
178
  /**
179
179
  * Show the mask glyph in empty segments, so the field reads as a fixed-length code before any
@@ -183,11 +183,11 @@ withMask:boolean;
183
183
  /** Display the value without allowing edits. Unlike `disabled`, it still submits and focuses;
184
184
  * intrinsic required/completeness validity is suspended until editing is enabled again. */
185
185
  readonly:boolean;
186
- /** Native autofill hint. Defaults to the SMS one-time-code value. */
186
+ /** Native autofill hint. Defaults to the SMS one-time-code value.*/
187
187
  autocomplete:string;private focused;private readonly slotPresence;private get hasLabelSlot();private get hasHintSlot();private get hasErrorSlot();private touched;private control?;private readonly labelId;private readonly hintId;private readonly errorId;private activeSegmentIndex;private segmentValues;private rawValue;private segmentEditPendingChange;private autosubmitToken;private parsedFormatSource?;private parsedFormatCells?;constructor();
188
- /** The real native input used for focus, selection, autofill, and IME. */
188
+ /** The real native input used for focus, selection, autofill, and IME.*/
189
189
  get input():HTMLInputElement|null;
190
- /** Native control passed to constraint-validation UI as its visual anchor. */
190
+ /** Native control passed to constraint-validation UI as its visual anchor.*/
191
191
  get validationTarget():HTMLInputElement|null;
192
192
  /** Live value normalized through the same character/length contract as native editing. At most
193
193
  * the first 4,096 UTF-16 code units are inspected, stopping earlier once every segment is full. */
@@ -195,17 +195,17 @@ get value():string;set value(next:string|null);
195
195
  /** The reset default uses the same sanitizer when it becomes live; changing it also retires a
196
196
  * queued autosubmission, even while a dirty live value prevents immediate propagation. */
197
197
  get defaultValue():string;set defaultValue(next:string);private get formattedCells();private get renderedSegmentCount();
198
- /** Mapped read-only name for the number of segments derived from `format` or `length`. */
198
+ /** Mapped read-only name for the number of segments derived from `format` or `length`.*/
199
199
  get effectiveLength():number;private get cells();private sanitize;private packSegmentValues;private get filledSegmentCount();private normalizedSegmentValues;private setActiveSegment;private submitOwningForm;private completeIfTransition;private commitSegmentEdit;private get selectedSegmentRange();private segmentIndexAtCompactOffset;private syncActiveSegmentFromSelection;
200
- /** Start offset of the native compact-string selection, or `null` before first render. */
200
+ /** Start offset of the native compact-string selection, or `null` before first render.*/
201
201
  get selectionStart():number|null;set selectionStart(value:number|null);
202
- /** End offset of the native compact-string selection, or `null` before first render. */
202
+ /** End offset of the native compact-string selection, or `null` before first render.*/
203
203
  get selectionEnd():number|null;set selectionEnd(value:number|null);
204
- /** Direction of the native compact-string selection, or `null` before first render. */
204
+ /** Direction of the native compact-string selection, or `null` before first render.*/
205
205
  get selectionDirection():OtpInputSelectionDirection|null;set selectionDirection(value:OtpInputSelectionDirection|null);focus(options?:FocusOptions):void;blur():void;click():void;
206
- /** Selects the whole compact code. Fixed-cell typing or deletion honors the selected range. */
206
+ /** Selects the whole compact code. Fixed-cell typing or deletion honors the selected range.*/
207
207
  select():void;
208
- /** Sets the selection on the compact code and maps its start back to the visual fixed cells. */
208
+ /** Sets the selection on the compact code and maps its start back to the visual fixed cells.*/
209
209
  setSelectionRange(start:number|null,end:number|null,direction?:OtpInputSelectionDirection):void;setRangeText(replacement:string):void;setRangeText(replacement:string,start:number,end:number,selectMode?:SelectionMode):void;
210
- /** Clear the code (`input`, `change`, `lr-clear`); inert while blank, disabled or readonly. */
210
+ /** Clear the code (`input`, `change`, `lr-clear`); inert while blank, disabled or readonly.*/
211
211
  clear():void;formResetCallback():void;formStateRestoreCallback(state:string|File|FormData|null,reason:'autocomplete'|'restore'):void;disconnectedCallback():void;reportValidity():boolean;protected firstUpdated(changed:PropertyValues):void;adoptedCallback():void;protected updated(changed:PropertyValues):void;private readonly hostDescription;willUpdate(changed:PropertyValues<this>):void;private syncOtpStates;private updateValidity;private onInput;private onKeyDown;private onPaste;private onChange;private flushPendingChange;private onFocus;private onBlur;private renderSegment;render():TemplateResult;}declare global{interface HTMLElementTagNameMap{'lr-otp-input':LyraOtpInput;}}export{};
@@ -1,4 +1,4 @@
1
- import{__decorate}from"tslib";import{setNativeRangeText}from"../../../internal/native-text-control.js";import{SlotPresenceController}from"../../../internal/slot-presence-controller.js";import{HostDescriptionController}from"../../../internal/aria-controls.js";import{html,nothing}from"lit";import{property,query,state}from"lit/decorators.js";import{LyraElement}from"../../../internal/lyra-element.js";import{FormAssociated,isBarredFromValidation}from"../../../internal/form-associated.js";import{SET_ANCHORED_VALIDITY}from"../../../internal/anchored-validity.js";import{hostAriaLabel,nextId}from"../../../internal/a11y.js";import{finiteInteger}from"../../../internal/numbers.js";import{setCustomState}from"../../../internal/custom-states.js";import{contextualSizes}from"../../../internal/contextual-vocabulary.styles.js";import{submitFormImplicitly,submitOnEnter}from"../../../internal/submit-on-enter.js";import{styles}from"./otp-input.styles.js";import{dispatchNativeEvent,dispatchNativeInputEvent,relayNativeEvent}from"../../../internal/native-event-relay.js";import{currentValidityValidator}from"../form-validator.js";import{declaredDefaultConverter,literalSetConverter}from"../../../internal/converters.js";import{observeScrollOverflow}from"../../../internal/scroll-overflow.js";import{scrollOverflowFadeStyles}from"../../../internal/scroll-overflow.styles.js";import{LYRA_DEFAULT_otpInputIncomplete,LYRA_DEFAULT_otpInputLabel}from"../../../internal/default-strings/forms.generated.js";import{LYRA_DEFAULT_fieldRequired}from"../../../internal/default-strings/shared.generated.js";const APPEARANCE=literalSetConverter(["outlined","filled","filled-outlined","contained"],"outlined"),ACCEPTED={numeric:/[0-9]/,alpha:/[a-zA-Z]/,alphanumeric:/[a-zA-Z0-9]/},DEFAULT_LENGTH=6,MAX_LENGTH=32,MAX_FORMAT_SOURCE_LENGTH=4096,MAX_VALUE_SOURCE_LENGTH=4096;class LyraOtpInputBase extends LyraElement{static{this.styles=[LyraElement.styles,contextualSizes,scrollOverflowFadeStyles,styles]}}class LyraOtpInput extends FormAssociated(LyraOtpInputBase){static{this.defaultStrings={...super.defaultStrings,fieldRequired:LYRA_DEFAULT_fieldRequired,otpInputIncomplete:LYRA_DEFAULT_otpInputIncomplete,otpInputLabel:LYRA_DEFAULT_otpInputLabel}}static get validators(){return[currentValidityValidator("required","disabled","readonly","value","length","pattern")]}get appearance(){return this._appearance}set appearance(next){const normalized=APPEARANCE.normalizeReflected(this,"appearance",next),old=this._appearance;this._appearance=normalized,normalized!==old&&this.requestUpdate("appearance",old)}get hasLabelSlot(){return this.slotPresence.has("label")}get hasHintSlot(){return this.slotPresence.has("hint")}get hasErrorSlot(){return this.slotPresence.has("error")}constructor(){super(),this.label="",this.hint="",this.errorText="",this.withLabel=!1,this.withHint=!1,this._appearance="outlined",this.autofocus=!1,this.autosubmit=!1,this.size="m",this.length=DEFAULT_LENGTH,this.format="",this.type="numeric",this.case="preserve",this.mask=!1,this.withMask=!1,this.readonly=!1,this.autocomplete="one-time-code",this.focused=!1,this.slotPresence=new SlotPresenceController(this),this.touched=!1,this.labelId=nextId("otp-input-label"),this.hintId=nextId("otp-input-hint"),this.errorId=nextId("otp-input-error"),this.activeSegmentIndex=0,this.segmentValues=[],this.rawValue="",this.segmentEditPendingChange=!1,this.autosubmitToken=0,this.hostDescription=new HostDescriptionController(this,()=>this.control??null),this.onInput=event=>{if(event.isComposing===!0){event.stopPropagation();return}const raw=event.target.value,next=this.sanitize(raw),previousFilled=this.filledSegmentCount,layoutChanged=Array.from({length:this.renderedSegmentCount},(_,index)=>next[index]??"").some((value,index)=>value!==this.segmentValues[index]);if(this.control&&this.control.value!==next&&(this.control.value=next),next===this.value&&!layoutChanged){event.stopImmediatePropagation();return}this.touched=!0,this.value=next,relayNativeEvent(this,event),this.emit("lr-input",{value:next}),this.completeIfTransition(previousFilled)},this.onKeyDown=event=>{if(this.effectiveDisabled)return;if(event.key==="ArrowLeft"||event.key==="ArrowRight"){event.preventDefault();const physical=event.key==="ArrowRight"?1:-1,delta=this.effectiveDirection==="rtl"?-physical:physical;this.setActiveSegment(this.activeSegmentIndex+delta);return}if(event.key==="Enter"){this.readonly||submitOnEnter(this,event,{beforeSubmit:()=>this.flushPendingChange()});return}if(this.readonly||event.isComposing)return;const selection=this.selectedSegmentRange;if(event.key==="Backspace"||event.key==="Delete"){event.preventDefault();const values2=this.normalizedSegmentValues();if(selection){for(const index of selection.indices)values2[index]="";this.commitSegmentEdit(values2,event.key==="Backspace"?"deleteContentBackward":"deleteContentForward"),this.setActiveSegment(selection.first);return}const changed=!!values2[this.activeSegmentIndex];values2[this.activeSegmentIndex]="",changed&&this.commitSegmentEdit(values2,event.key==="Backspace"?"deleteContentBackward":"deleteContentForward"),event.key==="Backspace"&&this.setActiveSegment(this.activeSegmentIndex-1);return}if(event.ctrlKey||event.metaKey||event.altKey||event.key.length!==1)return;event.preventDefault();const accepted=this.sanitize(event.key).slice(0,1);if(!accepted)return;const values=this.normalizedSegmentValues(),targetIndex=selection?.first??this.activeSegmentIndex;if(selection)for(const index of selection.indices)values[index]="";values[targetIndex]=accepted,this.commitSegmentEdit(values,"insertText",accepted),this.setActiveSegment(targetIndex+1)},this.onPaste=event=>{if(this.effectiveDisabled||this.readonly)return;const pasted=this.sanitize(event.clipboardData?.getData("text")??"");if(event.preventDefault(),!pasted)return;const values=Array.from({length:this.renderedSegmentCount},(_,index)=>pasted[index]??"");this.commitSegmentEdit(values,"insertFromPaste",pasted),this.setActiveSegment(Math.min(pasted.length,this.renderedSegmentCount-1))},this.onChange=event=>{this.segmentEditPendingChange=!1;const value=this.value;relayNativeEvent(this,event),this.emit("lr-change",{value})},this.onFocus=event=>{this.focused=!0,relayNativeEvent(this,event)},this.onBlur=event=>{this.focused=!1,this.effectiveDisabled||(this.touched=!0),this.flushPendingChange(),relayNativeEvent(this,event)},observeScrollOverflow(this,()=>this.renderRoot.querySelector('[part~="segments"]'))}get input(){return this.control??null}get validationTarget(){return this.control??null}get value(){return super.value}set value(next){this.autosubmitToken+=1,this.rawValue=next??"";const normalized=this.sanitize(this.rawValue);this.packSegmentValues(normalized),super.value=normalized}get defaultValue(){return super.defaultValue}set defaultValue(next){this.autosubmitToken+=1,super.defaultValue=next}get formattedCells(){if(this.parsedFormatSource===this.format)return this.parsedFormatCells??null;if(this.parsedFormatSource=this.format,!this.format)return this.parsedFormatCells=null,null;const cells=[];let segments=0,literal="";const flushLiteral=()=>{literal&&(cells.push({kind:"separator",text:literal}),literal="")};for(const char of this.format.slice(0,MAX_FORMAT_SOURCE_LENGTH)){if(char!=="#"){literal+=char;continue}if(segments>=MAX_LENGTH)break;flushLiteral(),cells.push({kind:"segment"}),segments+=1}return flushLiteral(),this.parsedFormatCells=segments>0?cells:null,this.parsedFormatCells}get renderedSegmentCount(){const formatted=this.formattedCells;return formatted?formatted.filter(cell=>cell.kind==="segment").length:Math.min(MAX_LENGTH,Math.max(1,finiteInteger(this.length,DEFAULT_LENGTH)))}get effectiveLength(){return this.renderedSegmentCount}get cells(){return this.formattedCells??Array.from({length:this.renderedSegmentCount},()=>({kind:"segment"}))}sanitize(raw){const accepted=ACCEPTED[this.type]??ACCEPTED.numeric,limit=this.renderedSegmentCount;let out="";for(const char of(raw??"").slice(0,MAX_VALUE_SOURCE_LENGTH))if(accepted.test(char)&&(out+=char),out.length>=limit)break;return this.case==="upper"?out=out.toUpperCase():this.case==="lower"&&(out=out.toLowerCase()),out.slice(0,limit)}packSegmentValues(value){const count=this.renderedSegmentCount;this.segmentValues=Array.from({length:count},(_,index)=>value[index]??""),this.activeSegmentIndex=Math.min(value.length,count-1)}get filledSegmentCount(){return Array.isArray(this.segmentValues)?this.segmentValues.reduce((count,value)=>count+(value?1:0),0):this.value.length}normalizedSegmentValues(values=this.segmentValues){return Array.from({length:this.renderedSegmentCount},(_,index)=>values[index]??"")}setActiveSegment(index){const next=Math.min(this.renderedSegmentCount-1,Math.max(0,index));this.activeSegmentIndex=next;const caret=this.normalizedSegmentValues().slice(0,next).filter(Boolean).length;this.control?.setSelectionRange(caret,caret),this.updateComplete.then(()=>{this.renderRoot.querySelectorAll('[part~="segment"]')[next]?.scrollIntoView({block:"nearest",inline:"nearest"})})}submitOwningForm(){const form=this.getForm();form&&submitFormImplicitly(form)}completeIfTransition(previousFilled){if(previousFilled>=this.renderedSegmentCount||this.filledSegmentCount!==this.renderedSegmentCount)return;const completionValue=this.value,token=this.autosubmitToken,completeEvent=this.emit("lr-complete",{value:completionValue},{cancelable:!0});this.autosubmit&&setTimeout(()=>{token!==this.autosubmitToken||completeEvent.defaultPrevented||!this.isConnected||!this.autosubmit||this.effectiveDisabled||this.readonly||this.value!==completionValue||this.filledSegmentCount!==this.renderedSegmentCount||this.submitOwningForm()})}commitSegmentEdit(values,inputType,data=null){this.autosubmitToken+=1;const previousFilled=this.filledSegmentCount;this.segmentValues=this.normalizedSegmentValues(values);const nextValue=this.segmentValues.join("");super.value=nextValue,this.control&&(this.control.value=nextValue),this.touched=!0,dispatchNativeInputEvent(this,{data,inputType}),this.emit("lr-input",{value:nextValue}),this.segmentEditPendingChange=!0,this.completeIfTransition(previousFilled),this.requestUpdate()}get selectedSegmentRange(){const start=this.control?.selectionStart,end=this.control?.selectionEnd;if(start==null||end===void 0||end===null||start===end)return null;const indices=this.normalizedSegmentValues().map((value,index)=>value?index:-1).filter(index=>index>=0).slice(start,end),first=indices[0];return first===void 0?null:{indices,first}}segmentIndexAtCompactOffset(offset){const values=this.normalizedSegmentValues();let occupied=0;for(let index=0;index<values.length;index+=1){if(occupied>=offset)return index;values[index]&&(occupied+=1)}return Math.max(0,values.length-1)}syncActiveSegmentFromSelection(){const control=this.control;if(!control||control.selectionStart===null)return;const selected=this.selectedSegmentRange;this.activeSegmentIndex=selected?.first??this.segmentIndexAtCompactOffset(control.selectionStart)}get selectionStart(){return this.control?.selectionStart??null}set selectionStart(value){this.control&&(this.control.selectionStart=value,this.syncActiveSegmentFromSelection())}get selectionEnd(){return this.control?.selectionEnd??null}set selectionEnd(value){this.control&&(this.control.selectionEnd=value,this.syncActiveSegmentFromSelection())}get selectionDirection(){return this.control?.selectionDirection??null}set selectionDirection(value){this.control&&(this.control.selectionDirection=value)}focus(options){this.effectiveDisabled||this.control?.focus(options)}blur(){this.control?.blur()}click(){this.effectiveDisabled||this.control?.click()}select(){this.control?.select()}setSelectionRange(start,end,direction){this.control&&(this.control.setSelectionRange(start,end,direction),this.syncActiveSegmentFromSelection())}setRangeText(replacement,start,end,selectMode){const control=this.control;if(!control)return;const selectionPrefixLength=(value,offset)=>{if(offset===null)return null;const boundedOffset=Math.min(MAX_VALUE_SOURCE_LENGTH,Math.max(0,offset));return this.sanitize(value.slice(0,boundedOffset)).length},currentRaw=control.value,currentSelectionStart=selectionPrefixLength(currentRaw,control.selectionStart),currentSelectionEnd=selectionPrefixLength(currentRaw,control.selectionEnd),currentSelectionDirection=control.selectionDirection,boundedCurrent=this.sanitize(currentRaw);currentRaw!==boundedCurrent&&(control.value=boundedCurrent,currentSelectionStart!==null&&currentSelectionEnd!==null&&control.setSelectionRange(currentSelectionStart,currentSelectionEnd,currentSelectionDirection??void 0));const boundedReplacement=this.sanitize(replacement);setNativeRangeText(control,boundedReplacement,start,end,selectMode);const raw=control.value,selectionStart=selectionPrefixLength(raw,control.selectionStart),selectionEnd=selectionPrefixLength(raw,control.selectionEnd),selectionDirection=control.selectionDirection,normalized=this.sanitize(raw);this.value=normalized,control.value=normalized,selectionStart!==null&&selectionEnd!==null&&control.setSelectionRange(selectionStart,selectionEnd,selectionDirection??void 0),this.syncActiveSegmentFromSelection()}clear(){!this.value||this.effectiveDisabled||this.readonly||(this.value="",this.control&&(this.control.value=""),dispatchNativeInputEvent(this,{inputType:"deleteContentBackward"}),this.emit("lr-input",{value:""}),dispatchNativeEvent(this,"change"),this.emit("lr-change",{value:""}),this.emit("lr-clear"))}formResetCallback(){this.autosubmitToken+=1,super.formResetCallback(),this.touched=!1,this.segmentEditPendingChange=!1}formStateRestoreCallback(state2,reason){this.autosubmitToken+=1,super.formStateRestoreCallback(state2,reason)}disconnectedCallback(){super.disconnectedCallback(),this.autosubmitToken+=1}reportValidity(){return this.touched=!0,super.reportValidity()}firstUpdated(changed){super.firstUpdated(changed),this.autofocus&&this.scheduleAfterUpdate(()=>this.focus(),"otp-autofocus")}adoptedCallback(){super.adoptedCallback(),this.hostDescription.adopted()}updated(changed){super.updated(changed),this.toggleAttribute("data-invalid",this.touched&&!this.internals.validity.valid)}willUpdate(changed){if(super.willUpdate(changed),changed.has("type")||changed.has("case")||changed.has("length")||changed.has("format")){const next=this.sanitize(this.rawValue);next!==this.value?this.value=next:this.packSegmentValues(next)}(changed.has("value")||changed.has("required")||changed.has("readonly")||changed.has("length")||changed.has("format"))&&this.updateValidity(),this.syncOtpStates()}syncOtpStates(){setCustomState(this.internals,"blank",this.value.length===0),setCustomState(this.internals,"--blank",this.value.length===0),setCustomState(this.internals,"--filled",this.filledSegmentCount===this.renderedSegmentCount),setCustomState(this.internals,"disabled",this.effectiveDisabled),setCustomState(this.internals,"readonly",this.readonly)}updateValidity(){if(isBarredFromValidation(this,this.internals)){this[SET_ANCHORED_VALIDITY]({});return}const total=this.renderedSegmentCount,filled=this.filledSegmentCount,complete=filled===total;if(this.required&&filled===0){this[SET_ANCHORED_VALIDITY]({valueMissing:!0},this.localize("fieldRequired"));return}if(filled>0&&!complete){this[SET_ANCHORED_VALIDITY]({tooShort:!0},this.localize("otpInputIncomplete",void 0,{total}));return}this[SET_ANCHORED_VALIDITY]({})}flushPendingChange(){if(!this.segmentEditPendingChange)return;this.segmentEditPendingChange=!1;const value=this.value;dispatchNativeEvent(this,"change"),this.emit("lr-change",{value})}renderSegment(index,invalid){const char=this.segmentValues[index]??"",filled=char!=="",active=this.focused&&!this.effectiveDisabled&&index===this.activeSegmentIndex,masked=filled&&this.mask,placeholderMask=!filled&&this.withMask,parts=["segment"];return active&&parts.push("active"),masked&&parts.push("masked"),placeholderMask&&parts.push("placeholder-mask"),invalid&&parts.push("invalid"),html`<div part=${parts.join(" ")} aria-hidden="true">${masked?nothing:placeholderMask?nothing:char}</div>`}render(){const hasLabel=!!this.label||this.hasLabelSlot||this.withLabel,hasHint=!!this.hint||this.hasHintSlot||this.withHint,hasError=!!this.errorText||this.hasErrorSlot,intrinsicInvalid=this.touched&&!this.validity.valid,ariaInvalid=hasError||intrinsicInvalid,describedBy=[hasError?this.errorId:"",hasHint?this.hintId:""].filter(Boolean).join(" "),labelledBy=hasLabel&&!this.getAttribute("aria-label")?this.labelId:nothing;let segmentIndex=-1;return html`
1
+ import{__decorate}from"tslib";import{setNativeRangeText}from"../../../internal/native-text-control.js";import{SlotPresenceController}from"../../../internal/slot-presence-controller.js";import{HostDescriptionController}from"../../../internal/aria-controls.js";import{html,nothing}from"lit";import{property,query,state}from"lit/decorators.js";import{LyraElement}from"../../../internal/lyra-element.js";import{FormAssociated,isBarredFromValidation}from"../../../internal/form-associated.js";import{SET_ANCHORED_VALIDITY}from"../../../internal/anchored-validity.js";import{hostAriaLabel,nextId}from"../../../internal/a11y.js";import{finiteInteger}from"../../../internal/numbers.js";import{setCustomState}from"../../../internal/custom-states.js";import{contextualSizes}from"../../../internal/contextual-vocabulary.styles.js";import{submitFormImplicitly,submitOnEnter}from"../../../internal/submit-on-enter.js";import{styles}from"./otp-input.styles.js";import{dispatchNativeEvent,dispatchNativeInputEvent,relayNativeEvent}from"../../../internal/native-event-relay.js";import{currentValidityValidator}from"../form-validator.js";import{declaredDefaultConverter,literalSetConverter}from"../../../internal/converters.js";import{observeScrollOverflow}from"../../../internal/scroll-overflow.js";import{scrollOverflowFadeStyles}from"../../../internal/scroll-overflow.styles.js";import{LYRA_DEFAULT_otpInputIncomplete,LYRA_DEFAULT_otpInputLabel}from"../../../internal/default-strings/forms.generated.js";import{LYRA_DEFAULT_fieldRequired}from"../../../internal/default-strings/shared.generated.js";const APPEARANCE=literalSetConverter(["outlined","filled","filled-outlined","contained"],"outlined"),ACCEPTED={numeric:/[0-9]/,alpha:/[a-zA-Z]/,alphanumeric:/[a-zA-Z0-9]/},DEFAULT_LENGTH=6,MAX_LENGTH=32,MAX_FORMAT_SOURCE_LENGTH=4096,MAX_VALUE_SOURCE_LENGTH=4096;class LyraOtpInputBase extends LyraElement{static{this.styles=[LyraElement.styles,contextualSizes,scrollOverflowFadeStyles,styles]}}class LyraOtpInput extends FormAssociated(LyraOtpInputBase){static{this.defaultStrings={...super.defaultStrings,fieldRequired:LYRA_DEFAULT_fieldRequired,otpInputIncomplete:LYRA_DEFAULT_otpInputIncomplete,otpInputLabel:LYRA_DEFAULT_otpInputLabel}}static get validators(){return[currentValidityValidator("required","disabled","readonly","value","length","pattern")]}get appearance(){return this._appearance}set appearance(next){const normalized=APPEARANCE.normalizeReflected(this,"appearance",next),old=this._appearance;this._appearance=normalized,normalized!==old&&this.requestUpdate("appearance",old)}get hasLabelSlot(){return this.slotPresence.has("label")}get hasHintSlot(){return this.slotPresence.has("hint")}get hasErrorSlot(){return this.slotPresence.has("error")}constructor(){super(),this.label="",this.hint="",this.errorText="",this.withLabel=!1,this.withHint=!1,this._appearance="outlined",this.autofocus=!1,this.autosubmit=!1,this.size="m",this.length=DEFAULT_LENGTH,this.format="",this.type="numeric",this.case="preserve",this.mask=!1,this.withMask=!1,this.readonly=!1,this.autocomplete="one-time-code",this.focused=!1,this.slotPresence=new SlotPresenceController(this),this.touched=!1,this.labelId=nextId("otp-input-label"),this.hintId=nextId("otp-input-hint"),this.errorId=nextId("otp-input-error"),this.activeSegmentIndex=0,this.segmentValues=[],this.rawValue="",this.segmentEditPendingChange=!1,this.autosubmitToken=0,this.hostDescription=new HostDescriptionController(this,()=>this.control??null),this.onInput=event=>{if(event.isComposing===!0){event.stopPropagation();return}const raw=event.target.value,next=this.sanitize(raw),previousFilled=this.filledSegmentCount,layoutChanged=Array.from({length:this.renderedSegmentCount},(_,index)=>next[index]??"").some((value,index)=>value!==this.segmentValues[index]);if(this.control&&this.control.value!==next&&(this.control.value=next),next===this.value&&!layoutChanged){event.stopImmediatePropagation();return}this.touched=!0,this.value=next,relayNativeEvent(this,event),this.emit("lr-input",{value:next}),this.completeIfTransition(previousFilled)},this.onKeyDown=event=>{if(this.effectiveDisabled)return;if(event.key==="ArrowLeft"||event.key==="ArrowRight"){event.preventDefault();const physical=event.key==="ArrowRight"?1:-1,delta=this.effectiveDirection==="rtl"?-physical:physical;this.setActiveSegment(this.activeSegmentIndex+delta);return}if(event.key==="Enter"){this.readonly||submitOnEnter(this,event,{beforeSubmit:()=>this.flushPendingChange()});return}if(this.readonly||event.isComposing)return;const selection=this.selectedSegmentRange;if(event.key==="Backspace"||event.key==="Delete"){event.preventDefault();const values2=this.normalizedSegmentValues();if(selection){for(const index of selection.indices)values2[index]="";this.commitSegmentEdit(values2,event.key==="Backspace"?"deleteContentBackward":"deleteContentForward"),this.setActiveSegment(selection.first);return}const changed=!!values2[this.activeSegmentIndex];values2[this.activeSegmentIndex]="",changed&&this.commitSegmentEdit(values2,event.key==="Backspace"?"deleteContentBackward":"deleteContentForward"),event.key==="Backspace"&&this.setActiveSegment(this.activeSegmentIndex-1);return}if(event.ctrlKey||event.metaKey||event.altKey||event.key.length!==1)return;event.preventDefault();const accepted=this.sanitize(event.key).slice(0,1);if(!accepted)return;const values=this.normalizedSegmentValues(),targetIndex=selection?.first??this.activeSegmentIndex;if(selection)for(const index of selection.indices)values[index]="";values[targetIndex]=accepted,this.commitSegmentEdit(values,"insertText",accepted),this.setActiveSegment(targetIndex+1)},this.onPaste=event=>{if(this.effectiveDisabled||this.readonly)return;const pasted=this.sanitize(event.clipboardData?.getData("text")??"");if(event.preventDefault(),!pasted)return;const values=Array.from({length:this.renderedSegmentCount},(_,index)=>pasted[index]??"");this.commitSegmentEdit(values,"insertFromPaste",pasted),this.setActiveSegment(Math.min(pasted.length,this.renderedSegmentCount-1))},this.onChange=event=>{this.segmentEditPendingChange=!1;const value=this.value;relayNativeEvent(this,event),this.emit("lr-change",{value})},this.onFocus=event=>{this.focused=!0,relayNativeEvent(this,event)},this.onBlur=event=>{this.focused=!1,this.effectiveDisabled||(this.touched=!0),this.flushPendingChange(),relayNativeEvent(this,event)},observeScrollOverflow(this,()=>this.renderRoot.querySelector('[part~="segments"]'))}get input(){return this.control??null}get validationTarget(){return this.control??null}get value(){return super.value}set value(next){this.autosubmitToken+=1,this.rawValue=next??"";const normalized=this.sanitize(this.rawValue);this.packSegmentValues(normalized),super.value=normalized}get defaultValue(){return super.defaultValue}set defaultValue(next){this.autosubmitToken+=1,super.defaultValue=next}get formattedCells(){if(this.parsedFormatSource===this.format)return this.parsedFormatCells??null;if(this.parsedFormatSource=this.format,!this.format)return this.parsedFormatCells=null,null;const cells=[];let segments=0,literal="";const flushLiteral=()=>{literal&&(cells.push({kind:"separator",text:literal}),literal="")};for(const char of this.format.slice(0,MAX_FORMAT_SOURCE_LENGTH)){if(char!=="#"){literal+=char;continue}if(segments>=MAX_LENGTH)break;flushLiteral(),cells.push({kind:"segment"}),segments+=1}return flushLiteral(),this.parsedFormatCells=segments>0?cells:null,this.parsedFormatCells}get renderedSegmentCount(){const formatted=this.formattedCells;return formatted?formatted.filter(cell=>cell.kind==="segment").length:Math.min(MAX_LENGTH,Math.max(1,finiteInteger(this.length,DEFAULT_LENGTH)))}get effectiveLength(){return this.renderedSegmentCount}get cells(){return this.formattedCells??Array.from({length:this.renderedSegmentCount},()=>({kind:"segment"}))}sanitize(raw){const accepted=Object.hasOwn(ACCEPTED,this.type)?ACCEPTED[this.type]:ACCEPTED.numeric,limit=this.renderedSegmentCount;let out="";for(const char of(raw??"").slice(0,MAX_VALUE_SOURCE_LENGTH))if(accepted.test(char)&&(out+=char),out.length>=limit)break;return this.case==="upper"?out=out.toUpperCase():this.case==="lower"&&(out=out.toLowerCase()),out.slice(0,limit)}packSegmentValues(value){const count=this.renderedSegmentCount;this.segmentValues=Array.from({length:count},(_,index)=>value[index]??""),this.activeSegmentIndex=Math.min(value.length,count-1)}get filledSegmentCount(){return Array.isArray(this.segmentValues)?this.segmentValues.reduce((count,value)=>count+(value?1:0),0):this.value.length}normalizedSegmentValues(values=this.segmentValues){return Array.from({length:this.renderedSegmentCount},(_,index)=>values[index]??"")}setActiveSegment(index){const next=Math.min(this.renderedSegmentCount-1,Math.max(0,index));this.activeSegmentIndex=next;const caret=this.normalizedSegmentValues().slice(0,next).filter(Boolean).length;this.control?.setSelectionRange(caret,caret),this.updateComplete.then(()=>{this.renderRoot.querySelectorAll('[part~="segment"]')[next]?.scrollIntoView({block:"nearest",inline:"nearest"})})}submitOwningForm(){const form=this.getForm();form&&submitFormImplicitly(form)}completeIfTransition(previousFilled){if(previousFilled>=this.renderedSegmentCount||this.filledSegmentCount!==this.renderedSegmentCount)return;const completionValue=this.value,token=this.autosubmitToken,completeEvent=this.emit("lr-complete",{value:completionValue},{cancelable:!0});this.autosubmit&&setTimeout(()=>{token!==this.autosubmitToken||completeEvent.defaultPrevented||!this.isConnected||!this.autosubmit||this.effectiveDisabled||this.readonly||this.value!==completionValue||this.filledSegmentCount!==this.renderedSegmentCount||this.submitOwningForm()})}commitSegmentEdit(values,inputType,data=null){this.autosubmitToken+=1;const previousFilled=this.filledSegmentCount;this.segmentValues=this.normalizedSegmentValues(values);const nextValue=this.segmentValues.join("");super.value=nextValue,this.control&&(this.control.value=nextValue),this.touched=!0,dispatchNativeInputEvent(this,{data,inputType}),this.emit("lr-input",{value:nextValue}),this.segmentEditPendingChange=!0,this.completeIfTransition(previousFilled),this.requestUpdate()}get selectedSegmentRange(){const start=this.control?.selectionStart,end=this.control?.selectionEnd;if(start==null||end===void 0||end===null||start===end)return null;const indices=this.normalizedSegmentValues().map((value,index)=>value?index:-1).filter(index=>index>=0).slice(start,end),first=indices[0];return first===void 0?null:{indices,first}}segmentIndexAtCompactOffset(offset){const values=this.normalizedSegmentValues();let occupied=0;for(let index=0;index<values.length;index+=1){if(occupied>=offset)return index;values[index]&&(occupied+=1)}return Math.max(0,values.length-1)}syncActiveSegmentFromSelection(){const control=this.control;if(!control||control.selectionStart===null)return;const selected=this.selectedSegmentRange;this.activeSegmentIndex=selected?.first??this.segmentIndexAtCompactOffset(control.selectionStart)}get selectionStart(){return this.control?.selectionStart??null}set selectionStart(value){this.control&&(this.control.selectionStart=value,this.syncActiveSegmentFromSelection())}get selectionEnd(){return this.control?.selectionEnd??null}set selectionEnd(value){this.control&&(this.control.selectionEnd=value,this.syncActiveSegmentFromSelection())}get selectionDirection(){return this.control?.selectionDirection??null}set selectionDirection(value){this.control&&(this.control.selectionDirection=value)}focus(options){this.effectiveDisabled||this.control?.focus(options)}blur(){this.control?.blur()}click(){this.effectiveDisabled||this.control?.click()}select(){this.control?.select()}setSelectionRange(start,end,direction){this.control&&(this.control.setSelectionRange(start,end,direction),this.syncActiveSegmentFromSelection())}setRangeText(replacement,start,end,selectMode){const control=this.control;if(!control)return;const selectionPrefixLength=(value,offset)=>{if(offset===null)return null;const boundedOffset=Math.min(MAX_VALUE_SOURCE_LENGTH,Math.max(0,offset));return this.sanitize(value.slice(0,boundedOffset)).length},currentRaw=control.value,currentSelectionStart=selectionPrefixLength(currentRaw,control.selectionStart),currentSelectionEnd=selectionPrefixLength(currentRaw,control.selectionEnd),currentSelectionDirection=control.selectionDirection,boundedCurrent=this.sanitize(currentRaw);currentRaw!==boundedCurrent&&(control.value=boundedCurrent,currentSelectionStart!==null&&currentSelectionEnd!==null&&control.setSelectionRange(currentSelectionStart,currentSelectionEnd,currentSelectionDirection??void 0));const boundedReplacement=this.sanitize(replacement);setNativeRangeText(control,boundedReplacement,start,end,selectMode);const raw=control.value,selectionStart=selectionPrefixLength(raw,control.selectionStart),selectionEnd=selectionPrefixLength(raw,control.selectionEnd),selectionDirection=control.selectionDirection,normalized=this.sanitize(raw);this.value=normalized,control.value=normalized,selectionStart!==null&&selectionEnd!==null&&control.setSelectionRange(selectionStart,selectionEnd,selectionDirection??void 0),this.syncActiveSegmentFromSelection()}clear(){!this.value||this.effectiveDisabled||this.readonly||(this.value="",this.control&&(this.control.value=""),dispatchNativeInputEvent(this,{inputType:"deleteContentBackward"}),this.emit("lr-input",{value:""}),dispatchNativeEvent(this,"change"),this.emit("lr-change",{value:""}),this.emit("lr-clear"))}formResetCallback(){this.autosubmitToken+=1,super.formResetCallback(),this.touched=!1,this.segmentEditPendingChange=!1}formStateRestoreCallback(state2,reason){this.autosubmitToken+=1,super.formStateRestoreCallback(state2,reason)}disconnectedCallback(){super.disconnectedCallback(),this.autosubmitToken+=1}reportValidity(){return this.touched=!0,super.reportValidity()}firstUpdated(changed){super.firstUpdated(changed),this.autofocus&&this.scheduleAfterUpdate(()=>this.focus(),"otp-autofocus")}adoptedCallback(){super.adoptedCallback(),this.hostDescription.adopted()}updated(changed){super.updated(changed),this.toggleAttribute("data-invalid",this.touched&&!this.internals.validity.valid)}willUpdate(changed){if(super.willUpdate(changed),changed.has("type")||changed.has("case")||changed.has("length")||changed.has("format")){const next=this.sanitize(this.rawValue);next!==this.value?this.value=next:this.packSegmentValues(next)}(changed.has("value")||changed.has("required")||changed.has("readonly")||changed.has("length")||changed.has("format"))&&this.updateValidity(),this.syncOtpStates()}syncOtpStates(){setCustomState(this.internals,"blank",this.value.length===0),setCustomState(this.internals,"--blank",this.value.length===0),setCustomState(this.internals,"--filled",this.filledSegmentCount===this.renderedSegmentCount),setCustomState(this.internals,"disabled",this.effectiveDisabled),setCustomState(this.internals,"readonly",this.readonly)}updateValidity(){if(isBarredFromValidation(this,this.internals)){this[SET_ANCHORED_VALIDITY]({});return}const total=this.renderedSegmentCount,filled=this.filledSegmentCount,complete=filled===total;if(this.required&&filled===0){this[SET_ANCHORED_VALIDITY]({valueMissing:!0},this.localize("fieldRequired"));return}if(filled>0&&!complete){this[SET_ANCHORED_VALIDITY]({tooShort:!0},this.localize("otpInputIncomplete",void 0,{total}));return}this[SET_ANCHORED_VALIDITY]({})}flushPendingChange(){if(!this.segmentEditPendingChange)return;this.segmentEditPendingChange=!1;const value=this.value;dispatchNativeEvent(this,"change"),this.emit("lr-change",{value})}renderSegment(index,invalid){const char=this.segmentValues[index]??"",filled=char!=="",active=this.focused&&!this.effectiveDisabled&&index===this.activeSegmentIndex,masked=filled&&this.mask,placeholderMask=!filled&&this.withMask,parts=["segment"];return active&&parts.push("active"),masked&&parts.push("masked"),placeholderMask&&parts.push("placeholder-mask"),invalid&&parts.push("invalid"),html`<div part=${parts.join(" ")} aria-hidden="true">${masked?nothing:placeholderMask?nothing:char}</div>`}render(){const hasLabel=!!this.label||this.hasLabelSlot||this.withLabel,hasHint=!!this.hint||this.hasHintSlot||this.withHint,hasError=!!this.errorText||this.hasErrorSlot,intrinsicInvalid=this.touched&&!this.validity.valid,ariaInvalid=hasError||intrinsicInvalid,describedBy=[hasError?this.errorId:"",hasHint?this.hintId:""].filter(Boolean).join(" "),labelledBy=hasLabel&&!this.getAttribute("aria-label")?this.labelId:nothing;let segmentIndex=-1;return html`
2
2
  <div part="base form-control">
3
3
  <label part="label form-control-label" id=${this.labelId} for="control" ?hidden=${!hasLabel}>
4
4
  ${this.label}<slot name="label"></slot>
@@ -1,2 +1,2 @@
1
- /** @deprecated Import @aceshooting/lyra-ui/components/lr-otp-input.js to register this component. */
1
+ /** @deprecated Import @aceshooting/lyra-ui/components/lr-otp-input.js to register this component.*/
2
2
  export*from'./otp-input.class.js';
@@ -1,7 +1,7 @@
1
1
  import{type PropertyValues,type TemplateResult}from'lit';import{LyraElement}from'../../../internal/lyra-element.js';import type{LyraAppearance,LyraSize}from'../../../internal/variants.js';import type{LyraSelectionDirection}from'../../../internal/shared-unions.js';import{type LyraPhoneCountry,type LyraPhoneNumberAdapter,type LyraPhoneNumberStatus}from'./phone-number-adapter.js';export{loadLibphonenumberAdapter,type LibphonenumberModuleLike,type LyraPhoneCountry,type LyraPhoneNumberAdapter,type LyraPhoneNumberParseResult,type LyraPhoneNumberStatus,}from'./phone-number-adapter.js';export type LyraPhoneInputSelectionDirection=LyraSelectionDirection;export interface LyraPhoneInputEventDetail{
2
- /** Canonical E.164 value, or an empty string until the current input is valid. */
2
+ /** Canonical E.164 value, or an empty string until the current input is valid.*/
3
3
  value:string;
4
- /** The editable, best-effort formatted text shown to the user. */
4
+ /** The editable, best-effort formatted text shown to the user.*/
5
5
  inputValue:string;country:string;valid:boolean;status:LyraPhoneNumberStatus;}export interface LyraPhoneInputEventMap{'lr-invalid':CustomEvent<null>;input:InputEvent;change:Event;focus:FocusEvent;blur:FocusEvent;'lr-input':CustomEvent<LyraPhoneInputEventDetail>;'lr-change':CustomEvent<LyraPhoneInputEventDetail>;}declare class LyraPhoneInputBase extends LyraElement<LyraPhoneInputEventMap>{}declare const LyraPhoneInput_base:typeof LyraPhoneInputBase&(new(...args:any[])=>import("../../../lyra.js").FormAssociatedInterface<string> &import("../../../internal/form-associated.js").FormAssociatedSubclassInterface<string>);
6
6
  /**
7
7
  * `<lr-phone-input>` — a country-aware telephone field whose form value is
@@ -135,11 +135,11 @@ export declare class LyraPhoneInput extends LyraPhoneInput_base{static styles:im
135
135
  * text-only — an `<option>` cannot contain elements.
136
136
  */
137
137
  flags:boolean;private _adapter?;private adapterCountries;get adapter():LyraPhoneNumberAdapter|undefined;set adapter(next:LyraPhoneNumberAdapter|undefined);private _countries?;get countries():readonly LyraPhoneCountry[]|undefined;set countries(next:readonly LyraPhoneCountry[]|undefined);
138
- /** Country selected when no explicit `country` has been set. */
138
+ /** Country selected when no explicit `country` has been set.*/
139
139
  defaultCountry:string;label:string;hint:string;errorText:string;
140
- /** SSR slot-presence hint for label content that cannot be inspected before hydration. */
140
+ /** SSR slot-presence hint for label content that cannot be inspected before hydration.*/
141
141
  withLabel:boolean;
142
- /** SSR slot-presence hint for hint content that cannot be inspected before hydration. */
142
+ /** SSR slot-presence hint for hint content that cannot be inspected before hydration.*/
143
143
  withHint:boolean;placeholder:string;
144
144
  /** Visual size — the library-wide `2xs`–`xl` ladder shared with `lr-input`. The Web Awesome /
145
145
  * Shoelace spellings `small`/`medium`/`large` are accepted for `s`/`m`/`l`, so a migration is a
@@ -148,16 +148,16 @@ size:LyraSize;
148
148
  /** Rounds the field's corners to a full pill, mirroring `lr-input`'s own `pill`. The country
149
149
  * trigger's leading corners follow, since both read `--lr-phone-input-radius`. */
150
150
  pill:boolean;
151
- /** Visual treatment, with the same vocabulary and paint as every Lyra field. */
151
+ /** Visual treatment, with the same vocabulary and paint as every Lyra field.*/
152
152
  appearance:LyraAppearance;
153
- /** Accessible name for the telephone input. Takes precedence over `phoneLabel`, label, and placeholder. */
153
+ /** Accessible name for the telephone input. Takes precedence over `phoneLabel`, label, and placeholder.*/
154
154
  accessibleLabel:string|null;
155
155
  /** Accessible name for the country selector, also shown as its empty-catalog placeholder.
156
156
  * Explicit copy wins over locale strings; omission localizes the shared country-picker label.
157
157
  * @default 'Country'
158
158
  */
159
159
  countryLabel:string;private countryLabelAuthored;
160
- /** Accessible-name override for the telephone input. */
160
+ /** Accessible-name override for the telephone input.*/
161
161
  phoneLabel:string;
162
162
  /** Validation message for a number that may still become valid with more digits. Explicit copy wins over locale strings; omission localizes.
163
163
  * @default 'This phone number is incomplete.'
@@ -167,12 +167,12 @@ incompleteText:string;private incompleteTextAuthored;
167
167
  * @default 'The value is invalid.'
168
168
  */
169
169
  invalidText:string;private invalidTextAuthored;autocomplete:string;inputMode:string;enterKeyHint:string;
170
- /** Lowercase mapped IDLs that delegate to the camel-case native spellings. */
170
+ /** Lowercase mapped IDLs that delegate to the camel-case native spellings.*/
171
171
  get inputmode():string;set inputmode(next:string);get enterkeyhint():string;set enterkeyhint(next:string);
172
172
  /** Native readonly mode: keeps the telephone value focusable/copyable/submittable while
173
173
  * preventing telephone and country edits and barring constraint validation. */
174
174
  readonly:boolean;
175
- /** Forwards native autofocus to the real shadow input rather than the non-focusable host. */
175
+ /** Forwards native autofocus to the real shadow input rather than the non-focusable host.*/
176
176
  autofocus:boolean;
177
177
  /** Forwarded to the internal `<input>`'s own `spellcheck`. Defaults to `true`, matching the
178
178
  * native element's own default. Uses {@link spellcheckConverter} rather than Lit's default
@@ -185,13 +185,13 @@ autocapitalize:string;private autocorrectValue;
185
185
  /** Native editing-assistance state forwarded as canonical `autocorrect="on"|"off"`. Reads are
186
186
  * boolean; writes accept the boolean IDL and the `'on'`/`'off'` vocabulary. */
187
187
  get autocorrect():boolean;set autocorrect(next:boolean|string);private inputElement?;private editableValue;private status;private touched;constructor();private readonly slotPresence;private get hasLabelSlot();private get hasHintSlot();private get hasErrorSlot();private hasCountryPrefixSlot;private hasEndSlot;private inputId;private hintId;private errorId;private explicitCountry;private compositionPending;private compositionCommitted;private countryCodes?;private countryNames?;
188
- /** Currently selected ISO 3166-1 alpha-2 country code. */
188
+ /** Currently selected ISO 3166-1 alpha-2 country code.*/
189
189
  get country():string;set country(next:string);
190
- /** The underlying telephone input for platform-specific integrations. */
190
+ /** The underlying telephone input for platform-specific integrations.*/
191
191
  get input():HTMLInputElement|undefined;
192
- /** Editable display text, including a partial or invalid number. */
192
+ /** Editable display text, including a partial or invalid number.*/
193
193
  get inputValue():string;
194
- /** Current parse/validation state. */
194
+ /** Current parse/validation state.*/
195
195
  get phoneStatus():LyraPhoneNumberStatus;get selectionStart():number|null;set selectionStart(value:number|null);get selectionEnd():number|null;set selectionEnd(value:number|null);get selectionDirection():LyraPhoneInputSelectionDirection|null;set selectionDirection(value:LyraPhoneInputSelectionDirection|null);get value():string;set value(next:string);private get availableCountries();private resolveCountry;private parse;private reconcileCountryCatalog;private applyParsed;private syncFormattedValue;private get eventDetail();static get observedAttributes():string[];attributeChangedCallback(name:string,oldValue:string|null,newValue:string|null):void;private get effectiveCountryLabel();private effectivePhoneLabel;private get incompleteMessage();private get invalidMessage();private countryName;
196
196
  /**
197
197
  * Maps the parsed phone `status` onto the element's validity. A control barred from constraint
@@ -202,13 +202,13 @@ get phoneStatus():LyraPhoneNumberStatus;get selectionStart():number|null;set sel
202
202
  * with the documented `:state(user-invalid)` error styling.
203
203
  */
204
204
  protected updateValidity():void;adoptedCallback():void;private readonly hostDescription;protected willUpdate(changed:PropertyValues):void;protected updated(changed:PropertyValues):void;private onInput;private onCompositionEnd;private commitTypedText;private onChange;private onCountryChange;private onKeyDown;private onFocus;private onBlur;private onCountryPrefixSlotChange;private onEndSlotChange;private get liveDisabled();
205
- /** Activate the internal telephone input unless the form control is effectively disabled. */
205
+ /** Activate the internal telephone input unless the form control is effectively disabled.*/
206
206
  click():void;
207
- /** Focus the internal telephone input unless the form control is effectively disabled. */
207
+ /** Focus the internal telephone input unless the form control is effectively disabled.*/
208
208
  focus(options?:FocusOptions):void;
209
- /** Blur the internal telephone input. */
209
+ /** Blur the internal telephone input.*/
210
210
  blur():void;
211
- /** Select all editable telephone text. */
211
+ /** Select all editable telephone text.*/
212
212
  select():void;
213
- /** Set the selection range in the editable telephone text. */
213
+ /** Set the selection range in the editable telephone text.*/
214
214
  setSelectionRange(start:number|null,end:number|null,direction?:LyraPhoneInputSelectionDirection):void;setRangeText(replacement:string):void;setRangeText(replacement:string,start:number,end:number,selectMode?:SelectionMode):void;formResetCallback():void;render():TemplateResult;}declare global{interface HTMLElementTagNameMap{'lr-phone-input':LyraPhoneInput;}}
@@ -1,2 +1,2 @@
1
- /** @deprecated Import @aceshooting/lyra-ui/components/lr-phone-input.js to register this component. */
1
+ /** @deprecated Import @aceshooting/lyra-ui/components/lr-phone-input.js to register this component.*/
2
2
  export*from'./phone-input.class.js';
@@ -1,16 +1,16 @@
1
- /** Decorator-free adapter types, loader and helpers, so importing the loader skips the class. */
1
+ /** Decorator-free adapter types, loader and helpers, so importing the loader skips the class.*/
2
2
  export type LyraPhoneNumberStatus='empty'|'incomplete'|'invalid'|'valid';export interface LyraPhoneCountry{
3
- /** ISO 3166-1 alpha-2 region code. */
3
+ /** ISO 3166-1 alpha-2 region code.*/
4
4
  readonly code:string;
5
- /** International calling code without a leading plus sign. */
5
+ /** International calling code without a leading plus sign.*/
6
6
  readonly callingCode:string;
7
- /** Optional display-name override. `Intl.DisplayNames` is used when omitted. */
7
+ /** Optional display-name override. `Intl.DisplayNames` is used when omitted.*/
8
8
  readonly label?:string;}interface LyraPhoneNumberParseMetadata{
9
- /** Best-effort display text, normally national formatting for the selected country. */
9
+ /** Best-effort display text, normally national formatting for the selected country.*/
10
10
  formatted?:string;
11
- /** Detected ISO 3166-1 alpha-2 region code. */
11
+ /** Detected ISO 3166-1 alpha-2 region code.*/
12
12
  country?:string;}
13
- /** Exhaustive adapter result. Only the `valid` branch can carry a canonical form value. */
13
+ /** Exhaustive adapter result. Only the `valid` branch can carry a canonical form value.*/
14
14
  export type LyraPhoneNumberParseResult=({status:'empty';}&LyraPhoneNumberParseMetadata)|({status:'incomplete';}&LyraPhoneNumberParseMetadata)|({status:'invalid';}&LyraPhoneNumberParseMetadata)|({status:'valid';e164:string;}&LyraPhoneNumberParseMetadata);
15
15
  /**
16
16
  * Synchronous formatting seam for a numbering-plan implementation. The base
@@ -18,7 +18,7 @@ export type LyraPhoneNumberParseResult=({status:'empty';}&LyraPhoneNumberParseMe
18
18
  * supplied directly, or created lazily with `loadLibphonenumberAdapter()`.
19
19
  */
20
20
  export interface LyraPhoneNumberAdapter{readonly countries?:readonly LyraPhoneCountry[];parse(input:string,country?:string):LyraPhoneNumberParseResult;}interface LibphonenumberPhoneLike{number:string;country?:string;isValid():boolean;isPossible():boolean;formatNational():string;formatInternational():string;}
21
- /** Structural subset implemented by `libphonenumber-js` entry points. */
21
+ /** Structural subset implemented by `libphonenumber-js` entry points.*/
22
22
  export interface LibphonenumberModuleLike<CountryCode extends string=string>{getCountries():CountryCode[];getCountryCallingCode(country:CountryCode):string;parsePhoneNumberFromString(input:string,defaultCountry?:CountryCode):LibphonenumberPhoneLike|undefined;validatePhoneNumberLength?(input:string,defaultCountry?:CountryCode):string|undefined;}
23
23
  /**
24
24
  * Lazily creates an adapter from a `libphonenumber-js`-compatible module.
@@ -46,7 +46,7 @@ export declare function digitsBefore(value:string,index:number):number;
46
46
  * `digitCount`-th digit, or the string's end once `value` doesn't contain
47
47
  * that many digits (e.g. a reformat that removed a stray character). */
48
48
  export declare function indexAfterDigits(value:string,digitCount:number):number;export declare function fallbackParse(input:string):LyraPhoneNumberParseResult;
49
- /** An adapter is an untrusted public extension seam at runtime even when TypeScript accepted it. */
49
+ /** An adapter is an untrusted public extension seam at runtime even when TypeScript accepted it.*/
50
50
  export declare function normalizeParseResult(result:unknown,input:string):LyraPhoneNumberParseResult;
51
- /** Validate and copy public country metadata without trusting iteration or property getters. */
51
+ /** Validate and copy public country metadata without trusting iteration or property getters.*/
52
52
  export declare function normalizeCountryCatalog(source:unknown):readonly LyraPhoneCountry[];export{};
@@ -1,2 +1,2 @@
1
- /** @deprecated Import @aceshooting/lyra-ui/components/lr-radio-button.js to register this component. */
1
+ /** @deprecated Import @aceshooting/lyra-ui/components/lr-radio-button.js to register this component.*/
2
2
  export*from'./radio-button.class.js';
@@ -63,7 +63,7 @@ import{type PropertyValues,type TemplateResult}from'lit';import{LyraFormControlE
63
63
  * @since 4.0.0
64
64
  */
65
65
  export declare class LyraRadioGroup extends LyraFormControlElement<LyraRadioGroupEventMap>{protected static collectionSupport:import("../../../internal/lyra-element.js").LyraCollectionSupport;protected static readonly immutableEventDetails:readonly string[];protected static readonly identityEventDetailProperties:Readonly<{'lr-input':readonly string[];'lr-change':readonly string[];'lr-activate':readonly string[];}>;
66
- /** Public WA-compatible intrinsic validator catalog. */
66
+ /** Public WA-compatible intrinsic validator catalog.*/
67
67
  static get validators():LyraFormValidator<LyraRadioGroup>[];static formAssociated:boolean;static styles:import("lit").CSSResultGroup[];static properties:{name:{reflect:boolean;noAccessor:boolean;converter:import("lit").ComplexAttributeConverter<string,unknown>;};value:{attribute:boolean;noAccessor:boolean;};defaultValue:{attribute:string;reflect:boolean;useDefault:boolean;noAccessor:boolean;};customError:{attribute:string;reflect:boolean;noAccessor:boolean;};required:{type:BooleanConstructor;reflect:boolean;noAccessor:boolean;};disabled:{type:BooleanConstructor;reflect:boolean;noAccessor:boolean;};orientation:{reflect:boolean;converter:import("../../../internal/converters.js").LiteralSetConverter<LyraOrientation>;};form:{noAccessor:boolean;};};
68
68
  /**
69
69
  * Size of the group's own chrome, on the library's shared ladder. Accepts both spellings of every
@@ -73,11 +73,11 @@ static get validators():LyraFormValidator<LyraRadioGroup>[];static formAssociate
73
73
  * projects the effective tier to owned options without rewriting their authored `size` state.
74
74
  */
75
75
  size:LyraSize;
76
- /** Option layout and `aria-orientation`. Arrow keys move in either axis; Left/Right are mirrored under RTL. */
76
+ /** Option layout and `aria-orientation`. Arrow keys move in either axis; Left/Right are mirrored under RTL.*/
77
77
  orientation:RadioGroupOrientation;label:string;hint:string;
78
- /** Shoelace alias for {@link hint}. `hint` wins when both are supplied. */
78
+ /** Shoelace alias for {@link hint}. `hint` wins when both are supplied.*/
79
79
  helpText:string;private shoelaceDefaultValue;
80
- /** SSR slot-presence hints used before light-DOM assignment can be inspected. */
80
+ /** SSR slot-presence hints used before light-DOM assignment can be inspected.*/
81
81
  withLabel:boolean;withHint:boolean;errorText:string;
82
82
  /** Accessible-name override forwarded to the internal radiogroup. Attribute presence wins,
83
83
  * including an explicitly empty `aria-label`, which also suppresses visible-label linkage. */
@@ -87,16 +87,16 @@ accessibleLabel:string;private readonly slotPresence;private get hasLabelSlot();
87
87
  * explicitly to preserve Shoelace's default.
88
88
  * @default '' */
89
89
  get name():string;set name(next:string|null);get value():string;set value(next:string|null);
90
- /** Reflected current reset default; changing it never overwrites a dirty live selection. */
90
+ /** Reflected current reset default; changing it never overwrites a dirty live selection.*/
91
91
  get defaultValue():string;set defaultValue(next:string);
92
- /** Consumer-supplied validation message reflected through `custom-error`. */
92
+ /** Consumer-supplied validation message reflected through `custom-error`.*/
93
93
  get customError():string|null;set customError(next:string|null);get required():boolean;set required(next:boolean);get disabled():boolean;set disabled(next:boolean);get effectiveDisabled():boolean;get form():HTMLFormElement|null;set form(owner:FormOwnerValue);constructor();private onInvalid;private externalDescriptionLease?;private syncExternalDescription;private releaseExternalDescription;connectedCallback():void;private isButtonRadio;private projectButtonRuns;private armMembershipObserver;disconnectedCallback():void;adoptedCallback():void;private resetMembershipObserver;protected willUpdate(changed:PropertyValues):void;protected updated(changed:PropertyValues):void;private radioGroupOwner;private radios;private isRadioAvailable;private selectValue;private syncRadios;private releaseRadios;private onFocusOut;private onKeyDown;private onRadioSlotChange;
94
- /** Moves focus to the selected enabled option, or the first enabled option when empty. */
94
+ /** Moves focus to the selected enabled option, or the first enabled option when empty.*/
95
95
  focus(options?:FocusOptions):void;
96
- /** Removes focus from whichever owned option currently contains the deep active element. */
96
+ /** Removes focus from whichever owned option currently contains the deep active element.*/
97
97
  blur():void;
98
98
  /** Activates the selected/first enabled option, matching host click semantics on the internal
99
99
  * radio collection rather than leaving `<lr-radio-group>` a no-op. */
100
100
  click():void;private syncFormState;private get barredFromValidation();private updateValidity;private reflectValidityStates;checkValidity():boolean;reportValidity():boolean;private commitCustomValidity;setCustomValidity(message?:string):void;
101
- /** Clears consumer-supplied validity and restores the current required/value constraint. */
101
+ /** Clears consumer-supplied validity and restores the current required/value constraint.*/
102
102
  resetValidity():void;formResetCallback():void;formStateRestoreCallback(state:string|File|FormData|null,reason:'autocomplete'|'restore'):void;formDisabledCallback(disabled:boolean):void;render():TemplateResult;}declare global{interface HTMLElementTagNameMap{'lr-radio-group':LyraRadioGroup;}}
@@ -1,2 +1,2 @@
1
- /** @deprecated Import @aceshooting/lyra-ui/components/lr-radio-group.js to register this component. */
1
+ /** @deprecated Import @aceshooting/lyra-ui/components/lr-radio-group.js to register this component.*/
2
2
  export*from'./radio-group.class.js';