@aceshooting/lyra-ui 31.2.1 → 32.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.
- package/CHANGELOG.md +1582 -476
- package/README.md +31 -10
- package/design-tokens.json +1 -1
- package/dist/ai/adapters/a2ui.d.ts +1 -3
- package/dist/ai/adapters/a2ui.js +1 -1
- package/dist/ai/runtime.js +1 -1
- package/dist/ai/snapshot.js +1 -1
- package/dist/ai/types.d.ts +1 -1
- package/dist/all.d.ts +1 -1
- package/dist/all.js +1 -1
- package/dist/autoloader.d.ts +10 -0
- package/dist/autoloader.js +1 -1
- package/dist/cli/init-agents.mjs +13 -13
- package/dist/cli/lyra-ui.mjs +3 -3
- package/dist/cli/migrate-wa.mjs +62 -12
- package/dist/cli/migration-contract.json.gz +0 -0
- package/dist/components/agent-tools/activity-feed/activity-feed.class.d.ts +10 -3
- package/dist/components/agent-tools/activity-feed/activity-feed.class.js +7 -32
- package/dist/components/agent-tools/activity-feed/activity-feed.styles.js +1 -1
- package/dist/components/agent-tools/agent-action-button.styles.js +1 -1
- package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.class.d.ts +11 -6
- package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.class.js +6 -11
- package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.styles.js +1 -1
- package/dist/components/agent-tools/agent-question/agent-question-children.js +1 -0
- package/dist/components/agent-tools/agent-question/agent-question.class.d.ts +4 -3
- package/dist/components/agent-tools/agent-question/agent-question.class.js +6 -8
- package/dist/components/agent-tools/agent-question/agent-question.styles.js +1 -1
- package/dist/components/agent-tools/agent-run/agent-run.class.d.ts +2 -2
- package/dist/components/agent-tools/agent-run/agent-run.class.js +8 -18
- package/dist/components/agent-tools/agent-run/agent-run.styles.js +1 -1
- package/dist/components/agent-tools/agent-trace/agent-trace.class.d.ts +8 -2
- package/dist/components/agent-tools/agent-trace/agent-trace.class.js +5 -31
- package/dist/components/agent-tools/agent-trace/agent-trace.styles.js +1 -1
- package/dist/components/agent-tools/approval-action-buttons.js +1 -18
- package/dist/components/agent-tools/approval-queue/approval-queue.class.d.ts +19 -9
- package/dist/components/agent-tools/approval-queue/approval-queue.class.js +9 -27
- package/dist/components/agent-tools/approval-queue/approval-queue.styles.js +1 -1
- package/dist/components/agent-tools/artifact-panel/artifact-panel.class.d.ts +13 -9
- package/dist/components/agent-tools/artifact-panel/artifact-panel.class.js +13 -47
- package/dist/components/agent-tools/artifact-panel/artifact-panel.styles.js +1 -1
- package/dist/components/agent-tools/background-runs/background-runs.class.d.ts +22 -7
- package/dist/components/agent-tools/background-runs/background-runs.class.js +9 -23
- package/dist/components/agent-tools/background-runs/background-runs.styles.js +1 -1
- package/dist/components/agent-tools/browser-frame/browser-frame.class.d.ts +9 -2
- package/dist/components/agent-tools/browser-frame/browser-frame.class.js +8 -22
- package/dist/components/agent-tools/browser-frame/browser-frame.styles.js +1 -1
- package/dist/components/agent-tools/budget-meter/budget-meter.class.d.ts +13 -3
- package/dist/components/agent-tools/budget-meter/budget-meter.class.js +6 -14
- package/dist/components/agent-tools/budget-meter/budget-meter.styles.js +1 -1
- package/dist/components/agent-tools/change-review/change-review.class.d.ts +8 -3
- package/dist/components/agent-tools/change-review/change-review.class.js +8 -11
- package/dist/components/agent-tools/change-review/change-review.styles.js +1 -1
- package/dist/components/agent-tools/commit-card/commit-card.class.d.ts +13 -6
- package/dist/components/agent-tools/commit-card/commit-card.class.js +15 -42
- package/dist/components/agent-tools/commit-card/commit-card.styles.js +1 -1
- package/dist/components/agent-tools/compare-panel/compare-panel.class.d.ts +18 -3
- package/dist/components/agent-tools/compare-panel/compare-panel.class.js +6 -17
- package/dist/components/agent-tools/compare-panel/compare-panel.styles.js +1 -1
- package/dist/components/agent-tools/confirm-bar/confirm-bar.class.d.ts +5 -3
- package/dist/components/agent-tools/confirm-bar/confirm-bar.class.js +7 -40
- package/dist/components/agent-tools/confirm-bar/confirm-bar.styles.js +1 -1
- package/dist/components/agent-tools/connector-manager/connector-manager.class.d.ts +22 -4
- package/dist/components/agent-tools/connector-manager/connector-manager.class.js +6 -15
- package/dist/components/agent-tools/connector-manager/connector-manager.styles.js +1 -1
- package/dist/components/agent-tools/context-inspector/context-inspector.class.d.ts +3 -3
- package/dist/components/agent-tools/context-inspector/context-inspector.class.js +10 -21
- package/dist/components/agent-tools/eval-dataset/eval-dataset.class.d.ts +10 -5
- package/dist/components/agent-tools/eval-dataset/eval-dataset.class.js +10 -109
- package/dist/components/agent-tools/eval-dataset/eval-dataset.styles.js +1 -1
- package/dist/components/agent-tools/eval-result/eval-result-register.d.ts +1 -1
- package/dist/components/agent-tools/eval-result/eval-result-register.js +1 -1
- package/dist/components/agent-tools/eval-result/eval-result-source.js +1 -1
- package/dist/components/agent-tools/eval-result/eval-result.class.d.ts +2 -2
- package/dist/components/agent-tools/eval-result/eval-result.class.js +4 -65
- package/dist/components/agent-tools/eval-result/eval-result.styles.js +1 -1
- package/dist/components/agent-tools/evaluation-run/evaluation-run.class.d.ts +10 -4
- package/dist/components/agent-tools/evaluation-run/evaluation-run.class.js +11 -62
- package/dist/components/agent-tools/evaluation-run/evaluation-run.styles.js +1 -1
- package/dist/components/agent-tools/index.d.ts +1 -1
- package/dist/components/agent-tools/index.js +1 -1
- package/dist/components/agent-tools/mcp-app/mcp-app-protocol.js +1 -1
- package/dist/components/agent-tools/mcp-app/mcp-app.class.d.ts +1 -0
- package/dist/components/agent-tools/mcp-app/mcp-app.class.js +2 -2
- package/dist/components/agent-tools/mcp-app/mcp-app.styles.js +1 -1
- package/dist/components/agent-tools/permission-grant/permission-grant.class.d.ts +18 -3
- package/dist/components/agent-tools/permission-grant/permission-grant.class.js +6 -15
- package/dist/components/agent-tools/permission-grant/permission-grant.styles.js +1 -1
- package/dist/components/agent-tools/permission-rules/permission-rules.class.d.ts +17 -5
- package/dist/components/agent-tools/permission-rules/permission-rules.class.js +8 -15
- package/dist/components/agent-tools/permission-rules/permission-rules.styles.js +1 -1
- package/dist/components/agent-tools/policy-summary/policy-summary.class.d.ts +1 -3
- package/dist/components/agent-tools/policy-summary/policy-summary.class.js +4 -15
- package/dist/components/agent-tools/prompt-studio/prompt-studio.class.d.ts +17 -8
- package/dist/components/agent-tools/prompt-studio/prompt-studio.class.js +14 -86
- package/dist/components/agent-tools/prompt-studio/prompt-studio.styles.js +1 -1
- package/dist/components/agent-tools/result-card/result-card.class.d.ts +1 -1
- package/dist/components/agent-tools/result-card/result-card.class.js +2 -7
- package/dist/components/agent-tools/result-card/result-card.styles.js +1 -1
- package/dist/components/agent-tools/result-card/result-field.class.d.ts +1 -1
- package/dist/components/agent-tools/result-card/result-field.class.js +3 -5
- package/dist/components/agent-tools/result-card/result-field.styles.js +1 -1
- package/dist/components/agent-tools/schema-viewer/schema-viewer.class.d.ts +14 -7
- package/dist/components/agent-tools/schema-viewer/schema-viewer.class.js +16 -27
- package/dist/components/agent-tools/schema-viewer/schema-viewer.styles.js +1 -1
- package/dist/components/agent-tools/span-waterfall/span-waterfall.class.d.ts +21 -11
- package/dist/components/agent-tools/span-waterfall/span-waterfall.class.js +10 -33
- package/dist/components/agent-tools/span-waterfall/span-waterfall.styles.js +1 -1
- package/dist/components/agent-tools/stack-trace/stack-trace-parse.js +2 -2
- package/dist/components/agent-tools/stack-trace/stack-trace.class.d.ts +12 -4
- package/dist/components/agent-tools/stack-trace/stack-trace.class.js +8 -18
- package/dist/components/agent-tools/stack-trace/stack-trace.styles.js +1 -1
- package/dist/components/agent-tools/subagent-panel/subagent-panel.class.d.ts +13 -7
- package/dist/components/agent-tools/subagent-panel/subagent-panel.class.js +10 -53
- package/dist/components/agent-tools/subagent-panel/subagent-panel.styles.js +1 -1
- package/dist/components/agent-tools/task-list/task-list.class.d.ts +9 -5
- package/dist/components/agent-tools/task-list/task-list.class.js +12 -44
- package/dist/components/agent-tools/task-list/task-list.styles.js +1 -1
- package/dist/components/agent-tools/terminal/terminal.class.d.ts +47 -17
- package/dist/components/agent-tools/terminal/terminal.class.js +13 -40
- package/dist/components/agent-tools/terminal/terminal.styles.js +1 -1
- package/dist/components/agent-tools/test-results/test-results.class.d.ts +12 -7
- package/dist/components/agent-tools/test-results/test-results.class.js +19 -47
- package/dist/components/agent-tools/test-results/test-results.styles.js +1 -1
- package/dist/components/agent-tools/thinking-panel/thinking-panel.class.d.ts +12 -6
- package/dist/components/agent-tools/thinking-panel/thinking-panel.class.js +5 -20
- package/dist/components/agent-tools/thinking-panel/thinking-panel.styles.js +1 -1
- package/dist/components/agent-tools/tool-approval-dialog/tool-approval-dialog.class.d.ts +16 -6
- package/dist/components/agent-tools/tool-approval-dialog/tool-approval-dialog.class.js +9 -41
- package/dist/components/agent-tools/tool-approval-dialog/tool-approval-dialog.styles.js +1 -1
- package/dist/components/agent-tools/tool-call-block/tool-call-block.class.d.ts +12 -5
- package/dist/components/agent-tools/tool-call-block/tool-call-block.class.js +6 -23
- package/dist/components/agent-tools/tool-call-block/tool-call-block.styles.js +1 -1
- package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.d.ts +22 -5
- package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.js +9 -27
- package/dist/components/agent-tools/tool-call-chip/tool-call-chip.styles.js +1 -1
- package/dist/components/agent-tools/tool-param-form/tool-param-constraints.js +1 -1
- package/dist/components/agent-tools/tool-param-form/tool-param-form.class.d.ts +11 -9
- package/dist/components/agent-tools/tool-param-form/tool-param-form.class.js +6 -95
- package/dist/components/agent-tools/tool-param-form/tool-param-form.styles.js +1 -1
- package/dist/components/agent-tools/tool-param-form/tool-param-snapshot.js +1 -1
- package/dist/components/agent-tools/tool-redaction.js +1 -1
- package/dist/components/agent-tools/tool-result-dialog/tool-result-dialog.class.d.ts +20 -5
- package/dist/components/agent-tools/tool-result-dialog/tool-result-dialog.class.js +9 -24
- package/dist/components/agent-tools/tool-result-dialog/tool-result-dialog.styles.js +1 -1
- package/dist/components/agent-tools/tool-result-view/registry.d.ts +6 -0
- package/dist/components/agent-tools/tool-result-view/tool-result-view.class.d.ts +3 -2
- package/dist/components/agent-tools/tool-result-view/tool-result-view.class.js +2 -2
- package/dist/components/agent-tools/tool-select-dialog/tool-select-dialog.class.d.ts +34 -15
- package/dist/components/agent-tools/tool-select-dialog/tool-select-dialog.class.js +16 -68
- package/dist/components/agent-tools/tool-select-dialog/tool-select-dialog.styles.js +1 -1
- package/dist/components/agent-tools/tool-status.js +1 -18
- package/dist/components/agent-tools/tool-status.styles.js +1 -1
- package/dist/components/agent-tools/tool-timeline/tool-timeline.class.d.ts +22 -7
- package/dist/components/agent-tools/tool-timeline/tool-timeline.class.js +15 -56
- package/dist/components/agent-tools/trace-tree/trace-tree.class.d.ts +19 -11
- package/dist/components/agent-tools/trace-tree/trace-tree.class.js +13 -53
- package/dist/components/agent-tools/trace-tree/trace-tree.styles.js +1 -1
- package/dist/components/charts/chart/bar-chart.class.d.ts +3 -1
- package/dist/components/charts/chart/box-plot-loader.d.ts +1 -1
- package/dist/components/charts/chart/box-plot-loader.js +1 -1
- package/dist/components/charts/chart/box-plot.class.d.ts +29 -6
- package/dist/components/charts/chart/box-plot.class.js +13 -45
- package/dist/components/charts/chart/box-plot.styles.js +1 -1
- package/dist/components/charts/chart/bubble-chart.class.d.ts +3 -1
- package/dist/components/charts/chart/chart-band.js +1 -0
- package/dist/components/charts/chart/chart-bidi.js +1 -1
- package/dist/components/charts/chart/chart-colors.d.ts +1 -2
- package/dist/components/charts/chart/chart-core-loader.js +1 -1
- package/dist/components/charts/chart/chart-data-table.js +1 -1
- package/dist/components/charts/chart/chart-feature-loader.d.ts +3 -128
- package/dist/components/charts/chart/chart-feature-loader.js +1 -1
- package/dist/components/charts/chart/chart-forced-colors.js +1 -1
- package/dist/components/charts/chart/chart-input-projection.js +1 -0
- package/dist/components/charts/chart/chart-legend-visibility.d.ts +12 -0
- package/dist/components/charts/chart/chart-legend-visibility.js +1 -1
- package/dist/components/charts/chart/chart-peer.js +1 -0
- package/dist/components/charts/chart/chart-preload.js +1 -1
- package/dist/components/charts/chart/chart-prepared-data.d.ts +1 -11
- package/dist/components/charts/chart/chart-prepared-data.js +1 -1
- package/dist/components/charts/chart/chart-series-bounds.js +1 -1
- package/dist/components/charts/chart/chart-spatial-data.js +2 -2
- package/dist/components/charts/chart/chart-spatial-model.js +1 -0
- package/dist/components/charts/chart/chart-surface-shared.js +1 -1
- package/dist/components/charts/chart/chart-surface.styles.js +1 -1
- package/dist/components/charts/chart/chart-sync.js +1 -1
- package/dist/components/charts/chart/chart-sync.styles.js +1 -1
- package/dist/components/charts/chart/chart-token-cache.js +2 -2
- package/dist/components/charts/chart/chart-types.d.ts +99 -0
- package/dist/components/charts/chart/chart.class.d.ts +76 -90
- package/dist/components/charts/chart/chart.class.js +23 -80
- package/dist/components/charts/chart/chart.styles.js +1 -1
- package/dist/components/charts/chart/doughnut-chart.class.d.ts +3 -1
- package/dist/components/charts/chart/histogram-bin.d.ts +3 -1
- package/dist/components/charts/chart/histogram-bin.js +1 -1
- package/dist/components/charts/chart/histogram-buckets.d.ts +3 -1
- package/dist/components/charts/chart/histogram-buckets.js +1 -1
- package/dist/components/charts/chart/histogram.class.d.ts +6 -2
- package/dist/components/charts/chart/histogram.class.js +1 -1
- package/dist/components/charts/chart/line-chart.class.d.ts +3 -1
- package/dist/components/charts/chart/lite-chart.class.d.ts +44 -22
- package/dist/components/charts/chart/lite-chart.class.js +26 -165
- package/dist/components/charts/chart/lite-chart.styles.js +1 -1
- package/dist/components/charts/chart/pie-chart.class.d.ts +3 -1
- package/dist/components/charts/chart/polar-area-chart.class.d.ts +3 -1
- package/dist/components/charts/chart/radar-chart.class.d.ts +3 -1
- package/dist/components/charts/chart/scatter-chart.class.d.ts +3 -1
- package/dist/components/charts/chart-3d/chart-3d-data.d.ts +2 -1
- package/dist/components/charts/chart-3d/chart-3d-data.js +1 -1
- package/dist/components/charts/chart-3d/chart-3d-engine.js +1 -1
- package/dist/components/charts/chart-3d/chart-3d.class.d.ts +14 -8
- package/dist/components/charts/chart-3d/chart-3d.class.js +13 -21
- package/dist/components/charts/chart-3d/chart-3d.styles.js +1 -1
- package/dist/components/charts/index.d.ts +1 -1
- package/dist/components/charts/index.js +1 -1
- package/dist/components/conversation/agent-workspace/agent-workspace-register.d.ts +1 -1
- package/dist/components/conversation/agent-workspace/agent-workspace-register.js +1 -1
- package/dist/components/conversation/agent-workspace/agent-workspace.class.d.ts +34 -8
- package/dist/components/conversation/agent-workspace/agent-workspace.class.js +23 -82
- package/dist/components/conversation/agent-workspace/agent-workspace.styles.js +1 -1
- package/dist/components/conversation/audio-visualizer/audio-visualizer.class.d.ts +11 -5
- package/dist/components/conversation/audio-visualizer/audio-visualizer.class.js +1 -1
- package/dist/components/conversation/branch-picker/branch-picker.class.d.ts +14 -2
- package/dist/components/conversation/branch-picker/branch-picker.class.js +4 -16
- package/dist/components/conversation/branch-picker/branch-picker.styles.js +1 -1
- package/dist/components/conversation/catalog-picker-element.d.ts +64 -3
- package/dist/components/conversation/catalog-picker-element.js +1 -1
- package/dist/components/conversation/catalog-picker-trigger.styles.js +1 -1
- package/dist/components/conversation/chat-composer/chat-composer.class.d.ts +58 -14
- package/dist/components/conversation/chat-composer/chat-composer.class.js +4 -35
- package/dist/components/conversation/chat-composer/chat-composer.styles.js +1 -1
- package/dist/components/conversation/chat-message/chat-message.class.d.ts +27 -7
- package/dist/components/conversation/chat-message/chat-message.class.js +18 -32
- package/dist/components/conversation/chat-message/chat-message.styles.js +1 -1
- package/dist/components/conversation/chat-viewport/chat-viewport.class.d.ts +19 -6
- package/dist/components/conversation/chat-viewport/chat-viewport.class.js +5 -22
- package/dist/components/conversation/chat-viewport/chat-viewport.styles.js +1 -1
- package/dist/components/conversation/checkpoint/checkpoint.class.d.ts +29 -1
- package/dist/components/conversation/checkpoint/checkpoint.class.js +21 -52
- package/dist/components/conversation/checkpoint/checkpoint.styles.js +1 -1
- package/dist/components/conversation/code-block/code-block-base.class.d.ts +37 -6
- package/dist/components/conversation/code-block/code-block-base.class.js +1 -1
- package/dist/components/conversation/code-block/code-block-core.class.d.ts +71 -13
- package/dist/components/conversation/code-block/code-block-core.class.js +1 -1
- package/dist/components/conversation/code-block/code-block-shared.d.ts +25 -62
- package/dist/components/conversation/code-block/code-block-shared.js +11 -68
- package/dist/components/conversation/code-block/code-block.class.d.ts +70 -12
- package/dist/components/conversation/code-block/code-block.class.js +1 -1
- package/dist/components/conversation/code-block/code-block.styles.js +1 -1
- package/dist/components/conversation/code-block/code-loader.d.ts +2 -37
- package/dist/components/conversation/code-block/code-loader.js +1 -1
- package/dist/components/conversation/code-block/shiki-types.d.ts +1 -115
- package/dist/components/conversation/code-block/shiki-types.js +1 -1
- package/dist/components/conversation/conversation-item/conversation-item.class.d.ts +31 -6
- package/dist/components/conversation/conversation-item/conversation-item.class.js +16 -60
- package/dist/components/conversation/conversation-item/conversation-item.styles.js +1 -1
- package/dist/components/conversation/generation-metrics/generation-metrics.class.d.ts +11 -1
- package/dist/components/conversation/generation-metrics/generation-metrics.class.js +5 -22
- package/dist/components/conversation/generation-metrics/generation-metrics.styles.js +1 -1
- package/dist/components/conversation/handoff-divider/handoff-divider.class.d.ts +8 -2
- package/dist/components/conversation/handoff-divider/handoff-divider.class.js +4 -4
- package/dist/components/conversation/handoff-divider/handoff-divider.styles.js +1 -1
- package/dist/components/conversation/index.d.ts +1 -1
- package/dist/components/conversation/index.js +1 -1
- package/dist/components/conversation/markdown/katex-loader.d.ts +2 -7
- package/dist/components/conversation/markdown/katex-loader.js +1 -1
- package/dist/components/conversation/markdown/markdown-base.class.d.ts +7 -7
- package/dist/components/conversation/markdown/markdown-base.class.js +2 -1
- package/dist/components/conversation/markdown/markdown-code-header.d.ts +4 -2
- package/dist/components/conversation/markdown/markdown-code-header.js +1 -1
- package/dist/components/conversation/markdown/markdown-core.class.d.ts +69 -12
- package/dist/components/conversation/markdown/markdown-core.class.js +1 -1
- package/dist/components/conversation/markdown/markdown-fallback-code.d.ts +1 -5
- package/dist/components/conversation/markdown/markdown-fallback-code.js +2 -2
- package/dist/components/conversation/markdown/markdown-fence.js +2 -0
- package/dist/components/conversation/markdown/markdown-loader.d.ts +2 -17
- package/dist/components/conversation/markdown/markdown-loader.js +1 -1
- package/dist/components/conversation/markdown/markdown-progressive.js +4 -4
- package/dist/components/conversation/markdown/markdown-shared.d.ts +15 -48
- package/dist/components/conversation/markdown/markdown-shared.js +6 -6
- package/dist/components/conversation/markdown/markdown.class.d.ts +74 -18
- package/dist/components/conversation/markdown/markdown.class.js +1 -1
- package/dist/components/conversation/markdown/markdown.styles.js +1 -1
- package/dist/components/conversation/message-actions/message-actions.class.d.ts +2 -0
- package/dist/components/conversation/message-actions/message-actions.class.js +6 -35
- package/dist/components/conversation/message-actions/message-actions.styles.js +1 -1
- package/dist/components/conversation/message-actions/toolbar-actions.d.ts +1 -20
- package/dist/components/conversation/message-actions/toolbar-actions.js +1 -1
- package/dist/components/conversation/message-feedback/message-feedback.class.d.ts +27 -5
- package/dist/components/conversation/message-feedback/message-feedback.class.js +7 -52
- package/dist/components/conversation/message-feedback/message-feedback.styles.js +1 -1
- package/dist/components/conversation/message-parts/message-parts.class.d.ts +28 -3
- package/dist/components/conversation/message-parts/message-parts.class.js +10 -65
- package/dist/components/conversation/message-parts/message-parts.styles.js +1 -1
- package/dist/components/conversation/model-select/model-select.class.d.ts +44 -46
- package/dist/components/conversation/model-select/model-select.class.js +11 -78
- package/dist/components/conversation/model-select/model-select.styles.js +1 -1
- package/dist/components/conversation/model-settings-panel/model-settings-panel.class.d.ts +24 -2
- package/dist/components/conversation/model-settings-panel/model-settings-panel.class.js +4 -31
- package/dist/components/conversation/prompt-input/prompt-input-register.d.ts +1 -1
- package/dist/components/conversation/prompt-input/prompt-input-register.js +1 -1
- package/dist/components/conversation/prompt-input/prompt-input.class.d.ts +57 -14
- package/dist/components/conversation/prompt-input/prompt-input.class.js +13 -112
- package/dist/components/conversation/prompt-input/prompt-input.styles.js +1 -1
- package/dist/components/conversation/prompt-queue/prompt-queue.class.d.ts +19 -7
- package/dist/components/conversation/prompt-queue/prompt-queue.class.js +13 -62
- package/dist/components/conversation/prompt-queue/prompt-queue.styles.js +1 -1
- package/dist/components/conversation/push-to-talk/push-to-talk.class.d.ts +20 -7
- package/dist/components/conversation/push-to-talk/push-to-talk.class.js +4 -20
- package/dist/components/conversation/push-to-talk/push-to-talk.styles.js +1 -1
- package/dist/components/conversation/realtime-session/realtime-session.class.d.ts +23 -3
- package/dist/components/conversation/realtime-session/realtime-session.class.js +10 -35
- package/dist/components/conversation/realtime-session/realtime-session.styles.js +1 -1
- package/dist/components/conversation/selection-toolbar/selection-toolbar.class.d.ts +8 -2
- package/dist/components/conversation/selection-toolbar/selection-toolbar.class.js +2 -18
- package/dist/components/conversation/selection-toolbar/selection-toolbar.styles.js +1 -1
- package/dist/components/conversation/stream-status/stream-status.class.d.ts +8 -10
- package/dist/components/conversation/stream-status/stream-status.class.js +6 -7
- package/dist/components/conversation/streaming-text/streaming-text-base.class.d.ts +2 -2
- package/dist/components/conversation/streaming-text/streaming-text-base.class.js +27 -3
- package/dist/components/conversation/streaming-text/streaming-text-core.class.d.ts +3 -2
- package/dist/components/conversation/streaming-text/streaming-text-core.class.js +1 -24
- package/dist/components/conversation/streaming-text/streaming-text.class.d.ts +5 -4
- package/dist/components/conversation/streaming-text/streaming-text.class.js +1 -25
- package/dist/components/conversation/suggestion-chips/suggestion-chips.class.d.ts +12 -5
- package/dist/components/conversation/suggestion-chips/suggestion-chips.class.js +4 -12
- package/dist/components/conversation/suggestion-chips/suggestion-chips.styles.js +1 -1
- package/dist/components/conversation/thread-list/thread-list-buckets.js +1 -0
- package/dist/components/conversation/thread-list/thread-list-source.js +1 -0
- package/dist/components/conversation/thread-list/thread-list-types.d.ts +3 -0
- package/dist/components/conversation/thread-list/thread-list.class.d.ts +67 -22
- package/dist/components/conversation/thread-list/thread-list.class.js +25 -116
- package/dist/components/conversation/thread-list/thread-list.styles.js +1 -1
- package/dist/components/conversation/transcript-feed/transcript-feed.class.d.ts +15 -3
- package/dist/components/conversation/transcript-feed/transcript-feed.class.js +8 -18
- package/dist/components/conversation/transcript-feed/transcript-feed.styles.js +1 -1
- package/dist/components/conversation/typing-indicator/typing-indicator.class.d.ts +4 -6
- package/dist/components/conversation/typing-indicator/typing-indicator.class.js +1 -1
- package/dist/components/conversation/usage-badge/usage-badge-overlay-runtime.js +1 -1
- package/dist/components/conversation/usage-badge/usage-badge.class.d.ts +18 -1
- package/dist/components/conversation/usage-badge/usage-badge.class.js +3 -14
- package/dist/components/conversation/usage-badge/usage-badge.styles.js +1 -1
- package/dist/components/conversation/voice-picker/voice-picker.class.d.ts +50 -33
- package/dist/components/conversation/voice-picker/voice-picker.class.js +14 -95
- package/dist/components/conversation/voice-picker/voice-picker.styles.js +1 -1
- package/dist/components/conversation/widget-renderer/widget-renderer.class.d.ts +3 -5
- package/dist/components/conversation/widget-renderer/widget-renderer.class.js +2 -2
- package/dist/components/data/calendar/calendar.class.d.ts +21 -6
- package/dist/components/data/calendar/calendar.class.js +2 -2
- package/dist/components/data/calendar/calendar.styles.js +1 -1
- package/dist/components/data/chord/chord-layout.d.ts +6 -0
- package/dist/components/data/chord/chord-layout.js +1 -0
- package/dist/components/data/chord/chord.class.d.ts +61 -0
- package/dist/components/data/chord/chord.class.js +5 -0
- package/dist/components/data/choropleth/choropleth-geometry.d.ts +7 -0
- package/dist/components/data/choropleth/choropleth-geometry.js +1 -0
- package/dist/components/data/choropleth/choropleth-layout.d.ts +7 -0
- package/dist/components/data/choropleth/choropleth-layout.js +1 -0
- package/dist/components/data/choropleth/choropleth.class.d.ts +73 -0
- package/dist/components/data/choropleth/choropleth.class.js +1 -0
- package/dist/components/data/condition-builder/condition-builder-register.d.ts +1 -1
- package/dist/components/data/condition-builder/condition-builder-register.js +1 -1
- package/dist/components/data/condition-builder/condition-builder.class.d.ts +9 -6
- package/dist/components/data/condition-builder/condition-builder.class.js +18 -117
- package/dist/components/data/condition-builder/condition-builder.styles.js +1 -1
- package/dist/components/data/context-meter/context-meter.class.d.ts +9 -7
- package/dist/components/data/context-meter/context-meter.class.js +12 -65
- package/dist/components/data/context-meter/context-meter.styles.js +1 -1
- package/dist/components/data/data-grid/data-grid-processing.js +2 -2
- package/dist/components/data/data-grid/data-grid-support.js +1 -0
- package/dist/components/data/data-grid/data-grid-types.d.ts +8 -6
- package/dist/components/data/data-grid/data-grid.class.d.ts +45 -16
- package/dist/components/data/data-grid/data-grid.class.js +56 -374
- package/dist/components/data/data-grid/data-grid.styles.js +1 -1
- package/dist/components/data/document-library/document-library-support.d.ts +11 -0
- package/dist/components/data/document-library/document-library-support.js +1 -0
- package/dist/components/data/document-library/document-library.class.d.ts +21 -16
- package/dist/components/data/document-library/document-library.class.js +16 -115
- package/dist/components/data/document-library/document-library.styles.js +1 -1
- package/dist/components/data/env-list/env-list.class.d.ts +11 -6
- package/dist/components/data/env-list/env-list.class.js +8 -17
- package/dist/components/data/env-list/env-list.styles.js +1 -1
- package/dist/components/data/file-tree/file-tree.class.d.ts +11 -4
- package/dist/components/data/file-tree/file-tree.class.js +3 -20
- package/dist/components/data/flow-canvas/flow-canvas.class.d.ts +25 -21
- package/dist/components/data/flow-canvas/flow-canvas.class.js +22 -127
- package/dist/components/data/flow-canvas/flow-canvas.styles.js +1 -1
- package/dist/components/data/flow-canvas/flow-companion-controller.js +1 -1
- package/dist/components/data/flow-canvas/flow-model.js +1 -1
- package/dist/components/data/flow-canvas/flow-status.styles.js +1 -1
- package/dist/components/data/flow-canvas/flow-types.d.ts +1 -2
- package/dist/components/data/flow-controls/flow-controls.class.d.ts +16 -2
- package/dist/components/data/flow-controls/flow-controls.class.js +6 -55
- package/dist/components/data/flow-controls/flow-controls.styles.js +1 -1
- package/dist/components/data/flow-minimap/flow-minimap.class.d.ts +5 -1
- package/dist/components/data/flow-minimap/flow-minimap.class.js +5 -44
- package/dist/components/data/flow-minimap/flow-minimap.styles.js +1 -1
- package/dist/components/data/flow-node/flow-node.class.d.ts +5 -6
- package/dist/components/data/flow-node/flow-node.class.js +13 -35
- package/dist/components/data/flow-node/flow-node.styles.js +1 -1
- package/dist/components/data/flow-run-status/flow-run-status.class.js +2 -2
- package/dist/components/data/flow-run-status/flow-run-status.styles.js +1 -1
- package/dist/components/data/funnel/funnel.class.d.ts +13 -13
- package/dist/components/data/funnel/funnel.class.js +9 -16
- package/dist/components/data/gauge/gauge.class.d.ts +7 -1
- package/dist/components/data/gauge/gauge.class.js +16 -81
- package/dist/components/data/graph-query-builder/graph-query-builder.class.d.ts +36 -7
- package/dist/components/data/graph-query-builder/graph-query-builder.class.js +19 -102
- package/dist/components/data/graph-query-builder/graph-query-builder.styles.js +1 -1
- package/dist/components/data/heatmap/calendar-grid.d.ts +4 -21
- package/dist/components/data/heatmap/calendar-grid.js +1 -1
- package/dist/components/data/heatmap/heatmap-colors.d.ts +3 -14
- package/dist/components/data/heatmap/heatmap-colors.js +1 -1
- package/dist/components/data/heatmap/heatmap-config.js +1 -0
- package/dist/components/data/heatmap/heatmap-grid-navigation.js +1 -1
- package/dist/components/data/heatmap/heatmap-model.d.ts +121 -0
- package/dist/components/data/heatmap/heatmap-model.js +1 -0
- package/dist/components/data/heatmap/heatmap-source-view.js +15 -0
- package/dist/components/data/heatmap/heatmap.class.d.ts +108 -134
- package/dist/components/data/heatmap/heatmap.class.js +25 -107
- package/dist/components/data/heatmap/heatmap.styles.js +1 -1
- package/dist/components/data/index.d.ts +1 -1
- package/dist/components/data/index.js +1 -1
- package/dist/components/data/pagination/pagination.class.d.ts +55 -18
- package/dist/components/data/pagination/pagination.class.js +20 -95
- package/dist/components/data/pagination/pagination.styles.js +1 -1
- package/dist/components/data/sankey/sankey-layout.d.ts +21 -0
- package/dist/components/data/sankey/sankey-layout.js +1 -0
- package/dist/components/data/sankey/sankey.class.d.ts +57 -0
- package/dist/components/data/sankey/sankey.class.js +2 -0
- package/dist/components/data/sequence-strip/sequence-strip-item.d.ts +1 -1
- package/dist/components/data/sequence-strip/sequence-strip.class.d.ts +4 -4
- package/dist/components/data/sequence-strip/sequence-strip.class.js +16 -53
- package/dist/components/data/sequence-strip/sequence-strip.styles.js +1 -1
- package/dist/components/data/sparkline/sparkline.class.d.ts +5 -2
- package/dist/components/data/sparkline/sparkline.class.js +4 -20
- package/dist/components/data/stat/stat.class.d.ts +76 -20
- package/dist/components/data/stat/stat.class.js +16 -34
- package/dist/components/data/stat/stat.styles.js +1 -1
- package/dist/components/data/table/table-row-attributes.js +1 -0
- package/dist/components/data/table/table-support.d.ts +339 -0
- package/dist/components/data/table/table-support.js +1 -0
- package/dist/components/data/table/table.class.d.ts +195 -272
- package/dist/components/data/table/table.class.js +27 -196
- package/dist/components/data/table/table.styles.js +1 -1
- package/dist/components/data/timeline/timeline-item.class.d.ts +41 -7
- package/dist/components/data/timeline/timeline-item.class.js +21 -40
- package/dist/components/data/timeline/timeline-item.styles.js +1 -1
- package/dist/components/data/timeline/timeline.class.d.ts +79 -7
- package/dist/components/data/timeline/timeline.class.js +11 -7
- package/dist/components/data/timeline/timeline.styles.js +1 -1
- package/dist/components/data/tree/tree-item.class.d.ts +12 -2
- package/dist/components/data/tree/tree-item.class.js +6 -31
- package/dist/components/data/tree/tree-item.styles.js +1 -1
- package/dist/components/data/tree/tree-owner-controller.js +1 -1
- package/dist/components/data/tree/tree-pointer-reorder.js +1 -1
- package/dist/components/data/tree/tree.class.d.ts +4 -4
- package/dist/components/data/tree/tree.class.js +4 -14
- package/dist/components/data/treemap/treemap-layout.d.ts +9 -0
- package/dist/components/data/treemap/treemap-layout.js +1 -0
- package/dist/components/data/treemap/treemap.class.d.ts +52 -0
- package/dist/components/data/treemap/treemap.class.js +4 -0
- package/dist/components/data/word-cloud/word-cloud.class.d.ts +4 -4
- package/dist/components/data/word-cloud/word-cloud.class.js +9 -48
- package/dist/components/data/word-cloud/word-cloud.styles.js +1 -1
- package/dist/components/forms/button/button.class.d.ts +20 -5
- package/dist/components/forms/button/button.class.js +5 -48
- package/dist/components/forms/button/button.styles.js +1 -1
- package/dist/components/forms/catalog-picker-base.d.ts +27 -5
- package/dist/components/forms/catalog-picker-base.js +12 -5
- package/dist/components/forms/catalog-picker-base.styles.js +1 -1
- package/dist/components/forms/checkbox/checkbox.class.d.ts +23 -12
- package/dist/components/forms/checkbox/checkbox.class.js +4 -53
- package/dist/components/forms/checkbox/checkbox.styles.js +1 -1
- package/dist/components/forms/checkbox-group/checkbox-group.class.d.ts +55 -10
- package/dist/components/forms/checkbox-group/checkbox-group.class.js +6 -17
- package/dist/components/forms/checkbox-group/checkbox-group.styles.js +1 -1
- package/dist/components/forms/code-editor/code-editor.class.d.ts +88 -19
- package/dist/components/forms/code-editor/code-editor.class.js +15 -69
- package/dist/components/forms/code-editor/code-editor.styles.js +1 -1
- package/dist/components/forms/color-picker/color-core.d.ts +5 -2
- package/dist/components/forms/color-picker/color-core.js +1 -1
- package/dist/components/forms/color-picker/color-picker.class.d.ts +72 -14
- package/dist/components/forms/color-picker/color-picker.class.js +23 -154
- package/dist/components/forms/color-picker/color-picker.styles.js +1 -1
- package/dist/components/forms/combobox/combobox-catalog.js +1 -1
- package/dist/components/forms/combobox/combobox.class.d.ts +192 -23
- package/dist/components/forms/combobox/combobox.class.js +26 -110
- package/dist/components/forms/combobox/combobox.styles.js +1 -1
- package/dist/components/forms/combobox/option.class.d.ts +6 -2
- package/dist/components/forms/combobox/option.class.js +2 -15
- package/dist/components/forms/combobox/option.styles.js +1 -1
- package/dist/components/forms/country-picker/country-picker.class.d.ts +28 -1
- package/dist/components/forms/country-picker/country-picker.class.js +1 -1
- package/dist/components/forms/currency-picker/currency-catalog.js +1 -1
- package/dist/components/forms/currency-picker/currency-picker.class.d.ts +27 -0
- package/dist/components/forms/currency-picker/currency-picker.class.js +1 -1
- package/dist/components/forms/date-picker/calendar-core.d.ts +1 -49
- package/dist/components/forms/date-picker/calendar-core.js +1 -1
- package/dist/components/forms/date-picker/date-input.class.d.ts +146 -17
- package/dist/components/forms/date-picker/date-input.class.js +15 -119
- package/dist/components/forms/date-picker/date-input.styles.js +1 -1
- package/dist/components/forms/date-picker/date-picker-disabled-dates.js +1 -1
- package/dist/components/forms/date-picker/date-picker.class.d.ts +85 -17
- package/dist/components/forms/date-picker/date-picker.class.js +20 -108
- package/dist/components/forms/date-picker/date-picker.styles.js +1 -1
- package/dist/components/forms/emoji-picker/emoji-data-loader.js +1 -1
- package/dist/components/forms/emoji-picker/emoji-picker.class.d.ts +23 -6
- package/dist/components/forms/emoji-picker/emoji-picker.class.js +7 -69
- package/dist/components/forms/emoji-picker/emoji-picker.styles.js +1 -1
- package/dist/components/forms/icon-button/icon-button.class.d.ts +21 -10
- package/dist/components/forms/icon-button/icon-button.class.js +1 -37
- package/dist/components/forms/icon-button/icon-button.styles.js +1 -1
- package/dist/components/forms/index.d.ts +1 -1
- package/dist/components/forms/index.js +1 -1
- package/dist/components/forms/input/input-shared.d.ts +57 -13
- package/dist/components/forms/input/input-shared.js +13 -88
- package/dist/components/forms/input/input.styles.js +1 -1
- package/dist/components/forms/input/number-input.class.js +3 -17
- package/dist/components/forms/input/number-input.styles.js +1 -1
- package/dist/components/forms/input/time-input.class.d.ts +71 -7
- package/dist/components/forms/input/time-input.class.js +15 -109
- package/dist/components/forms/input/time-input.styles.js +1 -1
- package/dist/components/forms/locale-picker/locale-picker.class.d.ts +49 -9
- package/dist/components/forms/locale-picker/locale-picker.class.js +11 -74
- package/dist/components/forms/locale-picker/locale-picker.styles.js +1 -1
- package/dist/components/forms/otp-input/otp-input.class.d.ts +45 -4
- package/dist/components/forms/otp-input/otp-input.class.js +4 -38
- package/dist/components/forms/otp-input/otp-input.styles.js +1 -1
- package/dist/components/forms/phone-input/phone-input.class.d.ts +54 -14
- package/dist/components/forms/phone-input/phone-input.class.js +11 -53
- package/dist/components/forms/phone-input/phone-input.styles.js +1 -1
- package/dist/components/forms/phone-input/phone-number-adapter.js +1 -1
- package/dist/components/forms/radio/radio-button.class.d.ts +5 -1
- package/dist/components/forms/radio/radio-button.class.js +1 -1
- package/dist/components/forms/radio/radio-button.styles.js +1 -1
- package/dist/components/forms/radio/radio-group.class.d.ts +68 -10
- package/dist/components/forms/radio/radio-group.class.js +5 -17
- package/dist/components/forms/radio/radio-group.styles.js +1 -1
- package/dist/components/forms/radio/radio.class.d.ts +24 -9
- package/dist/components/forms/radio/radio.class.js +5 -19
- package/dist/components/forms/radio/radio.styles.js +1 -1
- package/dist/components/forms/rubric-form/rubric-form.class.d.ts +35 -12
- package/dist/components/forms/rubric-form/rubric-form.class.js +15 -103
- package/dist/components/forms/rubric-form/rubric-form.styles.js +1 -1
- package/dist/components/forms/select/select.class.d.ts +71 -18
- package/dist/components/forms/select/select.class.js +22 -115
- package/dist/components/forms/select/select.styles.js +1 -1
- package/dist/components/forms/signature-pad/signature-pad.class.d.ts +66 -5
- package/dist/components/forms/signature-pad/signature-pad.class.js +7 -30
- package/dist/components/forms/signature-pad/signature-pad.styles.js +1 -1
- package/dist/components/forms/slider/slider.class.d.ts +77 -9
- package/dist/components/forms/slider/slider.class.js +20 -54
- package/dist/components/forms/slider/slider.styles.js +1 -1
- package/dist/components/forms/swatch-picker/swatch-picker.class.d.ts +26 -11
- package/dist/components/forms/swatch-picker/swatch-picker.class.js +4 -22
- package/dist/components/forms/swatch-picker/swatch-picker.styles.js +1 -1
- package/dist/components/forms/switch/switch.class.d.ts +13 -7
- package/dist/components/forms/switch/switch.class.js +4 -25
- package/dist/components/forms/switch/switch.styles.js +1 -1
- package/dist/components/forms/textarea/textarea.class.d.ts +53 -14
- package/dist/components/forms/textarea/textarea.class.js +4 -36
- package/dist/components/forms/textarea/textarea.styles.js +1 -1
- package/dist/components/forms/time-range/time-range.class.d.ts +34 -22
- package/dist/components/forms/time-range/time-range.class.js +7 -60
- package/dist/components/forms/time-range/time-range.styles.js +1 -1
- package/dist/components/forms/time-zone-picker/time-zone-picker.class.d.ts +27 -0
- package/dist/components/forms/time-zone-picker/time-zone-picker.class.js +1 -1
- package/dist/components/forms/toggle/toggle.class.d.ts +1 -1
- package/dist/components/forms/toggle/toggle.class.js +1 -13
- package/dist/components/forms/toggle/toggle.styles.js +1 -1
- package/dist/components/forms/toggle-group/toggle-group.class.d.ts +5 -5
- package/dist/components/forms/toggle-group/toggle-group.class.js +1 -1
- package/dist/components/forms/token-input/token-input.class.d.ts +165 -31
- package/dist/components/forms/token-input/token-input.class.js +21 -85
- package/dist/components/forms/token-input/token-input.styles.js +1 -1
- package/dist/components/forms/unit-picker/unit-picker.class.d.ts +27 -0
- package/dist/components/forms/unit-picker/unit-picker.class.js +1 -1
- package/dist/components/layout/app-rail/app-rail-item.class.d.ts +48 -13
- package/dist/components/layout/app-rail/app-rail-item.class.js +6 -39
- package/dist/components/layout/app-rail/app-rail-item.styles.js +1 -1
- package/dist/components/layout/app-rail/app-rail.class.d.ts +75 -40
- package/dist/components/layout/app-rail/app-rail.class.js +9 -54
- package/dist/components/layout/app-rail/app-rail.styles.js +1 -1
- package/dist/components/layout/app-rail-group/app-rail-group.class.d.ts +29 -3
- package/dist/components/layout/app-rail-group/app-rail-group.class.js +5 -23
- package/dist/components/layout/app-rail-group/app-rail-group.styles.js +1 -1
- package/dist/components/layout/breadcrumb/breadcrumb-item.class.d.ts +11 -1
- package/dist/components/layout/breadcrumb/breadcrumb-item.class.js +2 -9
- package/dist/components/layout/breadcrumb/breadcrumb-item.styles.js +1 -1
- package/dist/components/layout/breadcrumb/breadcrumb.class.d.ts +11 -9
- package/dist/components/layout/breadcrumb/breadcrumb.class.js +1 -1
- package/dist/components/layout/breadcrumb/breadcrumb.styles.js +1 -1
- package/dist/components/layout/button-group/button-group.class.d.ts +9 -3
- package/dist/components/layout/button-group/button-group.class.js +1 -1
- package/dist/components/layout/card/card.class.d.ts +56 -7
- package/dist/components/layout/card/card.class.js +6 -38
- package/dist/components/layout/card/card.styles.js +1 -1
- package/dist/components/layout/carousel/carousel-item.class.js +1 -1
- package/dist/components/layout/carousel/carousel-loop.js +1 -0
- package/dist/components/layout/carousel/carousel.class.d.ts +36 -8
- package/dist/components/layout/carousel/carousel.class.js +12 -63
- package/dist/components/layout/carousel/carousel.styles.js +1 -1
- package/dist/components/layout/command-palette/command-palette.class.d.ts +11 -3
- package/dist/components/layout/command-palette/command-palette.class.js +11 -70
- package/dist/components/layout/command-palette/command-palette.styles.js +1 -1
- package/dist/components/layout/control-group/control-group.class.d.ts +5 -3
- package/dist/components/layout/control-group/control-group.class.js +1 -1
- package/dist/components/layout/dashboard-grid/dashboard-grid-register.d.ts +1 -1
- package/dist/components/layout/dashboard-grid/dashboard-grid-register.js +1 -1
- package/dist/components/layout/dashboard-grid/dashboard-grid.class.d.ts +17 -7
- package/dist/components/layout/dashboard-grid/dashboard-grid.class.js +4 -27
- package/dist/components/layout/dashboard-grid/dashboard-grid.styles.js +1 -1
- package/dist/components/layout/dashboard-grid/layout-internal.js +1 -1
- package/dist/components/layout/details/accordion-item.class.d.ts +12 -1
- package/dist/components/layout/details/accordion-item.class.js +5 -32
- package/dist/components/layout/details/accordion-item.styles.js +1 -1
- package/dist/components/layout/details/accordion.class.d.ts +1 -0
- package/dist/components/layout/details/accordion.class.js +1 -5
- package/dist/components/layout/details/details.class.d.ts +25 -11
- package/dist/components/layout/details/details.class.js +6 -34
- package/dist/components/layout/details/details.styles.js +1 -1
- package/dist/components/layout/details/disclosure-motion.js +1 -1
- package/dist/components/layout/dock-panel/dock-panel.class.d.ts +14 -3
- package/dist/components/layout/dock-panel/dock-panel.class.js +3 -25
- package/dist/components/layout/dock-panel/dock-panel.styles.js +1 -1
- package/dist/components/layout/drilldown-panel/drilldown-panel.class.d.ts +4 -1
- package/dist/components/layout/drilldown-panel/drilldown-panel.class.js +17 -82
- package/dist/components/layout/drilldown-panel/drilldown-panel.styles.js +1 -1
- package/dist/components/layout/filter-bar/filter-bar.class.d.ts +22 -28
- package/dist/components/layout/filter-bar/filter-bar.class.js +19 -153
- package/dist/components/layout/filter-bar/filter-bar.styles.js +1 -1
- package/dist/components/layout/index.d.ts +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/layout/menu/dropdown-item.class.d.ts +8 -2
- package/dist/components/layout/menu/dropdown-item.class.js +1 -1
- package/dist/components/layout/menu/menu-item.class.d.ts +33 -15
- package/dist/components/layout/menu/menu-item.class.js +3 -17
- package/dist/components/layout/menu/menu-item.styles.js +1 -1
- package/dist/components/layout/menu/menu-label.class.d.ts +9 -1
- package/dist/components/layout/menu/menu-label.class.js +1 -1
- package/dist/components/layout/menu/menu.class.d.ts +34 -1
- package/dist/components/layout/menu/menu.class.js +4 -21
- package/dist/components/layout/menu/menu.styles.js +1 -1
- package/dist/components/layout/menubar/menubar-item.class.d.ts +9 -3
- package/dist/components/layout/menubar/menubar-item.class.js +1 -1
- package/dist/components/layout/menubar/menubar-item.styles.js +1 -1
- package/dist/components/layout/menubar/menubar.class.d.ts +11 -3
- package/dist/components/layout/menubar/menubar.class.js +1 -1
- package/dist/components/layout/menubar/menubar.styles.js +1 -1
- package/dist/components/layout/multi-split/multi-split-panel-ownership.js +1 -0
- package/dist/components/layout/multi-split/multi-split.class.d.ts +21 -18
- package/dist/components/layout/multi-split/multi-split.class.js +2 -16
- package/dist/components/layout/multi-split/multi-split.styles.js +1 -1
- package/dist/components/layout/navigation-menu/navigation-menu.class.d.ts +10 -6
- package/dist/components/layout/navigation-menu/navigation-menu.class.js +6 -24
- package/dist/components/layout/navigation-menu/navigation-menu.styles.js +1 -1
- package/dist/components/layout/navigation-menu-item/navigation-menu-item.class.d.ts +5 -2
- package/dist/components/layout/navigation-menu-item/navigation-menu-item.class.js +4 -27
- package/dist/components/layout/navigation-menu-item/navigation-menu-item.styles.js +1 -1
- package/dist/components/layout/page/page.class.d.ts +31 -14
- package/dist/components/layout/page/page.class.js +11 -42
- package/dist/components/layout/page/page.styles.js +1 -1
- package/dist/components/layout/reorder-list/reorder-item.class.d.ts +1 -1
- package/dist/components/layout/reorder-list/reorder-item.class.js +5 -21
- package/dist/components/layout/reorder-list/reorder-item.styles.js +1 -1
- package/dist/components/layout/reorder-list/reorder-list.class.d.ts +5 -5
- package/dist/components/layout/reorder-list/reorder-list.class.js +3 -10
- package/dist/components/layout/reorder-list/reorder-list.styles.js +1 -1
- package/dist/components/layout/responsive-panel/responsive-panel.class.d.ts +27 -10
- package/dist/components/layout/responsive-panel/responsive-panel.class.js +3 -9
- package/dist/components/layout/responsive-panel/responsive-panel.styles.js +1 -1
- package/dist/components/layout/scroller/scroller.class.d.ts +16 -4
- package/dist/components/layout/scroller/scroller.class.js +9 -37
- package/dist/components/layout/scroller/scroller.styles.js +1 -1
- package/dist/components/layout/segmented/segmented.class.d.ts +63 -11
- package/dist/components/layout/segmented/segmented.class.js +7 -29
- package/dist/components/layout/segmented/segmented.styles.js +1 -1
- package/dist/components/layout/split-panel/split-panel.class.d.ts +9 -2
- package/dist/components/layout/split-panel/split-panel.class.js +4 -21
- package/dist/components/layout/split-panel/split-panel.styles.js +1 -1
- package/dist/components/layout/stepper/step.class.d.ts +89 -0
- package/dist/components/layout/stepper/step.class.js +18 -0
- package/dist/components/layout/stepper/step.styles.js +1 -0
- package/dist/components/layout/stepper/stepper.class.d.ts +123 -12
- package/dist/components/layout/stepper/stepper.class.js +12 -45
- package/dist/components/layout/stepper/stepper.styles.js +1 -1
- package/dist/components/layout/tab-group/tab-group.class.d.ts +38 -10
- package/dist/components/layout/tab-group/tab-group.class.js +8 -49
- package/dist/components/layout/tab-group/tab-group.styles.js +1 -1
- package/dist/components/layout/tab-group/tab-panel.class.d.ts +1 -0
- package/dist/components/layout/tab-group/tab-panel.class.js +1 -1
- package/dist/components/layout/tab-group/tab.class.d.ts +7 -1
- package/dist/components/layout/tab-group/tab.class.js +2 -8
- package/dist/components/layout/tab-group/tab.styles.js +1 -1
- package/dist/components/layout/virtual-list/virtual-list.class.d.ts +25 -13
- package/dist/components/layout/virtual-list/virtual-list.class.js +9 -6
- package/dist/components/layout/virtual-list/virtual-list.styles.js +1 -1
- package/dist/components/layout/widget/widget.class.d.ts +37 -14
- package/dist/components/layout/widget/widget.class.js +13 -57
- package/dist/components/layout/widget/widget.styles.js +1 -1
- package/dist/components/lr-accordion-item.d.ts +1 -0
- package/dist/components/lr-accordion-item.js +1 -1
- package/dist/components/lr-accordion.d.ts +1 -0
- package/dist/components/lr-accordion.js +1 -1
- package/dist/components/lr-activity-feed.d.ts +1 -0
- package/dist/components/lr-activity-feed.js +1 -1
- package/dist/components/lr-agent-eval-dashboard.d.ts +1 -0
- package/dist/components/lr-agent-eval-dashboard.js +1 -1
- package/dist/components/lr-agent-question.d.ts +1 -0
- package/dist/components/lr-agent-question.js +1 -1
- package/dist/components/lr-agent-run.d.ts +1 -0
- package/dist/components/lr-agent-run.js +1 -1
- package/dist/components/lr-agent-trace.d.ts +1 -0
- package/dist/components/lr-agent-trace.js +1 -1
- package/dist/components/lr-agent-workspace.d.ts +1 -0
- package/dist/components/lr-agent-workspace.js +1 -1
- package/dist/components/lr-alert.d.ts +1 -0
- package/dist/components/lr-alert.js +1 -1
- package/dist/components/lr-animated-image.d.ts +1 -0
- package/dist/components/lr-animated-image.js +1 -1
- package/dist/components/lr-animation.d.ts +1 -0
- package/dist/components/lr-animation.js +1 -1
- package/dist/components/lr-app-rail-group.d.ts +1 -0
- package/dist/components/lr-app-rail-group.js +1 -1
- package/dist/components/lr-app-rail-item.d.ts +1 -0
- package/dist/components/lr-app-rail-item.js +1 -1
- package/dist/components/lr-app-rail.d.ts +1 -0
- package/dist/components/lr-app-rail.js +1 -1
- package/dist/components/lr-approval-queue.d.ts +1 -0
- package/dist/components/lr-approval-queue.js +1 -1
- package/dist/components/lr-archive-viewer.d.ts +1 -0
- package/dist/components/lr-archive-viewer.js +1 -1
- package/dist/components/lr-artifact-panel.d.ts +1 -0
- package/dist/components/lr-artifact-panel.js +1 -1
- package/dist/components/lr-attachment-chip.d.ts +1 -0
- package/dist/components/lr-attachment-chip.js +1 -1
- package/dist/components/lr-attachment-trigger.d.ts +1 -0
- package/dist/components/lr-attachment-trigger.js +1 -1
- package/dist/components/lr-audio-visualizer.d.ts +1 -0
- package/dist/components/lr-audio-visualizer.js +1 -1
- package/dist/components/lr-av-player.d.ts +1 -0
- package/dist/components/lr-av-player.js +1 -1
- package/dist/components/lr-avatar-group.d.ts +1 -0
- package/dist/components/lr-avatar-group.js +1 -1
- package/dist/components/lr-avatar.d.ts +1 -0
- package/dist/components/lr-avatar.js +1 -1
- package/dist/components/lr-background-runs.d.ts +1 -0
- package/dist/components/lr-background-runs.js +1 -1
- package/dist/components/lr-badge.d.ts +1 -0
- package/dist/components/lr-badge.js +1 -1
- package/dist/components/lr-bar-chart.d.ts +1 -0
- package/dist/components/lr-bar-chart.js +1 -1
- package/dist/components/lr-box-plot.d.ts +1 -0
- package/dist/components/lr-box-plot.js +1 -1
- package/dist/components/lr-branch-picker.d.ts +1 -0
- package/dist/components/lr-branch-picker.js +1 -1
- package/dist/components/lr-breadcrumb-item.d.ts +1 -0
- package/dist/components/lr-breadcrumb-item.js +1 -1
- package/dist/components/lr-breadcrumb.d.ts +1 -0
- package/dist/components/lr-breadcrumb.js +1 -1
- package/dist/components/lr-browser-frame.d.ts +1 -0
- package/dist/components/lr-browser-frame.js +1 -1
- package/dist/components/lr-bubble-chart.d.ts +1 -0
- package/dist/components/lr-bubble-chart.js +1 -1
- package/dist/components/lr-budget-meter.d.ts +1 -0
- package/dist/components/lr-budget-meter.js +1 -1
- package/dist/components/lr-button-group.d.ts +1 -0
- package/dist/components/lr-button-group.js +1 -1
- package/dist/components/lr-button.d.ts +1 -0
- package/dist/components/lr-button.js +1 -1
- package/dist/components/lr-calendar-viewer.d.ts +1 -0
- package/dist/components/lr-calendar-viewer.js +1 -1
- package/dist/components/lr-calendar.d.ts +1 -0
- package/dist/components/lr-calendar.js +1 -1
- package/dist/components/lr-callout.d.ts +1 -0
- package/dist/components/lr-callout.js +1 -1
- package/dist/components/lr-card.d.ts +1 -0
- package/dist/components/lr-card.js +1 -1
- package/dist/components/lr-carousel-item.d.ts +1 -0
- package/dist/components/lr-carousel-item.js +1 -1
- package/dist/components/lr-carousel.d.ts +1 -0
- package/dist/components/lr-carousel.js +1 -1
- package/dist/components/lr-change-review.d.ts +1 -0
- package/dist/components/lr-change-review.js +1 -1
- package/dist/components/lr-chart-3d.d.ts +1 -0
- package/dist/components/lr-chart-3d.js +1 -1
- package/dist/components/lr-chart.d.ts +1 -0
- package/dist/components/lr-chart.js +1 -1
- package/dist/components/lr-chat-composer.d.ts +1 -0
- package/dist/components/lr-chat-composer.js +1 -1
- package/dist/components/lr-chat-message.d.ts +1 -0
- package/dist/components/lr-chat-message.js +1 -1
- package/dist/components/lr-chat-viewport.d.ts +1 -0
- package/dist/components/lr-chat-viewport.js +1 -1
- package/dist/components/lr-checkbox-group.d.ts +1 -0
- package/dist/components/lr-checkbox-group.js +1 -1
- package/dist/components/lr-checkbox.d.ts +1 -0
- package/dist/components/lr-checkbox.js +1 -1
- package/dist/components/lr-checkpoint.d.ts +1 -0
- package/dist/components/lr-checkpoint.js +1 -1
- package/dist/components/lr-chip-group.d.ts +1 -0
- package/dist/components/lr-chip-group.js +1 -1
- package/dist/components/lr-chip.d.ts +1 -0
- package/dist/components/lr-chip.js +1 -1
- package/dist/components/lr-chord.d.ts +1 -0
- package/dist/components/lr-chord.js +1 -0
- package/dist/components/lr-choropleth.d.ts +1 -0
- package/dist/components/lr-choropleth.js +1 -0
- package/dist/components/lr-chunk-inspector.d.ts +1 -0
- package/dist/components/lr-chunk-inspector.js +1 -1
- package/dist/components/lr-citation-badge.d.ts +1 -0
- package/dist/components/lr-citation-badge.js +1 -1
- package/dist/components/lr-claim-evidence.d.ts +1 -0
- package/dist/components/lr-claim-evidence.js +1 -1
- package/dist/components/lr-code-block-core.d.ts +1 -0
- package/dist/components/lr-code-block-core.js +1 -1
- package/dist/components/lr-code-block.d.ts +1 -0
- package/dist/components/lr-code-block.js +1 -1
- package/dist/components/lr-code-editor.d.ts +1 -0
- package/dist/components/lr-code-editor.js +1 -1
- package/dist/components/lr-color-picker.d.ts +1 -0
- package/dist/components/lr-color-picker.js +1 -1
- package/dist/components/lr-combobox.d.ts +1 -0
- package/dist/components/lr-combobox.js +1 -1
- package/dist/components/lr-command-palette.d.ts +1 -0
- package/dist/components/lr-command-palette.js +1 -1
- package/dist/components/lr-commit-card.d.ts +1 -0
- package/dist/components/lr-commit-card.js +1 -1
- package/dist/components/lr-community-card.d.ts +1 -0
- package/dist/components/lr-community-card.js +1 -1
- package/dist/components/lr-compare-panel.d.ts +1 -0
- package/dist/components/lr-compare-panel.js +1 -1
- package/dist/components/lr-condition-builder.d.ts +1 -0
- package/dist/components/lr-condition-builder.js +1 -1
- package/dist/components/lr-confirm-bar.d.ts +1 -0
- package/dist/components/lr-confirm-bar.js +1 -1
- package/dist/components/lr-connector-manager.d.ts +1 -0
- package/dist/components/lr-connector-manager.js +1 -1
- package/dist/components/lr-contact-viewer.d.ts +1 -0
- package/dist/components/lr-contact-viewer.js +1 -1
- package/dist/components/lr-context-inspector.d.ts +1 -0
- package/dist/components/lr-context-inspector.js +1 -1
- package/dist/components/lr-context-menu.d.ts +1 -0
- package/dist/components/lr-context-menu.js +1 -1
- package/dist/components/lr-context-meter.d.ts +1 -0
- package/dist/components/lr-context-meter.js +1 -1
- package/dist/components/lr-control-group.d.ts +1 -0
- package/dist/components/lr-control-group.js +1 -1
- package/dist/components/lr-conversation-item.d.ts +1 -0
- package/dist/components/lr-conversation-item.js +1 -1
- package/dist/components/lr-copy-button.d.ts +1 -0
- package/dist/components/lr-copy-button.js +1 -1
- package/dist/components/lr-counter.d.ts +1 -0
- package/dist/components/lr-counter.js +1 -0
- package/dist/components/lr-country-picker.d.ts +1 -0
- package/dist/components/lr-country-picker.js +1 -1
- package/dist/components/lr-csv-viewer.d.ts +1 -0
- package/dist/components/lr-csv-viewer.js +1 -1
- package/dist/components/lr-currency-picker.d.ts +1 -0
- package/dist/components/lr-currency-picker.js +1 -1
- package/dist/components/lr-dashboard-grid.d.ts +1 -0
- package/dist/components/lr-dashboard-grid.js +1 -1
- package/dist/components/lr-data-grid.d.ts +1 -0
- package/dist/components/lr-data-grid.js +1 -1
- package/dist/components/lr-dataset-viewer.d.ts +1 -0
- package/dist/components/lr-dataset-viewer.js +1 -1
- package/dist/components/lr-date-input.d.ts +1 -0
- package/dist/components/lr-date-input.js +1 -1
- package/dist/components/lr-date-picker.d.ts +1 -0
- package/dist/components/lr-date-picker.js +1 -1
- package/dist/components/lr-details.d.ts +1 -0
- package/dist/components/lr-details.js +1 -1
- package/dist/components/lr-dialog.d.ts +1 -0
- package/dist/components/lr-dialog.js +1 -1
- package/dist/components/lr-diff-view.d.ts +1 -0
- package/dist/components/lr-diff-view.js +1 -1
- package/dist/components/lr-divider.d.ts +1 -0
- package/dist/components/lr-divider.js +1 -1
- package/dist/components/lr-dock-panel.d.ts +1 -0
- package/dist/components/lr-dock-panel.js +1 -1
- package/dist/components/lr-document-compare.d.ts +1 -0
- package/dist/components/lr-document-compare.js +1 -1
- package/dist/components/lr-document-library.d.ts +1 -0
- package/dist/components/lr-document-library.js +1 -1
- package/dist/components/lr-document-preview.d.ts +1 -0
- package/dist/components/lr-document-preview.js +1 -1
- package/dist/components/lr-document-viewer.d.ts +1 -0
- package/dist/components/lr-document-viewer.js +1 -1
- package/dist/components/lr-docx-viewer.d.ts +1 -0
- package/dist/components/lr-docx-viewer.js +1 -1
- package/dist/components/lr-doughnut-chart.d.ts +1 -0
- package/dist/components/lr-doughnut-chart.js +1 -1
- package/dist/components/lr-drawer.d.ts +1 -0
- package/dist/components/lr-drawer.js +1 -1
- package/dist/components/lr-drilldown-panel.d.ts +1 -0
- package/dist/components/lr-drilldown-panel.js +1 -1
- package/dist/components/lr-drop-zone.d.ts +1 -0
- package/dist/components/lr-drop-zone.js +1 -1
- package/dist/components/lr-dropdown-item.d.ts +1 -0
- package/dist/components/lr-dropdown-item.js +1 -1
- package/dist/components/lr-dropdown.d.ts +1 -0
- package/dist/components/lr-dropdown.js +1 -1
- package/dist/components/lr-ebook-viewer.d.ts +1 -0
- package/dist/components/lr-ebook-viewer.js +1 -1
- package/dist/components/lr-email-viewer.d.ts +1 -0
- package/dist/components/lr-email-viewer.js +1 -1
- package/dist/components/lr-embedding-explorer.d.ts +1 -0
- package/dist/components/lr-embedding-explorer.js +1 -1
- package/dist/components/lr-emoji-picker.d.ts +1 -0
- package/dist/components/lr-emoji-picker.js +1 -1
- package/dist/components/lr-empty.d.ts +1 -0
- package/dist/components/lr-empty.js +1 -1
- package/dist/components/lr-entity-card.d.ts +1 -0
- package/dist/components/lr-entity-card.js +1 -1
- package/dist/components/lr-entity-chip.d.ts +1 -0
- package/dist/components/lr-entity-chip.js +1 -1
- package/dist/components/lr-entity-dossier.d.ts +1 -0
- package/dist/components/lr-entity-dossier.js +1 -1
- package/dist/components/lr-env-list.d.ts +1 -0
- package/dist/components/lr-env-list.js +1 -1
- package/dist/components/lr-eval-dataset.d.ts +1 -0
- package/dist/components/lr-eval-dataset.js +1 -1
- package/dist/components/lr-eval-result.d.ts +1 -0
- package/dist/components/lr-eval-result.js +1 -1
- package/dist/components/lr-eval-run.d.ts +1 -0
- package/dist/components/lr-eval-run.js +1 -1
- package/dist/components/lr-export-button.d.ts +1 -0
- package/dist/components/lr-export-button.js +1 -1
- package/dist/components/lr-file-icon.d.ts +1 -0
- package/dist/components/lr-file-icon.js +1 -1
- package/dist/components/lr-file-input.d.ts +1 -0
- package/dist/components/lr-file-input.js +1 -1
- package/dist/components/lr-file-tree.d.ts +1 -0
- package/dist/components/lr-file-tree.js +1 -1
- package/dist/components/lr-filter-bar.d.ts +1 -0
- package/dist/components/lr-filter-bar.js +1 -1
- package/dist/components/lr-flag.d.ts +1 -0
- package/dist/components/lr-flag.js +1 -1
- package/dist/components/lr-flow-canvas.d.ts +1 -0
- package/dist/components/lr-flow-canvas.js +1 -1
- package/dist/components/lr-flow-controls.d.ts +1 -0
- package/dist/components/lr-flow-controls.js +1 -1
- package/dist/components/lr-flow-minimap.d.ts +1 -0
- package/dist/components/lr-flow-minimap.js +1 -1
- package/dist/components/lr-flow-node.d.ts +1 -0
- package/dist/components/lr-flow-node.js +1 -1
- package/dist/components/lr-flow-run-status.d.ts +1 -0
- package/dist/components/lr-flow-run-status.js +1 -1
- package/dist/components/lr-format-bytes.d.ts +1 -0
- package/dist/components/lr-format-bytes.js +1 -1
- package/dist/components/lr-format-date.d.ts +1 -0
- package/dist/components/lr-format-date.js +1 -1
- package/dist/components/lr-format-number.d.ts +1 -0
- package/dist/components/lr-format-number.js +1 -1
- package/dist/components/lr-funnel.d.ts +1 -0
- package/dist/components/lr-funnel.js +1 -1
- package/dist/components/lr-gauge.d.ts +1 -0
- package/dist/components/lr-gauge.js +1 -1
- package/dist/components/lr-generation-metrics.d.ts +1 -0
- package/dist/components/lr-generation-metrics.js +1 -1
- package/dist/components/lr-geojson-viewer.d.ts +1 -0
- package/dist/components/lr-geojson-viewer.js +1 -1
- package/dist/components/lr-graph-legend.d.ts +1 -0
- package/dist/components/lr-graph-legend.js +1 -1
- package/dist/components/lr-graph-query-builder.d.ts +1 -0
- package/dist/components/lr-graph-query-builder.js +1 -1
- package/dist/components/lr-graph.d.ts +1 -0
- package/dist/components/lr-graph.js +1 -1
- package/dist/components/lr-grounding-summary.d.ts +1 -0
- package/dist/components/lr-grounding-summary.js +1 -1
- package/dist/components/lr-handoff-divider.d.ts +1 -0
- package/dist/components/lr-handoff-divider.js +1 -1
- package/dist/components/lr-heatmap.d.ts +1 -0
- package/dist/components/lr-heatmap.js +1 -1
- package/dist/components/lr-help.d.ts +1 -0
- package/dist/components/lr-help.js +1 -0
- package/dist/components/lr-highlight-layer.d.ts +1 -0
- package/dist/components/lr-highlight-layer.js +1 -1
- package/dist/components/lr-histogram.d.ts +1 -0
- package/dist/components/lr-histogram.js +1 -1
- package/dist/components/lr-html-viewer.d.ts +1 -0
- package/dist/components/lr-html-viewer.js +1 -1
- package/dist/components/lr-icon-button.d.ts +1 -0
- package/dist/components/lr-icon-button.js +1 -1
- package/dist/components/lr-icon.d.ts +1 -0
- package/dist/components/lr-icon.js +1 -1
- package/dist/components/lr-image-comparer.d.ts +1 -0
- package/dist/components/lr-image-comparer.js +1 -1
- package/dist/components/lr-image-viewer.d.ts +1 -0
- package/dist/components/lr-image-viewer.js +1 -1
- package/dist/components/lr-include.d.ts +1 -0
- package/dist/components/lr-include.js +1 -1
- package/dist/components/lr-ingestion-queue.d.ts +1 -0
- package/dist/components/lr-ingestion-queue.js +1 -1
- package/dist/components/lr-input.d.ts +1 -0
- package/dist/components/lr-input.js +1 -1
- package/dist/components/lr-intersection-observer.d.ts +1 -0
- package/dist/components/lr-intersection-observer.js +1 -1
- package/dist/components/lr-json-schema-viewer.d.ts +1 -0
- package/dist/components/lr-json-schema-viewer.js +1 -1
- package/dist/components/lr-json-viewer.d.ts +1 -0
- package/dist/components/lr-json-viewer.js +1 -1
- package/dist/components/lr-kbd.d.ts +1 -0
- package/dist/components/lr-kbd.js +1 -1
- package/dist/components/lr-knowledge-base-admin.d.ts +1 -0
- package/dist/components/lr-knowledge-base-admin.js +1 -1
- package/dist/components/lr-knowledge-base.d.ts +1 -0
- package/dist/components/lr-knowledge-base.js +1 -1
- package/dist/components/lr-knowledge-graph-explorer.d.ts +1 -0
- package/dist/components/lr-knowledge-graph-explorer.js +1 -1
- package/dist/components/lr-known-date.d.ts +1 -0
- package/dist/components/lr-known-date.js +1 -1
- package/dist/components/lr-lightbox-item.d.ts +1 -0
- package/dist/components/lr-lightbox-item.js +1 -0
- package/dist/components/lr-lightbox.d.ts +1 -0
- package/dist/components/lr-lightbox.js +1 -1
- package/dist/components/lr-line-chart.d.ts +1 -0
- package/dist/components/lr-line-chart.js +1 -1
- package/dist/components/lr-lite-chart.d.ts +1 -0
- package/dist/components/lr-lite-chart.js +1 -1
- package/dist/components/lr-live-region.d.ts +1 -0
- package/dist/components/lr-live-region.js +1 -1
- package/dist/components/lr-locale-picker.d.ts +1 -0
- package/dist/components/lr-locale-picker.js +1 -1
- package/dist/components/lr-map-anchor.d.ts +1 -0
- package/dist/components/lr-map-anchor.js +1 -1
- package/dist/components/lr-map.d.ts +1 -0
- package/dist/components/lr-map.js +1 -1
- package/dist/components/lr-markdown-core.d.ts +1 -0
- package/dist/components/lr-markdown-core.js +1 -1
- package/dist/components/lr-markdown.d.ts +1 -0
- package/dist/components/lr-markdown.js +1 -1
- package/dist/components/lr-mcp-app.d.ts +1 -0
- package/dist/components/lr-mcp-app.js +1 -1
- package/dist/components/lr-media-card.d.ts +1 -0
- package/dist/components/lr-media-card.js +1 -1
- package/dist/components/lr-memory-panel.d.ts +1 -0
- package/dist/components/lr-memory-panel.js +1 -1
- package/dist/components/lr-mention-popover.d.ts +1 -0
- package/dist/components/lr-mention-popover.js +1 -1
- package/dist/components/lr-menu-item.d.ts +1 -0
- package/dist/components/lr-menu-item.js +1 -1
- package/dist/components/lr-menu-label.d.ts +1 -0
- package/dist/components/lr-menu-label.js +1 -1
- package/dist/components/lr-menu.d.ts +1 -0
- package/dist/components/lr-menu.js +1 -1
- package/dist/components/lr-menubar-item.d.ts +1 -0
- package/dist/components/lr-menubar-item.js +1 -1
- package/dist/components/lr-menubar.d.ts +1 -0
- package/dist/components/lr-menubar.js +1 -1
- package/dist/components/lr-message-actions.d.ts +1 -0
- package/dist/components/lr-message-actions.js +1 -1
- package/dist/components/lr-message-feedback.d.ts +1 -0
- package/dist/components/lr-message-feedback.js +1 -1
- package/dist/components/lr-message-parts.d.ts +1 -0
- package/dist/components/lr-message-parts.js +1 -1
- package/dist/components/lr-mind-map.d.ts +1 -0
- package/dist/components/lr-mind-map.js +1 -1
- package/dist/components/lr-model-select.d.ts +1 -0
- package/dist/components/lr-model-select.js +1 -1
- package/dist/components/lr-model-settings-panel.d.ts +1 -0
- package/dist/components/lr-model-settings-panel.js +1 -1
- package/dist/components/lr-model-viewer.d.ts +1 -0
- package/dist/components/lr-model-viewer.js +1 -1
- package/dist/components/lr-multi-split.d.ts +1 -0
- package/dist/components/lr-multi-split.js +1 -1
- package/dist/components/lr-mutation-observer.d.ts +1 -0
- package/dist/components/lr-mutation-observer.js +1 -1
- package/dist/components/lr-native-time-input.d.ts +1 -0
- package/dist/components/lr-native-time-input.js +1 -1
- package/dist/components/lr-navigation-menu-item.d.ts +1 -0
- package/dist/components/lr-navigation-menu-item.js +1 -1
- package/dist/components/lr-navigation-menu.d.ts +1 -0
- package/dist/components/lr-navigation-menu.js +1 -1
- package/dist/components/lr-neighbor-list.d.ts +1 -0
- package/dist/components/lr-neighbor-list.js +1 -1
- package/dist/components/lr-node-palette.d.ts +1 -0
- package/dist/components/lr-node-palette.js +1 -1
- package/dist/components/lr-notebook-viewer.d.ts +1 -0
- package/dist/components/lr-notebook-viewer.js +1 -1
- package/dist/components/lr-number-input.d.ts +1 -0
- package/dist/components/lr-number-input.js +1 -1
- package/dist/components/lr-number-ticker.d.ts +1 -0
- package/dist/components/lr-number-ticker.js +1 -0
- package/dist/components/lr-option.d.ts +1 -0
- package/dist/components/lr-option.js +1 -1
- package/dist/components/lr-otp-input.d.ts +1 -0
- package/dist/components/lr-otp-input.js +1 -1
- package/dist/components/lr-page-rail.d.ts +1 -0
- package/dist/components/lr-page-rail.js +1 -1
- package/dist/components/lr-page.d.ts +1 -0
- package/dist/components/lr-page.js +1 -1
- package/dist/components/lr-pagination.d.ts +1 -0
- package/dist/components/lr-pagination.js +1 -1
- package/dist/components/lr-pan-zoom.d.ts +1 -0
- package/dist/components/lr-pan-zoom.js +1 -1
- package/dist/components/lr-path-strip.d.ts +1 -0
- package/dist/components/lr-path-strip.js +1 -1
- package/dist/components/lr-pdf-viewer.d.ts +1 -0
- package/dist/components/lr-pdf-viewer.js +1 -1
- package/dist/components/lr-permission-grant.d.ts +1 -0
- package/dist/components/lr-permission-grant.js +1 -1
- package/dist/components/lr-permission-rules.d.ts +1 -0
- package/dist/components/lr-permission-rules.js +1 -1
- package/dist/components/lr-phone-input.d.ts +1 -0
- package/dist/components/lr-phone-input.js +1 -1
- package/dist/components/lr-pie-chart.d.ts +1 -0
- package/dist/components/lr-pie-chart.js +1 -1
- package/dist/components/lr-polar-area-chart.d.ts +1 -0
- package/dist/components/lr-polar-area-chart.js +1 -1
- package/dist/components/lr-policy-summary.d.ts +1 -0
- package/dist/components/lr-policy-summary.js +1 -1
- package/dist/components/lr-poll-status.d.ts +1 -0
- package/dist/components/lr-poll-status.js +1 -1
- package/dist/components/lr-popover.d.ts +1 -0
- package/dist/components/lr-popover.js +1 -1
- package/dist/components/lr-popup.d.ts +1 -0
- package/dist/components/lr-popup.js +1 -1
- package/dist/components/lr-pptx-viewer.d.ts +1 -0
- package/dist/components/lr-pptx-viewer.js +1 -1
- package/dist/components/lr-progress-bar.d.ts +1 -0
- package/dist/components/lr-progress-bar.js +1 -1
- package/dist/components/lr-progress-ring.d.ts +1 -0
- package/dist/components/lr-progress-ring.js +1 -1
- package/dist/components/lr-prompt-input.d.ts +1 -0
- package/dist/components/lr-prompt-input.js +1 -1
- package/dist/components/lr-prompt-queue.d.ts +1 -0
- package/dist/components/lr-prompt-queue.js +1 -1
- package/dist/components/lr-prompt-studio.d.ts +1 -0
- package/dist/components/lr-prompt-studio.js +1 -1
- package/dist/components/lr-provenance-panel.d.ts +1 -0
- package/dist/components/lr-provenance-panel.js +1 -1
- package/dist/components/lr-push-to-talk.d.ts +1 -0
- package/dist/components/lr-push-to-talk.js +1 -1
- package/dist/components/lr-qr-code.d.ts +1 -0
- package/dist/components/lr-qr-code.js +1 -1
- package/dist/components/lr-radar-chart.d.ts +1 -0
- package/dist/components/lr-radar-chart.js +1 -1
- package/dist/components/lr-radio-button.d.ts +1 -0
- package/dist/components/lr-radio-button.js +1 -1
- package/dist/components/lr-radio-group.d.ts +1 -0
- package/dist/components/lr-radio-group.js +1 -1
- package/dist/components/lr-radio.d.ts +1 -0
- package/dist/components/lr-radio.js +1 -1
- package/dist/components/lr-rag-answer.d.ts +1 -0
- package/dist/components/lr-rag-answer.js +1 -1
- package/dist/components/lr-rag-eval-dashboard.d.ts +1 -0
- package/dist/components/lr-rag-eval-dashboard.js +1 -1
- package/dist/components/lr-random-content.d.ts +1 -0
- package/dist/components/lr-random-content.js +1 -1
- package/dist/components/lr-rating.d.ts +1 -0
- package/dist/components/lr-rating.js +1 -1
- package/dist/components/lr-realtime-session.d.ts +1 -0
- package/dist/components/lr-realtime-session.js +1 -1
- package/dist/components/lr-relative-time.d.ts +1 -0
- package/dist/components/lr-relative-time.js +1 -1
- package/dist/components/lr-reorder-item.d.ts +1 -0
- package/dist/components/lr-reorder-item.js +1 -1
- package/dist/components/lr-reorder-list.d.ts +1 -0
- package/dist/components/lr-reorder-list.js +1 -1
- package/dist/components/lr-research-progress.d.ts +1 -0
- package/dist/components/lr-research-progress.js +1 -1
- package/dist/components/lr-resize-observer.d.ts +1 -0
- package/dist/components/lr-resize-observer.js +1 -1
- package/dist/components/lr-responsive-panel.d.ts +1 -0
- package/dist/components/lr-responsive-panel.js +1 -1
- package/dist/components/lr-result-card.d.ts +1 -0
- package/dist/components/lr-result-card.js +1 -1
- package/dist/components/lr-result-field.d.ts +1 -0
- package/dist/components/lr-result-field.js +1 -1
- package/dist/components/lr-retrieval-compare.d.ts +1 -0
- package/dist/components/lr-retrieval-compare.js +1 -1
- package/dist/components/lr-retrieval-results.d.ts +1 -0
- package/dist/components/lr-retrieval-results.js +1 -1
- package/dist/components/lr-retrieval-search.d.ts +1 -0
- package/dist/components/lr-retrieval-search.js +1 -1
- package/dist/components/lr-retrieval-trace.d.ts +1 -0
- package/dist/components/lr-retrieval-trace.js +1 -1
- package/dist/components/lr-rubric-form.d.ts +1 -0
- package/dist/components/lr-rubric-form.js +1 -1
- package/dist/components/lr-sankey.d.ts +1 -0
- package/dist/components/lr-sankey.js +1 -0
- package/dist/components/lr-scatter-chart.d.ts +1 -0
- package/dist/components/lr-scatter-chart.js +1 -1
- package/dist/components/lr-scroller.d.ts +1 -0
- package/dist/components/lr-scroller.js +1 -1
- package/dist/components/lr-segmented.d.ts +1 -0
- package/dist/components/lr-segmented.js +1 -1
- package/dist/components/lr-select.d.ts +1 -0
- package/dist/components/lr-select.js +1 -1
- package/dist/components/lr-selection-toolbar.d.ts +1 -0
- package/dist/components/lr-selection-toolbar.js +1 -1
- package/dist/components/lr-sequence-playback.d.ts +1 -0
- package/dist/components/lr-sequence-playback.js +1 -1
- package/dist/components/lr-sequence-strip.d.ts +1 -0
- package/dist/components/lr-sequence-strip.js +1 -1
- package/dist/components/lr-signature-pad.d.ts +1 -0
- package/dist/components/lr-signature-pad.js +1 -1
- package/dist/components/lr-skeleton.d.ts +1 -0
- package/dist/components/lr-skeleton.js +1 -1
- package/dist/components/lr-slider.d.ts +1 -0
- package/dist/components/lr-slider.js +1 -1
- package/dist/components/lr-source-card.d.ts +1 -0
- package/dist/components/lr-source-card.js +1 -1
- package/dist/components/lr-source-list.d.ts +1 -0
- package/dist/components/lr-source-list.js +1 -1
- package/dist/components/lr-source-picker.d.ts +1 -0
- package/dist/components/lr-source-picker.js +1 -1
- package/dist/components/lr-span-waterfall.d.ts +1 -0
- package/dist/components/lr-span-waterfall.js +1 -1
- package/dist/components/lr-sparkline.d.ts +1 -0
- package/dist/components/lr-sparkline.js +1 -1
- package/dist/components/lr-spinner.d.ts +1 -0
- package/dist/components/lr-spinner.js +1 -1
- package/dist/components/lr-split-panel.d.ts +1 -0
- package/dist/components/lr-split-panel.js +1 -1
- package/dist/components/lr-spreadsheet-viewer.d.ts +1 -0
- package/dist/components/lr-spreadsheet-viewer.js +1 -1
- package/dist/components/lr-stack-trace.d.ts +1 -0
- package/dist/components/lr-stack-trace.js +1 -1
- package/dist/components/lr-stat.d.ts +1 -0
- package/dist/components/lr-stat.js +1 -1
- package/dist/components/lr-step.d.ts +1 -0
- package/dist/components/lr-step.js +1 -0
- package/dist/components/lr-stepper.d.ts +1 -0
- package/dist/components/lr-stepper.js +1 -1
- package/dist/components/lr-stream-status.d.ts +1 -0
- package/dist/components/lr-stream-status.js +1 -1
- package/dist/components/lr-streaming-text-core.d.ts +1 -0
- package/dist/components/lr-streaming-text-core.js +1 -1
- package/dist/components/lr-streaming-text.d.ts +1 -0
- package/dist/components/lr-streaming-text.js +1 -1
- package/dist/components/lr-style-panel.d.ts +1 -0
- package/dist/components/lr-style-panel.js +1 -0
- package/dist/components/lr-subagent-panel.d.ts +1 -0
- package/dist/components/lr-subagent-panel.js +1 -1
- package/dist/components/lr-suggestion-chips.d.ts +1 -0
- package/dist/components/lr-suggestion-chips.js +1 -1
- package/dist/components/lr-svg-viewer.d.ts +1 -0
- package/dist/components/lr-svg-viewer.js +1 -1
- package/dist/components/lr-swatch-picker.d.ts +1 -0
- package/dist/components/lr-swatch-picker.js +1 -1
- package/dist/components/lr-switch.d.ts +1 -0
- package/dist/components/lr-switch.js +1 -1
- package/dist/components/lr-tab-group.d.ts +1 -0
- package/dist/components/lr-tab-group.js +1 -1
- package/dist/components/lr-tab-panel.d.ts +1 -0
- package/dist/components/lr-tab-panel.js +1 -1
- package/dist/components/lr-tab.d.ts +1 -0
- package/dist/components/lr-tab.js +1 -1
- package/dist/components/lr-table.d.ts +1 -0
- package/dist/components/lr-table.js +1 -1
- package/dist/components/lr-tag.d.ts +1 -0
- package/dist/components/lr-tag.js +1 -1
- package/dist/components/lr-task-list.d.ts +1 -0
- package/dist/components/lr-task-list.js +1 -1
- package/dist/components/lr-terminal.d.ts +1 -0
- package/dist/components/lr-terminal.js +1 -1
- package/dist/components/lr-test-results.d.ts +1 -0
- package/dist/components/lr-test-results.js +1 -1
- package/dist/components/lr-textarea.d.ts +1 -0
- package/dist/components/lr-textarea.js +1 -1
- package/dist/components/lr-thinking-panel.d.ts +1 -0
- package/dist/components/lr-thinking-panel.js +1 -1
- package/dist/components/lr-thread-list.d.ts +1 -0
- package/dist/components/lr-thread-list.js +1 -1
- package/dist/components/lr-time-input.d.ts +1 -0
- package/dist/components/lr-time-input.js +1 -1
- package/dist/components/lr-time-range.d.ts +1 -0
- package/dist/components/lr-time-range.js +1 -1
- package/dist/components/lr-time-zone-picker.d.ts +1 -0
- package/dist/components/lr-time-zone-picker.js +1 -1
- package/dist/components/lr-timeline-item.d.ts +1 -0
- package/dist/components/lr-timeline-item.js +1 -1
- package/dist/components/lr-timeline.d.ts +1 -0
- package/dist/components/lr-timeline.js +1 -1
- package/dist/components/lr-toast-item.d.ts +1 -0
- package/dist/components/lr-toast-item.js +1 -1
- package/dist/components/lr-toast.d.ts +1 -0
- package/dist/components/lr-toast.js +1 -1
- package/dist/components/lr-toggle-group.d.ts +1 -0
- package/dist/components/lr-toggle-group.js +1 -1
- package/dist/components/lr-toggle.d.ts +1 -0
- package/dist/components/lr-toggle.js +1 -1
- package/dist/components/lr-token-input.d.ts +1 -0
- package/dist/components/lr-token-input.js +1 -1
- package/dist/components/lr-tool-approval-dialog.d.ts +1 -0
- package/dist/components/lr-tool-approval-dialog.js +1 -1
- package/dist/components/lr-tool-call-block.d.ts +1 -0
- package/dist/components/lr-tool-call-block.js +1 -1
- package/dist/components/lr-tool-call-chip.d.ts +1 -0
- package/dist/components/lr-tool-call-chip.js +1 -1
- package/dist/components/lr-tool-param-form.d.ts +1 -0
- package/dist/components/lr-tool-param-form.js +1 -1
- package/dist/components/lr-tool-result-dialog.d.ts +1 -0
- package/dist/components/lr-tool-result-dialog.js +1 -1
- package/dist/components/lr-tool-result-view.d.ts +1 -0
- package/dist/components/lr-tool-result-view.js +1 -1
- package/dist/components/lr-tool-select-dialog.d.ts +1 -0
- package/dist/components/lr-tool-select-dialog.js +1 -1
- package/dist/components/lr-tool-timeline.d.ts +1 -0
- package/dist/components/lr-tool-timeline.js +1 -1
- package/dist/components/lr-tooltip.d.ts +1 -0
- package/dist/components/lr-tooltip.js +1 -1
- package/dist/components/lr-tour.d.ts +1 -0
- package/dist/components/lr-tour.js +1 -1
- package/dist/components/lr-trace-tree.d.ts +1 -0
- package/dist/components/lr-trace-tree.js +1 -1
- package/dist/components/lr-transcript-feed.d.ts +1 -0
- package/dist/components/lr-transcript-feed.js +1 -1
- package/dist/components/lr-tree-item.d.ts +1 -0
- package/dist/components/lr-tree-item.js +1 -1
- package/dist/components/lr-tree.d.ts +1 -0
- package/dist/components/lr-tree.js +1 -1
- package/dist/components/lr-treemap.d.ts +1 -0
- package/dist/components/lr-treemap.js +1 -0
- package/dist/components/lr-typing-indicator.d.ts +1 -0
- package/dist/components/lr-typing-indicator.js +1 -1
- package/dist/components/lr-unit-picker.d.ts +1 -0
- package/dist/components/lr-unit-picker.js +1 -1
- package/dist/components/lr-usage-badge.d.ts +1 -0
- package/dist/components/lr-usage-badge.js +1 -1
- package/dist/components/lr-video-playlist.d.ts +1 -0
- package/dist/components/lr-video-playlist.js +1 -1
- package/dist/components/lr-video.d.ts +1 -0
- package/dist/components/lr-video.js +1 -1
- package/dist/components/lr-virtual-list.d.ts +1 -0
- package/dist/components/lr-virtual-list.js +1 -1
- package/dist/components/lr-visually-hidden.d.ts +1 -0
- package/dist/components/lr-visually-hidden.js +1 -1
- package/dist/components/lr-voice-picker.d.ts +1 -0
- package/dist/components/lr-voice-picker.js +1 -1
- package/dist/components/lr-widget-renderer.d.ts +1 -0
- package/dist/components/lr-widget-renderer.js +1 -1
- package/dist/components/lr-widget.d.ts +1 -0
- package/dist/components/lr-widget.js +1 -1
- package/dist/components/lr-word-cloud.d.ts +1 -0
- package/dist/components/lr-word-cloud.js +1 -1
- package/dist/components/lr-xml-viewer.d.ts +1 -0
- package/dist/components/lr-xml-viewer.js +1 -1
- package/dist/components/lr-zoomable-frame.d.ts +1 -0
- package/dist/components/lr-zoomable-frame.js +1 -1
- package/dist/components/media/animated-image/animated-image.class.d.ts +4 -1
- package/dist/components/media/animated-image/animated-image.class.js +4 -24
- package/dist/components/media/animated-image/animated-image.styles.js +1 -1
- package/dist/components/media/animation/animation-catalog.js +1 -1
- package/dist/components/media/animation/animation.class.d.ts +37 -3
- package/dist/components/media/animation/animation.class.js +1 -1
- package/dist/components/media/attachment-chip/attachment-chip.class.d.ts +29 -18
- package/dist/components/media/attachment-chip/attachment-chip.class.js +9 -51
- package/dist/components/media/attachment-chip/attachment-chip.styles.js +1 -1
- package/dist/components/media/attachment-chip/file-size.d.ts +1 -11
- package/dist/components/media/attachment-chip/file-size.js +1 -1
- package/dist/components/media/attachment-trigger/attachment-trigger.class.d.ts +25 -6
- package/dist/components/media/attachment-trigger/attachment-trigger.class.js +13 -60
- package/dist/components/media/attachment-trigger/attachment-trigger.styles.js +1 -1
- package/dist/components/media/av-player/av-cue-source.js +1 -1
- package/dist/components/media/av-player/av-player.class.d.ts +26 -7
- package/dist/components/media/av-player/av-player.class.js +13 -87
- package/dist/components/media/av-player/av-player.styles.js +1 -1
- package/dist/components/media/avatar/avatar.class.d.ts +1 -1
- package/dist/components/media/avatar/avatar.class.js +5 -19
- package/dist/components/media/avatar-group/avatar-group.class.d.ts +3 -1
- package/dist/components/media/avatar-group/avatar-group.class.js +4 -11
- package/dist/components/media/avatar-group/avatar-group.styles.js +1 -1
- package/dist/components/media/drop-zone/drop-zone.class.d.ts +10 -5
- package/dist/components/media/drop-zone/drop-zone.class.js +6 -12
- package/dist/components/media/drop-zone/drop-zone.styles.js +1 -1
- package/dist/components/media/file-icon/file-icon.class.d.ts +5 -1
- package/dist/components/media/file-icon/file-icon.class.js +4 -13
- package/dist/components/media/file-icon/file-icon.styles.js +1 -1
- package/dist/components/media/file-icon/file-type-metadata.js +1 -1
- package/dist/components/media/file-input/file-input.class.d.ts +50 -12
- package/dist/components/media/file-input/file-input.class.js +11 -62
- package/dist/components/media/file-input/file-input.styles.js +1 -1
- package/dist/components/media/flag/flag-peer-bulk-standard.d.ts +1 -1
- package/dist/components/media/flag/flag-peer-bulk-standard.js +1 -1
- package/dist/components/media/flag/flag-peer-bulk.d.ts +1 -1
- package/dist/components/media/flag/flag-peer-bulk.js +1 -1
- package/dist/components/media/flag/flag-peer.d.ts +1 -1
- package/dist/components/media/flag/flag-peer.js +1 -1
- package/dist/components/media/flag/flag-url-resolver.d.ts +4 -2
- package/dist/components/media/flag/flag-url-resolver.js +1 -1
- package/dist/components/media/flag/flag.class.d.ts +17 -4
- package/dist/components/media/flag/flag.class.js +5 -14
- package/dist/components/media/flag/language-map.d.ts +1 -1
- package/dist/components/media/image-comparer/image-comparer.class.d.ts +20 -2
- package/dist/components/media/image-comparer/image-comparer.class.js +4 -30
- package/dist/components/media/image-comparer/image-comparer.styles.js +1 -1
- package/dist/components/media/image-viewer/image-viewer.class.d.ts +46 -22
- package/dist/components/media/image-viewer/image-viewer.class.js +7 -59
- package/dist/components/media/image-viewer/image-viewer.styles.js +1 -1
- package/dist/components/media/index.d.ts +1 -1
- package/dist/components/media/index.js +1 -1
- package/dist/components/media/lightbox/lightbox-item.class.d.ts +57 -0
- package/dist/components/media/lightbox/lightbox-item.class.js +9 -0
- package/dist/components/media/lightbox/lightbox-item.styles.js +1 -0
- package/dist/components/media/lightbox/lightbox-source.js +1 -1
- package/dist/components/media/lightbox/lightbox.class.d.ts +97 -24
- package/dist/components/media/lightbox/lightbox.class.js +19 -47
- package/dist/components/media/lightbox/lightbox.styles.js +1 -1
- package/dist/components/media/map/map-anchor-avoid.js +1 -0
- package/dist/components/media/map/map-anchor-controller.js +1 -1
- package/dist/components/media/map/map-anchor.class.d.ts +21 -13
- package/dist/components/media/map/map-anchor.class.js +1 -3
- package/dist/components/media/map/map-anchor.styles.js +1 -1
- package/dist/components/media/map/map-basemap-order.js +1 -1
- package/dist/components/media/map/map-camera.d.ts +3 -3
- package/dist/components/media/map/map-camera.js +1 -1
- package/dist/components/media/map/map-canvas-target.js +1 -1
- package/dist/components/media/map/map-control-chrome.js +1 -1
- package/dist/components/media/map/map-control-options.d.ts +1 -1
- package/dist/components/media/map/map-control-options.js +1 -1
- package/dist/components/media/map/map-controls-lifecycle.js +1 -1
- package/dist/components/media/map/map-data-layer-model.d.ts +7 -11
- package/dist/components/media/map/map-data-layer-model.js +1 -1
- package/dist/components/media/map/map-data-layer-runtime.js +1 -0
- package/dist/components/media/map/map-descriptor-values.js +1 -0
- package/dist/components/media/map/map-drawing-controller.js +1 -1
- package/dist/components/media/map/map-drawing-gesture.js +1 -1
- package/dist/components/media/map/map-drawing-pan.js +1 -1
- package/dist/components/media/map/map-drawing-pointer.js +1 -1
- package/dist/components/media/map/map-empty-style.js +1 -1
- package/dist/components/media/map/map-external-layer-builder.js +1 -0
- package/dist/components/media/map/map-feature-loader.js +1 -1
- package/dist/components/media/map/map-geojson-diff.js +1 -1
- package/dist/components/media/map/map-hash.js +1 -1
- package/dist/components/media/map/map-hit-test.d.ts +4 -6
- package/dist/components/media/map/map-hit-test.js +1 -1
- package/dist/components/media/map/map-image-admission.js +1 -1
- package/dist/components/media/map/map-image-export.js +3 -3
- package/dist/components/media/map/map-image-limits.js +1 -1
- package/dist/components/media/map/map-image-provider.js +1 -1
- package/dist/components/media/map/map-images.d.ts +5 -1
- package/dist/components/media/map/map-images.js +1 -1
- package/dist/components/media/map/map-interaction-options.js +1 -1
- package/dist/components/media/map/map-label-layer.d.ts +3 -0
- package/dist/components/media/map/map-label-layer.js +1 -0
- package/dist/components/media/map/map-loader.d.ts +2 -8
- package/dist/components/media/map/map-loader.js +1 -1
- package/dist/components/media/map/map-overlay-admission.js +1 -1
- package/dist/components/media/map/map-owned-features.js +1 -1
- package/dist/components/media/map/map-resource-feature-loaders.js +1 -1
- package/dist/components/media/map/map-scene-configuration.js +1 -1
- package/dist/components/media/map/map-scene-controls.js +1 -1
- package/dist/components/media/map/map-scene-line-encoding.js +1 -1
- package/dist/components/media/map/map-scene-line-layer.js +1 -1
- package/dist/components/media/map/map-scene-lines.js +1 -1
- package/dist/components/media/map/map-scene-position-registry.js +1 -1
- package/dist/components/media/map/map-scene-render-controller.js +1 -1
- package/dist/components/media/map/map-scene-render-input.js +1 -1
- package/dist/components/media/map/map-style-input.js +1 -1
- package/dist/components/media/map/map-vector-style-compiler.js +1 -0
- package/dist/components/media/map/map-vector-style.d.ts +4 -5
- package/dist/components/media/map/map-vector-style.js +1 -1
- package/dist/components/media/map/map.class.d.ts +299 -29
- package/dist/components/media/map/map.class.js +33 -123
- package/dist/components/media/map/map.styles.js +1 -1
- package/dist/components/media/media-card/media-card.class.d.ts +6 -3
- package/dist/components/media/media-card/media-card.class.js +8 -42
- package/dist/components/media/media-card/media-card.styles.js +1 -1
- package/dist/components/media/pan-zoom/pan-zoom.class.d.ts +41 -7
- package/dist/components/media/pan-zoom/pan-zoom.class.js +5 -17
- package/dist/components/media/pan-zoom/pan-zoom.styles.js +1 -1
- package/dist/components/media/qr-code/qr-code-loader.js +1 -1
- package/dist/components/media/qr-code/qr-code.class.d.ts +1 -1
- package/dist/components/media/qr-code/qr-code.class.js +3 -9
- package/dist/components/media/sequence-playback/sequence-playback.class.d.ts +15 -2
- package/dist/components/media/sequence-playback/sequence-playback.class.js +4 -25
- package/dist/components/media/sequence-playback/sequence-playback.styles.js +1 -1
- package/dist/components/media/video/video-thumbnails.js +5 -0
- package/dist/components/media/video/video.class.d.ts +43 -13
- package/dist/components/media/video/video.class.js +24 -117
- package/dist/components/media/video/video.styles.js +1 -1
- package/dist/components/media/video-playlist/video-playlist.class.d.ts +9 -3
- package/dist/components/media/video-playlist/video-playlist.class.js +4 -17
- package/dist/components/media/video-playlist/video-playlist.styles.js +1 -1
- package/dist/components/media/zoomable-frame/zoomable-frame.class.d.ts +29 -4
- package/dist/components/media/zoomable-frame/zoomable-frame.class.js +4 -38
- package/dist/components/media/zoomable-frame/zoomable-frame.styles.js +1 -1
- package/dist/components/overlays/alert/alert.class.d.ts +32 -7
- package/dist/components/overlays/alert/alert.class.js +5 -18
- package/dist/components/overlays/alert/alert.styles.js +1 -1
- package/dist/components/overlays/badge/badge.class.d.ts +28 -7
- package/dist/components/overlays/badge/badge.class.js +5 -6
- package/dist/components/overlays/badge/badge.styles.js +1 -1
- package/dist/components/overlays/badge/tag.class.d.ts +7 -3
- package/dist/components/overlays/badge/tag.class.js +1 -7
- package/dist/components/overlays/badge/tag.styles.js +1 -1
- package/dist/components/overlays/callout/callout.class.d.ts +31 -12
- package/dist/components/overlays/callout/callout.class.js +4 -24
- package/dist/components/overlays/callout/callout.styles.js +1 -1
- package/dist/components/overlays/chip/chip-group.class.d.ts +42 -4
- package/dist/components/overlays/chip/chip-group.class.js +5 -18
- package/dist/components/overlays/chip/chip-group.styles.js +1 -1
- package/dist/components/overlays/chip/chip.class.d.ts +11 -4
- package/dist/components/overlays/chip/chip.class.js +3 -16
- package/dist/components/overlays/chip/chip.styles.js +1 -1
- package/dist/components/overlays/context-menu/context-menu.class.d.ts +23 -2
- package/dist/components/overlays/context-menu/context-menu.class.js +4 -28
- package/dist/components/overlays/dialog/confirm.d.ts +22 -5
- package/dist/components/overlays/dialog/confirm.js +1 -12
- package/dist/components/overlays/dialog/dialog.class.d.ts +52 -8
- package/dist/components/overlays/dialog/dialog.class.js +5 -22
- package/dist/components/overlays/dialog/dialog.styles.js +1 -1
- package/dist/components/overlays/dialog/prompt.d.ts +60 -0
- package/dist/components/overlays/dialog/prompt.js +1 -0
- package/dist/components/overlays/drawer/drawer.class.d.ts +21 -4
- package/dist/components/overlays/drawer/drawer.class.js +1 -1
- package/dist/components/overlays/empty/empty.class.d.ts +23 -6
- package/dist/components/overlays/empty/empty.class.js +2 -7
- package/dist/components/overlays/help/help.class.d.ts +31 -0
- package/dist/components/overlays/help/help.class.js +3 -0
- package/dist/components/overlays/index.d.ts +1 -1
- package/dist/components/overlays/index.js +1 -1
- package/dist/components/overlays/kbd/kbd.class.d.ts +3 -0
- package/dist/components/overlays/kbd/kbd.class.js +3 -9
- package/dist/components/overlays/overlay/dropdown.class.d.ts +9 -6
- package/dist/components/overlays/overlay/dropdown.class.js +2 -2
- package/dist/components/overlays/overlay/overlay.styles.js +1 -1
- package/dist/components/overlays/overlay/popover-glass.styles.js +1 -1
- package/dist/components/overlays/overlay/popover.class.d.ts +72 -14
- package/dist/components/overlays/overlay/popover.class.js +3 -9
- package/dist/components/overlays/overlay/tooltip.class.d.ts +39 -12
- package/dist/components/overlays/overlay/tooltip.class.js +4 -10
- package/dist/components/overlays/popup/popup.class.js +2 -2
- package/dist/components/overlays/progress/progress-bar.class.js +1 -3
- package/dist/components/overlays/progress/progress-base.d.ts +7 -1
- package/dist/components/overlays/progress/progress-base.js +1 -1
- package/dist/components/overlays/progress/progress-ring.class.js +2 -5
- package/dist/components/overlays/progress/progress.styles.js +1 -1
- package/dist/components/overlays/rating/rating.class.d.ts +24 -7
- package/dist/components/overlays/rating/rating.class.js +5 -21
- package/dist/components/overlays/rating/rating.styles.js +1 -1
- package/dist/components/overlays/skeleton/skeleton.class.d.ts +8 -2
- package/dist/components/overlays/skeleton/skeleton.class.js +1 -1
- package/dist/components/overlays/spinner/spinner.class.d.ts +5 -1
- package/dist/components/overlays/spinner/spinner.class.js +2 -2
- package/dist/components/overlays/spinner/spinner.styles.js +1 -1
- package/dist/components/overlays/toast/toast-item.class.d.ts +18 -3
- package/dist/components/overlays/toast/toast-item.class.js +7 -38
- package/dist/components/overlays/toast/toast-item.styles.js +1 -1
- package/dist/components/overlays/toast/toast-region-protocol.d.ts +2 -0
- package/dist/components/overlays/toast/toast.class.d.ts +11 -3
- package/dist/components/overlays/toast/toast.class.js +2 -2
- package/dist/components/overlays/toast/toaster.js +1 -1
- package/dist/components/retrieval/chunk-inspector/chunk-inspector.class.d.ts +8 -2
- package/dist/components/retrieval/chunk-inspector/chunk-inspector.class.js +14 -52
- package/dist/components/retrieval/chunk-inspector/chunk-inspector.styles.js +1 -1
- package/dist/components/retrieval/citation-badge/citation-badge.class.d.ts +2 -2
- package/dist/components/retrieval/citation-badge/citation-badge.class.js +5 -26
- package/dist/components/retrieval/citation-badge/citation-badge.styles.js +1 -1
- package/dist/components/retrieval/claim-evidence/claim-evidence.class.js +8 -30
- package/dist/components/retrieval/claim-evidence/claim-evidence.styles.js +1 -1
- package/dist/components/retrieval/community-card/community-card.class.d.ts +6 -3
- package/dist/components/retrieval/community-card/community-card.class.js +9 -21
- package/dist/components/retrieval/community-card/community-card.styles.js +1 -1
- package/dist/components/retrieval/embedding-explorer/embedding-explorer-engine.js +1 -1
- package/dist/components/retrieval/embedding-explorer/embedding-explorer.class.d.ts +11 -8
- package/dist/components/retrieval/embedding-explorer/embedding-explorer.class.js +20 -80
- package/dist/components/retrieval/embedding-explorer/embedding-explorer.styles.js +1 -1
- package/dist/components/retrieval/entity-card/entity-card.class.d.ts +6 -3
- package/dist/components/retrieval/entity-card/entity-card.class.js +9 -29
- package/dist/components/retrieval/entity-card/entity-card.styles.js +1 -1
- package/dist/components/retrieval/entity-chip/entity-chip.class.d.ts +2 -2
- package/dist/components/retrieval/entity-chip/entity-chip.class.js +4 -25
- package/dist/components/retrieval/entity-chip/entity-chip.styles.js +1 -1
- package/dist/components/retrieval/entity-dossier/entity-dossier.class.d.ts +17 -15
- package/dist/components/retrieval/entity-dossier/entity-dossier.class.js +12 -52
- package/dist/components/retrieval/graph/graph-builtin-3d-engine.js +1 -1
- package/dist/components/retrieval/graph/graph-engine-adapter.js +1 -1
- package/dist/components/retrieval/graph/graph-loader.js +1 -1
- package/dist/components/retrieval/graph/graph-spatial-controller.js +4 -14
- package/dist/components/retrieval/graph/graph-spatial-model.js +1 -1
- package/dist/components/retrieval/graph/graph-spatial.js +1 -1
- package/dist/components/retrieval/graph/graph-webgl-engine.js +1 -1
- package/dist/components/retrieval/graph/graph.class.d.ts +24 -15
- package/dist/components/retrieval/graph/graph.class.js +32 -204
- package/dist/components/retrieval/graph/graph.styles.js +1 -1
- package/dist/components/retrieval/graph-legend/graph-legend.class.d.ts +5 -3
- package/dist/components/retrieval/graph-legend/graph-legend.class.js +6 -22
- package/dist/components/retrieval/graph-legend/graph-legend.styles.js +1 -1
- package/dist/components/retrieval/grounding-summary/grounding-summary.class.js +13 -57
- package/dist/components/retrieval/grounding-summary/grounding-summary.styles.js +1 -1
- package/dist/components/retrieval/index.d.ts +1 -1
- package/dist/components/retrieval/index.js +1 -1
- package/dist/components/retrieval/ingestion-queue/ingestion-queue-presentation.js +1 -1
- package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.d.ts +6 -2
- package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.js +13 -64
- package/dist/components/retrieval/ingestion-queue/ingestion-queue.styles.js +1 -1
- package/dist/components/retrieval/knowledge-base/knowledge-base.class.d.ts +9 -9
- package/dist/components/retrieval/knowledge-base/knowledge-base.class.js +19 -96
- package/dist/components/retrieval/knowledge-base/knowledge-base.styles.js +1 -1
- package/dist/components/retrieval/knowledge-base-admin/knowledge-base-admin.class.d.ts +2 -2
- package/dist/components/retrieval/knowledge-base-admin/knowledge-base-admin.class.js +8 -55
- package/dist/components/retrieval/knowledge-base-admin/knowledge-base-admin.styles.js +1 -1
- package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.d.ts +35 -8
- package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.js +16 -99
- package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.styles.js +1 -1
- package/dist/components/retrieval/memory-panel/memory-panel.class.d.ts +16 -10
- package/dist/components/retrieval/memory-panel/memory-panel.class.js +15 -85
- package/dist/components/retrieval/memory-panel/memory-panel.styles.js +1 -1
- package/dist/components/retrieval/mind-map/mind-map-layout.d.ts +0 -9
- package/dist/components/retrieval/mind-map/mind-map-layout.js +1 -1
- package/dist/components/retrieval/mind-map/mind-map.class.d.ts +10 -1
- package/dist/components/retrieval/mind-map/mind-map.class.js +8 -29
- package/dist/components/retrieval/mind-map/mind-map.styles.js +1 -1
- package/dist/components/retrieval/neighbor-list/neighbor-list.class.d.ts +7 -3
- package/dist/components/retrieval/neighbor-list/neighbor-list.class.js +15 -43
- package/dist/components/retrieval/neighbor-list/neighbor-list.styles.js +1 -1
- package/dist/components/retrieval/node-palette/node-palette.class.d.ts +12 -21
- package/dist/components/retrieval/node-palette/node-palette.class.js +5 -28
- package/dist/components/retrieval/node-palette/node-palette.styles.js +1 -1
- package/dist/components/retrieval/path-strip/path-strip.class.d.ts +3 -1
- package/dist/components/retrieval/path-strip/path-strip.class.js +10 -32
- package/dist/components/retrieval/path-strip/path-strip.styles.js +1 -1
- package/dist/components/retrieval/provenance-panel/provenance-panel.class.d.ts +10 -5
- package/dist/components/retrieval/provenance-panel/provenance-panel.class.js +12 -42
- package/dist/components/retrieval/provenance-panel/provenance-panel.styles.js +1 -1
- package/dist/components/retrieval/rag-answer/rag-answer.class.d.ts +3 -3
- package/dist/components/retrieval/rag-answer/rag-answer.class.js +9 -61
- package/dist/components/retrieval/rag-answer/rag-answer.styles.js +1 -1
- package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.class.d.ts +5 -1
- package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.class.js +18 -74
- package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.styles.js +1 -1
- package/dist/components/retrieval/research-progress/research-progress.class.js +6 -15
- package/dist/components/retrieval/research-progress/research-progress.styles.js +1 -1
- package/dist/components/retrieval/retrieval-compare/retrieval-compare.class.d.ts +6 -4
- package/dist/components/retrieval/retrieval-compare/retrieval-compare.class.js +11 -38
- package/dist/components/retrieval/retrieval-compare/retrieval-compare.styles.js +1 -1
- package/dist/components/retrieval/retrieval-identity.js +1 -1
- package/dist/components/retrieval/retrieval-metadata.js +3 -3
- package/dist/components/retrieval/retrieval-results/retrieval-results.class.d.ts +8 -6
- package/dist/components/retrieval/retrieval-results/retrieval-results.class.js +15 -78
- package/dist/components/retrieval/retrieval-results/retrieval-results.styles.js +1 -1
- package/dist/components/retrieval/retrieval-search/retrieval-search.class.d.ts +2 -2
- package/dist/components/retrieval/retrieval-search/retrieval-search.class.js +8 -51
- package/dist/components/retrieval/retrieval-search/retrieval-search.styles.js +1 -1
- package/dist/components/retrieval/retrieval-trace/retrieval-trace.class.d.ts +8 -6
- package/dist/components/retrieval/retrieval-trace/retrieval-trace.class.js +10 -34
- package/dist/components/retrieval/retrieval-trace/retrieval-trace.styles.js +1 -1
- package/dist/components/retrieval/source-card/source-card.class.js +3 -19
- package/dist/components/retrieval/source-card/source-card.styles.js +1 -1
- package/dist/components/retrieval/source-list/source-list.class.d.ts +3 -1
- package/dist/components/retrieval/source-list/source-list.class.js +2 -9
- package/dist/components/retrieval/source-list/source-list.styles.js +1 -1
- package/dist/components/retrieval/source-picker/source-picker.class.d.ts +14 -5
- package/dist/components/retrieval/source-picker/source-picker.class.js +12 -60
- package/dist/components/retrieval/source-picker/source-picker.styles.js +1 -1
- package/dist/components/utility/copy-button/copy-button.class.d.ts +6 -4
- package/dist/components/utility/copy-button/copy-button.class.js +4 -61
- package/dist/components/utility/copy-button/copy-button.styles.js +1 -1
- package/dist/components/utility/counter/counter-time.d.ts +15 -0
- package/dist/components/utility/counter/counter-time.js +1 -0
- package/dist/components/utility/counter/counter.class.d.ts +67 -0
- package/dist/components/utility/counter/counter.class.js +1 -0
- package/dist/components/utility/counter/counter.styles.js +1 -0
- package/dist/components/utility/diff-view/diff-view.class.d.ts +23 -7
- package/dist/components/utility/diff-view/diff-view.class.js +5 -24
- package/dist/components/utility/diff-view/diff-view.styles.js +1 -1
- package/dist/components/utility/divider/divider.class.d.ts +25 -4
- package/dist/components/utility/divider/divider.class.js +5 -6
- package/dist/components/utility/export-button/csv.d.ts +2 -14
- package/dist/components/utility/export-button/csv.js +1 -2
- package/dist/components/utility/export-button/export-button.class.d.ts +49 -9
- package/dist/components/utility/export-button/export-button.class.js +7 -29
- package/dist/components/utility/export-button/export-button.styles.js +1 -1
- package/dist/components/utility/format/format-bytes.class.d.ts +14 -1
- package/dist/components/utility/format/format-bytes.class.js +1 -1
- package/dist/components/utility/format/format-date.class.d.ts +28 -2
- package/dist/components/utility/format/format-date.class.js +1 -1
- package/dist/components/utility/format/format-number.class.d.ts +21 -3
- package/dist/components/utility/format/format-number.class.js +1 -1
- package/dist/components/utility/format/format-options.d.ts +3 -39
- package/dist/components/utility/format/format-options.js +1 -1
- package/dist/components/utility/format/relative-time.class.d.ts +11 -1
- package/dist/components/utility/format/relative-time.class.js +1 -1
- package/dist/components/utility/icon/dompurify-loader.js +1 -1
- package/dist/components/utility/icon/icon-library.d.ts +14 -1
- package/dist/components/utility/icon/icon-library.js +1 -1
- package/dist/components/utility/icon/icon-resource.js +1 -1
- package/dist/components/utility/icon/icon-sprite.js +1 -0
- package/dist/components/utility/icon/icon.class.d.ts +9 -3
- package/dist/components/utility/icon/icon.class.js +3 -18
- package/dist/components/utility/index.d.ts +1 -1
- package/dist/components/utility/index.js +1 -1
- package/dist/components/utility/intersection-observer/intersection-observer.class.d.ts +16 -7
- package/dist/components/utility/intersection-observer/intersection-observer.class.js +1 -1
- package/dist/components/utility/json-viewer/json-viewer.class.d.ts +29 -5
- package/dist/components/utility/json-viewer/json-viewer.class.js +14 -52
- package/dist/components/utility/json-viewer/json-viewer.styles.js +1 -1
- package/dist/components/utility/known-date/known-date.class.d.ts +14 -2
- package/dist/components/utility/known-date/known-date.class.js +10 -48
- package/dist/components/utility/known-date/known-date.styles.js +1 -1
- package/dist/components/utility/live-region/live-region.class.d.ts +12 -1
- package/dist/components/utility/live-region/live-region.class.js +1 -1
- package/dist/components/utility/mention-popover/mention-popover.class.d.ts +25 -8
- package/dist/components/utility/mention-popover/mention-popover.class.js +5 -26
- package/dist/components/utility/mention-popover/mention-popover.styles.js +1 -1
- package/dist/components/utility/mutation-observer/mutation-observer.class.d.ts +16 -4
- package/dist/components/utility/mutation-observer/mutation-observer.class.js +1 -1
- package/dist/components/utility/number-ticker/number-ticker.class.d.ts +58 -0
- package/dist/components/utility/number-ticker/number-ticker.class.js +1 -0
- package/dist/components/utility/number-ticker/number-ticker.styles.js +1 -0
- package/dist/components/utility/poll-status/poll-status.class.d.ts +19 -1
- package/dist/components/utility/poll-status/poll-status.class.js +4 -16
- package/dist/components/utility/poll-status/poll-status.styles.js +1 -1
- package/dist/components/utility/random-content/random-content.class.d.ts +11 -1
- package/dist/components/utility/random-content/random-content.class.js +5 -25
- package/dist/components/utility/random-content/random-content.styles.js +1 -1
- package/dist/components/utility/resize-observer/resize-observer.class.d.ts +6 -2
- package/dist/components/utility/resize-observer/resize-observer.class.js +1 -1
- package/dist/components/utility/style-panel/style-panel.class.d.ts +58 -0
- package/dist/components/utility/style-panel/style-panel.class.js +9 -0
- package/dist/components/utility/tour/tour.class.d.ts +32 -7
- package/dist/components/utility/tour/tour.class.js +6 -29
- package/dist/components/utility/tour/tour.styles.js +1 -1
- package/dist/components/utility/visually-hidden/visually-hidden.class.js +1 -1
- package/dist/components/viewers/archive-viewer/archive-viewer-register.js +2 -6
- package/dist/components/viewers/archive-viewer/archive-viewer.class.d.ts +11 -3
- package/dist/components/viewers/archive-viewer/archive-viewer.class.js +1 -1
- package/dist/components/viewers/archive-viewer/archive-viewer.styles.js +1 -1
- package/dist/components/viewers/calendar-viewer/calendar-loader.d.ts +1 -1
- package/dist/components/viewers/calendar-viewer/calendar-loader.js +1 -1
- package/dist/components/viewers/calendar-viewer/calendar-viewer-register.js +1 -6
- package/dist/components/viewers/calendar-viewer/calendar-viewer.class.d.ts +7 -6
- package/dist/components/viewers/calendar-viewer/calendar-viewer.class.js +1 -1
- package/dist/components/viewers/contact-viewer/contact-viewer-register.js +1 -6
- package/dist/components/viewers/contact-viewer/contact-viewer.class.d.ts +6 -5
- package/dist/components/viewers/contact-viewer/contact-viewer.class.js +8 -12
- package/dist/components/viewers/contact-viewer/vcard.js +2 -2
- package/dist/components/viewers/csv-viewer/csv-viewer-register.js +1 -6
- package/dist/components/viewers/csv-viewer/csv-viewer.class.d.ts +16 -6
- package/dist/components/viewers/csv-viewer/csv-viewer.class.js +6 -37
- package/dist/components/viewers/csv-viewer/csv-viewer.styles.js +1 -1
- package/dist/components/viewers/dataset-viewer/dataset-viewer-register.js +1 -6
- package/dist/components/viewers/dataset-viewer/dataset-viewer.class.d.ts +15 -7
- package/dist/components/viewers/dataset-viewer/dataset-viewer.class.js +8 -33
- package/dist/components/viewers/dataset-viewer/dataset-viewer.styles.js +1 -1
- package/dist/components/viewers/document-compare/document-compare.class.d.ts +29 -9
- package/dist/components/viewers/document-compare/document-compare.class.js +9 -29
- package/dist/components/viewers/document-compare/document-compare.styles.js +1 -1
- package/dist/components/viewers/document-preview/document-preview.class.d.ts +16 -5
- package/dist/components/viewers/document-preview/document-preview.class.js +10 -41
- package/dist/components/viewers/document-preview/document-preview.styles.js +1 -1
- package/dist/components/viewers/document-viewer/document-viewer-kinds.d.ts +2 -2
- package/dist/components/viewers/document-viewer/document-viewer-kinds.js +1 -1
- package/dist/components/viewers/document-viewer/document-viewer.class.d.ts +5 -3
- package/dist/components/viewers/document-viewer/document-viewer.class.js +6 -33
- package/dist/components/viewers/document-viewer/document-viewer.styles.js +1 -1
- package/dist/components/viewers/docx-viewer/docx-loader.d.ts +3 -1
- package/dist/components/viewers/docx-viewer/docx-loader.js +1 -1
- package/dist/components/viewers/docx-viewer/docx-viewer-register.js +1 -6
- package/dist/components/viewers/docx-viewer/docx-viewer.class.d.ts +11 -5
- package/dist/components/viewers/docx-viewer/docx-viewer.class.js +7 -21
- package/dist/components/viewers/docx-viewer/docx-viewer.styles.js +1 -1
- package/dist/components/viewers/ebook-viewer/ebook-loader.js +1 -1
- package/dist/components/viewers/ebook-viewer/ebook-viewer-register.js +2 -7
- package/dist/components/viewers/ebook-viewer/ebook-viewer.class.d.ts +12 -4
- package/dist/components/viewers/ebook-viewer/ebook-viewer.class.js +3 -13
- package/dist/components/viewers/email-viewer/email-loader.js +1 -1
- package/dist/components/viewers/email-viewer/email-viewer-register.js +1 -6
- package/dist/components/viewers/email-viewer/email-viewer.class.d.ts +13 -6
- package/dist/components/viewers/email-viewer/email-viewer.class.js +15 -15
- package/dist/components/viewers/email-viewer/email-viewer.styles.js +1 -1
- package/dist/components/viewers/geojson-view/geojson-view.styles.js +1 -1
- package/dist/components/viewers/geojson-view/geojson-viewer-register.d.ts +1 -0
- package/dist/components/viewers/geojson-view/geojson-viewer-register.js +1 -0
- package/dist/components/viewers/geojson-view/geojson-viewer.class.d.ts +13 -8
- package/dist/components/viewers/geojson-view/geojson-viewer.class.js +5 -31
- package/dist/components/viewers/highlight-layer/highlight-layer.class.d.ts +10 -3
- package/dist/components/viewers/highlight-layer/highlight-layer.class.js +5 -47
- package/dist/components/viewers/highlight-layer/highlight-layer.styles.js +1 -1
- package/dist/components/viewers/html-viewer/dompurify-loader.js +1 -1
- package/dist/components/viewers/html-viewer/html-viewer-register.js +1 -6
- package/dist/components/viewers/html-viewer/html-viewer.class.d.ts +3 -4
- package/dist/components/viewers/html-viewer/html-viewer.class.js +1 -1
- package/dist/components/viewers/html-viewer/html-viewer.styles.js +1 -1
- package/dist/components/viewers/include/include-resource.d.ts +1 -1
- package/dist/components/viewers/include/include-resource.js +1 -1
- package/dist/components/viewers/include/include.class.d.ts +16 -5
- package/dist/components/viewers/include/include.class.js +1 -1
- package/dist/components/viewers/index.d.ts +1 -1
- package/dist/components/viewers/index.js +1 -1
- package/dist/components/viewers/model-viewer/model-viewer-document.js +1 -1
- package/dist/components/viewers/model-viewer/model-viewer.class.d.ts +5 -2
- package/dist/components/viewers/model-viewer/model-viewer.class.js +2 -2
- package/dist/components/viewers/model-viewer/model-viewer.styles.js +1 -1
- package/dist/components/viewers/notebook-viewer/dompurify-loader.js +1 -1
- package/dist/components/viewers/notebook-viewer/notebook-viewer-register.js +1 -6
- package/dist/components/viewers/notebook-viewer/notebook-viewer.class.d.ts +15 -10
- package/dist/components/viewers/notebook-viewer/notebook-viewer.class.js +9 -55
- package/dist/components/viewers/notebook-viewer/notebook-viewer.styles.js +1 -1
- package/dist/components/viewers/page-rail/page-rail.class.d.ts +6 -3
- package/dist/components/viewers/page-rail/page-rail.class.js +6 -26
- package/dist/components/viewers/page-rail/page-rail.styles.js +1 -1
- package/dist/components/viewers/passive-markup.js +1 -1
- package/dist/components/viewers/pdf-viewer/pdf-loader.js +1 -1
- package/dist/components/viewers/pdf-viewer/pdf-viewer-register.js +1 -6
- package/dist/components/viewers/pdf-viewer/pdf-viewer.class.d.ts +28 -9
- package/dist/components/viewers/pdf-viewer/pdf-viewer.class.js +5 -15
- package/dist/components/viewers/pdf-viewer/pdf-viewer.styles.js +1 -1
- package/dist/components/viewers/pptx-viewer/pptx-loader.js +1 -1
- package/dist/components/viewers/pptx-viewer/pptx-viewer-register.js +1 -6
- package/dist/components/viewers/pptx-viewer/pptx-viewer.class.d.ts +9 -5
- package/dist/components/viewers/pptx-viewer/pptx-viewer.class.js +4 -10
- package/dist/components/viewers/region-highlight-layer.js +7 -29
- package/dist/components/viewers/spreadsheet-viewer/spreadsheet-loader.d.ts +1 -1
- package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer-register.js +1 -6
- package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer.class.d.ts +17 -7
- package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer.class.js +6 -47
- package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer.styles.js +1 -1
- package/dist/components/viewers/svg-viewer/dompurify-loader.js +1 -1
- package/dist/components/viewers/svg-viewer/svg-viewer-register.js +1 -6
- package/dist/components/viewers/svg-viewer/svg-viewer.class.d.ts +14 -8
- package/dist/components/viewers/svg-viewer/svg-viewer.class.js +3 -6
- package/dist/components/viewers/svg-viewer/svg-viewer.styles.js +1 -1
- package/dist/components/viewers/table-viewer-shared.d.ts +49 -0
- package/dist/components/viewers/table-viewer-shared.js +10 -28
- package/dist/components/viewers/table-viewer-shared.styles.js +1 -1
- package/dist/components/viewers/viewer-announcements.d.ts +3 -0
- package/dist/components/viewers/viewer-diagnostics.d.ts +5 -4
- package/dist/components/viewers/viewer-frame.js +1 -1
- package/dist/components/viewers/viewer-loading.js +1 -1
- package/dist/components/viewers/viewer-pager.js +2 -2
- package/dist/components/viewers/viewer-search-limits.js +1 -1
- package/dist/components/viewers/viewer-semantic-owner.js +1 -1
- package/dist/components/viewers/xml-viewer/xml-viewer-register.js +1 -6
- package/dist/components/viewers/xml-viewer/xml-viewer.class.d.ts +23 -8
- package/dist/components/viewers/xml-viewer/xml-viewer.class.js +19 -72
- package/dist/components/viewers/xml-viewer/xml-viewer.styles.js +1 -1
- package/dist/custom-elements-jsx.d.ts +1 -1
- package/dist/event-classes.d.ts +2342 -0
- package/dist/event-classes.js +1 -0
- package/dist/events.d.ts +356 -124
- package/dist/framework-types.d.ts +2 -2
- package/dist/internal/a11y.d.ts +5 -18
- package/dist/internal/a11y.js +1 -1
- package/dist/internal/accessibility-visibility.d.ts +14 -5
- package/dist/internal/accessibility-visibility.js +1 -1
- package/dist/internal/accessible-name.js +1 -0
- package/dist/internal/accessible-trigger.js +1 -0
- package/dist/internal/agent-status-text.js +1 -1
- package/dist/internal/agent-status-variants.js +1 -1
- package/dist/internal/all-defined-arguments.d.ts +19 -0
- package/dist/internal/all-defined-arguments.js +1 -0
- package/dist/internal/anchor-target-base.d.ts +14 -0
- package/dist/internal/anchor-target-base.js +1 -0
- package/dist/internal/anchor-target.d.ts +1 -12
- package/dist/internal/anchor-target.js +1 -5
- package/dist/internal/anchored-disclosure-controller.js +1 -0
- package/dist/internal/anchored-overlay-runtime.js +1 -1
- package/dist/internal/anchored-validity.d.ts +2 -0
- package/dist/internal/anchored-validity.js +1 -1
- package/dist/internal/announcement-text.js +1 -1
- package/dist/internal/announcer.d.ts +4 -3
- package/dist/internal/announcer.js +1 -1
- package/dist/internal/approval-request-controller.js +1 -0
- package/dist/internal/aria-controls.js +1 -1
- package/dist/internal/aria-ownership.js +1 -1
- package/dist/internal/aria-values.d.ts +2 -0
- package/dist/internal/aria-values.js +1 -0
- package/dist/internal/autoloader-loaders.js +1 -1
- package/dist/internal/autoloader-tags.d.ts +1 -1
- package/dist/internal/autoloader-tags.js +1 -1
- package/dist/internal/bidi.js +1 -0
- package/dist/internal/bytes.d.ts +32 -0
- package/dist/internal/bytes.js +1 -0
- package/dist/internal/calendar-core.d.ts +45 -0
- package/dist/internal/calendar-core.js +1 -0
- package/dist/internal/calendar-date.d.ts +16 -0
- package/dist/internal/calendar-date.js +1 -0
- package/dist/internal/canvas-color.d.ts +13 -0
- package/dist/internal/canvas-color.js +1 -1
- package/dist/internal/catalog-picker-template.js +2 -0
- package/dist/internal/catalog-picker.d.ts +20 -6
- package/dist/internal/catalog-picker.js +1 -1
- package/dist/internal/cell-range.d.ts +10 -0
- package/dist/internal/chart-annotation-registration.js +1 -1
- package/dist/internal/chart-data-table.js +1 -0
- package/dist/internal/chart-number-format.js +1 -0
- package/dist/internal/chart-prepared-data.d.ts +11 -0
- package/dist/internal/chart-prepared-data.js +1 -0
- package/dist/internal/chart-prepared-property.js +1 -0
- package/dist/internal/chart-prepared-series.d.ts +3 -0
- package/dist/internal/chart-prepared-series.js +1 -0
- package/dist/internal/chart-ticks.js +1 -0
- package/dist/internal/chat-composer-status.js +1 -0
- package/dist/internal/checked-control-label.js +1 -0
- package/dist/internal/child-event-containment.js +1 -1
- package/dist/internal/choropleth-no-data.js +1 -0
- package/dist/internal/clipboard.d.ts +10 -0
- package/dist/internal/clipboard.js +1 -1
- package/dist/internal/collection-identity.js +1 -1
- package/dist/internal/collection-snapshot.js +1 -1
- package/dist/internal/collection-source-tracker.js +1 -1
- package/dist/internal/collection-window.js +1 -0
- package/dist/internal/color-math.js +1 -0
- package/dist/internal/column-resize.js +1 -1
- package/dist/internal/component-loaders.generated.js +1 -1
- package/dist/internal/composed-tree.d.ts +2 -0
- package/dist/internal/composed-tree.js +1 -1
- package/dist/internal/container-breakpoints.styles.js +1 -1
- package/dist/internal/context-update.js +1 -0
- package/dist/internal/contextual-vocabulary.styles.js +1 -1
- package/dist/internal/control-focus-repair.js +1 -0
- package/dist/internal/converters.d.ts +15 -0
- package/dist/internal/converters.js +1 -1
- package/dist/internal/css-length.js +1 -1
- package/dist/internal/csv.d.ts +35 -0
- package/dist/internal/csv.js +2 -0
- package/dist/internal/data-descriptors.d.ts +12 -2
- package/dist/internal/data-descriptors.js +1 -1
- package/dist/internal/data-state-renderer.js +2 -24
- package/dist/internal/data-state-renderer.styles.js +1 -1
- package/dist/internal/dedent.js +7 -0
- package/dist/internal/default-strings/agent-tools.generated.js +1 -1
- package/dist/internal/default-strings/charts.generated.js +1 -1
- package/dist/internal/default-strings/conversation.generated.js +1 -1
- package/dist/internal/default-strings/data.generated.js +1 -1
- package/dist/internal/default-strings/forms.generated.js +1 -1
- package/dist/internal/default-strings/layout.generated.js +1 -1
- package/dist/internal/default-strings/media.generated.js +1 -1
- package/dist/internal/default-strings/overlays.generated.js +1 -1
- package/dist/internal/default-strings/retrieval.generated.js +1 -1
- package/dist/internal/default-strings/shared.generated.js +1 -1
- package/dist/internal/default-strings/utility.generated.js +1 -1
- package/dist/internal/default-strings/viewers.generated.js +1 -1
- package/dist/internal/delimited-data.js +1 -1
- package/dist/internal/dev-mode-attribute-warning.development.js +1 -1
- package/dist/internal/dev-mode-attribute-warning.production.js +1 -1
- package/dist/internal/dev-warning.development.js +1 -1
- package/dist/internal/dev-warning.production.js +1 -1
- package/dist/internal/document-pointer.js +1 -1
- package/dist/internal/document-renderer-registry.d.ts +1 -1
- package/dist/internal/document-tokens.generated.js +4 -4
- package/dist/internal/docx-zip-admission.js +1 -1
- package/dist/internal/dom-guards.js +1 -1
- package/dist/internal/dropzone.styles.js +1 -0
- package/dist/internal/engine-3d-loader.js +1 -1
- package/dist/internal/engine-3d.js +1 -1
- package/dist/internal/engine-admission.js +1 -0
- package/dist/internal/engine-style.js +2 -0
- package/dist/internal/escape-html.d.ts +6 -0
- package/dist/internal/escape-html.js +1 -0
- package/dist/internal/file-accept.d.ts +30 -0
- package/dist/internal/file-accept.js +1 -0
- package/dist/internal/file-intake.d.ts +6 -0
- package/dist/internal/file-intake.js +1 -0
- package/dist/internal/focus-candidates.js +1 -1
- package/dist/internal/focus-navigation.d.ts +3 -1
- package/dist/internal/focus-navigation.js +1 -1
- package/dist/internal/focus-repair.js +1 -0
- package/dist/internal/follow-tail-controller.js +1 -0
- package/dist/internal/forced-colors.styles.js +1 -0
- package/dist/internal/form-associated.d.ts +11 -0
- package/dist/internal/form-associated.js +1 -1
- package/dist/internal/form-control/appearance.styles.js +1 -0
- package/dist/internal/form-control/chrome.styles.js +1 -0
- package/dist/internal/form-control/preset-button.styles.js +1 -0
- package/dist/internal/form-control/touch-font-floor.styles.js +1 -0
- package/dist/internal/form-control-controller.js +1 -1
- package/dist/internal/form-control-labels.js +1 -1
- package/dist/internal/form-control-template.js +2 -6
- package/dist/internal/form-control.styles.js +1 -1
- package/dist/internal/form-validator-runtime.js +1 -0
- package/dist/internal/glass-independent-root.styles.js +1 -1
- package/dist/internal/glass-scroll-layer.styles.js +1 -1
- package/dist/internal/glass-surface.styles.js +1 -1
- package/dist/internal/graph-source-messages.js +1 -0
- package/dist/internal/group-by-recency.js +1 -1
- package/dist/internal/heading-anchor.js +1 -0
- package/dist/internal/heading-level.d.ts +10 -3
- package/dist/internal/heading-level.js +1 -1
- package/dist/internal/hierarchy-source-controller.js +1 -1
- package/dist/internal/hierarchy-source-search.js +1 -0
- package/dist/internal/hierarchy-source-view.js +5 -21
- package/dist/internal/hierarchy-source-view.styles.js +1 -1
- package/dist/internal/hierarchy-summary-source.js +1 -1
- package/dist/internal/highlight-collection.d.ts +5 -1
- package/dist/internal/highlight-collection.js +1 -1
- package/dist/internal/host-tokens.styles.js +1 -1
- package/dist/internal/icon-action.styles.js +15 -1
- package/dist/internal/icon-paths.js +1 -0
- package/dist/internal/icons.d.ts +47 -0
- package/dist/internal/icons.js +29 -47
- package/dist/internal/inert-presentation.js +1 -7
- package/dist/internal/inherited-attribute-hub.d.ts +2 -0
- package/dist/internal/inherited-attribute-hub.js +1 -1
- package/dist/internal/inherited-context-observer.js +1 -1
- package/dist/internal/input-limit-announcement.js +1 -0
- package/dist/internal/input-memo.js +1 -0
- package/dist/internal/interactive-control.styles.js +4 -1
- package/dist/internal/intl-cache.js +1 -1
- package/dist/internal/labeled-group.js +1 -0
- package/dist/internal/layout-fragments.styles.js +1 -1
- package/dist/internal/layout-scale.js +1 -0
- package/dist/internal/lazy-children.js +1 -0
- package/dist/internal/lazy-hierarchy-source.js +1 -0
- package/dist/internal/list-navigation.js +1 -1
- package/dist/internal/locale-date.d.ts +31 -0
- package/dist/internal/locale-date.js +1 -1
- package/dist/internal/locale-english-defaults.generated.js +1 -0
- package/dist/internal/locale-loaders.generated.js +1 -1
- package/dist/internal/locale-number.js +1 -0
- package/dist/internal/localization-runtime.d.ts +14 -0
- package/dist/internal/localization-runtime.js +1 -1
- package/dist/internal/localization-types.d.ts +4 -4
- package/dist/internal/localization.js +2 -2
- package/dist/internal/lyra-element.d.ts +42 -2
- package/dist/internal/lyra-element.js +2 -2
- package/dist/internal/lyra-event.d.ts +22 -0
- package/dist/internal/lyra-event.js +1 -0
- package/dist/internal/map-camera-follow-controller.d.ts +4 -4
- package/dist/internal/map-camera-follow-controller.js +1 -1
- package/dist/internal/map-camera-follow-data.d.ts +11 -0
- package/dist/internal/map-camera-follow-data.js +1 -1
- package/dist/internal/map-camera-ground-follow-scene.js +1 -0
- package/dist/internal/map-camera-session-controller.js +1 -1
- package/dist/internal/map-camera-session-data.d.ts +3 -1
- package/dist/internal/map-camera-session-data.js +1 -1
- package/dist/internal/map-custom-layer-controller.js +1 -1
- package/dist/internal/map-feature-loader-core.js +1 -0
- package/dist/internal/map-handler-lease.js +1 -0
- package/dist/internal/map-overlay-panel.styles.js +1 -0
- package/dist/internal/map-scene-layer-runtime.js +1 -1
- package/dist/internal/map-scene-session-registry.js +1 -0
- package/dist/internal/markdown-render-types.d.ts +4 -0
- package/dist/internal/measured-offset-index.js +1 -0
- package/dist/internal/media-panorama-host.js +1 -0
- package/dist/internal/media-panorama.d.ts +1 -1
- package/dist/internal/media-panorama.js +2 -6
- package/dist/internal/media-panorama.styles.js +1 -1
- package/dist/internal/media-time.js +1 -1
- package/dist/internal/minimum-pointer-target.styles.js +1 -0
- package/dist/internal/modal-host.styles.js +1 -1
- package/dist/internal/modal-open-request.js +1 -0
- package/dist/internal/modal-surface-controller.js +1 -1
- package/dist/internal/modal-surface.styles.js +5 -0
- package/dist/internal/model-viewer-contract.js +1 -1
- package/dist/internal/motion.js +1 -1
- package/dist/internal/native-control-surface.styles.js +1 -0
- package/dist/internal/native-modal-carrier.js +1 -12
- package/dist/internal/native-modal-carrier.styles.js +1 -1
- package/dist/internal/native-search.js +1 -10
- package/dist/internal/native-search.styles.js +1 -1
- package/dist/internal/native-text-control.js +1 -1
- package/dist/internal/nested-interactive.js +1 -1
- package/dist/internal/nonmodal-overlay-manager.d.ts +6 -0
- package/dist/internal/numbers.d.ts +15 -0
- package/dist/internal/numbers.js +1 -1
- package/dist/internal/object-guards.js +1 -1
- package/dist/internal/observer-wrapper.styles.js +1 -1
- package/dist/internal/opaque-content-border.styles.js +1 -1
- package/dist/internal/opaque-id.js +1 -0
- package/dist/internal/open-overlay-raise.styles.js +1 -1
- package/dist/internal/option-catalog-host.js +1 -0
- package/dist/internal/option-selection.js +1 -1
- package/dist/internal/optional-peer-capabilities.d.ts +22 -1
- package/dist/internal/optional-peer-capabilities.js +1 -1
- package/dist/internal/overlay-manager.js +1 -1
- package/dist/internal/overlay-shared.d.ts +65 -0
- package/dist/internal/overlay-shared.js +1 -0
- package/dist/internal/overlay-stack.js +1 -1
- package/dist/internal/overlay-surface.styles.js +1 -1
- package/dist/internal/owned-observer.d.ts +60 -0
- package/dist/internal/owned-observer.js +1 -0
- package/dist/internal/package-metadata.js +1 -1
- package/dist/internal/page-size.js +1 -0
- package/dist/internal/panel-frame.styles.js +1 -0
- package/dist/internal/papaparse-loader.js +1 -1
- package/dist/internal/passive-markup.js +1 -0
- package/dist/internal/picker-value.d.ts +2 -3
- package/dist/internal/pointer-capture.js +1 -0
- package/dist/internal/popup-controller.d.ts +41 -0
- package/dist/internal/popup-controller.js +1 -1
- package/dist/internal/portable-look-inputs.d.ts +3 -0
- package/dist/internal/portable-look-inputs.js +2 -0
- package/dist/internal/portable-look-resolver.d.ts +1 -0
- package/dist/internal/portable-look-resolver.js +1 -0
- package/dist/internal/positioning-strategy.js +1 -1
- package/dist/internal/preview-disclosure-controller.js +1 -1
- package/dist/internal/progress-track.styles.js +1 -1
- package/dist/internal/pseudo-localization.js +1 -1
- package/dist/internal/range-drag.js +1 -1
- package/dist/internal/range-keyboard-shortcut.js +1 -0
- package/dist/internal/record-copy-feedback.d.ts +19 -0
- package/dist/internal/record-copy-feedback.js +1 -0
- package/dist/internal/region-hit-targets.js +1 -0
- package/dist/internal/render-keys.js +1 -0
- package/dist/internal/rendered-tree-traversal.js +1 -1
- package/dist/internal/request-commit.js +1 -1
- package/dist/internal/resource-loader.d.ts +10 -8
- package/dist/internal/resource-loader.js +1 -1
- package/dist/internal/reveal-row.js +1 -1
- package/dist/internal/root-registration-allowlist.js +1 -1
- package/dist/internal/roving-list-controller.js +1 -0
- package/dist/internal/roving-toolbar.js +1 -1
- package/dist/internal/roving-tree-focus.js +1 -0
- package/dist/internal/safe-css.d.ts +38 -0
- package/dist/internal/scoped-definitions.generated.js +1 -1
- package/dist/internal/score-tiers.d.ts +2 -0
- package/dist/internal/score-tiers.js +1 -1
- package/dist/internal/scroll-overflow.js +1 -1
- package/dist/internal/scroll-overflow.styles.js +1 -1
- package/dist/internal/scroll-region-directive.js +1 -0
- package/dist/internal/scroll-region.js +1 -0
- package/dist/internal/selection-catalog.d.ts +6 -0
- package/dist/internal/selection-catalog.js +1 -1
- package/dist/internal/semantic-variant-rows.styles.js +1 -1
- package/dist/internal/separator-drag.js +1 -1
- package/dist/internal/shiki/core.d.ts +115 -0
- package/dist/internal/shiki/core.js +1 -0
- package/dist/internal/shiki/dark-theme.js +1 -0
- package/dist/internal/shiki/full.d.ts +16 -0
- package/dist/internal/shiki/full.js +1 -0
- package/dist/internal/shiki/tokenize.js +2 -0
- package/dist/internal/shiki-language-sources.js +1 -1
- package/dist/internal/size-tiers.styles.js +17 -0
- package/dist/internal/sizes.styles.js +1 -1
- package/dist/internal/slot-content.js +1 -0
- package/dist/internal/slot-presence-controller.js +1 -1
- package/dist/internal/slotted-observer.js +1 -1
- package/dist/internal/sort-compare.js +1 -0
- package/dist/internal/source-page-controller.js +1 -1
- package/dist/internal/source-paging.js +1 -0
- package/dist/internal/source-request-controller.js +1 -1
- package/dist/internal/source-row.js +1 -0
- package/dist/internal/source-window-controller.js +1 -1
- package/dist/internal/srcset.js +1 -0
- package/dist/internal/style-property-lease.js +1 -1
- package/dist/internal/submit-on-enter.js +1 -1
- package/dist/internal/svg-chart.js +17 -0
- package/dist/internal/svg-chart.styles.js +1 -0
- package/dist/internal/svg-title.js +1 -1
- package/dist/internal/tab-index-lease.js +1 -0
- package/dist/internal/tabular-viewer-target.js +1 -0
- package/dist/internal/text-highlight.styles.js +5 -0
- package/dist/internal/text-highlights.d.ts +31 -5
- package/dist/internal/text-highlights.js +1 -1
- package/dist/internal/text-lines.js +1 -0
- package/dist/internal/text-quote-index.d.ts +10 -0
- package/dist/internal/text-quote-index.js +1 -0
- package/dist/internal/text-quote.d.ts +22 -46
- package/dist/internal/text-quote.js +1 -1
- package/dist/internal/text-selection-observer.d.ts +17 -0
- package/dist/internal/text-selection-observer.js +1 -0
- package/dist/internal/text-selection.d.ts +37 -0
- package/dist/internal/text-selection.js +1 -0
- package/dist/internal/text-viewer-target.d.ts +10 -2
- package/dist/internal/text-viewer-target.js +1 -1
- package/dist/internal/theme-watcher.d.ts +5 -0
- package/dist/internal/theme-watcher.js +1 -1
- package/dist/internal/toolbar-actions.d.ts +20 -0
- package/dist/internal/toolbar-actions.js +1 -0
- package/dist/internal/top-layer.styles.js +1 -1
- package/dist/internal/type-ahead-buffer.js +1 -1
- package/dist/internal/typed-columns.js +1 -1
- package/dist/internal/variants.d.ts +11 -0
- package/dist/internal/variants.js +1 -1
- package/dist/internal/variants.styles.js +1 -1
- package/dist/internal/viewer-failure-message.js +1 -0
- package/dist/internal/viewer-search.d.ts +13 -0
- package/dist/internal/viewer-source-controller.js +1 -0
- package/dist/internal/wheel-zoom.js +1 -0
- package/dist/localization.js +1 -1
- package/dist/lyra.d.ts +1 -1
- package/dist/lyra.js +1 -1
- package/dist/ssr/all.d.ts +1 -1
- package/dist/ssr/all.js +1 -1
- package/dist/ssr.d.ts +5 -5
- package/dist/ssr.js +1 -1
- package/dist/styles/native.css +1 -1
- package/dist/styles/palette.css +1 -0
- package/dist/styles/reservations.styles.js +1 -1
- package/dist/styles/tokens-root.css +1 -1
- package/dist/styles/utilities.css +1 -1
- package/dist/svelte.d.ts +1 -1
- package/dist/testing/happy-dom-shims.d.ts +11 -2
- package/dist/testing/happy-dom-shims.js +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +1 -1
- package/dist/testing/lyra-tag-event-map.d.ts +2 -2
- package/dist/testing/lyra-tag-event-map.js +1 -1
- package/dist/theme/gemstones.js +1 -1
- package/dist/theme/look-css.js +2 -2
- package/dist/theme/look-inputs.d.ts +1 -1
- package/dist/theme/look-inputs.js +1 -123
- package/dist/theme/options/charts.js +1 -1
- package/dist/theme/options/elevation.js +1 -1
- package/dist/theme/options/shape.js +1 -1
- package/dist/theme/options/typography.js +1 -1
- package/dist/theme/startup-resolution.js +1 -1
- package/dist/theme/theme-bootstrap.js +1 -1
- package/dist/theme/theme.d.ts +30 -4
- package/dist/theme/theme.js +1 -1
- package/dist/theme-core.css +1 -1
- package/dist/theme.css +1 -1
- package/dist/utilities/defined.d.ts +10 -1
- package/dist/utilities/defined.js +1 -1
- package/dist/utilities/form.d.ts +9 -0
- package/dist/utilities/form.js +1 -0
- package/dist/utilities/format.d.ts +5 -9
- package/dist/utilities/format.js +1 -1
- package/dist/utilities/index.d.ts +1 -1
- package/dist/utilities/index.js +1 -1
- package/dist/utilities/plain-click.d.ts +13 -0
- package/dist/utilities/plain-click.js +1 -0
- package/dist/vue.d.ts +1 -1
- package/llms/components/lr-accordion-item.md +1 -1
- package/llms/components/lr-accordion.md +1 -1
- package/llms/components/lr-activity-feed.md +8 -2
- package/llms/components/lr-agent-eval-dashboard.md +12 -6
- package/llms/components/lr-agent-question.md +10 -1
- package/llms/components/lr-agent-run.md +12 -4
- package/llms/components/lr-agent-trace.md +9 -2
- package/llms/components/lr-agent-workspace.md +14 -3
- package/llms/components/lr-alert.md +15 -8
- package/llms/components/lr-animated-image.md +8 -3
- package/llms/components/lr-animation.md +1 -1
- package/llms/components/lr-app-rail-group.md +1 -1
- package/llms/components/lr-app-rail-item.md +1 -1
- package/llms/components/lr-app-rail.md +114 -49
- package/llms/components/lr-approval-queue.md +23 -9
- package/llms/components/lr-archive-viewer.md +4 -3
- package/llms/components/lr-artifact-panel.md +8 -6
- package/llms/components/lr-attachment-chip.md +25 -23
- package/llms/components/lr-attachment-trigger.md +10 -3
- package/llms/components/lr-audio-visualizer.md +5 -2
- package/llms/components/lr-av-player.md +22 -7
- package/llms/components/lr-avatar-group.md +6 -2
- package/llms/components/lr-avatar.md +2 -3
- package/llms/components/lr-background-runs.md +27 -10
- package/llms/components/lr-badge.md +31 -13
- package/llms/components/lr-bar-chart.md +1 -1
- package/llms/components/lr-box-plot.md +13 -4
- package/llms/components/lr-branch-picker.md +12 -3
- package/llms/components/lr-breadcrumb-item.md +1 -1
- package/llms/components/lr-breadcrumb.md +9 -4
- package/llms/components/lr-browser-frame.md +6 -4
- package/llms/components/lr-bubble-chart.md +1 -1
- package/llms/components/lr-budget-meter.md +11 -5
- package/llms/components/lr-button-group.md +12 -6
- package/llms/components/lr-button.md +45 -6
- package/llms/components/lr-calendar-viewer.md +5 -3
- package/llms/components/lr-calendar.md +9 -6
- package/llms/components/lr-callout.md +6 -8
- package/llms/components/lr-card.md +38 -5
- package/llms/components/lr-carousel.md +20 -10
- package/llms/components/lr-change-review.md +8 -2
- package/llms/components/lr-chart-3d.md +9 -4
- package/llms/components/lr-chart.md +76 -17
- package/llms/components/lr-chat-composer.md +37 -10
- package/llms/components/lr-chat-message.md +25 -7
- package/llms/components/lr-chat-viewport.md +21 -6
- package/llms/components/lr-checkbox-group.md +32 -6
- package/llms/components/lr-checkbox.md +23 -8
- package/llms/components/lr-checkpoint.md +6 -2
- package/llms/components/lr-chip-group.md +2 -2
- package/llms/components/lr-chip.md +18 -4
- package/llms/components/lr-chord.md +97 -0
- package/llms/components/lr-choropleth.md +145 -0
- package/llms/components/lr-chunk-inspector.md +11 -1
- package/llms/components/lr-citation-badge.md +1 -0
- package/llms/components/lr-claim-evidence.md +1 -0
- package/llms/components/lr-code-block-core.md +53 -13
- package/llms/components/lr-code-block.md +73 -12
- package/llms/components/lr-code-editor.md +49 -13
- package/llms/components/lr-color-picker.md +59 -13
- package/llms/components/lr-combobox.md +144 -23
- package/llms/components/lr-command-palette.md +25 -13
- package/llms/components/lr-commit-card.md +6 -2
- package/llms/components/lr-community-card.md +5 -1
- package/llms/components/lr-compare-panel.md +5 -2
- package/llms/components/lr-condition-builder.md +12 -3
- package/llms/components/lr-confirm-bar.md +8 -4
- package/llms/components/lr-connector-manager.md +20 -6
- package/llms/components/lr-contact-viewer.md +8 -3
- package/llms/components/lr-context-inspector.md +1 -1
- package/llms/components/lr-context-menu.md +12 -4
- package/llms/components/lr-context-meter.md +11 -8
- package/llms/components/lr-control-group.md +2 -0
- package/llms/components/lr-conversation-item.md +21 -4
- package/llms/components/lr-copy-button.md +5 -1
- package/llms/components/lr-counter.md +60 -0
- package/llms/components/lr-country-picker.md +30 -5
- package/llms/components/lr-csv-viewer.md +11 -3
- package/llms/components/lr-currency-picker.md +34 -8
- package/llms/components/lr-dashboard-grid.md +14 -9
- package/llms/components/lr-data-grid.md +45 -28
- package/llms/components/lr-dataset-viewer.md +13 -2
- package/llms/components/lr-date-input.md +1 -1
- package/llms/components/lr-date-picker.md +74 -19
- package/llms/components/lr-details.md +32 -10
- package/llms/components/lr-dialog.md +105 -27
- package/llms/components/lr-diff-view.md +15 -3
- package/llms/components/lr-divider.md +16 -5
- package/llms/components/lr-dock-panel.md +11 -5
- package/llms/components/lr-document-compare.md +26 -6
- package/llms/components/lr-document-library.md +10 -4
- package/llms/components/lr-document-preview.md +16 -7
- package/llms/components/lr-document-viewer.md +6 -2
- package/llms/components/lr-docx-editor.md +19 -0
- package/llms/components/lr-docx-viewer.md +4 -2
- package/llms/components/lr-doughnut-chart.md +1 -1
- package/llms/components/lr-drawer.md +33 -9
- package/llms/components/lr-drilldown-panel.md +7 -1
- package/llms/components/lr-drop-zone.md +14 -5
- package/llms/components/lr-dropdown-item.md +1 -1
- package/llms/components/lr-dropdown.md +11 -6
- package/llms/components/lr-ebook-viewer.md +17 -5
- package/llms/components/lr-email-viewer.md +18 -7
- package/llms/components/lr-embedding-explorer.md +14 -8
- package/llms/components/lr-emoji-picker.md +29 -9
- package/llms/components/lr-empty.md +18 -8
- package/llms/components/lr-entity-card.md +5 -1
- package/llms/components/lr-entity-dossier.md +27 -15
- package/llms/components/lr-env-list.md +11 -6
- package/llms/components/lr-eval-dataset.md +8 -2
- package/llms/components/lr-eval-result.md +1 -1
- package/llms/components/lr-eval-run.md +13 -7
- package/llms/components/lr-export-button.md +29 -8
- package/llms/components/lr-file-icon.md +5 -2
- package/llms/components/lr-file-input.md +51 -14
- package/llms/components/lr-file-tree.md +5 -0
- package/llms/components/lr-filter-bar.md +42 -37
- package/llms/components/lr-flag.md +10 -6
- package/llms/components/lr-flow-canvas.md +11 -5
- package/llms/components/lr-flow-controls.md +11 -3
- package/llms/components/lr-flow-minimap.md +6 -2
- package/llms/components/lr-flow-node.md +6 -5
- package/llms/components/lr-format-bytes.md +10 -5
- package/llms/components/lr-format-date.md +3 -3
- package/llms/components/lr-format-number.md +3 -2
- package/llms/components/lr-funnel.md +12 -13
- package/llms/components/lr-gauge.md +6 -3
- package/llms/components/lr-gen-view.md +19 -0
- package/llms/components/lr-generation-metrics.md +8 -2
- package/llms/components/lr-geojson-viewer.md +18 -11
- package/llms/components/lr-graph-legend.md +5 -2
- package/llms/components/lr-graph-query-builder.md +21 -2
- package/llms/components/lr-graph.md +18 -10
- package/llms/components/lr-handoff-divider.md +4 -2
- package/llms/components/lr-heatmap.md +74 -8
- package/llms/components/lr-help.md +55 -0
- package/llms/components/lr-highlight-layer.md +13 -3
- package/llms/components/lr-histogram.md +16 -5
- package/llms/components/lr-html-viewer.md +8 -1
- package/llms/components/lr-icon-button.md +33 -10
- package/llms/components/lr-icon.md +13 -1
- package/llms/components/lr-image-comparer.md +7 -3
- package/llms/components/lr-image-viewer.md +18 -9
- package/llms/components/lr-include.md +3 -0
- package/llms/components/lr-ingestion-queue.md +7 -2
- package/llms/components/lr-input.md +26 -1
- package/llms/components/lr-intersection-observer.md +4 -1
- package/llms/components/lr-json-schema-viewer.md +12 -11
- package/llms/components/lr-json-viewer.md +16 -4
- package/llms/components/lr-kbd.md +4 -2
- package/llms/components/lr-knowledge-base-admin.md +4 -1
- package/llms/components/lr-knowledge-base.md +5 -4
- package/llms/components/lr-knowledge-graph-explorer.md +20 -4
- package/llms/components/lr-known-date.md +16 -1
- package/llms/components/lr-lightbox-item.md +14 -0
- package/llms/components/lr-lightbox.md +97 -12
- package/llms/components/lr-line-chart.md +12 -4
- package/llms/components/lr-lite-chart.md +15 -3
- package/llms/components/lr-locale-picker.md +34 -3
- package/llms/components/lr-map-anchor.md +21 -17
- package/llms/components/lr-map.md +335 -36
- package/llms/components/lr-markdown-core.md +33 -8
- package/llms/components/lr-markdown.md +70 -14
- package/llms/components/lr-mcp-app.md +4 -2
- package/llms/components/lr-media-card.md +12 -4
- package/llms/components/lr-memory-panel.md +22 -5
- package/llms/components/lr-mention-popover.md +14 -3
- package/llms/components/lr-menu-item.md +1 -1
- package/llms/components/lr-menu-label.md +7 -1
- package/llms/components/lr-menu.md +57 -8
- package/llms/components/lr-menubar-item.md +1 -1
- package/llms/components/lr-menubar.md +10 -2
- package/llms/components/lr-message-actions.md +3 -1
- package/llms/components/lr-message-feedback.md +19 -4
- package/llms/components/lr-message-parts.md +19 -7
- package/llms/components/lr-mind-map.md +7 -3
- package/llms/components/lr-model-select.md +49 -8
- package/llms/components/lr-model-settings-panel.md +9 -3
- package/llms/components/lr-model-viewer.md +12 -6
- package/llms/components/lr-multi-split.md +14 -10
- package/llms/components/lr-native-time-input.md +23 -2
- package/llms/components/lr-navigation-menu.md +11 -6
- package/llms/components/lr-neighbor-list.md +5 -4
- package/llms/components/lr-node-palette.md +9 -8
- package/llms/components/lr-notebook-viewer.md +17 -7
- package/llms/components/lr-number-input.md +24 -3
- package/llms/components/lr-number-ticker.md +55 -0
- package/llms/components/lr-otp-input.md +36 -6
- package/llms/components/lr-page-rail.md +7 -3
- package/llms/components/lr-page.md +34 -13
- package/llms/components/lr-pagination.md +78 -13
- package/llms/components/lr-pan-zoom.md +17 -8
- package/llms/components/lr-path-strip.md +5 -2
- package/llms/components/lr-pdf-viewer.md +22 -9
- package/llms/components/lr-permission-grant.md +14 -3
- package/llms/components/lr-permission-rules.md +21 -5
- package/llms/components/lr-phone-input.md +33 -6
- package/llms/components/lr-pie-chart.md +1 -1
- package/llms/components/lr-polar-area-chart.md +1 -1
- package/llms/components/lr-policy-summary.md +4 -1
- package/llms/components/lr-poll-status.md +8 -3
- package/llms/components/lr-popover.md +51 -9
- package/llms/components/lr-popup.md +1 -1
- package/llms/components/lr-pptx-viewer.md +16 -6
- package/llms/components/lr-progress-bar.md +4 -5
- package/llms/components/lr-progress-ring.md +2 -2
- package/llms/components/lr-prompt-input.md +18 -5
- package/llms/components/lr-prompt-queue.md +14 -4
- package/llms/components/lr-prompt-studio.md +14 -7
- package/llms/components/lr-provenance-panel.md +24 -13
- package/llms/components/lr-push-to-talk.md +11 -4
- package/llms/components/lr-qr-code.md +1 -1
- package/llms/components/lr-radar-chart.md +1 -1
- package/llms/components/lr-radio-button.md +12 -4
- package/llms/components/lr-radio-group.md +48 -9
- package/llms/components/lr-radio.md +19 -4
- package/llms/components/lr-rag-answer.md +3 -2
- package/llms/components/lr-rag-eval-dashboard.md +12 -5
- package/llms/components/lr-random-content.md +7 -3
- package/llms/components/lr-rating.md +10 -4
- package/llms/components/lr-realtime-session.md +10 -1
- package/llms/components/lr-relative-time.md +3 -3
- package/llms/components/lr-reorder-list.md +1 -1
- package/llms/components/lr-research-progress.md +1 -1
- package/llms/components/lr-resize-observer.md +2 -0
- package/llms/components/lr-responsive-panel.md +10 -3
- package/llms/components/lr-result-card.md +2 -1
- package/llms/components/lr-result-field.md +1 -1
- package/llms/components/lr-retrieval-compare.md +7 -4
- package/llms/components/lr-retrieval-results.md +10 -5
- package/llms/components/lr-retrieval-search.md +1 -1
- package/llms/components/lr-retrieval-trace.md +20 -9
- package/llms/components/lr-rubric-form.md +22 -8
- package/llms/components/lr-sankey.md +103 -0
- package/llms/components/lr-scatter-chart.md +1 -1
- package/llms/components/lr-scroller.md +13 -6
- package/llms/components/lr-segmented.md +49 -9
- package/llms/components/lr-select.md +56 -27
- package/llms/components/lr-selection-toolbar.md +5 -1
- package/llms/components/lr-sequence-playback.md +16 -5
- package/llms/components/lr-sequence-strip.md +6 -3
- package/llms/components/lr-signature-pad.md +44 -7
- package/llms/components/lr-skeleton.md +1 -1
- package/llms/components/lr-slider.md +58 -10
- package/llms/components/lr-source-list.md +4 -1
- package/llms/components/lr-source-picker.md +16 -8
- package/llms/components/lr-span-waterfall.md +11 -7
- package/llms/components/lr-sparkline.md +3 -2
- package/llms/components/lr-spinner.md +4 -2
- package/llms/components/lr-split-panel.md +8 -3
- package/llms/components/lr-spreadsheet-viewer.md +11 -3
- package/llms/components/lr-stack-trace.md +8 -2
- package/llms/components/lr-stat.md +54 -13
- package/llms/components/lr-step.md +61 -0
- package/llms/components/lr-stepper.md +79 -11
- package/llms/components/lr-stream-status.md +6 -3
- package/llms/components/lr-streaming-text-core.md +7 -4
- package/llms/components/lr-streaming-text.md +9 -7
- package/llms/components/lr-style-panel.md +73 -0
- package/llms/components/lr-subagent-panel.md +11 -4
- package/llms/components/lr-suggestion-chips.md +10 -4
- package/llms/components/lr-svg-viewer.md +15 -8
- package/llms/components/lr-swatch-picker.md +11 -4
- package/llms/components/lr-switch.md +11 -5
- package/llms/components/lr-tab-group.md +31 -3
- package/llms/components/lr-tab-panel.md +2 -2
- package/llms/components/lr-tab.md +5 -2
- package/llms/components/lr-table.md +168 -56
- package/llms/components/lr-tag.md +2 -2
- package/llms/components/lr-task-list.md +16 -9
- package/llms/components/lr-terminal.md +14 -8
- package/llms/components/lr-test-results.md +20 -8
- package/llms/components/lr-textarea.md +44 -9
- package/llms/components/lr-thinking-panel.md +14 -8
- package/llms/components/lr-thread-list.md +63 -20
- package/llms/components/lr-time-input.md +29 -7
- package/llms/components/lr-time-range.md +16 -15
- package/llms/components/lr-time-zone-picker.md +18 -3
- package/llms/components/lr-timeline-item.md +1 -1
- package/llms/components/lr-timeline.md +49 -4
- package/llms/components/lr-toast-item.md +2 -2
- package/llms/components/lr-toast.md +15 -6
- package/llms/components/lr-toggle-group.md +3 -3
- package/llms/components/lr-toggle.md +1 -1
- package/llms/components/lr-token-input.md +101 -18
- package/llms/components/lr-tool-approval-dialog.md +16 -2
- package/llms/components/lr-tool-call-block.md +11 -2
- package/llms/components/lr-tool-call-chip.md +17 -5
- package/llms/components/lr-tool-param-form.md +15 -9
- package/llms/components/lr-tool-result-dialog.md +14 -5
- package/llms/components/lr-tool-result-view.md +8 -5
- package/llms/components/lr-tool-select-dialog.md +27 -9
- package/llms/components/lr-tool-timeline.md +24 -6
- package/llms/components/lr-tooltip.md +23 -14
- package/llms/components/lr-tour.md +18 -4
- package/llms/components/lr-trace-tree.md +18 -4
- package/llms/components/lr-transcript-feed.md +9 -4
- package/llms/components/lr-tree-item.md +1 -1
- package/llms/components/lr-tree.md +14 -7
- package/llms/components/lr-treemap.md +90 -0
- package/llms/components/lr-typing-indicator.md +4 -5
- package/llms/components/lr-unit-picker.md +18 -3
- package/llms/components/lr-usage-badge.md +11 -3
- package/llms/components/lr-video-playlist.md +11 -3
- package/llms/components/lr-video.md +37 -19
- package/llms/components/lr-virtual-list.md +21 -13
- package/llms/components/lr-voice-picker.md +38 -7
- package/llms/components/lr-widget-renderer.md +6 -5
- package/llms/components/lr-widget.md +32 -20
- package/llms/components/lr-word-cloud.md +11 -4
- package/llms/components/lr-xml-viewer.md +15 -6
- package/llms/components/lr-zoomable-frame.md +17 -4
- package/llms/index.md +335 -320
- package/llms/migration.md +223 -15
- package/llms/peers.md +3 -3
- package/llms/shared/ai-and-peers.md +1 -2
- package/llms/shared/events-and-types.md +75 -5
- package/llms/shared/forms-and-accessibility.md +42 -3
- package/llms/shared/frameworks-and-ssr.md +2 -2
- package/llms/shared/imports-and-registration.md +62 -4
- package/llms/shared/localization-and-rtl.md +7 -2
- package/llms/shared/native-styles-and-utilities.md +153 -5
- package/llms/shared/styles-and-tokens.md +76 -35
- package/llms/shared/testing-and-utilities.md +45 -16
- package/llms/shared.md +462 -74
- package/llms/tokens.md +7 -2
- package/llms.txt +8 -9
- package/locales.json +1 -1
- package/package.json +396 -948
- package/registrations.json +1 -1
- package/skills/compose-lyra-interfaces/SKILL.md +1 -1
- package/skills/lyra-ui/SKILL.md +1 -2
- package/skills/lyra-ui/commands/migrate.md +3 -0
- package/dist/cli/agent-registry.mjs +0 -1
- package/dist/cli/component-inventory.mjs +0 -1
- package/dist/cli/css-declarations.mjs +0 -1
- package/dist/cli/html-comments.mjs +0 -1
- package/dist/cli/is-main-module.mjs +0 -1
- package/dist/cli/lyra-rename-ledger.mjs +0 -1
- package/dist/cli/migration-analysis.mjs +0 -13
- package/dist/cli/migration-contract.json +0 -1
- package/dist/cli/migration-contract.mjs +0 -2
- package/dist/cli/migration-immutable-collections.mjs +0 -6
- package/dist/cli/migration-renames.mjs +0 -4
- package/dist/cli/migration-theme-scopes.mjs +0 -3
- package/dist/cli/migration-transforms.mjs +0 -4
- package/dist/cli/theme-scope-vocabulary.generated.mjs +0 -1
- package/dist/components/agent-tools/activity-feed/activity-feed.d.ts +0 -2
- package/dist/components/agent-tools/activity-feed/activity-feed.js +0 -1
- package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.d.ts +0 -2
- package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.js +0 -1
- package/dist/components/agent-tools/agent-question/agent-question.d.ts +0 -2
- package/dist/components/agent-tools/agent-question/agent-question.js +0 -1
- package/dist/components/agent-tools/agent-run/agent-run.d.ts +0 -2
- package/dist/components/agent-tools/agent-run/agent-run.js +0 -1
- package/dist/components/agent-tools/agent-trace/agent-trace.d.ts +0 -2
- package/dist/components/agent-tools/agent-trace/agent-trace.js +0 -1
- package/dist/components/agent-tools/approval-queue/approval-queue.d.ts +0 -2
- package/dist/components/agent-tools/approval-queue/approval-queue.js +0 -1
- package/dist/components/agent-tools/artifact-panel/artifact-panel.d.ts +0 -2
- package/dist/components/agent-tools/artifact-panel/artifact-panel.js +0 -1
- package/dist/components/agent-tools/background-runs/background-runs.d.ts +0 -2
- package/dist/components/agent-tools/background-runs/background-runs.js +0 -1
- package/dist/components/agent-tools/browser-frame/browser-frame.d.ts +0 -2
- package/dist/components/agent-tools/browser-frame/browser-frame.js +0 -1
- package/dist/components/agent-tools/budget-meter/budget-meter.d.ts +0 -2
- package/dist/components/agent-tools/budget-meter/budget-meter.js +0 -1
- package/dist/components/agent-tools/change-review/change-review.d.ts +0 -2
- package/dist/components/agent-tools/change-review/change-review.js +0 -1
- package/dist/components/agent-tools/collection-identity.js +0 -1
- package/dist/components/agent-tools/commit-card/commit-card.d.ts +0 -2
- package/dist/components/agent-tools/commit-card/commit-card.js +0 -1
- package/dist/components/agent-tools/compare-panel/compare-panel.d.ts +0 -2
- package/dist/components/agent-tools/compare-panel/compare-panel.js +0 -1
- package/dist/components/agent-tools/confirm-bar/confirm-bar.d.ts +0 -2
- package/dist/components/agent-tools/confirm-bar/confirm-bar.js +0 -1
- package/dist/components/agent-tools/connector-manager/connector-manager.d.ts +0 -2
- package/dist/components/agent-tools/connector-manager/connector-manager.js +0 -1
- package/dist/components/agent-tools/context-inspector/context-inspector.d.ts +0 -2
- package/dist/components/agent-tools/context-inspector/context-inspector.js +0 -1
- package/dist/components/agent-tools/context-inspector/context-inspector.styles.js +0 -1
- package/dist/components/agent-tools/eval-dataset/eval-dataset.d.ts +0 -2
- package/dist/components/agent-tools/eval-dataset/eval-dataset.js +0 -1
- package/dist/components/agent-tools/eval-result/eval-result.d.ts +0 -2
- package/dist/components/agent-tools/eval-result/eval-result.js +0 -1
- package/dist/components/agent-tools/evaluation-run/evaluation-run.d.ts +0 -2
- package/dist/components/agent-tools/evaluation-run/evaluation-run.js +0 -1
- package/dist/components/agent-tools/mcp-app/mcp-app.d.ts +0 -2
- package/dist/components/agent-tools/mcp-app/mcp-app.js +0 -1
- package/dist/components/agent-tools/permission-grant/permission-grant.d.ts +0 -2
- package/dist/components/agent-tools/permission-grant/permission-grant.js +0 -1
- package/dist/components/agent-tools/permission-rules/permission-rules.d.ts +0 -2
- package/dist/components/agent-tools/permission-rules/permission-rules.js +0 -1
- package/dist/components/agent-tools/policy-summary/policy-summary.d.ts +0 -2
- package/dist/components/agent-tools/policy-summary/policy-summary.js +0 -1
- package/dist/components/agent-tools/policy-summary/policy-summary.styles.js +0 -1
- package/dist/components/agent-tools/prompt-studio/prompt-studio.d.ts +0 -2
- package/dist/components/agent-tools/prompt-studio/prompt-studio.js +0 -1
- package/dist/components/agent-tools/result-card/result-card.d.ts +0 -2
- package/dist/components/agent-tools/result-card/result-card.js +0 -1
- package/dist/components/agent-tools/result-card/result-field.d.ts +0 -2
- package/dist/components/agent-tools/result-card/result-field.js +0 -1
- package/dist/components/agent-tools/schema-viewer/schema-viewer.d.ts +0 -2
- package/dist/components/agent-tools/schema-viewer/schema-viewer.js +0 -1
- package/dist/components/agent-tools/span-waterfall/span-waterfall.d.ts +0 -2
- package/dist/components/agent-tools/span-waterfall/span-waterfall.js +0 -1
- package/dist/components/agent-tools/stack-trace/stack-trace.d.ts +0 -2
- package/dist/components/agent-tools/stack-trace/stack-trace.js +0 -1
- package/dist/components/agent-tools/subagent-panel/subagent-panel.d.ts +0 -2
- package/dist/components/agent-tools/subagent-panel/subagent-panel.js +0 -1
- package/dist/components/agent-tools/task-list/task-list.d.ts +0 -2
- package/dist/components/agent-tools/task-list/task-list.js +0 -1
- package/dist/components/agent-tools/terminal/terminal.d.ts +0 -2
- package/dist/components/agent-tools/terminal/terminal.js +0 -1
- package/dist/components/agent-tools/test-results/test-results.d.ts +0 -3
- package/dist/components/agent-tools/test-results/test-results.js +0 -1
- package/dist/components/agent-tools/thinking-panel/thinking-panel.d.ts +0 -2
- package/dist/components/agent-tools/thinking-panel/thinking-panel.js +0 -1
- package/dist/components/agent-tools/tool-approval-dialog/tool-approval-dialog.d.ts +0 -2
- package/dist/components/agent-tools/tool-approval-dialog/tool-approval-dialog.js +0 -1
- package/dist/components/agent-tools/tool-call-block/tool-call-block.d.ts +0 -2
- package/dist/components/agent-tools/tool-call-block/tool-call-block.js +0 -1
- package/dist/components/agent-tools/tool-call-chip/tool-call-chip.d.ts +0 -2
- package/dist/components/agent-tools/tool-call-chip/tool-call-chip.js +0 -1
- package/dist/components/agent-tools/tool-param-form/tool-param-form.d.ts +0 -2
- package/dist/components/agent-tools/tool-param-form/tool-param-form.js +0 -1
- package/dist/components/agent-tools/tool-result-dialog/tool-result-dialog.d.ts +0 -2
- package/dist/components/agent-tools/tool-result-dialog/tool-result-dialog.js +0 -1
- package/dist/components/agent-tools/tool-result-view/tool-result-view.d.ts +0 -2
- package/dist/components/agent-tools/tool-result-view/tool-result-view.js +0 -1
- package/dist/components/agent-tools/tool-result-view/tool-result-view.styles.js +0 -1
- package/dist/components/agent-tools/tool-select-dialog/tool-select-dialog.d.ts +0 -2
- package/dist/components/agent-tools/tool-select-dialog/tool-select-dialog.js +0 -1
- package/dist/components/agent-tools/tool-timeline/tool-timeline.d.ts +0 -2
- package/dist/components/agent-tools/tool-timeline/tool-timeline.js +0 -1
- package/dist/components/agent-tools/tool-timeline/tool-timeline.styles.js +0 -1
- package/dist/components/agent-tools/trace-tree/trace-tree.d.ts +0 -2
- package/dist/components/agent-tools/trace-tree/trace-tree.js +0 -1
- package/dist/components/charts/chart/bar-chart.d.ts +0 -2
- package/dist/components/charts/chart/bar-chart.js +0 -1
- package/dist/components/charts/chart/box-plot.d.ts +0 -2
- package/dist/components/charts/chart/box-plot.js +0 -1
- package/dist/components/charts/chart/bubble-chart.d.ts +0 -2
- package/dist/components/charts/chart/bubble-chart.js +0 -1
- package/dist/components/charts/chart/chart-number-format.js +0 -1
- package/dist/components/charts/chart/chart.d.ts +0 -2
- package/dist/components/charts/chart/chart.js +0 -1
- package/dist/components/charts/chart/doughnut-chart.d.ts +0 -2
- package/dist/components/charts/chart/doughnut-chart.js +0 -1
- package/dist/components/charts/chart/histogram.d.ts +0 -2
- package/dist/components/charts/chart/histogram.js +0 -1
- package/dist/components/charts/chart/line-chart.d.ts +0 -2
- package/dist/components/charts/chart/line-chart.js +0 -1
- package/dist/components/charts/chart/lite-chart.d.ts +0 -2
- package/dist/components/charts/chart/lite-chart.js +0 -1
- package/dist/components/charts/chart/pie-chart.d.ts +0 -2
- package/dist/components/charts/chart/pie-chart.js +0 -1
- package/dist/components/charts/chart/polar-area-chart.d.ts +0 -2
- package/dist/components/charts/chart/polar-area-chart.js +0 -1
- package/dist/components/charts/chart/radar-chart.d.ts +0 -2
- package/dist/components/charts/chart/radar-chart.js +0 -1
- package/dist/components/charts/chart/scatter-chart.d.ts +0 -2
- package/dist/components/charts/chart/scatter-chart.js +0 -1
- package/dist/components/charts/chart-3d/chart-3d.d.ts +0 -1
- package/dist/components/charts/chart-3d/chart-3d.js +0 -1
- package/dist/components/conversation/agent-workspace/agent-workspace.d.ts +0 -2
- package/dist/components/conversation/agent-workspace/agent-workspace.js +0 -1
- package/dist/components/conversation/audio-visualizer/audio-visualizer.d.ts +0 -2
- package/dist/components/conversation/audio-visualizer/audio-visualizer.js +0 -1
- package/dist/components/conversation/audio-visualizer/audio-visualizer.styles.js +0 -1
- package/dist/components/conversation/branch-picker/branch-picker.d.ts +0 -2
- package/dist/components/conversation/branch-picker/branch-picker.js +0 -1
- package/dist/components/conversation/chat-composer/chat-composer-status.js +0 -1
- package/dist/components/conversation/chat-composer/chat-composer.d.ts +0 -2
- package/dist/components/conversation/chat-composer/chat-composer.js +0 -1
- package/dist/components/conversation/chat-message/chat-message.d.ts +0 -2
- package/dist/components/conversation/chat-message/chat-message.js +0 -1
- package/dist/components/conversation/chat-viewport/chat-viewport.d.ts +0 -2
- package/dist/components/conversation/chat-viewport/chat-viewport.js +0 -1
- package/dist/components/conversation/checkpoint/checkpoint.d.ts +0 -2
- package/dist/components/conversation/checkpoint/checkpoint.js +0 -1
- package/dist/components/conversation/code-block/code-block-core.d.ts +0 -2
- package/dist/components/conversation/code-block/code-block-core.js +0 -1
- package/dist/components/conversation/code-block/code-block.d.ts +0 -2
- package/dist/components/conversation/code-block/code-block.js +0 -1
- package/dist/components/conversation/code-block/shiki-dark-theme.js +0 -1
- package/dist/components/conversation/conversation-item/conversation-item.d.ts +0 -2
- package/dist/components/conversation/conversation-item/conversation-item.js +0 -1
- package/dist/components/conversation/generation-metrics/generation-metrics.d.ts +0 -2
- package/dist/components/conversation/generation-metrics/generation-metrics.js +0 -1
- package/dist/components/conversation/handoff-divider/handoff-divider.d.ts +0 -2
- package/dist/components/conversation/handoff-divider/handoff-divider.js +0 -1
- package/dist/components/conversation/markdown/markdown-core.d.ts +0 -2
- package/dist/components/conversation/markdown/markdown-core.js +0 -1
- package/dist/components/conversation/markdown/markdown.d.ts +0 -2
- package/dist/components/conversation/markdown/markdown.js +0 -1
- package/dist/components/conversation/message-actions/message-actions.d.ts +0 -2
- package/dist/components/conversation/message-actions/message-actions.js +0 -1
- package/dist/components/conversation/message-feedback/message-feedback.d.ts +0 -2
- package/dist/components/conversation/message-feedback/message-feedback.js +0 -1
- package/dist/components/conversation/message-parts/message-parts.d.ts +0 -2
- package/dist/components/conversation/message-parts/message-parts.js +0 -1
- package/dist/components/conversation/model-select/model-select.d.ts +0 -2
- package/dist/components/conversation/model-select/model-select.js +0 -1
- package/dist/components/conversation/model-settings-panel/model-settings-panel.d.ts +0 -2
- package/dist/components/conversation/model-settings-panel/model-settings-panel.js +0 -1
- package/dist/components/conversation/model-settings-panel/model-settings-panel.styles.js +0 -1
- package/dist/components/conversation/prompt-input/prompt-input.d.ts +0 -2
- package/dist/components/conversation/prompt-input/prompt-input.js +0 -1
- package/dist/components/conversation/prompt-queue/prompt-queue.d.ts +0 -2
- package/dist/components/conversation/prompt-queue/prompt-queue.js +0 -1
- package/dist/components/conversation/push-to-talk/push-to-talk.d.ts +0 -2
- package/dist/components/conversation/push-to-talk/push-to-talk.js +0 -1
- package/dist/components/conversation/realtime-session/realtime-session.d.ts +0 -2
- package/dist/components/conversation/realtime-session/realtime-session.js +0 -1
- package/dist/components/conversation/selection-toolbar/selection-toolbar.d.ts +0 -2
- package/dist/components/conversation/selection-toolbar/selection-toolbar.js +0 -1
- package/dist/components/conversation/stream-status/stream-status.d.ts +0 -2
- package/dist/components/conversation/stream-status/stream-status.js +0 -1
- package/dist/components/conversation/stream-status/stream-status.styles.js +0 -1
- package/dist/components/conversation/streaming-text/streaming-text-core.d.ts +0 -2
- package/dist/components/conversation/streaming-text/streaming-text-core.js +0 -1
- package/dist/components/conversation/streaming-text/streaming-text.d.ts +0 -2
- package/dist/components/conversation/streaming-text/streaming-text.js +0 -1
- package/dist/components/conversation/suggestion-chips/suggestion-chips.d.ts +0 -2
- package/dist/components/conversation/suggestion-chips/suggestion-chips.js +0 -1
- package/dist/components/conversation/thread-list/thread-list.d.ts +0 -2
- package/dist/components/conversation/thread-list/thread-list.js +0 -1
- package/dist/components/conversation/transcript-feed/transcript-feed.d.ts +0 -2
- package/dist/components/conversation/transcript-feed/transcript-feed.js +0 -1
- package/dist/components/conversation/typing-indicator/typing-indicator.d.ts +0 -2
- package/dist/components/conversation/typing-indicator/typing-indicator.js +0 -1
- package/dist/components/conversation/typing-indicator/typing-indicator.styles.js +0 -1
- package/dist/components/conversation/usage-badge/usage-badge.d.ts +0 -2
- package/dist/components/conversation/usage-badge/usage-badge.js +0 -1
- package/dist/components/conversation/voice-picker/voice-picker.d.ts +0 -2
- package/dist/components/conversation/voice-picker/voice-picker.js +0 -1
- package/dist/components/conversation/widget-renderer/widget-renderer.d.ts +0 -2
- package/dist/components/conversation/widget-renderer/widget-renderer.js +0 -1
- package/dist/components/conversation/widget-renderer/widget-renderer.styles.js +0 -1
- package/dist/components/data/calendar/calendar.d.ts +0 -2
- package/dist/components/data/calendar/calendar.js +0 -1
- package/dist/components/data/condition-builder/condition-builder.d.ts +0 -2
- package/dist/components/data/condition-builder/condition-builder.js +0 -1
- package/dist/components/data/context-meter/context-meter.d.ts +0 -2
- package/dist/components/data/context-meter/context-meter.js +0 -1
- package/dist/components/data/data-grid/data-grid.d.ts +0 -2
- package/dist/components/data/data-grid/data-grid.js +0 -1
- package/dist/components/data/document-library/document-library.d.ts +0 -2
- package/dist/components/data/document-library/document-library.js +0 -1
- package/dist/components/data/env-list/env-list.d.ts +0 -2
- package/dist/components/data/env-list/env-list.js +0 -1
- package/dist/components/data/file-tree/file-tree.d.ts +0 -3
- package/dist/components/data/file-tree/file-tree.js +0 -1
- package/dist/components/data/file-tree/file-tree.styles.js +0 -1
- package/dist/components/data/flow-canvas/flow-canvas.d.ts +0 -2
- package/dist/components/data/flow-canvas/flow-canvas.js +0 -1
- package/dist/components/data/flow-controls/flow-controls.d.ts +0 -2
- package/dist/components/data/flow-controls/flow-controls.js +0 -1
- package/dist/components/data/flow-minimap/flow-minimap.d.ts +0 -2
- package/dist/components/data/flow-minimap/flow-minimap.js +0 -1
- package/dist/components/data/flow-node/flow-node.d.ts +0 -2
- package/dist/components/data/flow-node/flow-node.js +0 -1
- package/dist/components/data/flow-run-status/flow-run-status.d.ts +0 -2
- package/dist/components/data/flow-run-status/flow-run-status.js +0 -1
- package/dist/components/data/funnel/funnel.d.ts +0 -2
- package/dist/components/data/funnel/funnel.js +0 -1
- package/dist/components/data/funnel/funnel.styles.js +0 -1
- package/dist/components/data/gauge/gauge.d.ts +0 -2
- package/dist/components/data/gauge/gauge.js +0 -1
- package/dist/components/data/gauge/gauge.styles.js +0 -1
- package/dist/components/data/graph-query-builder/graph-query-builder.d.ts +0 -2
- package/dist/components/data/graph-query-builder/graph-query-builder.js +0 -1
- package/dist/components/data/heatmap/heatmap.d.ts +0 -2
- package/dist/components/data/heatmap/heatmap.js +0 -1
- package/dist/components/data/pagination/pagination.d.ts +0 -2
- package/dist/components/data/pagination/pagination.js +0 -1
- package/dist/components/data/sequence-strip/sequence-strip.d.ts +0 -2
- package/dist/components/data/sequence-strip/sequence-strip.js +0 -1
- package/dist/components/data/sparkline/sparkline.d.ts +0 -2
- package/dist/components/data/sparkline/sparkline.js +0 -1
- package/dist/components/data/sparkline/sparkline.styles.js +0 -1
- package/dist/components/data/stat/stat.d.ts +0 -2
- package/dist/components/data/stat/stat.js +0 -1
- package/dist/components/data/table/table.d.ts +0 -2
- package/dist/components/data/table/table.js +0 -1
- package/dist/components/data/timeline/timeline-item.d.ts +0 -2
- package/dist/components/data/timeline/timeline-item.js +0 -1
- package/dist/components/data/timeline/timeline.d.ts +0 -2
- package/dist/components/data/timeline/timeline.js +0 -1
- package/dist/components/data/tree/tree-item.d.ts +0 -2
- package/dist/components/data/tree/tree-item.js +0 -1
- package/dist/components/data/tree/tree.d.ts +0 -3
- package/dist/components/data/tree/tree.js +0 -1
- package/dist/components/data/tree/tree.styles.js +0 -1
- package/dist/components/data/word-cloud/word-cloud.d.ts +0 -2
- package/dist/components/data/word-cloud/word-cloud.js +0 -1
- package/dist/components/forms/button/button.d.ts +0 -2
- package/dist/components/forms/button/button.js +0 -1
- package/dist/components/forms/checkbox/checkbox.d.ts +0 -2
- package/dist/components/forms/checkbox/checkbox.js +0 -1
- package/dist/components/forms/checkbox-group/checkbox-group.d.ts +0 -2
- package/dist/components/forms/checkbox-group/checkbox-group.js +0 -1
- package/dist/components/forms/code-editor/code-editor.d.ts +0 -2
- package/dist/components/forms/code-editor/code-editor.js +0 -1
- package/dist/components/forms/color-picker/color-picker.d.ts +0 -2
- package/dist/components/forms/color-picker/color-picker.js +0 -1
- package/dist/components/forms/combobox/combobox.d.ts +0 -2
- package/dist/components/forms/combobox/combobox.js +0 -1
- package/dist/components/forms/combobox/option.d.ts +0 -2
- package/dist/components/forms/combobox/option.js +0 -1
- package/dist/components/forms/country-picker/country-picker.d.ts +0 -1
- package/dist/components/forms/country-picker/country-picker.js +0 -1
- package/dist/components/forms/currency-picker/currency-picker.d.ts +0 -1
- package/dist/components/forms/currency-picker/currency-picker.js +0 -1
- package/dist/components/forms/date-picker/date-input.d.ts +0 -2
- package/dist/components/forms/date-picker/date-input.js +0 -1
- package/dist/components/forms/date-picker/date-picker.d.ts +0 -2
- package/dist/components/forms/date-picker/date-picker.js +0 -1
- package/dist/components/forms/emoji-picker/emoji-picker.d.ts +0 -2
- package/dist/components/forms/emoji-picker/emoji-picker.js +0 -1
- package/dist/components/forms/icon-button/icon-button.d.ts +0 -2
- package/dist/components/forms/icon-button/icon-button.js +0 -1
- package/dist/components/forms/input/input.d.ts +0 -2
- package/dist/components/forms/input/input.js +0 -1
- package/dist/components/forms/input/native-time-input.d.ts +0 -2
- package/dist/components/forms/input/native-time-input.js +0 -1
- package/dist/components/forms/input/number-input.d.ts +0 -2
- package/dist/components/forms/input/number-input.js +0 -1
- package/dist/components/forms/input/time-input.d.ts +0 -2
- package/dist/components/forms/input/time-input.js +0 -1
- package/dist/components/forms/locale-picker/locale-picker.d.ts +0 -2
- package/dist/components/forms/locale-picker/locale-picker.js +0 -1
- package/dist/components/forms/otp-input/otp-input.d.ts +0 -2
- package/dist/components/forms/otp-input/otp-input.js +0 -1
- package/dist/components/forms/phone-input/phone-input.d.ts +0 -2
- package/dist/components/forms/phone-input/phone-input.js +0 -1
- package/dist/components/forms/radio/radio-button.d.ts +0 -2
- package/dist/components/forms/radio/radio-button.js +0 -1
- package/dist/components/forms/radio/radio-group.d.ts +0 -2
- package/dist/components/forms/radio/radio-group.js +0 -1
- package/dist/components/forms/radio/radio.d.ts +0 -2
- package/dist/components/forms/radio/radio.js +0 -1
- package/dist/components/forms/rubric-form/rubric-form.d.ts +0 -2
- package/dist/components/forms/rubric-form/rubric-form.js +0 -1
- package/dist/components/forms/select/select.d.ts +0 -2
- package/dist/components/forms/select/select.js +0 -1
- package/dist/components/forms/signature-pad/signature-pad.d.ts +0 -1
- package/dist/components/forms/signature-pad/signature-pad.js +0 -1
- package/dist/components/forms/slider/slider.d.ts +0 -2
- package/dist/components/forms/slider/slider.js +0 -1
- package/dist/components/forms/swatch-picker/swatch-picker.d.ts +0 -2
- package/dist/components/forms/swatch-picker/swatch-picker.js +0 -1
- package/dist/components/forms/switch/switch.d.ts +0 -2
- package/dist/components/forms/switch/switch.js +0 -1
- package/dist/components/forms/textarea/textarea.d.ts +0 -2
- package/dist/components/forms/textarea/textarea.js +0 -1
- package/dist/components/forms/time-range/time-range.d.ts +0 -2
- package/dist/components/forms/time-range/time-range.js +0 -1
- package/dist/components/forms/time-zone-picker/time-zone-picker.d.ts +0 -1
- package/dist/components/forms/time-zone-picker/time-zone-picker.js +0 -1
- package/dist/components/forms/toggle/toggle.d.ts +0 -2
- package/dist/components/forms/toggle/toggle.js +0 -1
- package/dist/components/forms/toggle-group/toggle-group.d.ts +0 -2
- package/dist/components/forms/toggle-group/toggle-group.js +0 -1
- package/dist/components/forms/toggle-group/toggle-group.styles.js +0 -1
- package/dist/components/forms/token-input/token-input.d.ts +0 -2
- package/dist/components/forms/token-input/token-input.js +0 -1
- package/dist/components/forms/unit-picker/unit-picker.d.ts +0 -1
- package/dist/components/forms/unit-picker/unit-picker.js +0 -1
- package/dist/components/layout/app-rail/app-rail-item.d.ts +0 -2
- package/dist/components/layout/app-rail/app-rail-item.js +0 -1
- package/dist/components/layout/app-rail/app-rail.d.ts +0 -2
- package/dist/components/layout/app-rail/app-rail.js +0 -1
- package/dist/components/layout/app-rail-group/app-rail-group.d.ts +0 -2
- package/dist/components/layout/app-rail-group/app-rail-group.js +0 -1
- package/dist/components/layout/breadcrumb/breadcrumb-item.d.ts +0 -2
- package/dist/components/layout/breadcrumb/breadcrumb-item.js +0 -1
- package/dist/components/layout/breadcrumb/breadcrumb.d.ts +0 -2
- package/dist/components/layout/breadcrumb/breadcrumb.js +0 -1
- package/dist/components/layout/button-group/button-group.d.ts +0 -2
- package/dist/components/layout/button-group/button-group.js +0 -1
- package/dist/components/layout/button-group/button-group.styles.js +0 -1
- package/dist/components/layout/card/card.d.ts +0 -2
- package/dist/components/layout/card/card.js +0 -1
- package/dist/components/layout/carousel/carousel-item.d.ts +0 -2
- package/dist/components/layout/carousel/carousel-item.js +0 -1
- package/dist/components/layout/carousel/carousel-item.styles.js +0 -1
- package/dist/components/layout/carousel/carousel.d.ts +0 -1
- package/dist/components/layout/carousel/carousel.js +0 -1
- package/dist/components/layout/command-palette/command-palette.d.ts +0 -2
- package/dist/components/layout/command-palette/command-palette.js +0 -1
- package/dist/components/layout/control-group/control-group.d.ts +0 -2
- package/dist/components/layout/control-group/control-group.js +0 -1
- package/dist/components/layout/control-group/control-group.styles.js +0 -1
- package/dist/components/layout/dashboard-grid/dashboard-grid.d.ts +0 -2
- package/dist/components/layout/dashboard-grid/dashboard-grid.js +0 -1
- package/dist/components/layout/details/accordion-item.d.ts +0 -2
- package/dist/components/layout/details/accordion-item.js +0 -1
- package/dist/components/layout/details/accordion.d.ts +0 -2
- package/dist/components/layout/details/accordion.js +0 -1
- package/dist/components/layout/details/accordion.styles.js +0 -1
- package/dist/components/layout/details/details.d.ts +0 -2
- package/dist/components/layout/details/details.js +0 -1
- package/dist/components/layout/dock-panel/dock-panel.d.ts +0 -2
- package/dist/components/layout/dock-panel/dock-panel.js +0 -1
- package/dist/components/layout/drilldown-panel/drilldown-panel.d.ts +0 -2
- package/dist/components/layout/drilldown-panel/drilldown-panel.js +0 -1
- package/dist/components/layout/filter-bar/filter-bar.d.ts +0 -2
- package/dist/components/layout/filter-bar/filter-bar.js +0 -1
- package/dist/components/layout/menu/dropdown-item.d.ts +0 -2
- package/dist/components/layout/menu/dropdown-item.js +0 -1
- package/dist/components/layout/menu/menu-item.d.ts +0 -2
- package/dist/components/layout/menu/menu-item.js +0 -1
- package/dist/components/layout/menu/menu-label.d.ts +0 -2
- package/dist/components/layout/menu/menu-label.js +0 -1
- package/dist/components/layout/menu/menu-label.styles.js +0 -1
- package/dist/components/layout/menu/menu.d.ts +0 -2
- package/dist/components/layout/menu/menu.js +0 -1
- package/dist/components/layout/menubar/menubar-item.d.ts +0 -2
- package/dist/components/layout/menubar/menubar-item.js +0 -1
- package/dist/components/layout/menubar/menubar.d.ts +0 -2
- package/dist/components/layout/menubar/menubar.js +0 -1
- package/dist/components/layout/multi-split/multi-split.d.ts +0 -2
- package/dist/components/layout/multi-split/multi-split.js +0 -1
- package/dist/components/layout/navigation-menu/navigation-menu.d.ts +0 -2
- package/dist/components/layout/navigation-menu/navigation-menu.js +0 -1
- package/dist/components/layout/navigation-menu-item/navigation-menu-item.d.ts +0 -2
- package/dist/components/layout/navigation-menu-item/navigation-menu-item.js +0 -1
- package/dist/components/layout/page/page.d.ts +0 -2
- package/dist/components/layout/page/page.js +0 -1
- package/dist/components/layout/reorder-list/reorder-item.d.ts +0 -2
- package/dist/components/layout/reorder-list/reorder-item.js +0 -1
- package/dist/components/layout/reorder-list/reorder-list.d.ts +0 -2
- package/dist/components/layout/reorder-list/reorder-list.js +0 -1
- package/dist/components/layout/responsive-panel/responsive-panel.d.ts +0 -2
- package/dist/components/layout/responsive-panel/responsive-panel.js +0 -1
- package/dist/components/layout/scroller/scroller.d.ts +0 -2
- package/dist/components/layout/scroller/scroller.js +0 -1
- package/dist/components/layout/segmented/segmented.d.ts +0 -2
- package/dist/components/layout/segmented/segmented.js +0 -1
- package/dist/components/layout/split-panel/split-panel.d.ts +0 -2
- package/dist/components/layout/split-panel/split-panel.js +0 -1
- package/dist/components/layout/stepper/stepper.d.ts +0 -2
- package/dist/components/layout/stepper/stepper.js +0 -1
- package/dist/components/layout/tab-group/tab-group.d.ts +0 -2
- package/dist/components/layout/tab-group/tab-group.js +0 -1
- package/dist/components/layout/tab-group/tab-panel.d.ts +0 -2
- package/dist/components/layout/tab-group/tab-panel.js +0 -1
- package/dist/components/layout/tab-group/tab-panel.styles.js +0 -1
- package/dist/components/layout/tab-group/tab.d.ts +0 -2
- package/dist/components/layout/tab-group/tab.js +0 -1
- package/dist/components/layout/virtual-list/virtual-list.d.ts +0 -2
- package/dist/components/layout/virtual-list/virtual-list.js +0 -1
- package/dist/components/layout/widget/widget.d.ts +0 -2
- package/dist/components/layout/widget/widget.js +0 -1
- package/dist/components/media/animated-image/animated-image.d.ts +0 -2
- package/dist/components/media/animated-image/animated-image.js +0 -1
- package/dist/components/media/animation/animation.d.ts +0 -2
- package/dist/components/media/animation/animation.js +0 -1
- package/dist/components/media/animation/animation.styles.js +0 -1
- package/dist/components/media/attachment-chip/attachment-chip.d.ts +0 -2
- package/dist/components/media/attachment-chip/attachment-chip.js +0 -1
- package/dist/components/media/attachment-trigger/attachment-trigger.d.ts +0 -2
- package/dist/components/media/attachment-trigger/attachment-trigger.js +0 -1
- package/dist/components/media/av-player/av-player.d.ts +0 -2
- package/dist/components/media/av-player/av-player.js +0 -9
- package/dist/components/media/avatar/avatar.d.ts +0 -2
- package/dist/components/media/avatar/avatar.js +0 -1
- package/dist/components/media/avatar/avatar.styles.js +0 -1
- package/dist/components/media/avatar-group/avatar-group.d.ts +0 -2
- package/dist/components/media/avatar-group/avatar-group.js +0 -1
- package/dist/components/media/drop-zone/drop-zone.d.ts +0 -2
- package/dist/components/media/drop-zone/drop-zone.js +0 -1
- package/dist/components/media/file-icon/file-icon.d.ts +0 -2
- package/dist/components/media/file-icon/file-icon.js +0 -1
- package/dist/components/media/file-input/accept.js +0 -1
- package/dist/components/media/file-input/file-input.d.ts +0 -2
- package/dist/components/media/file-input/file-input.js +0 -1
- package/dist/components/media/file-input/file-intake.d.ts +0 -19
- package/dist/components/media/file-input/file-intake.js +0 -1
- package/dist/components/media/flag/flag.d.ts +0 -2
- package/dist/components/media/flag/flag.js +0 -1
- package/dist/components/media/flag/flag.styles.js +0 -1
- package/dist/components/media/image-comparer/image-comparer.d.ts +0 -1
- package/dist/components/media/image-comparer/image-comparer.js +0 -1
- package/dist/components/media/image-viewer/image-viewer.d.ts +0 -2
- package/dist/components/media/image-viewer/image-viewer.js +0 -7
- package/dist/components/media/lightbox/lightbox.d.ts +0 -2
- package/dist/components/media/lightbox/lightbox.js +0 -1
- package/dist/components/media/map/map-anchor.d.ts +0 -1
- package/dist/components/media/map/map-anchor.js +0 -1
- package/dist/components/media/map/map-feature-loader-core.js +0 -1
- package/dist/components/media/map/map-scene-completion-adapter.js +0 -1
- package/dist/components/media/map/map-scene-completion-camera.js +0 -1
- package/dist/components/media/map/map.d.ts +0 -2
- package/dist/components/media/map/map.js +0 -1
- package/dist/components/media/media-card/media-card.d.ts +0 -2
- package/dist/components/media/media-card/media-card.js +0 -1
- package/dist/components/media/pan-zoom/pan-zoom.d.ts +0 -1
- package/dist/components/media/pan-zoom/pan-zoom.js +0 -1
- package/dist/components/media/qr-code/qr-code.d.ts +0 -2
- package/dist/components/media/qr-code/qr-code.js +0 -1
- package/dist/components/media/qr-code/qr-code.styles.js +0 -1
- package/dist/components/media/sequence-playback/sequence-playback.d.ts +0 -2
- package/dist/components/media/sequence-playback/sequence-playback.js +0 -1
- package/dist/components/media/video/video.d.ts +0 -2
- package/dist/components/media/video/video.js +0 -1
- package/dist/components/media/video-playlist/video-playlist.d.ts +0 -2
- package/dist/components/media/video-playlist/video-playlist.js +0 -1
- package/dist/components/media/zoomable-frame/zoomable-frame.d.ts +0 -1
- package/dist/components/media/zoomable-frame/zoomable-frame.js +0 -1
- package/dist/components/overlays/alert/alert.d.ts +0 -2
- package/dist/components/overlays/alert/alert.js +0 -1
- package/dist/components/overlays/badge/badge.d.ts +0 -2
- package/dist/components/overlays/badge/badge.js +0 -1
- package/dist/components/overlays/badge/tag.d.ts +0 -2
- package/dist/components/overlays/badge/tag.js +0 -1
- package/dist/components/overlays/callout/callout.d.ts +0 -2
- package/dist/components/overlays/callout/callout.js +0 -1
- package/dist/components/overlays/chip/chip-group.d.ts +0 -2
- package/dist/components/overlays/chip/chip-group.js +0 -1
- package/dist/components/overlays/chip/chip.d.ts +0 -2
- package/dist/components/overlays/chip/chip.js +0 -1
- package/dist/components/overlays/context-menu/context-menu.d.ts +0 -2
- package/dist/components/overlays/context-menu/context-menu.js +0 -1
- package/dist/components/overlays/context-menu/context-menu.styles.js +0 -1
- package/dist/components/overlays/dialog/dialog.d.ts +0 -2
- package/dist/components/overlays/dialog/dialog.js +0 -1
- package/dist/components/overlays/drawer/drawer.d.ts +0 -2
- package/dist/components/overlays/drawer/drawer.js +0 -1
- package/dist/components/overlays/drawer/drawer.styles.js +0 -1
- package/dist/components/overlays/empty/empty.d.ts +0 -2
- package/dist/components/overlays/empty/empty.js +0 -1
- package/dist/components/overlays/empty/empty.styles.js +0 -1
- package/dist/components/overlays/kbd/kbd.d.ts +0 -2
- package/dist/components/overlays/kbd/kbd.js +0 -1
- package/dist/components/overlays/kbd/kbd.styles.js +0 -1
- package/dist/components/overlays/overlay/dropdown.d.ts +0 -2
- package/dist/components/overlays/overlay/dropdown.js +0 -1
- package/dist/components/overlays/overlay/dropdown.styles.js +0 -1
- package/dist/components/overlays/overlay/overlay-shared.d.ts +0 -63
- package/dist/components/overlays/overlay/overlay-shared.js +0 -1
- package/dist/components/overlays/overlay/popover.d.ts +0 -2
- package/dist/components/overlays/overlay/popover.js +0 -1
- package/dist/components/overlays/overlay/tooltip.d.ts +0 -2
- package/dist/components/overlays/overlay/tooltip.js +0 -1
- package/dist/components/overlays/popup/popup.d.ts +0 -2
- package/dist/components/overlays/popup/popup.js +0 -1
- package/dist/components/overlays/popup/popup.styles.js +0 -1
- package/dist/components/overlays/progress/progress-bar.d.ts +0 -2
- package/dist/components/overlays/progress/progress-bar.js +0 -1
- package/dist/components/overlays/progress/progress-ring.d.ts +0 -2
- package/dist/components/overlays/progress/progress-ring.js +0 -1
- package/dist/components/overlays/rating/rating.d.ts +0 -2
- package/dist/components/overlays/rating/rating.js +0 -1
- package/dist/components/overlays/skeleton/skeleton.d.ts +0 -2
- package/dist/components/overlays/skeleton/skeleton.js +0 -1
- package/dist/components/overlays/skeleton/skeleton.styles.js +0 -1
- package/dist/components/overlays/spinner/spinner.d.ts +0 -2
- package/dist/components/overlays/spinner/spinner.js +0 -1
- package/dist/components/overlays/toast/toast-item.d.ts +0 -2
- package/dist/components/overlays/toast/toast-item.js +0 -1
- package/dist/components/overlays/toast/toast.d.ts +0 -2
- package/dist/components/overlays/toast/toast.js +0 -1
- package/dist/components/overlays/toast/toast.styles.js +0 -1
- package/dist/components/retrieval/chunk-inspector/chunk-inspector.d.ts +0 -2
- package/dist/components/retrieval/chunk-inspector/chunk-inspector.js +0 -1
- package/dist/components/retrieval/citation-badge/citation-badge.d.ts +0 -2
- package/dist/components/retrieval/citation-badge/citation-badge.js +0 -1
- package/dist/components/retrieval/claim-evidence/claim-evidence.d.ts +0 -2
- package/dist/components/retrieval/claim-evidence/claim-evidence.js +0 -1
- package/dist/components/retrieval/community-card/community-card.d.ts +0 -2
- package/dist/components/retrieval/community-card/community-card.js +0 -1
- package/dist/components/retrieval/embedding-explorer/embedding-explorer.d.ts +0 -2
- package/dist/components/retrieval/embedding-explorer/embedding-explorer.js +0 -1
- package/dist/components/retrieval/entity-card/entity-card.d.ts +0 -2
- package/dist/components/retrieval/entity-card/entity-card.js +0 -1
- package/dist/components/retrieval/entity-chip/entity-chip.d.ts +0 -2
- package/dist/components/retrieval/entity-chip/entity-chip.js +0 -1
- package/dist/components/retrieval/entity-dossier/entity-dossier.d.ts +0 -2
- package/dist/components/retrieval/entity-dossier/entity-dossier.js +0 -1
- package/dist/components/retrieval/entity-dossier/entity-dossier.styles.js +0 -1
- package/dist/components/retrieval/graph/graph.d.ts +0 -2
- package/dist/components/retrieval/graph/graph.js +0 -1
- package/dist/components/retrieval/graph-legend/graph-legend.d.ts +0 -2
- package/dist/components/retrieval/graph-legend/graph-legend.js +0 -1
- package/dist/components/retrieval/grounding-summary/grounding-summary.d.ts +0 -2
- package/dist/components/retrieval/grounding-summary/grounding-summary.js +0 -1
- package/dist/components/retrieval/ingestion-queue/ingestion-queue.d.ts +0 -2
- package/dist/components/retrieval/ingestion-queue/ingestion-queue.js +0 -1
- package/dist/components/retrieval/knowledge-base/knowledge-base.d.ts +0 -2
- package/dist/components/retrieval/knowledge-base/knowledge-base.js +0 -1
- package/dist/components/retrieval/knowledge-base-admin/knowledge-base-admin.d.ts +0 -2
- package/dist/components/retrieval/knowledge-base-admin/knowledge-base-admin.js +0 -1
- package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.d.ts +0 -2
- package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.js +0 -1
- package/dist/components/retrieval/memory-panel/memory-panel.d.ts +0 -2
- package/dist/components/retrieval/memory-panel/memory-panel.js +0 -1
- package/dist/components/retrieval/mind-map/mind-map.d.ts +0 -3
- package/dist/components/retrieval/mind-map/mind-map.js +0 -1
- package/dist/components/retrieval/neighbor-list/neighbor-list.d.ts +0 -2
- package/dist/components/retrieval/neighbor-list/neighbor-list.js +0 -1
- package/dist/components/retrieval/node-palette/node-palette.d.ts +0 -2
- package/dist/components/retrieval/node-palette/node-palette.js +0 -1
- package/dist/components/retrieval/path-strip/path-strip.d.ts +0 -2
- package/dist/components/retrieval/path-strip/path-strip.js +0 -1
- package/dist/components/retrieval/provenance-panel/provenance-panel.d.ts +0 -2
- package/dist/components/retrieval/provenance-panel/provenance-panel.js +0 -1
- package/dist/components/retrieval/rag-answer/rag-answer.d.ts +0 -2
- package/dist/components/retrieval/rag-answer/rag-answer.js +0 -1
- package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.d.ts +0 -2
- package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.js +0 -1
- package/dist/components/retrieval/research-progress/research-progress.d.ts +0 -2
- package/dist/components/retrieval/research-progress/research-progress.js +0 -1
- package/dist/components/retrieval/retrieval-compare/retrieval-compare.d.ts +0 -2
- package/dist/components/retrieval/retrieval-compare/retrieval-compare.js +0 -1
- package/dist/components/retrieval/retrieval-results/retrieval-results.d.ts +0 -2
- package/dist/components/retrieval/retrieval-results/retrieval-results.js +0 -1
- package/dist/components/retrieval/retrieval-search/retrieval-search.d.ts +0 -2
- package/dist/components/retrieval/retrieval-search/retrieval-search.js +0 -1
- package/dist/components/retrieval/retrieval-trace/retrieval-trace.d.ts +0 -2
- package/dist/components/retrieval/retrieval-trace/retrieval-trace.js +0 -1
- package/dist/components/retrieval/source-card/source-card.d.ts +0 -2
- package/dist/components/retrieval/source-card/source-card.js +0 -1
- package/dist/components/retrieval/source-list/source-list.d.ts +0 -2
- package/dist/components/retrieval/source-list/source-list.js +0 -1
- package/dist/components/retrieval/source-picker/source-picker.d.ts +0 -2
- package/dist/components/retrieval/source-picker/source-picker.js +0 -1
- package/dist/components/utility/copy-button/copy-button.d.ts +0 -2
- package/dist/components/utility/copy-button/copy-button.js +0 -1
- package/dist/components/utility/diff-view/diff-view.d.ts +0 -2
- package/dist/components/utility/diff-view/diff-view.js +0 -1
- package/dist/components/utility/divider/divider.d.ts +0 -2
- package/dist/components/utility/divider/divider.js +0 -1
- package/dist/components/utility/divider/divider.styles.js +0 -1
- package/dist/components/utility/export-button/export-button.d.ts +0 -2
- package/dist/components/utility/export-button/export-button.js +0 -1
- package/dist/components/utility/format/format-bytes.d.ts +0 -2
- package/dist/components/utility/format/format-bytes.js +0 -1
- package/dist/components/utility/format/format-date.d.ts +0 -2
- package/dist/components/utility/format/format-date.js +0 -1
- package/dist/components/utility/format/format-number.d.ts +0 -2
- package/dist/components/utility/format/format-number.js +0 -1
- package/dist/components/utility/format/relative-time.d.ts +0 -2
- package/dist/components/utility/format/relative-time.js +0 -1
- package/dist/components/utility/icon/icon.d.ts +0 -2
- package/dist/components/utility/icon/icon.js +0 -1
- package/dist/components/utility/icon/icon.styles.js +0 -1
- package/dist/components/utility/intersection-observer/intersection-observer.d.ts +0 -2
- package/dist/components/utility/intersection-observer/intersection-observer.js +0 -1
- package/dist/components/utility/json-viewer/json-viewer.d.ts +0 -3
- package/dist/components/utility/json-viewer/json-viewer.js +0 -1
- package/dist/components/utility/known-date/known-date.d.ts +0 -2
- package/dist/components/utility/known-date/known-date.js +0 -1
- package/dist/components/utility/live-region/live-region.d.ts +0 -2
- package/dist/components/utility/live-region/live-region.js +0 -1
- package/dist/components/utility/live-region/live-region.styles.js +0 -1
- package/dist/components/utility/mention-popover/mention-popover.d.ts +0 -2
- package/dist/components/utility/mention-popover/mention-popover.js +0 -1
- package/dist/components/utility/mutation-observer/mutation-observer.d.ts +0 -2
- package/dist/components/utility/mutation-observer/mutation-observer.js +0 -1
- package/dist/components/utility/poll-status/poll-status.d.ts +0 -2
- package/dist/components/utility/poll-status/poll-status.js +0 -1
- package/dist/components/utility/random-content/random-content.d.ts +0 -2
- package/dist/components/utility/random-content/random-content.js +0 -1
- package/dist/components/utility/resize-observer/resize-observer.d.ts +0 -2
- package/dist/components/utility/resize-observer/resize-observer.js +0 -1
- package/dist/components/utility/tour/tour.d.ts +0 -2
- package/dist/components/utility/tour/tour.js +0 -1
- package/dist/components/utility/visually-hidden/visually-hidden.d.ts +0 -2
- package/dist/components/utility/visually-hidden/visually-hidden.js +0 -1
- package/dist/components/utility/visually-hidden/visually-hidden.styles.js +0 -1
- package/dist/components/viewers/archive-viewer/archive-viewer.d.ts +0 -2
- package/dist/components/viewers/archive-viewer/archive-viewer.js +0 -1
- package/dist/components/viewers/calendar-viewer/calendar-viewer.d.ts +0 -2
- package/dist/components/viewers/calendar-viewer/calendar-viewer.js +0 -1
- package/dist/components/viewers/calendar-viewer/calendar-viewer.styles.js +0 -1
- package/dist/components/viewers/contact-viewer/contact-viewer.d.ts +0 -2
- package/dist/components/viewers/contact-viewer/contact-viewer.js +0 -1
- package/dist/components/viewers/contact-viewer/contact-viewer.styles.js +0 -1
- package/dist/components/viewers/csv-viewer/csv-viewer.d.ts +0 -2
- package/dist/components/viewers/csv-viewer/csv-viewer.js +0 -6
- package/dist/components/viewers/dataset-viewer/dataset-viewer.d.ts +0 -2
- package/dist/components/viewers/dataset-viewer/dataset-viewer.js +0 -1
- package/dist/components/viewers/document-compare/document-compare.d.ts +0 -2
- package/dist/components/viewers/document-compare/document-compare.js +0 -1
- package/dist/components/viewers/document-preview/document-preview.d.ts +0 -2
- package/dist/components/viewers/document-preview/document-preview.js +0 -1
- package/dist/components/viewers/document-viewer/document-viewer.d.ts +0 -2
- package/dist/components/viewers/document-viewer/document-viewer.js +0 -1
- package/dist/components/viewers/docx-viewer/docx-viewer.d.ts +0 -2
- package/dist/components/viewers/docx-viewer/docx-viewer.js +0 -6
- package/dist/components/viewers/ebook-viewer/ebook-viewer.d.ts +0 -2
- package/dist/components/viewers/ebook-viewer/ebook-viewer.js +0 -1
- package/dist/components/viewers/ebook-viewer/ebook-viewer.styles.js +0 -1
- package/dist/components/viewers/email-viewer/email-viewer.d.ts +0 -2
- package/dist/components/viewers/email-viewer/email-viewer.js +0 -1
- package/dist/components/viewers/geojson-view/geojson-view.class.d.ts +0 -7
- package/dist/components/viewers/geojson-view/geojson-view.class.js +0 -1
- package/dist/components/viewers/geojson-view/geojson-viewer.d.ts +0 -2
- package/dist/components/viewers/geojson-view/geojson-viewer.js +0 -1
- package/dist/components/viewers/highlight-layer/highlight-layer.d.ts +0 -2
- package/dist/components/viewers/highlight-layer/highlight-layer.js +0 -1
- package/dist/components/viewers/html-viewer/html-viewer.d.ts +0 -2
- package/dist/components/viewers/html-viewer/html-viewer.js +0 -1
- package/dist/components/viewers/include/include.d.ts +0 -2
- package/dist/components/viewers/include/include.js +0 -1
- package/dist/components/viewers/include/include.styles.js +0 -1
- package/dist/components/viewers/model-viewer/model-viewer.d.ts +0 -1
- package/dist/components/viewers/model-viewer/model-viewer.js +0 -1
- package/dist/components/viewers/notebook-viewer/notebook-viewer.d.ts +0 -2
- package/dist/components/viewers/notebook-viewer/notebook-viewer.js +0 -6
- package/dist/components/viewers/page-rail/page-rail.d.ts +0 -2
- package/dist/components/viewers/page-rail/page-rail.js +0 -1
- package/dist/components/viewers/pdf-viewer/pdf-viewer.d.ts +0 -2
- package/dist/components/viewers/pdf-viewer/pdf-viewer.js +0 -6
- package/dist/components/viewers/pptx-viewer/pptx-viewer.d.ts +0 -2
- package/dist/components/viewers/pptx-viewer/pptx-viewer.js +0 -6
- package/dist/components/viewers/pptx-viewer/pptx-viewer.styles.js +0 -1
- package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer.d.ts +0 -2
- package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer.js +0 -6
- package/dist/components/viewers/svg-viewer/svg-viewer.d.ts +0 -2
- package/dist/components/viewers/svg-viewer/svg-viewer.js +0 -1
- package/dist/components/viewers/xml-viewer/xml-viewer.d.ts +0 -2
- package/dist/components/viewers/xml-viewer/xml-viewer.js +0 -6
- package/dist/internal/map-camera-follow-scene.js +0 -1
- package/dist/internal/map-scene-session.js +0 -1
- package/llms/shared/v23-to-v24-migration.md +0 -167
- /package/dist/{components/conversation/chat-composer → internal}/chat-composer-status.d.ts +0 -0
- /package/dist/{components/viewers/document-viewer/anchors.d.ts → internal/document-anchors.d.ts} +0 -0
- /package/dist/{components/viewers/document-viewer/anchors.js → internal/document-anchors.js} +0 -0
- /package/dist/{components/data/file-tree/file-tree-status.d.ts → internal/git-status.d.ts} +0 -0
- /package/dist/{components/data/file-tree/file-tree-status.js → internal/git-status.js} +0 -0
- /package/dist/{components/conversation/markdown → internal}/markdown-streaming-tail.js +0 -0
|
@@ -1,132 +1,50 @@
|
|
|
1
|
-
import{__decorate}from"tslib";import{matrixRectangle}from"./heatmap-matrix-source.js";import{HeatmapMatrixSourceController}from"./heatmap-matrix-source-controller.js";import{lyraLocaleCatalogVersion}from"../../../internal/localization-runtime.js";import{getOwnDataDescriptor}from"../../../internal/data-descriptors.js";import{collectionSupport,publicCollectionTruncation}from"../../../internal/collection-snapshot.js";import{html,nothing}from"lit";import{property,query,state}from"lit/decorators.js";import{guard}from"lit/directives/guard.js";import{styleMap}from"lit/directives/style-map.js";import{LyraElement}from"../../../internal/lyra-element.js";import{srOnly}from"../../../internal/a11y.js";import{syncAriaDescribedByElements}from"../../../internal/aria-reflection.js";import{finiteCount,finiteInteger,finiteNumber,finiteRange,minMax}from"../../../internal/numbers.js";import{getScratchCtx,resolveBoundedCanvasAllocation}from"../../../internal/canvas.js";import{resolveCanvasColor}from"../../../internal/canvas-color.js";import{resolveCssTokenLength}from"../../../internal/css-token-length.js";import{ThemeWatcher}from"../../../internal/theme-watcher.js";import{activeElementIn,shadowFocusTarget}from"../../../internal/active-element.js";import{linearAlpha,linearBucket,midpointAlpha,midpointBucket,sqrtStep}from"./heatmap-scale.js";import{styles}from"./heatmap.styles.js";import{resolveRgb,formatRgb}from"./heatmap-colors.js";import{hexToRgb,resolveRgb as resolveRgb2}from"./heatmap-colors.js";import{DEFAULT_BUCKET_COUNT,MAX_HEATMAP_CELLS,MAX_HEATMAP_DECORATIONS,MAX_ACCESSIBLE_HEATMAP_CELLS,normalizeBucketCount}from"./heatmap-limits.js";import{MAX_BUCKET_COUNT,MAX_HEATMAP_CELLS as MAX_HEATMAP_CELLS2,MAX_HEATMAP_DECORATIONS as MAX_HEATMAP_DECORATIONS2,MAX_ACCESSIBLE_HEATMAP_CELLS as MAX_ACCESSIBLE_HEATMAP_CELLS2,normalizeBucketCount as normalizeBucketCount2}from"./heatmap-limits.js";import{buildCalendarGrid,parseIsoDate,quartileBucket}from"./calendar-grid.js";import{accessibleMatrixCellRect,calendarCellAt as readCalendarCell,calendarCellRect,calendarDateAt as readCalendarDate,calendarValueAt as readCalendarValue,firstInteractiveCalendarCell as findFirstInteractiveCalendarCell,firstInteractiveMatrixCell as findFirstInteractiveMatrixCell,hitTestCalendar as hitTestCalendarGrid,hitTestMatrix as hitTestMatrixGrid,matrixCellRect,nextInteractiveCalendarCell as findNextInteractiveCalendarCell,nextInteractiveMatrixCell as findNextInteractiveMatrixCell}from"./heatmap-grid-navigation.js";import{getDateTimeFormat,getNumberFormat}from"../../../internal/intl-cache.js";import{sanitizeCssColor}from"../../../internal/safe-css.js";import{literalSetConverter}from"../../../internal/converters.js";import{HeatmapLabelCache}from"./heatmap-label-cache.js";import{devWarnOnce}from"../../../internal/dev-mode-attribute-warning.js";import{escapeCsvField}from"../../utility/export-button/csv.js";import{AnnouncementSinkController}from"../../../internal/announcer.js";import{LYRA_DEFAULT_heatmapCalendarCellLabel,LYRA_DEFAULT_heatmapCalendarLabel,LYRA_DEFAULT_heatmapDecorationLimit,LYRA_DEFAULT_heatmapDefaultColLabel,LYRA_DEFAULT_heatmapDefaultRowLabel,LYRA_DEFAULT_heatmapInputLimit,LYRA_DEFAULT_heatmapMatrixCellLabel,LYRA_DEFAULT_heatmapMatrixLabel,LYRA_DEFAULT_heatmapNoDataValue,LYRA_DEFAULT_heatmapProjectionLimit,LYRA_DEFAULT_heatmapSelectedCellLabel,LYRA_DEFAULT_heatmapSelectedCount,LYRA_DEFAULT_heatmapSourceError,LYRA_DEFAULT_heatmapSourceExactWindow,LYRA_DEFAULT_heatmapSourceKeyboardHelp,LYRA_DEFAULT_heatmapSourceMax,LYRA_DEFAULT_heatmapSourceMean,LYRA_DEFAULT_heatmapSourceMin,LYRA_DEFAULT_heatmapSourceRangeLabel,LYRA_DEFAULT_heatmapSourceSummary,LYRA_DEFAULT_heatmapValueLabel}from"../../../internal/default-strings/data.generated.js";import{LYRA_DEFAULT_loading,LYRA_DEFAULT_noData}from"../../../internal/default-strings/shared.generated.js";const PAD_LEFT=60,PAD_TOP=20,ROW_LABEL_INSET=4,MAX_ROW_LABEL_FRACTION=.4,MAX_COL_LABEL_HEIGHT=240,COL_LABEL_INSET=6,labelExtentConverter={fromAttribute:value=>{if(value===null)return;const trimmed=value.trim();if(trimmed.toLowerCase()==="auto")return"auto";const parsed=Number.parseFloat(trimmed);return Number.isFinite(parsed)&&parsed>=0?parsed:void 0},toAttribute:value=>value===void 0?null:String(value)},STICKY_LABELS=literalSetConverter(["none","rows","cols","both"],"none"),FALLBACK_NO_DATA_FILL="rgba(128,128,128,0.25)",FALLBACK_STICKY_LABEL_BG="#ffffff",RAMP_STEPS=7,FALLBACK_SCALE_LO="#cde2fb",FALLBACK_SCALE_HI="#0969da",FALLBACK_LABEL_FONT="10px system-ui, sans-serif",CAL_PAD_LEFT=28,CAL_WEEKDAY_LABEL_INSET=2,CAL_LABEL_H=16,CAL_CELL=11,CAL_GAP=2,DEFAULT_MATRIX_CELL_SIZE=22,MAX_MATRIX_ROW_HEIGHT=4096,DEFAULT_ACCESSIBLE_TARGET_SIZE_PX=40,FIT_MIN_CELL=4,RING_LINE_WIDTH=2,FALLBACK_FOCUS_RING_COLOR="#0969da",FALLBACK_ANNOTATION_COLOR="#cf222e",FALLBACK_SELECTED_COLOR="#1a7f37",SCOPED_COLOR=/var\(|currentcolor|light-dark\(/i,MAX_CANVAS_DIMENSION=16384,MAX_CANVAS_PIXELS=16777216,ARROW_KEYS=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),GRID_KEYS=new Set([...ARROW_KEYS,"Home","End"]),MS_PER_DAY=864e5,CAL_MONTH_LABEL_GAP=2;function isoDateAtOffset(firstWeekStart,dayOffset){return new Date(firstWeekStart.getTime()+dayOffset*MS_PER_DAY).toISOString().slice(0,10)}function legendStopsChanged(value,previous){if(Object.is(value,previous))return!1;if(!Array.isArray(value)||!Array.isArray(previous)||value.length!==previous.length)return!0;for(let index=0;index<value.length;index+=1){if(Object.hasOwn(value,index)!==Object.hasOwn(previous,index))return!0;const next=value[index],before=previous[index];if(!next||!before){if(!Object.is(next,before))return!0;continue}if(!Object.is(next.value,before.value)||!Object.is(next.color,before.color)||!Object.is(next.label,before.label)||!Object.is(next.partOfRamp,before.partOfRamp))return!0}return!1}const optionalCellSizeConverter={fromAttribute(value){if(value===null||value.trim()==="")return;const parsed=Number(value);return Number.isFinite(parsed)?parsed:void 0}},DEFAULT_MATRIX_DATA=Object.freeze({kind:"matrix",rowLabels:Object.freeze([]),colLabels:Object.freeze([]),values:Object.freeze([])});function normalizeCellSizeClamp(value){if(!(value==null||!Number.isFinite(value)))return finiteRange(value,FIT_MIN_CELL,FIT_MIN_CELL)}const bucketCountConverter={fromAttribute(value){return value===null?DEFAULT_BUCKET_COUNT:normalizeBucketCount(Number(value))}};function mixRgb(from,to,t){const clamped=Math.min(1,Math.max(0,t)),r=Math.round(from[0]+(to[0]-from[0])*clamped),g=Math.round(from[1]+(to[1]-from[1])*clamped),b=Math.round(from[2]+(to[2]-from[2])*clamped),a=from[3]+(to[3]-from[3])*clamped;return formatRgb([r,g,b,a])}const CALENDAR_SPACING_PROPERTIES=new Set(["cellGapX","cellGapY","cellRadius"]);class LyraHeatmap extends LyraElement{static{this.defaultStrings={...super.defaultStrings,heatmapCalendarCellLabel:LYRA_DEFAULT_heatmapCalendarCellLabel,heatmapCalendarLabel:LYRA_DEFAULT_heatmapCalendarLabel,heatmapDecorationLimit:LYRA_DEFAULT_heatmapDecorationLimit,heatmapDefaultColLabel:LYRA_DEFAULT_heatmapDefaultColLabel,heatmapDefaultRowLabel:LYRA_DEFAULT_heatmapDefaultRowLabel,heatmapInputLimit:LYRA_DEFAULT_heatmapInputLimit,heatmapMatrixCellLabel:LYRA_DEFAULT_heatmapMatrixCellLabel,heatmapMatrixLabel:LYRA_DEFAULT_heatmapMatrixLabel,heatmapNoDataValue:LYRA_DEFAULT_heatmapNoDataValue,heatmapProjectionLimit:LYRA_DEFAULT_heatmapProjectionLimit,heatmapSelectedCellLabel:LYRA_DEFAULT_heatmapSelectedCellLabel,heatmapSelectedCount:LYRA_DEFAULT_heatmapSelectedCount,heatmapSourceError:LYRA_DEFAULT_heatmapSourceError,heatmapSourceExactWindow:LYRA_DEFAULT_heatmapSourceExactWindow,heatmapSourceKeyboardHelp:LYRA_DEFAULT_heatmapSourceKeyboardHelp,heatmapSourceMax:LYRA_DEFAULT_heatmapSourceMax,heatmapSourceMean:LYRA_DEFAULT_heatmapSourceMean,heatmapSourceMin:LYRA_DEFAULT_heatmapSourceMin,heatmapSourceRangeLabel:LYRA_DEFAULT_heatmapSourceRangeLabel,heatmapSourceSummary:LYRA_DEFAULT_heatmapSourceSummary,heatmapValueLabel:LYRA_DEFAULT_heatmapValueLabel,loading:LYRA_DEFAULT_loading,noData:LYRA_DEFAULT_noData}}get matrixSource(){return this.sourceInput}set matrixSource(value){const old=this.sourceInput;this.sourceInput=value,value===null?this.sourceController?.detach():this.sourceController?.invalidate(),this.sourceNeedsConfigure=!0,this.requestUpdate("matrixSource",old,{hasChanged:()=>!0})}get matrixViewport(){return this.sourceViewportInput}set matrixViewport(value){const old=this.sourceViewportInput;this.sourceViewportInvalid=!1;try{this.sourceViewportInput=value===null?null:matrixRectangle(value)}catch{this.sourceViewportInvalid=!0,this.sourceViewportInput=null}this.sourceViewportExplicit=!0,this.sourceNeedsConfigure=!0;const next=this.sourceViewportInput;!this.sourceViewportInvalid&&(old===next||old!==null&&next!==null&&old.rowStart===next.rowStart&&old.rowEnd===next.rowEnd&&old.columnStart===next.columnStart&&old.columnEnd===next.columnEnd)||this.sourceController?.invalidate(),this.requestUpdate("matrixViewport",old,{hasChanged:()=>!0})}async revealSourceCell(row,col){const source=this.matrixSource,intent=++this.sourceRevealIntent;if(!source||!this.isConnected)return!1;const owner=this.ownerDocument,currentIntent=()=>intent===this.sourceRevealIntent&&this.matrixSource===source&&this.isConnected&&this.ownerDocument===owner;if(this.sourceController.retainWindowFor(row,col),!currentIntent()||(await this.updateComplete,!currentIntent()))return!1;const controller=this.sourceController;if(this.matrixSource!==source||!controller.valid(row,col)||controller.error)return!1;const viewport=controller.viewport;if(viewport&&this.matrixViewport&&(row<viewport.rowStart||row>=viewport.rowEnd||col<viewport.columnStart||col>=viewport.columnEnd)){const height=viewport.rowEnd-viewport.rowStart,width=viewport.columnEnd-viewport.columnStart,rowStart=Math.max(0,Math.min(controller.rows-height,row)),columnStart=Math.max(0,Math.min(controller.cols-width,col));if(this.matrixViewport=Object.freeze({rowStart,rowEnd:rowStart+height,columnStart,columnEnd:columnStart+width}),await this.updateComplete,!currentIntent())return!1}const focusBefore=activeElementIn(this.ownerDocument),focusVersion=this.sourceFocusVersion,epoch=controller.requests.epoch,current=()=>currentIntent()&&this.sourceCurrent(source,epoch)&&focusVersion===this.sourceFocusVersion,cell=await controller.exact(row,col);if(!cell||!current())return!1;const cellInteractive=this.cellInteractive;if(!current()||!(cellInteractive?.call(this,{row,col},cell.value??Number.NaN)??!0)||!current())return!1;const label=this.sourceCellLabel(cell,current);if(!current()||(controller.cursor=cell,this.accessibleCells&&!await controller.ensureWindow(row,col))||!current()||(this.sourceResult++,await this.updateComplete,!current()))return!1;const control=this.shadowRoot?.querySelector(`[data-source-row="${row}"][data-source-col="${col}"]`)??this.shadowRoot?.querySelector("[data-source-entry]");if(activeElementIn(this.ownerDocument)!==focusBefore)return!1;this.sourceRestoringFocus=!0;try{control?.focus()}finally{this.sourceRestoringFocus=!1}return current()&&this.announcements.announcePolite(label),!!control&¤t()}sourceCurrent(source,epoch){return this.isConnected&&this.matrixSource===source&&this.sourceController.requests.epoch===epoch}configureSource(){if(!this.matrixSource)return;const width=Math.floor(Math.min(MAX_CANVAS_DIMENSION,Math.max(0,this.getBoundingClientRect().width)));if(!(width<=0)&&!(!this.sourceNeedsConfigure&&width===this.sourceWidth)){if(this.sourceWidth=width,this.sourceNeedsConfigure=!1,this.sourceViewportInvalid||this.data.kind!=="matrix"||!["mean","min","max"].includes(this.matrixReducer)){this.sourceController.fail();return}this.sourceController.configure(this.matrixSource,this.matrixViewport,this.sourceViewportExplicit,Math.min(this.cellBudget,Math.max(1,width*width))),this.sourceViewportExplicit=!1}}sourceRangeLabel(tile){const format=value=>value===null?this.localize("heatmapNoDataValue"):getNumberFormat(this.effectiveLocale).format(value);return this.localize("heatmapSourceRangeLabel",void 0,{rowStart:format(tile.rowStart+1),rowEnd:format(tile.rowEnd),columnStart:format(tile.columnStart+1),columnEnd:format(tile.columnEnd),valid:format(tile.validCount),count:format(tile.count),min:format(tile.min),max:format(tile.max),reducer:this.sourceReducerLabel(),value:format(this.sourceTileValue(tile))})}sourceReducerLabel(){return this.localize(this.matrixReducer==="min"?"heatmapSourceMin":this.matrixReducer==="max"?"heatmapSourceMax":"heatmapSourceMean")}sourceTileValue(tile){return tile.validCount===0?null:this.matrixReducer==="mean"?tile.sum/tile.validCount:tile[this.matrixReducer]}sourceRange(tile){const controller=this.sourceController;!this.matrixSource||controller.error||controller.loading||controller.revision===void 0||this.emit("lr-matrix-range-select",Object.freeze({...tile,revision:controller.revision}))}async sourceActivate(row,col,origin="keyboard"){const source=this.matrixSource,epoch=this.sourceController.requests.epoch;if(!source)return;const cell=await this.sourceController.exact(row,col);if(!cell||!this.sourceCurrent(source,epoch))return;const cellInteractive=this.cellInteractive;if(!(!this.sourceCurrent(source,epoch)||!(cellInteractive?.call(this,{row,col},cell.value??Number.NaN)??!0)||!this.sourceCurrent(source,epoch))){if(this.sourceController.cursor=cell,this.sourceResult++,this.multiple){const cells=this.selectedCells.slice(0,MAX_HEATMAP_CELLS).filter(cell2=>cell2.row!==void 0&&cell2.col!==void 0&&this.sourceController.valid(cell2.row,cell2.col)),next=cells.some(cell2=>cell2.row===row&&cell2.col===col)?cells.filter(cell2=>cell2.row!==row||cell2.col!==col):[...cells.slice(0,MAX_HEATMAP_CELLS-1),{row,col}];if(!this.sourceCurrent(source,epoch)||(this.emit("lr-selection-change",{selectedCells:next,source:origin}),!this.sourceCurrent(source,epoch)))return}this.emit("lr-cell-activate",Object.freeze({row,col,value:cell.value??Number.NaN}))}}sourceTileAt(row,col){return this.sourceController.tiles.find(tile=>row>=tile.rowStart&&row<tile.rowEnd&&col>=tile.columnStart&&col<tile.columnEnd)}sourceCellLabel(cell,current){const cellText=this.cellText;return current()?cellText?.call(this,{row:cell.row,col:cell.col},cell.value??Number.NaN)??this.localize("heatmapMatrixCellLabel",void 0,{row:cell.rowLabel,col:cell.columnLabel,value:cell.value===null?this.localize("heatmapNoDataValue"):getNumberFormat(this.effectiveLocale).format(cell.value)}):""}sourceCsv(){const controller=this.sourceController;return controller.loading||controller.error||!controller.tiles.length?"":["rowStart,rowEnd,columnStart,columnEnd,count,validCount,min,max,sum,reducer,value",...controller.tiles.map(tile=>[tile.rowStart,tile.rowEnd,tile.columnStart,tile.columnEnd,tile.count,tile.validCount,tile.min??"",tile.max??"",tile.sum,this.matrixReducer,this.sourceTileValue(tile)??""].map(escapeCsvField).join(","))].join(`\r
|
|
2
|
-
`)}
|
|
3
|
-
<p part="source-summary">${summary} ${completeSummary}</p>
|
|
4
|
-
<
|
|
5
|
-
${controller.error?html`<p part="source-error">${this.localize("heatmapSourceError")}</p>`:nothing}
|
|
6
|
-
${viewport?html`<div class="source-axes" aria-hidden="true"><span>${number(viewport.columnStart+1)}</span><span>${number(viewport.columnStart+Math.floor((viewport.columnEnd-viewport.columnStart-1)/2)+1)}</span><span>${number(viewport.columnEnd)}</span></div>`:nothing}
|
|
7
|
-
<canvas part="canvas" data-source-entry tabindex=${this.accessibleCells?"-1":"0"} role=${this.accessibleCells?nothing:"application"}
|
|
8
|
-
aria-hidden=${this.accessibleCells?"true":nothing} aria-label=${this.accessibleCells?nothing:this.getAttribute("aria-label")||summary} aria-describedby="source-help"
|
|
9
|
-
@click=${this.sourceClick} @mousemove=${this.sourceHover} @mouseleave=${()=>{this.sourceHovered=null}} @keydown=${this.sourceKeydown}></canvas>
|
|
10
|
-
${this.sourceHovered?html`<p part="tooltip">${this.sourceRangeLabel(this.sourceHovered)}</p>`:nothing}
|
|
11
|
-
${this.accessibleCells?html`<p>${windowLabel}</p><div part="source-exact-window" role="grid" aria-label=${this.getAttribute("aria-label")||windowLabel}
|
|
12
|
-
aria-rowcount=${controller.rows} aria-colcount=${controller.cols} tabindex=${entry?"-1":"0"} data-source-entry @keydown=${this.sourceKeydown}>
|
|
13
|
-
${rows.map(row=>html`<div role="row" aria-rowindex=${row+1}>${cells.filter(cell=>cell.row===row).map(cell=>html`<div role="gridcell" aria-colindex=${cell.col+1} aria-selected=${String(this.multiple?this.sourceSelectedKeys.has(`${cell.row}:${cell.col}`):this.selectedCell?.row===cell.row&&this.selectedCell.col===cell.col)}><button part="cell" data-source-row=${cell.row} data-source-col=${cell.col}
|
|
14
|
-
?disabled=${!presentation.get(cell)?.interactive} style=${styleMap({backgroundColor:presentation.get(cell)?.color})}
|
|
15
|
-
tabindex=${entry?.row===cell.row&&entry?.col===cell.col?"0":"-1"}
|
|
16
|
-
@focus=${()=>{this.sourceCurrent(source,epoch)&&controller.cells===cells&&(controller.cursor=cell,controller.retainWindowFor(cell.row,cell.col),this.sourceResult++)}}
|
|
17
|
-
@click=${()=>{this.sourceCurrent(source,epoch)&&controller.cells===cells&&this.sourceActivate(cell.row,cell.col,"pointer")}}>${presentation.get(cell)?.label}</button></div>`)}</div>`)}
|
|
18
|
-
</div>`:nothing}
|
|
19
|
-
${this.withoutLegend?nothing:this.renderLegend(this.cachedValueRange)}
|
|
20
|
-
<div part="source-status">${controller.loading?this.localize("loading"):nothing}</div>
|
|
21
|
-
</div>`}static{this.collectionSupport=collectionSupport}static{this.immutableEventDetails=Object.freeze(["lr-selection-change"])}static{this.ownedCollectionProperties=Object.freeze(["data","annotations","legendStops","colorSteps","selectedCells"])}static{this.identityCollectionObjectProperties=Object.freeze(["data"])}static{this.styles=[LyraElement.styles,styles,srOnly]}static get observedAttributes(){return[...new Set([...super.observedAttributes,"role"])]}get cellBudget(){return Math.max(1,Math.min(1e5,finiteCount(this.maxCells,MAX_HEATMAP_CELLS)))}get effectiveMode(){return this.data.kind}get stickyLabels(){return this._stickyLabels}set stickyLabels(next){const normalized=STICKY_LABELS.normalizeReflected(this,"sticky-labels",next),old=this._stickyLabels;old!==normalized&&(this._stickyLabels=normalized,this.requestUpdate("stickyLabels",old))}get effectiveStickyLabels(){return this.effectiveMode==="matrix"?this._stickyLabels:"none"}get freezesRowLabels(){const sticky=this.effectiveStickyLabels;return sticky==="rows"||sticky==="both"}get freezesColLabels(){const sticky=this.effectiveStickyLabels;return sticky==="cols"||sticky==="both"}get effectiveColLabelRotation(){if(typeof this.colLabelRotation!="number")return 0;const degrees=finiteNumber(this.colLabelRotation,0);return Math.min(90,Math.max(0,degrees))}get matrixPadLeft(){if(this.rowLabelWidth==="auto")return this.resolvedRowLabelWidth;if(typeof this.rowLabelWidth!="number")return PAD_LEFT;const resolved=finiteNumber(this.rowLabelWidth,PAD_LEFT);return resolved>=0?resolved:PAD_LEFT}get matrixGeometry(){if(!(this.matrixSource||this.effectiveMode!=="matrix"))return this.lastPaintedMatrixGeometry}set matrixGeometry(_value){}get calendarGeometry(){if(this.effectiveMode==="calendar")return this.lastPaintedCalendarGeometry}set calendarGeometry(_value){}exportData(format){if(format==="csv")return this.exportCsv();if(this.matrixSource&&(this.sourceController.loading||this.sourceController.error||this.sourceNeedsConfigure)||format!=="png"||!this.canvasHasContent||this.drawDirty||!this.canvas||this.canvas.width<=0||this.canvas.height<=0)return"";try{const rowBand=this.frozenBandCanvas("row-labels"),colBand=this.frozenBandCanvas("col-labels");if(!rowBand&&!colBand)return this.canvas.toDataURL("image/png");const composite=this.ownerDocument.createElement("canvas");composite.width=this.canvas.width,composite.height=this.canvas.height;const context=composite.getContext("2d");return context?(context.drawImage(this.canvas,0,0),rowBand&&rowBand.width>0&&rowBand.height>0&&context.drawImage(rowBand,0,0),colBand&&colBand.width>0&&colBand.height>0&&context.drawImage(colBand,0,0),composite.toDataURL("image/png")):""}catch{return""}}exportCsv(){if(this.matrixSource)return this.sourceCsv();const data=this.data;if(data.kind==="calendar"){const header2=["date","value"].map(escapeCsvField).join(","),rows2=data.days.filter(day=>!this.isNoData(day.value)).map(day=>[day.date,day.value].map(escapeCsvField).join(","));return[header2,...rows2].join(`\r
|
|
22
|
-
`)}const header=["row","column","value"].map(escapeCsvField).join(","),rows=[];return data.values.forEach((rowValues,rowIndex)=>{const rowLabel=data.rowLabels[rowIndex]??"";rowValues.forEach((value,colIndex)=>{if(this.isNoData(value))return;const colLabel=data.colLabels[colIndex]??"";rows.push([rowLabel,colLabel,value].map(escapeCsvField).join(","))})}),[header,...rows].join(`\r
|
|
23
|
-
`)}get matrixPadTop(){if(this.colLabelHeight==="auto")return this.resolvedColLabelHeight;if(typeof this.colLabelHeight!="number")return PAD_TOP;const resolved=finiteNumber(this.colLabelHeight,PAD_TOP);return resolved>=0?resolved:PAD_TOP}measureColLabelHeight(cs){const labels=this.matrixColLabels;if(labels.length===0)return PAD_TOP;const ctx=getScratchCtx(this.ownerDocument);if(!ctx)return PAD_TOP;ctx.font=this.labelFont(cs);let widest=0;const interval=finiteInteger(this.colLabelInterval,1,1);for(let index=0;index<labels.length;index+=interval)widest=Math.max(widest,this.labelWidth(ctx,labels[index]));const radians=this.effectiveColLabelRotation*Math.PI/180,projected=widest*Math.sin(radians);return Math.max(PAD_TOP,Math.min(Math.ceil(projected)+COL_LABEL_INSET,MAX_COL_LABEL_HEIGHT))}measureRowLabelWidth(cs){const labels=this.matrixRowLabels;if(labels.length===0)return PAD_LEFT;const ctx=getScratchCtx(this.ownerDocument);if(!ctx)return PAD_LEFT;ctx.font=this.labelFont(cs);let widest=0;for(const label of labels)widest=Math.max(widest,this.labelWidth(ctx,label));const hostWidth=this.clientWidth||0,cap=hostWidth>0?hostWidth*MAX_ROW_LABEL_FRACTION:Number.POSITIVE_INFINITY;return Math.min(Math.max(PAD_LEFT,Math.ceil(widest)+ROW_LABEL_INSET*2),cap)}withLabelCache(paint){const previous=this.labelCache;this.labelCache=new HeatmapLabelCache;try{paint()}finally{this.labelCache=previous}}labelWidth(ctx,label){return this.labelCache?.width(ctx,label)??ctx.measureText(label).width}ellipsize(ctx,label,maxWidth){return this.labelCache?.clip(ctx,label,maxWidth,()=>this.ellipsizeLabel(ctx,label,maxWidth))??this.ellipsizeLabel(ctx,label,maxWidth)}ellipsizeLabel(ctx,label,maxWidth){if(maxWidth<=0)return"";if(this.labelWidth(ctx,label)<=maxWidth)return label;const characters=[...label],shortened=kept=>`${characters.slice(0,kept).join("")}…`;let fits=0,most=characters.length-1;for(;fits<most;){const kept=fits+most+1>>1;this.labelWidth(ctx,shortened(kept))<=maxWidth?fits=kept:most=kept-1}return fits>0||this.labelWidth(ctx,"…")<=maxWidth?shortened(fits):""}get calendarPadLeft(){const requested=this.calendarWeekdayLabelWidth;return requested==="auto"?this.resolvedCalendarWeekdayLabelWidth:requested??CAL_PAD_LEFT}measureCalendarWeekdayLabelWidth(cs,firstWeekStart){const ctx=getScratchCtx(this.ownerDocument);if(!ctx)return CAL_PAD_LEFT;ctx.font=this.labelFont(cs);let widest=0;for(const label of this.weekdayLabels(firstWeekStart))label&&(widest=Math.max(widest,this.labelWidth(ctx,label)));const hostWidth=this.clientWidth||0,cap=hostWidth>0?Math.max(CAL_PAD_LEFT,hostWidth*MAX_ROW_LABEL_FRACTION):Number.POSITIVE_INFINITY;return Math.min(Math.max(CAL_PAD_LEFT,Math.ceil(widest)+CAL_WEEKDAY_LABEL_INSET*2),cap)}get matrixRowLabels(){return this.cachedMatrixData.rowLabels}get matrixColLabels(){return this.cachedMatrixData.colLabels}get matrixValues(){return this.cachedMatrixData.values}get calendarDays(){return this.data.kind==="calendar"?this.data.days:[]}get calendarData(){return this.data.kind==="calendar"?this.data:void 0}get cellSize(){return this._cellSize??(this.effectiveMode==="calendar"?CAL_CELL:DEFAULT_MATRIX_CELL_SIZE)}set cellSize(value){const oldValue=this._cellSize;this._cellSize=value==null?void 0:finiteRange(value,this.effectiveMode==="calendar"?CAL_CELL:DEFAULT_MATRIX_CELL_SIZE,1),this.requestUpdate("cellSize",oldValue)}get rowHeight(){return this._rowHeight}set rowHeight(value){const oldValue=this._rowHeight;this._rowHeight=value==null||!Number.isFinite(value)?void 0:finiteRange(value,1,1,MAX_MATRIX_ROW_HEIGHT),this.requestUpdate("rowHeight",oldValue)}get signedDomain(){return this.domain!==void 0||this.midpoint!==void 0}rampAlpha(value,lo,hi){const anchor=this.midpoint;return anchor===void 0?linearAlpha(value,lo,hi):midpointAlpha(value,lo,hi,anchor)}rampBucket(value,lo,hi,steps){const anchor=this.midpoint;return anchor===void 0?linearBucket(value,lo,hi,steps):midpointBucket(value,lo,hi,anchor,steps)}isNoData(value){return Number.isFinite(value)?value<0&&!this.signedDomain:!0}get maxCellSize(){return this._maxCellSize}set maxCellSize(value){const oldValue=this._maxCellSize;this._maxCellSize=normalizeCellSizeClamp(value),this.requestUpdate("maxCellSize",oldValue)}get minCellSize(){return this._minCellSize}set minCellSize(value){const oldValue=this._minCellSize;this._minCellSize=normalizeCellSizeClamp(value),this.requestUpdate("minCellSize",oldValue)}get normalizedFirstDayOfWeek(){return(finiteInteger(this.calendarData?.firstDayOfWeek??0,0)%7+7)%7}get bucketCount(){return this._bucketCount}set bucketCount(value){const oldValue=this._bucketCount;this._bucketCount=normalizeBucketCount(value),this.requestUpdate("bucketCount",oldValue)}toggleRowSelection(row){this.toggleSelectionAxis(row,!0)}toggleColumnSelection(col){this.toggleSelectionAxis(col,!1)}get calendarWeekdayLabelText(){return this.calendarData?.weekdayLabelText}get calendarWeekdayLabelWidth(){const value=this.calendarData?.weekdayLabelWidth;if(value==="auto")return value;if(typeof value!="number")return;const resolved=finiteNumber(value,CAL_PAD_LEFT);return resolved>=0?resolved:void 0}get calendarMonthLabelText(){return this.calendarData?.monthLabelText}get calendarColumnX(){return this.calendarData?.columnX}get calendarRowY(){return this.calendarData?.rowY}constructor(){super(),this.sourceInput=null,this.sourceViewportInput=null,this.sourceViewportInvalid=!1,this.matrixReducer="mean",this.sourceNeedsConfigure=!0,this.sourceViewportExplicit=!1,this.sourceWidth=0,this.sourceSelectionKey="",this.sourceSelectedCellsEpoch=-1,this.sourceSelectedKeys=new Set,this.sourceRevealIntent=0,this.sourceNavigationIntent=0,this.sourceFocusVersion=0,this.sourceRestoringFocus=!1,this.sourceHasSucceeded=!1,this.sourceFailureAnnounced=!1,this.sourceResult=0,this.sourceController=new HeatmapMatrixSourceController(this,()=>{this.sourceResult++},()=>this.effectiveLocale),this.sourceHovered=null,this.sourceHover=event=>{const viewport=this.sourceController.viewport;if(!viewport||this.sourceController.loading||this.sourceController.error)return;const bounds=event.currentTarget.getBoundingClientRect(),row=viewport.rowStart+Math.floor((event.clientY-bounds.top)/bounds.height*(viewport.rowEnd-viewport.rowStart)),col=viewport.columnStart+Math.floor((event.clientX-bounds.left)/bounds.width*(viewport.columnEnd-viewport.columnStart));this.sourceHovered=this.sourceTileAt(row,col)??null},this.sourceClick=event=>{const controller=this.sourceController,viewport=controller.viewport;if(!viewport||controller.loading||controller.error)return;const bounds=event.currentTarget.getBoundingClientRect(),row=Math.min(viewport.rowEnd-1,viewport.rowStart+Math.floor((event.clientY-bounds.top)/bounds.height*(viewport.rowEnd-viewport.rowStart))),col=Math.min(viewport.columnEnd-1,viewport.columnStart+Math.floor((event.clientX-bounds.left)/bounds.width*(viewport.columnEnd-viewport.columnStart))),tile=this.sourceTileAt(row,col);tile?.count===1?this.sourceActivate(row,col,"pointer"):tile&&this.sourceRange(tile)},this.sourceKeydown=async event=>{const controller=this.sourceController,viewport=controller.viewport,source=this.matrixSource,epoch=controller.requests.epoch,navigation=++this.sourceNavigationIntent;if(!source||!viewport||controller.error)return;const cursor=controller.cursor;let row=cursor?.row??viewport.rowStart,col=cursor?.col??viewport.columnStart;if(event.key==="Enter"||event.key===" "){if(event.preventDefault(),event.shiftKey){const tile=this.sourceTileAt(row,col);tile&&this.sourceRange(tile)}else await this.sourceActivate(row,col);return}let dr=0,dc=0;if(event.key==="ArrowDown")dr=1;else if(event.key==="ArrowUp")dr=-1;else if(event.key==="ArrowRight")dc=1;else if(event.key==="ArrowLeft")dc=-1;else if(event.key==="PageDown")dr=Math.min(20,controller.rows);else if(event.key==="PageUp")dr=-Math.min(20,controller.rows);else if(event.key==="Home")col=0,event.ctrlKey&&(row=0);else if(event.key==="End")col=controller.cols-1,event.ctrlKey&&(row=controller.rows-1);else return;event.preventDefault();for(let attempt=0;attempt<32;attempt++){row=Math.max(0,Math.min(controller.rows-1,row+dr)),col=Math.max(0,Math.min(controller.cols-1,col+dc));const reveal=this.revealSourceCell(row,col),intent=this.sourceRevealIntent;if(await reveal||navigation!==this.sourceNavigationIntent||intent!==this.sourceRevealIntent||!this.sourceCurrent(source,epoch)||!dr&&!dc)return}},this.data=DEFAULT_MATRIX_DATA,this.maxCells=1e4,this._stickyLabels="none",this.resolvedColLabelHeight=PAD_TOP,this.resolvedRowLabelWidth=PAD_LEFT,this.resolvedCalendarWeekdayLabelWidth=CAL_PAD_LEFT,this.withoutLegend=!1,this.scale="linear",this.cellGapX=1,this.cellGapY=1,this.cellRadius=0,this.colLabelInterval=1,this.fitToWidth=!1,this._bucketCount=DEFAULT_BUCKET_COUNT,this.annotations=[],this.selectedCell=null,this.multiple=!1,this.selectedCells=[],this.accessibleCells=!1,this.cachedValueRange=null,this.cachedMatrixData={rowLabels:[],colLabels:[],values:[],truncated:!1},this.cachedCalendarGrid=buildCalendarGrid(this.calendarDays),this.cachedCalendarSortedValues=[],this.cachedCalendarCellsByPos=new Map,this.cachedCalendarCellsByDate=new Map,this.cachedAnnotations=[],this.cachedLegendStops=[],this.cachedColorSteps=[],this.cachedCalendarAnnotationDates=new Set,this.cachedMatrixAnnotationPositions=new Set,this.decorationProjectionTruncated=!1,this.cachedCalendarDateByPos=[],this.cachedAccessiblePositions=[],this.cachedAccessiblePositionsByKey=new Map,this.cachedAccessiblePositionIndexByKey=new Map,this.cachedRamp=null,this.canvasHasContent=!1,this.canvasVisible=!0,this.drawDirty=!1,this.overlayRevision=0,this.hoverCell=null,this.focusedCell=null,this.liveText="",this.accessibleTargetSizePx=DEFAULT_ACCESSIBLE_TARGET_SIZE_PX,this.restoringAccessibleFocus=!1,this.accessibleFocusGeneration=0,this.announcements=new AnnouncementSinkController(this,{eager:["polite"]}),this.authorRole=null,this.authorAriaLabel=null,this.generatedAriaLabel="",this.syncingGeneratedSemantics=!1,this.hasSyncedDescribedByElements=!1,this.onDprChange=()=>{this.watchDpr(),this.requestDraw()},this.initialLimitUpdate=!0,this.lastLimitNotice="",this.scheduleDraw=()=>{if(this.drawFrameRequest)return;const owner=this.ownerDocument.defaultView;if(!owner||!this.isConnected)return;const request={owner,handle:0};request.handle=owner.requestAnimationFrame(()=>{this.drawFrameRequest===request&&(this.drawFrameRequest=void 0,this.isConnected&&this.ownerDocument.defaultView===owner&&this.requestDraw())}),this.drawFrameRequest=request},this.selectedPositions=new Map,this.selectionAnchor=null,this.suppressSelectionClick=!1,this.onSelectionPointerDown=event=>{if(!this.multiple||event.button!==0||!event.isPrimary||this.selectionGesture)return;const current=this.selectionContext;if(!current?.())return;const pos=this.selectionPointerPosition(event);if(!pos||!current())return;if(event.preventDefault(),this.suppressSelectionClick=!1,this.selectionRangeBase=void 0,this.selectionAnchor=pos,this.focusedCell=pos,this.accessibleCells?this.focusAccessibleCell(pos):this.canvas?.focus(),!current()){this.suppressSelectionClick=!0;return}const target=event.currentTarget;this.selectionGesture={current,pointerId:event.pointerId,target,start:pos,previous:pos,moved:!1,selecting:!this.selectedPositions.has(this.accessibleCellKey(pos)),cells:new Map(this.selectedPositions)};try{target.setPointerCapture(event.pointerId)}catch{}this.paintSelectionTo(pos)},this.onSelectionPointerMove=event=>{const gesture=this.selectionGesture;if(!gesture||gesture.pointerId!==event.pointerId)return;if(!gesture.current()){this.cancelSelectionGesture();return}const pos=this.selectionPointerPosition(event);if(!gesture.current()){this.cancelSelectionGesture();return}pos&&!this.samePos(pos,gesture.previous)&&this.paintSelectionTo(pos)},this.onSelectionPointerUp=event=>{const gesture=this.selectionGesture;if(!gesture||gesture.pointerId!==event.pointerId)return;if(!gesture.current()){this.cancelSelectionGesture();return}const pos=this.selectionPointerPosition(event);if(!gesture.current()){this.cancelSelectionGesture();return}pos&&this.paintSelectionTo(pos),this.cancelSelectionGesture(),gesture.current()&&(this.proposeSelection(gesture.cells,"pointer"),!gesture.moved&&gesture.current(!0)&&this.emitCellClick(gesture.start,"pointer",!1,()=>gesture.current(!0)))},this.onSelectionPointerCancel=event=>{this.selectionGesture?.pointerId===event.pointerId&&this.cancelSelectionGesture()},this.tooltipSize={inline:0,block:0},this.onPointerMove=e=>{const next=this.hitTest(e.offsetX,e.offsetY);this.samePos(this.hoverCell,next)||(this.hoverCell=next)},this.onPointerLeave=()=>{this.hoverCell=null},this.onCanvasClick=e=>{if(this.consumeSelectionClick(e))return;const pos=this.hitTest(e.offsetX,e.offsetY);pos&&(this.focusedCell=pos,this.announce(pos),this.emitCellClick(pos))},this.onKeyDown=e=>{if(this.selectionKeyDown(e,this.focusedCell))return;const previous=this.focusedCell,edge=this.edgeCell(e);if(edge?(e.preventDefault(),this.focusedCell=edge,this.scrollCellIntoView(edge)):this.effectiveMode==="calendar"?this.onCalendarKeyDown(e):this.onMatrixKeyDown(e),(edge||ARROW_KEYS.has(e.key))&&this.focusedCell){const proposedKeys=this.extendSelection(previous,this.focusedCell,e.shiftKey);this.announce(this.focusedCell,proposedKeys?.has(this.accessibleCellKey(this.focusedCell)))}},this.canvasColorCache=new Map,this.onAccessibleCellFocus=e=>{if(this.restoringAccessibleFocus)return;const key=e.currentTarget.dataset.cellKey,pos=key?this.accessibleCellAtKey(key):null;pos&&(this.samePos(pos,this.focusedCell)||(this.selectionAnchor=pos,this.selectionRangeBase=void 0),this.focusedCell=pos,this.announce(pos))},this.onAccessibleCellClick=e=>{if(this.consumeSelectionClick(e))return;const key=e.currentTarget.dataset.cellKey,pos=key?this.accessibleCellAtKey(key):null;pos&&(this.focusedCell=pos,this.announce(pos),this.emitCellClick(pos,e.detail===0?"keyboard":"pointer"))},this.onAccessibleCellKeyDown=e=>{const key=e.currentTarget.dataset.cellKey,pos=key?this.accessibleCellAtKey(key):null;pos&&(this.selectionKeyDown(e,pos)||GRID_KEYS.has(e.key)&&(e.preventDefault(),this.focusedCell=pos,this.onKeyDown(e),this.focusAccessibleCell(this.focusedCell)))},new ThemeWatcher(this,()=>this.onThemeSignal()),this.calendarSpacingTrackingArmed=!0}requestUpdate(name,oldValue,options){this.calendarSpacingTrackingArmed&&name!==void 0&&CALENDAR_SPACING_PROPERTIES.has(name)&&(this.explicitCalendarSpacingProperties??=new Set).add(name),this.sourceController&&name===void 0&&(this.sourceController.invalidate(),this.sourceNeedsConfigure=!0),super.requestUpdate(name,oldValue,options)}explicitCalendarSpacing(name){if(!this.explicitCalendarSpacingProperties?.has(name))return;const value=this[name];return value??void 0}warnOnLegendRampMismatch(){const rampColors=this.cachedColorSteps.map(color=>sanitizeCssColor(color)??color);if(rampColors.length===0)return;const legendColors=this.cachedLegendStops.filter(stop=>!!stop.color&&stop.partOfRamp!==!1).map(stop=>sanitizeCssColor(stop.color??"")??stop.color??"");legendColors.length===0||legendColors.length===rampColors.length&&legendColors.every((color,index)=>color===rampColors[index])||devWarnOnce("lyra-heatmap-legend-ramp-mismatch",`<${this.localName}>: legendStops describes ${legendColors.length} colour(s) that do not match the ${rampColors.length} colorSteps the cells are painted from, so the legend may misdescribe the ramp. Supply legendStops built from the same array as colorSteps, or omit it to keep the built-in gradient key.`)}attributeChangedCallback(name,oldValue,value){super.attributeChangedCallback(name,oldValue,value),!(oldValue===value||this.syncingGeneratedSemantics)&&(name==="role"&&(this.authorRole=value),name==="aria-label"&&(this.authorAriaLabel=value))}connectedCallback(){super.connectedCallback(),this.sourceNeedsConfigure=!0,this.refreshAccessibleTargetSize();const owner=this.ownerDocument.defaultView,ResizeObserverCtor=owner?.ResizeObserver;if(owner&&ResizeObserverCtor){let observer;observer=new ResizeObserverCtor(()=>{!this.isConnected||this.ownerDocument.defaultView!==owner||this.resizeObserver!==observer||this.scheduleDraw()}),this.resizeObserver=observer,observer.observe(this)}const IntersectionObserverCtor=owner?.IntersectionObserver;if(this.canvasVisible=!0,owner&&IntersectionObserverCtor){let observer;observer=new IntersectionObserverCtor(entries=>{if(!this.isConnected||this.ownerDocument.defaultView!==owner||this.intersectionObserver!==observer)return;const entry=entries.find(candidate=>candidate.target===this);!entry||entry.isIntersecting===this.canvasVisible||(this.canvasVisible=entry.isIntersecting,this.canvasVisible&&this.drawDirty&&this.scheduleDraw())}),this.intersectionObserver=observer,observer.observe(this)}this.cachedRamp=null,this.resolvedStepsMemo=void 0,this.paintedTheme=void 0,this.canvasColorCache.clear(),this.watchDpr(),this.drawDirty&&!ResizeObserverCtor&&this.scheduleDraw()}disconnectedCallback(){super.disconnectedCallback(),this.sourceHovered=null,this.cancelSelectionGesture(),this.selectionAnchor=null,this.selectionRangeBase=void 0,this.accessibleFocusGeneration++,this.pendingAccessibleFocus=void 0,this.pendingAccessibleFocusOrigin=void 0,this.restoringAccessibleFocus=!1,this.hoverCell=null,this.focusedCell=null,this.liveText="",this.canvasHasContent=!1,this.drawDirty=!0,this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0,this.canvasVisible=!0,this.clearDprWatcher(),this.cancelDrawFrame()}adoptedCallback(){super.adoptedCallback(),this.sourceController.requests.adopted(),this.sourceNeedsConfigure=!0,this.announcements.adopted()}watchDpr(){this.clearDprWatcher();const owner=this.ownerDocument.defaultView;if(!owner||typeof owner.matchMedia!="function")return;const query2=owner.matchMedia(`(resolution: ${owner.devicePixelRatio}dppx)`),listener=()=>{!this.isConnected||this.ownerDocument.defaultView!==owner||this.dprQuery!==query2||this.onDprChange()};this.dprQuery=query2,this.dprChangeListener=listener,query2.addEventListener("change",listener)}clearDprWatcher(){this.dprQuery&&this.dprChangeListener&&this.dprQuery.removeEventListener("change",this.dprChangeListener),this.dprQuery=void 0,this.dprChangeListener=void 0}willUpdate(changed){if(super.willUpdate(changed),this.selectionContext=this.captureSelectionContext(),changed.has("matrixSource")&&!this.matrixSource&&changed.set("data",void 0),this.matrixSource){if((changed.has("locale")||changed.has("strings"))&&(this.sourceRevealIntent++,this.sourceNavigationIntent++,this.sourceController.cancelExact()),(changed.has("data")||changed.has("maxCells"))&&(this.sourceNeedsConfigure=!0),!["mean","min","max"].includes(this.matrixReducer)){this.sourceController.fail();return}if(changed.has("matrixReducer")&&this.sourceController.error&&(this.sourceNeedsConfigure=!0),this.configureSource(),this.sourceSelectedCellsInput!==this.selectedCells||this.sourceSelectedCellsEpoch!==this.sourceController.requests.epoch){this.sourceSelectedCellsInput=this.selectedCells,this.sourceSelectedCellsEpoch=this.sourceController.requests.epoch,this.sourceSelectedKeys.clear();for(let index=0;index<Math.min(this.selectedCells.length,MAX_HEATMAP_CELLS);index++){const cell=this.selectedCells[index];cell?.row!==void 0&&cell.col!==void 0&&this.sourceController.valid(cell.row,cell.col)&&this.sourceSelectedKeys.add(`${cell.row}:${cell.col}`)}}const domain=this.sourceController.domain;this.cachedValueRange=this.domain&&this.domain.length===2&&this.domain.every(Number.isFinite)&&this.domain[0]<=this.domain[1]?[this.domain[0],this.domain[1]]:domain?[domain.min,domain.max]:null,this.rebuildBoundedDecorations();const focused=shadowFocusTarget(this);if(focused?.dataset.sourceRow!==void 0&&!this.sourceController.cells.some(cell=>String(cell.row)===focused.dataset.sourceRow&&String(cell.col)===focused.dataset.sourceCol)){this.sourceRestoringFocus=!0;try{this.shadowRoot?.querySelector('[part="source-exact-window"]')?.focus()}finally{this.sourceRestoringFocus=!1}}return}(changed.size===0||[...changed.keys()].some(key=>!["hoverCell","focusedCell","liveText"].includes(String(key))))&&this.overlayRevision++,(changed.has("data")||changed.has("maxCells")||changed.has("domain")||changed.has("midpoint")||!this.hasUpdated)&&this.rebuildCanonicalMatrixData(),(changed.has("annotations")||changed.has("legendStops")||changed.has("colorSteps")||!this.hasUpdated)&&this.rebuildBoundedDecorations();const accessibleModeChanged=changed.has("accessibleCells")&&this.hasUpdated,collectionChanged=changed.has("data")||changed.has("maxCells")||changed.has("cellInteractive"),activeRenderedControl=collectionChanged||accessibleModeChanged?shadowFocusTarget(this):null,activeAccessibleCell=activeRenderedControl?.matches('[part="cell"]')?activeRenderedControl:null,renderedAccessibleCells=activeAccessibleCell?.matches('[part="cell"]')?[...this.renderRoot.querySelectorAll('[part="cell"]')]:[],accessibleFocusSnapshot=activeAccessibleCell?.matches('[part="cell"]')?{identity:activeAccessibleCell.dataset.cellIdentity,index:renderedAccessibleCells.indexOf(activeAccessibleCell)}:void 0;if(collectionChanged&&(this.focusedCell=null,this.hoverCell=null,this.liveText=""),changed.has("data")||changed.has("maxCells")||changed.has("locale")||!this.hasUpdated){this.cachedCalendarGrid=buildCalendarGrid(this.calendarDays,this.normalizedFirstDayOfWeek,this.calendarMonthLabelText,this.effectiveLocale,this.cellBudget),this.cachedCalendarSortedValues=this.cachedCalendarGrid.cells.map(cell=>cell.value).filter(value=>!this.isNoData(value)).sort((a,b)=>a-b),this.cachedCalendarCellsByPos=new Map(this.cachedCalendarGrid.cells.map(cell=>[`${cell.week}:${cell.weekday}`,cell])),this.cachedCalendarCellsByDate=new Map(this.cachedCalendarGrid.cells.map(cell=>[cell.date,cell]));const{firstWeekStart,weekCount}=this.cachedCalendarGrid;this.cachedCalendarDateByPos=Array.from({length:weekCount*7},(_,index)=>isoDateAtOffset(firstWeekStart,index))}if(changed.has("colorSteps")||changed.has("withoutLegend")||!this.hasUpdated){const colorSteps=this.withoutLegend?[]:this.cachedColorSteps.map(sanitizeCssColor);colorSteps.length>=2&&colorSteps.every(color=>color!==void 0)?this.style.setProperty("--lr-heatmap-color-steps-gradient",`linear-gradient(to right, ${colorSteps.join(", ")})`):this.style.removeProperty("--lr-heatmap-color-steps-gradient")}if((changed.has("data")||changed.has("maxCells")||changed.has("domain")||changed.has("midpoint")||!this.hasUpdated)&&(this.cachedValueRange=this.computeValueRange()),(collectionChanged||!this.hasUpdated)&&this.rebuildAccessiblePositions(),(collectionChanged||accessibleModeChanged||changed.has("multiple"))&&(this.cancelSelectionGesture(),this.selectionAnchor=null,this.selectionRangeBase=void 0,this.proposedSelectionKeys=void 0),collectionChanged||changed.has("selectedCells")||changed.has("multiple")||!this.hasUpdated){const previous=this.selectedPositions;if(this.rebuildSelectedPositions(),this.pendingSelectionRepaint=void 0,!collectionChanged&&changed.has("selectedCells")){const cells=[...previous].filter(([key])=>!this.selectedPositions.has(key)).map(([,pos])=>pos);for(const[key,pos]of this.selectedPositions)previous.has(key)||cells.push(pos);cells.length<=16&&(this.pendingSelectionRepaint=cells)}changed.has("selectedCells")&&this.selectionGesture&&this.cancelSelectionGesture(),changed.has("selectedCells")&&this.selectionRangeBase&&(this.proposedSelectionKeys?.size!==this.selectedPositions.size||[...this.selectedPositions.keys()].some(key=>!this.proposedSelectionKeys?.has(key)))&&(this.selectionAnchor=this.focusedCell,this.selectionRangeBase=void 0)}if(accessibleFocusSnapshot){const positions=this.accessibleCellPositions(),target=(accessibleFocusSnapshot.identity==null?void 0:positions.find(pos=>this.accessibleCellIdentity(pos)===accessibleFocusSnapshot.identity))??positions[Math.min(Math.max(accessibleFocusSnapshot.index,0),positions.length-1)]??null;this.focusedCell=target,this.liveText=target?this.resolveCellText(target):"",this.pendingAccessibleFocus=target??"base",this.pendingAccessibleFocusOrigin=activeAccessibleCell??void 0,this.restoringAccessibleFocus=!0,this.accessibleFocusGeneration++}if(accessibleModeChanged){const previouslyAccessible=changed.get("accessibleCells")===!0;if(previouslyAccessible&&!this.accessibleCells&&activeAccessibleCell){const key=activeAccessibleCell.dataset.cellKey,target=key?this.accessibleCellAtKey(key):null;target&&(this.focusedCell=target,this.liveText=this.resolveCellText(target)),this.pendingAccessibleFocus="canvas",this.pendingAccessibleFocusOrigin=activeAccessibleCell,this.restoringAccessibleFocus=!0,this.accessibleFocusGeneration++}else if(!previouslyAccessible&&this.accessibleCells&&activeRenderedControl?.matches('[part="canvas"]')){const positions=this.accessibleCellPositions(),target=this.focusedCell?positions.find(pos=>this.samePos(pos,this.focusedCell))??positions[0]??null:positions[0]??null;this.focusedCell=target,this.liveText=target?this.resolveCellText(target):"",this.pendingAccessibleFocus=target??"base",this.pendingAccessibleFocusOrigin=activeRenderedControl,this.restoringAccessibleFocus=!0,this.accessibleFocusGeneration++}}if(!this.hasUpdated||changed.size===0||[...changed.keys()].some(key=>!["hoverCell","focusedCell","liveText"].includes(String(key)))){const bounds=this.cachedValueRange,range=bounds?`${this.formatNumericValue(bounds[0])}–${this.formatNumericValue(bounds[1])}`:this.localize("heatmapNoDataValue"),valueLabel=this.localizedValueLabel();let label;if(this.effectiveMode==="calendar")label=this.localize("heatmapCalendarLabel",void 0,{days:this.formatCount(this.cachedCalendarGrid.cells.length),label:valueLabel,range});else{const rows=this.matrixRowLabels.length,cols=this.matrixColLabels.length;label=this.localize("heatmapMatrixLabel",void 0,{rows:this.formatCount(rows),cols:this.formatCount(cols),label:valueLabel,range})}const selectedText=this.selectedCellDescription(),generatedAriaLabel=[label,selectedText,this.projectionDescription()].filter(Boolean).join(" ");this.generatedAriaLabel=generatedAriaLabel,this.syncingGeneratedSemantics=!0;try{this.authorRole===null&&this.getAttribute("role")!=="group"&&this.setAttribute("role","group"),this.authorAriaLabel===null&&this.getAttribute("aria-label")!==generatedAriaLabel&&this.setAttribute("aria-label",generatedAriaLabel)}finally{this.syncingGeneratedSemantics=!1}}}rebuildBoundedDecorations(){this.cachedAnnotations=this.annotations.slice(0,MAX_HEATMAP_DECORATIONS).map(entry=>entry??{}),this.cachedLegendStops=(this.legendStops??[]).slice(0,MAX_HEATMAP_DECORATIONS).map(entry=>entry??{}),this.cachedColorSteps=(this.colorSteps??[]).slice(0,MAX_HEATMAP_DECORATIONS),this.warnOnLegendRampMismatch(),this.cachedCalendarAnnotationDates=new Set(this.cachedAnnotations.flatMap(annotation=>annotation.date==null?[]:[annotation.date])),this.cachedMatrixAnnotationPositions=new Set(this.cachedAnnotations.flatMap(annotation=>annotation.row==null||annotation.col==null?[]:[`${annotation.row}:${annotation.col}`])),this.decorationProjectionTruncated=this.annotations.length>MAX_HEATMAP_DECORATIONS||(this.legendStops?.length??0)>MAX_HEATMAP_DECORATIONS||(this.colorSteps?.length??0)>MAX_HEATMAP_DECORATIONS}get ownedInputTruncated(){return["annotations","legendStops","colorSteps","selectedCells"].some(name=>publicCollectionTruncation(this,name)!==void 0)}get projectionTruncated(){return this.decorationProjectionTruncated||this.ownedInputTruncated||(this.effectiveMode==="calendar"?this.cachedCalendarGrid.truncated:this.cachedMatrixData.truncated)}get cellProjectionTruncated(){return this.effectiveMode==="calendar"?this.cachedCalendarGrid.truncated:this.cachedMatrixData.truncated}projectedCellCount(){return this.effectiveMode==="calendar"?this.cachedCalendarGrid.weekCount*7:this.matrixRowLabels.length*this.matrixColLabels.length}projectionDescription(){const messages=[];return this.cellProjectionTruncated&&messages.push(this.localize("heatmapProjectionLimit",void 0,{count:this.formatCount(this.projectedCellCount())})),this.decorationProjectionTruncated&&messages.push(this.localize("heatmapDecorationLimit",void 0,{count:this.formatCount(MAX_HEATMAP_DECORATIONS)})),this.ownedInputTruncated&&messages.push(this.localize("heatmapInputLimit")),messages.join(" ")}rebuildCanonicalMatrixData(){if(this.data.kind!=="matrix"){this.cachedMatrixData={rowLabels:[],colLabels:[],values:[],truncated:!1};return}const own=(value,key)=>{if(!value||typeof value!="object")return;const descriptor=getOwnDataDescriptor(value,key);return typeof descriptor=="object"?descriptor.value:void 0},rows=own(this.data,"rowLabels"),cols=own(this.data,"colLabels"),source=own(this.data,"values"),count=value=>{const length=own(value,"length");return finiteCount(typeof length=="number"?length:0,0)},colCount=Math.min(count(cols),this.cellBudget),rowLimit=colCount===0?this.cellBudget:Math.floor(this.cellBudget/colCount),rowCount=Math.min(count(rows),rowLimit),labels=(source2,length)=>{const result=new Array(length);if(!source2||typeof source2!="object")return result;for(let index=0;index<length;index++){const descriptor=getOwnDataDescriptor(source2,String(index));if(typeof descriptor!="object")continue;const value=descriptor.value;result[index]=value===null||typeof value!="object"&&typeof value!="function"?String(value):""}return result},rowLabels=labels(rows,rowCount),colLabels=labels(cols,colCount);let truncated=rowCount!==count(rows)||colCount!==count(cols)||count(source)>rowCount;const values=Array.from({length:rowCount},(_,row)=>{const input=own(source,String(row));return count(input)>colCount&&(truncated=!0),Array.from({length:colCount},(_2,col)=>{const value=own(input,String(col));return typeof value=="number"?value:this.signedDomain?Number.NaN:-1})});this.cachedMatrixData={rowLabels,colLabels,values,truncated}}selectedCellDescription(){if(this.multiple){const count=this.currentSelectedPositions.size;return count?this.localize("heatmapSelectedCount",void 0,{count:this.formatCount(count)}):""}if(!this.selectedCell)return"";if(this.effectiveMode==="calendar"){if(this.selectedCell.date==null)return"";const match=this.cachedCalendarCellsByDate.get(this.selectedCell.date);return match?this.localize("heatmapSelectedCellLabel",void 0,{cell:this.calendarCellText({week:match.week,weekday:match.weekday,date:match.date})}):""}const{row,col}=this.selectedCell;return row==null||col==null||row<0||row>=this.matrixRowLabels.length||col<0||col>=this.matrixColLabels.length?"":this.localize("heatmapSelectedCellLabel",void 0,{cell:this.matrixCellText({row,col})})}computeValueRange(){const pinned=this.domain;if(pinned){const[lo,hi]=pinned;if(Number.isFinite(lo)&&Number.isFinite(hi)&&lo!==hi)return lo<hi?[lo,hi]:[hi,lo]}const source=this.effectiveMode==="calendar"?this.cachedCalendarGrid.cells.map(cell=>cell.value):this.matrixValues.flat();return minMax(source.filter(v=>!this.isNoData(v)))}localizedValueLabel(){return this.valueLabel===void 0?this.localize("heatmapValueLabel"):this.valueLabel}formatNumericValue(value){return getNumberFormat(this.effectiveLocale||void 0).format(value)}syncExternalDescription(){const describedBy=this.getAttribute("aria-describedby");if(!describedBy&&!this.hasSyncedDescribedByElements)return;const control=this.accessibleCells?this.renderRoot.querySelector('[part="cells"]'):this.canvas;this.hasSyncedDescribedByElements=syncAriaDescribedByElements(this,control??void 0,describedBy)}updated(changed){if(super.updated(changed),this.matrixSource){this.sourceController.error?(this.sourceHasSucceeded&&!this.sourceFailureAnnounced&&this.announcements.announcePolite(this.localize("heatmapSourceError")),this.sourceFailureAnnounced=!0):this.sourceController.loading||(this.sourceHasSucceeded=!0,this.sourceFailureAnnounced=!1),this.paintSource();const selected=this.selectedCell,selectionKey=`${this.sourceController.requests.epoch}:${selected?.row}:${selected?.col}`;if(selectionKey!==this.sourceSelectionKey&&(this.sourceSelectionKey=selectionKey,this.sourceController.selected=null,selected?.row!==void 0&&selected.col!==void 0&&this.sourceController.valid(selected.row,selected.col))){const epoch=this.sourceController.requests.epoch,source=this.matrixSource;this.sourceController.exact(selected.row,selected.col).then(cell=>{cell&&this.sourceCurrent(source,epoch)&&this.sourceSelectionKey===selectionKey&&(this.sourceController.selected=cell,this.sourceResult++)})}if(this.accessibleCells&&this.sourceController.viewport&&!this.sourceController.error){const cursor=this.sourceController.cursor;this.sourceController.ensureWindow(cursor?.row??this.sourceController.viewport.rowStart,cursor?.col??this.sourceController.viewport.columnStart)}return}this.syncExternalDescription(),this.syncAccessibleTabStop();const notice=this.projectionDescription();if(!this.initialLimitUpdate&¬ice&¬ice!==this.lastLimitNotice&&this.announcements.announcePolite(notice),this.initialLimitUpdate=!1,this.lastLimitNotice=notice,this.hoverCell&&this.effectiveStickyLabels!=="none"&&this.scheduleAfterUpdate(()=>this.measureTooltip(),"heatmap-tooltip-metrics"),["data","maxCells","cellSize","rowHeight","cellGapX","cellGapY","cellRadius","colLabelInterval","maxCellSize","minCellSize","valueLabel","scale","domain","midpoint","fitToWidth","rowLabelWidth","colLabelHeight","colLabelRotation","bucketCount","annotations","focusedCell","colorSteps","cellColor","selectedCell","selectedCells","multiple","selectionPreview","legendStops","accessibleCells","accessibleTargetSizePx","locale","stickyLabels"].some(name=>changed.has(name))){if(changed.has("focusedCell")&&[...changed.keys()].every(key=>key==="focusedCell"||key==="liveText")&&this.repaintFocusRing(changed.get("focusedCell")))return;const smallSelection=this.pendingSelectionRepaint,onlySelectionAndFocus=[...changed.keys()].every(key=>["selectedCells","focusedCell","liveText"].includes(String(key))),repainted=smallSelection!==void 0&&onlySelectionAndFocus&&(!changed.has("focusedCell")||this.repaintFocusRing(changed.get("focusedCell")))&&smallSelection.every(pos=>this.repaintCell(pos));this.pendingSelectionRepaint=void 0,repainted||this.requestDraw()}const pending=this.pendingAccessibleFocus;if(pending===void 0)return;this.pendingAccessibleFocus=void 0;const origin=this.pendingAccessibleFocusOrigin;this.pendingAccessibleFocusOrigin=void 0;const generation=this.accessibleFocusGeneration;this.scheduleAfterUpdate(()=>{try{if(generation!==this.accessibleFocusGeneration||!this.isConnected)return;if(origin){const internalActive=shadowFocusTarget(this),documentActive=activeElementIn(this.ownerDocument),focusStayedAtOrigin=internalActive===origin,originWasRemovedWithoutReplacement=internalActive===null&&(documentActive===null||documentActive===this||documentActive===this.ownerDocument.body);if(!focusStayedAtOrigin&&!originWasRemovedWithoutReplacement)return}if(pending==="base"){this.shadowRoot?.querySelector('[part="base"]')?.focus();return}if(pending==="canvas"){this.shadowRoot?.querySelector('[part="canvas"]')?.focus();return}const identity=this.accessibleCellIdentity(pending);[...this.shadowRoot?.querySelectorAll('[part="cell"]')??[]].find(candidate=>candidate.dataset.cellIdentity===identity)?.focus()}finally{this.restoringAccessibleFocus=!1}},"heatmap-accessible-focus")}refreshTheme(){this.resolvedStepsMemo=void 0,this.cachedRamp=null,this.refreshAccessibleTargetSize()||this.requestDraw()}themeSignature(){const cs=this.ownerDocument.defaultView?.getComputedStyle(this);return cs?[...this.scaleEndpoints(cs),this.noDataFill(cs),this.labelColor(cs),this.labelFont(cs),this.focusRingColor(cs),this.annotationColor(cs),this.selectedColor(cs),this.stickyLabelBg(cs),...this.resolvedColorSteps()].join("\0"):""}onThemeSignal(){this.resolvedStepsMemo=void 0;const signature=this.themeSignature(),resized=this.refreshAccessibleTargetSize();signature===this.paintedTheme&&!this.cellColor||(this.paintedTheme=signature,this.cachedRamp=null,resized||this.scheduleDraw())}refreshAccessibleTargetSize(){const raw=this.ownerDocument.defaultView?.getComputedStyle(this).getPropertyValue("--lr-icon-button-size").trim()??"",resolved=resolveCssTokenLength(raw,{host:this}),next=resolved!==void 0&&Number.isFinite(resolved)&&resolved>0?resolved:DEFAULT_ACCESSIBLE_TARGET_SIZE_PX;return next===this.accessibleTargetSizePx?!1:(this.accessibleTargetSizePx=next,!0)}scaleEndpoints(cs){const lo=cs.getPropertyValue("--lr-heatmap-scale-lo").trim()||cs.getPropertyValue("--_lr-heatmap-scale-lo").trim()||FALLBACK_SCALE_LO,hi=cs.getPropertyValue("--lr-heatmap-scale-hi").trim()||cs.getPropertyValue("--_lr-heatmap-scale-hi").trim()||FALLBACK_SCALE_HI;return[lo,hi]}labelColor(cs){return cs.getPropertyValue("--lr-color-text-quiet").trim()||"#6b7280"}labelFont(cs){return cs.getPropertyValue("--lr-heatmap-label-font").trim()||cs.getPropertyValue("--_lr-heatmap-label-font").trim()||FALLBACK_LABEL_FONT}stickyLabelBg(cs){const raw=cs.getPropertyValue("--lr-heatmap-sticky-label-bg").trim()||cs.getPropertyValue("--_lr-heatmap-sticky-label-bg").trim()||FALLBACK_STICKY_LABEL_BG;return formatRgb(resolveRgb(raw,FALLBACK_STICKY_LABEL_BG,this.ownerDocument))}noDataFill(cs){return cs.getPropertyValue("--lr-heatmap-no-data-fill").trim()||cs.getPropertyValue("--_lr-heatmap-no-data-fill").trim()||FALLBACK_NO_DATA_FILL}focusRingColor(cs){return cs.getPropertyValue("--lr-heatmap-focus-ring-color").trim()||cs.getPropertyValue("--_lr-heatmap-focus-ring-color").trim()||FALLBACK_FOCUS_RING_COLOR}annotationColor(cs){return cs.getPropertyValue("--lr-heatmap-annotation-color").trim()||cs.getPropertyValue("--_lr-heatmap-annotation-color").trim()||FALLBACK_ANNOTATION_COLOR}selectedColor(cs){return cs.getPropertyValue("--lr-heatmap-selected-color").trim()||cs.getPropertyValue("--_lr-heatmap-selected-color").trim()||FALLBACK_SELECTED_COLOR}strokeCellState(ctx,x,y,size,state2,color,paintedShape){const shape=paintedShape??this.calendarCellShape(size),width=shape?.custom?shape.w:size,height=shape?.custom?shape.h:size;shape?.custom&&(ctx.save(),ctx.beginPath(),ctx.roundRect(x,y,shape.w,shape.h,shape.radius),ctx.clip());const inset=Math.min(state2==="annotation"?.5:state2==="selected"?3.5:6.5,Math.max(.5,(Math.min(width,height)-RING_LINE_WIDTH-1)/2)),w=Math.max(1,width-inset*2),h=Math.max(1,height-inset*2);ctx.lineWidth=RING_LINE_WIDTH,ctx.strokeStyle=color,ctx.setLineDash?.(state2==="annotation"?[]:state2==="selected"?[4,2]:[1,2]),shape?.custom&&shape.radius>0?(ctx.beginPath(),ctx.roundRect(x+inset,y+inset,w,h,Math.max(0,shape.radius-inset)),ctx.stroke()):ctx.strokeRect(x+inset,y+inset,w,h),ctx.setLineDash?.([]),shape?.custom&&ctx.restore()}isSelectedPos(pos){return this.multiple?this.currentSelectedPositions.has(this.accessibleCellKey(pos)):this.selectedCell?"week"in pos?this.selectedCell.date==null?!1:this.calendarCellAt(pos).date===this.selectedCell.date:this.selectedCell.row===pos.row&&this.selectedCell.col===pos.col:!1}draw(){if(this.matrixSource){this.paintSource();return}if(!this.canvasVisible){this.drawDirty=!0;return}this.syncDeferredFitFrame(!1),this.drawDirty=!1,this.canvasHasContent=!1,this.paintedTheme??=this.themeSignature(),this.effectiveMode==="calendar"?this.drawCalendar():this.drawMatrix()}requestDraw(){this.drawDirty=!0,this.isConnected&&(this.canvasVisible?this.draw():this.syncDeferredFitFrame(!0))}syncDeferredFitFrame(deferred){const base=this.shadowRoot?.querySelector('[part="base"]');if(!base)return;let contained=!1;deferred&&this.fitToWidth&&this.clientWidth>0&&(contained=(this.effectiveMode==="calendar"?this.columnXFor(Math.max(1,this.cachedCalendarGrid.weekCount)):this.matrixPadLeft+this.matrixColLabels.length*this.matrixCellSize(this.matrixColLabels.length))<=this.clientWidth),base.toggleAttribute("data-fit-frame-contained",contained)}repaintFocusRing(previous){if(!this.canvasHasContent||!this.canvas||this.drawDirty)return!1;const current=this.focusedCell;if(this.effectiveMode==="calendar"){if(previous&&!("week"in previous)||current&&!("week"in current))return!1;this.repaintCalendarFocusCell(previous&&"week"in previous?previous:null),current&&(!previous||!this.samePos(previous,current))&&this.repaintCalendarFocusCell(current)}else{if(previous&&!("row"in previous)||current&&!("row"in current))return!1;this.repaintMatrixFocusCell(previous&&"row"in previous?previous:null),current&&(!previous||!this.samePos(previous,current))&&this.repaintMatrixFocusCell(current)}return!0}cancelDrawFrame(){const request=this.drawFrameRequest;request&&request.owner.cancelAnimationFrame(request.handle),this.drawFrameRequest=void 0}resolveColorStep(color,fallback){const safe=sanitizeCssColor(color);if(!safe)return fallback;const ctx=SCOPED_COLOR.test(safe)?null:getScratchCtx(this.ownerDocument);return ctx?(ctx.fillStyle=safe,ctx.fillStyle):resolveCanvasColor(this,safe,fallback)}resolvedColorSteps(){const source=this.cachedColorSteps;return(this.resolvedStepsMemo?.source!==source||this.resolvedStepsMemo.document!==this.ownerDocument)&&(this.resolvedStepsMemo={source,document:this.ownerDocument,colors:source.map(step=>this.resolveColorStep(step,""))}),this.resolvedStepsMemo.colors}colorRamp(bucketCount,cs){const steps=this.cachedColorSteps;if(steps&&steps.length>=2){const key2=`steps ${steps.join(" ")}`;if(this.cachedRamp?.key===key2)return this.cachedRamp;const resolved=this.resolvedColorSteps().map((color,index)=>color||(index===steps.length-1?FALLBACK_SCALE_HI:FALLBACK_SCALE_LO)),colors2=resolved.map(color=>formatRgb(resolveRgb(color,FALLBACK_SCALE_LO,this.ownerDocument))),loRgb2=resolveRgb(resolved[0],FALLBACK_SCALE_LO,this.ownerDocument),hiRgb2=resolveRgb(resolved[resolved.length-1],FALLBACK_SCALE_HI,this.ownerDocument);return this.cachedRamp={key:key2,colors:colors2,loRgb:loRgb2,hiRgb:hiRgb2},this.cachedRamp}const[scaleLo,scaleHi]=this.scaleEndpoints(cs),normalizedBucketCount=normalizeBucketCount(bucketCount),key=`${scaleLo}\0${scaleHi}\0${normalizedBucketCount}`;if(this.cachedRamp?.key===key)return this.cachedRamp;const loRgb=resolveRgb(scaleLo,FALLBACK_SCALE_LO,this.ownerDocument),hiRgb=resolveRgb(scaleHi,FALLBACK_SCALE_HI,this.ownerDocument),colors=Array.from({length:normalizedBucketCount},(_,i)=>mixRgb(loRgb,hiRgb,i/(normalizedBucketCount-1)));return this.cachedRamp={key,colors,loRgb,hiRgb},this.cachedRamp}calendarCellSize(){return this.calendarSpacing().cellSize}calendarSpacing(){const{weekCount}=this.cachedCalendarGrid,rawGapX=this.explicitCalendarSpacing("cellGapX"),rawGapY=this.explicitCalendarSpacing("cellGapY"),rawRadius=this.explicitCalendarSpacing("cellRadius"),boundGap=(raw,size2)=>raw===void 0?CAL_GAP:finiteRange(raw,CAL_GAP,0,Math.max(0,size2-1));let size;if(this.fitToWidth&&weekCount>0){const fitGap=boundGap(rawGapX,this.cellSize),hostWidth=this.clientWidth||this.calendarPadLeft+weekCount*(this.cellSize+fitGap);size=this.clampFitCellSize((hostWidth-this.calendarPadLeft)/weekCount-fitGap)}else size=this.cellSize;return this.accessibleCells&&(size=Math.max(size,this.accessibleTargetSizePx)),{cellSize:size,gapX:boundGap(rawGapX,size),gapY:boundGap(rawGapY,size),radius:rawRadius===void 0?0:finiteRange(rawRadius,0,0,size/2)}}clampFitCellSize(size){const floored=finiteRange(size,FIT_MIN_CELL,Math.max(FIT_MIN_CELL,this.minCellSize??FIT_MIN_CELL));return this.maxCellSize==null?floored:Math.min(floored,this.maxCellSize)}columnXFor(week){return(this.calendarPaintColumns??this.calendarColumnPositions())[week]??this.calendarPadLeft}rowYFor(weekday){return(this.calendarPaintRows??this.calendarRowPositions())[weekday]??CAL_LABEL_H}calendarColumnPositions(spacing=this.calendarSpacing()){const{cellSize,gapX:gap}=spacing,weekCount=this.cachedCalendarGrid.weekCount,callback=this.calendarColumnX,padLeft=this.calendarPadLeft,cached=this.cachedColumnGeometry;if(cached!==void 0&&cached.callback===callback&&cached.padLeft===padLeft&&cached.cellSize===cellSize&&cached.gap===gap&&cached.weekCount===weekCount)return cached.positions;const positions=[];for(let index=0;index<=weekCount;index++){const fallback=index===0?padLeft:positions[index-1]+cellSize+gap;let candidate=fallback;if(callback)try{const supplied=callback(index);Number.isFinite(supplied)&&supplied>=0&&(index===0||supplied>=positions[index-1]+cellSize)&&(candidate=supplied)}catch{candidate=fallback}positions.push(candidate)}return this.cachedColumnGeometry={callback,padLeft,cellSize,gap,weekCount,positions},positions}calendarRowPositions(spacing=this.calendarSpacing()){const{cellSize,gapY:gap}=spacing,callback=this.calendarRowY,cached=this.cachedRowGeometry;if(cached!==void 0&&cached.callback===callback&&cached.cellSize===cellSize&&cached.gap===gap)return cached.positions;const positions=[];for(let index=0;index<=7;index++){const fallback=index===0?CAL_LABEL_H:positions[index-1]+cellSize+gap;let candidate=fallback;if(callback)try{const supplied=callback(index);Number.isFinite(supplied)&&supplied>=0&&(index===0||supplied>=positions[index-1]+cellSize)&&(candidate=supplied)}catch{candidate=fallback}positions.push(candidate)}return this.cachedRowGeometry={callback,cellSize,gap,positions},positions}weekdayLabels(firstWeekStart){const formatter=getDateTimeFormat(this.effectiveLocale||void 0,{weekday:"short",timeZone:"UTC"}),labels=["","","","","","",""];for(const weekday of[1,3,5]){const row=(weekday-this.normalizedFirstDayOfWeek+7)%7;labels[row]=this.calendarWeekdayLabelText?.(weekday)??formatter.format(new Date(firstWeekStart.getTime()+row*MS_PER_DAY))}return labels}paintCalendarAxisLabels(ctx,cellSize,cs,firstWeekStart,monthLabels,months=!0,weekdays=!0){if(ctx.fillStyle=this.labelColor(cs),ctx.font=this.labelFont(cs),months){const canvasRight=this.columnXFor(Math.max(1,this.cachedCalendarGrid.weekCount)),placed=[];monthLabels.forEach((month,index)=>{const label=this.ellipsize(ctx,month.label,canvasRight);if(!label)return;const width=this.labelWidth(ctx,label),x=Math.max(0,Math.min(this.columnXFor(month.week),canvasRight-width)),nextWeek=monthLabels[index+1]?.week??Math.max(month.week+1,this.cachedCalendarGrid.weekCount),entry={label,x,end:x+width+CAL_MONTH_LABEL_GAP,span:nextWeek-month.week};let previous=placed[placed.length-1];for(;previous&&entry.x<previous.end&&entry.span>previous.span;)placed.pop(),previous=placed[placed.length-1];previous&&entry.x<previous.end||placed.push(entry)});for(const{label,x}of placed)ctx.fillText(label,x,CAL_LABEL_H-4)}if(weekdays){const available=this.calendarPadLeft-CAL_WEEKDAY_LABEL_INSET*2;this.weekdayLabels(firstWeekStart).forEach((label,weekday)=>{const shown=label?this.ellipsize(ctx,label,available):"";shown&&ctx.fillText(shown,CAL_WEEKDAY_LABEL_INSET,this.rowYFor(weekday)+cellSize-1)})}}drawCalendar(){try{this.withLabelCache(()=>this.paintCalendar())}finally{this.calendarPaintColumns=void 0,this.calendarPaintRows=void 0}}paintCalendar(){if(!this.canvas)return;const{weekCount,firstWeekStart,monthLabels}=this.cachedCalendarGrid,cs=this.ownerDocument.defaultView?.getComputedStyle(this);if(!cs)return;this.calendarWeekdayLabelWidth==="auto"&&(this.resolvedCalendarWeekdayLabelWidth=this.measureCalendarWeekdayLabelWidth(cs,firstWeekStart));const spacing=this.calendarSpacing(),cellSize=spacing.cellSize;this.calendarPaintColumns=this.calendarColumnPositions(spacing),this.calendarPaintRows=this.calendarRowPositions(spacing);const w=this.columnXFor(Math.max(1,weekCount)),h=this.rowYFor(7),ctx=this.sizeCanvas(this.canvas,w,h);if(!ctx)return;ctx.clearRect(0,0,w,h);const buckets=normalizeBucketCount(this.bucketCount),ramp=this.colorRamp(buckets,cs).colors,noDataFill=this.noDataFill(cs);this.canvasColorCache.clear();const bounds=this.cachedValueRange,lo=bounds?bounds[0]:0,hi=bounds?bounds[1]:1;for(let week=0;week<weekCount;week++)for(let weekday=0;weekday<7;weekday++){const value=this.calendarValueAt(week,weekday),x=this.columnXFor(week),y=this.rowYFor(weekday),override=this.cellColor?.(this.calendarPos(week,weekday),value);if(override!=null)ctx.fillStyle=this.resolveCellColor(override,cs);else if(this.isNoData(value))ctx.fillStyle=noDataFill;else if(this.scale==="sqrt"){const step=sqrtStep(value,hi,ramp.length);ctx.fillStyle=step<0?noDataFill:ramp[step]}else if(this.cachedColorSteps.length>=2){const step=this.rampBucket(value,lo,hi,ramp.length);ctx.fillStyle=ramp[step]}else ctx.fillStyle=ramp[quartileBucket(value,this.cachedCalendarSortedValues,buckets)];this.fillCalendarCell(ctx,x,y,cellSize,spacing.radius)}if(this.cachedAnnotations.length)for(const ann of this.cachedAnnotations){if(ann.date==null)continue;const match=this.cachedCalendarCellsByDate.get(ann.date);if(!match)continue;const x=this.columnXFor(match.week),y=this.rowYFor(match.weekday);this.strokeCellState(ctx,x,y,cellSize,"annotation",this.annotationColor(cs))}for(const match of this.selectedPaintPositions())if("week"in match){const x=this.columnXFor(match.week),y=this.rowYFor(match.weekday);this.strokeCellState(ctx,x,y,cellSize,"selected",this.selectedColor(cs))}if(this.focusedCell&&"week"in this.focusedCell){const{week,weekday}=this.focusedCell;if(week<weekCount&&weekday<7){const x=this.columnXFor(week),y=this.rowYFor(weekday);this.strokeCellState(ctx,x,y,cellSize,"focus",this.focusRingColor(cs))}}this.paintCalendarAxisLabels(ctx,cellSize,cs,firstWeekStart,monthLabels),this.canvasHasContent=!0,this.recordCalendarGeometry(spacing,weekCount)&&this.accessibleCells&&this.scheduleAfterUpdate(()=>this.requestUpdate(),"heatmap-calendar-accessible-geometry")}matrixCellSize(cols){let size;if(this.fitToWidth&&cols>0){const padLeft=this.matrixPadLeft,hostWidth=this.clientWidth||padLeft+cols*this.cellSize;size=this.clampFitCellSize((hostWidth-padLeft)/cols)}else size=this.cellSize;if(!this.accessibleCells)return size;const target=this.accessibleTargetSizePx,custom=finiteNumber(this.cellGapX,1)!==1||finiteNumber(this.cellGapY,1)!==1||finiteRange(this.cellRadius,0,0)>0,gap=this.rowHeight!==void 0?finiteRange(this.cellGapX,1,0,target):custom?Math.max(finiteRange(this.cellGapX,1,0,target),finiteRange(this.cellGapY,1,0,target)):0;return Math.max(size,target+gap)}matrixRowHeight(cellSize){if(this.rowHeight===void 0)return cellSize;const height=finiteRange(this.rowHeight,cellSize,1);if(!this.accessibleCells)return height;const target=this.accessibleTargetSizePx;return Math.max(height,target+finiteRange(this.cellGapY,1,0,target))}matrixCellShape(size,height=this.matrixRowHeight(size)){if(height===size&&finiteNumber(this.cellGapX,1)===1&&finiteNumber(this.cellGapY,1)===1&&finiteRange(this.cellRadius,0,0)===0)return{w:size-1,h:size-1,radius:0,custom:!1};const target=this.accessibleCells?this.accessibleTargetSizePx:1,w=size-finiteRange(this.cellGapX,1,0,Math.max(0,size-Math.min(size,target))),h=height-finiteRange(this.cellGapY,1,0,Math.max(0,height-Math.min(height,target))),radius=finiteRange(this.cellRadius,0,0,Math.min(w,h)/2);return{w,h,radius,custom:height!==size||w!==size-1||h!==size-1||radius!==0}}calendarCellShape(size){const radius=this.calendarSpacing().radius;return radius>0?{w:size,h:size,radius:Math.min(radius,size/2),custom:!0}:void 0}fillMatrixCell(ctx,x,y,shape){shape.radius===0?ctx.fillRect(x,y,shape.w,shape.h):(ctx.beginPath(),ctx.roundRect(x,y,shape.w,shape.h,shape.radius),ctx.fill())}paintMatrixCell(ctx,row,col,cellSize,rowHeight,shape,cs,rampData,noDataFill){const value=this.matrixValues[row]?.[col]??Number.NaN,bounds=this.cachedValueRange,lo=bounds?bounds[0]:0,hi=bounds?bounds[1]:1,override=this.cellColor?.({row,col},value);if(override!=null)ctx.fillStyle=this.resolveCellColor(override,cs);else if(this.isNoData(value))ctx.fillStyle=noDataFill;else if(this.scale==="sqrt"){const step=sqrtStep(value,hi,rampData.colors.length);ctx.fillStyle=step<0?noDataFill:rampData.colors[step]}else this.cachedColorSteps.length>=2?ctx.fillStyle=rampData.colors[this.rampBucket(value,lo,hi,rampData.colors.length)]:ctx.fillStyle=mixRgb(rampData.loRgb,rampData.hiRgb,this.rampAlpha(value,lo,hi));this.fillMatrixCell(ctx,this.matrixPadLeft+col*cellSize,this.matrixPadTop+row*rowHeight,shape)}paintMatrixFocusOverlays(ctx,row,col,cellSize,rowHeight,shape,cs,state2){const x=this.matrixPadLeft+col*cellSize,y=this.matrixPadTop+row*rowHeight;state2==="annotation"&&this.cachedMatrixAnnotationPositions.has(`${row}:${col}`)&&this.strokeCellState(ctx,x,y,cellSize,"annotation",this.annotationColor(cs),shape),state2==="selected"&&this.isSelectedPos({row,col})&&this.strokeCellState(ctx,x,y,cellSize,"selected",this.selectedColor(cs),shape),state2==="focus"&&this.focusedCell&&"row"in this.focusedCell&&this.focusedCell.row===row&&this.focusedCell.col===col&&this.strokeCellState(ctx,x,y,cellSize,"focus",this.focusRingColor(cs),shape)}focusRepaintBounds(ctx,x,y,cellSize,cellHeight=cellSize){const padding=RING_LINE_WIDTH+1,dpr=ctx.getTransform().a,left=Math.floor((x-padding)*dpr)/dpr,top=Math.floor((y-padding)*dpr)/dpr,right=Math.ceil((x+cellSize+padding)*dpr)/dpr,bottom=Math.ceil((y+cellHeight+padding)*dpr)/dpr;return{left,top,width:right-left,height:bottom-top,radius:Math.ceil((2*padding+1/dpr)/cellSize),rowRadius:Math.ceil((2*padding+1/dpr)/cellHeight)}}repaintMatrixFocusCell(pos){this.withLabelCache(()=>this.paintMatrixFocusCell(pos))}paintMatrixFocusCell(pos){if(!pos||!this.canvas)return;const rows=this.matrixRowLabels.length,cols=this.matrixColLabels.length;if(pos.row<0||pos.row>=rows||pos.col<0||pos.col>=cols)return;const cellSize=this.matrixCellSize(cols),rowHeight=this.matrixRowHeight(cellSize),shape=this.matrixCellShape(cellSize,rowHeight),x=this.matrixPadLeft+pos.col*cellSize,y=this.matrixPadTop+pos.row*rowHeight,ctx=this.canvas.getContext("2d");if(!ctx)return;const cs=this.ownerDocument.defaultView?.getComputedStyle(this);if(!cs)return;const{left,top,width,height,radius,rowRadius}=this.focusRepaintBounds(ctx,x,y,cellSize,rowHeight),firstRow=Math.max(0,pos.row-rowRadius),lastRow=Math.min(rows-1,pos.row+rowRadius),firstCol=Math.max(0,pos.col-radius),lastCol=Math.min(cols-1,pos.col+radius),ramp=this.colorRamp(RAMP_STEPS,cs),noData=this.noDataFill(cs),scratch=rowHeight===cellSize?void 0:this.ownerDocument.createElement("canvas"),dpr=ctx.getTransform().a,scratchLeft=Math.floor((this.matrixPadLeft+firstCol*cellSize-RING_LINE_WIDTH-1)*dpr)/dpr,scratchTop=Math.floor((this.matrixPadTop+firstRow*rowHeight-RING_LINE_WIDTH-1)*dpr)/dpr;if(scratch){const right=Math.ceil((this.matrixPadLeft+(lastCol+1)*cellSize+RING_LINE_WIDTH+1)*dpr),bottom=Math.ceil((this.matrixPadTop+(lastRow+1)*rowHeight+RING_LINE_WIDTH+1)*dpr);scratch.width=right-Math.round(scratchLeft*dpr),scratch.height=bottom-Math.round(scratchTop*dpr)}const paintCtx=scratch?.getContext("2d")??ctx;if(scratch&&paintCtx===ctx){this.drawMatrix();return}paintCtx.save();try{scratch?paintCtx.setTransform(dpr,0,0,dpr,-scratchLeft*dpr,-scratchTop*dpr):(paintCtx.beginPath(),paintCtx.rect(left,top,width,height),paintCtx.clip(),paintCtx.clearRect(left,top,width,height));for(let row=firstRow;row<=lastRow;row++)for(let col=firstCol;col<=lastCol;col++)this.paintMatrixCell(paintCtx,row,col,cellSize,rowHeight,shape,cs,ramp,noData);for(const state2 of["annotation","selected","focus"])for(let row=firstRow;row<=lastRow;row++)for(let col=firstCol;col<=lastCol;col++)this.paintMatrixFocusOverlays(paintCtx,row,col,cellSize,rowHeight,shape,cs,state2);left<this.matrixPadLeft&&this.paintMatrixRowLabels(paintCtx,this.matrixPadLeft,this.matrixPadTop,rowHeight,cs,{top,bottom:top+height}),top<this.matrixPadTop&&this.paintMatrixColLabels(paintCtx,this.matrixPadLeft,this.matrixPadTop,cellSize,cs,{first:firstCol,last:lastCol})}finally{paintCtx.restore()}if(scratch){ctx.save();try{ctx.setTransform(1,0,0,1,0,0),ctx.clearRect(left*dpr,top*dpr,width*dpr,height*dpr),ctx.drawImage(scratch,Math.round((left-scratchLeft)*dpr),Math.round((top-scratchTop)*dpr),Math.round(width*dpr),Math.round(height*dpr),Math.round(left*dpr),Math.round(top*dpr),Math.round(width*dpr),Math.round(height*dpr))}finally{ctx.restore()}}}paintCalendarCell(ctx,week,weekday,cellSize,cs,ramp,noDataFill){const value=this.calendarValueAt(week,weekday),bounds=this.cachedValueRange,lo=bounds?bounds[0]:0,hi=bounds?bounds[1]:1,override=this.cellColor?.(this.calendarPos(week,weekday),value);if(override!=null)ctx.fillStyle=this.resolveCellColor(override,cs);else if(this.isNoData(value))ctx.fillStyle=noDataFill;else if(this.scale==="sqrt"){const step=sqrtStep(value,hi,ramp.length);ctx.fillStyle=step<0?noDataFill:ramp[step]}else this.cachedColorSteps.length>=2?ctx.fillStyle=ramp[this.rampBucket(value,lo,hi,ramp.length)]:ctx.fillStyle=ramp[quartileBucket(value,this.cachedCalendarSortedValues,ramp.length)];this.fillCalendarCell(ctx,this.columnXFor(week),this.rowYFor(weekday),cellSize,this.calendarSpacing().radius)}fillCalendarCell(ctx,x,y,size,radius){radius===0?ctx.fillRect(x,y,size,size):(ctx.beginPath(),ctx.roundRect(x,y,size,size,radius),ctx.fill())}recordCalendarGeometry(spacing,weekCount){const next={padLeft:this.calendarPadLeft,padTop:CAL_LABEL_H,cellSize:spacing.cellSize,cellWidth:spacing.cellSize,cellHeight:spacing.cellSize,cellGapX:spacing.gapX,cellGapY:spacing.gapY,cellRadius:spacing.radius,weekCount,firstDayOfWeek:this.normalizedFirstDayOfWeek},previous=this.lastPaintedCalendarGeometry;if(previous&&Object.keys(next).every(key=>previous[key]===next[key]))return!1;const frozen=Object.freeze(next);return this.lastPaintedCalendarGeometry=frozen,this.emit("lr-calendar-geometry-change",frozen),!0}paintCalendarFocusOverlays(ctx,week,weekday,cellSize,cs,state2){const date=this.calendarDateAt(week,weekday),x=this.columnXFor(week),y=this.rowYFor(weekday);state2==="annotation"&&this.cachedCalendarCellsByDate.has(date)&&this.cachedCalendarAnnotationDates.has(date)&&this.strokeCellState(ctx,x,y,cellSize,"annotation",this.annotationColor(cs)),state2==="selected"&&(this.multiple||this.cachedCalendarCellsByDate.has(date))&&this.isSelectedPos({week,weekday,date})&&this.strokeCellState(ctx,x,y,cellSize,"selected",this.selectedColor(cs)),state2==="focus"&&this.focusedCell&&"week"in this.focusedCell&&this.focusedCell.week===week&&this.focusedCell.weekday===weekday&&this.strokeCellState(ctx,x,y,cellSize,"focus",this.focusRingColor(cs))}repaintCalendarFocusCell(pos){this.withLabelCache(()=>this.paintCalendarFocusCell(pos))}paintCalendarFocusCell(pos){if(!pos||!this.canvas)return;const{weekCount,firstWeekStart}=this.cachedCalendarGrid;if(pos.week<0||pos.week>=weekCount||pos.weekday<0||pos.weekday>=7)return;const cellSize=this.calendarCellSize(),x=this.columnXFor(pos.week),y=this.rowYFor(pos.weekday),ctx=this.canvas.getContext("2d");if(!ctx)return;const cs=this.ownerDocument.defaultView?.getComputedStyle(this);if(!cs)return;const{left,top,width,height,radius}=this.focusRepaintBounds(ctx,x,y,cellSize),firstWeek=Math.max(0,pos.week-radius),lastWeek=Math.min(weekCount-1,pos.week+radius),firstDay=Math.max(0,pos.weekday-radius),lastDay=Math.min(6,pos.weekday+radius),ramp=this.colorRamp(normalizeBucketCount(this.bucketCount),cs).colors,noData=this.noDataFill(cs);ctx.save();try{ctx.beginPath(),ctx.rect(left,top,width,height),ctx.clip(),ctx.clearRect(left,top,width,height);for(let week=firstWeek;week<=lastWeek;week++)for(let day=firstDay;day<=lastDay;day++)this.paintCalendarCell(ctx,week,day,cellSize,cs,ramp,noData);for(const state2 of["annotation","selected","focus"])for(let week=firstWeek;week<=lastWeek;week++)for(let day=firstDay;day<=lastDay;day++)this.paintCalendarFocusOverlays(ctx,week,day,cellSize,cs,state2);this.paintCalendarAxisLabels(ctx,cellSize,cs,firstWeekStart,this.cachedCalendarGrid.monthLabels,top<CAL_LABEL_H,left<this.calendarPadLeft)}finally{ctx.restore()}}drawMatrix(){this.withLabelCache(()=>this.paintMatrix())}paintMatrix(){if(!this.canvas)return;const rows=this.matrixRowLabels.length,cols=this.matrixColLabels.length,cs=this.ownerDocument.defaultView?.getComputedStyle(this);if(!cs)return;this.rowLabelWidth==="auto"&&(this.resolvedRowLabelWidth=this.measureRowLabelWidth(cs)),this.colLabelHeight==="auto"&&(this.resolvedColLabelHeight=this.measureColLabelHeight(cs));const padLeft=this.matrixPadLeft,padTop=this.matrixPadTop,cellSize=this.matrixCellSize(cols),rowHeight=this.matrixRowHeight(cellSize),shape=this.matrixCellShape(cellSize,rowHeight),dimensions=shape.custom?{cellWidth:shape.w,cellHeight:shape.h,cellRadius:shape.radius}:{},previous=this.lastPaintedMatrixGeometry,geometry=previous&&previous.padLeft===padLeft&&previous.padTop===padTop&&previous.cellSize===cellSize&&previous.rowHeight===(rowHeight===cellSize?void 0:rowHeight)&&previous.cellWidth===dimensions.cellWidth&&previous.cellHeight===dimensions.cellHeight&&previous.cellRadius===dimensions.cellRadius?previous:Object.freeze({padLeft,padTop,cellSize,...rowHeight===cellSize?{}:{rowHeight},...dimensions});this.lastPaintedMatrixGeometry=geometry;const geometryChanged=geometry!==previous;geometryChanged&&this.emit("lr-matrix-geometry-change",geometry);const w=padLeft+cols*cellSize,h=padTop+rows*rowHeight,ctx=this.sizeCanvas(this.canvas,w,h);if(!ctx)return;ctx.clearRect(0,0,w,h);const bounds=this.cachedValueRange,lo=bounds?bounds[0]:0,hi=bounds?bounds[1]:1,rampData=this.colorRamp(RAMP_STEPS,cs),ramp=rampData.colors,{loRgb,hiRgb}=rampData,noDataFill=this.noDataFill(cs);this.canvasColorCache.clear();for(let r=0;r<rows;r++)for(let c=0;c<cols;c++){const v=this.matrixValues[r]?.[c]??Number.NaN,x=padLeft+c*cellSize,y=padTop+r*rowHeight,override=this.cellColor?.({row:r,col:c},v);if(override!=null)ctx.fillStyle=this.resolveCellColor(override,cs);else if(this.isNoData(v))ctx.fillStyle=noDataFill;else if(this.scale==="sqrt"){const step=sqrtStep(v,hi,ramp.length);ctx.fillStyle=step<0?noDataFill:ramp[step]}else if(this.cachedColorSteps.length>=2){const step=this.rampBucket(v,lo,hi,ramp.length);ctx.fillStyle=ramp[step]}else{const t=this.rampAlpha(v,lo,hi);ctx.fillStyle=mixRgb(loRgb,hiRgb,t)}this.fillMatrixCell(ctx,x,y,shape)}if(this.cachedAnnotations.length)for(const ann of this.cachedAnnotations){if(ann.row==null||ann.col==null||ann.row<0||ann.row>=rows||ann.col<0||ann.col>=cols)continue;const x=padLeft+ann.col*cellSize,y=padTop+ann.row*rowHeight;this.strokeCellState(ctx,x,y,cellSize,"annotation",this.annotationColor(cs),shape)}for(const selected of this.selectedPaintPositions()){if(!("row"in selected))continue;const{row,col}=selected;if(row>=0&&row<rows&&col>=0&&col<cols){const x=padLeft+col*cellSize,y=padTop+row*rowHeight;this.strokeCellState(ctx,x,y,cellSize,"selected",this.selectedColor(cs),shape)}}if(this.focusedCell&&"row"in this.focusedCell){const{row,col}=this.focusedCell;if(row<rows&&col<cols){const x=padLeft+col*cellSize,y=padTop+row*rowHeight;this.strokeCellState(ctx,x,y,cellSize,"focus",this.focusRingColor(cs),shape)}}this.paintMatrixRowLabels(ctx,padLeft,padTop,rowHeight,cs),this.paintMatrixColLabels(ctx,padLeft,padTop,cellSize,cs),this.paintFrozenLabelBands(padLeft,padTop,cellSize,rowHeight,w,h,ctx.getTransform().a,cs),this.canvasHasContent=!0,geometryChanged&&this.accessibleCells&&this.scheduleAfterUpdate(()=>this.requestUpdate(),"heatmap-matrix-accessible-geometry")}paintMatrixRowLabels(ctx,padLeft,padTop,cellSize,cs,dirty){ctx.fillStyle=this.labelColor(cs),ctx.font=this.labelFont(cs);const rowLabelSpace=padLeft-ROW_LABEL_INSET*2;let first=0,last=this.matrixRowLabels.length-1;if(dirty){const{fontBoundingBoxAscent,fontBoundingBoxDescent}=ctx.measureText("M"),baseline=padTop+cellSize/2+3;first=Math.max(first,Math.floor((dirty.top-fontBoundingBoxDescent-baseline)/cellSize)),last=Math.min(last,Math.ceil((dirty.bottom+fontBoundingBoxAscent-baseline)/cellSize))}for(let r=first;r<=last;r++){const shown=this.ellipsize(ctx,this.matrixRowLabels[r],rowLabelSpace);shown&&ctx.fillText(shown,ROW_LABEL_INSET,padTop+r*cellSize+cellSize/2+3)}}paintMatrixColLabels(ctx,padLeft,padTop,cellSize,cs,columns){ctx.fillStyle=this.labelColor(cs),ctx.font=this.labelFont(cs);const colRotation=this.effectiveColLabelRotation,interval=finiteInteger(this.colLabelInterval,1,1);if(colRotation===0){const cols=this.matrixColLabels.length;this.matrixColLabels.forEach((label,c)=>{if(c%interval!==0||columns&&(c<columns.first-interval+1||c>columns.last))return;const shown=this.ellipsize(ctx,label,Math.min(interval,cols-c)*cellSize-2);shown&&ctx.fillText(shown,padLeft+c*cellSize+2,padTop-COL_LABEL_INSET)});return}const radians=colRotation*Math.PI/180,previousAlign=ctx.textAlign;ctx.textAlign="right",this.matrixColLabels.forEach((label,c)=>{c%interval===0&&(ctx.save(),ctx.translate(padLeft+c*cellSize+cellSize/2,padTop-COL_LABEL_INSET),ctx.rotate(radians),ctx.fillText(label,0,0),ctx.restore())}),ctx.textAlign=previousAlign}paintFrozenLabelBands(padLeft,padTop,cellSize,rowHeight,width,height,scale,cs){if(this.effectiveStickyLabels==="none")return;const backdrop=this.stickyLabelBg(cs),rowBand=this.frozenBandCanvas("row-labels");rowBand&&this.paintFrozenBand(rowBand,padLeft,height,scale,backdrop,bandCtx=>this.paintMatrixRowLabels(bandCtx,padLeft,padTop,rowHeight,cs));const colBand=this.frozenBandCanvas("col-labels");colBand&&this.paintFrozenBand(colBand,width,padTop,scale,backdrop,bandCtx=>this.paintMatrixColLabels(bandCtx,padLeft,padTop,cellSize,cs))}frozenBandCanvas(part){return this.shadowRoot?.querySelector(`[part="${part}"]`)??null}sizeCanvas(canvas,width,height,desiredScale=this.ownerDocument.defaultView?.devicePixelRatio){const{pixelWidth,pixelHeight,scale}=resolveBoundedCanvasAllocation({cssWidth:width,cssHeight:height,desiredScale,maxDimension:MAX_CANVAS_DIMENSION,maxPixels:MAX_CANVAS_PIXELS});canvas.width=pixelWidth,canvas.height=pixelHeight,canvas.style.width=`${width}px`,canvas.style.height=`${height}px`;const ctx=canvas.getContext("2d");return ctx?.scale(scale,scale),ctx}paintFrozenBand(canvas,width,height,scale,backdrop,paint){const ctx=this.sizeCanvas(canvas,width,height,scale);ctx&&(ctx.clearRect(0,0,width,height),ctx.fillStyle=backdrop,ctx.fillRect(0,0,width,height),paint(ctx))}hitTest(x,y){return this.effectiveMode==="calendar"?this.hitTestCalendar(x,y):this.hitTestMatrix(x,y)}matrixNavigationGeometry(rows,cols){const painted=this.lastPaintedMatrixGeometry;if(painted)return{rows,cols,padLeft:painted.padLeft,padTop:painted.padTop,cellSize:painted.cellSize,rowHeight:painted.rowHeight??painted.cellSize,cellWidth:painted.cellWidth??painted.cellSize-1,cellHeight:painted.cellHeight??painted.cellSize-1,customShape:painted.cellWidth!==void 0};const cellSize=this.matrixCellSize(cols),rowHeight=this.matrixRowHeight(cellSize),shape=this.matrixCellShape(cellSize,rowHeight);return{rows,cols,padLeft:this.matrixPadLeft,padTop:this.matrixPadTop,cellSize,rowHeight,cellWidth:shape.w,cellHeight:shape.h,customShape:shape.custom}}calendarNavigationGeometry(){const spacing=this.calendarSpacing(),cellSize=spacing.cellSize,columnPositions=this.calendarColumnPositions(spacing),rowPositions=this.calendarRowPositions(spacing);return{weekCount:this.cachedCalendarGrid.weekCount,cellSize,columnPositions,rowPositions,padLeft:this.calendarPadLeft,padTop:CAL_LABEL_H}}hitTestMatrix(x,y){const rows=this.matrixRowLabels.length,cols=this.matrixColLabels.length;return rows===0||cols===0?null:hitTestMatrixGrid(x,y,this.matrixNavigationGeometry(rows,cols),pos=>this.isCellInteractive(pos))}firstInteractiveMatrixCell(rows,cols){return findFirstInteractiveMatrixCell(rows,cols,pos=>this.isCellInteractive(pos))}nextInteractiveMatrixCell(row,col,dRow,dCol,rows,cols){return findNextInteractiveMatrixCell(row,col,dRow,dCol,rows,cols,pos=>this.isCellInteractive(pos))}firstInteractiveCalendarCell(weekCount){return findFirstInteractiveCalendarCell(weekCount,(week,weekday)=>this.calendarPos(week,weekday),pos=>this.isCellInteractive(pos))}nextInteractiveCalendarCell(week,weekday,dWeek,dWeekday,weekCount){return findNextInteractiveCalendarCell(week,weekday,dWeek,dWeekday,weekCount,(nextWeek,nextWeekday)=>this.calendarPos(nextWeek,nextWeekday),pos=>this.isCellInteractive(pos))}hitTestCalendar(x,y){const weekCount=this.cachedCalendarGrid.weekCount;if(weekCount===0)return null;const spacing=this.calendarSpacing(),columnPositions=this.calendarColumnPositions(spacing);return hitTestCalendarGrid(x,y,weekCount,columnPositions,()=>spacing.cellSize,()=>this.calendarRowPositions(spacing),(week,weekday)=>this.calendarPos(week,weekday),pos=>this.isCellInteractive(pos))}calendarCellAt(pos){return readCalendarCell(pos.week,pos.weekday,this.cachedCalendarCellsByPos,this.cachedCalendarDateByPos,this.cachedCalendarGrid.firstWeekStart,this.signedDomain)}calendarValueAt(week,weekday){return readCalendarValue(week,weekday,this.cachedCalendarCellsByPos,this.signedDomain)}calendarDateAt(week,weekday){return readCalendarDate(week,weekday,this.cachedCalendarDateByPos,this.cachedCalendarGrid.firstWeekStart)}calendarPos(week,weekday){return{week,weekday,date:this.calendarDateAt(week,weekday)}}cellRect(pos){return"week"in pos?calendarCellRect(pos.week,pos.weekday,this.calendarNavigationGeometry()):matrixCellRect(pos,this.matrixNavigationGeometry(this.matrixRowLabels.length,this.matrixColLabels.length))}accessibleCellRect(pos){return"week"in pos||!this.lastPaintedMatrixGeometry?this.cellRect(pos):accessibleMatrixCellRect(pos,this.lastPaintedMatrixGeometry)}defaultCellText(pos){return"week"in pos?this.calendarCellText(pos):this.matrixCellText(pos)}matrixCellText(pos){const rowLabel=this.matrixRowLabels[pos.row]??this.localize("heatmapDefaultRowLabel",void 0,{n:this.formatCount(pos.row+1)}),colLabel=this.matrixColLabels[pos.col]??this.localize("heatmapDefaultColLabel",void 0,{n:this.formatCount(pos.col+1)}),v=this.matrixValues[pos.row]?.[pos.col],valueText=v==null||this.isNoData(v)?this.localize("heatmapNoDataValue"):this.formatNumericValue(v);return this.localize("heatmapMatrixCellLabel",void 0,{row:rowLabel,col:colLabel,value:valueText})}calendarCellText(pos){const{date,value}=this.calendarCellAt(pos),label=getDateTimeFormat(this.effectiveLocale||void 0,{month:"short",day:"numeric",timeZone:"UTC"}).format(parseIsoDate(date)),valueText=this.isNoData(value)?this.localize("heatmapNoDataValue"):this.formatNumericValue(value);return this.localize("heatmapCalendarCellLabel",void 0,{date:label,value:valueText})}valueAt(pos){return"week"in pos?this.calendarCellAt(pos).value:this.matrixValues[pos.row]?.[pos.col]??-1}resolveCellText(pos){return this.cellText?this.cellText(pos,this.valueAt(pos)):this.defaultCellText(pos)}isCellInteractive(pos){return this.cellInteractive?.(pos,this.valueAt(pos))??!0}announce(pos,isSelectedOverride){const text=this.resolveCellText(pos),announcement=isSelectedOverride??this.isSelectedPos(pos)?this.localize("heatmapSelectedCellLabel",void 0,{cell:text}):text;this.liveText=announcement,this.announcements.announcePolite(announcement)}emitCellClick(pos,source="pointer",select=!0,current){if(!this.isCellInteractive(pos)||current&&!current())return;this.multiple&&select&&(this.selectionAnchor=pos,this.selectionRangeBase=void 0,this.toggleSelectionPositions([pos],source));let detail;if("week"in pos){const{date,value}=this.calendarCellAt(pos);detail={date,value}}else{const value=this.matrixValues[pos.row]?.[pos.col]??-1;detail={row:pos.row,col:pos.col,value}}this.emit("lr-cell-activate",{...detail})}get currentSelectedPositions(){return this.selectionPreview??this.selectedPositions}selectedPaintPositions(){if(this.multiple)return[...this.currentSelectedPositions.values()];const selected=this.selectedCell;if(!selected)return[];if(this.effectiveMode==="calendar"){const match=selected.date?this.cachedCalendarCellsByDate.get(selected.date):void 0;return match?[match]:[]}return selected.row!=null&&selected.col!=null?[{row:selected.row,col:selected.col}]:[]}rebuildSelectedPositions(){const positions=new Map,dates=this.effectiveMode==="calendar"?new Map(this.cachedAccessiblePositions.map(pos=>[this.accessibleCellIdentity(pos),pos])):void 0,input=Array.isArray(this.selectedCells)?this.selectedCells:[];for(let index=0;index<Math.min(input.length,MAX_HEATMAP_CELLS);index++){const cell=input[index];if(!cell||typeof cell!="object")continue;const pos=dates?typeof cell.date=="string"?dates.get(cell.date):void 0:Number.isInteger(cell.row)&&Number.isInteger(cell.col)?this.cachedAccessiblePositionsByKey.get(`matrix-${cell.row}-${cell.col}`):void 0;pos&&positions.set(this.accessibleCellKey(pos),pos)}this.selectedPositions=positions}selectionCoordinates(pos){return"week"in pos?{row:pos.weekday,col:pos.week}:pos}proposeSelection(positions,source){if(positions.size===this.selectedPositions.size&&[...positions.keys()].every(key=>this.selectedPositions.has(key)))return;this.proposedSelectionKeys=new Set(positions.keys());const selectedCells=[...positions.values()].sort((a,b)=>{const first=this.selectionCoordinates(a),second=this.selectionCoordinates(b);return first.row-second.row||first.col-second.col}).map(pos=>"week"in pos?{date:pos.date}:{row:pos.row,col:pos.col});this.emit("lr-selection-change",{selectedCells,source})}toggleSelectionPositions(positions,source){if(!this.multiple||positions.length===0)return;const next=new Map(this.selectedPositions),remove=positions.every(pos=>next.has(this.accessibleCellKey(pos)));for(const pos of positions){const key=this.accessibleCellKey(pos);remove?next.delete(key):next.set(key,pos)}this.proposeSelection(next,source)}toggleSelectionAxis(index,row){!this.multiple||!Number.isInteger(index)||index<0||(this.cancelSelectionGesture(),this.selectionRangeBase=void 0,this.toggleSelectionPositions(this.cachedAccessiblePositions.filter(pos=>{const coordinates=this.selectionCoordinates(pos);return(row?coordinates.row:coordinates.col)===index}),row?"row":"column"))}selectionKeyDown(event,pos){if(!this.multiple)return!1;if(event.key==="Escape"&&this.selectionGesture)return event.preventDefault(),this.cancelSelectionGesture(),!0;if(event.key!==" "||!pos||!(event.shiftKey||event.ctrlKey||event.metaKey))return!1;event.preventDefault();const coordinates=this.selectionCoordinates(pos);return event.ctrlKey||event.metaKey?this.toggleColumnSelection(coordinates.col):this.toggleRowSelection(coordinates.row),!0}extendSelection(previous,next,range){if(!this.multiple)return;if(!range){this.selectionAnchor=next,this.selectionRangeBase=void 0;return}this.selectionAnchor??=previous??next,this.selectionRangeBase??=new Map(this.selectedPositions);const from=this.selectionCoordinates(this.selectionAnchor),to=this.selectionCoordinates(next),selected=new Map(this.selectionRangeBase);for(let row=Math.min(from.row,to.row);row<=Math.max(from.row,to.row);row++)for(let col=Math.min(from.col,to.col);col<=Math.max(from.col,to.col);col++){const key=this.effectiveMode==="calendar"?`calendar-${col}-${row}`:`matrix-${row}-${col}`,pos=this.cachedAccessiblePositionsByKey.get(key);pos&&selected.set(key,pos)}return this.proposeSelection(selected,"keyboard"),new Set(selected.keys())}selectionPointerPosition(event){if(!this.canvas)return null;const rect=this.canvas.getBoundingClientRect();return this.hitTest(event.clientX-rect.left,event.clientY-rect.top)}captureSelectionContext(){const data=this.data,maxCells=this.maxCells,interactive=this.cellInteractive,selected=this.selectedCells,accessible=this.accessibleCells,source=this.matrixSource,owner=this.ownerDocument;return(allowSelectionChange=!1)=>this.isConnected&&this.ownerDocument===owner&&this.multiple&&this.data===data&&Object.is(this.maxCells,maxCells)&&this.cellInteractive===interactive&&this.accessibleCells===accessible&&this.matrixSource===source&&(allowSelectionChange||this.selectedCells===selected)}paintSelectionTo(pos){const gesture=this.selectionGesture;if(!gesture)return;this.samePos(pos,gesture.previous)||(gesture.moved=!0);const from=this.selectionCoordinates(gesture.previous),to=this.selectionCoordinates(pos),steps=Math.max(Math.abs(to.row-from.row),Math.abs(to.col-from.col),1),changed=[];for(let step=0;step<=steps;step++){const row=Math.round(from.row+(to.row-from.row)*step/steps),col=Math.round(from.col+(to.col-from.col)*step/steps),key=this.effectiveMode==="calendar"?`calendar-${col}-${row}`:`matrix-${row}-${col}`,candidate=this.cachedAccessiblePositionsByKey.get(key);candidate&&(gesture.cells.has(key)!==gesture.selecting&&changed.push(candidate),gesture.selecting?gesture.cells.set(key,candidate):gesture.cells.delete(key))}if(gesture.previous=pos,this.selectionPreview!==gesture.cells){this.selectionPreview=gesture.cells;return}this.requestUpdate(),(changed.length>16||!changed.every(cell=>this.repaintCell(cell)))&&this.requestDraw()}repaintCell(pos){return!this.canvasHasContent||!this.canvas||this.drawDirty?!1:("week"in pos?this.repaintCalendarFocusCell(pos):this.repaintMatrixFocusCell(pos),!0)}cancelSelectionGesture(){const gesture=this.selectionGesture;if(this.selectionGesture=void 0,this.selectionPreview=void 0,!!gesture){this.suppressSelectionClick=!0;try{gesture.target.hasPointerCapture(gesture.pointerId)&&gesture.target.releasePointerCapture(gesture.pointerId)}catch{}}}consumeSelectionClick(event){return!this.suppressSelectionClick||event.detail===0?!1:(this.suppressSelectionClick=!1,!0)}get gridScrollport(){return this.shadowRoot?.querySelector('[part="grid"]')??null}measureTooltip(){if(!this.gridScrollport)return;const tooltip=this.shadowRoot?.querySelector('[part="tooltip"]');if(!tooltip||tooltip.hidden)return;const view=this.ownerDocument.defaultView,gap=view?Math.abs(finiteNumber(Number.parseFloat(view.getComputedStyle(tooltip).marginBlockStart),0)):0,inline=tooltip.offsetWidth,block=tooltip.offsetHeight+gap;inline===this.tooltipSize.inline&&block===this.tooltipSize.block||(this.tooltipSize={inline,block},this.requestUpdate())}tooltipAnchor(pos){const rect=this.cellRect(pos),center=rect.x+rect.w/2,port=this.gridScrollport;if(!port)return{style:{left:`${center}px`,top:`${rect.y}px`},below:!1};const{inline,block}=this.tooltipSize,windowStart=port.scrollLeft+(this.freezesRowLabels?this.matrixPadLeft:0),windowEnd=port.scrollLeft+port.clientWidth,windowTop=port.scrollTop+(this.freezesColLabels?this.matrixPadTop:0),windowBottom=port.scrollTop+port.clientHeight,below=rect.y-block<windowTop&&rect.y+rect.h+block<=windowBottom;return{style:{left:`${Math.max(windowStart+inline/2,Math.min(center,windowEnd-inline/2))}px`,top:`${below?rect.y+rect.h:rect.y}px`},below}}scrollCellIntoView(pos){const port=this.gridScrollport;if(!port)return;const rect=this.cellRect(pos),bandInline=this.freezesRowLabels?this.matrixPadLeft:0,bandBlock=this.freezesColLabels?this.matrixPadTop:0,left=Math.min(Math.max(port.scrollLeft,rect.x+rect.w-port.clientWidth),rect.x-bandInline),top=Math.min(Math.max(port.scrollTop,rect.y+rect.h-port.clientHeight),rect.y-bandBlock);left!==port.scrollLeft&&(port.scrollLeft=left),top!==port.scrollTop&&(port.scrollTop=top)}samePos(a,b){return a===b?!0:!a||!b?!1:"week"in a&&"week"in b?a.week===b.week&&a.weekday===b.weekday:"row"in a&&"row"in b?a.row===b.row&&a.col===b.col:!1}edgeCell(e){if(e.key!=="Home"&&e.key!=="End")return null;const row=this.focusedCell&&!(e.ctrlKey||e.metaKey)?this.selectionCoordinates(this.focusedCell).row:void 0,cells=this.cachedAccessiblePositions.filter(pos=>row===void 0||this.selectionCoordinates(pos).row===row);return cells[e.key==="Home"?0:cells.length-1]??null}onMatrixKeyDown(e){const rows=this.matrixRowLabels.length,cols=this.matrixColLabels.length;if(rows===0||cols===0)return;if(e.key==="Enter"||e.key===" "){e.preventDefault(),this.focusedCell&&this.emitCellClick(this.focusedCell,"keyboard");return}if(!ARROW_KEYS.has(e.key))return;if(e.preventDefault(),!this.focusedCell||!("row"in this.focusedCell)){const next2=this.firstInteractiveMatrixCell(rows,cols);if(!next2)return;this.focusedCell=next2,this.scrollCellIntoView(next2);return}const{row,col}=this.focusedCell;let dRow=0,dCol=0;e.key==="ArrowUp"?dRow=-1:e.key==="ArrowDown"?dRow=1:e.key==="ArrowLeft"?dCol=-1:e.key==="ArrowRight"&&(dCol=1);const next=this.nextInteractiveMatrixCell(row,col,dRow,dCol,rows,cols);this.focusedCell=next,this.scrollCellIntoView(next)}onCalendarKeyDown(e){const{weekCount}=this.cachedCalendarGrid;if(weekCount===0)return;if(e.key==="Enter"||e.key===" "){e.preventDefault(),this.focusedCell&&this.emitCellClick(this.focusedCell,"keyboard");return}if(!ARROW_KEYS.has(e.key))return;if(e.preventDefault(),!this.focusedCell||!("week"in this.focusedCell)){const next2=this.firstInteractiveCalendarCell(weekCount);if(!next2)return;this.focusedCell=next2;return}const{week,weekday}=this.focusedCell;let dWeek=0,dWeekday=0;e.key==="ArrowUp"?dWeekday=-1:e.key==="ArrowDown"?dWeekday=1:e.key==="ArrowLeft"?dWeek=-1:e.key==="ArrowRight"&&(dWeek=1);const next=this.nextInteractiveCalendarCell(week,weekday,dWeek,dWeekday,weekCount);this.focusedCell=next}resolveCellColor(value,cs){let color=this.canvasColorCache.get(value);if(color===void 0){const ctx=SCOPED_COLOR.test(value)?null:getScratchCtx(this.ownerDocument);if(ctx){ctx.fillStyle="rgb(1, 2, 3)";const rejected=ctx.fillStyle;ctx.fillStyle=value,ctx.fillStyle!==rejected&&(color=ctx.fillStyle)}color??=resolveCanvasColor(this,value,this.noDataFill(cs)),this.canvasColorCache.set(value,color)}return color}rebuildAccessiblePositions(){const positions=[];if(this.effectiveMode==="calendar"){const{weekCount}=this.cachedCalendarGrid;for(let week=0;week<weekCount;week++)for(let weekday=0;weekday<7;weekday++){const pos=this.calendarPos(week,weekday);this.isCellInteractive(pos)&&positions.push(pos)}}else for(let row=0;row<this.matrixRowLabels.length;row++)for(let col=0;col<this.matrixColLabels.length;col++){const pos={row,col};this.isCellInteractive(pos)&&positions.push(pos)}this.cachedAccessiblePositions=positions,this.cachedAccessiblePositionsByKey=new Map(positions.map(position=>[this.accessibleCellKey(position),position])),this.cachedAccessiblePositionIndexByKey=new Map(positions.map((position,index)=>[this.accessibleCellKey(position),index]))}accessibleCellPositions(){return this.cachedAccessiblePositions}accessibleCellKey(pos){return"week"in pos?`calendar-${pos.week}-${pos.weekday}`:`matrix-${pos.row}-${pos.col}`}accessibleCellIdentity(pos){return"week"in pos?pos.date:this.accessibleCellKey(pos)}accessibleCellAtKey(key){return this.cachedAccessiblePositionsByKey.get(key)??null}focusAccessibleCell(pos){pos&&this.updateComplete.then(()=>{[...this.shadowRoot?.querySelectorAll('[part="cell"]')??[]].find(candidate=>candidate.dataset.cellKey===this.accessibleCellKey(pos))?.focus()})}accessibleWindowStart(){const positions=this.accessibleCellPositions(),focusIndex=this.focusedCell?this.cachedAccessiblePositionIndexByKey.get(this.accessibleCellKey(this.focusedCell))??0:0;return Math.max(0,Math.min(Math.max(0,positions.length-MAX_ACCESSIBLE_HEATMAP_CELLS),focusIndex-Math.floor(MAX_ACCESSIBLE_HEATMAP_CELLS/2)))}syncAccessibleTabStop(){if(!this.accessibleCells)return;const target=this.focusedCell??this.cachedAccessiblePositions[0],key=target?this.accessibleCellKey(target):void 0,previous=this.renderRoot.querySelector('[part="cell"][tabindex="0"]');previous?.dataset.cellKey!==key&&(previous?.setAttribute("tabindex","-1"),key&&this.renderRoot.querySelector(`[data-cell-key="${key}"]`)?.setAttribute("tabindex","0"))}renderAccessibleCells(){if(!this.accessibleCells)return html``;const positions=this.accessibleCellPositions(),tabStop=this.focusedCell??positions[0]??null,focusIndex=tabStop?this.cachedAccessiblePositionIndexByKey.get(this.accessibleCellKey(tabStop))??0:0,start=Math.max(0,Math.min(Math.max(0,positions.length-MAX_ACCESSIBLE_HEATMAP_CELLS),focusIndex-Math.floor(MAX_ACCESSIBLE_HEATMAP_CELLS/2))),renderedPositions=positions.slice(start,start+MAX_ACCESSIBLE_HEATMAP_CELLS),renderedRows=new Map;for(const pos of renderedPositions){const rowIndex="week"in pos?pos.weekday+1:pos.row+1,row=renderedRows.get(rowIndex);row?row.push(pos):renderedRows.set(rowIndex,[pos])}const rowCount=this.effectiveMode==="calendar"?7:this.matrixRowLabels.length,colCount=this.effectiveMode==="calendar"?this.cachedCalendarGrid.weekCount:this.matrixColLabels.length,calendar=this.effectiveMode==="calendar"?this.calendarNavigationGeometry():void 0;return html`
|
|
24
|
-
<div
|
|
25
|
-
part="cells"
|
|
26
|
-
role="grid"
|
|
27
|
-
aria-label=${this.authorAriaLabel??this.generatedAriaLabel}
|
|
28
|
-
aria-rowcount=${rowCount}
|
|
29
|
-
aria-colcount=${colCount}
|
|
30
|
-
aria-multiselectable=${this.multiple?"true":nothing}
|
|
31
|
-
aria-describedby=${[this.getAttribute("aria-describedby")??"",this.projectionTruncated?"projection-limit":""].filter(Boolean).join(" ")||nothing}
|
|
32
|
-
>
|
|
1
|
+
import{__decorate}from"tslib";import{layoutScale}from"../../../internal/layout-scale.js";import{HeatmapMatrixSourceController}from"./heatmap-matrix-source-controller.js";import{matrixRectangle}from"./heatmap-matrix-source.js";import{revealSource,sourceCsv,sourceWillUpdate,sourceUpdated,paintSource,renderSource}from"./heatmap-source-view.js";import{lyraLocaleCatalogVersion}from"../../../internal/localization-runtime.js";import{getOwnDataDescriptor}from"../../../internal/data-descriptors.js";import{collectionSupport,publicCollectionTruncation}from"../../../internal/collection-snapshot.js";import{html,nothing}from"lit";import{property,query,state}from"lit/decorators.js";import{guard}from"lit/directives/guard.js";import{styleMap}from"lit/directives/style-map.js";import{LyraElement}from"../../../internal/lyra-element.js";import{nextId,srOnly}from"../../../internal/a11y.js";import{syncAriaDescribedByElements}from"../../../internal/aria-reflection.js";import{normalizeLabel}from"../../../internal/accessible-name.js";import{finiteCount,finiteInteger,finiteNumber,finiteRange,minMax}from"../../../internal/numbers.js";import{activateNonmodalOverlay}from"../../../internal/nonmodal-overlay-manager.js";import{armClickSuppression,capturePointer,consumeSuppressedClick,releasePointer}from"../../../internal/pointer-capture.js";import{watchDevicePixelRatio}from"../../../internal/owned-observer.js";import{isHandledOrComposingKey,isRepeatedActivationKey,shouldIgnoreNavigationKey}from"../../../internal/list-navigation.js";import{LYRA_CONTEXT_UPDATE}from"../../../internal/context-update.js";import{formatChartValue}from"../../../internal/chart-number-format.js";import{getScratchCtx,resolveBoundedCanvasAllocation}from"../../../internal/canvas.js";import{resolveCanvasColor}from"../../../internal/canvas-color.js";import{resolveCssTokenLength}from"../../../internal/css-token-length.js";import{ThemeWatcher}from"../../../internal/theme-watcher.js";import{activeElementIn,shadowFocusTarget}from"../../../internal/active-element.js";import{linearAlpha,linearBucket,midpointAlpha,midpointBucket,sqrtStep}from"./heatmap-scale.js";import{styles}from"./heatmap.styles.js";import{resolveRgb,formatRgb}from"./heatmap-colors.js";import{hexToRgb,resolveRgb as resolveRgb2}from"./heatmap-colors.js";import{DEFAULT_BUCKET_COUNT,MAX_HEATMAP_CELLS,MAX_HEATMAP_DECORATIONS,MAX_ACCESSIBLE_HEATMAP_CELLS,normalizeBucketCount}from"./heatmap-limits.js";import{MAX_BUCKET_COUNT,MAX_HEATMAP_CELLS as MAX_HEATMAP_CELLS2,MAX_HEATMAP_DECORATIONS as MAX_HEATMAP_DECORATIONS2,MAX_ACCESSIBLE_HEATMAP_CELLS as MAX_ACCESSIBLE_HEATMAP_CELLS2,normalizeBucketCount as normalizeBucketCount2}from"./heatmap-limits.js";import{buildCalendarGrid,parseIsoDate,quartileBucket}from"./calendar-grid.js";import{accessibleMatrixCellRect,calendarCellAt as readCalendarCell,calendarCellRect,calendarDateAt as readCalendarDate,isoDateAtOffset,calendarValueAt as readCalendarValue,firstInteractiveCalendarCell as findFirstInteractiveCalendarCell,firstInteractiveMatrixCell as findFirstInteractiveMatrixCell,hitTestCalendar as hitTestCalendarGrid,hitTestMatrix as hitTestMatrixGrid,matrixCellRect,nextInteractiveCalendarCell as findNextInteractiveCalendarCell,nextInteractiveMatrixCell as findNextInteractiveMatrixCell}from"./heatmap-grid-navigation.js";import{getDateTimeFormat}from"../../../internal/intl-cache.js";import{sanitizeCssColor}from"../../../internal/safe-css.js";import{HeatmapLabelCache}from"./heatmap-label-cache.js";import{devWarnOnce}from"../../../internal/dev-mode-attribute-warning.js";import{csvRow}from"../../../internal/csv.js";import{AnnouncementSinkController}from"../../../internal/announcer.js";import{PAD_LEFT,PAD_TOP,ROW_LABEL_INSET,MAX_ROW_LABEL_FRACTION,MAX_COL_LABEL_HEIGHT,COL_LABEL_INSET,labelExtentConverter,STICKY_LABELS,LEGEND_PLACEMENT,AXIS_SELECTION,FALLBACK_NO_DATA_FILL,FALLBACK_STICKY_LABEL_BG,RAMP_STEPS,FALLBACK_SCALE_LO,FALLBACK_SCALE_HI,FALLBACK_LABEL_FONT,CAL_PAD_LEFT,CAL_WEEKDAY_LABEL_INSET,CAL_LABEL_H,CAL_CELL,CAL_GAP,DEFAULT_MATRIX_CELL_SIZE,MAX_MATRIX_ROW_HEIGHT,DEFAULT_ACCESSIBLE_TARGET_SIZE_PX,FIT_MIN_CELL,RING_LINE_WIDTH,FALLBACK_FOCUS_RING_COLOR,FALLBACK_ANNOTATION_COLOR,FALLBACK_SELECTED_COLOR,SCOPED_COLOR,MAX_CANVAS_DIMENSION,MAX_CANVAS_PIXELS,ARROW_KEYS,ignoresGridKey,GRID_KEYS,MS_PER_DAY,CAL_MONTH_LABEL_GAP,optionalCellSizeConverter,DEFAULT_MATRIX_DATA,normalizeCellSizeClamp,bucketCountConverter,mixRgb,CALENDAR_SPACING_PROPERTIES}from"./heatmap-config.js";import{legendStopsChanged}from"./heatmap-model.js";import{blankNumberConverter}from"../../../internal/converters.js";import{LYRA_DEFAULT_heatmapCalendarCellLabel,LYRA_DEFAULT_heatmapCalendarLabel,LYRA_DEFAULT_heatmapDecorationLimit,LYRA_DEFAULT_heatmapDefaultColLabel,LYRA_DEFAULT_heatmapDefaultRowLabel,LYRA_DEFAULT_heatmapInputLimit,LYRA_DEFAULT_heatmapMatrixCellLabel,LYRA_DEFAULT_heatmapMatrixLabel,LYRA_DEFAULT_heatmapNoDataValue,LYRA_DEFAULT_heatmapProjectionLimit,LYRA_DEFAULT_heatmapSelectedCellLabel,LYRA_DEFAULT_heatmapSelectedCount,LYRA_DEFAULT_heatmapSourceError,LYRA_DEFAULT_heatmapSourceExactWindow,LYRA_DEFAULT_heatmapSourceKeyboardHelp,LYRA_DEFAULT_heatmapSourceMax,LYRA_DEFAULT_heatmapSourceMean,LYRA_DEFAULT_heatmapSourceMin,LYRA_DEFAULT_heatmapSourceRangeLabel,LYRA_DEFAULT_heatmapSourceSummary,LYRA_DEFAULT_heatmapValueLabel}from"../../../internal/default-strings/data.generated.js";import{LYRA_DEFAULT_loading,LYRA_DEFAULT_noData}from"../../../internal/default-strings/shared.generated.js";class LyraHeatmap extends LyraElement{static{this.defaultStrings={...super.defaultStrings,heatmapCalendarCellLabel:LYRA_DEFAULT_heatmapCalendarCellLabel,heatmapCalendarLabel:LYRA_DEFAULT_heatmapCalendarLabel,heatmapDecorationLimit:LYRA_DEFAULT_heatmapDecorationLimit,heatmapDefaultColLabel:LYRA_DEFAULT_heatmapDefaultColLabel,heatmapDefaultRowLabel:LYRA_DEFAULT_heatmapDefaultRowLabel,heatmapInputLimit:LYRA_DEFAULT_heatmapInputLimit,heatmapMatrixCellLabel:LYRA_DEFAULT_heatmapMatrixCellLabel,heatmapMatrixLabel:LYRA_DEFAULT_heatmapMatrixLabel,heatmapNoDataValue:LYRA_DEFAULT_heatmapNoDataValue,heatmapProjectionLimit:LYRA_DEFAULT_heatmapProjectionLimit,heatmapSelectedCellLabel:LYRA_DEFAULT_heatmapSelectedCellLabel,heatmapSelectedCount:LYRA_DEFAULT_heatmapSelectedCount,heatmapSourceError:LYRA_DEFAULT_heatmapSourceError,heatmapSourceExactWindow:LYRA_DEFAULT_heatmapSourceExactWindow,heatmapSourceKeyboardHelp:LYRA_DEFAULT_heatmapSourceKeyboardHelp,heatmapSourceMax:LYRA_DEFAULT_heatmapSourceMax,heatmapSourceMean:LYRA_DEFAULT_heatmapSourceMean,heatmapSourceMin:LYRA_DEFAULT_heatmapSourceMin,heatmapSourceRangeLabel:LYRA_DEFAULT_heatmapSourceRangeLabel,heatmapSourceSummary:LYRA_DEFAULT_heatmapSourceSummary,heatmapValueLabel:LYRA_DEFAULT_heatmapValueLabel,loading:LYRA_DEFAULT_loading,noData:LYRA_DEFAULT_noData}}get matrixSource(){return this.sourceInput}set matrixSource(value){const old=this.sourceInput;this.sourceInput=value,this.sourceBindingGeneration++,value===null?this.matrixController?.detach():this.matrixController?.invalidate(),this.sourceNeedsConfigure=!0,this.requestUpdate("matrixSource",old,{hasChanged:()=>!0})}get matrixViewport(){return this.sourceViewportInput}set matrixViewport(value){const old=this.sourceViewportInput;this.sourceViewportInvalid=!1;try{this.sourceViewportInput=value===null?null:matrixRectangle(value)}catch{this.sourceViewportInvalid=!0,this.sourceViewportInput=null}this.sourceViewportExplicit=!0,this.sourceNeedsConfigure=!0;const next=this.sourceViewportInput;!this.sourceViewportInvalid&&(old===next||old!==null&&next!==null&&old.rowStart===next.rowStart&&old.rowEnd===next.rowEnd&&old.columnStart===next.columnStart&&old.columnEnd===next.columnEnd)||this.matrixController?.invalidate(),this.requestUpdate("matrixViewport",old,{hasChanged:()=>!0})}scheduleUpdate(){return this.matrixSource&&!this.matrixController&&this.isConnected&&(this.matrixController=new HeatmapMatrixSourceController(this,()=>{this.sourceResult++},()=>this.effectiveLocale)),super.scheduleUpdate()}revealSourceCell(row,col){return revealSource(this,row,col)}static{this.collectionSupport=collectionSupport}static{this.immutableEventDetails=Object.freeze(["lr-selection-change"])}static{this.ownedCollectionProperties=Object.freeze(["data","annotations","legendStops","colorSteps","selectedCells"])}static{this.identityCollectionObjectProperties=Object.freeze(["data"])}static{this.styles=[LyraElement.styles,styles,srOnly]}static get observedAttributes(){return[...new Set([...super.observedAttributes,"role"])]}get cellBudget(){return Math.max(1,Math.min(1e5,finiteCount(this.maxCells,MAX_HEATMAP_CELLS)))}get effectiveMode(){return this.data.kind}get stickyLabels(){return this._stickyLabels}set stickyLabels(next){const normalized=STICKY_LABELS.normalizeReflected(this,"sticky-labels",next),old=this._stickyLabels;old!==normalized&&(this._stickyLabels=normalized,this.requestUpdate("stickyLabels",old))}get effectiveStickyLabels(){return this.effectiveMode==="matrix"?this._stickyLabels:"none"}get freezesRowLabels(){const sticky=this.effectiveStickyLabels;return sticky==="rows"||sticky==="both"}get freezesColLabels(){const sticky=this.effectiveStickyLabels;return sticky==="cols"||sticky==="both"}get effectiveColLabelRotation(){if(typeof this.colLabelRotation!="number")return 0;const degrees=finiteNumber(this.colLabelRotation,0);return Math.min(90,Math.max(0,degrees))}get matrixPadLeft(){if(this.rowLabelWidth==="auto")return this.resolvedRowLabelWidth;if(typeof this.rowLabelWidth!="number")return PAD_LEFT;const resolved=finiteNumber(this.rowLabelWidth,PAD_LEFT);return resolved>=0?resolved:PAD_LEFT}get matrixGeometry(){if(!(this.matrixSource||this.effectiveMode!=="matrix"))return this.lastPaintedMatrixGeometry}set matrixGeometry(_value){}get calendarGeometry(){if(this.effectiveMode==="calendar")return this.lastPaintedCalendarGeometry}set calendarGeometry(_value){}exportData(format){if(format==="csv")return this.exportCsv();if(this.matrixSource&&(!this.matrixController||this.matrixController.loading||this.matrixController.error||this.sourceNeedsConfigure)||format!=="png"||!this.canvasHasContent||this.drawDirty||!this.canvas||this.canvas.width<=0||this.canvas.height<=0)return"";try{const rowBand=this.frozenBandCanvas("row-labels"),colBand=this.frozenBandCanvas("col-labels");if(!rowBand&&!colBand)return this.canvas.toDataURL("image/png");const composite=this.ownerDocument.createElement("canvas");composite.width=this.canvas.width,composite.height=this.canvas.height;const context=composite.getContext("2d");return context?(context.drawImage(this.canvas,0,0),rowBand&&rowBand.width>0&&rowBand.height>0&&context.drawImage(rowBand,0,0),colBand&&colBand.width>0&&colBand.height>0&&context.drawImage(colBand,0,0),composite.toDataURL("image/png")):""}catch{return""}}exportCsv(){if(this.matrixSource)return this.matrixController?sourceCsv(this):"";const data=this.data;if(data.kind==="calendar"){const header2="date,value",rows2=data.days.filter(day=>!this.isNoData(day.value)).map(day=>csvRow([day.date,day.value]));return[header2,...rows2].join(`\r
|
|
2
|
+
`)}const header="row,column,value",rows=[];return data.values.forEach((rowValues,rowIndex)=>{const rowLabel=data.rowLabels[rowIndex]??"";rowValues.forEach((value,colIndex)=>{if(this.isNoData(value))return;const colLabel=data.colLabels[colIndex]??"";rows.push(csvRow([rowLabel,colLabel,value]))})}),[header,...rows].join(`\r
|
|
3
|
+
`)}get matrixPadTop(){if(this.colLabelHeight==="auto")return this.resolvedColLabelHeight;if(typeof this.colLabelHeight!="number")return PAD_TOP;const resolved=finiteNumber(this.colLabelHeight,PAD_TOP);return resolved>=0?resolved:PAD_TOP}measureColLabelHeight(cs){const labels=this.matrixColLabels;if(labels.length===0)return PAD_TOP;const ctx=getScratchCtx(this.ownerDocument);if(!ctx)return PAD_TOP;ctx.font=this.readToken(cs,"label-font",FALLBACK_LABEL_FONT);let widest=0;const interval=finiteInteger(this.colLabelInterval,1,1);for(let index=0;index<labels.length;index+=interval)widest=Math.max(widest,this.labelWidth(ctx,labels[index]));const radians=this.effectiveColLabelRotation*Math.PI/180,projected=widest*Math.sin(radians);return Math.max(PAD_TOP,Math.min(Math.ceil(projected)+COL_LABEL_INSET,MAX_COL_LABEL_HEIGHT))}measureRowLabelWidth(cs){const labels=this.matrixRowLabels;if(labels.length===0)return PAD_LEFT;const ctx=getScratchCtx(this.ownerDocument);if(!ctx)return PAD_LEFT;ctx.font=this.readToken(cs,"label-font",FALLBACK_LABEL_FONT);let widest=0;for(const label of labels)widest=Math.max(widest,this.labelWidth(ctx,label));const hostWidth=this.clientWidth||0,cap=hostWidth>0?hostWidth*MAX_ROW_LABEL_FRACTION:Number.POSITIVE_INFINITY;return Math.min(Math.max(PAD_LEFT,Math.ceil(widest)+ROW_LABEL_INSET*2),cap)}withLabelCache(paint){const previous=this.labelCache;this.labelCache=new HeatmapLabelCache;try{paint()}finally{this.labelCache=previous}}labelWidth(ctx,label){return this.labelCache?.width(ctx,label)??ctx.measureText(label).width}ellipsize(ctx,label,maxWidth){return this.labelCache?.clip(ctx,label,maxWidth,()=>this.ellipsizeLabel(ctx,label,maxWidth))??this.ellipsizeLabel(ctx,label,maxWidth)}ellipsizeLabel(ctx,label,maxWidth){if(maxWidth<=0)return"";if(this.labelWidth(ctx,label)<=maxWidth)return label;const characters=[...label],shortened=kept=>`${characters.slice(0,kept).join("")}…`;let fits=0,most=characters.length-1;for(;fits<most;){const kept=fits+most+1>>1;this.labelWidth(ctx,shortened(kept))<=maxWidth?fits=kept:most=kept-1}return fits>0||this.labelWidth(ctx,"…")<=maxWidth?shortened(fits):""}get calendarPadLeft(){const requested=this.calendarWeekdayLabelWidth;return requested==="auto"?this.resolvedCalendarWeekdayLabelWidth:requested??CAL_PAD_LEFT}measureCalendarWeekdayLabelWidth(cs,firstWeekStart){const ctx=getScratchCtx(this.ownerDocument);if(!ctx)return CAL_PAD_LEFT;ctx.font=this.readToken(cs,"label-font",FALLBACK_LABEL_FONT);let widest=0;for(const label of this.weekdayLabels(firstWeekStart))label&&(widest=Math.max(widest,this.labelWidth(ctx,label)));const hostWidth=this.clientWidth||0,cap=hostWidth>0?Math.max(CAL_PAD_LEFT,hostWidth*MAX_ROW_LABEL_FRACTION):Number.POSITIVE_INFINITY;return Math.min(Math.max(CAL_PAD_LEFT,Math.ceil(widest)+CAL_WEEKDAY_LABEL_INSET*2),cap)}get matrixRowLabels(){return this.cachedMatrixData.rowLabels}get matrixColLabels(){return this.cachedMatrixData.colLabels}get matrixValues(){return this.cachedMatrixData.values}get calendarDays(){return this.data.kind==="calendar"?this.data.days:[]}get calendarData(){return this.data.kind==="calendar"?this.data:void 0}get cellSize(){return this._cellSize??(this.effectiveMode==="calendar"?CAL_CELL:DEFAULT_MATRIX_CELL_SIZE)}set cellSize(value){const oldValue=this._cellSize;this._cellSize=value==null?void 0:finiteRange(value,this.effectiveMode==="calendar"?CAL_CELL:DEFAULT_MATRIX_CELL_SIZE,1),this.requestUpdate("cellSize",oldValue)}get rowHeight(){return this._rowHeight}set rowHeight(value){const oldValue=this._rowHeight;this._rowHeight=value==null||!Number.isFinite(value)?void 0:finiteRange(value,1,1,MAX_MATRIX_ROW_HEIGHT),this.requestUpdate("rowHeight",oldValue)}get legendPlacement(){return this._legendPlacement}set legendPlacement(next){const normalized=LEGEND_PLACEMENT.normalizeReflected(this,"legend-placement",next),old=this._legendPlacement;old!==normalized&&(this._legendPlacement=normalized,this.requestUpdate("legendPlacement",old))}get axisSelection(){return this._axisSelection}set axisSelection(next){const normalized=AXIS_SELECTION.normalizeReflected(this,"axis-selection",next),old=this._axisSelection;old!==normalized&&(this._axisSelection=normalized,this.requestUpdate("axisSelection",old))}get signedDomain(){return this.domain!==void 0||this.midpoint!==void 0}rampAlpha(value,lo,hi){const anchor=this.midpoint;return anchor===void 0?linearAlpha(value,lo,hi):midpointAlpha(value,lo,hi,anchor)}rampBucket(value,lo,hi,steps){const anchor=this.midpoint;return anchor===void 0?linearBucket(value,lo,hi,steps):midpointBucket(value,lo,hi,anchor,steps)}isNoData(value){return Number.isFinite(value)?value<0&&!this.signedDomain:!0}get maxCellSize(){return this._maxCellSize}set maxCellSize(value){const oldValue=this._maxCellSize;this._maxCellSize=normalizeCellSizeClamp(value),this.requestUpdate("maxCellSize",oldValue)}get minCellSize(){return this._minCellSize}set minCellSize(value){const oldValue=this._minCellSize;this._minCellSize=normalizeCellSizeClamp(value),this.requestUpdate("minCellSize",oldValue)}get normalizedFirstDayOfWeek(){return(finiteInteger(this.calendarData?.firstDayOfWeek??0,0)%7+7)%7}get bucketCount(){return this._bucketCount}set bucketCount(value){const oldValue=this._bucketCount;this._bucketCount=normalizeBucketCount(value),this.requestUpdate("bucketCount",oldValue)}toggleRowSelection(row){this.toggleSelectionAxis(row,!0)}toggleColumnSelection(col){this.toggleSelectionAxis(col,!1)}get calendarWeekdayLabelText(){return this.calendarData?.weekdayLabelText}get calendarWeekdayLabelWidth(){const value=this.calendarData?.weekdayLabelWidth;if(value==="auto")return value;if(typeof value!="number")return;const resolved=finiteNumber(value,CAL_PAD_LEFT);return resolved>=0?resolved:void 0}get calendarMonthLabelText(){return this.calendarData?.monthLabelText}get calendarColumnX(){return this.calendarData?.columnX}get calendarRowY(){return this.calendarData?.rowY}constructor(){super(),this.sourceBindingGeneration=0,this.sourceInput=null,this.sourceViewportInput=null,this.sourceViewportInvalid=!1,this.matrixReducer="mean",this.sourceNeedsConfigure=!0,this.sourceViewportExplicit=!1,this.sourceRevealIntent=0,this.sourceNavigationIntent=0,this.sourceResult=0,this.sourceTooltip=null,this.sourceFocusVersion=0,this.sourceRestoringFocus=!1,this.sourceHasSucceeded=!1,this.sourceFailureAnnounced=!1,this.sourceSelectedKeys=new Set,this.sourceSelectionKey="",this.sourceSelectedCellsEpoch=-1,this.sourceWidth=0,this.data=DEFAULT_MATRIX_DATA,this.maxCells=1e4,this._stickyLabels="none",this.resolvedColLabelHeight=PAD_TOP,this.resolvedRowLabelWidth=PAD_LEFT,this.resolvedCalendarWeekdayLabelWidth=CAL_PAD_LEFT,this.withoutLegend=!1,this._legendPlacement="bottom",this.fill=!1,this.fitBlock=!1,this._axisSelection="none",this.axisFocus={row:0,col:0},this.scale="linear",this.cellGapX=1,this.cellGapY=1,this.cellRadius=0,this.colLabelInterval=1,this.fitToWidth=!1,this._bucketCount=DEFAULT_BUCKET_COUNT,this.annotations=[],this.selectedCell=null,this.label=null,this.description=null,this.multiple=!1,this.selectedCells=[],this.accessibleCells=!1,this.cachedValueRange=null,this.cachedMatrixData={rowLabels:[],colLabels:[],values:[],truncated:!1},this.cachedCalendarGrid=buildCalendarGrid(this.calendarDays),this.cachedCalendarSortedValues=[],this.cachedCalendarCellsByPos=new Map,this.cachedCalendarCellsByDate=new Map,this.cachedAnnotations=[],this.cachedLegendStops=[],this.cachedColorSteps=[],this.cachedCalendarAnnotationDates=new Set,this.cachedMatrixAnnotationPositions=new Set,this.decorationProjectionTruncated=!1,this.cachedCalendarDateByPos=[],this.cachedRamp=null,this.canvasHasContent=!1,this.canvasVisible=!0,this.drawDirty=!1,this.overlayRevision=0,this.hoverCell=null,this.focusedCell=null,this.liveText="",this.accessibleTargetSizePx=DEFAULT_ACCESSIBLE_TARGET_SIZE_PX,this.restoringAccessibleFocus=!1,this.accessibleFocusGeneration=0,this.announcements=new AnnouncementSinkController(this,{eager:["polite"]}),this.authorRole=null,this.authorAriaLabel=null,this.generatedAriaLabel="",this.accessibleDescription="",this.syncingGeneratedSemantics=!1,this.hasSyncedDescribedByElements=!1,this.initialLimitUpdate=!0,this.lastLimitNotice="",this.canvasBlurred=!1,this.onCanvasFocusChange=event=>{const blurred=event.type==="blur";this.canvasBlurred!==blurred&&(this.canvasBlurred=blurred,this.focusedCell&&(this.repaintFocusRing(blurred?this.focusedCell:null)||this.requestDraw()))},this.scheduleDraw=()=>{if(this.drawFrameRequest)return;const owner=this.ownerDocument.defaultView;if(!owner||!this.isConnected)return;const request={owner,handle:0};request.handle=owner.requestAnimationFrame(()=>{this.drawFrameRequest===request&&(this.drawFrameRequest=void 0,this.isConnected&&this.ownerDocument.defaultView===owner&&this.requestDraw())}),this.drawFrameRequest=request},this.selectedPositions=new Map,this.selectionAnchor=null,this.onSelectionPointerDown=event=>{if(event.button!==0||!event.isPrimary||this.selectionGesture||(this.canceledSelectionPointer=void 0,this.releaseSelectionClick?.(),this.releaseSelectionClick=void 0,!this.multiple))return;const current=this.selectionContext;if(!current?.())return;const pos=this.selectionPointerPosition(event);if(!pos||!current())return;if(event.preventDefault(),this.selectionRangeBase=void 0,this.selectionAnchor=pos,this.focusedCell=pos,this.accessibleCells?this.focusAccessibleCell(pos):this.canvas?.focus(),!current()){this.canceledSelectionPointer=event.pointerId,this.suppressNextSelectionClick();return}const target=event.currentTarget;this.selectionGesture={current,pointerId:event.pointerId,target,start:pos,previous:pos,moved:!1,selecting:!this.selectedPositions.has(this.accessibleCellKey(pos)),cells:new Map(this.selectedPositions)},capturePointer(target,event.pointerId),this.paintSelectionTo(pos)},this.onSelectionPointerMove=event=>{const gesture=this.selectionGesture;if(!gesture||gesture.pointerId!==event.pointerId)return;if(!gesture.current()){this.cancelSelectionGesture();return}const pos=this.selectionPointerPosition(event);if(!gesture.current()){this.cancelSelectionGesture();return}pos&&!this.samePos(pos,gesture.previous)&&this.paintSelectionTo(pos)},this.onSelectionPointerUp=event=>{if(this.canceledSelectionPointer===event.pointerId){this.canceledSelectionPointer=void 0,this.suppressNextSelectionClick();return}const gesture=this.selectionGesture;if(!gesture||gesture.pointerId!==event.pointerId)return;if(!gesture.current()){this.cancelSelectionGesture(!0);return}const pos=this.selectionPointerPosition(event);if(!gesture.current()){this.cancelSelectionGesture(!0);return}pos&&this.paintSelectionTo(pos),this.cancelSelectionGesture(!0),gesture.current()&&(this.proposeSelection(gesture.cells,"pointer"),!gesture.moved&&gesture.current(!0)&&this.emitCellClick(gesture.start,"pointer",!1,()=>gesture.current(!0)))},this.onSelectionPointerCancel=event=>{this.selectionGesture?.pointerId===event.pointerId&&this.cancelSelectionGesture()},this.tooltipSize={inline:0,block:0},this.onPointerMove=e=>{const next=this.hitTest(e.offsetX,e.offsetY);this.samePos(this.hoverCell,next)||(this.hoverCell=next)},this.onPointerLeave=()=>{this.hoverCell=null},this.onCanvasClick=e=>{if(this.consumeSelectionClick(e))return;const pos=this.hitTest(e.offsetX,e.offsetY);pos&&(this.focusedCell=pos,this.announce(pos),this.emitCellClick(pos))},this.onKeyDown=e=>{this.selectionKeyDown(e,this.focusedCell)||ignoresGridKey(e)||this.navigateGridKey(e)},this.canvasColorCache=new Map,this.onAccessibleCellFocus=e=>{if(this.restoringAccessibleFocus)return;const key=e.currentTarget.dataset.cellKey,pos=key?this.accessibleCellAtKey(key):null;pos&&(this.samePos(pos,this.focusedCell)||(this.selectionAnchor=pos,this.selectionRangeBase=void 0),this.focusedCell=pos,this.announce(pos))},this.onAccessibleCellClick=e=>{if(this.consumeSelectionClick(e))return;const key=e.currentTarget.dataset.cellKey,pos=key?this.accessibleCellAtKey(key):null;pos&&(this.focusedCell=pos,this.announce(pos),this.emitCellClick(pos,e.detail===0?"keyboard":"pointer"))},this.onAccessibleCellKeyDown=e=>{const key=e.currentTarget.dataset.cellKey,pos=key?this.accessibleCellAtKey(key):null;pos&&(this.selectionKeyDown(e,pos)||!GRID_KEYS.has(e.key)||ignoresGridKey(e)||(e.preventDefault(),this.focusedCell=pos,this.navigateGridKey(e),this.focusAccessibleCell(this.focusedCell)))},this.onAxisTargetClick=event=>{const target=event.currentTarget,index=Number(target.dataset.axisIndex),axis=target.dataset.axis==="row"?"row":"col";this.axisFocus={...this.axisFocus,[axis]:index},axis==="row"?this.toggleRowSelection(index):this.toggleColumnSelection(index)},this.onAxisTargetKeyDown=event=>{if(shouldIgnoreNavigationKey(event))return;const target=event.currentTarget,axis=target.dataset.axis==="row"?"row":"col",index=Number(target.dataset.axisIndex),buttons=Array.from(target.parentElement?.querySelectorAll(".axis-target:not([disabled])")??[]),position=buttons.indexOf(target),back=axis==="row"?"ArrowUp":"ArrowLeft",forward=axis==="row"?"ArrowDown":"ArrowRight",nextPosition=event.key===back?position-1:event.key===forward?position+1:event.key==="Home"?0:event.key==="End"?buttons.length-1:void 0;if(nextPosition===void 0)return;event.preventDefault();const next=buttons[Math.max(0,Math.min(buttons.length-1,nextPosition))];!next||next===target||(target.setAttribute("tabindex","-1"),next.setAttribute("tabindex","0"),next.focus(),this.axisFocus={...this.axisFocus,[axis]:Number(next.dataset.axisIndex??index)})},new ThemeWatcher(this,()=>this.onThemeSignal()),this.calendarSpacingTrackingArmed=!0}requestUpdate(name,oldValue,options){name===LYRA_CONTEXT_UPDATE&&this.syncingGeneratedSemantics||(this.calendarSpacingTrackingArmed&&name!==void 0&&CALENDAR_SPACING_PROPERTIES.has(name)&&(this.explicitCalendarSpacingProperties??=new Set).add(name),name===void 0&&(this.sourceBindingGeneration=(this.sourceBindingGeneration??0)+1,this.matrixController?.invalidate(),this.sourceNeedsConfigure=!0),super.requestUpdate(name,oldValue,options))}explicitCalendarSpacing(name){if(!this.explicitCalendarSpacingProperties?.has(name))return;const value=this[name];return value??void 0}warnOnLegendRampMismatch(){const rampColors=this.cachedColorSteps.map(color=>sanitizeCssColor(color)??color);if(rampColors.length===0)return;const legendColors=this.cachedLegendStops.filter(stop=>!!stop.color&&stop.partOfRamp!==!1).map(stop=>sanitizeCssColor(stop.color??"")??stop.color??"");legendColors.length===0||legendColors.length===rampColors.length&&legendColors.every((color,index)=>color===rampColors[index])||devWarnOnce("lyra-heatmap-legend-ramp-mismatch",`<${this.localName}>: legendStops describes ${legendColors.length} colour(s) that do not match the ${rampColors.length} colorSteps the cells are painted from, so the legend may misdescribe the ramp. Supply legendStops built from the same array as colorSteps, or omit it to keep the built-in gradient key.`)}attributeChangedCallback(name,oldValue,value){super.attributeChangedCallback(name,oldValue,value),!(oldValue===value||this.syncingGeneratedSemantics)&&(name==="role"&&(this.authorRole=value),name==="aria-label"&&(this.authorAriaLabel=value))}connectedCallback(){super.connectedCallback(),this.matrixSource&&!this.matrixController&&this.requestUpdate("matrixSource"),this.sourceNeedsConfigure=!0,this.refreshAccessibleTargetSize();const owner=this.ownerDocument.defaultView,ResizeObserverCtor=owner?.ResizeObserver;if(owner&&ResizeObserverCtor){let observer;observer=new ResizeObserverCtor(()=>{!this.isConnected||this.ownerDocument.defaultView!==owner||this.resizeObserver!==observer||this.scheduleDraw()}),this.resizeObserver=observer,observer.observe(this)}const IntersectionObserverCtor=owner?.IntersectionObserver;if(this.canvasVisible=!0,owner&&IntersectionObserverCtor){let observer;observer=new IntersectionObserverCtor(entries=>{if(!this.isConnected||this.ownerDocument.defaultView!==owner||this.intersectionObserver!==observer)return;const entry=entries.find(candidate=>candidate.target===this);!entry||entry.isIntersecting===this.canvasVisible||(this.canvasVisible=entry.isIntersecting,this.canvasVisible&&this.drawDirty&&this.scheduleDraw())}),this.intersectionObserver=observer,observer.observe(this)}this.cachedRamp=null,this.resolvedStepsMemo=void 0,this.paintedTheme=void 0,this.canvasColorCache.clear(),this.watchDpr(),this.drawDirty&&!ResizeObserverCtor&&this.scheduleDraw()}disconnectedCallback(){this.sourceBindingGeneration++,this.dismissTooltip(),super.disconnectedCallback(),this.cancelSelectionGesture(),this.canceledSelectionPointer=void 0,this.releaseSelectionClick?.(),this.releaseSelectionClick=void 0,this.selectionAnchor=null,this.selectionRangeBase=void 0,this.accessibleFocusGeneration++,this.pendingAccessibleFocus=void 0,this.pendingAccessibleFocusOrigin=void 0,this.restoringAccessibleFocus=!1,this.hoverCell=null,this.focusedCell=null,this.canvasBlurred=!1,this.liveText="",this.canvasHasContent=!1,this.drawDirty=!0,this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0,this.canvasVisible=!0,this.stopWatchingDpr?.(),this.stopWatchingDpr=void 0,this.cancelDrawFrame()}adoptedCallback(){this.sourceBindingGeneration++,super.adoptedCallback(),this.matrixController?.requests.adopted(),this.sourceNeedsConfigure=!0,this.announcements.adopted()}watchDpr(){this.stopWatchingDpr=watchDevicePixelRatio(this.ownerDocument.defaultView,()=>this.requestDraw())}willUpdate(changed){if(super.willUpdate(changed),this.selectionContext=this.captureSelectionContext(),changed.has("matrixSource")&&!this.matrixSource&&changed.set("data",void 0),this.matrixSource){this.clearGeneratedSemantics(),this.matrixController&&sourceWillUpdate(this,changed);return}(changed.size===0||[...changed.keys()].some(key=>!["hoverCell","focusedCell","liveText"].includes(String(key))))&&this.overlayRevision++,(changed.has("data")||changed.has("maxCells")||changed.has("domain")||changed.has("midpoint")||!this.hasUpdated)&&this.rebuildCanonicalMatrixData(),(changed.has("annotations")||changed.has("legendStops")||changed.has("colorSteps")||!this.hasUpdated)&&this.rebuildBoundedDecorations();const accessibleModeChanged=changed.has("accessibleCells")&&this.hasUpdated,collectionChanged=changed.has("data")||changed.has("maxCells")||changed.has("cellInteractive"),activeRenderedControl=collectionChanged||accessibleModeChanged?shadowFocusTarget(this):null,activeAccessibleCell=activeRenderedControl?.matches('[part="cell"]')?activeRenderedControl:null,renderedAccessibleCells=activeAccessibleCell?.matches('[part="cell"]')?[...this.renderRoot.querySelectorAll('[part="cell"]')]:[],accessibleFocusSnapshot=activeAccessibleCell?.matches('[part="cell"]')?{identity:activeAccessibleCell.dataset.cellIdentity,index:renderedAccessibleCells.indexOf(activeAccessibleCell)}:void 0;collectionChanged&&(this.focusedCell=null,this.hoverCell=null,this.liveText="");const locale=this.effectiveLocale;if(changed.has("data")||changed.has("maxCells")||changed.has("locale")||this.lastUpdatedLocale!==locale||!this.hasUpdated){this.cachedCalendarGrid=buildCalendarGrid(this.calendarDays,this.normalizedFirstDayOfWeek,this.calendarMonthLabelText,locale,this.cellBudget),this.cachedCalendarSortedValues=this.cachedCalendarGrid.cells.map(cell=>cell.value).filter(value=>!this.isNoData(value)).sort((a,b)=>a-b),this.cachedCalendarCellsByPos=new Map(this.cachedCalendarGrid.cells.map(cell=>[`${cell.week}:${cell.weekday}`,cell])),this.cachedCalendarCellsByDate=new Map(this.cachedCalendarGrid.cells.map(cell=>[cell.date,cell]));const{firstWeekStart,weekCount}=this.cachedCalendarGrid;this.cachedCalendarDateByPos=Array.from({length:weekCount*7},(_,index)=>isoDateAtOffset(firstWeekStart,index))}if(changed.has("colorSteps")||changed.has("withoutLegend")||!this.hasUpdated){const colorSteps=this.withoutLegend?[]:this.cachedColorSteps.map(sanitizeCssColor);colorSteps.length>=2&&colorSteps.every(color=>color!==void 0)?this.style.setProperty("--lr-heatmap-color-steps-gradient",`linear-gradient(to right, ${colorSteps.join(", ")})`):this.style.removeProperty("--lr-heatmap-color-steps-gradient")}if((changed.has("data")||changed.has("maxCells")||changed.has("domain")||changed.has("midpoint")||!this.hasUpdated)&&(this.cachedValueRange=this.computeValueRange()),(collectionChanged||!this.hasUpdated)&&(this.accessibleIndex=void 0),(collectionChanged||accessibleModeChanged||changed.has("multiple"))&&(this.cancelSelectionGesture(),this.selectionAnchor=null,this.selectionRangeBase=void 0,this.proposedSelectionKeys=void 0),collectionChanged||changed.has("selectedCells")||changed.has("multiple")||!this.hasUpdated){const previous=this.selectedPositions;if(this.rebuildSelectedPositions(),this.pendingSelectionRepaint=void 0,!collectionChanged&&changed.has("selectedCells")){const cells=[...previous].filter(([key])=>!this.selectedPositions.has(key)).map(([,pos])=>pos);for(const[key,pos]of this.selectedPositions)previous.has(key)||cells.push(pos);cells.length<=16&&(this.pendingSelectionRepaint=cells)}changed.has("selectedCells")&&this.selectionGesture&&this.cancelSelectionGesture(),changed.has("selectedCells")&&this.selectionRangeBase&&(this.proposedSelectionKeys?.size!==this.selectedPositions.size||[...this.selectedPositions.keys()].some(key=>!this.proposedSelectionKeys?.has(key)))&&(this.selectionAnchor=this.focusedCell,this.selectionRangeBase=void 0)}if(accessibleFocusSnapshot){const positions=this.accessibleCellPositions(),target=(accessibleFocusSnapshot.identity==null?void 0:positions.find(pos=>this.accessibleCellIdentity(pos)===accessibleFocusSnapshot.identity))??positions[Math.min(Math.max(accessibleFocusSnapshot.index,0),positions.length-1)]??null;this.focusedCell=target,this.liveText=target?this.resolveCellText(target):"",this.pendingAccessibleFocus=target??"base",this.pendingAccessibleFocusOrigin=activeAccessibleCell??void 0,this.restoringAccessibleFocus=!0,this.accessibleFocusGeneration++}if(accessibleModeChanged){const previouslyAccessible=changed.get("accessibleCells")===!0;if(previouslyAccessible&&!this.accessibleCells&&activeAccessibleCell){const key=activeAccessibleCell.dataset.cellKey,target=key?this.accessibleCellAtKey(key):null;target&&(this.focusedCell=target,this.liveText=this.resolveCellText(target)),this.pendingAccessibleFocus="canvas",this.pendingAccessibleFocusOrigin=activeAccessibleCell,this.restoringAccessibleFocus=!0,this.accessibleFocusGeneration++}else if(!previouslyAccessible&&this.accessibleCells&&activeRenderedControl?.matches('[part="canvas"]')){const positions=this.accessibleCellPositions(),target=this.focusedCell?positions.find(pos=>this.samePos(pos,this.focusedCell))??positions[0]??null:positions[0]??null;this.focusedCell=target,this.liveText=target?this.resolveCellText(target):"",this.pendingAccessibleFocus=target??"base",this.pendingAccessibleFocusOrigin=activeRenderedControl,this.restoringAccessibleFocus=!0,this.accessibleFocusGeneration++}}if(!this.hasUpdated||changed.size===0||[...changed.keys()].some(key=>!["hoverCell","focusedCell","liveText"].includes(String(key)))){const bounds=this.cachedValueRange,range=bounds?`${this.formatNumericValue(bounds[0])}–${this.formatNumericValue(bounds[1])}`:this.localize("heatmapNoDataValue"),valueLabel=this.localizedValueLabel();let label;if(this.effectiveMode==="calendar")label=this.localize("heatmapCalendarLabel",void 0,{days:this.formatLocaleNumber(this.cachedCalendarGrid.cells.length),label:valueLabel,range});else{const rows=this.matrixRowLabels.length,cols=this.matrixColLabels.length;label=this.localize("heatmapMatrixLabel",void 0,{rows:this.formatLocaleNumber(rows),cols:this.formatLocaleNumber(cols),label:valueLabel,range})}const selectedText=this.selectedCellDescription(),authoredLabel=normalizeLabel(this.label);this.accessibleDescription=normalizeLabel(this.description)??(authoredLabel?label:"");const generatedAriaLabel=[authoredLabel??label,selectedText,this.projectionDescription()].filter(Boolean).join(" ");this.generatedAriaLabel=generatedAriaLabel,this.syncingGeneratedSemantics=!0;try{this.authorRole===null&&this.getAttribute("role")!=="group"&&this.setAttribute("role","group"),this.authorAriaLabel===null&&this.getAttribute("aria-label")!==generatedAriaLabel&&this.setAttribute("aria-label",generatedAriaLabel)}finally{this.syncingGeneratedSemantics=!1}}}clearGeneratedSemantics(){if(this.generatedAriaLabel!==""){this.syncingGeneratedSemantics=!0;try{this.authorRole===null&&this.getAttribute("role")==="group"&&this.removeAttribute("role"),this.authorAriaLabel===null&&this.getAttribute("aria-label")===this.generatedAriaLabel&&this.removeAttribute("aria-label"),this.generatedAriaLabel=""}finally{this.syncingGeneratedSemantics=!1}}}rebuildBoundedDecorations(){this.cachedAnnotations=this.annotations.slice(0,MAX_HEATMAP_DECORATIONS).map(entry=>entry??{}),this.cachedLegendStops=(this.legendStops??[]).slice(0,MAX_HEATMAP_DECORATIONS).map(entry=>entry??{}),this.cachedColorSteps=(this.colorSteps??[]).slice(0,MAX_HEATMAP_DECORATIONS),this.warnOnLegendRampMismatch(),this.cachedCalendarAnnotationDates=new Set(this.cachedAnnotations.flatMap(annotation=>annotation.date==null?[]:[annotation.date])),this.cachedMatrixAnnotationPositions=new Set(this.cachedAnnotations.flatMap(annotation=>annotation.row==null||annotation.col==null?[]:[`${annotation.row}:${annotation.col}`])),this.decorationProjectionTruncated=this.annotations.length>MAX_HEATMAP_DECORATIONS||(this.legendStops?.length??0)>MAX_HEATMAP_DECORATIONS||(this.colorSteps?.length??0)>MAX_HEATMAP_DECORATIONS}get ownedInputTruncated(){return["annotations","legendStops","colorSteps","selectedCells"].some(name=>publicCollectionTruncation(this,name)!==void 0)}get projectionTruncated(){return this.decorationProjectionTruncated||this.ownedInputTruncated||(this.effectiveMode==="calendar"?this.cachedCalendarGrid.truncated:this.cachedMatrixData.truncated)}get cellProjectionTruncated(){return this.effectiveMode==="calendar"?this.cachedCalendarGrid.truncated:this.cachedMatrixData.truncated}projectedCellCount(){return this.effectiveMode==="calendar"?this.cachedCalendarGrid.weekCount*7:this.matrixRowLabels.length*this.matrixColLabels.length}projectionDescription(){const messages=[];return this.cellProjectionTruncated&&messages.push(this.localize("heatmapProjectionLimit",void 0,{count:this.formatLocaleNumber(this.projectedCellCount())})),this.decorationProjectionTruncated&&messages.push(this.localize("heatmapDecorationLimit",void 0,{count:this.formatLocaleNumber(MAX_HEATMAP_DECORATIONS)})),this.ownedInputTruncated&&messages.push(this.localize("heatmapInputLimit")),messages.join(" ")}rebuildCanonicalMatrixData(){if(this.data.kind!=="matrix"){this.cachedMatrixData={rowLabels:[],colLabels:[],values:[],truncated:!1};return}const own=(value,key)=>{if(!value||typeof value!="object")return;const descriptor=getOwnDataDescriptor(value,key);return typeof descriptor=="object"?descriptor.value:void 0},rows=own(this.data,"rowLabels"),cols=own(this.data,"colLabels"),source=own(this.data,"values"),count=value=>{const length=own(value,"length");return finiteCount(typeof length=="number"?length:0,0)},colCount=Math.min(count(cols),this.cellBudget),rowLimit=colCount===0?this.cellBudget:Math.floor(this.cellBudget/colCount),rowCount=Math.min(count(rows),rowLimit),labels=(source2,length)=>{const result=new Array(length);if(!source2||typeof source2!="object")return result;for(let index=0;index<length;index++){const descriptor=getOwnDataDescriptor(source2,String(index));if(typeof descriptor!="object")continue;const value=descriptor.value;result[index]=value===null||typeof value!="object"&&typeof value!="function"?String(value):""}return result},rowLabels=labels(rows,rowCount),colLabels=labels(cols,colCount);let truncated=rowCount!==count(rows)||colCount!==count(cols)||count(source)>rowCount;const values=Array.from({length:rowCount},(_,row)=>{const input=own(source,String(row));return count(input)>colCount&&(truncated=!0),Array.from({length:colCount},(_2,col)=>{const value=own(input,String(col));return typeof value=="number"?value:this.signedDomain?Number.NaN:-1})});this.cachedMatrixData={rowLabels,colLabels,values,truncated}}selectedCellDescription(){if(this.multiple){const count=this.currentSelectedPositions.size;return count?this.localize("heatmapSelectedCount",void 0,{count:this.formatLocaleNumber(count)}):""}if(!this.selectedCell)return"";if(this.effectiveMode==="calendar"){if(this.selectedCell.date==null)return"";const match=this.cachedCalendarCellsByDate.get(this.selectedCell.date);return match?this.localize("heatmapSelectedCellLabel",void 0,{cell:this.calendarCellText({week:match.week,weekday:match.weekday,date:match.date})}):""}const{row,col}=this.selectedCell;return row==null||col==null||row<0||row>=this.matrixRowLabels.length||col<0||col>=this.matrixColLabels.length?"":this.localize("heatmapSelectedCellLabel",void 0,{cell:this.matrixCellText({row,col})})}computeValueRange(){const pinned=this.domain;if(pinned){const[lo,hi]=pinned;if(Number.isFinite(lo)&&Number.isFinite(hi)&&lo!==hi)return lo<hi?[lo,hi]:[hi,lo]}const source=this.effectiveMode==="calendar"?this.cachedCalendarGrid.cells.map(cell=>cell.value):this.matrixValues.flat();return minMax(source.filter(v=>!this.isNoData(v)))}localizedValueLabel(){return this.valueLabel===void 0?this.localize("heatmapValueLabel"):this.valueLabel}formatNumericValue(value){return formatChartValue(value,this.effectiveLocale)}syncExternalDescription(){const describedBy=this.getAttribute("aria-describedby");if(!describedBy&&!this.hasSyncedDescribedByElements)return;const control=this.accessibleCells?this.renderRoot.querySelector('[part="cells"]'):this.canvas;this.hasSyncedDescribedByElements=syncAriaDescribedByElements(this,control??void 0,describedBy)}updated(changed){super.updated(changed),this.syncTooltipOverlay();const locale=this.effectiveLocale,localeChanged=this.lastUpdatedLocale!==locale;if(this.lastUpdatedLocale=locale,this.matrixSource){this.matrixController&&sourceUpdated(this);return}this.syncExternalDescription(),this.syncAccessibleTabStop();const notice=this.projectionDescription();if(!this.initialLimitUpdate&¬ice&¬ice!==this.lastLimitNotice&&this.announcements.announcePolite(notice),this.initialLimitUpdate=!1,this.lastLimitNotice=notice,this.hoverCell&&this.scheduleAfterUpdate(()=>this.measureTooltip(),"heatmap-tooltip-metrics"),["data","maxCells","cellSize","rowHeight","cellGapX","cellGapY","cellRadius","colLabelInterval","maxCellSize","minCellSize","valueLabel","scale","domain","midpoint","fitToWidth","rowLabelWidth","colLabelHeight","colLabelRotation","bucketCount","annotations","focusedCell","colorSteps","cellColor","selectedCell","selectedCells","multiple","selectionPreview","legendStops","accessibleCells","accessibleTargetSizePx","locale","stickyLabels","fill","fitBlock"].some(name=>changed.has(name))||localeChanged){if(!localeChanged&&changed.has("focusedCell")&&[...changed.keys()].every(key=>key==="focusedCell"||key==="liveText")&&this.repaintFocusRing(changed.get("focusedCell")))return;const smallSelection=this.pendingSelectionRepaint,onlySelectionAndFocus=[...changed.keys()].every(key=>["selectedCells","focusedCell","liveText"].includes(String(key))),repainted=!localeChanged&&smallSelection!==void 0&&onlySelectionAndFocus&&(!changed.has("focusedCell")||this.repaintFocusRing(changed.get("focusedCell")))&&smallSelection.every(pos=>this.repaintCell(pos));this.pendingSelectionRepaint=void 0,repainted||this.requestDraw()}const pending=this.pendingAccessibleFocus;if(pending===void 0)return;this.pendingAccessibleFocus=void 0;const origin=this.pendingAccessibleFocusOrigin;this.pendingAccessibleFocusOrigin=void 0;const generation=this.accessibleFocusGeneration;this.scheduleAfterUpdate(()=>{try{if(generation!==this.accessibleFocusGeneration||!this.isConnected)return;if(origin){const internalActive=shadowFocusTarget(this),documentActive=activeElementIn(this.ownerDocument),focusStayedAtOrigin=internalActive===origin,originWasRemovedWithoutReplacement=internalActive===null&&(documentActive===null||documentActive===this||documentActive===this.ownerDocument.body);if(!focusStayedAtOrigin&&!originWasRemovedWithoutReplacement)return}if(pending==="base"){this.shadowRoot?.querySelector('[part="base"]')?.focus();return}if(pending==="canvas"){this.shadowRoot?.querySelector('[part="canvas"]')?.focus();return}const identity=this.accessibleCellIdentity(pending);[...this.shadowRoot?.querySelectorAll('[part="cell"]')??[]].find(candidate=>candidate.dataset.cellIdentity===identity)?.focus()}finally{this.restoringAccessibleFocus=!1}},"heatmap-accessible-focus")}refreshTheme(){this.resolvedStepsMemo=void 0,this.cachedRamp=null,this.refreshAccessibleTargetSize()||this.requestDraw()}themeSignature(){const cs=this.ownerDocument.defaultView?.getComputedStyle(this);return cs?[...this.scaleEndpoints(cs),this.readToken(cs,"no-data-fill",FALLBACK_NO_DATA_FILL),this.labelColor(cs),this.readToken(cs,"label-font",FALLBACK_LABEL_FONT),this.readToken(cs,"focus-ring-color",FALLBACK_FOCUS_RING_COLOR),this.readToken(cs,"annotation-color",FALLBACK_ANNOTATION_COLOR),this.readToken(cs,"selected-color",FALLBACK_SELECTED_COLOR),this.stickyLabelBg(cs),...this.resolvedColorSteps()].join("\0"):""}onThemeSignal(){this.resolvedStepsMemo=void 0;const signature=this.themeSignature(),resized=this.refreshAccessibleTargetSize();signature===this.paintedTheme&&!this.cellColor||(this.paintedTheme=signature,this.cachedRamp=null,resized||this.scheduleDraw())}refreshAccessibleTargetSize(){const raw=this.ownerDocument.defaultView?.getComputedStyle(this).getPropertyValue("--lr-icon-button-size").trim()??"",resolved=resolveCssTokenLength(raw,{host:this}),next=resolved!==void 0&&Number.isFinite(resolved)&&resolved>0?resolved:DEFAULT_ACCESSIBLE_TARGET_SIZE_PX;return next===this.accessibleTargetSizePx?!1:(this.accessibleTargetSizePx=next,!0)}readToken(cs,name,fallback){return cs.getPropertyValue(`--lr-heatmap-${name}`).trim()||cs.getPropertyValue(`--_lr-heatmap-${name}`).trim()||fallback}scaleEndpoints(cs){return[this.readToken(cs,"scale-lo",FALLBACK_SCALE_LO),this.readToken(cs,"scale-hi",FALLBACK_SCALE_HI)]}labelColor(cs){return cs.getPropertyValue("--lr-color-text-quiet").trim()||"#6b7280"}stickyLabelBg(cs){const color=this.readToken(cs,"sticky-label-bg",FALLBACK_STICKY_LABEL_BG);return formatRgb(resolveRgb(color,FALLBACK_STICKY_LABEL_BG,this.ownerDocument))}strokeCellState(ctx,x,y,size,state2,color,paintedShape){const shape=paintedShape??this.calendarCellShape(size),width=shape?.custom?shape.w:size,height=shape?.custom?shape.h:size;shape?.custom&&(ctx.save(),ctx.beginPath(),ctx.roundRect(x,y,shape.w,shape.h,shape.radius),ctx.clip());const inset=Math.min(state2==="annotation"?.5:state2==="selected"?3.5:6.5,Math.max(.5,(Math.min(width,height)-RING_LINE_WIDTH-1)/2)),w=Math.max(1,width-inset*2),h=Math.max(1,height-inset*2);ctx.lineWidth=RING_LINE_WIDTH,ctx.strokeStyle=color,ctx.setLineDash?.(state2==="annotation"?[]:state2==="selected"?[4,2]:[1,2]),shape?.custom&&shape.radius>0?(ctx.beginPath(),ctx.roundRect(x+inset,y+inset,w,h,Math.max(0,shape.radius-inset)),ctx.stroke()):ctx.strokeRect(x+inset,y+inset,w,h),ctx.setLineDash?.([]),shape?.custom&&ctx.restore()}isSelectedPos(pos){return this.multiple?this.currentSelectedPositions.has(this.accessibleCellKey(pos)):this.selectedCell?"week"in pos?this.selectedCell.date==null?!1:this.calendarCellAt(pos).date===this.selectedCell.date:this.selectedCell.row===pos.row&&this.selectedCell.col===pos.col:!1}draw(){if(this.matrixSource){this.matrixController&&paintSource(this);return}if(!this.canvasVisible){this.drawDirty=!0;return}this.syncDeferredFitFrame(!1),this.drawDirty=!1,this.canvasHasContent=!1,this.paintedTheme??=this.themeSignature(),this.effectiveMode==="calendar"?this.drawCalendar():this.drawMatrix()}requestDraw(){this.drawDirty=!0,this.isConnected&&(this.canvasVisible?this.draw():this.syncDeferredFitFrame(!0))}syncDeferredFitFrame(deferred){const base=this.shadowRoot?.querySelector('[part="base"]');if(!base)return;let contained=!1;deferred&&this.fitToWidth&&this.clientWidth>0&&(contained=(this.effectiveMode==="calendar"?this.columnXFor(Math.max(1,this.cachedCalendarGrid.weekCount)):this.matrixPadLeft+this.matrixColLabels.length*this.matrixCellSize(this.matrixColLabels.length))<=this.clientWidth),base.toggleAttribute("data-fit-frame-contained",contained)}ringedCell(){return this.canvasBlurred?null:this.focusedCell}repaintFocusRing(previous){if(!this.canvasHasContent||!this.canvas||this.drawDirty)return!1;const current=this.ringedCell();if(this.effectiveMode==="calendar"){if(previous&&!("week"in previous)||current&&!("week"in current))return!1;this.repaintCalendarFocusCell(previous&&"week"in previous?previous:null),current&&(!previous||!this.samePos(previous,current))&&this.repaintCalendarFocusCell(current)}else{if(previous&&!("row"in previous)||current&&!("row"in current))return!1;this.repaintMatrixFocusCell(previous&&"row"in previous?previous:null),current&&(!previous||!this.samePos(previous,current))&&this.repaintMatrixFocusCell(current)}return!0}cancelDrawFrame(){const request=this.drawFrameRequest;request&&request.owner.cancelAnimationFrame(request.handle),this.drawFrameRequest=void 0}resolveColorStep(color,fallback){const safe=sanitizeCssColor(color);if(!safe)return fallback;const ctx=SCOPED_COLOR.test(safe)?null:getScratchCtx(this.ownerDocument);return ctx?(ctx.fillStyle=safe,ctx.fillStyle):resolveCanvasColor(this,safe,fallback)}resolvedColorSteps(){const source=this.cachedColorSteps;return(this.resolvedStepsMemo?.source!==source||this.resolvedStepsMemo.document!==this.ownerDocument)&&(this.resolvedStepsMemo={source,document:this.ownerDocument,colors:source.map(step=>this.resolveColorStep(step,""))}),this.resolvedStepsMemo.colors}colorRamp(bucketCount,cs){const steps=this.cachedColorSteps;if(steps&&steps.length>=2){const key2=`steps ${steps.join(" ")}`;if(this.cachedRamp?.key===key2)return this.cachedRamp;const resolved=this.resolvedColorSteps().map((color,index)=>color||(index===steps.length-1?FALLBACK_SCALE_HI:FALLBACK_SCALE_LO)),colors2=resolved.map(color=>formatRgb(resolveRgb(color,FALLBACK_SCALE_LO,this.ownerDocument))),loRgb2=resolveRgb(resolved[0],FALLBACK_SCALE_LO,this.ownerDocument),hiRgb2=resolveRgb(resolved[resolved.length-1],FALLBACK_SCALE_HI,this.ownerDocument);return this.cachedRamp={key:key2,colors:colors2,loRgb:loRgb2,hiRgb:hiRgb2},this.cachedRamp}const[scaleLo,scaleHi]=this.scaleEndpoints(cs),normalizedBucketCount=normalizeBucketCount(bucketCount),key=`${scaleLo}\0${scaleHi}\0${normalizedBucketCount}`;if(this.cachedRamp?.key===key)return this.cachedRamp;const loRgb=resolveRgb(scaleLo,FALLBACK_SCALE_LO,this.ownerDocument),hiRgb=resolveRgb(scaleHi,FALLBACK_SCALE_HI,this.ownerDocument),colors=Array.from({length:normalizedBucketCount},(_,i)=>mixRgb(loRgb,hiRgb,i/(normalizedBucketCount-1)));return this.cachedRamp={key,colors,loRgb,hiRgb},this.cachedRamp}calendarCellSize(){return this.calendarSpacing().cellSize}calendarSpacing(){const{weekCount}=this.cachedCalendarGrid,rawGapX=this.explicitCalendarSpacing("cellGapX"),rawGapY=this.explicitCalendarSpacing("cellGapY"),rawRadius=this.explicitCalendarSpacing("cellRadius"),boundGap=(raw,size2)=>raw===void 0?CAL_GAP:finiteRange(raw,CAL_GAP,0,Math.max(0,size2-1));let size;if(this.fitToWidth&&weekCount>0){const fitGap=boundGap(rawGapX,this.cellSize),hostWidth=this.clientWidth||this.calendarPadLeft+weekCount*(this.cellSize+fitGap);size=this.clampFitCellSize((hostWidth-this.calendarPadLeft)/weekCount-fitGap)}else size=this.cellSize;return this.accessibleCells&&(size=Math.max(size,this.accessibleTargetSizePx)),{cellSize:size,gapX:boundGap(rawGapX,size),gapY:boundGap(rawGapY,size),radius:rawRadius===void 0?0:finiteRange(rawRadius,0,0,size/2)}}clampFitCellSize(size){const floored=finiteRange(size,FIT_MIN_CELL,Math.max(FIT_MIN_CELL,this.minCellSize??FIT_MIN_CELL));return this.maxCellSize==null?floored:Math.min(floored,this.maxCellSize)}columnXFor(week){return(this.calendarPaintColumns??this.calendarColumnPositions())[week]??this.calendarPadLeft}rowYFor(weekday){return(this.calendarPaintRows??this.calendarRowPositions())[weekday]??CAL_LABEL_H}calendarColumnPositions(spacing=this.calendarSpacing()){const{cellSize,gapX:gap}=spacing,weekCount=this.cachedCalendarGrid.weekCount,callback=this.calendarColumnX,padLeft=this.calendarPadLeft,cached=this.cachedColumnGeometry;if(cached!==void 0&&cached.callback===callback&&cached.padLeft===padLeft&&cached.cellSize===cellSize&&cached.gap===gap&&cached.weekCount===weekCount)return cached.positions;const positions=[];for(let index=0;index<=weekCount;index++){const fallback=index===0?padLeft:positions[index-1]+cellSize+gap;let candidate=fallback;if(callback)try{const supplied=callback(index);Number.isFinite(supplied)&&supplied>=0&&(index===0||supplied>=positions[index-1]+cellSize)&&(candidate=supplied)}catch{candidate=fallback}positions.push(candidate)}return this.cachedColumnGeometry={callback,padLeft,cellSize,gap,weekCount,positions},positions}calendarRowPositions(spacing=this.calendarSpacing()){const{cellSize,gapY:gap}=spacing,callback=this.calendarRowY,cached=this.cachedRowGeometry;if(cached!==void 0&&cached.callback===callback&&cached.cellSize===cellSize&&cached.gap===gap)return cached.positions;const positions=[];for(let index=0;index<=7;index++){const fallback=index===0?CAL_LABEL_H:positions[index-1]+cellSize+gap;let candidate=fallback;if(callback)try{const supplied=callback(index);Number.isFinite(supplied)&&supplied>=0&&(index===0||supplied>=positions[index-1]+cellSize)&&(candidate=supplied)}catch{candidate=fallback}positions.push(candidate)}return this.cachedRowGeometry={callback,cellSize,gap,positions},positions}weekdayLabels(firstWeekStart){const formatter=getDateTimeFormat(this.effectiveLocale||void 0,{weekday:"short",timeZone:"UTC"}),labels=["","","","","","",""];for(const weekday of[1,3,5]){const row=(weekday-this.normalizedFirstDayOfWeek+7)%7;labels[row]=this.calendarWeekdayLabelText?.(weekday)??formatter.format(new Date(firstWeekStart.getTime()+row*MS_PER_DAY))}return labels}paintCalendarAxisLabels(ctx,cellSize,cs,firstWeekStart,monthLabels,months=!0,weekdays=!0){if(ctx.fillStyle=this.labelColor(cs),ctx.font=this.readToken(cs,"label-font",FALLBACK_LABEL_FONT),months){const canvasRight=this.columnXFor(Math.max(1,this.cachedCalendarGrid.weekCount)),placed=[];monthLabels.forEach((month,index)=>{const label=this.ellipsize(ctx,month.label,canvasRight);if(!label)return;const width=this.labelWidth(ctx,label),x=Math.max(0,Math.min(this.columnXFor(month.week),canvasRight-width)),nextWeek=monthLabels[index+1]?.week??Math.max(month.week+1,this.cachedCalendarGrid.weekCount),entry={label,x,end:x+width+CAL_MONTH_LABEL_GAP,span:nextWeek-month.week};let previous=placed[placed.length-1];for(;previous&&entry.x<previous.end&&entry.span>previous.span;)placed.pop(),previous=placed[placed.length-1];previous&&entry.x<previous.end||placed.push(entry)});for(const{label,x}of placed)ctx.fillText(label,x,CAL_LABEL_H-4)}if(weekdays){const available=this.calendarPadLeft-CAL_WEEKDAY_LABEL_INSET*2;this.weekdayLabels(firstWeekStart).forEach((label,weekday)=>{const shown=label?this.ellipsize(ctx,label,available):"";shown&&ctx.fillText(shown,CAL_WEEKDAY_LABEL_INSET,this.rowYFor(weekday)+cellSize-1)})}}drawCalendar(){try{this.withLabelCache(()=>this.paintCalendar())}finally{this.calendarPaintColumns=void 0,this.calendarPaintRows=void 0}}paintCalendar(){if(!this.canvas)return;const{weekCount,firstWeekStart,monthLabels}=this.cachedCalendarGrid,cs=this.ownerDocument.defaultView?.getComputedStyle(this);if(!cs)return;this.calendarWeekdayLabelWidth==="auto"&&(this.resolvedCalendarWeekdayLabelWidth=this.measureCalendarWeekdayLabelWidth(cs,firstWeekStart));const spacing=this.calendarSpacing(),cellSize=spacing.cellSize;this.calendarPaintColumns=this.calendarColumnPositions(spacing),this.calendarPaintRows=this.calendarRowPositions(spacing);const w=this.columnXFor(Math.max(1,weekCount)),h=this.rowYFor(7),ctx=this.sizeCanvas(this.canvas,w,h);if(!ctx)return;ctx.clearRect(0,0,w,h);const fill=this.fillContext(normalizeBucketCount(this.bucketCount),cs,"calendar");this.canvasColorCache.clear();for(let week=0;week<weekCount;week++)for(let weekday=0;weekday<7;weekday++)this.paintCalendarCell(ctx,week,weekday,cellSize,spacing.radius,fill);if(this.cachedAnnotations.length)for(const ann of this.cachedAnnotations){if(ann.date==null)continue;const match=this.cachedCalendarCellsByDate.get(ann.date);if(!match)continue;const x=this.columnXFor(match.week),y=this.rowYFor(match.weekday);this.strokeCellState(ctx,x,y,cellSize,"annotation",this.readToken(cs,"annotation-color",FALLBACK_ANNOTATION_COLOR))}for(const match of this.selectedPaintPositions())if("week"in match){const x=this.columnXFor(match.week),y=this.rowYFor(match.weekday);this.strokeCellState(ctx,x,y,cellSize,"selected",this.readToken(cs,"selected-color",FALLBACK_SELECTED_COLOR))}const ringed=this.ringedCell();if(ringed&&"week"in ringed){const{week,weekday}=ringed;if(week<weekCount&&weekday<7){const x=this.columnXFor(week),y=this.rowYFor(weekday);this.strokeCellState(ctx,x,y,cellSize,"focus",this.readToken(cs,"focus-ring-color",FALLBACK_FOCUS_RING_COLOR))}}this.paintCalendarAxisLabels(ctx,cellSize,cs,firstWeekStart,monthLabels),this.canvasHasContent=!0,this.recordCalendarGeometry(spacing,weekCount)&&this.accessibleCells&&this.scheduleAfterUpdate(()=>this.requestUpdate(),"heatmap-calendar-accessible-geometry")}matrixCellSize(cols){let size;if(this.fitToWidth&&cols>0){const padLeft=this.matrixPadLeft,hostWidth=this.clientWidth||padLeft+cols*this.cellSize;size=this.clampFitCellSize((hostWidth-padLeft)/cols)}else size=this.cellSize;if(!this.accessibleCells)return size;const target=this.accessibleTargetSizePx,custom=finiteNumber(this.cellGapX,1)!==1||finiteNumber(this.cellGapY,1)!==1||finiteRange(this.cellRadius,0,0)>0,gap=this.rowHeight!==void 0?finiteRange(this.cellGapX,1,0,target):custom?Math.max(finiteRange(this.cellGapX,1,0,target),finiteRange(this.cellGapY,1,0,target)):0;return Math.max(size,target+gap)}matrixRowHeight(cellSize){if(this.rowHeight===void 0)return cellSize;const height=finiteRange(this.rowHeight,cellSize,1);if(!this.accessibleCells)return height;const target=this.accessibleTargetSizePx;return Math.max(height,target+finiteRange(this.cellGapY,1,0,target))}matrixCellShape(size,height=this.matrixRowHeight(size)){if(height===size&&finiteNumber(this.cellGapX,1)===1&&finiteNumber(this.cellGapY,1)===1&&finiteRange(this.cellRadius,0,0)===0)return{w:size-1,h:size-1,radius:0,custom:!1};const target=this.accessibleCells?this.accessibleTargetSizePx:1,w=size-finiteRange(this.cellGapX,1,0,Math.max(0,size-Math.min(size,target))),h=height-finiteRange(this.cellGapY,1,0,Math.max(0,height-Math.min(height,target))),radius=finiteRange(this.cellRadius,0,0,Math.min(w,h)/2);return{w,h,radius,custom:height!==size||w!==size-1||h!==size-1||radius!==0}}calendarCellShape(size){const radius=this.calendarSpacing().radius;return radius>0?{w:size,h:size,radius:Math.min(radius,size/2),custom:!0}:void 0}fillMatrixCell(ctx,x,y,shape){shape.radius===0?ctx.fillRect(x,y,shape.w,shape.h):(ctx.beginPath(),ctx.roundRect(x,y,shape.w,shape.h,shape.radius),ctx.fill())}fillContext(bucketCount,cs,mode){const[lo,hi]=this.cachedValueRange??[0,1];return{ramp:this.colorRamp(bucketCount,cs),noData:this.readToken(cs,"no-data-fill",FALLBACK_NO_DATA_FILL),lo,hi,mode,styles:cs}}cellFill(value,override,fill){const{ramp,noData,lo,hi,mode,styles:styles2}=fill;if(override!=null)return this.resolveCellColor(override,styles2);if(this.isNoData(value))return noData;if(this.scale==="sqrt"){const step=sqrtStep(value,hi,ramp.colors.length);return step<0?noData:ramp.colors[step]}return this.cachedColorSteps.length>=2?ramp.colors[this.rampBucket(value,lo,hi,ramp.colors.length)]:mode==="calendar"?ramp.colors[quartileBucket(value,this.cachedCalendarSortedValues,ramp.colors.length)]:mixRgb(ramp.loRgb,ramp.hiRgb,this.rampAlpha(value,lo,hi))}paintMatrixCell(ctx,row,col,x,y,shape,fill){const value=this.matrixValues[row]?.[col]??Number.NaN;ctx.fillStyle=this.cellFill(value,this.cellColor?.({row,col},value),fill),this.fillMatrixCell(ctx,x,y,shape)}paintMatrixFocusOverlays(ctx,row,col,cellSize,rowHeight,shape,cs,state2){const x=this.matrixPadLeft+col*cellSize,y=this.matrixPadTop+row*rowHeight;state2==="annotation"&&this.cachedMatrixAnnotationPositions.has(`${row}:${col}`)&&this.strokeCellState(ctx,x,y,cellSize,"annotation",this.readToken(cs,"annotation-color",FALLBACK_ANNOTATION_COLOR),shape),state2==="selected"&&this.isSelectedPos({row,col})&&this.strokeCellState(ctx,x,y,cellSize,"selected",this.readToken(cs,"selected-color",FALLBACK_SELECTED_COLOR),shape);const focused=this.ringedCell();state2==="focus"&&focused&&"row"in focused&&focused.row===row&&focused.col===col&&this.strokeCellState(ctx,x,y,cellSize,"focus",this.readToken(cs,"focus-ring-color",FALLBACK_FOCUS_RING_COLOR),shape)}focusRepaintBounds(ctx,x,y,cellSize,cellHeight=cellSize){const padding=RING_LINE_WIDTH+1,dpr=ctx.getTransform().a,left=Math.floor((x-padding)*dpr)/dpr,top=Math.floor((y-padding)*dpr)/dpr,right=Math.ceil((x+cellSize+padding)*dpr)/dpr,bottom=Math.ceil((y+cellHeight+padding)*dpr)/dpr;return{left,top,width:right-left,height:bottom-top,radius:Math.ceil((2*padding+1/dpr)/cellSize),rowRadius:Math.ceil((2*padding+1/dpr)/cellHeight)}}repaintMatrixFocusCell(pos){this.withLabelCache(()=>this.paintMatrixFocusCell(pos))}paintMatrixFocusCell(pos){if(!pos||!this.canvas)return;const rows=this.matrixRowLabels.length,cols=this.matrixColLabels.length;if(pos.row<0||pos.row>=rows||pos.col<0||pos.col>=cols)return;const cellSize=this.matrixCellSize(cols),rowHeight=this.matrixRowHeight(cellSize),shape=this.matrixCellShape(cellSize,rowHeight),padLeft=this.matrixPadLeft,padTop=this.matrixPadTop,x=padLeft+pos.col*cellSize,y=padTop+pos.row*rowHeight,ctx=this.canvas.getContext("2d");if(!ctx)return;const cs=this.ownerDocument.defaultView?.getComputedStyle(this);if(!cs)return;const{left,top,width,height,radius,rowRadius}=this.focusRepaintBounds(ctx,x,y,cellSize,rowHeight),firstRow=Math.max(0,pos.row-rowRadius),lastRow=Math.min(rows-1,pos.row+rowRadius),firstCol=Math.max(0,pos.col-radius),lastCol=Math.min(cols-1,pos.col+radius),fill=this.fillContext(RAMP_STEPS,cs,"matrix"),scratch=rowHeight===cellSize?void 0:this.ownerDocument.createElement("canvas"),dpr=ctx.getTransform().a,scratchLeft=Math.floor((this.matrixPadLeft+firstCol*cellSize-RING_LINE_WIDTH-1)*dpr)/dpr,scratchTop=Math.floor((this.matrixPadTop+firstRow*rowHeight-RING_LINE_WIDTH-1)*dpr)/dpr;if(scratch){const right=Math.ceil((this.matrixPadLeft+(lastCol+1)*cellSize+RING_LINE_WIDTH+1)*dpr),bottom=Math.ceil((this.matrixPadTop+(lastRow+1)*rowHeight+RING_LINE_WIDTH+1)*dpr);scratch.width=right-Math.round(scratchLeft*dpr),scratch.height=bottom-Math.round(scratchTop*dpr)}const paintCtx=scratch?.getContext("2d")??ctx;if(scratch&&paintCtx===ctx){this.drawMatrix();return}paintCtx.save();try{scratch?paintCtx.setTransform(dpr,0,0,dpr,-scratchLeft*dpr,-scratchTop*dpr):(paintCtx.beginPath(),paintCtx.rect(left,top,width,height),paintCtx.clip(),paintCtx.clearRect(left,top,width,height));for(let row=firstRow;row<=lastRow;row++)for(let col=firstCol;col<=lastCol;col++)this.paintMatrixCell(paintCtx,row,col,padLeft+col*cellSize,padTop+row*rowHeight,shape,fill);for(const state2 of["annotation","selected","focus"])for(let row=firstRow;row<=lastRow;row++)for(let col=firstCol;col<=lastCol;col++)this.paintMatrixFocusOverlays(paintCtx,row,col,cellSize,rowHeight,shape,cs,state2);left<this.matrixPadLeft&&this.paintMatrixRowLabels(paintCtx,this.matrixPadLeft,this.matrixPadTop,rowHeight,cs,{top,bottom:top+height}),top<this.matrixPadTop&&this.paintMatrixColLabels(paintCtx,this.matrixPadLeft,this.matrixPadTop,cellSize,cs,{first:firstCol,last:lastCol})}finally{paintCtx.restore()}if(scratch){ctx.save();try{ctx.setTransform(1,0,0,1,0,0),ctx.clearRect(left*dpr,top*dpr,width*dpr,height*dpr),ctx.drawImage(scratch,Math.round((left-scratchLeft)*dpr),Math.round((top-scratchTop)*dpr),Math.round(width*dpr),Math.round(height*dpr),Math.round(left*dpr),Math.round(top*dpr),Math.round(width*dpr),Math.round(height*dpr))}finally{ctx.restore()}}}paintCalendarCell(ctx,week,weekday,cellSize,radius,fill){const value=this.calendarValueAt(week,weekday);ctx.fillStyle=this.cellFill(value,this.cellColor?.(this.calendarPos(week,weekday),value),fill),this.fillCalendarCell(ctx,this.columnXFor(week),this.rowYFor(weekday),cellSize,radius)}fillCalendarCell(ctx,x,y,size,radius){radius===0?ctx.fillRect(x,y,size,size):(ctx.beginPath(),ctx.roundRect(x,y,size,size,radius),ctx.fill())}recordCalendarGeometry(spacing,weekCount){const next={padLeft:this.calendarPadLeft,padTop:CAL_LABEL_H,cellSize:spacing.cellSize,cellWidth:spacing.cellSize,cellHeight:spacing.cellSize,cellGapX:spacing.gapX,cellGapY:spacing.gapY,cellRadius:spacing.radius,weekCount,firstDayOfWeek:this.normalizedFirstDayOfWeek},previous=this.lastPaintedCalendarGeometry;if(previous&&Object.keys(next).every(key=>previous[key]===next[key]))return!1;const frozen=Object.freeze(next);return this.lastPaintedCalendarGeometry=frozen,this.emit("lr-calendar-geometry-change",frozen),!0}paintCalendarFocusOverlays(ctx,week,weekday,cellSize,cs,state2){const date=this.calendarDateAt(week,weekday),x=this.columnXFor(week),y=this.rowYFor(weekday);state2==="annotation"&&this.cachedCalendarCellsByDate.has(date)&&this.cachedCalendarAnnotationDates.has(date)&&this.strokeCellState(ctx,x,y,cellSize,"annotation",this.readToken(cs,"annotation-color",FALLBACK_ANNOTATION_COLOR)),state2==="selected"&&(this.multiple||this.cachedCalendarCellsByDate.has(date))&&this.isSelectedPos({week,weekday,date})&&this.strokeCellState(ctx,x,y,cellSize,"selected",this.readToken(cs,"selected-color",FALLBACK_SELECTED_COLOR));const focused=this.ringedCell();state2==="focus"&&focused&&"week"in focused&&focused.week===week&&focused.weekday===weekday&&this.strokeCellState(ctx,x,y,cellSize,"focus",this.readToken(cs,"focus-ring-color",FALLBACK_FOCUS_RING_COLOR))}repaintCalendarFocusCell(pos){this.withLabelCache(()=>this.paintCalendarFocusCell(pos))}paintCalendarFocusCell(pos){if(!pos||!this.canvas)return;const{weekCount,firstWeekStart}=this.cachedCalendarGrid;if(pos.week<0||pos.week>=weekCount||pos.weekday<0||pos.weekday>=7)return;const cellSize=this.calendarCellSize(),x=this.columnXFor(pos.week),y=this.rowYFor(pos.weekday),ctx=this.canvas.getContext("2d");if(!ctx)return;const cs=this.ownerDocument.defaultView?.getComputedStyle(this);if(!cs)return;const{left,top,width,height,radius}=this.focusRepaintBounds(ctx,x,y,cellSize),firstWeek=Math.max(0,pos.week-radius),lastWeek=Math.min(weekCount-1,pos.week+radius),firstDay=Math.max(0,pos.weekday-radius),lastDay=Math.min(6,pos.weekday+radius),fill=this.fillContext(normalizeBucketCount(this.bucketCount),cs,"calendar"),cellRadius=this.calendarSpacing().radius;ctx.save();try{ctx.beginPath(),ctx.rect(left,top,width,height),ctx.clip(),ctx.clearRect(left,top,width,height);for(let week=firstWeek;week<=lastWeek;week++)for(let day=firstDay;day<=lastDay;day++)this.paintCalendarCell(ctx,week,day,cellSize,cellRadius,fill);for(const state2 of["annotation","selected","focus"])for(let week=firstWeek;week<=lastWeek;week++)for(let day=firstDay;day<=lastDay;day++)this.paintCalendarFocusOverlays(ctx,week,day,cellSize,cs,state2);this.paintCalendarAxisLabels(ctx,cellSize,cs,firstWeekStart,this.cachedCalendarGrid.monthLabels,top<CAL_LABEL_H,left<this.calendarPadLeft)}finally{ctx.restore()}}drawMatrix(){this.withLabelCache(()=>this.paintMatrix())}paintMatrix(){if(!this.canvas)return;const rows=this.matrixRowLabels.length,cols=this.matrixColLabels.length,cs=this.ownerDocument.defaultView?.getComputedStyle(this);if(!cs)return;this.rowLabelWidth==="auto"&&(this.resolvedRowLabelWidth=this.measureRowLabelWidth(cs)),this.colLabelHeight==="auto"&&(this.resolvedColLabelHeight=this.measureColLabelHeight(cs));const padLeft=this.matrixPadLeft,padTop=this.matrixPadTop,cellSize=this.matrixCellSize(cols),rowHeight=this.matrixRowHeight(cellSize),shape=this.matrixCellShape(cellSize,rowHeight),dimensions=shape.custom?{cellWidth:shape.w,cellHeight:shape.h,cellRadius:shape.radius}:{},previous=this.lastPaintedMatrixGeometry,geometry=previous&&previous.padLeft===padLeft&&previous.padTop===padTop&&previous.cellSize===cellSize&&previous.rowHeight===(rowHeight===cellSize?void 0:rowHeight)&&previous.cellWidth===dimensions.cellWidth&&previous.cellHeight===dimensions.cellHeight&&previous.cellRadius===dimensions.cellRadius?previous:Object.freeze({padLeft,padTop,cellSize,...rowHeight===cellSize?{}:{rowHeight},...dimensions});this.lastPaintedMatrixGeometry=geometry;const geometryChanged=geometry!==previous;geometryChanged&&this.emit("lr-matrix-geometry-change",geometry);const w=padLeft+cols*cellSize,h=padTop+rows*rowHeight,ctx=this.sizeCanvas(this.canvas,w,h);if(!ctx)return;ctx.clearRect(0,0,w,h);const fill=this.fillContext(RAMP_STEPS,cs,"matrix");this.canvasColorCache.clear();for(let row=0;row<rows;row++)for(let col=0;col<cols;col++)this.paintMatrixCell(ctx,row,col,padLeft+col*cellSize,padTop+row*rowHeight,shape,fill);if(this.cachedAnnotations.length)for(const ann of this.cachedAnnotations){if(ann.row==null||ann.col==null||ann.row<0||ann.row>=rows||ann.col<0||ann.col>=cols)continue;const x=padLeft+ann.col*cellSize,y=padTop+ann.row*rowHeight;this.strokeCellState(ctx,x,y,cellSize,"annotation",this.readToken(cs,"annotation-color",FALLBACK_ANNOTATION_COLOR),shape)}for(const selected of this.selectedPaintPositions()){if(!("row"in selected))continue;const{row,col}=selected;if(row>=0&&row<rows&&col>=0&&col<cols){const x=padLeft+col*cellSize,y=padTop+row*rowHeight;this.strokeCellState(ctx,x,y,cellSize,"selected",this.readToken(cs,"selected-color",FALLBACK_SELECTED_COLOR),shape)}}const ringedMatrix=this.ringedCell();if(ringedMatrix&&"row"in ringedMatrix){const{row,col}=ringedMatrix;if(row<rows&&col<cols){const x=padLeft+col*cellSize,y=padTop+row*rowHeight;this.strokeCellState(ctx,x,y,cellSize,"focus",this.readToken(cs,"focus-ring-color",FALLBACK_FOCUS_RING_COLOR),shape)}}this.paintMatrixRowLabels(ctx,padLeft,padTop,rowHeight,cs),this.paintMatrixColLabels(ctx,padLeft,padTop,cellSize,cs),this.paintFrozenLabelBands(padLeft,padTop,cellSize,rowHeight,w,h,ctx.getTransform().a,cs),this.canvasHasContent=!0,geometryChanged&&(this.accessibleCells||this.effectiveAxisSelection!=="none")&&this.scheduleAfterUpdate(()=>this.requestUpdate(),"heatmap-matrix-accessible-geometry")}paintMatrixRowLabels(ctx,padLeft,padTop,cellSize,cs,dirty){ctx.fillStyle=this.labelColor(cs),ctx.font=this.readToken(cs,"label-font",FALLBACK_LABEL_FONT);const rowLabelSpace=padLeft-ROW_LABEL_INSET*2;let first=0,last=this.matrixRowLabels.length-1;if(dirty){const{fontBoundingBoxAscent,fontBoundingBoxDescent}=ctx.measureText("M"),baseline=padTop+cellSize/2+3;first=Math.max(first,Math.floor((dirty.top-fontBoundingBoxDescent-baseline)/cellSize)),last=Math.min(last,Math.ceil((dirty.bottom+fontBoundingBoxAscent-baseline)/cellSize))}for(let r=first;r<=last;r++){const shown=this.ellipsize(ctx,this.matrixRowLabels[r],rowLabelSpace);shown&&ctx.fillText(shown,ROW_LABEL_INSET,padTop+r*cellSize+cellSize/2+3)}}paintMatrixColLabels(ctx,padLeft,padTop,cellSize,cs,columns){ctx.fillStyle=this.labelColor(cs),ctx.font=this.readToken(cs,"label-font",FALLBACK_LABEL_FONT);const colRotation=this.effectiveColLabelRotation,interval=finiteInteger(this.colLabelInterval,1,1);if(colRotation===0){const cols=this.matrixColLabels.length;this.matrixColLabels.forEach((label,c)=>{if(c%interval!==0||columns&&(c<columns.first-interval+1||c>columns.last))return;const shown=this.ellipsize(ctx,label,Math.min(interval,cols-c)*cellSize-2);shown&&ctx.fillText(shown,padLeft+c*cellSize+2,padTop-COL_LABEL_INSET)});return}const radians=colRotation*Math.PI/180,previousAlign=ctx.textAlign;ctx.textAlign="right",this.matrixColLabels.forEach((label,c)=>{c%interval===0&&(ctx.save(),ctx.translate(padLeft+c*cellSize+cellSize/2,padTop-COL_LABEL_INSET),ctx.rotate(radians),ctx.fillText(label,0,0),ctx.restore())}),ctx.textAlign=previousAlign}paintFrozenLabelBands(padLeft,padTop,cellSize,rowHeight,width,height,scale,cs){if(this.effectiveStickyLabels==="none")return;const backdrop=this.stickyLabelBg(cs),rowBand=this.frozenBandCanvas("row-labels");rowBand&&this.paintFrozenBand(rowBand,padLeft,height,scale,backdrop,bandCtx=>this.paintMatrixRowLabels(bandCtx,padLeft,padTop,rowHeight,cs));const colBand=this.frozenBandCanvas("col-labels");colBand&&this.paintFrozenBand(colBand,width,padTop,scale,backdrop,bandCtx=>this.paintMatrixColLabels(bandCtx,padLeft,padTop,cellSize,cs))}frozenBandCanvas(part){return this.shadowRoot?.querySelector(`[part="${part}"]`)??null}sizeCanvas(canvas,width,height,desiredScale=this.ownerDocument.defaultView?.devicePixelRatio){const{pixelWidth,pixelHeight,scale}=resolveBoundedCanvasAllocation({cssWidth:width,cssHeight:height,desiredScale,maxDimension:MAX_CANVAS_DIMENSION,maxPixels:MAX_CANVAS_PIXELS});canvas.width=pixelWidth,canvas.height=pixelHeight,canvas.style.width=`${width}px`,canvas.style.height=`${height}px`;const ctx=canvas.getContext("2d");return ctx?.scale(scale,scale),ctx}paintFrozenBand(canvas,width,height,scale,backdrop,paint){const ctx=this.sizeCanvas(canvas,width,height,scale);ctx&&(ctx.clearRect(0,0,width,height),ctx.fillStyle=backdrop,ctx.fillRect(0,0,width,height),paint(ctx))}hitTest(x,y){return this.effectiveMode==="calendar"?this.hitTestCalendar(x,y):this.hitTestMatrix(x,y)}matrixNavigationGeometry(rows,cols){const painted=this.lastPaintedMatrixGeometry;if(painted)return{rows,cols,padLeft:painted.padLeft,padTop:painted.padTop,cellSize:painted.cellSize,rowHeight:painted.rowHeight??painted.cellSize,cellWidth:painted.cellWidth??painted.cellSize-1,cellHeight:painted.cellHeight??painted.cellSize-1,customShape:painted.cellWidth!==void 0};const cellSize=this.matrixCellSize(cols),rowHeight=this.matrixRowHeight(cellSize),shape=this.matrixCellShape(cellSize,rowHeight);return{rows,cols,padLeft:this.matrixPadLeft,padTop:this.matrixPadTop,cellSize,rowHeight,cellWidth:shape.w,cellHeight:shape.h,customShape:shape.custom}}calendarNavigationGeometry(){const spacing=this.calendarSpacing(),cellSize=spacing.cellSize,columnPositions=this.calendarColumnPositions(spacing),rowPositions=this.calendarRowPositions(spacing);return{weekCount:this.cachedCalendarGrid.weekCount,cellSize,columnPositions,rowPositions,padLeft:this.calendarPadLeft,padTop:CAL_LABEL_H}}hitTestMatrix(x,y){const rows=this.matrixRowLabels.length,cols=this.matrixColLabels.length;return rows===0||cols===0?null:hitTestMatrixGrid(x,y,this.matrixNavigationGeometry(rows,cols),pos=>this.isCellInteractive(pos))}firstInteractiveMatrixCell(rows,cols){return findFirstInteractiveMatrixCell(rows,cols,pos=>this.isCellInteractive(pos))}nextInteractiveMatrixCell(row,col,dRow,dCol,rows,cols){return findNextInteractiveMatrixCell(row,col,dRow,dCol,rows,cols,pos=>this.isCellInteractive(pos))}firstInteractiveCalendarCell(weekCount){return findFirstInteractiveCalendarCell(weekCount,(week,weekday)=>this.calendarPos(week,weekday),pos=>this.isCellInteractive(pos))}nextInteractiveCalendarCell(week,weekday,dWeek,dWeekday,weekCount){return findNextInteractiveCalendarCell(week,weekday,dWeek,dWeekday,weekCount,(nextWeek,nextWeekday)=>this.calendarPos(nextWeek,nextWeekday),pos=>this.isCellInteractive(pos))}hitTestCalendar(x,y){const weekCount=this.cachedCalendarGrid.weekCount;if(weekCount===0)return null;const spacing=this.calendarSpacing(),columnPositions=this.calendarColumnPositions(spacing);return hitTestCalendarGrid(x,y,weekCount,columnPositions,()=>spacing.cellSize,()=>this.calendarRowPositions(spacing),(week,weekday)=>this.calendarPos(week,weekday),pos=>this.isCellInteractive(pos))}calendarCellAt(pos){return readCalendarCell(pos.week,pos.weekday,this.cachedCalendarCellsByPos,this.cachedCalendarDateByPos,this.cachedCalendarGrid.firstWeekStart,this.signedDomain)}calendarValueAt(week,weekday){return readCalendarValue(week,weekday,this.cachedCalendarCellsByPos,this.signedDomain)}calendarDateAt(week,weekday){return readCalendarDate(week,weekday,this.cachedCalendarDateByPos,this.cachedCalendarGrid.firstWeekStart)}calendarPos(week,weekday){return{week,weekday,date:this.calendarDateAt(week,weekday)}}cellRect(pos){return"week"in pos?calendarCellRect(pos.week,pos.weekday,this.calendarNavigationGeometry()):matrixCellRect(pos,this.matrixNavigationGeometry(this.matrixRowLabels.length,this.matrixColLabels.length))}accessibleCellRect(pos){return"week"in pos||!this.lastPaintedMatrixGeometry?this.cellRect(pos):accessibleMatrixCellRect(pos,this.lastPaintedMatrixGeometry)}defaultCellText(pos){return"week"in pos?this.calendarCellText(pos):this.matrixCellText(pos)}matrixCellText(pos){const rowLabel=this.matrixRowLabels[pos.row]??this.localize("heatmapDefaultRowLabel",void 0,{n:this.formatLocaleNumber(pos.row+1)}),colLabel=this.matrixColLabels[pos.col]??this.localize("heatmapDefaultColLabel",void 0,{n:this.formatLocaleNumber(pos.col+1)}),v=this.matrixValues[pos.row]?.[pos.col],valueText=v==null||this.isNoData(v)?this.localize("heatmapNoDataValue"):this.formatNumericValue(v);return this.localize("heatmapMatrixCellLabel",void 0,{row:rowLabel,col:colLabel,value:valueText})}calendarCellText(pos){const{date,value}=this.calendarCellAt(pos),label=getDateTimeFormat(this.effectiveLocale||void 0,{month:"short",day:"numeric",calendar:"gregory",timeZone:"UTC"}).format(parseIsoDate(date)),valueText=this.isNoData(value)?this.localize("heatmapNoDataValue"):this.formatNumericValue(value);return this.localize("heatmapCalendarCellLabel",void 0,{date:label,value:valueText})}valueAt(pos){return"week"in pos?this.calendarCellAt(pos).value:this.matrixValues[pos.row]?.[pos.col]??-1}resolveCellText(pos){return this.cellText?this.cellText(pos,this.valueAt(pos)):this.defaultCellText(pos)}isCellInteractive(pos){return this.cellInteractive?.(pos,this.valueAt(pos))??!0}announce(pos,isSelectedOverride){const text=this.resolveCellText(pos),announcement=isSelectedOverride??this.isSelectedPos(pos)?this.localize("heatmapSelectedCellLabel",void 0,{cell:text}):text;this.liveText=announcement,this.announcements.announcePolite(announcement)}emitCellClick(pos,source="pointer",select=!0,current){if(!this.isCellInteractive(pos)||current&&!current())return;if(this.multiple&&select){const generation=this.sourceBindingGeneration;if(this.selectionAnchor=pos,this.selectionRangeBase=void 0,this.toggleSelectionPositions([pos],source),!this.isConnected||this.matrixSource||this.sourceBindingGeneration!==generation)return}let detail;if("week"in pos){const{date,value}=this.calendarCellAt(pos);detail={date,value}}else{const value=this.matrixValues[pos.row]?.[pos.col]??-1;detail={row:pos.row,col:pos.col,value}}this.emit("lr-cell-activate",{...detail})}get currentSelectedPositions(){return this.selectionPreview??this.selectedPositions}selectedPaintPositions(){if(this.multiple)return[...this.currentSelectedPositions.values()];const selected=this.selectedCell;if(!selected)return[];if(this.effectiveMode==="calendar"){const match=selected.date?this.cachedCalendarCellsByDate.get(selected.date):void 0;return match?[match]:[]}return selected.row!=null&&selected.col!=null?[{row:selected.row,col:selected.col}]:[]}rebuildSelectedPositions(){const positions=new Map,input=Array.isArray(this.selectedCells)?this.selectedCells:[],dates=input.length&&this.effectiveMode==="calendar"?new Map(this.accessibleCellPositions().map(pos=>[this.accessibleCellIdentity(pos),pos])):void 0;for(let index=0;index<Math.min(input.length,MAX_HEATMAP_CELLS);index++){const cell=input[index];if(!cell||typeof cell!="object")continue;const pos=dates?typeof cell.date=="string"?dates.get(cell.date):void 0:Number.isInteger(cell.row)&&Number.isInteger(cell.col)?this.accessibleCellAtKey(`matrix-${cell.row}-${cell.col}`):void 0;pos&&positions.set(this.accessibleCellKey(pos),pos)}this.selectedPositions=positions}selectionCoordinates(pos){return"week"in pos?{row:pos.weekday,col:pos.week}:pos}proposeSelection(positions,source){if(positions.size===this.selectedPositions.size&&[...positions.keys()].every(key=>this.selectedPositions.has(key)))return;this.proposedSelectionKeys=new Set(positions.keys());const selectedCells=[...positions.values()].sort((a,b)=>{const first=this.selectionCoordinates(a),second=this.selectionCoordinates(b);return first.row-second.row||first.col-second.col}).map(pos=>"week"in pos?{date:pos.date}:{row:pos.row,col:pos.col});this.emit("lr-selection-change",{selectedCells,source})}toggleSelectionPositions(positions,source){if(!this.multiple||positions.length===0)return;const next=new Map(this.selectedPositions),remove=positions.every(pos=>next.has(this.accessibleCellKey(pos)));for(const pos of positions){const key=this.accessibleCellKey(pos);remove?next.delete(key):next.set(key,pos)}this.proposeSelection(next,source)}toggleSelectionAxis(index,row){!this.multiple||!Number.isInteger(index)||index<0||(this.cancelSelectionGesture(),this.selectionRangeBase=void 0,this.toggleSelectionPositions(this.accessibleCellPositions().filter(pos=>{const coordinates=this.selectionCoordinates(pos);return(row?coordinates.row:coordinates.col)===index}),row?"row":"column"))}selectionKeyDown(event,pos){if(!this.multiple||isHandledOrComposingKey(event)||event.altKey)return!1;if(event.key==="Escape"&&this.selectionGesture&&!shouldIgnoreNavigationKey(event))return event.preventDefault(),this.cancelSelectionGesture(),!0;if(event.key!==" "||!pos||!(event.shiftKey||event.ctrlKey||event.metaKey))return!1;event.preventDefault();const coordinates=this.selectionCoordinates(pos);return event.ctrlKey||event.metaKey?this.toggleColumnSelection(coordinates.col):this.toggleRowSelection(coordinates.row),!0}extendSelection(previous,next,range){if(!this.multiple)return;if(!range){this.selectionAnchor=next,this.selectionRangeBase=void 0;return}this.selectionAnchor??=previous??next,this.selectionRangeBase??=new Map(this.selectedPositions);const from=this.selectionCoordinates(this.selectionAnchor),to=this.selectionCoordinates(next),selected=new Map(this.selectionRangeBase);for(let row=Math.min(from.row,to.row);row<=Math.max(from.row,to.row);row++)for(let col=Math.min(from.col,to.col);col<=Math.max(from.col,to.col);col++){const key=this.effectiveMode==="calendar"?`calendar-${col}-${row}`:`matrix-${row}-${col}`,pos=this.accessibleCellAtKey(key);pos&&selected.set(key,pos)}return this.proposeSelection(selected,"keyboard"),new Set(selected.keys())}selectionPointerPosition(event){if(!this.canvas)return null;const rect=this.canvas.getBoundingClientRect(),scale=layoutScale(this.canvas);return this.hitTest((event.clientX-rect.left)/scale.x,(event.clientY-rect.top)/scale.y)}captureSelectionContext(){const data=this.data,maxCells=this.maxCells,interactive=this.cellInteractive,selected=this.selectedCells,accessible=this.accessibleCells,source=this.matrixSource,owner=this.ownerDocument;return(allowSelectionChange=!1)=>this.isConnected&&this.ownerDocument===owner&&this.multiple&&this.data===data&&Object.is(this.maxCells,maxCells)&&this.cellInteractive===interactive&&this.accessibleCells===accessible&&this.matrixSource===source&&(allowSelectionChange||this.selectedCells===selected)}paintSelectionTo(pos){const gesture=this.selectionGesture;if(!gesture)return;this.samePos(pos,gesture.previous)||(gesture.moved=!0);const from=this.selectionCoordinates(gesture.previous),to=this.selectionCoordinates(pos),steps=Math.max(Math.abs(to.row-from.row),Math.abs(to.col-from.col),1),changed=[];for(let step=0;step<=steps;step++){const row=Math.round(from.row+(to.row-from.row)*step/steps),col=Math.round(from.col+(to.col-from.col)*step/steps),key=this.effectiveMode==="calendar"?`calendar-${col}-${row}`:`matrix-${row}-${col}`,candidate=this.accessibleCellAtKey(key);candidate&&(gesture.cells.has(key)!==gesture.selecting&&changed.push(candidate),gesture.selecting?gesture.cells.set(key,candidate):gesture.cells.delete(key))}if(gesture.previous=pos,this.selectionPreview!==gesture.cells){this.selectionPreview=gesture.cells;return}this.requestUpdate(),(changed.length>16||!changed.every(cell=>this.repaintCell(cell)))&&this.requestDraw()}repaintCell(pos){return!this.canvasHasContent||!this.canvas||this.drawDirty?!1:("week"in pos?this.repaintCalendarFocusCell(pos):this.repaintMatrixFocusCell(pos),!0)}cancelSelectionGesture(pointerEnded=!1){const gesture=this.selectionGesture;this.selectionGesture=void 0,this.selectionPreview=void 0,gesture&&(pointerEnded||(this.canceledSelectionPointer=gesture.pointerId),this.suppressNextSelectionClick(),releasePointer(gesture.target,gesture.pointerId))}suppressNextSelectionClick(){const view=this.ownerDocument.defaultView;view&&(this.releaseSelectionClick?.(),this.selectionClickKey??=nextId("heatmap-selection"),this.releaseSelectionClick=armClickSuppression(view,this.selectionClickKey))}consumeSelectionClick(event){return event.detail!==0&&this.selectionClickKey!==void 0&&consumeSuppressedClick(event,this.selectionClickKey)}get gridScrollportRendered(){return this.effectiveStickyLabels!=="none"||(this.fill||this.fitBlock)&&this.effectiveMode==="matrix"}get gridScrollport(){return this.shadowRoot?.querySelector('[part="grid"]')??null}measureTooltip(){const tooltip=this.shadowRoot?.querySelector('[part="tooltip"]');if(!tooltip||tooltip.hidden)return;const view=this.ownerDocument.defaultView,gap=view?Math.abs(finiteNumber(Number.parseFloat(view.getComputedStyle(tooltip).marginBlockStart),0)):0,inline=tooltip.offsetWidth,block=tooltip.offsetHeight+gap;inline===this.tooltipSize.inline&&block===this.tooltipSize.block||(this.tooltipSize={inline,block},this.requestUpdate())}tooltipAnchor(pos){const rect=this.cellRect(pos),center=rect.x+rect.w/2,port=this.gridScrollport,frame=port??this.shadowRoot?.querySelector('[part="base"]');if(!frame)return{style:{left:`${center}px`,top:`${rect.y}px`},below:!1};const{inline,block}=this.tooltipSize,scrollLeft=port?.scrollLeft??0,scrollTop=port?.scrollTop??0,windowStart=scrollLeft+(port&&this.freezesRowLabels?this.matrixPadLeft:0),windowEnd=scrollLeft+frame.clientWidth,windowTop=scrollTop+(port&&this.freezesColLabels?this.matrixPadTop:0),windowBottom=scrollTop+frame.clientHeight,below=rect.y-block<windowTop&&rect.y+rect.h+block<=windowBottom;return{style:{left:`${Math.max(windowStart+inline/2,Math.min(center,windowEnd-inline/2))}px`,top:`${below?rect.y+rect.h:rect.y}px`},below}}scrollCellIntoView(pos){const port=this.gridScrollport;if(!port)return;const rect=this.cellRect(pos),bandInline=this.freezesRowLabels?this.matrixPadLeft:0,bandBlock=this.freezesColLabels?this.matrixPadTop:0,left=Math.min(Math.max(port.scrollLeft,rect.x+rect.w-port.clientWidth),rect.x-bandInline),top=Math.min(Math.max(port.scrollTop,rect.y+rect.h-port.clientHeight),rect.y-bandBlock);left!==port.scrollLeft&&(port.scrollLeft=left),top!==port.scrollTop&&(port.scrollTop=top)}samePos(a,b){return a===b?!0:!a||!b?!1:"week"in a&&"week"in b?a.week===b.week&&a.weekday===b.weekday:"row"in a&&"row"in b?a.row===b.row&&a.col===b.col:!1}edgeCell(e){if(e.key!=="Home"&&e.key!=="End")return null;const row=this.focusedCell&&!(e.ctrlKey||e.metaKey)?this.selectionCoordinates(this.focusedCell).row:void 0,cells=this.accessibleCellPositions().filter(pos=>row===void 0||this.selectionCoordinates(pos).row===row);return cells[e.key==="Home"?0:cells.length-1]??null}navigateGridKey(e){const previous=this.focusedCell,edge=this.edgeCell(e);if(edge?(e.preventDefault(),this.focusedCell=edge,this.scrollCellIntoView(edge)):this.effectiveMode==="calendar"?this.onCalendarKeyDown(e):this.onMatrixKeyDown(e),(edge||ARROW_KEYS.has(e.key))&&this.focusedCell){const proposedKeys=this.extendSelection(previous,this.focusedCell,e.shiftKey);this.announce(this.focusedCell,proposedKeys?.has(this.accessibleCellKey(this.focusedCell)))}}onMatrixKeyDown(e){const rows=this.matrixRowLabels.length,cols=this.matrixColLabels.length;if(rows===0||cols===0)return;if(e.key==="Enter"||e.key===" "){e.preventDefault(),this.focusedCell&&!isRepeatedActivationKey(e)&&this.emitCellClick(this.focusedCell,"keyboard");return}if(!ARROW_KEYS.has(e.key))return;if(e.preventDefault(),!this.focusedCell||!("row"in this.focusedCell)){const next2=this.firstInteractiveMatrixCell(rows,cols);if(!next2)return;this.focusedCell=next2,this.scrollCellIntoView(next2);return}const{row,col}=this.focusedCell;let dRow=0,dCol=0;e.key==="ArrowUp"?dRow=-1:e.key==="ArrowDown"?dRow=1:e.key==="ArrowLeft"?dCol=-1:e.key==="ArrowRight"&&(dCol=1);const next=this.nextInteractiveMatrixCell(row,col,dRow,dCol,rows,cols);this.focusedCell=next,this.scrollCellIntoView(next)}onCalendarKeyDown(e){const{weekCount}=this.cachedCalendarGrid;if(weekCount===0)return;if(e.key==="Enter"||e.key===" "){e.preventDefault(),this.focusedCell&&!isRepeatedActivationKey(e)&&this.emitCellClick(this.focusedCell,"keyboard");return}if(!ARROW_KEYS.has(e.key))return;if(e.preventDefault(),!this.focusedCell||!("week"in this.focusedCell)){const next2=this.firstInteractiveCalendarCell(weekCount);if(!next2)return;this.focusedCell=next2;return}const{week,weekday}=this.focusedCell;let dWeek=0,dWeekday=0;e.key==="ArrowUp"?dWeekday=-1:e.key==="ArrowDown"?dWeekday=1:e.key==="ArrowLeft"?dWeek=-1:e.key==="ArrowRight"&&(dWeek=1);const next=this.nextInteractiveCalendarCell(week,weekday,dWeek,dWeekday,weekCount);this.focusedCell=next}resolveCellColor(value,cs){let color=this.canvasColorCache.get(value);if(color===void 0){const ctx=SCOPED_COLOR.test(value)?null:getScratchCtx(this.ownerDocument);if(ctx){ctx.fillStyle="rgb(1, 2, 3)";const rejected=ctx.fillStyle;ctx.fillStyle=value,ctx.fillStyle!==rejected&&(color=ctx.fillStyle)}color??=resolveCanvasColor(this,value,this.readToken(cs,"no-data-fill",FALLBACK_NO_DATA_FILL)),this.canvasColorCache.set(value,color)}return color}accessibleCellIndex(){if(this.accessibleIndex)return this.accessibleIndex;const positions=[];if(this.effectiveMode==="calendar"){const{weekCount}=this.cachedCalendarGrid;for(let week=0;week<weekCount;week++)for(let weekday=0;weekday<7;weekday++){const pos=this.calendarPos(week,weekday);this.isCellInteractive(pos)&&positions.push(pos)}}else for(let row=0;row<this.matrixRowLabels.length;row++)for(let col=0;col<this.matrixColLabels.length;col++){const pos={row,col};this.isCellInteractive(pos)&&positions.push(pos)}const byKey=new Map;return positions.forEach((position,index)=>byKey.set(this.accessibleCellKey(position),index)),this.accessibleIndex={positions,byKey}}accessibleCellPositions(){return this.accessibleCellIndex().positions}accessibleCellKey(pos){return"week"in pos?`calendar-${pos.week}-${pos.weekday}`:`matrix-${pos.row}-${pos.col}`}accessibleCellIdentity(pos){return"week"in pos?pos.date:this.accessibleCellKey(pos)}accessibleCellAtKey(key){const{positions,byKey}=this.accessibleCellIndex(),index=byKey.get(key);return index===void 0?null:positions[index]}focusAccessibleCell(pos){pos&&this.updateComplete.then(()=>{[...this.shadowRoot?.querySelectorAll('[part="cell"]')??[]].find(candidate=>candidate.dataset.cellKey===this.accessibleCellKey(pos))?.focus()})}accessibleWindowStart(){if(!this.accessibleCells)return 0;const{positions,byKey}=this.accessibleCellIndex(),focusIndex=this.focusedCell?byKey.get(this.accessibleCellKey(this.focusedCell))??0:0;return Math.max(0,Math.min(Math.max(0,positions.length-MAX_ACCESSIBLE_HEATMAP_CELLS),focusIndex-Math.floor(MAX_ACCESSIBLE_HEATMAP_CELLS/2)))}syncAccessibleTabStop(){if(!this.accessibleCells)return;const target=this.focusedCell??this.accessibleCellPositions()[0],key=target?this.accessibleCellKey(target):void 0,previous=this.renderRoot.querySelector('[part="cell"][tabindex="0"]');previous?.dataset.cellKey!==key&&(previous?.setAttribute("tabindex","-1"),key&&this.renderRoot.querySelector(`[data-cell-key="${key}"]`)?.setAttribute("tabindex","0"))}renderAccessibleCells(start){if(!this.accessibleCells)return html``;const positions=this.accessibleCellPositions(),tabStop=this.focusedCell??positions[0]??null,renderedPositions=positions.slice(start,start+MAX_ACCESSIBLE_HEATMAP_CELLS),renderedRows=new Map;for(const pos of renderedPositions){const rowIndex="week"in pos?pos.weekday+1:pos.row+1,row=renderedRows.get(rowIndex);row?row.push(pos):renderedRows.set(rowIndex,[pos])}const rowCount=this.effectiveMode==="calendar"?7:this.matrixRowLabels.length,colCount=this.effectiveMode==="calendar"?this.cachedCalendarGrid.weekCount:this.matrixColLabels.length,calendar=this.effectiveMode==="calendar"?this.calendarNavigationGeometry():void 0;return html`
|
|
4
|
+
<div part="cells" role="grid" aria-label=${this.authorAriaLabel??this.generatedAriaLabel} aria-rowcount=${rowCount} aria-colcount=${colCount} aria-multiselectable=${this.multiple?"true":nothing} aria-describedby=${[this.getAttribute("aria-describedby")??"",this.accessibleDescription?"description":"",this.projectionTruncated?"projection-limit":""].filter(Boolean).join(" ")||nothing} >
|
|
33
5
|
${[...renderedRows].map(([rowIndex,rowPositions])=>html`
|
|
34
6
|
<div class="cell-row" role="row" aria-rowindex=${rowIndex}>
|
|
35
7
|
${rowPositions.map(pos=>{const rect=calendar&&"week"in pos?calendarCellRect(pos.week,pos.weekday,calendar):this.accessibleCellRect(pos),key=this.accessibleCellKey(pos),colIndex="week"in pos?pos.week+1:pos.col+1;return html`
|
|
36
|
-
<button
|
|
37
|
-
part="cell"
|
|
38
|
-
class="cell"
|
|
39
|
-
type="button"
|
|
40
|
-
role="gridcell"
|
|
41
|
-
aria-colindex=${colIndex}
|
|
42
|
-
data-cell-key=${key}
|
|
43
|
-
data-cell-identity=${this.accessibleCellIdentity(pos)}
|
|
44
|
-
aria-label=${this.resolveCellText(pos)}
|
|
45
|
-
aria-selected=${this.isSelectedPos(pos)?"true":"false"}
|
|
46
|
-
tabindex=${this.samePos(tabStop,pos)?"0":"-1"}
|
|
47
|
-
style=${styleMap({insetInlineStart:`${rect.x}px`,insetBlockStart:`${rect.y}px`,inlineSize:`${rect.w}px`,blockSize:`${rect.h}px`})}
|
|
48
|
-
@focus=${this.onAccessibleCellFocus}
|
|
49
|
-
@click=${this.onAccessibleCellClick}
|
|
50
|
-
@keydown=${this.onAccessibleCellKeyDown}
|
|
51
|
-
></button>
|
|
8
|
+
<button part="cell" class="cell" type="button" role="gridcell" aria-colindex=${colIndex} data-cell-key=${key} data-cell-identity=${this.accessibleCellIdentity(pos)} aria-label=${this.resolveCellText(pos)} aria-selected=${this.isSelectedPos(pos)?"true":"false"} tabindex=${this.samePos(tabStop,pos)?"0":"-1"} style=${styleMap({insetInlineStart:`${rect.x}px`,insetBlockStart:`${rect.y}px`,inlineSize:`${rect.w}px`,blockSize:`${rect.h}px`})} @focus=${this.onAccessibleCellFocus} @click=${this.onAccessibleCellClick} @keydown=${this.onAccessibleCellKeyDown} ></button>
|
|
52
9
|
`})}
|
|
53
10
|
</div>
|
|
54
11
|
`)}
|
|
55
12
|
</div>
|
|
56
13
|
`}renderLegendScale(range){const stops=this.cachedLegendStops;return stops.length>0?html`${stops.map(stop=>{const color=sanitizeCssColor(stop.color);return html`
|
|
57
14
|
<span part="legend-stop">
|
|
58
|
-
${color?html`<span
|
|
59
|
-
|
|
60
|
-
style=${styleMap({background:color})}
|
|
61
|
-
></span>`:nothing}
|
|
62
|
-
<span part="legend-stop-label"
|
|
63
|
-
>${stop.label??this.formatNumericValue(stop.value)}</span
|
|
15
|
+
${color?html`<span part="legend-swatch" style=${styleMap({background:color})} ></span>`:nothing}
|
|
16
|
+
<span part="legend-stop-label" >${stop.label??this.formatNumericValue(stop.value)}</span
|
|
64
17
|
>
|
|
65
18
|
</span>
|
|
66
|
-
`})}`:html`<span part="legend-lo"
|
|
67
|
-
>${range?this.formatNumericValue(range[0]):""}</span
|
|
19
|
+
`})}`:html`<span part="legend-lo" >${range?this.formatNumericValue(range[0]):""}</span
|
|
68
20
|
>
|
|
69
21
|
<span class="bar"></span>
|
|
70
|
-
<span part="legend-hi"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
tabindex=${this.accessibleCells?"-1":"0"}
|
|
76
|
-
aria-hidden=${this.accessibleCells?"true":nothing}
|
|
77
|
-
role=${this.accessibleCells?nothing:"application"}
|
|
78
|
-
aria-label=${this.accessibleCells?nothing:this.authorAriaLabel??this.generatedAriaLabel}
|
|
79
|
-
aria-describedby=${this.accessibleCells?nothing:[this.getAttribute("aria-describedby")??"",projectionDescription?"projection-limit":""].filter(Boolean).join(" ")||nothing}
|
|
80
|
-
@pointermove=${this.onPointerMove}
|
|
81
|
-
@pointerleave=${this.onPointerLeave}
|
|
82
|
-
@click=${this.onCanvasClick}
|
|
83
|
-
@keydown=${this.onKeyDown}
|
|
84
|
-
></canvas>
|
|
85
|
-
${guard([this.overlayRevision,this.accessibleWindowStart()],()=>this.renderAccessibleCells())}
|
|
22
|
+
<span part="legend-hi" >${range?this.formatNumericValue(range[1]):""}</span
|
|
23
|
+
>`}renderGridSurface(projectionDescription){const accessibleStart=this.accessibleWindowStart(),surface=html`
|
|
24
|
+
<canvas part="canvas" tabindex=${this.accessibleCells?"-1":"0"} aria-hidden=${this.accessibleCells?"true":nothing} role=${this.accessibleCells?nothing:"application"} aria-label=${this.accessibleCells?nothing:this.authorAriaLabel??this.generatedAriaLabel} aria-describedby=${this.accessibleCells?nothing:[this.getAttribute("aria-describedby")??"",this.accessibleDescription?"description":"",projectionDescription?"projection-limit":""].filter(Boolean).join(" ")||nothing} @pointermove=${this.onPointerMove} @pointerleave=${this.onPointerLeave} @click=${this.onCanvasClick} @keydown=${this.onKeyDown} @focus=${this.onCanvasFocusChange} @blur=${this.onCanvasFocusChange} ></canvas>
|
|
25
|
+
${guard([this.overlayRevision,accessibleStart],()=>this.renderAccessibleCells(accessibleStart))}
|
|
26
|
+
${this.renderAxisTargets()}
|
|
86
27
|
${this.freezesRowLabels?html`<canvas part="row-labels" aria-hidden="true"></canvas>`:nothing}
|
|
87
28
|
${this.freezesColLabels?html`<canvas part="col-labels" aria-hidden="true"></canvas>`:nothing}
|
|
88
|
-
`;return
|
|
29
|
+
`;return this.gridScrollportRendered?html`<div part="grid">
|
|
89
30
|
<div class="grid-stack">${surface}${this.renderTooltip()}</div>
|
|
90
|
-
</div>`}renderTooltip(){const pos=this.hoverCell,anchor=pos?this.tooltipAnchor(pos):null;return html`<div
|
|
91
|
-
part="tooltip"
|
|
92
|
-
class=${anchor?.below?"tooltip-below":nothing}
|
|
93
|
-
dir=${this.effectiveDirection}
|
|
94
|
-
?hidden=${!pos}
|
|
95
|
-
style=${styleMap(anchor?.style??{})}
|
|
96
|
-
>${pos?this.resolveCellText(pos):""}</div
|
|
31
|
+
</div>`:this.legendPlacement==="top"&&!this.withoutLegend?html`<div class="surface-frame">${surface}${this.renderTooltip()}</div>`:surface}visibleTooltip(){return this.renderRoot.querySelector('[part="tooltip"]:not([hidden])')}dismissTooltip(){this.tooltipOverlay?.deactivate({restoreFocus:!1}),this.tooltipOverlay=void 0,this.hoverCell=null,this.sourceTooltip=null}syncTooltipOverlay(){this.visibleTooltip()?this.tooltipOverlay??=activateNonmodalOverlay({host:this,panel:()=>this.visibleTooltip(),onEscape:()=>this.dismissTooltip()}):this.tooltipOverlay&&(this.tooltipOverlay.deactivate({restoreFocus:!1}),this.tooltipOverlay=void 0)}get effectiveAxisSelection(){return this.multiple&&this.effectiveMode==="matrix"&&!this.matrixSource?this._axisSelection:"none"}axisSelectionCounts(){const counts={rowTotal:[],rowSelected:[],colTotal:[],colSelected:[]},selected=this.currentSelectedPositions;for(const pos of this.accessibleCellPositions()){const{row,col}=this.selectionCoordinates(pos),on=selected.has(this.accessibleCellKey(pos))?1:0;counts.rowTotal[row]=(counts.rowTotal[row]??0)+1,counts.colTotal[col]=(counts.colTotal[col]??0)+1,counts.rowSelected[row]=(counts.rowSelected[row]??0)+on,counts.colSelected[col]=(counts.colSelected[col]??0)+on}return counts}renderAxisTargets(){const mode=this.effectiveAxisSelection,geometry=this.lastPaintedMatrixGeometry;if(mode==="none"||!geometry)return nothing;const{padLeft,padTop,cellSize}=geometry,rowHeight=geometry.rowHeight??cellSize,rowCount=Math.min(this.matrixRowLabels.length,MAX_ACCESSIBLE_HEATMAP_CELLS),colCount=Math.min(this.matrixColLabels.length,MAX_ACCESSIBLE_HEATMAP_CELLS),counts=this.axisSelectionCounts(),tabStop=(axis,count)=>{const totals=axis==="row"?counts.rowTotal:counts.colTotal,focused=this.axisFocus[axis];return focused<count&&(totals[focused]??0)>0?focused:Array.from({length:count},(_v,index)=>index).find(index=>(totals[index]??0)>0)??-1},stops={row:tabStop("row",rowCount),col:tabStop("col",colCount)},button=(axis,index,style)=>{const total=(axis==="row"?counts.rowTotal:counts.colTotal)[index]??0,pressed=total>0&&(axis==="row"?counts.rowSelected:counts.colSelected)[index]===total,label=(axis==="row"?this.matrixRowLabels:this.matrixColLabels)[index]||this.localize(axis==="row"?"heatmapDefaultRowLabel":"heatmapDefaultColLabel",void 0,{n:this.formatLocaleNumber(index+1)});return html`<button part=${pressed?`${axis}-label ${axis}-label-pressed`:`${axis}-label`} class="axis-target" type="button" data-axis=${axis} data-axis-index=${index} aria-label=${label} aria-pressed=${pressed?"true":"false"} ?disabled=${total===0} tabindex=${stops[axis]===index?"0":"-1"} style=${styleMap(style)} @click=${this.onAxisTargetClick} @keydown=${this.onAxisTargetKeyDown} ></button>`},rows=mode==="rows"||mode==="both",cols=mode==="cols"||mode==="both";return html`${rows?html`<div class="axis-targets" ?data-frozen-rows=${this.freezesRowLabels} style=${styleMap({inlineSize:`${padLeft}px`,blockSize:`${padTop+rowCount*rowHeight}px`})} >${Array.from({length:rowCount},(_v,i)=>button("row",i,{insetInlineStart:"0px",insetBlockStart:`${padTop+i*rowHeight}px`,inlineSize:`${padLeft}px`,blockSize:`${rowHeight}px`}))}</div>`:nothing}${cols?html`<div class="axis-targets" ?data-frozen-cols=${this.freezesColLabels} style=${styleMap({inlineSize:`${padLeft+colCount*cellSize}px`,blockSize:`${padTop}px`})} >${Array.from({length:colCount},(_v,i)=>button("col",i,{insetInlineStart:`${padLeft+i*cellSize}px`,insetBlockStart:"0px",inlineSize:`${cellSize}px`,blockSize:`${padTop}px`}))}</div>`:nothing}`}renderTooltip(){const pos=this.hoverCell,anchor=pos?this.tooltipAnchor(pos):null;return html`<div part="tooltip" class=${anchor?.below?"tooltip-below":nothing} dir=${this.effectiveDirection} ?hidden=${!pos} style=${styleMap(anchor?.style??{})} >${pos?this.resolveCellText(pos):""}</div
|
|
97
32
|
>`}renderLegend(range){const labeledAnnotations=this.cachedAnnotations.filter(a=>a.label);return html`<div part="legend">
|
|
98
33
|
${this.renderLegendScale(range)}
|
|
99
34
|
<span part="legend-value-label">${this.localizedValueLabel()}</span>
|
|
100
|
-
${labeledAnnotations.map(a=>html`<span part="legend-annotation"
|
|
101
|
-
><span class="ring-swatch"></span>${a.label}</span
|
|
35
|
+
${labeledAnnotations.map(a=>html`<span part="legend-annotation" ><span class="ring-swatch"></span>${a.label}</span
|
|
102
36
|
>`)}
|
|
103
37
|
<slot name="legend"></slot>
|
|
104
|
-
</div>`}render(){if(this.matrixSource)return this.renderSource()
|
|
105
|
-
<div
|
|
106
|
-
|
|
107
|
-
tabindex="-1"
|
|
108
|
-
@pointerdown=${this.onSelectionPointerDown}
|
|
109
|
-
@pointermove=${this.onSelectionPointerMove}
|
|
110
|
-
@pointerup=${this.onSelectionPointerUp}
|
|
111
|
-
@pointercancel=${this.onSelectionPointerCancel}
|
|
112
|
-
@lostpointercapture=${this.onSelectionPointerCancel}
|
|
113
|
-
data-projection-truncated=${this.projectionTruncated?"true":"false"}
|
|
114
|
-
>
|
|
38
|
+
</div>`}render(){if(this.matrixSource)return this.matrixController?renderSource(this):html`<div part="source-status">${this.localize("loading")}</div>`;const range=this.cachedValueRange,projectionDescription=this.projectionDescription(),legend=this.withoutLegend?nothing:guard([this.cachedAnnotations,this.cachedLegendStops,range,this.valueLabel,this.effectiveLocale,this.strings,lyraLocaleCatalogVersion(this.effectiveLocale)],()=>this.renderLegend(range)),legendFirst=this.legendPlacement==="top";return html`
|
|
39
|
+
<div part="base" tabindex="-1" @pointerdown=${this.onSelectionPointerDown} @pointermove=${this.onSelectionPointerMove} @pointerup=${this.onSelectionPointerUp} @pointercancel=${this.onSelectionPointerCancel} @lostpointercapture=${this.onSelectionPointerCancel} data-projection-truncated=${this.projectionTruncated?"true":"false"} >
|
|
40
|
+
${legendFirst?legend:nothing}
|
|
115
41
|
${this.renderGridSurface(projectionDescription)}
|
|
116
|
-
${
|
|
117
|
-
|
|
118
|
-
part="projection-limit"
|
|
119
|
-
class="sr-only"
|
|
120
|
-
>${projectionDescription}</span
|
|
42
|
+
${this.accessibleDescription?html`<p id="description" part="description" class="sr-only">${this.accessibleDescription}</p>`:nothing}
|
|
43
|
+
${projectionDescription?html`<span id="projection-limit" part="projection-limit" class="sr-only" >${projectionDescription}</span
|
|
121
44
|
>`:nothing}
|
|
122
|
-
${this.
|
|
123
|
-
<div
|
|
124
|
-
id="live-region"
|
|
125
|
-
part="live-region"
|
|
126
|
-
class="sr-only"
|
|
127
|
-
aria-hidden="true"
|
|
128
|
-
>${this.liveText}</div
|
|
45
|
+
${this.gridScrollportRendered||legendFirst&&!this.withoutLegend?nothing:this.renderTooltip()}
|
|
46
|
+
<div id="live-region" part="live-region" class="sr-only" aria-hidden="true" >${this.liveText}</div
|
|
129
47
|
>
|
|
130
|
-
${
|
|
48
|
+
${legendFirst?nothing:legend}
|
|
131
49
|
</div>
|
|
132
|
-
`}
|
|
50
|
+
`}}__decorate([property({attribute:!1,noAccessor:!0})],LyraHeatmap.prototype,"matrixSource",null),__decorate([property({attribute:!1,noAccessor:!0})],LyraHeatmap.prototype,"matrixViewport",null),__decorate([property({attribute:"matrix-reducer"})],LyraHeatmap.prototype,"matrixReducer",void 0),__decorate([state()],LyraHeatmap.prototype,"sourceResult",void 0),__decorate([state()],LyraHeatmap.prototype,"sourceTooltip",void 0),__decorate([property({attribute:!1})],LyraHeatmap.prototype,"data",void 0),__decorate([property({converter:blankNumberConverter(1e4),attribute:"max-cells"})],LyraHeatmap.prototype,"maxCells",void 0),__decorate([property({converter:labelExtentConverter,attribute:"row-label-width",reflect:!0})],LyraHeatmap.prototype,"rowLabelWidth",void 0),__decorate([property({converter:labelExtentConverter,attribute:"col-label-height"})],LyraHeatmap.prototype,"colLabelHeight",void 0),__decorate([property({converter:blankNumberConverter(void 0),attribute:"col-label-rotation"})],LyraHeatmap.prototype,"colLabelRotation",void 0),__decorate([property({converter:STICKY_LABELS,attribute:"sticky-labels",reflect:!0})],LyraHeatmap.prototype,"stickyLabels",null),__decorate([property({type:Number,attribute:"cell-size",converter:optionalCellSizeConverter})],LyraHeatmap.prototype,"cellSize",null),__decorate([property({type:Number,attribute:"row-height",converter:optionalCellSizeConverter})],LyraHeatmap.prototype,"rowHeight",null),__decorate([property({attribute:"value-label"})],LyraHeatmap.prototype,"valueLabel",void 0),__decorate([property({type:Boolean,attribute:"without-legend",reflect:!0})],LyraHeatmap.prototype,"withoutLegend",void 0),__decorate([property({converter:LEGEND_PLACEMENT,attribute:"legend-placement",reflect:!0})],LyraHeatmap.prototype,"legendPlacement",null),__decorate([property({type:Boolean,reflect:!0})],LyraHeatmap.prototype,"fill",void 0),__decorate([property({type:Boolean,attribute:"fit-block",reflect:!0})],LyraHeatmap.prototype,"fitBlock",void 0),__decorate([property({converter:AXIS_SELECTION,attribute:"axis-selection",reflect:!0})],LyraHeatmap.prototype,"axisSelection",null),__decorate([state()],LyraHeatmap.prototype,"axisFocus",void 0),__decorate([property()],LyraHeatmap.prototype,"scale",void 0),__decorate([property({converter:blankNumberConverter(null),attribute:"cell-gap-x"})],LyraHeatmap.prototype,"cellGapX",void 0),__decorate([property({converter:blankNumberConverter(null),attribute:"cell-gap-y"})],LyraHeatmap.prototype,"cellGapY",void 0),__decorate([property({converter:blankNumberConverter(null),attribute:"cell-radius"})],LyraHeatmap.prototype,"cellRadius",void 0),__decorate([property({converter:blankNumberConverter(1),attribute:"col-label-interval"})],LyraHeatmap.prototype,"colLabelInterval",void 0),__decorate([property({attribute:!1})],LyraHeatmap.prototype,"domain",void 0),__decorate([property({converter:blankNumberConverter(void 0)})],LyraHeatmap.prototype,"midpoint",void 0),__decorate([property({type:Boolean,attribute:"fit-to-width"})],LyraHeatmap.prototype,"fitToWidth",void 0),__decorate([property({type:Number,attribute:"max-cell-size",converter:optionalCellSizeConverter})],LyraHeatmap.prototype,"maxCellSize",null),__decorate([property({type:Number,attribute:"min-cell-size",converter:optionalCellSizeConverter})],LyraHeatmap.prototype,"minCellSize",null),__decorate([property({attribute:"bucket-count",converter:bucketCountConverter})],LyraHeatmap.prototype,"bucketCount",null),__decorate([property({attribute:!1})],LyraHeatmap.prototype,"annotations",void 0),__decorate([property({attribute:!1,hasChanged:legendStopsChanged})],LyraHeatmap.prototype,"legendStops",void 0),__decorate([property({attribute:!1})],LyraHeatmap.prototype,"selectedCell",void 0),__decorate([property()],LyraHeatmap.prototype,"label",void 0),__decorate([property()],LyraHeatmap.prototype,"description",void 0),__decorate([property({type:Boolean,reflect:!0})],LyraHeatmap.prototype,"multiple",void 0),__decorate([property({attribute:!1})],LyraHeatmap.prototype,"selectedCells",void 0),__decorate([property({type:Boolean,attribute:"accessible-cells"})],LyraHeatmap.prototype,"accessibleCells",void 0),__decorate([property({attribute:!1})],LyraHeatmap.prototype,"cellText",void 0),__decorate([property({attribute:!1})],LyraHeatmap.prototype,"cellInteractive",void 0),__decorate([property({attribute:!1})],LyraHeatmap.prototype,"cellColor",void 0),__decorate([property({attribute:!1})],LyraHeatmap.prototype,"colorSteps",void 0),__decorate([query('[part="canvas"]')],LyraHeatmap.prototype,"canvas",void 0),__decorate([state()],LyraHeatmap.prototype,"hoverCell",void 0),__decorate([state()],LyraHeatmap.prototype,"focusedCell",void 0),__decorate([state()],LyraHeatmap.prototype,"liveText",void 0),__decorate([state()],LyraHeatmap.prototype,"accessibleTargetSizePx",void 0),__decorate([state()],LyraHeatmap.prototype,"selectionPreview",void 0);export{LyraHeatmap,MAX_ACCESSIBLE_HEATMAP_CELLS2 as MAX_ACCESSIBLE_HEATMAP_CELLS,MAX_BUCKET_COUNT,MAX_HEATMAP_CELLS2 as MAX_HEATMAP_CELLS,MAX_HEATMAP_DECORATIONS2 as MAX_HEATMAP_DECORATIONS,hexToRgb,normalizeBucketCount2 as normalizeBucketCount,resolveRgb2 as resolveRgb};
|