@aceshooting/lyra-ui 29.2.2 → 30.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +164 -89
- package/README.md +9 -8
- package/dist/ai/adapters/ag-ui.d.ts +2 -2
- package/dist/ai/index.d.ts +1 -1
- package/dist/ai/runtime.d.ts +7 -7
- package/dist/ai/runtime.js +1 -1
- package/dist/ai/snapshot.d.ts +5 -5
- package/dist/ai/snapshot.js +1 -1
- package/dist/ai/types.d.ts +34 -34
- package/dist/all.d.ts +1 -1
- package/dist/all.js +1 -1
- package/dist/autoloader.d.ts +5 -5
- package/dist/autoloader.js +1 -1
- package/dist/cli/component-inventory.mjs +1 -1
- package/dist/cli/lyra-rename-ledger.mjs +1 -1
- package/dist/cli/migrate-wa.mjs +7 -3
- package/dist/cli/migration-analysis.mjs +1 -1
- package/dist/cli/migration-contract.json +1 -1
- package/dist/cli/migration-contract.mjs +1 -1
- package/dist/cli/migration-immutable-collections.mjs +6 -0
- package/dist/cli/migration-renames.mjs +1 -1
- package/dist/cli/migration-transforms.mjs +1 -1
- package/dist/components/agent-tools/activity-feed/activity-feed.class.d.ts +6 -6
- package/dist/components/agent-tools/activity-feed/activity-feed.d.ts +1 -1
- package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.class.d.ts +5 -6
- package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.class.js +1 -1
- package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.d.ts +1 -1
- package/dist/components/agent-tools/agent-question/agent-question.class.d.ts +9 -9
- package/dist/components/agent-tools/agent-question/agent-question.d.ts +1 -1
- package/dist/components/agent-tools/agent-run/agent-run.class.d.ts +5 -6
- package/dist/components/agent-tools/agent-run/agent-run.class.js +1 -1
- package/dist/components/agent-tools/agent-run/agent-run.d.ts +1 -1
- package/dist/components/agent-tools/agent-status-presentation.d.ts +6 -6
- package/dist/components/agent-tools/agent-trace/agent-trace.class.d.ts +6 -6
- package/dist/components/agent-tools/agent-trace/agent-trace.class.js +2 -2
- package/dist/components/agent-tools/agent-trace/agent-trace.d.ts +1 -1
- package/dist/components/agent-tools/approval-queue/approval-queue.class.d.ts +6 -6
- package/dist/components/agent-tools/approval-queue/approval-queue.d.ts +1 -1
- package/dist/components/agent-tools/approval-state.d.ts +4 -4
- package/dist/components/agent-tools/artifact-panel/artifact-panel.class.d.ts +7 -7
- package/dist/components/agent-tools/artifact-panel/artifact-panel.d.ts +1 -1
- package/dist/components/agent-tools/background-runs/background-runs.class.d.ts +6 -7
- package/dist/components/agent-tools/background-runs/background-runs.class.js +1 -1
- package/dist/components/agent-tools/background-runs/background-runs.d.ts +1 -1
- package/dist/components/agent-tools/browser-frame/browser-frame.class.d.ts +2 -2
- package/dist/components/agent-tools/browser-frame/browser-frame.d.ts +1 -1
- package/dist/components/agent-tools/budget-meter/budget-meter.class.d.ts +5 -5
- package/dist/components/agent-tools/budget-meter/budget-meter.d.ts +1 -1
- package/dist/components/agent-tools/change-review/change-review.class.d.ts +6 -7
- package/dist/components/agent-tools/change-review/change-review.class.js +1 -1
- package/dist/components/agent-tools/change-review/change-review.d.ts +1 -1
- package/dist/components/agent-tools/commit-card/commit-card.class.d.ts +5 -5
- package/dist/components/agent-tools/commit-card/commit-card.d.ts +1 -1
- package/dist/components/agent-tools/compare-panel/compare-panel.d.ts +1 -1
- package/dist/components/agent-tools/confirm-bar/confirm-bar.class.d.ts +4 -4
- package/dist/components/agent-tools/confirm-bar/confirm-bar.d.ts +1 -1
- package/dist/components/agent-tools/connector-manager/connector-manager.class.d.ts +4 -4
- package/dist/components/agent-tools/connector-manager/connector-manager.d.ts +1 -1
- package/dist/components/agent-tools/context-inspector/context-inspector.class.d.ts +13 -13
- package/dist/components/agent-tools/context-inspector/context-inspector.d.ts +1 -1
- package/dist/components/agent-tools/eval-dataset/eval-dataset.class.d.ts +11 -10
- package/dist/components/agent-tools/eval-dataset/eval-dataset.class.js +1 -1
- package/dist/components/agent-tools/eval-dataset/eval-dataset.d.ts +1 -1
- package/dist/components/agent-tools/eval-result/eval-result.class.d.ts +7 -7
- package/dist/components/agent-tools/eval-result/eval-result.d.ts +1 -1
- package/dist/components/agent-tools/evaluation-run/evaluation-run.class.d.ts +13 -7
- package/dist/components/agent-tools/evaluation-run/evaluation-run.class.js +1 -1
- package/dist/components/agent-tools/evaluation-run/evaluation-run.d.ts +1 -1
- package/dist/components/agent-tools/mcp-app/mcp-app.class.d.ts +5 -5
- package/dist/components/agent-tools/mcp-app/mcp-app.d.ts +1 -1
- package/dist/components/agent-tools/permission-grant/permission-grant.class.d.ts +7 -7
- package/dist/components/agent-tools/permission-grant/permission-grant.d.ts +1 -1
- package/dist/components/agent-tools/permission-rules/permission-rules.class.d.ts +3 -3
- package/dist/components/agent-tools/permission-rules/permission-rules.d.ts +1 -1
- package/dist/components/agent-tools/policy-summary/policy-summary.class.d.ts +3 -3
- package/dist/components/agent-tools/policy-summary/policy-summary.d.ts +1 -1
- package/dist/components/agent-tools/prompt-studio/prompt-studio.class.d.ts +10 -10
- package/dist/components/agent-tools/prompt-studio/prompt-studio.class.js +3 -3
- package/dist/components/agent-tools/prompt-studio/prompt-studio.d.ts +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.d.ts +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.d.ts +1 -1
- package/dist/components/agent-tools/run-events.d.ts +1 -1
- package/dist/components/agent-tools/schema-viewer/schema-viewer.class.d.ts +2 -2
- package/dist/components/agent-tools/schema-viewer/schema-viewer.d.ts +1 -1
- package/dist/components/agent-tools/span-waterfall/span-waterfall.class.d.ts +3 -3
- package/dist/components/agent-tools/span-waterfall/span-waterfall.d.ts +1 -1
- package/dist/components/agent-tools/stack-trace/stack-trace-parse.d.ts +4 -4
- package/dist/components/agent-tools/stack-trace/stack-trace.class.d.ts +3 -3
- package/dist/components/agent-tools/stack-trace/stack-trace.d.ts +1 -1
- package/dist/components/agent-tools/subagent-panel/subagent-panel.class.d.ts +2 -3
- package/dist/components/agent-tools/subagent-panel/subagent-panel.class.js +2 -2
- package/dist/components/agent-tools/subagent-panel/subagent-panel.d.ts +1 -1
- package/dist/components/agent-tools/task-list/task-list.class.d.ts +7 -7
- package/dist/components/agent-tools/task-list/task-list.d.ts +1 -1
- package/dist/components/agent-tools/terminal/terminal.class.d.ts +2 -2
- package/dist/components/agent-tools/terminal/terminal.d.ts +1 -1
- package/dist/components/agent-tools/test-results/test-results.class.d.ts +9 -9
- package/dist/components/agent-tools/test-results/test-results.d.ts +1 -1
- package/dist/components/agent-tools/thinking-panel/thinking-panel.class.d.ts +1 -1
- package/dist/components/agent-tools/thinking-panel/thinking-panel.d.ts +1 -1
- package/dist/components/agent-tools/tool-approval-dialog/tool-approval-dialog.class.d.ts +9 -9
- package/dist/components/agent-tools/tool-approval-dialog/tool-approval-dialog.d.ts +1 -1
- package/dist/components/agent-tools/tool-call-block/tool-call-block.class.d.ts +8 -8
- package/dist/components/agent-tools/tool-call-block/tool-call-block.d.ts +1 -1
- package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.d.ts +9 -10
- package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.js +1 -5
- package/dist/components/agent-tools/tool-call-chip/tool-call-chip.d.ts +1 -1
- package/dist/components/agent-tools/tool-param-form/tool-param-form.class.d.ts +7 -7
- package/dist/components/agent-tools/tool-param-form/tool-param-form.d.ts +1 -1
- package/dist/components/agent-tools/tool-param-form/tool-param-types.d.ts +14 -14
- package/dist/components/agent-tools/tool-result-dialog/tool-result-dialog.class.d.ts +7 -7
- package/dist/components/agent-tools/tool-result-dialog/tool-result-dialog.d.ts +1 -1
- package/dist/components/agent-tools/tool-result-view/registry.d.ts +9 -9
- package/dist/components/agent-tools/tool-result-view/tool-result-view.class.d.ts +7 -7
- package/dist/components/agent-tools/tool-result-view/tool-result-view.d.ts +1 -1
- package/dist/components/agent-tools/tool-select-dialog/tool-select-dialog.class.d.ts +9 -9
- package/dist/components/agent-tools/tool-select-dialog/tool-select-dialog.d.ts +1 -1
- package/dist/components/agent-tools/tool-timeline/tool-timeline.class.d.ts +7 -7
- package/dist/components/agent-tools/tool-timeline/tool-timeline.d.ts +1 -1
- package/dist/components/agent-tools/trace-tree/span-shared.d.ts +9 -9
- package/dist/components/agent-tools/trace-tree/trace-tree.class.d.ts +10 -9
- package/dist/components/agent-tools/trace-tree/trace-tree.class.js +1 -1
- package/dist/components/agent-tools/trace-tree/trace-tree.d.ts +1 -1
- package/dist/components/charts/chart/bar-chart.d.ts +1 -1
- package/dist/components/charts/chart/box-plot.class.d.ts +10 -10
- package/dist/components/charts/chart/box-plot.d.ts +1 -1
- package/dist/components/charts/chart/bubble-chart.d.ts +1 -1
- package/dist/components/charts/chart/chart-chrome.d.ts +2 -2
- package/dist/components/charts/chart/chart-colors.d.ts +1 -1
- package/dist/components/charts/chart/chart-core-loader.d.ts +2 -2
- package/dist/components/charts/chart/chart-feature-loader.d.ts +1 -1
- package/dist/components/charts/chart/chart-legend-visibility.d.ts +9 -9
- package/dist/components/charts/chart/chart-prepared-data.d.ts +4 -4
- package/dist/components/charts/chart/chart.class.d.ts +35 -35
- package/dist/components/charts/chart/chart.class.js +4 -4
- package/dist/components/charts/chart/chart.d.ts +1 -1
- package/dist/components/charts/chart/doughnut-chart.d.ts +1 -1
- package/dist/components/charts/chart/histogram-bin.d.ts +1 -1
- package/dist/components/charts/chart/histogram.class.d.ts +2 -2
- package/dist/components/charts/chart/histogram.d.ts +1 -1
- package/dist/components/charts/chart/line-chart.d.ts +1 -1
- package/dist/components/charts/chart/lite-chart.class.d.ts +9 -9
- package/dist/components/charts/chart/lite-chart.d.ts +1 -1
- package/dist/components/charts/chart/pie-chart.d.ts +1 -1
- package/dist/components/charts/chart/polar-area-chart.d.ts +1 -1
- package/dist/components/charts/chart/radar-chart.d.ts +1 -1
- package/dist/components/charts/chart/scatter-chart.d.ts +1 -1
- package/dist/components/charts/chart-3d/chart-3d-data.d.ts +50 -0
- package/dist/components/charts/chart-3d/chart-3d-data.js +1 -0
- package/dist/components/charts/chart-3d/chart-3d-engine.js +1 -0
- package/dist/components/charts/chart-3d/chart-3d.class.d.ts +96 -0
- package/dist/components/charts/chart-3d/chart-3d.class.js +47 -0
- package/dist/components/charts/chart-3d/chart-3d.d.ts +1 -0
- package/dist/components/charts/chart-3d/chart-3d.js +1 -0
- package/dist/components/charts/chart-3d/chart-3d.styles.js +1 -0
- 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.class.d.ts +29 -29
- package/dist/components/conversation/agent-workspace/agent-workspace.class.js +4 -5
- package/dist/components/conversation/agent-workspace/agent-workspace.d.ts +1 -1
- package/dist/components/conversation/audio-visualizer/audio-visualizer.class.d.ts +3 -3
- package/dist/components/conversation/audio-visualizer/audio-visualizer.d.ts +1 -1
- package/dist/components/conversation/branch-picker/branch-picker.class.d.ts +2 -2
- package/dist/components/conversation/branch-picker/branch-picker.d.ts +1 -1
- package/dist/components/conversation/catalog-picker-element.d.ts +20 -20
- package/dist/components/conversation/chat-composer/chat-composer-status.d.ts +1 -1
- package/dist/components/conversation/chat-composer/chat-composer.class.d.ts +10 -10
- package/dist/components/conversation/chat-composer/chat-composer.d.ts +1 -1
- package/dist/components/conversation/chat-message/chat-message.class.d.ts +5 -5
- package/dist/components/conversation/chat-message/chat-message.d.ts +1 -1
- package/dist/components/conversation/chat-viewport/chat-viewport.class.d.ts +1 -1
- package/dist/components/conversation/chat-viewport/chat-viewport.d.ts +1 -1
- package/dist/components/conversation/checkpoint/checkpoint.class.d.ts +4 -4
- package/dist/components/conversation/checkpoint/checkpoint.d.ts +1 -1
- package/dist/components/conversation/code-block/code-block-base.class.d.ts +3 -3
- 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 +6 -6
- package/dist/components/conversation/code-block/code-block-core.d.ts +1 -1
- package/dist/components/conversation/code-block/code-block-shared.d.ts +12 -12
- package/dist/components/conversation/code-block/code-block.class.d.ts +7 -7
- package/dist/components/conversation/code-block/code-block.d.ts +1 -1
- package/dist/components/conversation/code-block/shiki-oniguruma.d.ts +3 -0
- package/dist/components/conversation/code-block/shiki-oniguruma.js +1 -0
- package/dist/components/conversation/code-block/shiki-types.d.ts +8 -10
- package/dist/components/conversation/code-block/shiki-types.js +1 -1
- package/dist/components/conversation/conversation-item/conversation-item.class.d.ts +2 -2
- package/dist/components/conversation/conversation-item/conversation-item.d.ts +1 -1
- package/dist/components/conversation/generation-metrics/generation-metrics.class.d.ts +1 -1
- package/dist/components/conversation/generation-metrics/generation-metrics.class.js +1 -1
- package/dist/components/conversation/generation-metrics/generation-metrics.d.ts +1 -1
- package/dist/components/conversation/handoff-divider/handoff-divider.d.ts +1 -1
- package/dist/components/conversation/markdown/markdown-base.class.d.ts +8 -8
- package/dist/components/conversation/markdown/markdown-code-header.d.ts +2 -2
- package/dist/components/conversation/markdown/markdown-core.class.d.ts +4 -4
- package/dist/components/conversation/markdown/markdown-core.d.ts +1 -1
- package/dist/components/conversation/markdown/markdown-fallback-code.d.ts +3 -3
- package/dist/components/conversation/markdown/markdown-loader.d.ts +3 -3
- package/dist/components/conversation/markdown/markdown-progressive.js +2 -2
- package/dist/components/conversation/markdown/markdown-shared.d.ts +24 -24
- package/dist/components/conversation/markdown/markdown.class.d.ts +3 -3
- package/dist/components/conversation/markdown/markdown.d.ts +1 -1
- package/dist/components/conversation/message-actions/message-actions.class.d.ts +2 -2
- package/dist/components/conversation/message-actions/message-actions.class.js +1 -1
- package/dist/components/conversation/message-actions/message-actions.d.ts +1 -1
- package/dist/components/conversation/message-actions/toolbar-actions.d.ts +2 -2
- package/dist/components/conversation/message-feedback/message-feedback.class.d.ts +8 -8
- package/dist/components/conversation/message-feedback/message-feedback.d.ts +1 -1
- package/dist/components/conversation/message-parts/message-parts.class.d.ts +6 -6
- package/dist/components/conversation/message-parts/message-parts.class.js +1 -1
- package/dist/components/conversation/message-parts/message-parts.d.ts +1 -1
- package/dist/components/conversation/model-select/model-select.class.d.ts +9 -9
- package/dist/components/conversation/model-select/model-select.class.js +1 -1
- package/dist/components/conversation/model-select/model-select.d.ts +1 -1
- package/dist/components/conversation/model-settings-panel/model-settings-panel.class.d.ts +4 -4
- package/dist/components/conversation/model-settings-panel/model-settings-panel.class.js +1 -1
- package/dist/components/conversation/model-settings-panel/model-settings-panel.d.ts +1 -1
- package/dist/components/conversation/prompt-input/prompt-input.class.d.ts +16 -16
- package/dist/components/conversation/prompt-input/prompt-input.class.js +3 -4
- package/dist/components/conversation/prompt-input/prompt-input.d.ts +1 -1
- package/dist/components/conversation/prompt-queue/prompt-queue.class.d.ts +4 -4
- package/dist/components/conversation/prompt-queue/prompt-queue.d.ts +1 -1
- package/dist/components/conversation/push-to-talk/push-to-talk.class.d.ts +3 -3
- package/dist/components/conversation/push-to-talk/push-to-talk.class.js +1 -1
- package/dist/components/conversation/push-to-talk/push-to-talk.d.ts +1 -1
- package/dist/components/conversation/realtime-session/realtime-session.d.ts +1 -1
- package/dist/components/conversation/selection-toolbar/selection-toolbar.class.d.ts +1 -1
- package/dist/components/conversation/selection-toolbar/selection-toolbar.class.js +1 -1
- package/dist/components/conversation/selection-toolbar/selection-toolbar.d.ts +1 -1
- package/dist/components/conversation/stream-status/stream-status.class.d.ts +5 -5
- package/dist/components/conversation/stream-status/stream-status.d.ts +1 -1
- package/dist/components/conversation/streaming-text/markdown-detection.d.ts +1 -1
- package/dist/components/conversation/streaming-text/streaming-text-core.class.d.ts +1 -1
- package/dist/components/conversation/streaming-text/streaming-text-core.d.ts +1 -1
- package/dist/components/conversation/streaming-text/streaming-text.class.d.ts +1 -1
- package/dist/components/conversation/streaming-text/streaming-text.d.ts +1 -1
- package/dist/components/conversation/suggestion-chips/suggestion-chips.class.d.ts +4 -4
- package/dist/components/conversation/suggestion-chips/suggestion-chips.d.ts +1 -1
- package/dist/components/conversation/thread-list/thread-list.class.d.ts +15 -15
- package/dist/components/conversation/thread-list/thread-list.class.js +1 -1
- package/dist/components/conversation/thread-list/thread-list.d.ts +1 -1
- package/dist/components/conversation/timestamp.d.ts +2 -2
- package/dist/components/conversation/transcript-feed/transcript-feed.class.d.ts +3 -3
- package/dist/components/conversation/transcript-feed/transcript-feed.d.ts +1 -1
- package/dist/components/conversation/typing-indicator/typing-indicator.class.d.ts +1 -1
- package/dist/components/conversation/typing-indicator/typing-indicator.d.ts +1 -1
- package/dist/components/conversation/usage-badge/usage-badge.class.d.ts +2 -2
- package/dist/components/conversation/usage-badge/usage-badge.d.ts +1 -1
- package/dist/components/conversation/voice-picker/voice-picker.class.d.ts +10 -10
- package/dist/components/conversation/voice-picker/voice-picker.d.ts +1 -1
- package/dist/components/conversation/widget-renderer/default-registry.d.ts +1 -1
- package/dist/components/conversation/widget-renderer/registry.d.ts +12 -12
- package/dist/components/conversation/widget-renderer/registry.js +1 -1
- package/dist/components/conversation/widget-renderer/resolve.d.ts +7 -7
- package/dist/components/conversation/widget-renderer/resolve.js +1 -1
- package/dist/components/conversation/widget-renderer/widget-renderer.class.d.ts +1 -1
- package/dist/components/conversation/widget-renderer/widget-renderer.d.ts +1 -1
- package/dist/components/data/calendar/calendar.class.d.ts +4 -2
- package/dist/components/data/calendar/calendar.d.ts +1 -1
- package/dist/components/data/condition-builder/condition-builder.class.d.ts +11 -11
- package/dist/components/data/condition-builder/condition-builder.d.ts +1 -1
- package/dist/components/data/context-meter/context-meter.class.d.ts +12 -12
- package/dist/components/data/context-meter/context-meter.d.ts +1 -1
- package/dist/components/data/data-grid/data-grid-types.d.ts +19 -19
- package/dist/components/data/data-grid/data-grid.class.d.ts +58 -58
- package/dist/components/data/data-grid/data-grid.class.js +2 -2
- package/dist/components/data/data-grid/data-grid.d.ts +1 -1
- package/dist/components/data/document-library/document-library.class.d.ts +12 -12
- package/dist/components/data/document-library/document-library.d.ts +1 -1
- package/dist/components/data/env-list/env-list.class.d.ts +1 -1
- package/dist/components/data/env-list/env-list.d.ts +1 -1
- package/dist/components/data/file-tree/file-tree.class.d.ts +6 -4
- package/dist/components/data/file-tree/file-tree.class.js +2 -2
- package/dist/components/data/file-tree/file-tree.d.ts +1 -1
- package/dist/components/data/flow-canvas/flow-canvas.class.d.ts +19 -19
- package/dist/components/data/flow-canvas/flow-canvas.class.js +2 -2
- package/dist/components/data/flow-canvas/flow-canvas.d.ts +1 -1
- package/dist/components/data/flow-canvas/flow-source.js +1 -1
- package/dist/components/data/flow-canvas/flow-types.d.ts +12 -12
- package/dist/components/data/flow-controls/flow-controls.class.d.ts +1 -1
- package/dist/components/data/flow-controls/flow-controls.d.ts +1 -1
- package/dist/components/data/flow-minimap/flow-minimap.class.d.ts +1 -1
- package/dist/components/data/flow-minimap/flow-minimap.d.ts +1 -1
- package/dist/components/data/flow-node/flow-node.class.d.ts +11 -12
- package/dist/components/data/flow-node/flow-node.class.js +2 -4
- package/dist/components/data/flow-node/flow-node.d.ts +1 -1
- package/dist/components/data/flow-run-status/flow-run-status.class.d.ts +2 -2
- package/dist/components/data/flow-run-status/flow-run-status.d.ts +1 -1
- package/dist/components/data/funnel/funnel.class.d.ts +8 -8
- package/dist/components/data/funnel/funnel.d.ts +1 -1
- package/dist/components/data/gauge/gauge.class.d.ts +2 -2
- package/dist/components/data/gauge/gauge.d.ts +1 -1
- package/dist/components/data/graph-query-builder/graph-query-builder.class.d.ts +19 -19
- package/dist/components/data/graph-query-builder/graph-query-builder.d.ts +1 -1
- package/dist/components/data/heatmap/calendar-grid.d.ts +5 -5
- package/dist/components/data/heatmap/heatmap-limits.d.ts +5 -5
- package/dist/components/data/heatmap/heatmap-matrix-source.d.ts +2 -2
- package/dist/components/data/heatmap/heatmap-scale.d.ts +3 -3
- package/dist/components/data/heatmap/heatmap.class.d.ts +20 -20
- package/dist/components/data/heatmap/heatmap.class.js +2 -2
- package/dist/components/data/heatmap/heatmap.d.ts +1 -1
- package/dist/components/data/pagination/pagination.class.d.ts +14 -14
- package/dist/components/data/pagination/pagination.d.ts +1 -1
- package/dist/components/data/sequence-strip/sequence-strip-source.d.ts +2 -2
- package/dist/components/data/sequence-strip/sequence-strip.class.d.ts +2 -2
- package/dist/components/data/sequence-strip/sequence-strip.d.ts +1 -1
- package/dist/components/data/sparkline/sparkline.class.d.ts +8 -9
- package/dist/components/data/sparkline/sparkline.class.js +1 -1
- package/dist/components/data/sparkline/sparkline.d.ts +1 -1
- package/dist/components/data/stat/stat.class.d.ts +5 -5
- package/dist/components/data/stat/stat.d.ts +1 -1
- package/dist/components/data/table/table.class.d.ts +12 -12
- package/dist/components/data/table/table.class.js +1 -1
- package/dist/components/data/table/table.d.ts +1 -1
- package/dist/components/data/timeline/timeline-item.d.ts +1 -1
- package/dist/components/data/timeline/timeline.class.d.ts +3 -3
- package/dist/components/data/timeline/timeline.d.ts +1 -1
- package/dist/components/data/tree/tree-item.class.d.ts +9 -9
- package/dist/components/data/tree/tree-item.d.ts +1 -1
- package/dist/components/data/tree/tree-types.d.ts +7 -7
- package/dist/components/data/tree/tree.class.d.ts +4 -4
- package/dist/components/data/tree/tree.d.ts +1 -1
- package/dist/components/data/word-cloud/word-cloud-layout.d.ts +14 -14
- package/dist/components/data/word-cloud/word-cloud.class.d.ts +4 -4
- package/dist/components/data/word-cloud/word-cloud.d.ts +1 -1
- package/dist/components/forms/button/button.class.d.ts +12 -12
- package/dist/components/forms/button/button.d.ts +1 -1
- package/dist/components/forms/catalog-picker-base.d.ts +24 -24
- package/dist/components/forms/checkbox/checkbox.class.d.ts +8 -8
- package/dist/components/forms/checkbox/checkbox.d.ts +1 -1
- package/dist/components/forms/checkbox-group/checkbox-group.class.d.ts +12 -12
- package/dist/components/forms/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist/components/forms/code-editor/code-editor.class.d.ts +4 -4
- package/dist/components/forms/code-editor/code-editor.d.ts +1 -1
- package/dist/components/forms/color-picker/color-core.d.ts +11 -11
- package/dist/components/forms/color-picker/color-core.js +1 -1
- package/dist/components/forms/color-picker/color-picker.class.d.ts +13 -13
- package/dist/components/forms/color-picker/color-picker.d.ts +1 -1
- package/dist/components/forms/combobox/combobox.class.d.ts +27 -27
- package/dist/components/forms/combobox/combobox.d.ts +1 -1
- package/dist/components/forms/combobox/option.class.d.ts +8 -8
- package/dist/components/forms/combobox/option.d.ts +1 -1
- package/dist/components/forms/country-picker/country-picker.class.d.ts +2 -2
- package/dist/components/forms/currency-picker/currency-catalog.d.ts +5 -5
- package/dist/components/forms/currency-picker/currency-picker.class.d.ts +1 -1
- package/dist/components/forms/currency-picker/currency-types.d.ts +1 -1
- package/dist/components/forms/date-picker/calendar-core.d.ts +10 -10
- package/dist/components/forms/date-picker/calendar-core.js +1 -1
- package/dist/components/forms/date-picker/date-input.class.d.ts +25 -25
- package/dist/components/forms/date-picker/date-input.d.ts +1 -1
- package/dist/components/forms/date-picker/date-picker-disabled-dates.d.ts +1 -1
- package/dist/components/forms/date-picker/date-picker.class.d.ts +13 -13
- package/dist/components/forms/date-picker/date-picker.d.ts +1 -1
- package/dist/components/forms/emoji-picker/emoji-picker.class.d.ts +8 -8
- package/dist/components/forms/emoji-picker/emoji-picker.d.ts +1 -1
- package/dist/components/forms/emoji-picker/emoji-types.d.ts +1 -1
- package/dist/components/forms/form-validator.d.ts +3 -3
- package/dist/components/forms/icon-button/icon-button.class.d.ts +8 -8
- package/dist/components/forms/icon-button/icon-button.d.ts +1 -1
- package/dist/components/forms/input/input-shared.d.ts +14 -14
- package/dist/components/forms/input/input.class.d.ts +1 -1
- package/dist/components/forms/input/input.d.ts +1 -1
- package/dist/components/forms/input/native-time-input.class.d.ts +3 -3
- package/dist/components/forms/input/native-time-input.d.ts +1 -1
- package/dist/components/forms/input/number-input.class.d.ts +6 -6
- package/dist/components/forms/input/number-input.d.ts +1 -1
- package/dist/components/forms/input/time-input-shared.d.ts +7 -7
- package/dist/components/forms/input/time-input.class.d.ts +9 -9
- package/dist/components/forms/input/time-input.class.js +1 -1
- package/dist/components/forms/input/time-input.d.ts +1 -1
- package/dist/components/forms/locale-picker/locale-picker.class.d.ts +23 -18
- package/dist/components/forms/locale-picker/locale-picker.class.js +1 -1
- package/dist/components/forms/locale-picker/locale-picker.d.ts +1 -1
- package/dist/components/forms/otp-input/otp-input.class.d.ts +24 -24
- package/dist/components/forms/otp-input/otp-input.class.js +1 -1
- package/dist/components/forms/otp-input/otp-input.d.ts +1 -1
- package/dist/components/forms/phone-input/phone-input.class.d.ts +19 -19
- package/dist/components/forms/phone-input/phone-input.d.ts +1 -1
- package/dist/components/forms/phone-input/phone-number-adapter.d.ts +10 -10
- package/dist/components/forms/radio/radio-button.d.ts +1 -1
- package/dist/components/forms/radio/radio-group.class.d.ts +9 -9
- package/dist/components/forms/radio/radio-group.d.ts +1 -1
- package/dist/components/forms/radio/radio.class.d.ts +8 -8
- package/dist/components/forms/radio/radio.d.ts +1 -1
- package/dist/components/forms/rubric-form/rubric-form.class.d.ts +10 -10
- package/dist/components/forms/rubric-form/rubric-form.d.ts +1 -1
- package/dist/components/forms/select/select.class.d.ts +15 -15
- package/dist/components/forms/select/select.class.js +1 -1
- package/dist/components/forms/select/select.d.ts +1 -1
- package/dist/components/forms/signature-pad/signature-pad-limits.d.ts +2 -2
- package/dist/components/forms/signature-pad/signature-pad.class.d.ts +13 -12
- package/dist/components/forms/signature-pad/signature-pad.class.js +1 -1
- package/dist/components/forms/slider/slider.class.d.ts +21 -21
- package/dist/components/forms/slider/slider.class.js +1 -1
- package/dist/components/forms/slider/slider.d.ts +1 -1
- package/dist/components/forms/swatch-picker/swatch-picker.class.d.ts +8 -7
- package/dist/components/forms/swatch-picker/swatch-picker.class.js +1 -1
- package/dist/components/forms/swatch-picker/swatch-picker.d.ts +1 -1
- package/dist/components/forms/switch/switch.class.d.ts +6 -6
- package/dist/components/forms/switch/switch.d.ts +1 -1
- package/dist/components/forms/textarea/textarea.class.d.ts +10 -10
- package/dist/components/forms/textarea/textarea.d.ts +1 -1
- package/dist/components/forms/time-range/time-range.class.d.ts +4 -4
- package/dist/components/forms/time-range/time-range.d.ts +1 -1
- package/dist/components/forms/time-zone-picker/time-zone-picker.class.d.ts +1 -1
- package/dist/components/forms/toggle/toggle.class.d.ts +10 -10
- package/dist/components/forms/toggle/toggle.d.ts +1 -1
- package/dist/components/forms/toggle-group/toggle-group.class.d.ts +11 -11
- package/dist/components/forms/toggle-group/toggle-group.d.ts +1 -1
- package/dist/components/forms/token-input/token-input.class.d.ts +12 -12
- package/dist/components/forms/token-input/token-input.d.ts +1 -1
- package/dist/components/forms/unit-picker/unit-picker.class.d.ts +1 -1
- package/dist/components/layout/app-rail/app-rail-item.class.d.ts +5 -7
- package/dist/components/layout/app-rail/app-rail-item.class.js +1 -1
- package/dist/components/layout/app-rail/app-rail-item.d.ts +1 -1
- package/dist/components/layout/app-rail/app-rail-mode.d.ts +4 -4
- package/dist/components/layout/app-rail/app-rail.class.d.ts +7 -7
- package/dist/components/layout/app-rail/app-rail.d.ts +1 -1
- package/dist/components/layout/app-rail-group/app-rail-group.class.d.ts +3 -3
- package/dist/components/layout/app-rail-group/app-rail-group.d.ts +1 -1
- package/dist/components/layout/breadcrumb/breadcrumb-item.class.d.ts +2 -2
- package/dist/components/layout/breadcrumb/breadcrumb-item.d.ts +1 -1
- package/dist/components/layout/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist/components/layout/button-group/button-group.class.d.ts +2 -2
- package/dist/components/layout/button-group/button-group.d.ts +1 -1
- package/dist/components/layout/card/card.class.d.ts +1 -1
- package/dist/components/layout/card/card.d.ts +1 -1
- package/dist/components/layout/carousel/carousel-item.d.ts +1 -1
- package/dist/components/layout/carousel/carousel.class.d.ts +5 -5
- package/dist/components/layout/command-palette/command-palette.class.d.ts +8 -8
- package/dist/components/layout/command-palette/command-palette.d.ts +1 -1
- package/dist/components/layout/control-group/control-group.d.ts +1 -1
- package/dist/components/layout/dashboard-grid/dashboard-grid.class.d.ts +3 -3
- package/dist/components/layout/dashboard-grid/dashboard-grid.d.ts +1 -1
- package/dist/components/layout/dashboard-grid/layout-types.d.ts +12 -12
- package/dist/components/layout/details/accordion-item.class.d.ts +11 -12
- package/dist/components/layout/details/accordion-item.class.js +1 -1
- package/dist/components/layout/details/accordion-item.d.ts +1 -1
- package/dist/components/layout/details/accordion-types.d.ts +2 -2
- package/dist/components/layout/details/accordion.class.d.ts +5 -5
- package/dist/components/layout/details/accordion.d.ts +1 -1
- package/dist/components/layout/details/details.class.d.ts +9 -9
- package/dist/components/layout/details/details.d.ts +1 -1
- package/dist/components/layout/dock-panel/dock-panel.class.d.ts +8 -15
- package/dist/components/layout/dock-panel/dock-panel.class.js +1 -1
- package/dist/components/layout/dock-panel/dock-panel.d.ts +1 -1
- package/dist/components/layout/drilldown-panel/drilldown-panel.class.d.ts +8 -8
- package/dist/components/layout/drilldown-panel/drilldown-panel.class.js +1 -1
- package/dist/components/layout/drilldown-panel/drilldown-panel.d.ts +1 -1
- package/dist/components/layout/filter-bar/filter-bar.class.d.ts +12 -12
- package/dist/components/layout/filter-bar/filter-bar.d.ts +1 -1
- package/dist/components/layout/menu/dropdown-item.class.d.ts +1 -1
- package/dist/components/layout/menu/dropdown-item.d.ts +1 -1
- package/dist/components/layout/menu/menu-item.class.d.ts +6 -6
- package/dist/components/layout/menu/menu-item.d.ts +1 -1
- package/dist/components/layout/menu/menu-label.d.ts +1 -1
- package/dist/components/layout/menu/menu.class.js +1 -1
- package/dist/components/layout/menu/menu.d.ts +1 -1
- package/dist/components/layout/menubar/menubar-item.class.d.ts +2 -2
- package/dist/components/layout/menubar/menubar-item.d.ts +1 -1
- package/dist/components/layout/menubar/menubar.class.d.ts +3 -3
- package/dist/components/layout/menubar/menubar.d.ts +1 -1
- package/dist/components/layout/multi-split/multi-split.class.d.ts +5 -5
- package/dist/components/layout/multi-split/multi-split.class.js +1 -1
- package/dist/components/layout/multi-split/multi-split.d.ts +1 -1
- package/dist/components/layout/navigation-menu/navigation-menu.class.d.ts +10 -14
- package/dist/components/layout/navigation-menu/navigation-menu.class.js +1 -1
- package/dist/components/layout/navigation-menu/navigation-menu.d.ts +1 -1
- package/dist/components/layout/navigation-menu-item/navigation-menu-item.class.d.ts +5 -5
- package/dist/components/layout/navigation-menu-item/navigation-menu-item.d.ts +1 -1
- package/dist/components/layout/page/page.class.d.ts +9 -9
- package/dist/components/layout/page/page.d.ts +1 -1
- package/dist/components/layout/reorder-list/reorder-item.class.d.ts +2 -2
- package/dist/components/layout/reorder-list/reorder-item.d.ts +1 -1
- package/dist/components/layout/reorder-list/reorder-list.d.ts +1 -1
- package/dist/components/layout/responsive-panel/responsive-panel-mode.d.ts +3 -3
- package/dist/components/layout/responsive-panel/responsive-panel.class.d.ts +4 -4
- package/dist/components/layout/responsive-panel/responsive-panel.d.ts +1 -1
- package/dist/components/layout/scroller/scroller.class.d.ts +2 -2
- package/dist/components/layout/scroller/scroller.d.ts +1 -1
- package/dist/components/layout/segmented/segmented.class.d.ts +2 -2
- package/dist/components/layout/segmented/segmented.d.ts +1 -1
- package/dist/components/layout/split-panel/split-panel-snap.d.ts +4 -4
- package/dist/components/layout/split-panel/split-panel.class.d.ts +11 -11
- package/dist/components/layout/split-panel/split-panel.d.ts +1 -1
- package/dist/components/layout/stepper/stepper.class.d.ts +4 -4
- package/dist/components/layout/stepper/stepper.d.ts +1 -1
- package/dist/components/layout/tab-group/tab-group.class.d.ts +4 -4
- package/dist/components/layout/tab-group/tab-group.class.js +1 -1
- package/dist/components/layout/tab-group/tab-group.d.ts +1 -1
- package/dist/components/layout/tab-group/tab-panel.class.d.ts +1 -1
- package/dist/components/layout/tab-group/tab-panel.d.ts +1 -1
- package/dist/components/layout/tab-group/tab.class.d.ts +2 -2
- package/dist/components/layout/tab-group/tab.d.ts +1 -1
- package/dist/components/layout/virtual-list/virtual-list-attributes.d.ts +2 -2
- package/dist/components/layout/virtual-list/virtual-list-limits.d.ts +1 -1
- package/dist/components/layout/virtual-list/virtual-list.class.d.ts +15 -14
- package/dist/components/layout/virtual-list/virtual-list.class.js +1 -1
- package/dist/components/layout/virtual-list/virtual-list.d.ts +1 -1
- package/dist/components/layout/widget/widget.class.d.ts +8 -17
- package/dist/components/layout/widget/widget.class.js +2 -2
- package/dist/components/layout/widget/widget.d.ts +1 -1
- package/dist/components/lr-chart-3d.js +1 -0
- package/dist/components/lr-map-anchor.js +1 -0
- package/dist/components/lr-model-viewer.js +1 -0
- package/dist/components/media/animated-image/animated-image.class.d.ts +4 -4
- package/dist/components/media/animated-image/animated-image.d.ts +1 -1
- package/dist/components/media/animation/animation-catalog.d.ts +3 -3
- package/dist/components/media/animation/animation.class.d.ts +5 -5
- package/dist/components/media/animation/animation.d.ts +1 -1
- package/dist/components/media/attachment-chip/attachment-chip.class.d.ts +5 -5
- package/dist/components/media/attachment-chip/attachment-chip.d.ts +1 -1
- package/dist/components/media/attachment-chip/file-size.d.ts +2 -2
- package/dist/components/media/attachment-trigger/attachment-trigger.class.d.ts +1 -1
- package/dist/components/media/attachment-trigger/attachment-trigger.d.ts +1 -1
- package/dist/components/media/av-player/av-cue-source.d.ts +3 -3
- package/dist/components/media/av-player/av-metadata.d.ts +1 -13
- package/dist/components/media/av-player/av-metadata.js +1 -1
- package/dist/components/media/av-player/av-player.class.d.ts +10 -10
- package/dist/components/media/av-player/av-player.class.js +1 -1
- package/dist/components/media/av-player/av-player.d.ts +1 -1
- package/dist/components/media/avatar/avatar.d.ts +1 -1
- package/dist/components/media/avatar-group/avatar-group.class.d.ts +2 -2
- package/dist/components/media/avatar-group/avatar-group.d.ts +1 -1
- package/dist/components/media/drop-zone/drop-zone.class.d.ts +3 -3
- package/dist/components/media/drop-zone/drop-zone.d.ts +1 -1
- package/dist/components/media/file-icon/file-icon.class.d.ts +5 -5
- package/dist/components/media/file-icon/file-icon.d.ts +1 -1
- package/dist/components/media/file-icon/file-type-metadata.d.ts +3 -3
- package/dist/components/media/file-input/file-input.class.d.ts +26 -29
- package/dist/components/media/file-input/file-input.class.js +3 -3
- package/dist/components/media/file-input/file-input.d.ts +1 -1
- package/dist/components/media/file-input/file-input.styles.js +1 -1
- package/dist/components/media/file-input/file-intake.d.ts +6 -6
- package/dist/components/media/flag/flag-url-resolver.d.ts +1 -1
- package/dist/components/media/flag/flag.class.d.ts +4 -4
- package/dist/components/media/flag/flag.d.ts +1 -1
- package/dist/components/media/image-comparer/image-comparer.class.d.ts +3 -3
- package/dist/components/media/image-viewer/image-viewer-limits.d.ts +1 -1
- package/dist/components/media/image-viewer/image-viewer-panorama.d.ts +5 -0
- package/dist/components/media/image-viewer/image-viewer-panorama.js +8 -0
- package/dist/components/media/image-viewer/image-viewer-panorama.styles.js +1 -0
- package/dist/components/media/image-viewer/image-viewer.class.d.ts +37 -13
- package/dist/components/media/image-viewer/image-viewer.class.js +8 -5
- package/dist/components/media/image-viewer/image-viewer.d.ts +1 -1
- 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-types.d.ts +2 -2
- package/dist/components/media/lightbox/lightbox.class.d.ts +9 -9
- package/dist/components/media/lightbox/lightbox.d.ts +1 -1
- package/dist/components/media/map/map-anchor-controller.js +1 -0
- package/dist/components/media/map/map-anchor-options.d.ts +14 -0
- package/dist/components/media/map/map-anchor-options.js +1 -0
- package/dist/components/media/map/map-anchor-seam.js +1 -0
- package/dist/components/media/map/map-anchor.class.d.ts +79 -0
- package/dist/components/media/map/map-anchor.class.js +3 -0
- package/dist/components/media/map/map-anchor.d.ts +1 -0
- package/dist/components/media/map/map-anchor.js +1 -0
- package/dist/components/media/map/map-anchor.styles.js +1 -0
- package/dist/components/media/map/map-basemap-order.js +1 -0
- package/dist/components/media/map/map-camera.d.ts +34 -0
- package/dist/components/media/map/map-camera.js +1 -0
- package/dist/components/media/map/map-construction-scheduler.d.ts +13 -0
- package/dist/components/media/map/map-construction-scheduler.js +1 -0
- package/dist/components/media/map/map-control-options.d.ts +39 -0
- package/dist/components/media/map/map-control-options.js +1 -0
- package/dist/components/media/map/map-controls-lifecycle.js +1 -0
- package/dist/components/media/map/map-cursor.js +1 -0
- package/dist/components/media/map/map-data-layer-model.d.ts +40 -0
- package/dist/components/media/map/map-data-layer-model.js +1 -0
- package/dist/components/media/map/map-drawing-controller.js +1 -0
- package/dist/components/media/map/map-drawing-gesture.js +1 -0
- package/dist/components/media/map/map-drawing-pan.js +1 -0
- package/dist/components/media/map/map-drawing-pointer.js +1 -0
- package/dist/components/media/map/map-drawing.d.ts +29 -0
- package/dist/components/media/map/map-drawing.js +1 -0
- package/dist/components/media/map/map-empty-style.d.ts +8 -0
- package/dist/components/media/map/map-empty-style.js +1 -0
- package/dist/components/media/map/map-engine-events.js +1 -0
- package/dist/components/media/map/map-export-attribution.js +1 -0
- package/dist/components/media/map/map-external-source-effects.js +1 -0
- package/dist/components/media/map/map-feature-loader-core.js +1 -0
- package/dist/components/media/map/map-feature-loader.js +1 -0
- package/dist/components/media/map/map-feature-state-router.d.ts +16 -0
- package/dist/components/media/map/map-feature-state-router.js +1 -0
- package/dist/components/media/map/map-feature-state-routes.js +1 -0
- package/dist/components/media/map/map-feature-state.d.ts +16 -0
- package/dist/components/media/map/map-feature-state.js +1 -0
- package/dist/components/media/map/map-geojson-diff.d.ts +4 -4
- package/dist/components/media/map/map-hash-option.js +1 -0
- package/dist/components/media/map/map-hash-owner.js +1 -0
- package/dist/components/media/map/map-hash.js +1 -0
- package/dist/components/media/map/map-hit-test.d.ts +17 -0
- package/dist/components/media/map/map-hit-test.js +1 -0
- package/dist/components/media/map/map-image-admission.d.ts +7 -0
- package/dist/components/media/map/map-image-admission.js +1 -0
- package/dist/components/media/map/map-image-export-controller.js +1 -0
- package/dist/components/media/map/map-image-export-error.d.ts +3 -0
- package/dist/components/media/map/map-image-export-error.js +1 -0
- package/dist/components/media/map/map-image-export.d.ts +15 -0
- package/dist/components/media/map/map-image-export.js +5 -0
- package/dist/components/media/map/map-image-limits.d.ts +4 -0
- package/dist/components/media/map/map-image-limits.js +1 -0
- package/dist/components/media/map/map-image-metadata.js +3 -0
- package/dist/components/media/map/map-image-provider.d.ts +33 -0
- package/dist/components/media/map/map-image-provider.js +1 -0
- package/dist/components/media/map/map-images.d.ts +9 -0
- package/dist/components/media/map/map-images.js +1 -0
- package/dist/components/media/map/map-interaction-options.d.ts +26 -0
- package/dist/components/media/map/map-interaction-options.js +1 -0
- package/dist/components/media/map/map-layer-order.js +1 -0
- package/dist/components/media/map/map-loader.d.ts +47 -17
- package/dist/components/media/map/map-loader.js +1 -1
- package/dist/components/media/map/map-local-image-url.js +1 -0
- package/dist/components/media/map/map-local-image.js +1 -0
- package/dist/components/media/map/map-overlay-admission.d.ts +13 -0
- package/dist/components/media/map/map-overlay-admission.js +1 -0
- package/dist/components/media/map/map-owned-feature-input.js +1 -0
- package/dist/components/media/map/map-owned-features.js +1 -0
- package/dist/components/media/map/map-owned-resources.js +1 -0
- package/dist/components/media/map/map-paint-batch.js +1 -0
- package/dist/components/media/map/map-readers.js +1 -0
- package/dist/components/media/map/map-readiness.js +1 -0
- package/dist/components/media/map/map-resource-feature-loaders.js +1 -0
- package/dist/components/media/map/map-source-updates.js +1 -0
- package/dist/components/media/map/map-style-input.js +1 -0
- package/dist/components/media/map/map-style-lifecycle.js +1 -0
- package/dist/components/media/map/map-style-override-admission.d.ts +13 -0
- package/dist/components/media/map/map-style-override-admission.js +1 -0
- package/dist/components/media/map/map-style-overrides.js +1 -0
- package/dist/components/media/map/map-style-value.d.ts +3 -0
- package/dist/components/media/map/map-style-value.js +1 -0
- package/dist/components/media/map/map-vector-style.d.ts +10 -0
- package/dist/components/media/map/map-vector-style.js +1 -0
- package/dist/components/media/map/map.class.d.ts +642 -117
- package/dist/components/media/map/map.class.js +59 -11
- package/dist/components/media/map/map.d.ts +1 -1
- package/dist/components/media/map/map.styles.js +1 -1
- package/dist/components/media/media-card/media-card.class.d.ts +3 -3
- package/dist/components/media/media-card/media-card.d.ts +1 -1
- package/dist/components/media/pan-zoom/pan-zoom.class.d.ts +5 -5
- package/dist/components/media/qr-code/qr-code.class.d.ts +7 -9
- package/dist/components/media/qr-code/qr-code.class.js +1 -1
- package/dist/components/media/qr-code/qr-code.d.ts +1 -1
- package/dist/components/media/qr-code/qr-code.styles.js +1 -1
- package/dist/components/media/sequence-playback/sequence-playback.class.d.ts +13 -13
- package/dist/components/media/sequence-playback/sequence-playback.d.ts +1 -1
- package/dist/components/media/video/video.class.d.ts +56 -35
- package/dist/components/media/video/video.class.js +11 -3
- package/dist/components/media/video/video.d.ts +1 -1
- package/dist/components/media/video/video.styles.js +1 -1
- package/dist/components/media/video-playlist/video-playlist.class.d.ts +8 -9
- package/dist/components/media/video-playlist/video-playlist.class.js +1 -1
- package/dist/components/media/video-playlist/video-playlist.d.ts +1 -1
- package/dist/components/media/zoomable-frame/zoomable-frame.class.d.ts +15 -15
- package/dist/components/overlays/alert/alert.class.d.ts +6 -6
- package/dist/components/overlays/alert/alert.d.ts +1 -1
- package/dist/components/overlays/badge/badge.class.d.ts +3 -3
- package/dist/components/overlays/badge/badge.d.ts +1 -1
- package/dist/components/overlays/badge/tag.class.d.ts +5 -5
- package/dist/components/overlays/badge/tag.d.ts +1 -1
- package/dist/components/overlays/callout/callout.class.d.ts +4 -4
- package/dist/components/overlays/callout/callout.d.ts +1 -1
- package/dist/components/overlays/chip/chip-group.class.d.ts +1 -1
- package/dist/components/overlays/chip/chip-group.class.js +1 -1
- package/dist/components/overlays/chip/chip-group.d.ts +1 -1
- package/dist/components/overlays/chip/chip.class.d.ts +6 -6
- package/dist/components/overlays/chip/chip.d.ts +1 -1
- package/dist/components/overlays/context-menu/context-menu.class.d.ts +6 -6
- package/dist/components/overlays/context-menu/context-menu.d.ts +1 -1
- package/dist/components/overlays/dialog/confirm.d.ts +5 -5
- package/dist/components/overlays/dialog/confirm.js +1 -1
- package/dist/components/overlays/dialog/dialog.class.d.ts +8 -8
- package/dist/components/overlays/dialog/dialog.class.js +1 -1
- package/dist/components/overlays/dialog/dialog.d.ts +1 -1
- package/dist/components/overlays/drawer/drawer.class.d.ts +1 -1
- package/dist/components/overlays/drawer/drawer.d.ts +1 -1
- package/dist/components/overlays/empty/empty.class.d.ts +2 -2
- package/dist/components/overlays/empty/empty.d.ts +1 -1
- package/dist/components/overlays/kbd/kbd.class.d.ts +3 -3
- package/dist/components/overlays/kbd/kbd.d.ts +1 -1
- package/dist/components/overlays/overlay/dropdown.class.d.ts +10 -10
- package/dist/components/overlays/overlay/dropdown.d.ts +1 -1
- package/dist/components/overlays/overlay/overlay-arrow.d.ts +5 -5
- package/dist/components/overlays/overlay/overlay-shared.d.ts +6 -6
- package/dist/components/overlays/overlay/popover.class.d.ts +15 -15
- package/dist/components/overlays/overlay/popover.class.js +2 -1
- package/dist/components/overlays/overlay/popover.d.ts +1 -1
- package/dist/components/overlays/overlay/tooltip.class.d.ts +5 -5
- package/dist/components/overlays/overlay/tooltip.class.js +1 -1
- package/dist/components/overlays/overlay/tooltip.d.ts +1 -1
- package/dist/components/overlays/popup/popup.class.d.ts +20 -20
- package/dist/components/overlays/popup/popup.d.ts +1 -1
- package/dist/components/overlays/progress/progress-bar.class.d.ts +1 -1
- package/dist/components/overlays/progress/progress-bar.d.ts +1 -1
- package/dist/components/overlays/progress/progress-base.d.ts +6 -6
- package/dist/components/overlays/progress/progress-ring.class.d.ts +2 -2
- package/dist/components/overlays/progress/progress-ring.d.ts +1 -1
- package/dist/components/overlays/rating/rating.class.d.ts +10 -10
- package/dist/components/overlays/rating/rating.d.ts +1 -1
- package/dist/components/overlays/skeleton/skeleton.class.d.ts +1 -1
- package/dist/components/overlays/skeleton/skeleton.d.ts +1 -1
- package/dist/components/overlays/spinner/spinner.d.ts +1 -1
- package/dist/components/overlays/toast/toast-item.class.d.ts +6 -6
- package/dist/components/overlays/toast/toast-item.d.ts +1 -1
- package/dist/components/overlays/toast/toast.class.d.ts +7 -7
- package/dist/components/overlays/toast/toast.d.ts +1 -1
- package/dist/components/overlays/toast/toaster.d.ts +2 -2
- package/dist/components/retrieval/chunk-inspector/chunk-inspector.class.d.ts +15 -18
- package/dist/components/retrieval/chunk-inspector/chunk-inspector.class.js +2 -2
- package/dist/components/retrieval/chunk-inspector/chunk-inspector.d.ts +1 -1
- package/dist/components/retrieval/citation-badge/citation-badge.class.d.ts +1 -1
- package/dist/components/retrieval/citation-badge/citation-badge.d.ts +1 -1
- package/dist/components/retrieval/claim-evidence/claim-evidence.class.d.ts +5 -5
- package/dist/components/retrieval/claim-evidence/claim-evidence.d.ts +1 -1
- package/dist/components/retrieval/community-card/community-card.class.d.ts +5 -8
- package/dist/components/retrieval/community-card/community-card.class.js +1 -1
- package/dist/components/retrieval/community-card/community-card.d.ts +1 -1
- package/dist/components/retrieval/embedding-explorer/embedding-explorer-data.d.ts +12 -0
- package/dist/components/retrieval/embedding-explorer/embedding-explorer-data.js +1 -0
- package/dist/components/retrieval/embedding-explorer/embedding-explorer-engine.js +1 -0
- package/dist/components/retrieval/embedding-explorer/embedding-explorer.class.d.ts +29 -10
- package/dist/components/retrieval/embedding-explorer/embedding-explorer.class.js +35 -4
- package/dist/components/retrieval/embedding-explorer/embedding-explorer.d.ts +1 -1
- package/dist/components/retrieval/embedding-explorer/embedding-explorer.styles.js +1 -1
- package/dist/components/retrieval/entity-card/entity-card.class.d.ts +7 -7
- package/dist/components/retrieval/entity-card/entity-card.d.ts +1 -1
- package/dist/components/retrieval/entity-chip/entity-chip.class.d.ts +2 -2
- package/dist/components/retrieval/entity-chip/entity-chip.d.ts +1 -1
- package/dist/components/retrieval/entity-dossier/entity-dossier.class.d.ts +13 -19
- package/dist/components/retrieval/entity-dossier/entity-dossier.d.ts +1 -1
- package/dist/components/retrieval/graph/graph-builtin-3d-engine.js +1 -0
- package/dist/components/retrieval/graph/graph-engine-adapter.js +1 -0
- package/dist/components/retrieval/graph/graph-engine-columns.js +1 -0
- package/dist/components/retrieval/graph/graph-loader.d.ts +1 -1
- package/dist/components/retrieval/graph/graph-model.d.ts +16 -16
- package/dist/components/retrieval/graph/graph-model.js +1 -1
- package/dist/components/retrieval/graph/graph-spatial-controller.js +13 -8
- package/dist/components/retrieval/graph/graph-webgl-engine.js +1 -0
- package/dist/components/retrieval/graph/graph.class.d.ts +38 -25
- package/dist/components/retrieval/graph/graph.class.js +4 -4
- package/dist/components/retrieval/graph/graph.d.ts +1 -1
- package/dist/components/retrieval/graph/graph.styles.js +1 -1
- package/dist/components/retrieval/graph-legend/graph-legend.class.d.ts +4 -4
- package/dist/components/retrieval/graph-legend/graph-legend.d.ts +1 -1
- package/dist/components/retrieval/grounding-summary/grounding-summary.class.d.ts +6 -6
- package/dist/components/retrieval/grounding-summary/grounding-summary.d.ts +1 -1
- package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.d.ts +10 -10
- package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.js +2 -2
- package/dist/components/retrieval/ingestion-queue/ingestion-queue.d.ts +1 -1
- package/dist/components/retrieval/knowledge-base/knowledge-base.class.d.ts +16 -16
- package/dist/components/retrieval/knowledge-base/knowledge-base.d.ts +1 -1
- package/dist/components/retrieval/knowledge-base-admin/knowledge-base-admin.class.d.ts +3 -3
- package/dist/components/retrieval/knowledge-base-admin/knowledge-base-admin.d.ts +1 -1
- package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.d.ts +16 -13
- package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.js +3 -3
- package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.d.ts +1 -1
- package/dist/components/retrieval/memory-panel/memory-panel.class.d.ts +11 -18
- package/dist/components/retrieval/memory-panel/memory-panel.class.js +1 -1
- package/dist/components/retrieval/memory-panel/memory-panel.d.ts +1 -1
- package/dist/components/retrieval/mind-map/mind-map-layout.d.ts +6 -6
- package/dist/components/retrieval/mind-map/mind-map.class.d.ts +1 -1
- package/dist/components/retrieval/mind-map/mind-map.d.ts +1 -1
- package/dist/components/retrieval/neighbor-list/neighbor-list.class.d.ts +13 -13
- package/dist/components/retrieval/neighbor-list/neighbor-list.class.js +2 -2
- package/dist/components/retrieval/neighbor-list/neighbor-list.d.ts +1 -1
- package/dist/components/retrieval/node-palette/node-palette.class.d.ts +6 -6
- package/dist/components/retrieval/node-palette/node-palette.d.ts +1 -1
- package/dist/components/retrieval/path-strip/path-strip.class.d.ts +2 -5
- package/dist/components/retrieval/path-strip/path-strip.class.js +1 -1
- package/dist/components/retrieval/path-strip/path-strip.d.ts +1 -1
- package/dist/components/retrieval/provenance-panel/provenance-panel.class.d.ts +5 -11
- package/dist/components/retrieval/provenance-panel/provenance-panel.d.ts +1 -1
- package/dist/components/retrieval/rag-answer/rag-answer.class.d.ts +9 -9
- package/dist/components/retrieval/rag-answer/rag-answer.class.js +2 -3
- package/dist/components/retrieval/rag-answer/rag-answer.d.ts +1 -1
- package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.class.d.ts +5 -15
- package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.class.js +1 -1
- package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.d.ts +1 -1
- package/dist/components/retrieval/research-progress/research-progress.class.d.ts +6 -6
- package/dist/components/retrieval/research-progress/research-progress.d.ts +1 -1
- package/dist/components/retrieval/retrieval-compare/retrieval-compare.class.d.ts +4 -4
- package/dist/components/retrieval/retrieval-compare/retrieval-compare.d.ts +1 -1
- package/dist/components/retrieval/retrieval-results/retrieval-results.class.d.ts +15 -19
- package/dist/components/retrieval/retrieval-results/retrieval-results.class.js +5 -6
- package/dist/components/retrieval/retrieval-results/retrieval-results.d.ts +1 -1
- package/dist/components/retrieval/retrieval-search/retrieval-search.class.d.ts +1 -1
- package/dist/components/retrieval/retrieval-search/retrieval-search.d.ts +1 -1
- package/dist/components/retrieval/retrieval-trace/retrieval-trace.class.d.ts +18 -21
- package/dist/components/retrieval/retrieval-trace/retrieval-trace.class.js +2 -3
- package/dist/components/retrieval/retrieval-trace/retrieval-trace.d.ts +1 -1
- package/dist/components/retrieval/source-card/source-card.class.d.ts +9 -12
- package/dist/components/retrieval/source-card/source-card.class.js +1 -1
- package/dist/components/retrieval/source-card/source-card.d.ts +1 -1
- package/dist/components/retrieval/source-list/source-list.class.d.ts +1 -1
- package/dist/components/retrieval/source-list/source-list.d.ts +1 -1
- package/dist/components/retrieval/source-picker/source-picker.class.d.ts +5 -8
- package/dist/components/retrieval/source-picker/source-picker.class.js +1 -1
- package/dist/components/retrieval/source-picker/source-picker.d.ts +1 -1
- package/dist/components/utility/copy-button/copy-button.class.d.ts +8 -8
- package/dist/components/utility/copy-button/copy-button.d.ts +1 -1
- package/dist/components/utility/diff-view/diff-line-diff.d.ts +1 -1
- package/dist/components/utility/diff-view/diff-view.class.d.ts +3 -3
- package/dist/components/utility/diff-view/diff-view.class.js +1 -1
- package/dist/components/utility/diff-view/diff-view.d.ts +1 -1
- package/dist/components/utility/divider/divider.class.d.ts +1 -1
- package/dist/components/utility/divider/divider.d.ts +1 -1
- package/dist/components/utility/export-button/csv.d.ts +2 -2
- package/dist/components/utility/export-button/export-button.class.d.ts +11 -11
- package/dist/components/utility/export-button/export-button.d.ts +1 -1
- package/dist/components/utility/format/format-bytes.d.ts +1 -1
- package/dist/components/utility/format/format-date.class.d.ts +1 -1
- package/dist/components/utility/format/format-date.d.ts +1 -1
- package/dist/components/utility/format/format-number.class.d.ts +2 -2
- package/dist/components/utility/format/format-number.d.ts +1 -1
- package/dist/components/utility/format/format-options.d.ts +4 -4
- package/dist/components/utility/format/format-options.js +1 -1
- package/dist/components/utility/format/relative-time.d.ts +1 -1
- package/dist/components/utility/icon/icon-library.d.ts +2 -2
- package/dist/components/utility/icon/icon.class.d.ts +10 -15
- package/dist/components/utility/icon/icon.class.js +2 -2
- package/dist/components/utility/icon/icon.d.ts +1 -1
- package/dist/components/utility/icon/icon.styles.js +1 -1
- package/dist/components/utility/intersection-observer/intersection-observer.class.d.ts +1 -1
- package/dist/components/utility/intersection-observer/intersection-observer.d.ts +1 -1
- package/dist/components/utility/json-viewer/json-viewer.class.d.ts +5 -5
- package/dist/components/utility/json-viewer/json-viewer.class.js +1 -1
- package/dist/components/utility/json-viewer/json-viewer.d.ts +1 -1
- package/dist/components/utility/known-date/known-date.class.d.ts +18 -21
- package/dist/components/utility/known-date/known-date.class.js +1 -1
- package/dist/components/utility/known-date/known-date.d.ts +1 -1
- package/dist/components/utility/live-region/live-region.class.d.ts +1 -1
- package/dist/components/utility/live-region/live-region.d.ts +1 -1
- package/dist/components/utility/mention-popover/mention-popover.class.d.ts +12 -11
- package/dist/components/utility/mention-popover/mention-popover.class.js +1 -1
- package/dist/components/utility/mention-popover/mention-popover.d.ts +1 -1
- package/dist/components/utility/mutation-observer/mutation-observer.class.d.ts +1 -1
- package/dist/components/utility/mutation-observer/mutation-observer.d.ts +1 -1
- package/dist/components/utility/poll-status/poll-status.class.d.ts +1 -1
- package/dist/components/utility/poll-status/poll-status.d.ts +1 -1
- package/dist/components/utility/random-content/random-content.class.d.ts +4 -4
- package/dist/components/utility/random-content/random-content.d.ts +1 -1
- package/dist/components/utility/resize-observer/resize-observer.d.ts +1 -1
- package/dist/components/utility/tour/tour.class.d.ts +8 -8
- package/dist/components/utility/tour/tour.d.ts +1 -1
- package/dist/components/utility/visually-hidden/visually-hidden.d.ts +1 -1
- package/dist/components/viewers/archive-viewer/archive-viewer.class.d.ts +3 -3
- package/dist/components/viewers/archive-viewer/archive-viewer.class.js +1 -1
- package/dist/components/viewers/archive-viewer/archive-viewer.d.ts +1 -1
- package/dist/components/viewers/calendar-viewer/calendar-loader.d.ts +1 -1
- package/dist/components/viewers/calendar-viewer/calendar-viewer.class.d.ts +6 -6
- package/dist/components/viewers/calendar-viewer/calendar-viewer.class.js +1 -1
- package/dist/components/viewers/calendar-viewer/calendar-viewer.d.ts +1 -1
- package/dist/components/viewers/contact-viewer/contact-viewer.class.d.ts +4 -4
- package/dist/components/viewers/contact-viewer/contact-viewer.class.js +1 -1
- package/dist/components/viewers/contact-viewer/contact-viewer.d.ts +1 -1
- package/dist/components/viewers/contact-viewer/vcard.d.ts +1 -1
- package/dist/components/viewers/csv-viewer/csv-viewer.class.d.ts +7 -7
- package/dist/components/viewers/csv-viewer/csv-viewer.d.ts +1 -1
- package/dist/components/viewers/dataset-viewer/dataset-viewer.class.d.ts +8 -8
- package/dist/components/viewers/dataset-viewer/dataset-viewer.d.ts +1 -1
- package/dist/components/viewers/document-compare/document-compare.class.d.ts +15 -15
- package/dist/components/viewers/document-compare/document-compare.d.ts +1 -1
- package/dist/components/viewers/document-preview/document-preview.class.d.ts +1 -1
- package/dist/components/viewers/document-preview/document-preview.class.js +1 -1
- package/dist/components/viewers/document-preview/document-preview.d.ts +1 -1
- package/dist/components/viewers/document-viewer/anchors.d.ts +7 -7
- package/dist/components/viewers/document-viewer/document-viewer-kinds.d.ts +1 -1
- package/dist/components/viewers/document-viewer/document-viewer-kinds.js +1 -1
- package/dist/components/viewers/document-viewer/document-viewer.class.d.ts +9 -9
- package/dist/components/viewers/document-viewer/document-viewer.class.js +1 -1
- package/dist/components/viewers/document-viewer/document-viewer.d.ts +1 -1
- package/dist/components/viewers/document-viewer/registry.d.ts +1 -69
- package/dist/components/viewers/document-viewer/registry.js +1 -1
- package/dist/components/viewers/docx-viewer/docx-viewer.class.d.ts +4 -4
- package/dist/components/viewers/docx-viewer/docx-viewer.class.js +1 -1
- package/dist/components/viewers/docx-viewer/docx-viewer.d.ts +1 -1
- package/dist/components/viewers/ebook-viewer/ebook-viewer.class.d.ts +2 -2
- package/dist/components/viewers/ebook-viewer/ebook-viewer.d.ts +1 -1
- package/dist/components/viewers/email-viewer/email-loader.d.ts +2 -2
- package/dist/components/viewers/email-viewer/email-viewer.class.d.ts +3 -3
- package/dist/components/viewers/email-viewer/email-viewer.class.js +1 -1
- package/dist/components/viewers/email-viewer/email-viewer.d.ts +1 -1
- package/dist/components/viewers/geojson-view/geojson-viewer.class.d.ts +2 -2
- package/dist/components/viewers/geojson-view/geojson-viewer.d.ts +1 -1
- package/dist/components/viewers/highlight-layer/highlight-layer.class.d.ts +1 -1
- package/dist/components/viewers/highlight-layer/highlight-layer.d.ts +1 -1
- package/dist/components/viewers/html-viewer/html-viewer.class.d.ts +5 -5
- package/dist/components/viewers/html-viewer/html-viewer.class.js +1 -1
- package/dist/components/viewers/html-viewer/html-viewer.d.ts +1 -1
- package/dist/components/viewers/include/include-resource.d.ts +1 -1
- package/dist/components/viewers/include/include.class.d.ts +2 -2
- package/dist/components/viewers/include/include.class.js +1 -1
- package/dist/components/viewers/include/include.d.ts +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 -0
- package/dist/components/viewers/model-viewer/model-viewer-loader.js +1 -0
- package/dist/components/viewers/model-viewer/model-viewer-register.d.ts +1 -0
- package/dist/components/viewers/model-viewer/model-viewer-register.js +1 -0
- package/dist/components/viewers/model-viewer/model-viewer-source.d.ts +1 -0
- package/dist/components/viewers/model-viewer/model-viewer-source.js +1 -0
- package/dist/components/viewers/model-viewer/model-viewer.class.d.ts +61 -0
- package/dist/components/viewers/model-viewer/model-viewer.class.js +9 -0
- package/dist/components/viewers/model-viewer/model-viewer.d.ts +1 -0
- package/dist/components/viewers/model-viewer/model-viewer.js +1 -0
- package/dist/components/viewers/model-viewer/model-viewer.styles.js +1 -0
- package/dist/components/viewers/notebook-viewer/notebook-viewer.class.d.ts +3 -3
- package/dist/components/viewers/notebook-viewer/notebook-viewer.class.js +2 -2
- package/dist/components/viewers/notebook-viewer/notebook-viewer.d.ts +1 -1
- package/dist/components/viewers/page-rail/page-rail.class.d.ts +5 -5
- package/dist/components/viewers/page-rail/page-rail.class.js +1 -1
- package/dist/components/viewers/page-rail/page-rail.d.ts +1 -1
- package/dist/components/viewers/page-rail/page-viewer-snapshot.d.ts +2 -2
- package/dist/components/viewers/pdf-viewer/pdf-viewer.class.d.ts +4 -4
- package/dist/components/viewers/pdf-viewer/pdf-viewer.class.js +1 -1
- package/dist/components/viewers/pdf-viewer/pdf-viewer.d.ts +1 -1
- package/dist/components/viewers/pptx-viewer/pptx-loader.d.ts +5 -5
- package/dist/components/viewers/pptx-viewer/pptx-viewer.class.d.ts +7 -7
- package/dist/components/viewers/pptx-viewer/pptx-viewer.class.js +3 -3
- package/dist/components/viewers/pptx-viewer/pptx-viewer.d.ts +1 -1
- package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer.class.d.ts +9 -9
- package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer.d.ts +1 -1
- package/dist/components/viewers/svg-viewer/svg-viewer.class.d.ts +1 -1
- package/dist/components/viewers/svg-viewer/svg-viewer.class.js +1 -1
- package/dist/components/viewers/svg-viewer/svg-viewer.d.ts +1 -1
- package/dist/components/viewers/table-viewer-shared.js +1 -1
- package/dist/components/viewers/viewer-diagnostics.d.ts +3 -3
- package/dist/components/viewers/viewer-source.d.ts +2 -2
- package/dist/components/viewers/xml-viewer/xml-viewer.class.d.ts +9 -9
- package/dist/components/viewers/xml-viewer/xml-viewer.class.js +1 -1
- package/dist/components/viewers/xml-viewer/xml-viewer.d.ts +1 -1
- package/dist/countries.d.ts +3 -3
- package/dist/currency.d.ts +5 -5
- package/dist/custom-elements-jsx.d.ts +1 -1
- package/dist/data-sources.d.ts +17 -17
- package/dist/events.d.ts +164 -119
- package/dist/framework-types.d.ts +4 -4
- package/dist/hydration.d.ts +1 -1
- package/dist/internal/a11y.d.ts +2 -2
- package/dist/internal/accessibility-visibility.d.ts +17 -17
- package/dist/internal/active-element.d.ts +1 -1
- package/dist/internal/anchor-target.d.ts +3 -3
- package/dist/internal/announcer.d.ts +18 -18
- package/dist/internal/ansi.d.ts +5 -3
- package/dist/internal/ansi.js +1 -1
- package/dist/internal/approval-wait-until.d.ts +1 -1
- package/dist/internal/autoloader-manifest.js +1 -1
- package/dist/internal/autoloader-tags.d.ts +1 -1
- package/dist/internal/autoloader-tags.js +1 -1
- package/dist/internal/av-metadata.d.ts +13 -0
- package/dist/internal/av-metadata.js +1 -0
- package/dist/internal/canvas-color.d.ts +1 -1
- package/dist/internal/catalog-picker.d.ts +1 -1
- package/dist/internal/clipboard.d.ts +5 -5
- package/dist/internal/collection-snapshot.js +1 -1
- package/dist/internal/component-loaders.generated.js +1 -1
- package/dist/internal/composed-tree.d.ts +2 -2
- package/dist/internal/converters.d.ts +10 -10
- package/dist/internal/css-length.d.ts +1 -1
- package/dist/internal/custom-element-upgrade-observer.d.ts +1 -1
- package/dist/internal/data-descriptors.d.ts +30 -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/media.generated.js +1 -1
- package/dist/internal/default-strings/shared.generated.js +1 -1
- package/dist/internal/default-strings/viewers.generated.js +1 -1
- package/dist/internal/deferred-focus-return.d.ts +5 -5
- package/dist/internal/definition-registry.d.ts +2 -2
- package/dist/internal/deprecated-alias-types.d.ts +1 -1
- package/dist/internal/deprecated-aliases.d.ts +1 -1
- package/dist/internal/direct-form-associated.d.ts +4 -4
- package/dist/internal/document-renderer-registry.d.ts +75 -0
- package/dist/internal/document-renderer-registry.js +1 -0
- package/dist/internal/document-tokens.d.ts +1 -1
- package/dist/internal/docx-zip-admission.d.ts +1 -1
- package/dist/internal/drop-session-controller.d.ts +6 -6
- package/dist/internal/drop-session-controller.js +1 -1
- package/dist/internal/engine-3d-loader.d.ts +47 -0
- package/dist/internal/engine-3d-loader.js +1 -0
- package/dist/internal/engine-3d.d.ts +57 -0
- package/dist/internal/engine-3d.js +1 -0
- package/dist/internal/focus-navigation.d.ts +9 -9
- package/dist/internal/form-associated.d.ts +20 -20
- package/dist/internal/form-control-element.d.ts +6 -6
- package/dist/internal/heading-level.d.ts +1 -1
- package/dist/internal/hierarchy-source-controller.js +1 -1
- package/dist/internal/highlight-collection.d.ts +3 -3
- package/dist/internal/icons.d.ts +23 -23
- package/dist/internal/inherited-attribute-hub.d.ts +3 -3
- package/dist/internal/layered-layout.d.ts +8 -8
- package/dist/internal/locale-loader.d.ts +1 -1
- package/dist/internal/localization-runtime.d.ts +7 -7
- package/dist/internal/localization-runtime.js +1 -1
- package/dist/internal/localization-types.d.ts +2 -2
- package/dist/internal/localization.js +1 -1
- package/dist/internal/lyra-element.d.ts +19 -19
- package/dist/internal/lyra-element.js +1 -1
- package/dist/internal/match-constraint.d.ts +1 -1
- package/dist/internal/model-viewer-contract.d.ts +5 -0
- package/dist/internal/model-viewer-contract.js +1 -0
- package/dist/internal/node-type-style.d.ts +1 -1
- package/dist/internal/numbers.d.ts +12 -12
- package/dist/internal/optional-peer-capabilities.d.ts +9 -9
- package/dist/internal/overlay-manager.d.ts +22 -22
- package/dist/internal/overlay-manager.js +1 -1
- package/dist/internal/overlay-order.d.ts +3 -3
- package/dist/internal/overlay-stack.d.ts +3 -3
- package/dist/internal/package-metadata.js +1 -1
- package/dist/internal/positioner-geometry.d.ts +2 -2
- package/dist/internal/positioner.d.ts +26 -23
- package/dist/internal/positioner.js +1 -1
- package/dist/internal/registered-animation.d.ts +2 -2
- package/dist/internal/rendered-state.js +1 -1
- package/dist/internal/rendered-tree-traversal.d.ts +13 -13
- package/dist/internal/resource-loader.d.ts +7 -7
- package/dist/internal/root-registration-allowlist.js +1 -1
- package/dist/internal/safe-resource-cache.d.ts +3 -3
- package/dist/internal/scoped-definitions.generated.js +1 -1
- package/dist/internal/score-tiers.d.ts +2 -2
- package/dist/internal/selection-catalog.d.ts +3 -3
- package/dist/internal/semantic-variant.d.ts +3 -3
- package/dist/internal/shared-unions.d.ts +3 -3
- package/dist/internal/slugger.d.ts +1 -1
- package/dist/internal/stream-phase.d.ts +1 -1
- package/dist/internal/text-highlights.d.ts +4 -4
- package/dist/internal/text-quote.d.ts +18 -18
- package/dist/internal/text-viewer-target.d.ts +4 -4
- package/dist/internal/theme-watcher.d.ts +2 -2
- package/dist/internal/top-layer-escape.d.ts +1 -1
- package/dist/internal/typed-columns.d.ts +39 -0
- package/dist/internal/typed-columns.js +1 -0
- package/dist/internal/variant-values.d.ts +3 -3
- package/dist/internal/variants.d.ts +4 -4
- 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 +16 -16
- package/dist/ssr.js +1 -1
- package/dist/svelte.d.ts +1 -1
- package/dist/testing/happy-dom-shims.d.ts +3 -3
- package/dist/testing/interaction-drivers.d.ts +3 -3
- package/dist/testing/jsdom-shims.d.ts +9 -9
- package/dist/testing/lyra-tag-event-map.d.ts +2 -2
- package/dist/testing/lyra-tag-event-map.js +1 -1
- package/dist/testing/wait-for-mount.d.ts +3 -3
- package/dist/theme/chart-palette.d.ts +2 -2
- package/dist/theme/gemstones-data.d.ts +2 -2
- package/dist/theme/look-css.d.ts +2 -2
- package/dist/theme/looks/data.d.ts +1 -1
- package/dist/theme/looks/high-contrast.d.ts +1 -1
- package/dist/theme/looks/material.d.ts +1 -1
- package/dist/theme/looks/shadcn.d.ts +1 -1
- package/dist/theme/looks/terminal.d.ts +1 -1
- package/dist/theme/options/charts.d.ts +5 -5
- package/dist/theme/options/elevation.d.ts +1 -1
- package/dist/theme/options/shape.d.ts +1 -1
- package/dist/theme/options/typography.d.ts +1 -1
- package/dist/theme/preferences.d.ts +1 -1
- package/dist/theme/style-ownership.d.ts +1 -1
- package/dist/theme/theme-bootstrap.js +1 -1
- package/dist/theme/theme.d.ts +13 -13
- package/dist/theme/theme.js +1 -1
- package/dist/units.d.ts +2 -2
- package/dist/utilities/animation-registry.d.ts +5 -5
- package/dist/utilities/catalog.d.ts +1 -1
- package/dist/utilities/data-spatial.d.ts +9 -9
- package/dist/utilities/defined.d.ts +1 -1
- package/dist/utilities/deprecated-aliases.d.ts +1 -1
- package/dist/utilities/scoped-registry.d.ts +5 -5
- package/dist/vue.d.ts +3 -3
- package/llms/components/lr-accordion-item.md +2 -2
- package/llms/components/lr-agent-eval-dashboard.md +3 -3
- package/llms/components/lr-agent-run.md +3 -3
- package/llms/components/lr-agent-trace.md +1 -1
- package/llms/components/lr-agent-workspace.md +1 -1
- package/llms/components/lr-app-rail-item.md +1 -1
- package/llms/components/lr-app-rail.md +5 -6
- package/llms/components/lr-background-runs.md +4 -4
- package/llms/components/lr-calendar.md +1 -1
- package/llms/components/lr-change-review.md +5 -5
- package/llms/components/lr-chart-3d.md +164 -0
- package/llms/components/lr-chunk-inspector.md +4 -5
- package/llms/components/lr-citation-badge.md +1 -1
- package/llms/components/lr-code-block-core.md +2 -4
- package/llms/components/lr-command-palette.md +3 -3
- package/llms/components/lr-community-card.md +2 -2
- package/llms/components/lr-date-picker.md +1 -1
- package/llms/components/lr-details.md +2 -2
- package/llms/components/lr-diff-view.md +2 -2
- package/llms/components/lr-dock-panel.md +5 -10
- package/llms/components/lr-document-viewer.md +21 -14
- package/llms/components/lr-embedding-explorer.md +24 -4
- package/llms/components/lr-entity-dossier.md +3 -4
- package/llms/components/lr-eval-dataset.md +3 -3
- package/llms/components/lr-eval-run.md +7 -1
- package/llms/components/lr-file-input.md +10 -11
- package/llms/components/lr-flow-node.md +2 -3
- package/llms/components/lr-geojson-viewer.md +1 -1
- package/llms/components/lr-graph.md +21 -2
- package/llms/components/lr-grounding-summary.md +1 -1
- package/llms/components/lr-icon.md +1 -3
- package/llms/components/lr-image-viewer.md +29 -2
- package/llms/components/lr-ingestion-queue.md +1 -1
- package/llms/components/lr-knowledge-base-admin.md +2 -2
- package/llms/components/lr-knowledge-graph-explorer.md +7 -1
- package/llms/components/lr-known-date.md +3 -10
- package/llms/components/lr-lite-chart.md +1 -1
- package/llms/components/lr-locale-picker.md +11 -1
- package/llms/components/lr-map-anchor.md +165 -0
- package/llms/components/lr-map.md +939 -49
- package/llms/components/lr-markdown-core.md +1 -2
- package/llms/components/lr-memory-panel.md +4 -8
- package/llms/components/lr-model-viewer.md +170 -0
- package/llms/components/lr-navigation-menu.md +3 -4
- package/llms/components/lr-node-palette.md +1 -1
- package/llms/components/lr-path-strip.md +2 -3
- package/llms/components/lr-provenance-panel.md +3 -5
- package/llms/components/lr-qr-code.md +3 -4
- package/llms/components/lr-rag-answer.md +1 -1
- package/llms/components/lr-rag-eval-dashboard.md +2 -5
- package/llms/components/lr-retrieval-results.md +6 -7
- package/llms/components/lr-retrieval-trace.md +3 -4
- package/llms/components/lr-signature-pad.md +4 -3
- package/llms/components/lr-source-card.md +1 -1
- package/llms/components/lr-source-list.md +5 -5
- package/llms/components/lr-source-picker.md +2 -3
- package/llms/components/lr-span-waterfall.md +4 -3
- package/llms/components/lr-sparkline.md +3 -3
- package/llms/components/lr-subagent-panel.md +3 -3
- package/llms/components/lr-tool-call-chip.md +6 -6
- package/llms/components/lr-tool-timeline.md +1 -1
- package/llms/components/lr-tree.md +4 -0
- package/llms/components/lr-video-playlist.md +3 -3
- package/llms/components/lr-video.md +29 -2
- package/llms/components/lr-virtual-list.md +3 -2
- package/llms/components/lr-widget.md +6 -13
- package/llms/index.md +100 -96
- package/llms/migration.md +27 -38
- package/llms/peers.md +7 -6
- package/llms/shared/ai-and-peers.md +1 -1
- package/llms/shared/events-and-types.md +12 -0
- package/llms/shared/imports-and-registration.md +2 -2
- package/llms/shared/testing-and-utilities.md +6 -1
- package/llms/shared/v29-to-v30-migration.md +256 -0
- package/llms/shared.md +21 -4
- package/llms.txt +7 -7
- package/locales.json +1 -2328
- package/package.json +49 -14
- package/registrations.json +1 -1
- package/skills/lyra-ui/SKILL.md +4 -3
- /package/dist/{components/viewers/document-viewer → internal}/deferred-teardown.js +0 -0
- /package/dist/{components/viewers/document-viewer/registry-ownership.js → internal/document-renderer-registry-ownership.js} +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type{LyraMessage}from'./localization-types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Which renderer an element prefers for its 3D view. `'webgl'` is a preference, not a requirement:
|
|
4
|
+
* when the companion engine is missing, WebGL2 is unavailable, or the context is lost or fails, the
|
|
5
|
+
* element falls back to its built-in renderer and then to its list or text alternative.
|
|
6
|
+
*/
|
|
7
|
+
export type Engine3dPreference='builtin'|'webgl';
|
|
8
|
+
/**
|
|
9
|
+
* Normalizes the `engine` attribute and direct property writes alike: anything other than
|
|
10
|
+
* `'webgl'` resolves to `'builtin'`, so a typo never opts an application into a download.
|
|
11
|
+
*/
|
|
12
|
+
export declare const ENGINE_3D_PREFERENCE:import("./converters.js").LiteralSetConverter<Engine3dPreference>;
|
|
13
|
+
/** What currently renders: the WebGL engine, the element's built-in renderer, or its list or text alternative.*/
|
|
14
|
+
export type Engine3dRenderer='webgl'|'builtin'|'list';
|
|
15
|
+
/** Why an element moved down its fallback chain.*/
|
|
16
|
+
export type Engine3dFallbackReason='unavailable'|'unsupported'|'context-lost'|'error';
|
|
17
|
+
/** Detail of the `lr-engine-fallback` event an element emits on every step down its chain.*/
|
|
18
|
+
export interface Engine3dFallbackDetail{readonly from:Engine3dRenderer;readonly to:Engine3dRenderer;readonly reason:Engine3dFallbackReason;}export type Engine3dMessageKey='engine3dLoading'|'engine3dUnavailable'|'engine3dUnsupported'|'engine3dContextLost'|'engine3dError'|'engine3dSoftwareRendering'|'engine3dShowingBuiltin'|'engine3dShowingList';
|
|
19
|
+
/** English defaults an element merges into its own `defaultStrings` when it adopts the `engine` property.*/
|
|
20
|
+
export declare const ENGINE_3D_DEFAULT_STRINGS:Readonly<Record<Engine3dMessageKey,LyraMessage>>;
|
|
21
|
+
/** Why an element fell back, as a message key; plain literal tables keep `localize()` keys checkable.*/
|
|
22
|
+
export declare const ENGINE_3D_REASON_MESSAGE:{readonly unavailable:'engine3dUnavailable';readonly unsupported:'engine3dUnsupported';readonly'context-lost':'engine3dContextLost';readonly error:'engine3dError';};
|
|
23
|
+
/** What a fallback shows now, as a message key. A fallback never lands on the WebGL renderer.*/
|
|
24
|
+
export declare const ENGINE_3D_SHOWING_MESSAGE:{readonly webgl:'engine3dShowingList';readonly builtin:'engine3dShowingBuiltin';readonly list:'engine3dShowingList';};
|
|
25
|
+
/**
|
|
26
|
+
* The two message keys of a fallback notice: why the element fell back, then what it shows now.
|
|
27
|
+
* They are separate sentences, each translated whole and rendered in its own node.
|
|
28
|
+
*/
|
|
29
|
+
export declare function engine3dFallbackNotice(detail:Engine3dFallbackDetail):{readonly reason:Engine3dMessageKey;readonly showing:Engine3dMessageKey;};
|
|
30
|
+
/**
|
|
31
|
+
* Maps an engine `mount()` rejection to a fallback reason. The companion rejects with
|
|
32
|
+
* `code: 'webgl-unavailable'` when the browser has no WebGL2; anything else is an engine error.
|
|
33
|
+
*/
|
|
34
|
+
export declare function engine3dFailureReason(error:unknown):Engine3dFallbackReason;
|
|
35
|
+
/**
|
|
36
|
+
* Whether this browser can create a WebGL2 context at all, checked before downloading an engine.
|
|
37
|
+
* The probe context is released at once so it does not count against the page's context budget.
|
|
38
|
+
*/
|
|
39
|
+
export declare function webgl2Available(createCanvas?:()=>HTMLCanvasElement):boolean;
|
|
40
|
+
/**
|
|
41
|
+
* The renderer state machine behind an element's `engine` property, kept free of rendering so the
|
|
42
|
+
* same rules apply to every component: the preference switches live, a failure moves one step down
|
|
43
|
+
* the chain (`webgl` -> `builtin` when the element has one -> `list`), and a restored context or a
|
|
44
|
+
* fresh preference write returns to WebGL.
|
|
45
|
+
*/
|
|
46
|
+
export declare class Engine3dSelection{private readonly hasBuiltin;private currentPreference;private currentRenderer;
|
|
47
|
+
/** `hasBuiltin`: whether the element has its own renderer between WebGL and the list.*/
|
|
48
|
+
constructor(hasBuiltin:boolean);get preference():Engine3dPreference;get renderer():Engine3dRenderer;
|
|
49
|
+
/** Applies a normalized preference; returns whether the renderer to show changed.*/
|
|
50
|
+
prefer(value:unknown):boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Moves one step down the chain after `reason` stopped the current renderer. Returns the event
|
|
53
|
+
* detail to emit, or `null` when the list or text alternative is already showing.
|
|
54
|
+
*/
|
|
55
|
+
fail(reason:Engine3dFallbackReason):Engine3dFallbackDetail|null;
|
|
56
|
+
/** Returns to WebGL after a restored context when WebGL is still preferred; reports a change.*/
|
|
57
|
+
restore():boolean;}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{literalSetConverter}from"./converters.js";import{LYRA_DEFAULT_engine3dContextLost,LYRA_DEFAULT_engine3dError,LYRA_DEFAULT_engine3dLoading,LYRA_DEFAULT_engine3dShowingBuiltin,LYRA_DEFAULT_engine3dShowingList,LYRA_DEFAULT_engine3dSoftwareRendering,LYRA_DEFAULT_engine3dUnavailable,LYRA_DEFAULT_engine3dUnsupported}from"./default-strings/shared.generated.js";const ENGINE_3D_PREFERENCE=literalSetConverter(["builtin","webgl"],"builtin"),ENGINE_3D_DEFAULT_STRINGS=Object.freeze({engine3dLoading:LYRA_DEFAULT_engine3dLoading,engine3dUnavailable:LYRA_DEFAULT_engine3dUnavailable,engine3dUnsupported:LYRA_DEFAULT_engine3dUnsupported,engine3dContextLost:LYRA_DEFAULT_engine3dContextLost,engine3dError:LYRA_DEFAULT_engine3dError,engine3dSoftwareRendering:LYRA_DEFAULT_engine3dSoftwareRendering,engine3dShowingBuiltin:LYRA_DEFAULT_engine3dShowingBuiltin,engine3dShowingList:LYRA_DEFAULT_engine3dShowingList}),ENGINE_3D_REASON_MESSAGE={unavailable:"engine3dUnavailable",unsupported:"engine3dUnsupported","context-lost":"engine3dContextLost",error:"engine3dError"},ENGINE_3D_SHOWING_MESSAGE={webgl:"engine3dShowingList",builtin:"engine3dShowingBuiltin",list:"engine3dShowingList"};function engine3dFallbackNotice(detail){return{reason:ENGINE_3D_REASON_MESSAGE[detail.reason],showing:ENGINE_3D_SHOWING_MESSAGE[detail.to]}}function engine3dFailureReason(error){return typeof error=="object"&&error!==null&&error.code==="webgl-unavailable"?"unsupported":"error"}function webgl2Available(createCanvas=()=>document.createElement("canvas")){try{const context=createCanvas().getContext("webgl2");return context?.getExtension("WEBGL_lose_context")?.loseContext(),context!==null}catch{return!1}}class Engine3dSelection{constructor(hasBuiltin){this.hasBuiltin=hasBuiltin,this.currentPreference="builtin",this.currentRenderer=hasBuiltin?"builtin":"list"}get preference(){return this.currentPreference}get renderer(){return this.currentRenderer}prefer(value){const preference=ENGINE_3D_PREFERENCE.normalize(value),previous=this.currentRenderer;return this.currentPreference=preference,this.currentRenderer=preference==="webgl"?"webgl":this.hasBuiltin?"builtin":"list",previous!==this.currentRenderer}fail(reason){const from=this.currentRenderer,to=from==="webgl"?this.hasBuiltin?"builtin":"list":from==="builtin"?"list":null;return to===null?null:(this.currentRenderer=to,Object.freeze({from,to,reason}))}restore(){return this.currentPreference!=="webgl"||this.currentRenderer==="webgl"?!1:(this.currentRenderer="webgl",!0)}}export{ENGINE_3D_DEFAULT_STRINGS,ENGINE_3D_PREFERENCE,ENGINE_3D_REASON_MESSAGE,ENGINE_3D_SHOWING_MESSAGE,Engine3dSelection,engine3dFailureReason,engine3dFallbackNotice,webgl2Available};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
type ComposedFocusMode='programmatic'|'tabbable';type FocusTraversalTruncationReason='depth'|'nodes';export interface ComposedFocusCollectionOptions{
|
|
2
|
-
/** Includes managed/native actions at `tabindex=-1`, or only sequential Tab stops
|
|
2
|
+
/** Includes managed/native actions at `tabindex=-1`, or only sequential Tab stops.*/
|
|
3
3
|
mode?:ComposedFocusMode;
|
|
4
|
-
/** Whether an Element root can itself be returned. Defaults to true
|
|
4
|
+
/** Whether an Element root can itself be returned. Defaults to true.*/
|
|
5
5
|
includeRoot?:boolean;
|
|
6
|
-
/** Maximum composed descendant depth
|
|
6
|
+
/** Maximum composed descendant depth.*/
|
|
7
7
|
maxDepth?:number;
|
|
8
|
-
/** Total element-work ceiling, shared across slots and open shadow roots
|
|
8
|
+
/** Total element-work ceiling, shared across slots and open shadow roots.*/
|
|
9
9
|
maxNodes?:number;
|
|
10
|
-
/** Skips composed-ancestor validation for the supplied root only
|
|
10
|
+
/** Skips composed-ancestor validation for the supplied root only.*/
|
|
11
11
|
skipRootAncestorValidation?:boolean;
|
|
12
12
|
/**
|
|
13
13
|
* Models the browser's own sequential navigation instead of the stricter availability used for
|
|
@@ -32,7 +32,7 @@ type ComposedFocusRepairTargets=HTMLElement|null|undefined|readonly(HTMLElement|
|
|
|
32
32
|
* holder has committed.
|
|
33
33
|
*/
|
|
34
34
|
export type ComposedFocusRepairTargetSource=ComposedFocusRepairTargets|(()=>ComposedFocusRepairTargets);
|
|
35
|
-
/** Realm-neutral classification of native actions and elements carrying an ARIA widget role
|
|
35
|
+
/** Realm-neutral classification of native actions and elements carrying an ARIA widget role.*/
|
|
36
36
|
export declare function isSemanticActionElement(element:Element):element is HTMLElement;
|
|
37
37
|
/**
|
|
38
38
|
* Realm-neutral classification of semantic actions and authored sequential focus stops. A plain
|
|
@@ -40,9 +40,9 @@ export declare function isSemanticActionElement(element:Element):element is HTML
|
|
|
40
40
|
* actions retain their semantics when a roving owner assigns `-1`.
|
|
41
41
|
*/
|
|
42
42
|
export declare function isActionableElement(element:Element):element is HTMLElement;
|
|
43
|
-
/** Whether a genuine HTML element can currently receive focus through its composed branch
|
|
43
|
+
/** Whether a genuine HTML element can currently receive focus through its composed branch.*/
|
|
44
44
|
export declare function isComposedFocusAvailable(element:Element,options?:Pick<ComposedFocusCollectionOptions,'maxDepth'|'maxNodes'>):element is HTMLElement;
|
|
45
|
-
/** The focus target just after `owner`'s composed subtree (else just before it), or null. Walks the document
|
|
45
|
+
/** The focus target just after `owner`'s composed subtree (else just before it), or null. Walks the document.*/
|
|
46
46
|
export declare function nearestExternalFocusTarget(owner:Element):HTMLElement|null;
|
|
47
47
|
/** Captures a repair only when deep focus is currently inside the branch about to disappear. A
|
|
48
48
|
* thunk `candidate` is resolved only then, so an expensive lookup is skipped otherwise. */
|
|
@@ -161,5 +161,5 @@ export declare function deferComposedFocusRepair(owner:Element,bridge:HTMLElemen
|
|
|
161
161
|
* models sequential browser order, including one stop per native radio group.
|
|
162
162
|
*/
|
|
163
163
|
export declare function collectComposedFocusTargets(root:Element|ShadowRoot,options?:ComposedFocusCollectionOptions):ComposedFocusCollectionResult;
|
|
164
|
-
/** Internal companion used by overlay autofocus delegation with the same bounded traversal
|
|
164
|
+
/** Internal companion used by overlay autofocus delegation with the same bounded traversal.*/
|
|
165
165
|
export declare function collectComposedAutofocusElements(root:Element|ShadowRoot,options?:Omit<ComposedFocusCollectionOptions,'mode'>):ComposedFocusCollectionResult;export{};
|
|
@@ -82,7 +82,7 @@ toAttribute?(value:TValue):string|null;
|
|
|
82
82
|
* rather than restoring a wrongly-shaped state.
|
|
83
83
|
*/
|
|
84
84
|
fromFormState?(state:FormSubmissionValue):TValue;}
|
|
85
|
-
/** An adapter with every optional member resolved, so the mixin never branches on `undefined
|
|
85
|
+
/** An adapter with every optional member resolved, so the mixin never branches on `undefined`.*/
|
|
86
86
|
type ResolvedFormValueAdapter<TValue> =Required<Omit<FormValueAdapter<TValue>,'toFormState'>> &Pick<FormValueAdapter<TValue>,'toFormState'>;
|
|
87
87
|
/**
|
|
88
88
|
* The default `valueMissing` emptiness test: `null`/`undefined`, the empty string, an empty array,
|
|
@@ -110,7 +110,7 @@ export declare const stringFormValueAdapter:ResolvedFormValueAdapter<string>;
|
|
|
110
110
|
* constructed under a DOM shim has no real `ElementInternals` at all).
|
|
111
111
|
*/
|
|
112
112
|
export interface ValidationCandidate{
|
|
113
|
-
/** Own `disabled` OR any inherited disablement (fieldset, owning group). Preferred over `disabled
|
|
113
|
+
/** Own `disabled` OR any inherited disablement (fieldset, owning group). Preferred over `disabled`.*/
|
|
114
114
|
readonly effectiveDisabled?:boolean;readonly disabled?:boolean;readonly readonly?:boolean;}
|
|
115
115
|
/**
|
|
116
116
|
* Whether constraint validation must not run for this control — the single predicate behind every
|
|
@@ -139,13 +139,13 @@ export declare function isBarredFromValidation(host:ValidationCandidate,internal
|
|
|
139
139
|
* `FormAssociatedInterface` keeps its exact former meaning.
|
|
140
140
|
*/
|
|
141
141
|
export interface FormAssociatedInterface<TValue=string>{internals:ElementInternals;get name():string;set name(next:string|null);
|
|
142
|
-
/** Reads the current value; writing `null` restores the control's empty/default value
|
|
142
|
+
/** Reads the current value; writing `null` restores the control's empty/default value.*/
|
|
143
143
|
get value():TValue;set value(next:TValue|null);
|
|
144
|
-
/** Reset default on read; null on write removes its markup value
|
|
144
|
+
/** Reset default on read; null on write removes its markup value.*/
|
|
145
145
|
get defaultValue():TValue;set defaultValue(next:TValue|null);customError:string|null;disabled:boolean;required:boolean;readonly effectiveDisabled:boolean;
|
|
146
|
-
/** Browser-resolved owner on read; accepts an owner id, form element, or `null` on write
|
|
146
|
+
/** Browser-resolved owner on read; accepts an owner id, form element, or `null` on write.*/
|
|
147
147
|
get form():HTMLFormElement|null;set form(owner:FormOwnerValue);readonly labels:NodeList;readonly validity:ValidityState;readonly validationMessage:string;readonly willValidate:boolean;setFormValue(next:TValue):void;getForm():HTMLFormElement|null;checkValidity():boolean;reportValidity():boolean;setCustomValidity(message:string):void;resetValidity():void;formResetCallback():void;formDisabledCallback(disabled:boolean):void;formStateRestoreCallback(state:FormSubmissionValue,reason:'autocomplete'|'restore'):void;}
|
|
148
|
-
/** Subclass-only transaction seam retained in the mixin's explicit constructor return type
|
|
148
|
+
/** Subclass-only transaction seam retained in the mixin's explicit constructor return type.*/
|
|
149
149
|
export declare class FormAssociatedSubclassInterface<TValue=string>{protected captureLiveValueCheckpoint():{readonly value:TValue;readonly dirty:boolean;};protected restoreLiveValueCheckpoint(checkpoint:{readonly value:TValue;readonly dirty:boolean;}):void;protected commitFormValue(value:TValue):void;protected isMissingValue():boolean;}
|
|
150
150
|
/**
|
|
151
151
|
* Mixin that turns a Lit component into a form-associated custom element via
|
|
@@ -170,11 +170,11 @@ export declare class FormAssociatedSubclassInterface<TValue=string>{protected ca
|
|
|
170
170
|
* declaration file for the (otherwise anonymous) mixin class (avoids TS4094).
|
|
171
171
|
*/
|
|
172
172
|
export declare function FormAssociated<T extends Constructor<LitElement>,TValue=string>(Base:T,valueAdapter?:FormValueAdapter<TValue>):T&Constructor<FormAssociatedInterface<TValue> &FormAssociatedSubclassInterface<TValue>>;
|
|
173
|
-
/** Public surface `CheckedFormAssociated` adds: the live and reset-default checked state
|
|
173
|
+
/** Public surface `CheckedFormAssociated` adds: the live and reset-default checked state.*/
|
|
174
174
|
export interface CheckedFormAssociatedInterface{checked:boolean;
|
|
175
|
-
/** Reset default on read; reflects the `checked` attribute
|
|
175
|
+
/** Reset default on read; reflects the `checked` attribute.*/
|
|
176
176
|
get defaultChecked():boolean;set defaultChecked(next:boolean);}
|
|
177
|
-
/** The slice of the shared validity controller a checked subclass with its own error channel uses
|
|
177
|
+
/** The slice of the shared validity controller a checked subclass with its own error channel uses.*/
|
|
178
178
|
export interface CheckedValidityChannel{readonly customValidityMessage:string;setCustomValidity(message:string):void;}
|
|
179
179
|
/**
|
|
180
180
|
* Subclass-only seams of `CheckedFormAssociated`. Every hook has a default that is correct for a
|
|
@@ -182,25 +182,25 @@ export interface CheckedValidityChannel{readonly customValidityMessage:string;se
|
|
|
182
182
|
* tri-state) changes.
|
|
183
183
|
*/
|
|
184
184
|
export declare class CheckedFormAssociatedSubclassInterface{
|
|
185
|
-
/** The shared controller, for a subclass that owns a custom-validity channel of its own
|
|
185
|
+
/** The shared controller, for a subclass that owns a custom-validity channel of its own.*/
|
|
186
186
|
protected readonly validityController:CheckedValidityChannel;protected updateValidity():void;protected syncValidityStates():void;protected isBarredFromValidation():boolean;
|
|
187
|
-
/** Whether the user has acted on this control yet (gates the `user-*` states and `aria-invalid`)
|
|
187
|
+
/** Whether the user has acted on this control yet (gates the `user-*` states and `aria-invalid`).*/
|
|
188
188
|
protected get hasInteracted():boolean;
|
|
189
|
-
/** Records or clears the interaction flag, republishing the states and re-rendering
|
|
189
|
+
/** Records or clears the interaction flag, republishing the states and re-rendering.*/
|
|
190
190
|
protected setInteracted(next:boolean):void;
|
|
191
|
-
/** Disablement inherited from an owning group, on top of own and fieldset disablement
|
|
191
|
+
/** Disablement inherited from an owning group, on top of own and fieldset disablement.*/
|
|
192
192
|
protected isDisabledByOwner():boolean;
|
|
193
|
-
/** Whether the `required`/`optional` states report required
|
|
193
|
+
/** Whether the `required`/`optional` states report required.*/
|
|
194
194
|
protected reportsRequired():boolean;
|
|
195
|
-
/** The `valueMissing` message
|
|
195
|
+
/** The `valueMissing` message.*/
|
|
196
196
|
protected requiredMessage():string;
|
|
197
|
-
/** Custom states published next to the shared validity states; override and call `super
|
|
197
|
+
/** Custom states published next to the shared validity states; override and call `super`.*/
|
|
198
198
|
protected publishCustomStates():void;
|
|
199
|
-
/** Return `false` to ignore a `checked` write that changes nothing (a radio). Default `true
|
|
199
|
+
/** Return `false` to ignore a `checked` write that changes nothing (a radio). Default `true`.*/
|
|
200
200
|
protected acceptsCheckedWrite(previous:boolean,next:boolean):boolean;
|
|
201
|
-
/** Runs after every accepted `checked` write (veto-guard bookkeeping, owner notification)
|
|
201
|
+
/** Runs after every accepted `checked` write (veto-guard bookkeeping, owner notification).*/
|
|
202
202
|
protected checkedWritten(previous:boolean):void;
|
|
203
|
-
/** Runs after every `value` write
|
|
203
|
+
/** Runs after every `value` write.*/
|
|
204
204
|
protected valueWritten(previous:string):void;
|
|
205
|
-
/** Restores the live checked state from the reset default and clears the dirty flag
|
|
205
|
+
/** Restores the live checked state from the reset default and clears the dirty flag.*/
|
|
206
206
|
protected restoreCheckedFromDefault():void;}export declare function CheckedFormAssociated<T extends Constructor<LitElement>>(Base:T):T&Constructor<FormAssociatedInterface&FormAssociatedSubclassInterface&CheckedFormAssociatedInterface&CheckedFormAssociatedSubclassInterface>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import{LyraElement,type LyraEventMap}from'./lyra-element.js';
|
|
2
|
-
/** Base for hand-wired form-associated controls: the read-only native form surface, written once
|
|
2
|
+
/** Base for hand-wired form-associated controls: the read-only native form surface, written once.*/
|
|
3
3
|
export declare class LyraFormControlElement<Events=LyraEventMap>extends LyraElement<Events>{
|
|
4
|
-
/** Returns the browser-resolved form owner, including an external owner selected by `form
|
|
4
|
+
/** Returns the browser-resolved form owner, including an external owner selected by `form`.*/
|
|
5
5
|
getForm():HTMLFormElement|null;
|
|
6
|
-
/** Native labels associated with this form control
|
|
6
|
+
/** Native labels associated with this form control.*/
|
|
7
7
|
get labels():NodeList;
|
|
8
|
-
/** Current native validity state
|
|
8
|
+
/** Current native validity state.*/
|
|
9
9
|
get validity():ValidityState;
|
|
10
|
-
/** Current native validation message
|
|
10
|
+
/** Current native validation message.*/
|
|
11
11
|
get validationMessage():string;
|
|
12
|
-
/** Whether this control currently participates in constraint validation
|
|
12
|
+
/** Whether this control currently participates in constraint validation.*/
|
|
13
13
|
get willValidate():boolean;}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Shared heading-level vocabulary for component-owned visible titles
|
|
1
|
+
/** Shared heading-level vocabulary for component-owned visible titles.*/
|
|
2
2
|
export type LyraHeadingLevel='1'|'2'|'3'|'4'|'5'|'6'|'none';export type LyraResolvedHeadingLevel=Exclude<LyraHeadingLevel,'none'>;
|
|
3
3
|
/**
|
|
4
4
|
* Resolves the public heading vocabulary to ARIA's positive level. `none` is the explicit
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{SourceRequestController,sourceCount,sourceRevision}from"./source-request-controller.js";import{SourceWindowController}from"./source-window-controller.js";import{yieldViewerTask}from"./resource-loader.js";import{deepActiveElementIn}from"./active-element.js";function hierarchyField(value,key){if(value===null||typeof value!="object")throw new TypeError("Invalid hierarchy record");const descriptor=Object.getOwnPropertyDescriptor(value,key);if(descriptor&&!("value"in descriptor))throw new TypeError("Invalid hierarchy field");return descriptor?.value}function hierarchyKey(value){if(typeof value!="string"||value.length>65536||value.trim().length===0)throw new TypeError("Invalid hierarchy key");return value}function hierarchyText(value,fallback=""){if(typeof value=="string"&&value.length>65536)throw new RangeError("Hierarchy display value exceeds its row budget");return typeof value=="string"?value:fallback}const EMPTY_QUERY=Object.freeze({search:"",hiddenKinds:Object.freeze([])}),UNAVAILABLE=Symbol("unavailable");function snapshotQuery(value){const search=hierarchyField(value,"search"),hidden=hierarchyField(value,"hiddenKinds");if(typeof search!="string"||search.length>4096||!Array.isArray(hidden))throw new TypeError("Invalid hierarchy query");const length=sourceCount(hierarchyField(hidden,"length"));if(length>64)throw new RangeError("Hierarchy query exceeds its budget");const kinds=new Set;for(let index=0;index<length;index++){const kind=hierarchyField(hidden,String(index));if(typeof kind!="string"||kind.length===0||kind.length>64)throw new TypeError("Invalid hierarchy kind");kinds.add(kind)}return Object.freeze({search,hiddenKinds:Object.freeze([...kinds].sort())})}function sameQuery(left,right){return left.search===right.search&&left.hiddenKinds.length===right.hiddenKinds.length&&left.hiddenKinds.every((kind,index)=>kind===right.hiddenKinds[index])}function snapshotSearch(value){const raw=hierarchyField(value,"hits");if(!Array.isArray(raw))throw new TypeError("Invalid hierarchy search result");const length=sourceCount(hierarchyField(raw,"length"));if(length>1e4)throw new RangeError("Hierarchy search exceeds its hit budget");const totalValue=hierarchyField(value,"total"),total=totalValue===null?null:sourceCount(totalValue),exhaustive=hierarchyField(value,"exhaustive");if(typeof exhaustive!="boolean"||total!==null&&(total<length||exhaustive&&total!==length))throw new TypeError("Inconsistent hierarchy search result");const seen=new Set,hits=[];let units=0;for(let index=0;index<length;index++){const key=hierarchyKey(hierarchyField(hierarchyField(raw,String(index)),"key"));if(units+=key.length,units>2e6||seen.has(key))throw new RangeError("Hierarchy search key budget exceeded");seen.add(key),hits.push(Object.freeze({key}))}return Object.freeze({hits:Object.freeze(hits),total,exhaustive})}async function boundedCopy(value,maxBytes,owner,current){if(typeof value!="string"||value.length>maxBytes)throw new RangeError("Invalid hierarchy copy result");let bytes=0,nextYield=65536;for(let index=0;index<value.length;index++){const code=value.charCodeAt(index);if(code<128?bytes++:code<2048?bytes+=2:code>=55296&&code<=56319&&index+1<value.length&&value.charCodeAt(index+1)>=56320&&value.charCodeAt(index+1)<=57343?(bytes+=4,index++):bytes+=3,bytes>maxBytes)throw new RangeError("Hierarchy copy exceeds its byte budget");if(index>=nextYield){if(await yieldViewerTask(owner.defaultView,current),!current())throw new Error("Hierarchy copy changed");nextYield=index+65536}}if(!current())throw new Error("Hierarchy copy changed");return value}class HierarchySourceController{get epoch(){return this.requests.epoch}constructor(host,options){if(this.host=host,this.options=options,this.locale="",this.query=EMPTY_QUERY,this.searchLane={scheduled:!1},this.copyLane={scheduled:!1},this.transaction=0,this.dirty=!0,this.completion=Promise.resolve(!1),this.pumpScheduled=!1,this.loading=!1,this.error=!1,this.mountedCheckScheduled=!1,this.mountedActive=!1,this.firstMountedIndex=0,this.rowError=!1,this.rowsObserved=!1,this.activeIndex=0,options.payload){const{maxUnits,maxRowUnits,unitsOf}=options.payload;if(!Number.isSafeInteger(maxUnits)||!Number.isSafeInteger(maxRowUnits)||maxRowUnits<1||maxUnits<=maxRowUnits+65536||typeof unitsOf!="function")throw new RangeError("Invalid hierarchy payload bounds");this.payload=Object.freeze({maxUnits,maxRowUnits,unitsOf})}this.requests=new SourceRequestController(host,{channels:["project","navigate","search","copy"],onReset:()=>this.reset()}),this.window=new SourceWindowController(host,{pageSize:100,maxRows:400,maxPages:4,maxConcurrent:2,...this.payload?{maxWeight:this.payload.maxUnits-this.payload.maxRowUnits-65536,weightOf:row=>this.rowUnits(row)}:{},keyOf:row=>row.key,normalize:value=>this.normalize(value),onChange:()=>this.changed()}),this.adapter=this.makeAdapter(),host.addController(this)}rowUnits(row){if(!this.payload)return 0;const valueUnits=this.payload.unitsOf(row.value);if(!Number.isSafeInteger(valueUnits)||valueUnits<0)throw new RangeError("Invalid hierarchy row weight");const units=valueUnits+row.key.length+(row.parentKey?.length??0);if(!Number.isSafeInteger(units)||units>this.payload.maxRowUnits)throw new RangeError("Hierarchy row payload exceeded");return units}requestRange(start,endExclusive){this.window.requestRange(start,endExclusive)}normalize(value){const field=key2=>hierarchyField(value,key2),key=hierarchyKey(field("key")),parent=field("parentKey"),parentKey=parent===null?null:hierarchyKey(parent),level=sourceCount(field("level")),position=sourceCount(field("position")),setSize=sourceCount(field("setSize")),childCount=sourceCount(field("childCount")),expanded=field("expanded"),selected=field("selected"),disabled=field("disabled"),selectionState=field("selectionState");if(level<1||position<1||position>setSize||typeof expanded!="boolean"||typeof selected!="boolean"||disabled!==void 0&&typeof disabled!="boolean"||selectionState!==void 0&&(typeof selectionState!="string"||!["none","partial","all"].includes(selectionState)))throw new TypeError("Invalid hierarchy metadata");return Object.freeze({key,value:this.options.normalize(field("value"),key,childCount),parentKey,level,position,setSize,childCount,expanded,selected,...disabled===void 0?{}:{disabled},...selectionState===void 0?{}:{selectionState}})}makeAdapter(){return{count:this.projection?.rows.count??0,itemAt:index=>({state:"loading",index}),keyAt:index=>this.focused?.index===index?this.focused.row.key:this.window.source.keyAt(index),indexOfKey:key=>key===this.focused?.row.key?this.focused.index:this.window.source.indexOfKey(key)}}slot(index){this.scheduleMountedCheck();const slot=this.focused?.index===index?{state:"ready",index,value:this.focused.row}:this.window.source.itemAt(index);if(slot.state==="ready"&&this.activeKey===void 0&&index<32&&!slot.value.disabled){this.activeIndex=index,this.activeKey=slot.value.key;const projection=this.projection;queueMicrotask(()=>{this.projection===projection&&this.host.isConnected&&this.changed()})}return slot}scheduleMountedCheck(){this.mountedCheckScheduled||(this.mountedCheckScheduled=!0,queueMicrotask(()=>{if(this.mountedCheckScheduled=!1,!this.host.isConnected||!this.list)return;let active=!1,error=!1,settled=!1;const rows=this.list.projectedRows;for(const element of rows){const row=element.querySelector("[data-source-key]");row&&(settled=!0,row.dataset.sourceKey===this.activeKey&&row.getAttribute("aria-disabled")!=="true"&&(active=!0)),element.querySelector('[part~="source-error"]')&&(error=!0,settled=!0)}const first=Number(rows[0]?.dataset.rowIndex??0),observed=this.rowsObserved||settled;active===this.mountedActive&&first===this.firstMountedIndex&&error===this.rowError&&observed===this.rowsObserved||(this.mountedActive=active,this.firstMountedIndex=first,this.rowError=error,this.rowsObserved=observed,this.changed())}))}update(source,locale,force=!1,query=EMPTY_QUERY){const transaction=++this.transaction;this.boundInput=source;let revision,acceptedQuery;try{if(acceptedQuery=snapshotQuery(query),transaction!==this.transaction)return;if(source!==void 0){if(source===null||typeof source!="object"&&typeof source!="function"||typeof source.project!="function")throw new TypeError("Invalid hierarchy source");revision=sourceRevision(source.revision)}}catch{if(transaction!==this.transaction||(this.source=void 0,this.revision=void 0,this.locale=locale,this.requests.setSource(void 0,void 0),transaction!==this.transaction))return;this.reset(),this.error=source!==void 0,this.dirty=!1,this.changed();return}if(transaction!==this.transaction||!force&&!this.dirty&&source===this.source&&revision===this.revision&&locale===this.locale&&sameQuery(acceptedQuery,this.query))return;this.query=acceptedQuery,this.source=source,this.revision=revision,this.locale=locale,this.dirty=!1;const replaced=this.requests.setSource(source,revision);transaction===this.transaction&&(replaced||this.requests.refresh(),transaction===this.transaction&&(source&&this.host.isConnected&&this.project({type:"reset"}),this.changed()))}refresh(){this.update(this.boundInput,this.locale,!0,this.query)}reset(){this.clearCapability(this.searchLane),this.clearCapability(this.copyLane);const active=deepActiveElementIn(this.host.ownerDocument);!this.source||!this.host.isConnected?this.recovery=void 0:active&&this.host.shadowRoot?.contains(active)&&this.activeKey?this.recovery={key:this.activeKey,origin:active}:active&&active!==this.host.ownerDocument.body&&(this.recovery=void 0),this.current?.settle(!1),this.queued?.settle(!1),this.current=void 0,this.queued=void 0,this.projection=void 0,this.focused=void 0,this.activeKey=void 0,this.activeIndex=0,this.loading=!1,this.error=!1,this.mountedActive=!1,this.firstMountedIndex=0,this.rowError=!1,this.rowsObserved=!1,this.window?.bind(void 0),this.adapter=this.makeAdapter()}changed(){this.options.onChange(),this.list?.requestUpdate("renderItem")}async project(action,user=!1,row){if(!this.source||!this.host.isConnected||user&&(this.loading||this.error))return!1;if("key"in action)try{hierarchyKey(action.key)}catch{return!1}const source=this.source,lease=this.requests.begin("project",this.locale);if(!lease?.isCurrent()||source!==this.source||(this.requests.invalidate("navigate"),!lease.isCurrent()))return!1;this.current?.settle(!1),this.queued?.settle(!1);let settle;const done=new Promise(resolve=>{settle=resolve}),job={source,lease,action,query:this.query,state:this.projection?.state??null,user,row,settle};return lease.context.signal.addEventListener("abort",()=>{job.state=null,job.row=void 0,settle(!1)},{once:!0}),this.completion=done,this.current=job,this.queued=job,this.loading=!0,this.error=!1,this.changed(),this.schedulePump(),done}schedulePump(){this.pumpScheduled||(this.pumpScheduled=!0,queueMicrotask(()=>{this.pumpScheduled=!1,this.pump()}))}pump(){if(this.running)return;const job=this.queued;if(!job)return;this.queued=void 0;const current=()=>this.current===job&&job.lease.isCurrent()&&this.source===job.source;if(!current()){job.settle(!1);return}this.running=job;const recovery=this.recovery,focusedKey=this.focused?.row.key??recovery?.key,origin=recovery?.origin??deepActiveElementIn(this.host.ownerDocument);Promise.resolve().then(()=>{if(!current())return;const state=job.state;job.state=null;const project=job.source.project;if(current())return project.call(job.source,{...job.lease.context,query:job.query,state,action:job.action})}).then(async result=>{if(!current())return;if(!result)throw new TypeError("Invalid hierarchy projection");const state=result.state;if(typeof state!="string"||state.length===0||state.length>65536)throw new TypeError("Invalid hierarchy state");const total=sourceCount(result.total),view=result.rows,count=sourceCount(view?.count),focusIndex=result.focusIndex,indexed=typeof view.itemAt=="function";if(count>total||typeof view.indexOfKey!="function"||(indexed?typeof view.keyAt!="function":typeof view.read!="function"))throw new TypeError("Invalid hierarchy view");if(focusIndex!==void 0&&sourceCount(focusIndex)>=count)throw new RangeError("Invalid hierarchy focus");if(current()&&(this.window.bind({owner:job.source,revision:job.lease.context.revision,epoch:this.requests.epoch,locale:job.lease.context.locale,view}),!!current()&&(this.projection=Object.freeze({state,total,rows:view,...focusIndex===void 0?{}:{focusIndex}}),this.focused=void 0,this.recovery=void 0,this.activeIndex=Math.min(this.activeIndex,Math.max(0,count-1)),this.activeKey=void 0,this.adapter=this.makeAdapter(),this.loading=!1,this.error=!1,this.changed(),!!current()&&(job.user&&this.options.accepted(job.action,job.row,state,current),job.row=void 0,!!current()))))if(job.action.type==="reveal")job.settle(focusIndex!==void 0&&await this.navigate(focusIndex,0,origin));else if(focusedKey&&origin&&(recovery||this.host.shadowRoot?.contains(origin))){const index=await this.window.resolveKey(focusedKey);if(!current())return;await this.navigate(index??focusIndex??this.activeIndex,0,origin),current()&&job.settle(!0)}else job.settle(!0)}).catch(()=>{current()&&(this.loading=!1,this.error=!0,this.changed(),job.settle(!1))}).finally(()=>{job.state=null,job.row=void 0,this.running===job&&(this.running=void 0),this.schedulePump()})}clearCapability(lane){lane.current?.settle({status:"stale"}),lane.queued?.settle({status:"stale"}),lane.current=void 0,lane.queued=void 0}scheduleCapability(lane){lane.scheduled||(lane.scheduled=!0,queueMicrotask(()=>{if(lane.scheduled=!1,lane.running||!lane.queued)return;const job=lane.queued;if(lane.queued=void 0,lane.current!==job||!job.lease.isCurrent()){job.settle({status:"stale"});return}lane.running=job,job.run().finally(()=>{lane.running===job&&(lane.running=void 0),this.scheduleCapability(lane)})}))}capability(channel,lane,invoke,validate){const source=this.source;if(!source)return Promise.resolve({status:"unavailable"});if(!this.host.isConnected)return Promise.resolve({status:"stale"});const lease=this.requests.begin(channel,this.locale);if(!lease?.isCurrent()||source!==this.source)return Promise.resolve({status:"stale"});this.clearCapability(lane);let settle;const done=new Promise(resolve=>{settle=resolve}),current=()=>lane.current===job&&source===this.source&&lease.isCurrent(),job={lease,settle,run:async()=>{try{if(!current()){settle({status:"stale"});return}const raw=await invoke(source,lease);if(!current()){settle({status:"stale"});return}if(raw===UNAVAILABLE){settle({status:"unavailable"});return}const value=await validate(raw,current);settle(current()?{status:"ready",value,isCurrent:current}:{status:"stale"})}catch{settle({status:current()?"error":"stale"})}}};return lane.current=job,lane.queued=job,lease.context.signal.addEventListener("abort",()=>settle({status:"stale"}),{once:!0}),this.scheduleCapability(lane),done}cancelSearch(){const transaction=++this.transaction;if(this.clearCapability(this.searchLane),this.requests.invalidate("search"),transaction===this.transaction&&(this.clearCapability(this.copyLane),this.requests.invalidate("copy"),transaction===this.transaction&&(this.requests.invalidate("navigate"),transaction===this.transaction&&this.current?.action.type==="reveal"))){if(this.current.settle(!1),this.queued?.settle(!1),this.current=void 0,this.queued=void 0,this.requests.invalidate("project"),transaction!==this.transaction)return;this.loading=!1,this.changed()}}search(){const transaction=this.transaction+1;if(this.cancelSearch(),transaction!==this.transaction)return Promise.resolve({status:"stale"});const query=this.query.search;return this.capability("search",this.searchLane,(source,lease)=>{const search=source.search;return!lease.isCurrent()||source!==this.source?UNAVAILABLE:typeof search=="function"?search.call(source,{...lease.context,query,limit:1e4}):UNAVAILABLE},snapshotSearch)}copy(key,scope,maxBytes){const transaction=++this.transaction;if(this.clearCapability(this.copyLane),this.requests.invalidate("copy"),transaction!==this.transaction)return Promise.resolve({status:"stale"});try{if(!["node","subtree","document"].includes(scope)||scope==="document"!=(key===null)||!Number.isSafeInteger(maxBytes)||maxBytes<1)throw new TypeError("Invalid hierarchy copy request");key!==null&&hierarchyKey(key)}catch{return Promise.resolve({status:"error"})}const owner=this.host.ownerDocument;return this.capability("copy",this.copyLane,(source,lease)=>{const copy=source.copy;return!lease.isCurrent()||source!==this.source?UNAVAILABLE:typeof copy=="function"?copy.call(source,{...lease.context,key,scope,maxBytes}):UNAVAILABLE},(value,current)=>boundedCopy(value,maxBytes,owner,current))}whenReady(){return this.completion}cancelPending(){if(!this.projection)return;const transaction=++this.transaction;this.current?.settle(!1),this.queued?.settle(!1),this.current=void 0,this.queued=void 0,this.requests.invalidate("project"),transaction===this.transaction&&(this.requests.invalidate("navigate"),transaction===this.transaction&&(this.loading=!1,this.changed()))}reveal(key){try{hierarchyKey(key)}catch{return Promise.resolve(!1)}return this.project({type:"reveal",key})}retry(){this.project({type:"reset"})}focusRow(index,row){if(!row.disabled){if(this.payload){const projection=this.projection,transaction=this.transaction;try{this.rowUnits(row)}catch{return}if(projection!==this.projection||transaction!==this.transaction||!this.host.isConnected)return}this.activeIndex=index,this.activeKey=row.key,this.focused={index,row},this.changed()}}focusUnchanged(origin){const active=deepActiveElementIn(this.host.ownerDocument);return active===origin||active===this.host.ownerDocument.body||active===this.host||active===null}async navigate(index,step=0,origin=deepActiveElementIn(this.host.ownerDocument)){const projection=this.projection,lease=this.requests.begin("navigate",this.locale);if(!projection||!lease)return!1;const current=()=>lease.isCurrent()&&this.projection===projection;for(let attempts=0;attempts<32&&index>=0&&index<projection.rows.count;attempts++,index+=step){if(await this.host.updateComplete,!current()||!this.focusUnchanged(origin)||!this.list||(this.list.scrollToIndex(index,{align:"auto",behavior:"auto"}),!await this.nextFrame(lease)||!current())||!await this.window.ensure(index)||!current())return!1;const slot=this.window.source.itemAt(index);if(!current()||slot.state!=="ready")return!1;if(slot.value.disabled){if(!step)return!1;continue}if(this.activeIndex=index,this.activeKey=slot.value.key,this.changed(),await this.host.updateComplete,!current()||!this.list||(await this.list.updateComplete,!current()||!this.focusUnchanged(origin)))return!1;const row=this.list.projectedRows.find(element=>Number(element.dataset.rowIndex)===index)?.querySelector("[data-source-key]");return!row||(row.focus({preventScroll:!0}),!current())?!1:(this.focusRow(index,slot.value),!0)}return!1}nextFrame(lease){const view=this.host.ownerDocument.defaultView;return!view||!lease.isCurrent()?Promise.resolve(!1):new Promise(resolve=>{const signal=lease.context.signal,cancel=()=>{view.cancelAnimationFrame(frame),resolve(!1)},frame=view.requestAnimationFrame(()=>{signal.removeEventListener("abort",cancel),resolve(lease.isCurrent())});signal.addEventListener("abort",cancel,{once:!0}),lease.isCurrent()||cancel()})}keydown(event,row,index,rtl,select){if(event.altKey||event.ctrlKey||event.metaKey||this.loading||this.error)return;let target,step=0;if(event.key==="Home")target=0,step=1;else if(event.key==="End")target=(this.projection?.rows.count??0)-1,step=-1;else if(event.key==="ArrowDown")target=index+1,step=1;else if(event.key==="ArrowUp")target=index-1,step=-1;else if(row&&(event.key==="Enter"||event.key===" ")){event.preventDefault(),select(row);return}else if(row&&event.key===(rtl?"ArrowLeft":"ArrowRight")){event.preventDefault(),row.childCount&&!row.expanded?this.project({type:"toggle",key:row.key,expanded:!0},!0,row):row.childCount&&row.expanded&&this.navigate(index+1,1);return}else if(row&&event.key===(rtl?"ArrowRight":"ArrowLeft")){event.preventDefault(),row.childCount&&row.expanded?this.project({type:"toggle",key:row.key,expanded:!1},!0,row):row.parentKey&&this.reveal(row.parentKey);return}target!==void 0&&(event.preventDefault(),this.navigate(target,step))}adopted(){this.dirty=!0,this.requests.adopted(),this.window.adopted(),this.changed()}hostConnected(){this.dirty=!0,this.changed()}hostDisconnected(){this.dirty=!0,this.current?.settle(!1),this.queued?.settle(!1),this.list=void 0}}export{HierarchySourceController,hierarchyField,hierarchyKey,hierarchyText};
|
|
1
|
+
import{SourceRequestController,sourceCount,sourceRevision}from"./source-request-controller.js";import{SourceWindowController}from"./source-window-controller.js";import{yieldViewerTask}from"./resource-loader.js";import{deepActiveElementIn}from"./active-element.js";function hierarchyField(value,key){if(value===null||typeof value!="object")throw new TypeError("Invalid hierarchy record");const descriptor=Object.getOwnPropertyDescriptor(value,key);if(descriptor&&!("value"in descriptor))throw new TypeError("Invalid hierarchy field");return descriptor?.value}function hierarchyKey(value){if(typeof value!="string"||value.length>65536||value.trim().length===0)throw new TypeError("Invalid hierarchy key");return value}function hierarchyText(value,fallback=""){if(typeof value=="string"&&value.length>65536)throw new RangeError("Hierarchy display value exceeds its row budget");return typeof value=="string"?value:fallback}const EMPTY_QUERY=Object.freeze({search:"",hiddenKinds:Object.freeze([])}),UNAVAILABLE=Symbol("unavailable");function snapshotQuery(value){const search=hierarchyField(value,"search"),hidden=hierarchyField(value,"hiddenKinds");if(typeof search!="string"||search.length>4096||!Array.isArray(hidden))throw new TypeError("Invalid hierarchy query");const length=sourceCount(hierarchyField(hidden,"length"));if(length>64)throw new RangeError("Hierarchy query exceeds its budget");const kinds=new Set;for(let index=0;index<length;index++){const kind=hierarchyField(hidden,String(index));if(typeof kind!="string"||kind.length===0||kind.length>64)throw new TypeError("Invalid hierarchy kind");kinds.add(kind)}return Object.freeze({search,hiddenKinds:Object.freeze([...kinds].sort())})}function sameQuery(left,right){return left.search===right.search&&left.hiddenKinds.length===right.hiddenKinds.length&&left.hiddenKinds.every((kind,index)=>kind===right.hiddenKinds[index])}function snapshotSearch(value){const raw=hierarchyField(value,"hits");if(!Array.isArray(raw))throw new TypeError("Invalid hierarchy search result");const length=sourceCount(hierarchyField(raw,"length"));if(length>1e4)throw new RangeError("Hierarchy search exceeds its hit budget");const totalValue=hierarchyField(value,"total"),total=totalValue===null?null:sourceCount(totalValue),exhaustive=hierarchyField(value,"exhaustive");if(typeof exhaustive!="boolean"||total!==null&&(total<length||exhaustive&&total!==length))throw new TypeError("Inconsistent hierarchy search result");const seen=new Set,hits=[];let units=0;for(let index=0;index<length;index++){const key=hierarchyKey(hierarchyField(hierarchyField(raw,String(index)),"key"));if(units+=key.length,units>2e6||seen.has(key))throw new RangeError("Hierarchy search key budget exceeded");seen.add(key),hits.push(Object.freeze({key}))}return Object.freeze({hits:Object.freeze(hits),total,exhaustive})}async function boundedCopy(value,maxBytes,owner,current){if(typeof value!="string"||value.length>maxBytes)throw new RangeError("Invalid hierarchy copy result");let bytes=0,nextYield=65536;for(let index=0;index<value.length;index++){const code=value.charCodeAt(index);if(code<128?bytes++:code<2048?bytes+=2:code>=55296&&code<=56319&&index+1<value.length&&value.charCodeAt(index+1)>=56320&&value.charCodeAt(index+1)<=57343?(bytes+=4,index++):bytes+=3,bytes>maxBytes)throw new RangeError("Hierarchy copy exceeds its byte budget");if(index>=nextYield){if(await yieldViewerTask(owner.defaultView,current),!current())throw new Error("Hierarchy copy changed");nextYield=index+65536}}if(!current())throw new Error("Hierarchy copy changed");return value}class HierarchySourceController{get epoch(){return this.requests.epoch}constructor(host,options){if(this.host=host,this.options=options,this.locale="",this.query=EMPTY_QUERY,this.searchLane={scheduled:!1},this.copyLane={scheduled:!1},this.transaction=0,this.dirty=!0,this.completion=Promise.resolve(!1),this.pumpScheduled=!1,this.loading=!1,this.error=!1,this.mountedCheckScheduled=!1,this.mountedActive=!1,this.firstMountedIndex=0,this.rowError=!1,this.rowsObserved=!1,this.activeIndex=0,options.payload){const{maxUnits,maxRowUnits,unitsOf}=options.payload;if(!Number.isSafeInteger(maxUnits)||!Number.isSafeInteger(maxRowUnits)||maxRowUnits<1||maxUnits<=maxRowUnits+65536||typeof unitsOf!="function")throw new RangeError("Invalid hierarchy payload bounds");this.payload=Object.freeze({maxUnits,maxRowUnits,unitsOf})}this.requests=new SourceRequestController(host,{channels:["project","navigate","search","copy"],onReset:()=>this.reset()}),this.window=new SourceWindowController(host,{pageSize:100,maxRows:400,maxPages:4,maxConcurrent:2,...this.payload?{maxWeight:this.payload.maxUnits-this.payload.maxRowUnits-65536,weightOf:row=>this.rowUnits(row)}:{},keyOf:row=>row.key,normalize:value=>this.normalize(value),onChange:()=>this.changed()}),this.adapter=this.makeAdapter(),host.addController(this)}rowUnits(row){if(!this.payload)return 0;const valueUnits=this.payload.unitsOf(row.value);if(!Number.isSafeInteger(valueUnits)||valueUnits<0)throw new RangeError("Invalid hierarchy row weight");const units=valueUnits+row.key.length+(row.parentKey?.length??0);if(!Number.isSafeInteger(units)||units>this.payload.maxRowUnits)throw new RangeError("Hierarchy row payload exceeded");return units}requestRange(start,endExclusive){this.window.requestRange(start,endExclusive)}normalize(value){const field=key2=>hierarchyField(value,key2),key=hierarchyKey(field("key")),parent=field("parentKey"),parentKey=parent===null?null:hierarchyKey(parent);if(parentKey===key)throw new TypeError("Hierarchy row cannot be its own parent");const level=sourceCount(field("level")),position=sourceCount(field("position")),setSize=sourceCount(field("setSize")),childCount=sourceCount(field("childCount")),expanded=field("expanded"),selected=field("selected"),disabled=field("disabled"),selectionState=field("selectionState");if(level<1||position<1||position>setSize||typeof expanded!="boolean"||typeof selected!="boolean"||disabled!==void 0&&typeof disabled!="boolean"||selectionState!==void 0&&(typeof selectionState!="string"||!["none","partial","all"].includes(selectionState)))throw new TypeError("Invalid hierarchy metadata");return Object.freeze({key,value:this.options.normalize(field("value"),key,childCount),parentKey,level,position,setSize,childCount,expanded,selected,...disabled===void 0?{}:{disabled},...selectionState===void 0?{}:{selectionState}})}makeAdapter(){return{count:this.projection?.rows.count??0,itemAt:index=>({state:"loading",index}),keyAt:index=>this.focused?.index===index?this.focused.row.key:this.window.source.keyAt(index),indexOfKey:key=>key===this.focused?.row.key?this.focused.index:this.window.source.indexOfKey(key)}}slot(index){this.scheduleMountedCheck();const slot=this.focused?.index===index?{state:"ready",index,value:this.focused.row}:this.window.source.itemAt(index);if(slot.state==="ready"&&this.activeKey===void 0&&index<32&&!slot.value.disabled){this.activeIndex=index,this.activeKey=slot.value.key;const projection=this.projection;queueMicrotask(()=>{this.projection===projection&&this.host.isConnected&&this.changed()})}return slot}scheduleMountedCheck(){this.mountedCheckScheduled||(this.mountedCheckScheduled=!0,queueMicrotask(()=>{if(this.mountedCheckScheduled=!1,!this.host.isConnected||!this.list)return;let active=!1,error=!1,settled=!1;const rows=this.list.projectedRows;for(const element of rows){const row=element.querySelector("[data-source-key]");row&&(settled=!0,row.dataset.sourceKey===this.activeKey&&row.getAttribute("aria-disabled")!=="true"&&(active=!0)),element.querySelector('[part~="source-error"]')&&(error=!0,settled=!0)}const first=Number(rows[0]?.dataset.rowIndex??0),observed=this.rowsObserved||settled;active===this.mountedActive&&first===this.firstMountedIndex&&error===this.rowError&&observed===this.rowsObserved||(this.mountedActive=active,this.firstMountedIndex=first,this.rowError=error,this.rowsObserved=observed,this.changed())}))}update(source,locale,force=!1,query=EMPTY_QUERY){const transaction=++this.transaction;this.boundInput=source;let revision,acceptedQuery;try{if(acceptedQuery=snapshotQuery(query),transaction!==this.transaction)return;if(source!==void 0){if(source===null||typeof source!="object"&&typeof source!="function"||typeof source.project!="function")throw new TypeError("Invalid hierarchy source");revision=sourceRevision(source.revision)}}catch{if(transaction!==this.transaction||(this.source=void 0,this.revision=void 0,this.locale=locale,this.requests.setSource(void 0,void 0),transaction!==this.transaction))return;this.reset(),this.error=source!==void 0,this.dirty=!1,this.changed();return}if(transaction!==this.transaction||!force&&!this.dirty&&source===this.source&&revision===this.revision&&locale===this.locale&&sameQuery(acceptedQuery,this.query))return;this.query=acceptedQuery,this.source=source,this.revision=revision,this.locale=locale,this.dirty=!1;const replaced=this.requests.setSource(source,revision);transaction===this.transaction&&(replaced||this.requests.refresh(),transaction===this.transaction&&(source&&this.host.isConnected&&this.project({type:"reset"}),this.changed()))}refresh(){this.update(this.boundInput,this.locale,!0,this.query)}reset(){this.clearCapability(this.searchLane),this.clearCapability(this.copyLane);const active=deepActiveElementIn(this.host.ownerDocument);!this.source||!this.host.isConnected?this.recovery=void 0:active&&this.host.shadowRoot?.contains(active)&&this.activeKey?this.recovery={key:this.activeKey,origin:active}:active&&active!==this.host.ownerDocument.body&&(this.recovery=void 0),this.current?.settle(!1),this.queued?.settle(!1),this.current=void 0,this.queued=void 0,this.projection=void 0,this.focused=void 0,this.activeKey=void 0,this.activeIndex=0,this.loading=!1,this.error=!1,this.mountedActive=!1,this.firstMountedIndex=0,this.rowError=!1,this.rowsObserved=!1,this.window?.bind(void 0),this.adapter=this.makeAdapter()}changed(){this.options.onChange(),this.list?.requestUpdate("renderItem")}async project(action,user=!1,row){if(!this.source||!this.host.isConnected||user&&(this.loading||this.error))return!1;if("key"in action)try{hierarchyKey(action.key)}catch{return!1}const source=this.source,lease=this.requests.begin("project",this.locale);if(!lease?.isCurrent()||source!==this.source||(this.requests.invalidate("navigate"),!lease.isCurrent()))return!1;this.current?.settle(!1),this.queued?.settle(!1);let settle;const done=new Promise(resolve=>{settle=resolve}),job={source,lease,action,query:this.query,state:this.projection?.state??null,user,row,settle};return lease.context.signal.addEventListener("abort",()=>{job.state=null,job.row=void 0,settle(!1)},{once:!0}),this.completion=done,this.current=job,this.queued=job,this.loading=!0,this.error=!1,this.changed(),this.schedulePump(),done}schedulePump(){this.pumpScheduled||(this.pumpScheduled=!0,queueMicrotask(()=>{this.pumpScheduled=!1,this.pump()}))}pump(){if(this.running)return;const job=this.queued;if(!job)return;this.queued=void 0;const current=()=>this.current===job&&job.lease.isCurrent()&&this.source===job.source;if(!current()){job.settle(!1);return}this.running=job;const recovery=this.recovery,focusedKey=this.focused?.row.key??recovery?.key,origin=recovery?.origin??deepActiveElementIn(this.host.ownerDocument);Promise.resolve().then(()=>{if(!current())return;const state=job.state;job.state=null;const project=job.source.project;if(current())return project.call(job.source,{...job.lease.context,query:job.query,state,action:job.action})}).then(async result=>{if(!current())return;if(!result)throw new TypeError("Invalid hierarchy projection");const state=result.state;if(typeof state!="string"||state.length===0||state.length>65536)throw new TypeError("Invalid hierarchy state");const total=sourceCount(result.total),view=result.rows,count=sourceCount(view?.count),focusIndex=result.focusIndex,indexed=typeof view.itemAt=="function";if(count>total||typeof view.indexOfKey!="function"||(indexed?typeof view.keyAt!="function":typeof view.read!="function"))throw new TypeError("Invalid hierarchy view");if(focusIndex!==void 0&&sourceCount(focusIndex)>=count)throw new RangeError("Invalid hierarchy focus");if(current()&&(this.window.bind({owner:job.source,revision:job.lease.context.revision,epoch:this.requests.epoch,locale:job.lease.context.locale,view}),!!current()&&(this.projection=Object.freeze({state,total,rows:view,...focusIndex===void 0?{}:{focusIndex}}),this.focused=void 0,this.recovery=void 0,this.activeIndex=Math.min(this.activeIndex,Math.max(0,count-1)),this.activeKey=void 0,this.adapter=this.makeAdapter(),this.loading=!1,this.error=!1,this.changed(),!!current()&&(job.user&&this.options.accepted(job.action,job.row,state,current),job.row=void 0,!!current()))))if(job.action.type==="reveal")job.settle(focusIndex!==void 0&&await this.navigate(focusIndex,0,origin));else if(focusedKey&&origin&&(recovery||this.host.shadowRoot?.contains(origin))){const index=await this.window.resolveKey(focusedKey);if(!current())return;await this.navigate(index??focusIndex??this.activeIndex,0,origin),current()&&job.settle(!0)}else job.settle(!0)}).catch(()=>{current()&&(this.loading=!1,this.error=!0,this.changed(),job.settle(!1))}).finally(()=>{job.state=null,job.row=void 0,this.running===job&&(this.running=void 0),this.schedulePump()})}clearCapability(lane){lane.current?.settle({status:"stale"}),lane.queued?.settle({status:"stale"}),lane.current=void 0,lane.queued=void 0}scheduleCapability(lane){lane.scheduled||(lane.scheduled=!0,queueMicrotask(()=>{if(lane.scheduled=!1,lane.running||!lane.queued)return;const job=lane.queued;if(lane.queued=void 0,lane.current!==job||!job.lease.isCurrent()){job.settle({status:"stale"});return}lane.running=job,job.run().finally(()=>{lane.running===job&&(lane.running=void 0),this.scheduleCapability(lane)})}))}capability(channel,lane,invoke,validate){const source=this.source;if(!source)return Promise.resolve({status:"unavailable"});if(!this.host.isConnected)return Promise.resolve({status:"stale"});const lease=this.requests.begin(channel,this.locale);if(!lease?.isCurrent()||source!==this.source)return Promise.resolve({status:"stale"});this.clearCapability(lane);let settle;const done=new Promise(resolve=>{settle=resolve}),current=()=>lane.current===job&&source===this.source&&lease.isCurrent(),job={lease,settle,run:async()=>{try{if(!current()){settle({status:"stale"});return}const raw=await invoke(source,lease);if(!current()){settle({status:"stale"});return}if(raw===UNAVAILABLE){settle({status:"unavailable"});return}const value=await validate(raw,current);settle(current()?{status:"ready",value,isCurrent:current}:{status:"stale"})}catch{settle({status:current()?"error":"stale"})}}};return lane.current=job,lane.queued=job,lease.context.signal.addEventListener("abort",()=>settle({status:"stale"}),{once:!0}),this.scheduleCapability(lane),done}cancelSearch(){const transaction=++this.transaction;if(this.clearCapability(this.searchLane),this.requests.invalidate("search"),transaction===this.transaction&&(this.clearCapability(this.copyLane),this.requests.invalidate("copy"),transaction===this.transaction&&(this.requests.invalidate("navigate"),transaction===this.transaction&&this.current?.action.type==="reveal"))){if(this.current.settle(!1),this.queued?.settle(!1),this.current=void 0,this.queued=void 0,this.requests.invalidate("project"),transaction!==this.transaction)return;this.loading=!1,this.changed()}}search(){const transaction=this.transaction+1;if(this.cancelSearch(),transaction!==this.transaction)return Promise.resolve({status:"stale"});const query=this.query.search;return this.capability("search",this.searchLane,(source,lease)=>{const search=source.search;return!lease.isCurrent()||source!==this.source?UNAVAILABLE:typeof search=="function"?search.call(source,{...lease.context,query,limit:1e4}):UNAVAILABLE},snapshotSearch)}copy(key,scope,maxBytes){const transaction=++this.transaction;if(this.clearCapability(this.copyLane),this.requests.invalidate("copy"),transaction!==this.transaction)return Promise.resolve({status:"stale"});try{if(!["node","subtree","document"].includes(scope)||scope==="document"!=(key===null)||!Number.isSafeInteger(maxBytes)||maxBytes<1)throw new TypeError("Invalid hierarchy copy request");key!==null&&hierarchyKey(key)}catch{return Promise.resolve({status:"error"})}const owner=this.host.ownerDocument;return this.capability("copy",this.copyLane,(source,lease)=>{const copy=source.copy;return!lease.isCurrent()||source!==this.source?UNAVAILABLE:typeof copy=="function"?copy.call(source,{...lease.context,key,scope,maxBytes}):UNAVAILABLE},(value,current)=>boundedCopy(value,maxBytes,owner,current))}whenReady(){return this.completion}cancelPending(){if(!this.projection)return;const transaction=++this.transaction;this.current?.settle(!1),this.queued?.settle(!1),this.current=void 0,this.queued=void 0,this.requests.invalidate("project"),transaction===this.transaction&&(this.requests.invalidate("navigate"),transaction===this.transaction&&(this.loading=!1,this.changed()))}reveal(key){try{hierarchyKey(key)}catch{return Promise.resolve(!1)}return this.project({type:"reveal",key})}retry(){this.project({type:"reset"})}focusRow(index,row){if(!row.disabled){if(this.payload){const projection=this.projection,transaction=this.transaction;try{this.rowUnits(row)}catch{return}if(projection!==this.projection||transaction!==this.transaction||!this.host.isConnected)return}this.activeIndex=index,this.activeKey=row.key,this.focused={index,row},this.changed()}}focusUnchanged(origin){const active=deepActiveElementIn(this.host.ownerDocument);return active===origin||active===this.host.ownerDocument.body||active===this.host||active===null}async navigate(index,step=0,origin=deepActiveElementIn(this.host.ownerDocument)){const projection=this.projection,lease=this.requests.begin("navigate",this.locale);if(!projection||!lease)return!1;const current=()=>lease.isCurrent()&&this.projection===projection;for(let attempts=0;attempts<32&&index>=0&&index<projection.rows.count;attempts++,index+=step){if(await this.host.updateComplete,!current()||!this.focusUnchanged(origin)||!this.list||(this.list.scrollToIndex(index,{align:"auto",behavior:"auto"}),!await this.nextFrame(lease)||!current())||!await this.window.ensure(index)||!current())return!1;const slot=this.window.source.itemAt(index);if(!current()||slot.state!=="ready")return!1;if(slot.value.disabled){if(!step)return!1;continue}if(this.activeIndex=index,this.activeKey=slot.value.key,this.changed(),await this.host.updateComplete,!current()||!this.list||(await this.list.updateComplete,!current()||!this.focusUnchanged(origin)))return!1;const row=this.list.projectedRows.find(element=>Number(element.dataset.rowIndex)===index)?.querySelector("[data-source-key]");return!row||(row.focus({preventScroll:!0}),!current())?!1:(this.focusRow(index,slot.value),!0)}return!1}nextFrame(lease){const view=this.host.ownerDocument.defaultView;return!view||!lease.isCurrent()?Promise.resolve(!1):new Promise(resolve=>{const signal=lease.context.signal,cancel=()=>{view.cancelAnimationFrame(frame),resolve(!1)},frame=view.requestAnimationFrame(()=>{signal.removeEventListener("abort",cancel),resolve(lease.isCurrent())});signal.addEventListener("abort",cancel,{once:!0}),lease.isCurrent()||cancel()})}keydown(event,row,index,rtl,select){if(event.altKey||event.ctrlKey||event.metaKey||this.loading||this.error)return;let target,step=0;if(event.key==="Home")target=0,step=1;else if(event.key==="End")target=(this.projection?.rows.count??0)-1,step=-1;else if(event.key==="ArrowDown")target=index+1,step=1;else if(event.key==="ArrowUp")target=index-1,step=-1;else if(row&&(event.key==="Enter"||event.key===" ")){event.preventDefault(),select(row);return}else if(row&&event.key===(rtl?"ArrowLeft":"ArrowRight")){event.preventDefault(),row.childCount&&!row.expanded?this.project({type:"toggle",key:row.key,expanded:!0},!0,row):row.childCount&&row.expanded&&this.navigate(index+1,1);return}else if(row&&event.key===(rtl?"ArrowRight":"ArrowLeft")){event.preventDefault(),row.childCount&&row.expanded?this.project({type:"toggle",key:row.key,expanded:!1},!0,row):row.parentKey&&this.reveal(row.parentKey);return}target!==void 0&&(event.preventDefault(),this.navigate(target,step))}adopted(){this.dirty=!0,this.requests.adopted(),this.window.adopted(),this.changed()}hostConnected(){this.dirty=!0,this.changed()}hostDisconnected(){this.dirty=!0,this.current?.settle(!1),this.queued?.settle(!1),this.list=void 0}}export{HierarchySourceController,hierarchyField,hierarchyKey,hierarchyText};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type{LyraHighlight}from'../components/viewers/document-viewer/anchors.js';
|
|
2
|
-
/** Maximum host-highlight records admitted into one immutable target snapshot
|
|
2
|
+
/** Maximum host-highlight records admitted into one immutable target snapshot.*/
|
|
3
3
|
export declare const HIGHLIGHT_SNAPSHOT_LIMIT=10000;
|
|
4
|
-
/** Returns the discriminator copied while the immutable highlight snapshot was admitted
|
|
4
|
+
/** Returns the discriminator copied while the immutable highlight snapshot was admitted.*/
|
|
5
5
|
export declare function snapshotLyraHighlightAnchorKind(highlight:LyraHighlight):string|undefined;
|
|
6
|
-
/** Builds the shared immutable highlight snapshot used by highlight-aware viewers
|
|
6
|
+
/** Builds the shared immutable highlight snapshot used by highlight-aware viewers.*/
|
|
7
7
|
export declare function snapshotLyraHighlights(value:unknown):readonly LyraHighlight[];
|
package/dist/internal/icons.d.ts
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import{type SVGTemplateResult}from'lit';
|
|
2
|
-
/** A single right-pointing chevron. Rotate the wrapping element for other directions
|
|
2
|
+
/** A single right-pointing chevron. Rotate the wrapping element for other directions.*/
|
|
3
3
|
export declare function chevronIcon():SVGTemplateResult;
|
|
4
|
-
/** Paired vertical chevrons indicate a sortable column with no active direction
|
|
4
|
+
/** Paired vertical chevrons indicate a sortable column with no active direction.*/
|
|
5
5
|
export declare function sortIcon():SVGTemplateResult;
|
|
6
|
-
/** An "x" close/clear glyph
|
|
6
|
+
/** An "x" close/clear glyph.*/
|
|
7
7
|
export declare function closeIcon():SVGTemplateResult;
|
|
8
|
-
/** A three-bar "hamburger" glyph, for navigation and menu toggles
|
|
8
|
+
/** A three-bar "hamburger" glyph, for navigation and menu toggles.*/
|
|
9
9
|
export declare function menuIcon():SVGTemplateResult;
|
|
10
|
-
/** A right-pointing play triangle
|
|
10
|
+
/** A right-pointing play triangle.*/
|
|
11
11
|
export declare function playIcon():SVGTemplateResult;
|
|
12
|
-
/** Two vertical pause bars
|
|
12
|
+
/** Two vertical pause bars.*/
|
|
13
13
|
export declare function pauseIcon():SVGTemplateResult;
|
|
14
|
-
/** Two circular arrows, for a refresh/"show another" action
|
|
14
|
+
/** Two circular arrows, for a refresh/"show another" action.*/
|
|
15
15
|
export declare function refreshIcon():SVGTemplateResult;
|
|
16
|
-
/** A calendar/date glyph, for date-input's open-calendar toggle
|
|
16
|
+
/** A calendar/date glyph, for date-input's open-calendar toggle.*/
|
|
17
17
|
export declare function calendarIcon():SVGTemplateResult;
|
|
18
|
-
/** A generic file/document glyph
|
|
18
|
+
/** A generic file/document glyph.*/
|
|
19
19
|
export declare function fileIcon():SVGTemplateResult;
|
|
20
|
-
/** A folder glyph
|
|
20
|
+
/** A folder glyph.*/
|
|
21
21
|
export declare function folderIcon():SVGTemplateResult;
|
|
22
|
-
/** A four-corner "expand to fullscreen" glyph
|
|
22
|
+
/** A four-corner "expand to fullscreen" glyph.*/
|
|
23
23
|
export declare function expandIcon():SVGTemplateResult;
|
|
24
|
-
/** A three-quarter-arc spinner glyph. Rotate the wrapping part element via CSS animation for a loading state
|
|
24
|
+
/** A three-quarter-arc spinner glyph. Rotate the wrapping part element via CSS animation for a loading state.*/
|
|
25
25
|
export declare function spinnerIcon():SVGTemplateResult;
|
|
26
|
-
/** An open-eye glyph, for a password field's "show" toggle
|
|
26
|
+
/** An open-eye glyph, for a password field's "show" toggle.*/
|
|
27
27
|
export declare function eyeIcon():SVGTemplateResult;
|
|
28
|
-
/** A slashed-eye glyph, for a password field's "hide" toggle
|
|
28
|
+
/** A slashed-eye glyph, for a password field's "hide" toggle.*/
|
|
29
29
|
export declare function eyeOffIcon():SVGTemplateResult;
|
|
30
|
-
/** A pinned conversation glyph
|
|
30
|
+
/** A pinned conversation glyph.*/
|
|
31
31
|
export declare function pinIcon():SVGTemplateResult;
|
|
32
|
-
/** An archive box glyph
|
|
32
|
+
/** An archive box glyph.*/
|
|
33
33
|
export declare function archiveIcon():SVGTemplateResult;
|
|
34
|
-
/** A trash bin glyph
|
|
34
|
+
/** A trash bin glyph.*/
|
|
35
35
|
export declare function trashIcon():SVGTemplateResult;
|
|
36
|
-
/** A pencil glyph
|
|
36
|
+
/** A pencil glyph.*/
|
|
37
37
|
export declare function pencilIcon():SVGTemplateResult;
|
|
38
|
-
/** A paper-plane send glyph
|
|
38
|
+
/** A paper-plane send glyph.*/
|
|
39
39
|
export declare function sendIcon():SVGTemplateResult;
|
|
40
|
-
/** A circular regenerate glyph
|
|
40
|
+
/** A circular regenerate glyph.*/
|
|
41
41
|
export declare function regenerateIcon():SVGTemplateResult;
|
|
42
|
-
/** A retry glyph
|
|
42
|
+
/** A retry glyph.*/
|
|
43
43
|
export declare function retryIcon():SVGTemplateResult;
|
|
44
|
-
/** A filled square stop glyph
|
|
44
|
+
/** A filled square stop glyph.*/
|
|
45
45
|
export declare function stopIcon():SVGTemplateResult;
|
|
46
|
-
/** A conversation feedback thumb, with `filled` reserved for the pressed state
|
|
46
|
+
/** A conversation feedback thumb, with `filled` reserved for the pressed state.*/
|
|
47
47
|
export declare function thumbIcon(direction:'up'|'down',filled:boolean):SVGTemplateResult;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/** One mutation observer per root, with each subscriber receiving only its requested signals
|
|
1
|
+
/** One mutation observer per root, with each subscriber receiving only its requested signals.*/
|
|
2
2
|
export interface InheritedAttributeSubscription{readonly attributes:readonly string[];readonly childList?:boolean;readonly characterData?:boolean;readonly changed:(records:MutationRecord[])=>void;}
|
|
3
|
-
/** Callable teardown with an explicit pending-record delivery boundary
|
|
3
|
+
/** Callable teardown with an explicit pending-record delivery boundary.*/
|
|
4
4
|
export interface InheritedAttributeRelease{():void;flush():void;}
|
|
5
|
-
/** Returns undefined when the root has no live owner realm or cannot be observed
|
|
5
|
+
/** Returns undefined when the root has no live owner realm or cannot be observed.*/
|
|
6
6
|
export declare function subscribeInheritedAttributes(root:Node,Observer:typeof MutationObserver|undefined,subscription:InheritedAttributeSubscription):InheritedAttributeRelease|undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface LayeredLayoutNode{id:string;
|
|
2
|
-
/** Finite, non-negative box width
|
|
2
|
+
/** Finite, non-negative box width.*/
|
|
3
3
|
width:number;
|
|
4
|
-
/** Finite, non-negative box height
|
|
4
|
+
/** Finite, non-negative box height.*/
|
|
5
5
|
height:number;}export interface LayeredLayoutEdge{source:string;target:string;}export interface LayeredLayoutOptions{
|
|
6
6
|
/**
|
|
7
7
|
* Finite, non-negative box-center coordinates kept verbatim and excluded from computed
|
|
@@ -10,20 +10,20 @@ height:number;}export interface LayeredLayoutEdge{source:string;target:string;}e
|
|
|
10
10
|
* verbatim and remain the caller's responsibility.
|
|
11
11
|
*/
|
|
12
12
|
fixedPositions?:ReadonlyMap<string,Readonly<{x:number;y:number;}>>;
|
|
13
|
-
/** Finite, non-negative in-layer gap between adjacent box edges (not centers). Default 24
|
|
13
|
+
/** Finite, non-negative in-layer gap between adjacent box edges (not centers). Default 24.*/
|
|
14
14
|
gapX?:number;
|
|
15
|
-
/** Finite, non-negative gap between layers (block axis). Default 100
|
|
15
|
+
/** Finite, non-negative gap between layers (block axis). Default 100.*/
|
|
16
16
|
gapY?:number;
|
|
17
17
|
/** Maximum synthetic ordering waypoints. Invalid values use the 10,000 default; negative
|
|
18
18
|
* values clamp to zero and fractional values truncate. */
|
|
19
19
|
maxVirtualWaypoints?:number;}
|
|
20
|
-
/** The bounded output of `layeredLayout()
|
|
20
|
+
/** The bounded output of `layeredLayout()`.*/
|
|
21
21
|
export interface LayeredLayoutResult{
|
|
22
|
-
/** Raw box-center coordinates for every real input node
|
|
22
|
+
/** Raw box-center coordinates for every real input node.*/
|
|
23
23
|
readonly positions:ReadonlyMap<string,Readonly<{x:number;y:number;}>>;
|
|
24
|
-
/** Whether one or more long-edge waypoint chains were omitted because the budget was exhausted
|
|
24
|
+
/** Whether one or more long-edge waypoint chains were omitted because the budget was exhausted.*/
|
|
25
25
|
readonly truncated:boolean;
|
|
26
|
-
/** Number of synthetic ordering waypoints actually allocated
|
|
26
|
+
/** Number of synthetic ordering waypoints actually allocated.*/
|
|
27
27
|
readonly virtualWaypointCount:number;}
|
|
28
28
|
/**
|
|
29
29
|
* A deterministic Sugiyama-lite layered ("DAG-ish") layout, dependency-free: (1) iterative
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/** Shared loader signature for opt-in catalog loading. Loading does not select the active locale
|
|
1
|
+
/** Shared loader signature for opt-in catalog loading. Loading does not select the active locale.*/
|
|
2
2
|
export type LyraLocaleLoader=(locale:string)=>Promise<void>;
|
|
@@ -29,7 +29,7 @@ export declare function getRegisteredLyraLocaleKeys(locale:string):readonly stri
|
|
|
29
29
|
* throw, delivery finishes and the committing register call then throws one `AggregateError`.
|
|
30
30
|
*/
|
|
31
31
|
export declare function subscribeLyraLocaleRegistry(listener:()=>void):()=>void;
|
|
32
|
-
/** Remembers that a connected Lyra host's owner was once backed by a browsing context
|
|
32
|
+
/** Remembers that a connected Lyra host's owner was once backed by a browsing context.*/
|
|
33
33
|
export declare function recordLyraOwnerDocumentConnection(host:Element):void;export declare function registerLyraLocale(locale:string,strings:LyraLocaleStrings,meta?:LyraLocaleMeta):void;
|
|
34
34
|
/**
|
|
35
35
|
* Register only a regional catalog's authored differences and its explicit parent locale.
|
|
@@ -70,7 +70,7 @@ export declare function getLyraLocaleDirection(locale:string):LyraLocaleDirectio
|
|
|
70
70
|
* eligible starting-snapshot listeners run, then one `AggregateError` is thrown if any failed.
|
|
71
71
|
*/
|
|
72
72
|
export declare function setLyraLocale(locale:string):void;
|
|
73
|
-
/** Return the current page-level locale
|
|
73
|
+
/** Return the current page-level locale.*/
|
|
74
74
|
export declare function getLyraLocale():string;
|
|
75
75
|
/**
|
|
76
76
|
* Resolves a `locale` argument for a standalone, host-less locale-aware utility function --
|
|
@@ -114,13 +114,13 @@ export declare function subscribeLyraLocale(listener:()=>void):()=>void;
|
|
|
114
114
|
* observable.
|
|
115
115
|
*/
|
|
116
116
|
export declare function enableLyraLocaleCache(host:Element):void;
|
|
117
|
-
/** Drops a host's memoized locale/direction so the next read re-resolves
|
|
117
|
+
/** Drops a host's memoized locale/direction so the next read re-resolves.*/
|
|
118
118
|
export declare function invalidateLyraLocaleCache(host:Element):void;
|
|
119
|
-
/** Resolve the locale inherited by a component host
|
|
119
|
+
/** Resolve the locale inherited by a component host.*/
|
|
120
120
|
export declare function resolveLyraLocale(host:Element):string;
|
|
121
|
-
/** Resolve a LyraElement's property-backed locale before its reflected attribute catches up
|
|
121
|
+
/** Resolve a LyraElement's property-backed locale before its reflected attribute catches up.*/
|
|
122
122
|
export declare function resolveLyraLocaleWithHostOverride(host:Element,localeOverride:string):string;
|
|
123
|
-
/** Resolve the direction inherited by a component host
|
|
123
|
+
/** Resolve the direction inherited by a component host.*/
|
|
124
124
|
export declare function resolveLyraDirection(host:Element):'ltr'|'rtl';
|
|
125
125
|
/**
|
|
126
126
|
* Reads a host's already-memoized locale/direction without resolving anything -- in particular,
|
|
@@ -133,7 +133,7 @@ export declare function resolveLyraDirection(host:Element):'ltr'|'rtl';
|
|
|
133
133
|
* purely to seed a comparison.
|
|
134
134
|
*/
|
|
135
135
|
export declare function peekLyraLocale(host:Element):string|undefined;
|
|
136
|
-
/** @see peekLyraLocale
|
|
136
|
+
/** @see peekLyraLocale*/
|
|
137
137
|
export declare function peekLyraDirection(host:Element):'ltr'|'rtl'|undefined;
|
|
138
138
|
/**
|
|
139
139
|
* Resolve a message for a component. An explicit per-component override wins,
|