@aceshooting/lyra-ui 30.5.0 → 30.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/CHANGELOG.md +78 -0
  2. package/README.md +1 -1
  3. package/dist/components/agent-tools/artifact-panel/artifact-panel.class.d.ts +7 -4
  4. package/dist/components/agent-tools/artifact-panel/artifact-panel.class.js +5 -5
  5. package/dist/components/conversation/code-block/onig.provenance.json +1 -1
  6. package/dist/components/conversation/markdown/markdown-base.class.d.ts +1 -1
  7. package/dist/components/conversation/markdown/markdown-base.class.js +1 -1
  8. package/dist/components/conversation/markdown/markdown-core.class.d.ts +11 -1
  9. package/dist/components/conversation/markdown/markdown-core.class.js +1 -1
  10. package/dist/components/conversation/markdown/markdown-progressive.js +2 -2
  11. package/dist/components/conversation/markdown/markdown-shared.d.ts +7 -2
  12. package/dist/components/conversation/markdown/markdown-shared.js +3 -3
  13. package/dist/components/conversation/markdown/markdown.class.d.ts +11 -1
  14. package/dist/components/conversation/markdown/markdown.class.js +1 -1
  15. package/dist/components/conversation/message-parts/message-parts.class.d.ts +1 -1
  16. package/dist/components/conversation/message-parts/message-parts.class.js +1 -1
  17. package/dist/components/conversation/message-parts/message-parts.d.ts +1 -1
  18. package/dist/components/conversation/model-select/model-select.class.d.ts +8 -1
  19. package/dist/components/conversation/model-select/model-select.class.js +2 -2
  20. package/dist/components/conversation/streaming-text/streaming-text-base.class.d.ts +5 -0
  21. package/dist/components/conversation/streaming-text/streaming-text-base.class.js +2 -2
  22. package/dist/components/conversation/streaming-text/streaming-text-core.class.d.ts +1 -1
  23. package/dist/components/conversation/streaming-text/streaming-text-core.class.js +1 -0
  24. package/dist/components/conversation/streaming-text/streaming-text.class.d.ts +1 -1
  25. package/dist/components/conversation/streaming-text/streaming-text.class.js +1 -0
  26. package/dist/components/conversation/suggestion-chips/suggestion-chips.class.d.ts +6 -0
  27. package/dist/components/conversation/suggestion-chips/suggestion-chips.styles.js +1 -1
  28. package/dist/components/conversation/voice-picker/voice-picker.class.d.ts +9 -2
  29. package/dist/components/conversation/voice-picker/voice-picker.class.js +2 -2
  30. package/dist/components/conversation/widget-renderer/default-registry.js +1 -1
  31. package/dist/components/conversation/widget-renderer/registry.d.ts +1 -27
  32. package/dist/components/conversation/widget-renderer/registry.js +1 -1
  33. package/dist/components/conversation/widget-renderer/resolve.d.ts +1 -29
  34. package/dist/components/conversation/widget-renderer/resolve.js +1 -1
  35. package/dist/components/conversation/widget-renderer/widget-renderer.class.d.ts +1 -1
  36. package/dist/components/conversation/widget-renderer/widget-renderer.class.js +1 -1
  37. package/dist/components/forms/catalog-picker-base.d.ts +3 -1
  38. package/dist/components/forms/catalog-picker-base.js +3 -3
  39. package/dist/components/forms/combobox/combobox.class.d.ts +9 -2
  40. package/dist/components/forms/combobox/combobox.class.js +2 -2
  41. package/dist/components/forms/date-picker/date-input.class.d.ts +9 -2
  42. package/dist/components/forms/date-picker/date-input.class.js +2 -2
  43. package/dist/components/forms/input/input-shared.d.ts +9 -2
  44. package/dist/components/forms/input/input-shared.js +2 -2
  45. package/dist/components/forms/input/time-input.class.d.ts +9 -2
  46. package/dist/components/forms/input/time-input.class.js +2 -2
  47. package/dist/components/forms/input/time-input.styles.js +1 -1
  48. package/dist/components/forms/locale-picker/locale-picker.class.d.ts +18 -3
  49. package/dist/components/forms/locale-picker/locale-picker.class.js +2 -2
  50. package/dist/components/forms/phone-input/phone-input.class.d.ts +9 -2
  51. package/dist/components/forms/phone-input/phone-input.class.js +2 -2
  52. package/dist/components/forms/phone-input/phone-input.styles.js +1 -1
  53. package/dist/components/forms/select/select.class.d.ts +9 -2
  54. package/dist/components/forms/select/select.class.js +2 -2
  55. package/dist/components/forms/textarea/textarea.class.d.ts +9 -2
  56. package/dist/components/forms/textarea/textarea.class.js +2 -2
  57. package/dist/components/forms/token-input/token-input.class.d.ts +9 -2
  58. package/dist/components/forms/token-input/token-input.class.js +2 -2
  59. package/dist/components/forms/token-input/token-input.styles.js +1 -1
  60. package/dist/components/layout/dock-panel/dock-panel.class.d.ts +5 -2
  61. package/dist/components/layout/dock-panel/dock-panel.styles.js +1 -1
  62. package/dist/components/layout/menu/menu-item.class.d.ts +7 -4
  63. package/dist/components/layout/menu/menu-item.class.js +3 -2
  64. package/dist/components/layout/multi-split/multi-split.class.d.ts +73 -6
  65. package/dist/components/layout/multi-split/multi-split.class.js +4 -4
  66. package/dist/components/layout/multi-split/multi-split.styles.js +1 -1
  67. package/dist/components/layout/page/page.class.d.ts +7 -0
  68. package/dist/components/layout/page/page.styles.js +1 -1
  69. package/dist/components/media/flag/language-map.js +1 -1
  70. package/dist/components/media/image-viewer/image-viewer-panorama.d.ts +1 -5
  71. package/dist/components/media/image-viewer/image-viewer-panorama.js +1 -8
  72. package/dist/components/media/image-viewer/image-viewer.class.d.ts +1 -1
  73. package/dist/components/media/image-viewer/image-viewer.class.js +1 -1
  74. package/dist/components/media/map/map-control-options.d.ts +7 -3
  75. package/dist/components/media/map/map-control-options.js +1 -1
  76. package/dist/components/media/map/map-controls-lifecycle.js +1 -1
  77. package/dist/components/media/map/map-feature-loader.js +1 -1
  78. package/dist/components/media/map/map-loader.d.ts +10 -4
  79. package/dist/components/media/map/map-loader.js +1 -1
  80. package/dist/components/media/map/map-scene-admission.js +1 -0
  81. package/dist/components/media/map/map-scene-completion-adapter.js +1 -0
  82. package/dist/components/media/map/map-scene-completion-camera.js +1 -0
  83. package/dist/components/media/map/map-scene-configuration-controller.js +1 -0
  84. package/dist/components/media/map/map-scene-configuration.d.ts +15 -0
  85. package/dist/components/media/map/map-scene-configuration.js +1 -0
  86. package/dist/components/media/map/map-scene-controls.js +1 -0
  87. package/dist/components/media/map/map-scene-errors.js +1 -0
  88. package/dist/components/media/map/map-scene-line-layer.js +1 -0
  89. package/dist/components/media/map/map-scene-lines.js +1 -0
  90. package/dist/components/media/map/map-scene-owner.js +1 -0
  91. package/dist/components/media/map/map-scene-position-registry.js +1 -0
  92. package/dist/components/media/map/map-scene-render-controller.js +1 -0
  93. package/dist/components/media/map/map-scene-render-input.js +1 -0
  94. package/dist/components/media/map/map-scene-source-snapshot.js +1 -0
  95. package/dist/components/media/map/map-scene-status.js +1 -0
  96. package/dist/components/media/map/map-scene-types.d.ts +55 -0
  97. package/dist/components/media/map/map.class.d.ts +60 -12
  98. package/dist/components/media/map/map.class.js +23 -6
  99. package/dist/components/media/map/map.styles.js +1 -1
  100. package/dist/components/media/sequence-playback/sequence-playback.class.d.ts +1 -1
  101. package/dist/components/media/sequence-playback/sequence-playback.class.js +1 -1
  102. package/dist/components/media/video/video.class.d.ts +1 -1
  103. package/dist/components/media/video/video.class.js +1 -1
  104. package/dist/components/retrieval/graph/graph-builtin-3d-engine.js +1 -1
  105. package/dist/components/retrieval/graph/graph-curvature.js +1 -0
  106. package/dist/components/retrieval/graph/graph-engine-columns.js +1 -1
  107. package/dist/components/retrieval/graph/graph-model.d.ts +4 -0
  108. package/dist/components/retrieval/graph/graph-node-renderer.d.ts +13 -0
  109. package/dist/components/retrieval/graph/graph-node-renderer.js +1 -0
  110. package/dist/components/retrieval/graph/graph-source-controller.js +1 -1
  111. package/dist/components/retrieval/graph/graph-spatial-controller.js +3 -1
  112. package/dist/components/retrieval/graph/graph-spatial.js +1 -1
  113. package/dist/components/retrieval/graph/graph-webgl-engine.js +1 -1
  114. package/dist/components/retrieval/graph/graph.class.d.ts +11 -3
  115. package/dist/components/retrieval/graph/graph.class.js +4 -4
  116. package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.d.ts +8 -2
  117. package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.js +4 -2
  118. package/dist/events.d.ts +36 -1
  119. package/dist/framework-types.d.ts +1 -1
  120. package/dist/internal/collection-policy.js +1 -0
  121. package/dist/internal/collection-snapshot.js +1 -1
  122. package/dist/internal/default-strings/media.generated.js +1 -1
  123. package/dist/internal/default-strings/retrieval.generated.js +1 -1
  124. package/dist/internal/engine-3d-loader.d.ts +8 -2
  125. package/dist/internal/engine-3d-loader.js +1 -1
  126. package/dist/internal/form-control.styles.js +1 -1
  127. package/dist/internal/locale-loaders.generated.js +1 -1
  128. package/dist/internal/localization-runtime.js +1 -1
  129. package/dist/internal/localization-types.d.ts +1 -1
  130. package/dist/internal/localization.js +1 -1
  131. package/dist/internal/map-camera-follow-controller.d.ts +9 -0
  132. package/dist/internal/map-camera-follow-controller.js +1 -0
  133. package/dist/internal/map-camera-follow-data.js +1 -0
  134. package/dist/internal/map-camera-follow-scene.js +1 -0
  135. package/dist/internal/map-camera-session-controller.d.ts +59 -0
  136. package/dist/internal/map-camera-session-controller.js +1 -0
  137. package/dist/internal/map-camera-session-data.d.ts +16 -0
  138. package/dist/internal/map-camera-session-data.js +1 -0
  139. package/dist/internal/map-camera-session.js +1 -0
  140. package/dist/internal/map-scene-session.js +1 -0
  141. package/dist/internal/media-panorama.d.ts +5 -0
  142. package/dist/internal/media-panorama.js +8 -0
  143. package/dist/internal/package-metadata.js +1 -1
  144. package/dist/internal/sequence-playback-binding.js +1 -0
  145. package/dist/internal/typed-columns.d.ts +3 -1
  146. package/dist/internal/typed-columns.js +1 -1
  147. package/dist/internal/variants.d.ts +7 -0
  148. package/dist/internal/widget-default-registry.js +1 -0
  149. package/dist/internal/widget-document.d.ts +29 -0
  150. package/dist/internal/widget-document.js +1 -0
  151. package/dist/internal/widget-type-registry.d.ts +27 -0
  152. package/dist/internal/widget-type-registry.js +1 -0
  153. package/dist/lyra.d.ts +1 -1
  154. package/dist/lyra.js +1 -1
  155. package/dist/map-camera-session.d.ts +10 -0
  156. package/dist/map-camera-session.js +1 -0
  157. package/dist/sequence-time-binding.d.ts +3 -0
  158. package/dist/sequence-time-binding.js +1 -0
  159. package/dist/simulation-clock.d.ts +3 -0
  160. package/dist/simulation-clock.js +1 -0
  161. package/dist/time-index.d.ts +3 -0
  162. package/dist/time-index.js +1 -0
  163. package/llms/components/lr-artifact-panel.md +8 -3
  164. package/llms/components/lr-combobox.md +2 -0
  165. package/llms/components/lr-country-picker.md +2 -0
  166. package/llms/components/lr-currency-picker.md +2 -0
  167. package/llms/components/lr-date-picker.md +2 -0
  168. package/llms/components/lr-dock-panel.md +5 -2
  169. package/llms/components/lr-graph.md +121 -3
  170. package/llms/components/lr-input.md +2 -0
  171. package/llms/components/lr-knowledge-graph-explorer.md +6 -1
  172. package/llms/components/lr-locale-picker.md +8 -1
  173. package/llms/components/lr-map.md +315 -7
  174. package/llms/components/lr-markdown-core.md +2 -1
  175. package/llms/components/lr-markdown.md +12 -1
  176. package/llms/components/lr-menu.md +5 -2
  177. package/llms/components/lr-model-select.md +2 -0
  178. package/llms/components/lr-multi-split.md +53 -4
  179. package/llms/components/lr-native-time-input.md +2 -0
  180. package/llms/components/lr-number-input.md +2 -0
  181. package/llms/components/lr-page.md +9 -1
  182. package/llms/components/lr-phone-input.md +2 -0
  183. package/llms/components/lr-select.md +2 -0
  184. package/llms/components/lr-sequence-playback.md +44 -0
  185. package/llms/components/lr-streaming-text-core.md +3 -2
  186. package/llms/components/lr-streaming-text.md +4 -1
  187. package/llms/components/lr-suggestion-chips.md +6 -2
  188. package/llms/components/lr-textarea.md +2 -0
  189. package/llms/components/lr-time-input.md +2 -0
  190. package/llms/components/lr-time-zone-picker.md +2 -0
  191. package/llms/components/lr-token-input.md +2 -0
  192. package/llms/components/lr-unit-picker.md +2 -0
  193. package/llms/components/lr-voice-picker.md +2 -0
  194. package/llms/peers.md +7 -7
  195. package/llms/shared/imports-and-registration.md +1 -1
  196. package/llms/shared/localization-and-rtl.md +15 -1
  197. package/llms/shared/testing-and-utilities.md +184 -0
  198. package/llms/shared.md +200 -2
  199. package/locales.json +1 -1
  200. package/package.json +37 -21
  201. package/registrations.json +1 -1
  202. package/skills/lyra-ui/lyra-gen.md +2 -0
  203. /package/dist/{components/media/image-viewer/image-viewer-panorama.styles.js → internal/media-panorama.styles.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{type Engine3dPreference,type Engine3dFallbackDetail}from'../../../internal/engine-3d.js';import type{GraphSource}from'../graph/graph.class.js';export type KnowledgeGraphExplorerSource=GraphSource;import type{LyraSearchChangeDetail}from'../../../internal/text-viewer-target.js';import type{LyraEventDetailSnapshot}from'../../../internal/lyra-element.js';import{type PropertyValues,type TemplateResult}from'lit';import{LyraElement}from'../../../internal/lyra-element.js';import type{LyraNodeTypeStyle}from'../../../internal/node-type-style.js';export type{LyraNodeTypeStyle}from'../../../internal/node-type-style.js';import type{LyraGraphCamera,LyraGraphView,LyraGraphCommunity,LyraGraphFit,LyraGraphNodeLabelsMode,LyraGraphRenderer,LyraGraphEdge,LyraGraphNode}from'../graph/graph.class.js';import type{LyraEntity}from'../entity-card/entity-card.class.js';import type{LyraPathElement}from'../path-strip/path-strip.class.js';export type{LyraPathElement}from'../path-strip/path-strip.class.js';import'../graph/graph.class.js';import'../graph-legend/graph-legend.class.js';import'../entity-card/entity-card.class.js';import'../neighbor-list/neighbor-list.class.js';import'../../overlays/overlay/popover.class.js';import'../../forms/input/input.class.js';import'../../forms/button/button.class.js';
1
+ import{type Engine3dPreference,type Engine3dFallbackDetail}from'../../../internal/engine-3d.js';import type{GraphSource}from'../graph/graph.class.js';import type{LyraGraphNodeRenderer,LyraGraphNodeRenderErrorDetail}from'../graph/graph.class.js';export type KnowledgeGraphExplorerSource=GraphSource;import type{LyraSearchChangeDetail}from'../../../internal/text-viewer-target.js';import type{LyraEventDetailSnapshot}from'../../../internal/lyra-element.js';import{type PropertyValues,type TemplateResult}from'lit';import{LyraElement}from'../../../internal/lyra-element.js';import type{LyraNodeTypeStyle}from'../../../internal/node-type-style.js';export type{LyraNodeTypeStyle}from'../../../internal/node-type-style.js';import type{LyraGraphCamera,LyraGraphView,LyraGraphCommunity,LyraGraphFit,LyraGraphNodeLabelsMode,LyraGraphRenderer,LyraGraphEdge,LyraGraphNode}from'../graph/graph.class.js';import type{LyraEntity}from'../entity-card/entity-card.class.js';import type{LyraPathElement}from'../path-strip/path-strip.class.js';export type{LyraPathElement}from'../path-strip/path-strip.class.js';import'../graph/graph.class.js';import'../graph-legend/graph-legend.class.js';import'../entity-card/entity-card.class.js';import'../neighbor-list/neighbor-list.class.js';import'../../overlays/overlay/popover.class.js';import'../../forms/input/input.class.js';import'../../forms/button/button.class.js';
2
2
  /** Extra `LyraEntity` fields a plain `LyraGraphNode` doesn't carry -- merged in by node id to build
3
3
  * the entity shown in the details popover and neighbor rows. A node with no entry here still
4
4
  * renders fine: `degree` falls back to a live count derived from `edges`, `description`/
@@ -38,7 +38,7 @@ export type KnowledgeGraphHighlight='selection'|'hover'|'none';export interface
38
38
  * complete updated array. This component already applies it to its own `hiddenTypes` before
39
39
  * emitting, the same self-toggle-then-emit contract `lr-pin-change`/`lr-search-change` follow,
40
40
  * so reassigning it back is optional and a direct host assignment stays silent. */
41
- 'lr-hidden-types-change':CustomEvent<LyraEventDetailSnapshot<{hiddenTypes:string[];}>>;'lr-node-activate':CustomEvent<{nodeId:string;x:number;y:number;z?:number;}>;'lr-engine-fallback':CustomEvent<Engine3dFallbackDetail>;'lr-camera-change':CustomEvent<{camera:LyraGraphCamera;}>;'lr-view-change':CustomEvent<{view:LyraGraphView;}>;'lr-edge-activate':CustomEvent<{sourceNodeId:string;targetNodeId:string;edgeId?:string;}>;'lr-node-expand':CustomEvent<{nodeId:string;}>;
41
+ 'lr-hidden-types-change':CustomEvent<LyraEventDetailSnapshot<{hiddenTypes:string[];}>>;'lr-node-activate':CustomEvent<{nodeId:string;x:number;y:number;z?:number;}>;'lr-engine-fallback':CustomEvent<Engine3dFallbackDetail>;'lr-node-render-error':CustomEvent<LyraGraphNodeRenderErrorDetail>;'lr-camera-change':CustomEvent<{camera:LyraGraphCamera;}>;'lr-view-change':CustomEvent<{view:LyraGraphView;}>;'lr-edge-activate':CustomEvent<{sourceNodeId:string;targetNodeId:string;edgeId?:string;}>;'lr-node-expand':CustomEvent<{nodeId:string;}>;
42
42
  /** Bubbles unchanged from the composed `lr-graph`.*/
43
43
  'lr-community-activate':CustomEvent<{communityId:string;}>;'lr-relation-activate':CustomEvent<{relation:string;sourceNodeId?:string;targetNodeId?:string;occurrenceIndex:number;}>;}
44
44
  /**
@@ -122,6 +122,7 @@ export type KnowledgeGraphHighlight='selection'|'hover'|'none';export interface
122
122
  * @event lr-node-activate - Bubbles unchanged with `{ nodeId, x, y, z? }`; spatial activation
123
123
  * includes world z, while 2D retains its existing local x/y coordinates.
124
124
  * @event lr-engine-fallback - Bubbles unchanged from the composed graph with `{ from, to, reason }`.
125
+ * @event lr-node-render-error - Bubbles unchanged from the composed graph with a sanitized custom mesh refusal.
125
126
  * @event lr-camera-change - Bubbles unchanged from the composed graph with `{ camera }`.
126
127
  * Spatial detail popovers follow the newly projected node position.
127
128
  * @event lr-view-change - Bubbles from the graph toolbar with `{ view }`; the explorer updates
@@ -215,6 +216,11 @@ renderer:LyraGraphRenderer;
215
216
  view:LyraGraphView;private _engine;
216
217
  /** Optional 3D graph renderer preference, forwarded to the composed graph.*/
217
218
  get engine():Engine3dPreference;set engine(value:Engine3dPreference);
219
+ /** Application-owned custom node meshes forwarded to `lr-graph.nodeRenderer`. Used only by
220
+ * the WebGL 3D view; unset or null keeps ordinary node glyphs. */
221
+ nodeRenderer:LyraGraphNodeRenderer|null|undefined;
222
+ /** Static soft halo forwarded to `lr-graph.glow`, available only in the WebGL 3D view.*/
223
+ glow:boolean;
218
224
  /** Optional orbit-camera input forwarded to lr-graph.camera; camera changes bubble as
219
225
  * lr-camera-change. Angles use radians, distance and target use graph units. */
220
226
  camera?:LyraGraphCamera;
@@ -1,4 +1,4 @@
1
- import{__decorate}from"tslib";import{ENGINE_3D_PREFERENCE}from"../../../internal/engine-3d.js";import{ref}from"lit/directives/ref.js";import{setGraphSourceComposition,resolveGraphSourceComposition,focusGraphSourceComposition}from"../graph/graph-source-composition.js";const EMPTY_SOURCE_NODES=Object.freeze([]),EMPTY_SOURCE_EDGES=Object.freeze([]);import{collectionSupport,publicCollectionTruncation}from"../../../internal/collection-snapshot.js";import{tag}from"../../../internal/prefix.js";import{html,nothing}from"lit";import{property,state,query}from"lit/decorators.js";import{guard}from"lit/directives/guard.js";import{LyraElement}from"../../../internal/lyra-element.js";import{finiteInteger,finiteRange}from"../../../internal/numbers.js";import{srOnly}from"../../../internal/a11y.js";import{getNumberFormat}from"../../../internal/intl-cache.js";import{styles}from"./knowledge-graph-explorer.styles.js";import{retrievalSemanticLabel,retrievalSemanticRole}from"../retrieval-semantic-owner.js";import{graphLengthConverter,graphLinkIdentity,normalizeGraphModel}from"../graph/graph-model.js";import{canonicalIdentityList,isNonBlankIdentity}from"../retrieval-identity.js";import"../graph/graph.class.js";import"../graph-legend/graph-legend.class.js";import"../entity-card/entity-card.class.js";import"../neighbor-list/neighbor-list.class.js";import"../../overlays/overlay/popover.class.js";import"../../forms/input/input.class.js";import"../../forms/button/button.class.js";import{AnnouncementSinkController}from"../../../internal/announcer.js";import{LYRA_DEFAULT_graphDataListLimit,LYRA_DEFAULT_graphEdgeLimit,LYRA_DEFAULT_graphExplorerAllTypesHidden,LYRA_DEFAULT_graphExplorerClearTypes,LYRA_DEFAULT_graphExplorerFindPath,LYRA_DEFAULT_graphExplorerLabel,LYRA_DEFAULT_graphExplorerPin,LYRA_DEFAULT_graphExplorerPinned,LYRA_DEFAULT_graphExplorerPinnedHeading,LYRA_DEFAULT_graphExplorerSearchLimit,LYRA_DEFAULT_graphExplorerSearchPlaceholder,LYRA_DEFAULT_graphExplorerSearchResultsLabel,LYRA_DEFAULT_graphExplorerUnpin,LYRA_DEFAULT_graphExplorerUnpinned,LYRA_DEFAULT_graphNodeLimit}from"../../../internal/default-strings/retrieval.generated.js";import{LYRA_DEFAULT_collapse,LYRA_DEFAULT_copy,LYRA_DEFAULT_date,LYRA_DEFAULT_details,LYRA_DEFAULT_engine3dContextLost,LYRA_DEFAULT_engine3dError,LYRA_DEFAULT_engine3dLoading,LYRA_DEFAULT_engine3dShowingBuiltin,LYRA_DEFAULT_engine3dShowingList,LYRA_DEFAULT_engine3dSoftwareRendering,LYRA_DEFAULT_engine3dUnavailable,LYRA_DEFAULT_engine3dUnsupported,LYRA_DEFAULT_fieldRequired,LYRA_DEFAULT_largeDataInvalid,LYRA_DEFAULT_largeDataLimit,LYRA_DEFAULT_loading,LYRA_DEFAULT_map,LYRA_DEFAULT_navigation,LYRA_DEFAULT_open,LYRA_DEFAULT_progress,LYRA_DEFAULT_restore,LYRA_DEFAULT_search,LYRA_DEFAULT_select,LYRA_DEFAULT_statusError,LYRA_DEFAULT_viewerSearchMatchCount,LYRA_DEFAULT_viewerSearchNoMatches}from"../../../internal/default-strings/shared.generated.js";const SEARCH_RESULT_LIMIT=50;function isElementNode(value){if(typeof value!="object"||value===null)return!1;const candidate=value;return candidate.nodeType===1&&typeof candidate.matches=="function"&&typeof candidate.getBoundingClientRect=="function"}class LyraKnowledgeGraphExplorer extends LyraElement{constructor(){super(...arguments),this.sourceEpoch=0,this.sourceSearchVersion=0,this.sourceAssigned=!1,this.sourceClosing=!1,this.sourceDetailsOpen=!1,this.sourcePaint=0,this._sourcePage=0,this._sourcePageSize=100,this.sourceAccepted=snapshot=>{if(!snapshot.current()||this.graphSource===void 0||this.sourceChild?.graphSource!==this.graphSource)return;this.sourcePage!==snapshot.page&&(this.sourcePage=snapshot.page),this.sourcePaint++;const intent=this.sourceSearchIntent;if(!this.sourceFilter.invalid&&intent&&intent.epoch===this.sourceEpoch&&intent.version===this.sourceSearchVersion&&intent.query===this.query&&snapshot.query.kind==="nodes"&&snapshot.query.centerKey===null&&snapshot.query.search===intent.query&&snapshot.total!==null&&snapshot.current()){this.sourceSearchIntent=void 0;const detail={query:intent.query,matchCount:intent.query.trim()?snapshot.total:0,matchCountExact:!0,activeIndex:-1};snapshot.current()&&this.emit("lr-search-change",detail)}snapshot.current()&&this.inspectSourceSelection()},this.bindSourceChild=element=>{const graph=element;if(!graph){this.sourceChild&&setGraphSourceComposition(this.sourceChild,void 0),this.sourceChild=void 0,this.sourceChildBinding=void 0;return}this.sourceChild=graph;const size=finiteInteger(this.sourcePageSize,100,1,500),page=finiteInteger(this.sourcePage,0,0,Math.floor(Number.MAX_SAFE_INTEGER/size));if(graph.sourcePageSize!==size&&(graph.sourcePageSize=size),graph.sourcePage!==page&&(graph.sourcePage=page),this.graphSource===void 0){setGraphSourceComposition(graph,void 0),graph.graphSource!==void 0&&(graph.graphSource=void 0),this.sourceChildBinding=void 0;return}const filter=this.sourceFilter;setGraphSourceComposition(graph,{search:(this.query??"").slice(0,65536),nodeTypes:filter.nodeTypes,empty:filter.empty,accepted:this.sourceAccepted});const binding=[graph,this.graphSource,this.sourceEpoch];(!this.sourceChildBinding||binding.some((value,index)=>value!==this.sourceChildBinding[index]))&&(this.sourceChildBinding=binding,graph.graphSource=this.graphSource),this.inspectSourceSelection()},this.nodes=[],this.edges=[],this.nodeTypes=[],this.communities=[],this.entityDetails={},this.pinnedNodeIds=[],this.path=[],this.hiddenTypes=[],this.selectedNodeId=null,this.renderer="svg",this.view="2d",this._engine="builtin",this.fitTo="none",this.width=800,this.height=600,this.highlight="selection",this.query="",this.pinLiveText="",this.hoveredNodeId=null,this.activeResult=0,this.activationGeneration=0,this.nodeById=new Map,this.linksByNodeId=new Map,this.degreeByNodeId=new Map,this.communityLabelById=new Map,this.announcements=new AnnouncementSinkController(this,{eager:["polite"]}),this.optionalRequest=!1,this.optionalGeneration=0,this.pathReady=!1,this.optionalFailed=!1,this.onVisibilityChange=event=>{event.stopPropagation(),this.hiddenTypes=event.detail.hiddenTypes,this.emit("lr-hidden-types-change",{hiddenTypes:this.hiddenTypes})},this.onVisibilityChangeProposal=event=>{event.stopPropagation()},this.onSearchInput=event=>{event.stopPropagation();const value=event.detail.value;if(this.query!==value){if(this.query=value,this.graphSource!==void 0){this.sourceSearchIntent={query:value,version:this.sourceSearchVersion,epoch:this.sourceEpoch};return}this.emit("lr-search-change",{query:value,matchCount:this.matchingNodes()?.length??0,matchCountExact:!0,activeIndex:-1})}},this.onEntityActivate=event=>{event.stopPropagation(),this.activateEntity(event.detail.entityId)},this.onGraphNodeClick=event=>{const id=event.detail.nodeId;if(this.graphSource!==void 0){this.activateSourceEntity(id);return}if(!this.canActivateNode(id))return;const generation=this.invalidateActivation();if(this.setInternalSelectedNodeId(id),this.view==="3d"){const graph=this.graphEl,point=graph?.getNodeScreenPosition(id),bounds=graph?.getBoundingClientRect();if(point&&bounds){this.trackedNodeEl=void 0,this.openDetailAt(id,{x:bounds.left+point.x,y:bounds.top+point.y,width:0,height:0});return}}this.pendingNodeId=id;const ownerDocument=this.ownerDocument,ownerWindow=ownerDocument.defaultView;ownerWindow&&ownerWindow.queueMicrotask(()=>{generation===this.activationGeneration&&this.isConnected&&this.ownerDocument===ownerDocument&&this.pendingNodeId===id&&(this.pendingNodeId=void 0,this.selectedNodeId===id&&this.isVisibleNode(id)&&this.activateEntity(id))})},this.onGraphNativeClick=event=>{const id=this.pendingNodeId;id&&(this.pendingNodeId=void 0,this.openDetailAt(id,this.resolveDirectClickAnchor(event)))},this.onGraphViewportChange=()=>{const graph=this.graphEl;if(graph?.view==="3d"&&this.selectedNodeId&&this.popoverEl?.open){const point=graph.getNodeScreenPosition(this.selectedNodeId);if(point){const rect2=graph.getBoundingClientRect();this.popoverEl.showAt({x:rect2.left+point.x,y:rect2.top+point.y,width:0,height:0})}return}const el=this.trackedNodeEl,popover=this.popoverEl;if(!el?.isConnected||!popover?.open)return;const rect=el.getBoundingClientRect();popover.showAt({x:rect.left+rect.width/2,y:rect.top,width:rect.width,height:rect.height})},this.onGraphNodeEnter=event=>{this.highlight==="hover"&&(this.hoveredNodeId=event.detail.nodeId)},this.onGraphNodeLeave=event=>{this.highlight==="hover"&&this.hoveredNodeId===event.detail.nodeId&&(this.hoveredNodeId=null)},this.onResultKeyDown=event=>{const buttons=[...this.renderRoot.querySelectorAll('[part="search-result"] button')],index=buttons.indexOf(event.target),next={ArrowDown:index+1,ArrowUp:index-1,Home:0,End:buttons.length-1}[event.key];index<0||next===void 0||(event.preventDefault(),this.activeResult=Math.max(0,Math.min(buttons.length-1,next)),buttons[this.activeResult].focus())},this.onPopoverHide=()=>{if(this.graphSource!==void 0?this.closeSourceDetails(!1):this.sourceDetailsOpen=!1,this.sourceClosing){this.sourceClosing=!1;return}this.invalidateActivation(),this.trackedNodeEl=void 0,this.setInternalSelectedNodeId(null)}}static{this.defaultStrings={...super.defaultStrings,collapse:LYRA_DEFAULT_collapse,copy:LYRA_DEFAULT_copy,date:LYRA_DEFAULT_date,details:LYRA_DEFAULT_details,engine3dContextLost:LYRA_DEFAULT_engine3dContextLost,engine3dError:LYRA_DEFAULT_engine3dError,engine3dLoading:LYRA_DEFAULT_engine3dLoading,engine3dShowingBuiltin:LYRA_DEFAULT_engine3dShowingBuiltin,engine3dShowingList:LYRA_DEFAULT_engine3dShowingList,engine3dSoftwareRendering:LYRA_DEFAULT_engine3dSoftwareRendering,engine3dUnavailable:LYRA_DEFAULT_engine3dUnavailable,engine3dUnsupported:LYRA_DEFAULT_engine3dUnsupported,fieldRequired:LYRA_DEFAULT_fieldRequired,graphDataListLimit:LYRA_DEFAULT_graphDataListLimit,graphEdgeLimit:LYRA_DEFAULT_graphEdgeLimit,graphExplorerAllTypesHidden:LYRA_DEFAULT_graphExplorerAllTypesHidden,graphExplorerClearTypes:LYRA_DEFAULT_graphExplorerClearTypes,graphExplorerFindPath:LYRA_DEFAULT_graphExplorerFindPath,graphExplorerLabel:LYRA_DEFAULT_graphExplorerLabel,graphExplorerPin:LYRA_DEFAULT_graphExplorerPin,graphExplorerPinned:LYRA_DEFAULT_graphExplorerPinned,graphExplorerPinnedHeading:LYRA_DEFAULT_graphExplorerPinnedHeading,graphExplorerSearchLimit:LYRA_DEFAULT_graphExplorerSearchLimit,graphExplorerSearchPlaceholder:LYRA_DEFAULT_graphExplorerSearchPlaceholder,graphExplorerSearchResultsLabel:LYRA_DEFAULT_graphExplorerSearchResultsLabel,graphExplorerUnpin:LYRA_DEFAULT_graphExplorerUnpin,graphExplorerUnpinned:LYRA_DEFAULT_graphExplorerUnpinned,graphNodeLimit:LYRA_DEFAULT_graphNodeLimit,largeDataInvalid:LYRA_DEFAULT_largeDataInvalid,largeDataLimit:LYRA_DEFAULT_largeDataLimit,loading:LYRA_DEFAULT_loading,map:LYRA_DEFAULT_map,navigation:LYRA_DEFAULT_navigation,open:LYRA_DEFAULT_open,progress:LYRA_DEFAULT_progress,restore:LYRA_DEFAULT_restore,search:LYRA_DEFAULT_search,select:LYRA_DEFAULT_select,statusError:LYRA_DEFAULT_statusError,viewerSearchMatchCount:LYRA_DEFAULT_viewerSearchMatchCount,viewerSearchNoMatches:LYRA_DEFAULT_viewerSearchNoMatches}}static{this.collectionSupport=collectionSupport}static{this.ownedCollectionProperties=Object.freeze(["nodes","edges","nodeTypes","communities","entityDetails","pinnedNodeIds","path","hiddenTypes"])}static{this.styles=[LyraElement.styles,styles,srOnly]}static{this.immutableEventDetails=Object.freeze(["lr-selection-change","lr-pin-change","lr-hidden-types-change"])}get graphSource(){return this._graphSource}set graphSource(value){const previous=this._graphSource;this._graphSource=value,this.requestUpdate("graphSource",previous)}get sourcePage(){return this._sourcePage}set sourcePage(value){const old=this._sourcePage;this._sourcePage=value;const size=finiteInteger(this.sourcePageSize,100,1,500),page=finiteInteger(value,0,0,Math.floor(Number.MAX_SAFE_INTEGER/size));this.sourceChild&&this.sourceChild.sourcePage!==page&&(this.sourceChild.sourcePage=page),this.requestUpdate("sourcePage",old)}get sourcePageSize(){return this._sourcePageSize}set sourcePageSize(value){const old=this._sourcePageSize;this._sourcePageSize=value,Object.is(old,value)||(this.sourcePage=0);const size=finiteInteger(value,100,1,500);this.sourceChild&&this.sourceChild.sourcePageSize!==size&&(this.sourceChild.sourcePageSize=size),this.requestUpdate("sourcePageSize",old)}get sourceTotal(){return this.graphSource===void 0||this.sourceFilter.invalid?null:this.sourceFilter.empty?0:this.sourceChild?.graphSource===this.graphSource?this.sourceChild.sourceTotal:null}get sourceFilter(){const hidden=this.canonicalHiddenTypes;if(!hidden.length)return{nodeTypes:[],empty:!1,invalid:!1};const catalog=canonicalIdentityList(this.nodeTypes.map(type=>type.id));let units=0;if(catalog.length>500||catalog.some(type=>type.length>65536||(units+=type.length)>2e6))return{nodeTypes:[],empty:!0,invalid:!0};const types=catalog.filter(type=>!hidden.includes(type));return{nodeTypes:types,empty:types.length===0,invalid:!1}}sourceCurrent(){const source=this.graphSource,epoch=this.sourceEpoch,generation=this.activationGeneration,owner=this.ownerDocument;let revision;try{revision=source?.revision}catch{return()=>!1}return()=>{try{return source?.revision===revision&&this.graphSource===source&&this.sourceEpoch===epoch&&this.activationGeneration===generation&&this.isConnected&&this.ownerDocument===owner}catch{return!1}}}inspectSourceSelection(){const graph=this.sourceChild,id=this.selectedNodeId;if(!graph||this.graphSource===void 0||this.sourceFilter.empty||!id)return;const signature=[graph,this.graphSource,this.sourceEpoch,id];if(this.sourceInspect&&signature.every((value,index)=>value===this.sourceInspect[index]))return;this.sourceInspect=signature;const current=this.sourceCurrent();resolveGraphSourceComposition(graph,[`node:${id}`]).then(result=>{if(!result||!result.current()||!current()||this.selectedNodeId!==id){this.sourceInspect===signature&&(this.sourceInspect=void 0);return}const record=result.records.find(row=>row.key===`node:${id}`);if(!record||record.value.kind!=="node"){this.selectedNodeId=null;return}this.sourceEntity=record.value.value})}async revealSourceKey(key){if(this.graphSource===void 0)return!1;this.query="",this.hiddenTypes=[];const current=this.sourceCurrent();if(await this.updateComplete,!current())return!1;const revealed=await this.sourceChild?.revealSourceKey(key);return current()&&revealed===!0}closeSourceDetails(closePopover=!0){this.sourceDetailsOpen=!1;const neighbors=this.renderRoot?.querySelector('[part="detail-neighbors"]');neighbors?.graphSource!==void 0&&(neighbors.graphSource=void 0),closePopover&&this.popoverEl?.open&&(this.sourceClosing=!0,this.popoverEl.open=!1)}requestUpdate(...args){const name=args[0];this.sourceEpoch!==void 0&&(name==="graphSource"||name===void 0)&&(this.sourceEpoch++,this.sourceInspect=void 0,this.sourceEntity=void 0,this.closeSourceDetails(),this.sourceSearchIntent=void 0,this.internalSelectionAssignment=void 0,this.invalidateActivation(),this.sourceChild?.graphSource!==void 0&&(this.sourceChild.graphSource=void 0)),name==="query"&&(this.sourceSearchVersion=(this.sourceSearchVersion??0)+1,this.sourceSearchIntent=void 0),this.graphSource!==void 0&&(name==="hiddenTypes"||name==="nodeTypes"||name==="selectedNodeId"&&!this.sourceAssigned)&&(this.invalidateActivation(),this.sourceInspect=void 0,this.closeSourceDetails(),name==="selectedNodeId"&&(this.sourceEntity=void 0,this.internalSelectionAssignment=void 0)),this.graphSource!==void 0&&this.sourceChild&&["query","hiddenTypes","nodeTypes"].includes(String(name))&&this.bindSourceChild(this.sourceChild),super.requestUpdate(...args)}async activateSourceEntity(id){if(!isNonBlankIdentity(id)||id.length+5>65536||this.sourceFilter.empty)return;const graph=this.sourceChild;if(!graph)return;const mounted=graph.view==="list"&&[...graph.renderRoot.querySelectorAll("[data-source-key]")].some(row=>row.dataset.sourceKey===`node:${id}`);graph.view==="list"&&!mounted&&(this.query="",this.hiddenTypes=[]),this.invalidateActivation();const current=this.sourceCurrent();if(await this.updateComplete,!current()||this.sourceChild!==graph)return;const result=await resolveGraphSourceComposition(graph,[`node:${id}`]);if(!current()||!result?.current())return;const record=result.records.find(row=>row.key===`node:${id}`);if(!record||record.value.kind!=="node"||(this.sourceEntity=record.value.value,this.sourceInspect=[graph,this.graphSource,this.sourceEpoch,id],this.setInternalSelectedNodeId(id),!current()||this.selectedNodeId!==id))return;const focused=await focusGraphSourceComposition(graph,`node:${id}`);if(await graph.updateComplete,!current()||!focused?.()||this.selectedNodeId!==id)return;const target=graph.view==="list"?[...graph.renderRoot.querySelectorAll("[data-source-key]")].find(row=>row.dataset.sourceKey===`node:${id}`):void 0,position=graph.view!=="list"?graph.getNodeScreenPosition(id):void 0,bounds=target?.getBoundingClientRect()??graph.getBoundingClientRect();!current()||!focused()||(graph.view==="list"?!target:!position)||(this.openDetailAt(id,{x:bounds.left+(position?.x??bounds.width/2),y:bounds.top+(position?.y??bounds.height/2),width:0,height:0}),current()&&focused()&&this.popoverEl?.open&&(this.sourceDetailsOpen=!0))}get engine(){return this._engine}set engine(value){const old=this._engine;this._engine=ENGINE_3D_PREFERENCE.normalize(value),this.requestUpdate("engine",old)}get graphModel(){const nodes=this.graphSource===void 0?this.nodes:EMPTY_SOURCE_NODES,edges=this.graphSource===void 0?this.edges:EMPTY_SOURCE_EDGES,sources=this.normalizedGraphSources;return(!sources||sources[0]!==nodes||sources[1]!==edges||sources[2]!==this.nodeTypes||sources[3]!==this.communities)&&(this.normalizedGraphSources=[nodes,edges,this.nodeTypes,this.communities],this.normalizedGraphModel=normalizeGraphModel(nodes,edges,this.nodeTypes,this.communities)),this.normalizedGraphModel}get canonicalPinnedNodeIds(){return canonicalIdentityList(this.pinnedNodeIds)}get canonicalHiddenTypes(){return canonicalIdentityList(this.hiddenTypes)}async loadOptionalPath(){await import("../path-strip/path-strip.js")}ensureOptionalChildren(){const path=this.path.length>0,request=path;if(request===this.optionalRequest)return;this.optionalRequest=request;const generation=++this.optionalGeneration;if(this.optionalPending=void 0,this.optionalFailed=!1,!path||this.pathReady)return;this.hasUpdated&&this.announcements.announcePolite(this.localize("loading"));const pending=this.loadOptionalPath().then(()=>{!this.isConnected||generation!==this.optionalGeneration||(this.pathReady||=path)},()=>{!this.isConnected||generation!==this.optionalGeneration||(this.optionalFailed=!0,this.announcements.announcePolite(this.localize("statusError")))}).then(()=>{!this.isConnected||generation!==this.optionalGeneration||(this.optionalPending=void 0,this.requestUpdate())});this.optionalPending=pending}async getUpdateComplete(){const complete=await super.getUpdateComplete(),pending=this.optionalPending;return pending?(await pending,this.getUpdateComplete()):complete}connectedCallback(){super.connectedCallback(),this.hasUpdated&&(this.resumePresetActivation(),this.requestUpdate())}willUpdate(changed){if(super.willUpdate(changed),this.hasUpdated&&(changed.has("nodes")||changed.has("edges"))){const messages=this.inputLimitMessages(["nodes","edges"].filter(property2=>changed.has(property2)));messages.length&&this.announcements.announcePolite(messages.join(" "))}this.ensureOptionalChildren(),this.graphSource===void 0&&((changed.has("nodes")||changed.has("edges")||changed.has("communities")||changed.has("graphSource"))&&this.rebuildDerivedCollections(),this.hoveredNodeId&&!this.isVisibleNode(this.hoveredNodeId)&&(this.hoveredNodeId=null),(changed.has("nodes")||changed.has("hiddenTypes")||changed.has("graphSource"))&&this.selectedNodeId&&!this.isVisibleNode(this.selectedNodeId)&&(this.invalidateActivation(),this.setInternalSelectedNodeId(null),this.popoverEl&&(this.popoverEl.open=!1)),this.hasUpdated&&(this.query??"").trim()&&(changed.has("query")||changed.has("nodes")||changed.has("hiddenTypes")||changed.has("locale")||changed.has("strings"))&&this.announcements.announcePolite(this.searchResultAnnouncement()))}updated(changed){if(super.updated(changed),this.graphSource!==void 0){this.bindSourceChild(this.graphEl);return}if(changed.has("camera")&&this.view==="3d"&&this.graphEl&&this.reanchorAfterCameraUpdate(this.graphEl,this.camera),!changed.has("selectedNodeId"))return;const internallyAssigned=this.internalSelectionAssignment!==void 0&&Object.is(this.internalSelectionAssignment.value,this.selectedNodeId);if(this.internalSelectionAssignment=void 0,internallyAssigned)return;const generation=this.invalidateActivation(),id=this.selectedNodeId;if(!isNonBlankIdentity(id)){id!==null&&(this.selectedNodeId=null),this.popoverEl&&(this.popoverEl.open=!1);return}const graph=this.graphEl;graph&&this.isVisibleNode(id)&&this.activatePresetWhenGraphReady(id,graph,generation)}async reanchorAfterCameraUpdate(graph,camera){await graph.updateComplete,this.isConnected&&this.graphEl===graph&&this.camera===camera&&this.view==="3d"&&this.onGraphViewportChange()}async activatePresetWhenGraphReady(id,graph,generation){for(await graph.updateComplete;generation===this.activationGeneration&&this.isConnected&&graph.isConnected&&this.selectedNodeId===id&&graph.shadowRoot?.querySelector(tag("skeleton"));)if(!await this.waitForActivationFrame(generation))return;generation===this.activationGeneration&&this.isConnected&&this.selectedNodeId===id&&this.isVisibleNode(id)&&await this.activateEntity(id)}waitForActivationFrame(generation){this.cancelActivationFrame();const ownerDocument=this.ownerDocument,ownerWindow=ownerDocument.defaultView;return!ownerWindow||!this.isConnected||generation!==this.activationGeneration?Promise.resolve(!1):new Promise(resolve=>{let settled=!1;const settle=ready=>{settled||(settled=!0,resolve(ready))};let handle;const onPageHide=()=>{this.activationFrameOwner===ownerWindow&&this.activationFrameDocument===ownerDocument&&this.activationFrameResolve===settle&&this.cancelActivationFrame()};try{handle=ownerWindow.requestAnimationFrame(()=>{const current=this.activationFrameId===handle&&this.activationFrameOwner===ownerWindow&&this.activationFrameDocument===ownerDocument&&this.activationFrameResolve===settle&&generation===this.activationGeneration&&this.isConnected&&this.ownerDocument===ownerDocument;current&&this.clearActivationFrameRecord(),settle(current)})}catch{settle(!1);return}this.activationFrameId=handle,this.activationFrameOwner=ownerWindow,this.activationFrameDocument=ownerDocument,this.activationFrameResolve=settle,this.activationFramePageHide=onPageHide,ownerWindow.addEventListener("pagehide",onPageHide,{once:!0})})}clearActivationFrameRecord(){this.activationFramePageHide&&this.activationFrameOwner?.removeEventListener("pagehide",this.activationFramePageHide),this.activationFrameId=void 0,this.activationFrameOwner=void 0,this.activationFrameDocument=void 0,this.activationFrameResolve=void 0,this.activationFramePageHide=void 0}cancelActivationFrame(){const handle=this.activationFrameId,ownerWindow=this.activationFrameOwner,settle=this.activationFrameResolve;this.clearActivationFrameRecord();try{handle!==void 0&&ownerWindow?.cancelAnimationFrame(handle)}finally{settle?.(!1)}}invalidateActivation(){return this.activationGeneration+=1,this.cancelActivationFrame(),this.activationGeneration}resumePresetActivation(){if(this.graphSource!==void 0){this.sourceInspect=void 0;return}const id=this.selectedNodeId,graph=this.graphEl;if(!id||!graph||!this.isVisibleNode(id))return;const generation=this.invalidateActivation();this.activatePresetWhenGraphReady(id,graph,generation)}setInternalSelectedNodeId(value){Object.is(this.selectedNodeId,value)||(this.internalSelectionAssignment={value},this.sourceAssigned=!0,this.selectedNodeId=value,this.sourceAssigned=!1,this.emit("lr-selection-change",{selectedNodeId:value,selectedNodeIds:value?[value]:[],selectedEdgeIds:[]}))}disconnectedCallback(){this.sourceEpoch++,this.sourceInspect=void 0,this.sourceDetailsOpen=!1,this.sourceSearchIntent=void 0,this.internalSelectionAssignment=void 0,this.sourceChild&&setGraphSourceComposition(this.sourceChild,void 0),this.sourceChildBinding=void 0,++this.optionalGeneration,this.optionalRequest=!1,this.optionalPending=void 0,this.invalidateActivation(),this.pendingNodeId=void 0,this.trackedNodeEl=void 0,this.hoveredNodeId=null,super.disconnectedCallback()}adoptedCallback(){super.adoptedCallback(),++this.optionalGeneration,this.optionalRequest=!1,this.optionalPending=void 0,this.invalidateActivation(),this.announcements.adopted(),this.sourceEpoch++,this.sourceInspect=void 0,this.sourceDetailsOpen=!1,this.sourceChildBinding=void 0,this.isConnected&&this.resumePresetActivation()}rebuildDerivedCollections(){const model=this.graphModel;this.nodeById=new Map(model.nodes.map(node=>[node.id,node])),this.communityLabelById=new Map(model.communities.map(community=>[community.id,community.label]));const linksByNodeId=new Map,degrees=new Map;for(const link of model.links)for(const id of new Set([link.source,link.target])){const adjacent=linksByNodeId.get(id);adjacent?adjacent.push(link):linksByNodeId.set(id,[link]),degrees.set(id,(degrees.get(id)??0)+1)}this.linksByNodeId=linksByNodeId,this.degreeByNodeId=degrees}isVisibleGraphNode(node){return node.type==null||!this.canonicalHiddenTypes.includes(node.type)}isVisibleNode(id){const node=this.nodeById.get(id);return!!node&&this.isVisibleGraphNode(node)}canActivateNode(id){const node=this.nodeById.get(id);return node?this.isVisibleGraphNode(node):!this.hasUpdated&&this.graphModel.nodes.length===0}nodeLabel(id){const node=this.graphSource!==void 0?this.sourceEntity?.id===id?this.sourceEntity:void 0:this.nodeById.get(id);return node?.label||node?.accessibleLabel||id}degreeOf(id){return this.degreeByNodeId.get(id)??0}entityFor(id){const node=this.graphSource!==void 0?this.sourceEntity?.id===id?this.sourceEntity:void 0:this.nodeById.get(id);if(!node)return;const details=this.entityDetails[id];return{id:node.id,label:node.label||node.accessibleLabel||node.id,type:node.type,communityId:node.communityId,description:details?.description,properties:details?.properties,degree:details?.degree??(this.graphSource===void 0?this.degreeOf(node.id):void 0)}}communityLabelFor(communityId){return communityId?this.communityLabelById.get(communityId)??communityId:""}neighborRowsFor(id){const rows=[];for(const link of this.linksByNodeId.get(id)??[])if(link.source===id){const node=this.entityFor(link.target);node&&this.isVisibleNode(link.target)&&rows.push({relation:link.label??"",direction:"out",node})}else if(link.target===id){const node=this.entityFor(link.source);node&&this.isVisibleNode(link.source)&&rows.push({relation:link.label??"",direction:"in",node})}return rows}searchableNamesOf(node){return[node.label,node.accessibleLabel,node.id].filter(name=>typeof name=="string"&&name!=="")}matchingNodes(){if(this.graphSource!==void 0)return;const query2=this.query??"",locale=this.effectiveLocale,model=this.graphModel,hidden=this.canonicalHiddenTypes,memo=this.matchesMemo;if(memo?.[0]===query2&&memo[1]===locale&&memo[2]===model&&memo[3]===hidden)return memo[4];const q=query2.trim().toLocaleLowerCase(locale);let matches;if(q){const hiddenTypes=new Set(hidden);matches=model.nodes.filter(node=>(node.type==null||!hiddenTypes.has(node.type))&&this.searchableNamesOf(node).some(name=>name.toLocaleLowerCase(locale).includes(q)))}return this.matchesMemo=[query2,locale,model,hidden,matches],matches}searchResultAnnouncement(matches=this.matchingNodes()){return matches?matches.length===0?this.localize("viewerSearchNoMatches"):this.localize("viewerSearchMatchCount",void 0,{count:getNumberFormat(this.effectiveLocale).format(matches.length),pluralCount:matches.length}):""}neighborIdsOf(id){const ids=new Set;for(const link of this.linksByNodeId.get(id)??[])link.source===id?ids.add(link.target):link.target===id&&ids.add(link.source);return ids}linkKey(link){return graphLinkIdentity(link)}dimmingProjection(){if(this.graphSource!==void 0)return{nodes:[],links:[]};const model=this.graphModel,matches=this.matchingNodes(),focus=matches?null:this.selectedNodeId??(this.highlight==="hover"?this.hoveredNodeId:null),key=[model,this.highlight,matches,focus];if(this.dimmingMemo&&key.every((value,index)=>value===this.dimmingMemo.key[index]))return this.dimmingMemo;let nodes=[];if(this.highlight!=="none"){const keep=matches?new Set(matches.map(node=>node.id)):focus?this.neighborIdsOf(focus):void 0;focus&&keep.add(focus),keep&&(nodes=model.nodes.filter(node=>!keep.has(node.id)).map(node=>node.id))}const dimmed=new Set(nodes),links=dimmed.size?model.links.filter(link=>dimmed.has(link.source)||dimmed.has(link.target)).map(link=>this.linkKey(link)):[];return this.dimmingMemo={key,nodes,links},this.dimmingMemo}get computedDimmedNodeIds(){return this.dimmingProjection().nodes}get computedDimmedLinkIds(){return this.dimmingProjection().links}togglePin(id){if(!isNonBlankIdentity(id))return;const pinnedNodeIds=this.canonicalPinnedNodeIds,wasPinned=pinnedNodeIds.includes(id),next=wasPinned?pinnedNodeIds.filter(existing=>existing!==id):[...pinnedNodeIds,id];this.pinnedNodeIds=next,this.pinLiveText=this.localize(wasPinned?"graphExplorerUnpinned":"graphExplorerPinned",void 0,{label:this.nodeLabel(id)}),this.announcements.announcePolite(this.pinLiveText),this.emit("lr-pin-change",{pinnedNodeIds:next})}requestPath(){const pinnedNodeIds=this.canonicalPinnedNodeIds;if(pinnedNodeIds.length!==2)return;const[sourceNodeId,targetNodeId]=pinnedNodeIds;this.emit("lr-path-request",{sourceNodeId,targetNodeId})}fit(options){this.graphEl?.fit(options)}resetView(){this.graphEl?.fit()}async focusNode(id,options){return this.graphSource===void 0&&!this.isVisibleNode(id)?!1:await this.graphEl?.focusNode(id,options)??!1}async activateEntity(id){if(this.graphSource!==void 0)return this.activateSourceEntity(id);if(!this.canActivateNode(id))return;const generation=this.invalidateActivation();this.setInternalSelectedNodeId(id),this.trackedNodeEl=void 0;const graph=this.graphEl,focused=graph?await graph.focusNode(id):!1;if(generation!==this.activationGeneration||!this.isConnected||this.selectedNodeId!==id||!this.isVisibleNode(id)||!focused)return;const rect=graph?.getBoundingClientRect();if(!rect)return;const projected=graph?.view==="3d"?graph.getNodeScreenPosition(id):void 0;this.openDetailAt(id,{x:rect.left+(projected?.x??rect.width/2),y:rect.top+(projected?.y??rect.height/2),width:0,height:0})}openDetailAt(id,rect){const popover=this.popoverEl;popover&&(popover.accessibleLabel=this.entityFor(id)?.label||"",popover.showAt(rect))}resolveDirectClickAnchor(event){if(this.view==="3d"){this.trackedNodeEl=void 0;const graph=this.graphEl,position=this.selectedNodeId?graph?.getNodeScreenPosition(this.selectedNodeId):void 0,rect2=graph?.getBoundingClientRect();if(position&&rect2)return{x:rect2.left+position.x,y:rect2.top+position.y,width:0,height:0}}if(this.renderer==="canvas")return this.trackedNodeEl=void 0,{x:event.clientX,y:event.clientY,width:0,height:0};const nodeEl=event.composedPath().find(el=>isElementNode(el)&&el.matches('[part="node"]'));if(!nodeEl)return this.trackedNodeEl=void 0,{x:event.clientX,y:event.clientY,width:0,height:0};this.trackedNodeEl=nodeEl;const rect=nodeEl.getBoundingClientRect();return{x:rect.left+rect.width/2,y:rect.top,width:rect.width,height:rect.height}}inputLimitMessages(properties=["nodes","edges"]){const messages=[],format=getNumberFormat(this.effectiveLocale);for(const property2 of properties){const loss=publicCollectionTruncation(this,property2);loss&&messages.push(this.localize(property2==="nodes"?"graphNodeLimit":"graphEdgeLimit",void 0,{shown:format.format(loss.retained),total:format.format(loss.source)}))}return messages}render(){const groupLabel=retrievalSemanticLabel(this,this.label==null?this.localize("graphExplorerLabel"):this.label),groupRole=retrievalSemanticRole(this,"group"),matches=this.matchingNodes(),detailsLimit=publicCollectionTruncation(this,"entityDetails"),model=this.graphModel,pinnedNodeIds=this.canonicalPinnedNodeIds,hiddenTypes=this.canonicalHiddenTypes,selectedEntity=this.graphSource!==void 0?this.sourceEntity:this.selectedNodeId?this.nodeById.get(this.selectedNodeId):void 0,isPinned=this.selectedNodeId!=null&&pinnedNodeIds.includes(this.selectedNodeId),dimmedDeps=[this.highlight,matches,this.selectedNodeId,this.hoveredNodeId,model],detailDeps=[this.selectedNodeId,model,hiddenTypes,this.entityDetails,this.sourceEntity],sourceFilter=this.sourceFilter,sourceCurrent=this.sourceCurrent(),renderedSource=this.graphSource,renderedEpoch=this.sourceEpoch,renderedOwner=this.ownerDocument,actionCurrent=renderedSource!==void 0?sourceCurrent:()=>this.graphSource===void 0&&this.sourceEpoch===renderedEpoch&&this.isConnected&&this.ownerDocument===renderedOwner;return html`
1
+ import{__decorate}from"tslib";import{ENGINE_3D_PREFERENCE}from"../../../internal/engine-3d.js";import{ref}from"lit/directives/ref.js";import{setGraphSourceComposition,resolveGraphSourceComposition,focusGraphSourceComposition}from"../graph/graph-source-composition.js";const EMPTY_SOURCE_NODES=Object.freeze([]),EMPTY_SOURCE_EDGES=Object.freeze([]);import{collectionSupport,publicCollectionTruncation}from"../../../internal/collection-snapshot.js";import{tag}from"../../../internal/prefix.js";import{html,nothing}from"lit";import{property,state,query}from"lit/decorators.js";import{guard}from"lit/directives/guard.js";import{LyraElement}from"../../../internal/lyra-element.js";import{finiteInteger,finiteRange}from"../../../internal/numbers.js";import{srOnly}from"../../../internal/a11y.js";import{getNumberFormat}from"../../../internal/intl-cache.js";import{styles}from"./knowledge-graph-explorer.styles.js";import{retrievalSemanticLabel,retrievalSemanticRole}from"../retrieval-semantic-owner.js";import{graphLengthConverter,graphLinkIdentity,normalizeGraphModel}from"../graph/graph-model.js";import{canonicalIdentityList,isNonBlankIdentity}from"../retrieval-identity.js";import"../graph/graph.class.js";import"../graph-legend/graph-legend.class.js";import"../entity-card/entity-card.class.js";import"../neighbor-list/neighbor-list.class.js";import"../../overlays/overlay/popover.class.js";import"../../forms/input/input.class.js";import"../../forms/button/button.class.js";import{AnnouncementSinkController}from"../../../internal/announcer.js";import{LYRA_DEFAULT_graphDataListLimit,LYRA_DEFAULT_graphEdgeLimit,LYRA_DEFAULT_graphExplorerAllTypesHidden,LYRA_DEFAULT_graphExplorerClearTypes,LYRA_DEFAULT_graphExplorerFindPath,LYRA_DEFAULT_graphExplorerLabel,LYRA_DEFAULT_graphExplorerPin,LYRA_DEFAULT_graphExplorerPinned,LYRA_DEFAULT_graphExplorerPinnedHeading,LYRA_DEFAULT_graphExplorerSearchLimit,LYRA_DEFAULT_graphExplorerSearchPlaceholder,LYRA_DEFAULT_graphExplorerSearchResultsLabel,LYRA_DEFAULT_graphExplorerUnpin,LYRA_DEFAULT_graphExplorerUnpinned,LYRA_DEFAULT_graphNodeLimit}from"../../../internal/default-strings/retrieval.generated.js";import{LYRA_DEFAULT_collapse,LYRA_DEFAULT_copy,LYRA_DEFAULT_date,LYRA_DEFAULT_details,LYRA_DEFAULT_engine3dContextLost,LYRA_DEFAULT_engine3dError,LYRA_DEFAULT_engine3dLoading,LYRA_DEFAULT_engine3dShowingBuiltin,LYRA_DEFAULT_engine3dShowingList,LYRA_DEFAULT_engine3dSoftwareRendering,LYRA_DEFAULT_engine3dUnavailable,LYRA_DEFAULT_engine3dUnsupported,LYRA_DEFAULT_fieldRequired,LYRA_DEFAULT_largeDataInvalid,LYRA_DEFAULT_largeDataLimit,LYRA_DEFAULT_loading,LYRA_DEFAULT_map,LYRA_DEFAULT_navigation,LYRA_DEFAULT_open,LYRA_DEFAULT_progress,LYRA_DEFAULT_restore,LYRA_DEFAULT_search,LYRA_DEFAULT_select,LYRA_DEFAULT_statusError,LYRA_DEFAULT_viewerSearchMatchCount,LYRA_DEFAULT_viewerSearchNoMatches}from"../../../internal/default-strings/shared.generated.js";const SEARCH_RESULT_LIMIT=50;function isElementNode(value){if(typeof value!="object"||value===null)return!1;const candidate=value;return candidate.nodeType===1&&typeof candidate.matches=="function"&&typeof candidate.getBoundingClientRect=="function"}class LyraKnowledgeGraphExplorer extends LyraElement{constructor(){super(...arguments),this.sourceEpoch=0,this.sourceSearchVersion=0,this.sourceAssigned=!1,this.sourceClosing=!1,this.sourceDetailsOpen=!1,this.sourcePaint=0,this._sourcePage=0,this._sourcePageSize=100,this.sourceAccepted=snapshot=>{if(!snapshot.current()||this.graphSource===void 0||this.sourceChild?.graphSource!==this.graphSource)return;this.sourcePage!==snapshot.page&&(this.sourcePage=snapshot.page),this.sourcePaint++;const intent=this.sourceSearchIntent;if(!this.sourceFilter.invalid&&intent&&intent.epoch===this.sourceEpoch&&intent.version===this.sourceSearchVersion&&intent.query===this.query&&snapshot.query.kind==="nodes"&&snapshot.query.centerKey===null&&snapshot.query.search===intent.query&&snapshot.total!==null&&snapshot.current()){this.sourceSearchIntent=void 0;const detail={query:intent.query,matchCount:intent.query.trim()?snapshot.total:0,matchCountExact:!0,activeIndex:-1};snapshot.current()&&this.emit("lr-search-change",detail)}snapshot.current()&&this.inspectSourceSelection()},this.bindSourceChild=element=>{const graph=element;if(!graph){this.sourceChild&&setGraphSourceComposition(this.sourceChild,void 0),this.sourceChild=void 0,this.sourceChildBinding=void 0;return}this.sourceChild=graph;const size=finiteInteger(this.sourcePageSize,100,1,500),page=finiteInteger(this.sourcePage,0,0,Math.floor(Number.MAX_SAFE_INTEGER/size));if(graph.sourcePageSize!==size&&(graph.sourcePageSize=size),graph.sourcePage!==page&&(graph.sourcePage=page),this.graphSource===void 0){setGraphSourceComposition(graph,void 0),graph.graphSource!==void 0&&(graph.graphSource=void 0),this.sourceChildBinding=void 0;return}const filter=this.sourceFilter;setGraphSourceComposition(graph,{search:(this.query??"").slice(0,65536),nodeTypes:filter.nodeTypes,empty:filter.empty,accepted:this.sourceAccepted});const binding=[graph,this.graphSource,this.sourceEpoch];(!this.sourceChildBinding||binding.some((value,index)=>value!==this.sourceChildBinding[index]))&&(this.sourceChildBinding=binding,graph.graphSource=this.graphSource),this.inspectSourceSelection()},this.nodes=[],this.edges=[],this.nodeTypes=[],this.communities=[],this.entityDetails={},this.pinnedNodeIds=[],this.path=[],this.hiddenTypes=[],this.selectedNodeId=null,this.renderer="svg",this.view="2d",this._engine="builtin",this.nodeRenderer=void 0,this.glow=!1,this.fitTo="none",this.width=800,this.height=600,this.highlight="selection",this.query="",this.pinLiveText="",this.hoveredNodeId=null,this.activeResult=0,this.activationGeneration=0,this.nodeById=new Map,this.linksByNodeId=new Map,this.degreeByNodeId=new Map,this.communityLabelById=new Map,this.announcements=new AnnouncementSinkController(this,{eager:["polite"]}),this.optionalRequest=!1,this.optionalGeneration=0,this.pathReady=!1,this.optionalFailed=!1,this.onVisibilityChange=event=>{event.stopPropagation(),this.hiddenTypes=event.detail.hiddenTypes,this.emit("lr-hidden-types-change",{hiddenTypes:this.hiddenTypes})},this.onVisibilityChangeProposal=event=>{event.stopPropagation()},this.onSearchInput=event=>{event.stopPropagation();const value=event.detail.value;if(this.query!==value){if(this.query=value,this.graphSource!==void 0){this.sourceSearchIntent={query:value,version:this.sourceSearchVersion,epoch:this.sourceEpoch};return}this.emit("lr-search-change",{query:value,matchCount:this.matchingNodes()?.length??0,matchCountExact:!0,activeIndex:-1})}},this.onEntityActivate=event=>{event.stopPropagation(),this.activateEntity(event.detail.entityId)},this.onGraphNodeClick=event=>{const id=event.detail.nodeId;if(this.graphSource!==void 0){this.activateSourceEntity(id);return}if(!this.canActivateNode(id))return;const generation=this.invalidateActivation();if(this.setInternalSelectedNodeId(id),this.view==="3d"){const graph=this.graphEl,point=graph?.getNodeScreenPosition(id),bounds=graph?.getBoundingClientRect();if(point&&bounds){this.trackedNodeEl=void 0,this.openDetailAt(id,{x:bounds.left+point.x,y:bounds.top+point.y,width:0,height:0});return}}this.pendingNodeId=id;const ownerDocument=this.ownerDocument,ownerWindow=ownerDocument.defaultView;ownerWindow&&ownerWindow.queueMicrotask(()=>{generation===this.activationGeneration&&this.isConnected&&this.ownerDocument===ownerDocument&&this.pendingNodeId===id&&(this.pendingNodeId=void 0,this.selectedNodeId===id&&this.isVisibleNode(id)&&this.activateEntity(id))})},this.onGraphNativeClick=event=>{const id=this.pendingNodeId;id&&(this.pendingNodeId=void 0,this.openDetailAt(id,this.resolveDirectClickAnchor(event)))},this.onGraphViewportChange=()=>{const graph=this.graphEl;if(graph?.view==="3d"&&this.selectedNodeId&&this.popoverEl?.open){const point=graph.getNodeScreenPosition(this.selectedNodeId);if(point){const rect2=graph.getBoundingClientRect();this.popoverEl.showAt({x:rect2.left+point.x,y:rect2.top+point.y,width:0,height:0})}return}const el=this.trackedNodeEl,popover=this.popoverEl;if(!el?.isConnected||!popover?.open)return;const rect=el.getBoundingClientRect();popover.showAt({x:rect.left+rect.width/2,y:rect.top,width:rect.width,height:rect.height})},this.onGraphNodeEnter=event=>{this.highlight==="hover"&&(this.hoveredNodeId=event.detail.nodeId)},this.onGraphNodeLeave=event=>{this.highlight==="hover"&&this.hoveredNodeId===event.detail.nodeId&&(this.hoveredNodeId=null)},this.onResultKeyDown=event=>{const buttons=[...this.renderRoot.querySelectorAll('[part="search-result"] button')],index=buttons.indexOf(event.target),next={ArrowDown:index+1,ArrowUp:index-1,Home:0,End:buttons.length-1}[event.key];index<0||next===void 0||(event.preventDefault(),this.activeResult=Math.max(0,Math.min(buttons.length-1,next)),buttons[this.activeResult].focus())},this.onPopoverHide=()=>{if(this.graphSource!==void 0?this.closeSourceDetails(!1):this.sourceDetailsOpen=!1,this.sourceClosing){this.sourceClosing=!1;return}this.invalidateActivation(),this.trackedNodeEl=void 0,this.setInternalSelectedNodeId(null)}}static{this.defaultStrings={...super.defaultStrings,collapse:LYRA_DEFAULT_collapse,copy:LYRA_DEFAULT_copy,date:LYRA_DEFAULT_date,details:LYRA_DEFAULT_details,engine3dContextLost:LYRA_DEFAULT_engine3dContextLost,engine3dError:LYRA_DEFAULT_engine3dError,engine3dLoading:LYRA_DEFAULT_engine3dLoading,engine3dShowingBuiltin:LYRA_DEFAULT_engine3dShowingBuiltin,engine3dShowingList:LYRA_DEFAULT_engine3dShowingList,engine3dSoftwareRendering:LYRA_DEFAULT_engine3dSoftwareRendering,engine3dUnavailable:LYRA_DEFAULT_engine3dUnavailable,engine3dUnsupported:LYRA_DEFAULT_engine3dUnsupported,fieldRequired:LYRA_DEFAULT_fieldRequired,graphDataListLimit:LYRA_DEFAULT_graphDataListLimit,graphEdgeLimit:LYRA_DEFAULT_graphEdgeLimit,graphExplorerAllTypesHidden:LYRA_DEFAULT_graphExplorerAllTypesHidden,graphExplorerClearTypes:LYRA_DEFAULT_graphExplorerClearTypes,graphExplorerFindPath:LYRA_DEFAULT_graphExplorerFindPath,graphExplorerLabel:LYRA_DEFAULT_graphExplorerLabel,graphExplorerPin:LYRA_DEFAULT_graphExplorerPin,graphExplorerPinned:LYRA_DEFAULT_graphExplorerPinned,graphExplorerPinnedHeading:LYRA_DEFAULT_graphExplorerPinnedHeading,graphExplorerSearchLimit:LYRA_DEFAULT_graphExplorerSearchLimit,graphExplorerSearchPlaceholder:LYRA_DEFAULT_graphExplorerSearchPlaceholder,graphExplorerSearchResultsLabel:LYRA_DEFAULT_graphExplorerSearchResultsLabel,graphExplorerUnpin:LYRA_DEFAULT_graphExplorerUnpin,graphExplorerUnpinned:LYRA_DEFAULT_graphExplorerUnpinned,graphNodeLimit:LYRA_DEFAULT_graphNodeLimit,largeDataInvalid:LYRA_DEFAULT_largeDataInvalid,largeDataLimit:LYRA_DEFAULT_largeDataLimit,loading:LYRA_DEFAULT_loading,map:LYRA_DEFAULT_map,navigation:LYRA_DEFAULT_navigation,open:LYRA_DEFAULT_open,progress:LYRA_DEFAULT_progress,restore:LYRA_DEFAULT_restore,search:LYRA_DEFAULT_search,select:LYRA_DEFAULT_select,statusError:LYRA_DEFAULT_statusError,viewerSearchMatchCount:LYRA_DEFAULT_viewerSearchMatchCount,viewerSearchNoMatches:LYRA_DEFAULT_viewerSearchNoMatches}}static{this.collectionSupport=collectionSupport}static{this.ownedCollectionProperties=Object.freeze(["nodes","edges","nodeTypes","communities","entityDetails","pinnedNodeIds","path","hiddenTypes"])}static{this.styles=[LyraElement.styles,styles,srOnly]}static{this.immutableEventDetails=Object.freeze(["lr-selection-change","lr-pin-change","lr-hidden-types-change"])}get graphSource(){return this._graphSource}set graphSource(value){const previous=this._graphSource;this._graphSource=value,this.requestUpdate("graphSource",previous)}get sourcePage(){return this._sourcePage}set sourcePage(value){const old=this._sourcePage;this._sourcePage=value;const size=finiteInteger(this.sourcePageSize,100,1,500),page=finiteInteger(value,0,0,Math.floor(Number.MAX_SAFE_INTEGER/size));this.sourceChild&&this.sourceChild.sourcePage!==page&&(this.sourceChild.sourcePage=page),this.requestUpdate("sourcePage",old)}get sourcePageSize(){return this._sourcePageSize}set sourcePageSize(value){const old=this._sourcePageSize;this._sourcePageSize=value,Object.is(old,value)||(this.sourcePage=0);const size=finiteInteger(value,100,1,500);this.sourceChild&&this.sourceChild.sourcePageSize!==size&&(this.sourceChild.sourcePageSize=size),this.requestUpdate("sourcePageSize",old)}get sourceTotal(){return this.graphSource===void 0||this.sourceFilter.invalid?null:this.sourceFilter.empty?0:this.sourceChild?.graphSource===this.graphSource?this.sourceChild.sourceTotal:null}get sourceFilter(){const hidden=this.canonicalHiddenTypes;if(!hidden.length)return{nodeTypes:[],empty:!1,invalid:!1};const catalog=canonicalIdentityList(this.nodeTypes.map(type=>type.id));let units=0;if(catalog.length>500||catalog.some(type=>type.length>65536||(units+=type.length)>2e6))return{nodeTypes:[],empty:!0,invalid:!0};const types=catalog.filter(type=>!hidden.includes(type));return{nodeTypes:types,empty:types.length===0,invalid:!1}}sourceCurrent(){const source=this.graphSource,epoch=this.sourceEpoch,generation=this.activationGeneration,owner=this.ownerDocument;let revision;try{revision=source?.revision}catch{return()=>!1}return()=>{try{return source?.revision===revision&&this.graphSource===source&&this.sourceEpoch===epoch&&this.activationGeneration===generation&&this.isConnected&&this.ownerDocument===owner}catch{return!1}}}inspectSourceSelection(){const graph=this.sourceChild,id=this.selectedNodeId;if(!graph||this.graphSource===void 0||this.sourceFilter.empty||!id)return;const signature=[graph,this.graphSource,this.sourceEpoch,id];if(this.sourceInspect&&signature.every((value,index)=>value===this.sourceInspect[index]))return;this.sourceInspect=signature;const current=this.sourceCurrent();resolveGraphSourceComposition(graph,[`node:${id}`]).then(result=>{if(!result||!result.current()||!current()||this.selectedNodeId!==id){this.sourceInspect===signature&&(this.sourceInspect=void 0);return}const record=result.records.find(row=>row.key===`node:${id}`);if(!record||record.value.kind!=="node"){this.selectedNodeId=null;return}this.sourceEntity=record.value.value})}async revealSourceKey(key){if(this.graphSource===void 0)return!1;this.query="",this.hiddenTypes=[];const current=this.sourceCurrent();if(await this.updateComplete,!current())return!1;const revealed=await this.sourceChild?.revealSourceKey(key);return current()&&revealed===!0}closeSourceDetails(closePopover=!0){this.sourceDetailsOpen=!1;const neighbors=this.renderRoot?.querySelector('[part="detail-neighbors"]');neighbors?.graphSource!==void 0&&(neighbors.graphSource=void 0),closePopover&&this.popoverEl?.open&&(this.sourceClosing=!0,this.popoverEl.open=!1)}requestUpdate(...args){const name=args[0];this.sourceEpoch!==void 0&&(name==="graphSource"||name===void 0)&&(this.sourceEpoch++,this.sourceInspect=void 0,this.sourceEntity=void 0,this.closeSourceDetails(),this.sourceSearchIntent=void 0,this.internalSelectionAssignment=void 0,this.invalidateActivation(),this.sourceChild?.graphSource!==void 0&&(this.sourceChild.graphSource=void 0)),name==="query"&&(this.sourceSearchVersion=(this.sourceSearchVersion??0)+1,this.sourceSearchIntent=void 0),this.graphSource!==void 0&&(name==="hiddenTypes"||name==="nodeTypes"||name==="selectedNodeId"&&!this.sourceAssigned)&&(this.invalidateActivation(),this.sourceInspect=void 0,this.closeSourceDetails(),name==="selectedNodeId"&&(this.sourceEntity=void 0,this.internalSelectionAssignment=void 0)),this.graphSource!==void 0&&this.sourceChild&&["query","hiddenTypes","nodeTypes"].includes(String(name))&&this.bindSourceChild(this.sourceChild),super.requestUpdate(...args)}async activateSourceEntity(id){if(!isNonBlankIdentity(id)||id.length+5>65536||this.sourceFilter.empty)return;const graph=this.sourceChild;if(!graph)return;const mounted=graph.view==="list"&&[...graph.renderRoot.querySelectorAll("[data-source-key]")].some(row=>row.dataset.sourceKey===`node:${id}`);graph.view==="list"&&!mounted&&(this.query="",this.hiddenTypes=[]),this.invalidateActivation();const current=this.sourceCurrent();if(await this.updateComplete,!current()||this.sourceChild!==graph)return;const result=await resolveGraphSourceComposition(graph,[`node:${id}`]);if(!current()||!result?.current())return;const record=result.records.find(row=>row.key===`node:${id}`);if(!record||record.value.kind!=="node"||(this.sourceEntity=record.value.value,this.sourceInspect=[graph,this.graphSource,this.sourceEpoch,id],this.setInternalSelectedNodeId(id),!current()||this.selectedNodeId!==id))return;const focused=await focusGraphSourceComposition(graph,`node:${id}`);if(await graph.updateComplete,!current()||!focused?.()||this.selectedNodeId!==id)return;const target=graph.view==="list"?[...graph.renderRoot.querySelectorAll("[data-source-key]")].find(row=>row.dataset.sourceKey===`node:${id}`):void 0,position=graph.view!=="list"?graph.getNodeScreenPosition(id):void 0,bounds=target?.getBoundingClientRect()??graph.getBoundingClientRect();!current()||!focused()||(graph.view==="list"?!target:!position)||(this.openDetailAt(id,{x:bounds.left+(position?.x??bounds.width/2),y:bounds.top+(position?.y??bounds.height/2),width:0,height:0}),current()&&focused()&&this.popoverEl?.open&&(this.sourceDetailsOpen=!0))}get engine(){return this._engine}set engine(value){const old=this._engine;this._engine=ENGINE_3D_PREFERENCE.normalize(value),this.requestUpdate("engine",old)}get graphModel(){const nodes=this.graphSource===void 0?this.nodes:EMPTY_SOURCE_NODES,edges=this.graphSource===void 0?this.edges:EMPTY_SOURCE_EDGES,sources=this.normalizedGraphSources;return(!sources||sources[0]!==nodes||sources[1]!==edges||sources[2]!==this.nodeTypes||sources[3]!==this.communities)&&(this.normalizedGraphSources=[nodes,edges,this.nodeTypes,this.communities],this.normalizedGraphModel=normalizeGraphModel(nodes,edges,this.nodeTypes,this.communities)),this.normalizedGraphModel}get canonicalPinnedNodeIds(){return canonicalIdentityList(this.pinnedNodeIds)}get canonicalHiddenTypes(){return canonicalIdentityList(this.hiddenTypes)}async loadOptionalPath(){await import("../path-strip/path-strip.js")}ensureOptionalChildren(){const path=this.path.length>0,request=path;if(request===this.optionalRequest)return;this.optionalRequest=request;const generation=++this.optionalGeneration;if(this.optionalPending=void 0,this.optionalFailed=!1,!path||this.pathReady)return;this.hasUpdated&&this.announcements.announcePolite(this.localize("loading"));const pending=this.loadOptionalPath().then(()=>{!this.isConnected||generation!==this.optionalGeneration||(this.pathReady||=path)},()=>{!this.isConnected||generation!==this.optionalGeneration||(this.optionalFailed=!0,this.announcements.announcePolite(this.localize("statusError")))}).then(()=>{!this.isConnected||generation!==this.optionalGeneration||(this.optionalPending=void 0,this.requestUpdate())});this.optionalPending=pending}async getUpdateComplete(){const complete=await super.getUpdateComplete(),pending=this.optionalPending;return pending?(await pending,this.getUpdateComplete()):complete}connectedCallback(){super.connectedCallback(),this.hasUpdated&&(this.resumePresetActivation(),this.requestUpdate())}willUpdate(changed){if(super.willUpdate(changed),this.hasUpdated&&(changed.has("nodes")||changed.has("edges"))){const messages=this.inputLimitMessages(["nodes","edges"].filter(property2=>changed.has(property2)));messages.length&&this.announcements.announcePolite(messages.join(" "))}this.ensureOptionalChildren(),this.graphSource===void 0&&((changed.has("nodes")||changed.has("edges")||changed.has("communities")||changed.has("graphSource"))&&this.rebuildDerivedCollections(),this.hoveredNodeId&&!this.isVisibleNode(this.hoveredNodeId)&&(this.hoveredNodeId=null),(changed.has("nodes")||changed.has("hiddenTypes")||changed.has("graphSource"))&&this.selectedNodeId&&!this.isVisibleNode(this.selectedNodeId)&&(this.invalidateActivation(),this.setInternalSelectedNodeId(null),this.popoverEl&&(this.popoverEl.open=!1)),this.hasUpdated&&(this.query??"").trim()&&(changed.has("query")||changed.has("nodes")||changed.has("hiddenTypes")||changed.has("locale")||changed.has("strings"))&&this.announcements.announcePolite(this.searchResultAnnouncement()))}updated(changed){if(super.updated(changed),this.graphSource!==void 0){this.bindSourceChild(this.graphEl);return}if(changed.has("camera")&&this.view==="3d"&&this.graphEl&&this.reanchorAfterCameraUpdate(this.graphEl,this.camera),!changed.has("selectedNodeId"))return;const internallyAssigned=this.internalSelectionAssignment!==void 0&&Object.is(this.internalSelectionAssignment.value,this.selectedNodeId);if(this.internalSelectionAssignment=void 0,internallyAssigned)return;const generation=this.invalidateActivation(),id=this.selectedNodeId;if(!isNonBlankIdentity(id)){id!==null&&(this.selectedNodeId=null),this.popoverEl&&(this.popoverEl.open=!1);return}const graph=this.graphEl;graph&&this.isVisibleNode(id)&&this.activatePresetWhenGraphReady(id,graph,generation)}async reanchorAfterCameraUpdate(graph,camera){await graph.updateComplete,this.isConnected&&this.graphEl===graph&&this.camera===camera&&this.view==="3d"&&this.onGraphViewportChange()}async activatePresetWhenGraphReady(id,graph,generation){for(await graph.updateComplete;generation===this.activationGeneration&&this.isConnected&&graph.isConnected&&this.selectedNodeId===id&&graph.shadowRoot?.querySelector(tag("skeleton"));)if(!await this.waitForActivationFrame(generation))return;generation===this.activationGeneration&&this.isConnected&&this.selectedNodeId===id&&this.isVisibleNode(id)&&await this.activateEntity(id)}waitForActivationFrame(generation){this.cancelActivationFrame();const ownerDocument=this.ownerDocument,ownerWindow=ownerDocument.defaultView;return!ownerWindow||!this.isConnected||generation!==this.activationGeneration?Promise.resolve(!1):new Promise(resolve=>{let settled=!1;const settle=ready=>{settled||(settled=!0,resolve(ready))};let handle;const onPageHide=()=>{this.activationFrameOwner===ownerWindow&&this.activationFrameDocument===ownerDocument&&this.activationFrameResolve===settle&&this.cancelActivationFrame()};try{handle=ownerWindow.requestAnimationFrame(()=>{const current=this.activationFrameId===handle&&this.activationFrameOwner===ownerWindow&&this.activationFrameDocument===ownerDocument&&this.activationFrameResolve===settle&&generation===this.activationGeneration&&this.isConnected&&this.ownerDocument===ownerDocument;current&&this.clearActivationFrameRecord(),settle(current)})}catch{settle(!1);return}this.activationFrameId=handle,this.activationFrameOwner=ownerWindow,this.activationFrameDocument=ownerDocument,this.activationFrameResolve=settle,this.activationFramePageHide=onPageHide,ownerWindow.addEventListener("pagehide",onPageHide,{once:!0})})}clearActivationFrameRecord(){this.activationFramePageHide&&this.activationFrameOwner?.removeEventListener("pagehide",this.activationFramePageHide),this.activationFrameId=void 0,this.activationFrameOwner=void 0,this.activationFrameDocument=void 0,this.activationFrameResolve=void 0,this.activationFramePageHide=void 0}cancelActivationFrame(){const handle=this.activationFrameId,ownerWindow=this.activationFrameOwner,settle=this.activationFrameResolve;this.clearActivationFrameRecord();try{handle!==void 0&&ownerWindow?.cancelAnimationFrame(handle)}finally{settle?.(!1)}}invalidateActivation(){return this.activationGeneration+=1,this.cancelActivationFrame(),this.activationGeneration}resumePresetActivation(){if(this.graphSource!==void 0){this.sourceInspect=void 0;return}const id=this.selectedNodeId,graph=this.graphEl;if(!id||!graph||!this.isVisibleNode(id))return;const generation=this.invalidateActivation();this.activatePresetWhenGraphReady(id,graph,generation)}setInternalSelectedNodeId(value){Object.is(this.selectedNodeId,value)||(this.internalSelectionAssignment={value},this.sourceAssigned=!0,this.selectedNodeId=value,this.sourceAssigned=!1,this.emit("lr-selection-change",{selectedNodeId:value,selectedNodeIds:value?[value]:[],selectedEdgeIds:[]}))}disconnectedCallback(){this.sourceEpoch++,this.sourceInspect=void 0,this.sourceDetailsOpen=!1,this.sourceSearchIntent=void 0,this.internalSelectionAssignment=void 0,this.sourceChild&&setGraphSourceComposition(this.sourceChild,void 0),this.sourceChildBinding=void 0,++this.optionalGeneration,this.optionalRequest=!1,this.optionalPending=void 0,this.invalidateActivation(),this.pendingNodeId=void 0,this.trackedNodeEl=void 0,this.hoveredNodeId=null,super.disconnectedCallback()}adoptedCallback(){super.adoptedCallback(),++this.optionalGeneration,this.optionalRequest=!1,this.optionalPending=void 0,this.invalidateActivation(),this.announcements.adopted(),this.sourceEpoch++,this.sourceInspect=void 0,this.sourceDetailsOpen=!1,this.sourceChildBinding=void 0,this.isConnected&&this.resumePresetActivation()}rebuildDerivedCollections(){const model=this.graphModel;this.nodeById=new Map(model.nodes.map(node=>[node.id,node])),this.communityLabelById=new Map(model.communities.map(community=>[community.id,community.label]));const linksByNodeId=new Map,degrees=new Map;for(const link of model.links)for(const id of new Set([link.source,link.target])){const adjacent=linksByNodeId.get(id);adjacent?adjacent.push(link):linksByNodeId.set(id,[link]),degrees.set(id,(degrees.get(id)??0)+1)}this.linksByNodeId=linksByNodeId,this.degreeByNodeId=degrees}isVisibleGraphNode(node){return node.type==null||!this.canonicalHiddenTypes.includes(node.type)}isVisibleNode(id){const node=this.nodeById.get(id);return!!node&&this.isVisibleGraphNode(node)}canActivateNode(id){const node=this.nodeById.get(id);return node?this.isVisibleGraphNode(node):!this.hasUpdated&&this.graphModel.nodes.length===0}nodeLabel(id){const node=this.graphSource!==void 0?this.sourceEntity?.id===id?this.sourceEntity:void 0:this.nodeById.get(id);return node?.label||node?.accessibleLabel||id}degreeOf(id){return this.degreeByNodeId.get(id)??0}entityFor(id){const node=this.graphSource!==void 0?this.sourceEntity?.id===id?this.sourceEntity:void 0:this.nodeById.get(id);if(!node)return;const details=this.entityDetails[id];return{id:node.id,label:node.label||node.accessibleLabel||node.id,type:node.type,communityId:node.communityId,description:details?.description,properties:details?.properties,degree:details?.degree??(this.graphSource===void 0?this.degreeOf(node.id):void 0)}}communityLabelFor(communityId){return communityId?this.communityLabelById.get(communityId)??communityId:""}neighborRowsFor(id){const rows=[];for(const link of this.linksByNodeId.get(id)??[])if(link.source===id){const node=this.entityFor(link.target);node&&this.isVisibleNode(link.target)&&rows.push({relation:link.label??"",direction:"out",node})}else if(link.target===id){const node=this.entityFor(link.source);node&&this.isVisibleNode(link.source)&&rows.push({relation:link.label??"",direction:"in",node})}return rows}searchableNamesOf(node){return[node.label,node.accessibleLabel,node.id].filter(name=>typeof name=="string"&&name!=="")}matchingNodes(){if(this.graphSource!==void 0)return;const query2=this.query??"",locale=this.effectiveLocale,model=this.graphModel,hidden=this.canonicalHiddenTypes,memo=this.matchesMemo;if(memo?.[0]===query2&&memo[1]===locale&&memo[2]===model&&memo[3]===hidden)return memo[4];const q=query2.trim().toLocaleLowerCase(locale);let matches;if(q){const hiddenTypes=new Set(hidden);matches=model.nodes.filter(node=>(node.type==null||!hiddenTypes.has(node.type))&&this.searchableNamesOf(node).some(name=>name.toLocaleLowerCase(locale).includes(q)))}return this.matchesMemo=[query2,locale,model,hidden,matches],matches}searchResultAnnouncement(matches=this.matchingNodes()){return matches?matches.length===0?this.localize("viewerSearchNoMatches"):this.localize("viewerSearchMatchCount",void 0,{count:getNumberFormat(this.effectiveLocale).format(matches.length),pluralCount:matches.length}):""}neighborIdsOf(id){const ids=new Set;for(const link of this.linksByNodeId.get(id)??[])link.source===id?ids.add(link.target):link.target===id&&ids.add(link.source);return ids}linkKey(link){return graphLinkIdentity(link)}dimmingProjection(){if(this.graphSource!==void 0)return{nodes:[],links:[]};const model=this.graphModel,matches=this.matchingNodes(),focus=matches?null:this.selectedNodeId??(this.highlight==="hover"?this.hoveredNodeId:null),key=[model,this.highlight,matches,focus];if(this.dimmingMemo&&key.every((value,index)=>value===this.dimmingMemo.key[index]))return this.dimmingMemo;let nodes=[];if(this.highlight!=="none"){const keep=matches?new Set(matches.map(node=>node.id)):focus?this.neighborIdsOf(focus):void 0;focus&&keep.add(focus),keep&&(nodes=model.nodes.filter(node=>!keep.has(node.id)).map(node=>node.id))}const dimmed=new Set(nodes),links=dimmed.size?model.links.filter(link=>dimmed.has(link.source)||dimmed.has(link.target)).map(link=>this.linkKey(link)):[];return this.dimmingMemo={key,nodes,links},this.dimmingMemo}get computedDimmedNodeIds(){return this.dimmingProjection().nodes}get computedDimmedLinkIds(){return this.dimmingProjection().links}togglePin(id){if(!isNonBlankIdentity(id))return;const pinnedNodeIds=this.canonicalPinnedNodeIds,wasPinned=pinnedNodeIds.includes(id),next=wasPinned?pinnedNodeIds.filter(existing=>existing!==id):[...pinnedNodeIds,id];this.pinnedNodeIds=next,this.pinLiveText=this.localize(wasPinned?"graphExplorerUnpinned":"graphExplorerPinned",void 0,{label:this.nodeLabel(id)}),this.announcements.announcePolite(this.pinLiveText),this.emit("lr-pin-change",{pinnedNodeIds:next})}requestPath(){const pinnedNodeIds=this.canonicalPinnedNodeIds;if(pinnedNodeIds.length!==2)return;const[sourceNodeId,targetNodeId]=pinnedNodeIds;this.emit("lr-path-request",{sourceNodeId,targetNodeId})}fit(options){this.graphEl?.fit(options)}resetView(){this.graphEl?.fit()}async focusNode(id,options){return this.graphSource===void 0&&!this.isVisibleNode(id)?!1:await this.graphEl?.focusNode(id,options)??!1}async activateEntity(id){if(this.graphSource!==void 0)return this.activateSourceEntity(id);if(!this.canActivateNode(id))return;const generation=this.invalidateActivation();this.setInternalSelectedNodeId(id),this.trackedNodeEl=void 0;const graph=this.graphEl,focused=graph?await graph.focusNode(id):!1;if(generation!==this.activationGeneration||!this.isConnected||this.selectedNodeId!==id||!this.isVisibleNode(id)||!focused)return;const rect=graph?.getBoundingClientRect();if(!rect)return;const projected=graph?.view==="3d"?graph.getNodeScreenPosition(id):void 0;this.openDetailAt(id,{x:rect.left+(projected?.x??rect.width/2),y:rect.top+(projected?.y??rect.height/2),width:0,height:0})}openDetailAt(id,rect){const popover=this.popoverEl;popover&&(popover.accessibleLabel=this.entityFor(id)?.label||"",popover.showAt(rect))}resolveDirectClickAnchor(event){if(this.view==="3d"){this.trackedNodeEl=void 0;const graph=this.graphEl,position=this.selectedNodeId?graph?.getNodeScreenPosition(this.selectedNodeId):void 0,rect2=graph?.getBoundingClientRect();if(position&&rect2)return{x:rect2.left+position.x,y:rect2.top+position.y,width:0,height:0}}if(this.renderer==="canvas")return this.trackedNodeEl=void 0,{x:event.clientX,y:event.clientY,width:0,height:0};const nodeEl=event.composedPath().find(el=>isElementNode(el)&&el.matches('[part="node"]'));if(!nodeEl)return this.trackedNodeEl=void 0,{x:event.clientX,y:event.clientY,width:0,height:0};this.trackedNodeEl=nodeEl;const rect=nodeEl.getBoundingClientRect();return{x:rect.left+rect.width/2,y:rect.top,width:rect.width,height:rect.height}}inputLimitMessages(properties=["nodes","edges"]){const messages=[],format=getNumberFormat(this.effectiveLocale);for(const property2 of properties){const loss=publicCollectionTruncation(this,property2);loss&&messages.push(this.localize(property2==="nodes"?"graphNodeLimit":"graphEdgeLimit",void 0,{shown:format.format(loss.retained),total:format.format(loss.source)}))}return messages}render(){const groupLabel=retrievalSemanticLabel(this,this.label==null?this.localize("graphExplorerLabel"):this.label),groupRole=retrievalSemanticRole(this,"group"),matches=this.matchingNodes(),detailsLimit=publicCollectionTruncation(this,"entityDetails"),model=this.graphModel,pinnedNodeIds=this.canonicalPinnedNodeIds,hiddenTypes=this.canonicalHiddenTypes,selectedEntity=this.graphSource!==void 0?this.sourceEntity:this.selectedNodeId?this.nodeById.get(this.selectedNodeId):void 0,isPinned=this.selectedNodeId!=null&&pinnedNodeIds.includes(this.selectedNodeId),dimmedDeps=[this.highlight,matches,this.selectedNodeId,this.hoveredNodeId,model],detailDeps=[this.selectedNodeId,model,hiddenTypes,this.entityDetails,this.sourceEntity],sourceFilter=this.sourceFilter,sourceCurrent=this.sourceCurrent(),renderedSource=this.graphSource,renderedEpoch=this.sourceEpoch,renderedOwner=this.ownerDocument,actionCurrent=renderedSource!==void 0?sourceCurrent:()=>this.graphSource===void 0&&this.sourceEpoch===renderedEpoch&&this.isConnected&&this.ownerDocument===renderedOwner;return html`
2
2
  <div
3
3
  part="base"
4
4
  role=${groupRole??nothing}
@@ -83,6 +83,8 @@ import{__decorate}from"tslib";import{ENGINE_3D_PREFERENCE}from"../../../internal
83
83
  renderer=${this.renderer}
84
84
  .view=${this.view}
85
85
  .engine=${this.engine}
86
+ .nodeRenderer=${this.nodeRenderer}
87
+ .glow=${this.glow}
86
88
  .camera=${this.camera}
87
89
  fit-to=${this.fitTo}
88
90
  node-labels=${this.nodeLabels??nothing}
@@ -133,4 +135,4 @@ import{__decorate}from"tslib";import{ENGINE_3D_PREFERENCE}from"../../../internal
133
135
  </slot>
134
136
  </lr-popover>
135
137
  </div>
136
- `}}__decorate([state()],LyraKnowledgeGraphExplorer.prototype,"sourceEntity",void 0),__decorate([state()],LyraKnowledgeGraphExplorer.prototype,"sourceDetailsOpen",void 0),__decorate([state()],LyraKnowledgeGraphExplorer.prototype,"sourcePaint",void 0),__decorate([property({attribute:!1,noAccessor:!0,hasChanged:()=>!0})],LyraKnowledgeGraphExplorer.prototype,"graphSource",null),__decorate([property({type:Number,attribute:"source-page",noAccessor:!0})],LyraKnowledgeGraphExplorer.prototype,"sourcePage",null),__decorate([property({type:Number,attribute:"source-page-size",noAccessor:!0})],LyraKnowledgeGraphExplorer.prototype,"sourcePageSize",null),__decorate([property({attribute:!1})],LyraKnowledgeGraphExplorer.prototype,"nodes",void 0),__decorate([property({attribute:!1})],LyraKnowledgeGraphExplorer.prototype,"edges",void 0),__decorate([property({attribute:!1})],LyraKnowledgeGraphExplorer.prototype,"nodeTypes",void 0),__decorate([property({attribute:!1})],LyraKnowledgeGraphExplorer.prototype,"communities",void 0),__decorate([property({attribute:!1})],LyraKnowledgeGraphExplorer.prototype,"entityDetails",void 0),__decorate([property({attribute:!1})],LyraKnowledgeGraphExplorer.prototype,"pinnedNodeIds",void 0),__decorate([property({attribute:!1})],LyraKnowledgeGraphExplorer.prototype,"path",void 0),__decorate([property({attribute:!1})],LyraKnowledgeGraphExplorer.prototype,"hiddenTypes",void 0),__decorate([property({attribute:"selected-node-id"})],LyraKnowledgeGraphExplorer.prototype,"selectedNodeId",void 0),__decorate([property()],LyraKnowledgeGraphExplorer.prototype,"renderer",void 0),__decorate([property()],LyraKnowledgeGraphExplorer.prototype,"view",void 0),__decorate([property({converter:ENGINE_3D_PREFERENCE})],LyraKnowledgeGraphExplorer.prototype,"engine",null),__decorate([property({attribute:!1})],LyraKnowledgeGraphExplorer.prototype,"camera",void 0),__decorate([property({attribute:"node-labels"})],LyraKnowledgeGraphExplorer.prototype,"nodeLabels",void 0),__decorate([property({attribute:"fit-to"})],LyraKnowledgeGraphExplorer.prototype,"fitTo",void 0),__decorate([property({converter:graphLengthConverter})],LyraKnowledgeGraphExplorer.prototype,"width",void 0),__decorate([property({converter:graphLengthConverter})],LyraKnowledgeGraphExplorer.prototype,"height",void 0),__decorate([property()],LyraKnowledgeGraphExplorer.prototype,"label",void 0),__decorate([property()],LyraKnowledgeGraphExplorer.prototype,"highlight",void 0),__decorate([property()],LyraKnowledgeGraphExplorer.prototype,"query",void 0),__decorate([state()],LyraKnowledgeGraphExplorer.prototype,"pinLiveText",void 0),__decorate([state()],LyraKnowledgeGraphExplorer.prototype,"hoveredNodeId",void 0),__decorate([state()],LyraKnowledgeGraphExplorer.prototype,"activeResult",void 0),__decorate([query('[part="graph"]')],LyraKnowledgeGraphExplorer.prototype,"graphEl",void 0),__decorate([query('[part="detail-popover"]')],LyraKnowledgeGraphExplorer.prototype,"popoverEl",void 0);export{LyraKnowledgeGraphExplorer};
138
+ `}}__decorate([state()],LyraKnowledgeGraphExplorer.prototype,"sourceEntity",void 0),__decorate([state()],LyraKnowledgeGraphExplorer.prototype,"sourceDetailsOpen",void 0),__decorate([state()],LyraKnowledgeGraphExplorer.prototype,"sourcePaint",void 0),__decorate([property({attribute:!1,noAccessor:!0,hasChanged:()=>!0})],LyraKnowledgeGraphExplorer.prototype,"graphSource",null),__decorate([property({type:Number,attribute:"source-page",noAccessor:!0})],LyraKnowledgeGraphExplorer.prototype,"sourcePage",null),__decorate([property({type:Number,attribute:"source-page-size",noAccessor:!0})],LyraKnowledgeGraphExplorer.prototype,"sourcePageSize",null),__decorate([property({attribute:!1})],LyraKnowledgeGraphExplorer.prototype,"nodes",void 0),__decorate([property({attribute:!1})],LyraKnowledgeGraphExplorer.prototype,"edges",void 0),__decorate([property({attribute:!1})],LyraKnowledgeGraphExplorer.prototype,"nodeTypes",void 0),__decorate([property({attribute:!1})],LyraKnowledgeGraphExplorer.prototype,"communities",void 0),__decorate([property({attribute:!1})],LyraKnowledgeGraphExplorer.prototype,"entityDetails",void 0),__decorate([property({attribute:!1})],LyraKnowledgeGraphExplorer.prototype,"pinnedNodeIds",void 0),__decorate([property({attribute:!1})],LyraKnowledgeGraphExplorer.prototype,"path",void 0),__decorate([property({attribute:!1})],LyraKnowledgeGraphExplorer.prototype,"hiddenTypes",void 0),__decorate([property({attribute:"selected-node-id"})],LyraKnowledgeGraphExplorer.prototype,"selectedNodeId",void 0),__decorate([property()],LyraKnowledgeGraphExplorer.prototype,"renderer",void 0),__decorate([property()],LyraKnowledgeGraphExplorer.prototype,"view",void 0),__decorate([property({converter:ENGINE_3D_PREFERENCE})],LyraKnowledgeGraphExplorer.prototype,"engine",null),__decorate([property({attribute:!1})],LyraKnowledgeGraphExplorer.prototype,"nodeRenderer",void 0),__decorate([property({type:Boolean,reflect:!0})],LyraKnowledgeGraphExplorer.prototype,"glow",void 0),__decorate([property({attribute:!1})],LyraKnowledgeGraphExplorer.prototype,"camera",void 0),__decorate([property({attribute:"node-labels"})],LyraKnowledgeGraphExplorer.prototype,"nodeLabels",void 0),__decorate([property({attribute:"fit-to"})],LyraKnowledgeGraphExplorer.prototype,"fitTo",void 0),__decorate([property({converter:graphLengthConverter})],LyraKnowledgeGraphExplorer.prototype,"width",void 0),__decorate([property({converter:graphLengthConverter})],LyraKnowledgeGraphExplorer.prototype,"height",void 0),__decorate([property()],LyraKnowledgeGraphExplorer.prototype,"label",void 0),__decorate([property()],LyraKnowledgeGraphExplorer.prototype,"highlight",void 0),__decorate([property()],LyraKnowledgeGraphExplorer.prototype,"query",void 0),__decorate([state()],LyraKnowledgeGraphExplorer.prototype,"pinLiveText",void 0),__decorate([state()],LyraKnowledgeGraphExplorer.prototype,"hoveredNodeId",void 0),__decorate([state()],LyraKnowledgeGraphExplorer.prototype,"activeResult",void 0),__decorate([query('[part="graph"]')],LyraKnowledgeGraphExplorer.prototype,"graphEl",void 0),__decorate([query('[part="detail-popover"]')],LyraKnowledgeGraphExplorer.prototype,"popoverEl",void 0);export{LyraKnowledgeGraphExplorer};
package/dist/events.d.ts CHANGED
@@ -921,6 +921,11 @@ export type LyraMapAnchorCloseEvent=LyraMapEventMap['lr-map-anchor-close'];
921
921
  */
922
922
  export type LyraMapAttributionToggleEvent=LyraMapEventMap['lr-map-attribution-toggle'];
923
923
  /**
924
+ * `lr-map-camera-interrupt` — dispatched by `<lr-map>`; detail
925
+ * `LyraMapEventMap['lr-map-camera-interrupt']`.
926
+ */
927
+ export type LyraMapCameraInterruptEvent=LyraMapEventMap['lr-map-camera-interrupt'];
928
+ /**
924
929
  * `lr-map-click` — dispatched by `<lr-map>`; detail `LyraMapEventMap['lr-map-click']`.
925
930
  */
926
931
  export type LyraMapClickEvent=LyraMapEventMap['lr-map-click'];
@@ -1021,10 +1026,29 @@ export type LyraMapPointerLeaveEvent=LyraMapEventMap['lr-map-pointer-leave'];
1021
1026
  */
1022
1027
  export type LyraMapPointerMoveEvent=LyraMapEventMap['lr-map-pointer-move'];
1023
1028
  /**
1029
+ * `lr-map-projection-change` — dispatched by `<lr-map>`; detail
1030
+ * `LyraMapEventMap['lr-map-projection-change']`.
1031
+ */
1032
+ export type LyraMapProjectionChangeEvent=LyraMapEventMap['lr-map-projection-change'];
1033
+ /**
1034
+ * `lr-map-scene-activate` — dispatched by `<lr-map>`; detail
1035
+ * `LyraMapEventMap['lr-map-scene-activate']`.
1036
+ */
1037
+ export type LyraMapSceneActivateEvent=LyraMapEventMap['lr-map-scene-activate'];
1038
+ /**
1039
+ * `lr-map-scene-state` — dispatched by `<lr-map>`; detail `LyraMapEventMap['lr-map-scene-state']`.
1040
+ */
1041
+ export type LyraMapSceneStateEvent=LyraMapEventMap['lr-map-scene-state'];
1042
+ /**
1024
1043
  * `lr-map-style-load` — dispatched by `<lr-map>`; detail `LyraMapEventMap['lr-map-style-load']`.
1025
1044
  */
1026
1045
  export type LyraMapStyleLoadEvent=LyraMapEventMap['lr-map-style-load'];
1027
1046
  /**
1047
+ * `lr-map-terrain-change` — dispatched by `<lr-map>`; detail
1048
+ * `LyraMapEventMap['lr-map-terrain-change']`.
1049
+ */
1050
+ export type LyraMapTerrainChangeEvent=LyraMapEventMap['lr-map-terrain-change'];
1051
+ /**
1028
1052
  * `lr-map-view-change` — dispatched by `<lr-map>`; detail `LyraMapEventMap['lr-map-view-change']`.
1029
1053
  */
1030
1054
  export type LyraMapViewChangeEvent=LyraMapEventMap['lr-map-view-change'];
@@ -1156,6 +1180,11 @@ export type LyraMultiSplitConstraintsInvalidEvent=LyraMultiSplitEventMap['lr-mul
1156
1180
  */
1157
1181
  export type LyraMultiSplitOrientationChangeEvent=LyraMultiSplitEventMap['lr-multi-split-orientation-change'];
1158
1182
  /**
1183
+ * `lr-multi-split-panel-collapse-change` — dispatched by `<lr-multi-split>`; detail
1184
+ * `LyraMultiSplitEventMap['lr-multi-split-panel-collapse-change']`.
1185
+ */
1186
+ export type LyraMultiSplitPanelCollapseChangeEvent=LyraMultiSplitEventMap['lr-multi-split-panel-collapse-change'];
1187
+ /**
1159
1188
  * `lr-mutation` — dispatched by `<lr-mutation-observer>`; detail
1160
1189
  * `LyraMutationObserverEventMap['lr-mutation']`.
1161
1190
  */
@@ -1206,6 +1235,12 @@ export type LyraNodeLeaveEvent=LyraGraphEventMap['lr-node-leave'];
1206
1235
  */
1207
1236
  export type LyraNodeMoveEvent=LyraFlowCanvasEventMap['lr-node-move'];
1208
1237
  /**
1238
+ * `lr-node-render-error` — dispatched by 2 components: `<lr-graph>`,
1239
+ * `<lr-knowledge-graph-explorer>`; detail union of 2, e.g.
1240
+ * `LyraGraphEventMap['lr-node-render-error']`.
1241
+ */
1242
+ export type LyraNodeRenderErrorEvent=LyraGraphEventMap['lr-node-render-error']|LyraKnowledgeGraphExplorerEventMap['lr-node-render-error'];
1243
+ /**
1209
1244
  * `lr-node-select` — dispatched by 2 components: `<lr-tree-item>`, `<lr-tree>`; detail union of 2,
1210
1245
  * e.g. `LyraTreeEventMap['lr-node-select']`.
1211
1246
  */
@@ -2200,7 +2235,7 @@ export type LyraZoomChangeEvent=LyraDocumentViewerEventMap['lr-zoom-change']|Lyr
2200
2235
  * their standard types, and redeclaring them globally would either conflict or widen a built-in.
2201
2236
  * Those stay typed per component through the component's own event map.
2202
2237
  */
2203
- export interface LyraGlobalEventMap{'lr-activate':LyraActivateEvent;'lr-add':LyraAddEvent;'lr-add-condition':LyraAddConditionEvent;'lr-after-collapse':LyraAfterCollapseEvent;'lr-after-expand':LyraAfterExpandEvent;'lr-after-hide':LyraAfterHideEvent;'lr-after-show':LyraAfterShowEvent;'lr-anchor-result':LyraAnchorResultEvent;'lr-annotatable-change':LyraAnnotatableChangeEvent;'lr-annotation-create':LyraAnnotationCreateEvent;'lr-approval-close':LyraApprovalCloseEvent;'lr-approval-decision-request':LyraApprovalDecisionRequestEvent;'lr-approval-select':LyraApprovalSelectEvent;'lr-approve-request':LyraApproveRequestEvent;'lr-attachment-open':LyraAttachmentOpenEvent;'lr-attachment-preview-request':LyraAttachmentPreviewRequestEvent;'lr-attachment-remove':LyraAttachmentRemoveEvent;'lr-attachment-retry':LyraAttachmentRetryEvent;'lr-attachments-add':LyraAttachmentsAddEvent;'lr-audio-request':LyraAudioRequestEvent;'lr-autoload-error':LyraAutoloadErrorEvent;'lr-autoload-loaded':LyraAutoloadLoadedEvent;'lr-autoload-preload':LyraAutoloadPreloadEvent;'lr-autoload-traversal-error':LyraAutoloadTraversalErrorEvent;'lr-before-page-change':LyraBeforePageChangeEvent;'lr-branch-change':LyraBranchChangeEvent;'lr-calendar-geometry-change':LyraCalendarGeometryChangeEvent;'lr-camera-change':LyraCameraChangeEvent;'lr-camera-request':LyraCameraRequestEvent;'lr-cancel':LyraCancelEvent;'lr-card-activate':LyraCardActivateEvent;'lr-cell-activate':LyraCellActivateEvent;'lr-cell-click':LyraCellClickEvent;'lr-cell-contextmenu':LyraCellContextmenuEvent;'lr-cell-edit':LyraCellEditEvent;'lr-cell-move':LyraCellMoveEvent;'lr-cell-resize':LyraCellResizeEvent;'lr-change':LyraChangeEvent;'lr-change-decision-request':LyraChangeDecisionRequestEvent;'lr-change-request':LyraChangeRequestEvent;'lr-chart-row-select':LyraChartRowSelectEvent;'lr-checkbox-group-toggle-request':LyraCheckboxGroupToggleRequestEvent;'lr-checkbox-toggle-request':LyraCheckboxToggleRequestEvent;'lr-chip-change':LyraChipChangeEvent;'lr-chip-toggle-request':LyraChipToggleRequestEvent;'lr-chunk-open':LyraChunkOpenEvent;'lr-chunk-select':LyraChunkSelectEvent;'lr-citation-activate':LyraCitationActivateEvent;'lr-citation-open':LyraCitationOpenEvent;'lr-citation-select':LyraCitationSelectEvent;'lr-claim-select':LyraClaimSelectEvent;'lr-clear':LyraClearEvent;'lr-close':LyraCloseEvent;'lr-close-request':LyraCloseRequestEvent;'lr-cluster-activate':LyraClusterActivateEvent;'lr-collapse':LyraCollapseEvent;'lr-collision':LyraCollisionEvent;'lr-column-move':LyraColumnMoveEvent;'lr-column-pin':LyraColumnPinEvent;'lr-column-resize':LyraColumnResizeEvent;'lr-column-resize-request':LyraColumnResizeRequestEvent;'lr-column-visibility-change':LyraColumnVisibilityChangeEvent;'lr-community-activate':LyraCommunityActivateEvent;'lr-complete':LyraCompleteEvent;'lr-connect':LyraConnectEvent;'lr-connector-action':LyraConnectorActionEvent;'lr-content-change':LyraContentChangeEvent;'lr-content-settled':LyraContentSettledEvent;'lr-copy':LyraCopyEvent;'lr-copy-error':LyraCopyErrorEvent;'lr-create':LyraCreateEvent;'lr-cue-change':LyraCueChangeEvent;'lr-data-error':LyraDataErrorEvent;'lr-date-select':LyraDateSelectEvent;'lr-datum-activate':LyraDatumActivateEvent;'lr-datum-visibility-change':LyraDatumVisibilityChangeEvent;'lr-datum-visibility-change-request':LyraDatumVisibilityChangeRequestEvent;'lr-decision-settled':LyraDecisionSettledEvent;'lr-deny-request':LyraDenyRequestEvent;'lr-disconnect':LyraDisconnectEvent;'lr-dismiss':LyraDismissEvent;'lr-download':LyraDownloadEvent;'lr-download-request':LyraDownloadRequestEvent;'lr-drill':LyraDrillEvent;'lr-drilldown-category-change':LyraDrilldownCategoryChangeEvent;'lr-drilldown-document-download':LyraDrilldownDocumentDownloadEvent;'lr-drilldown-document-highlight-activate':LyraDrilldownDocumentHighlightActivateEvent;'lr-drilldown-document-render-error':LyraDrilldownDocumentRenderErrorEvent;'lr-drilldown-entity-activate':LyraDrilldownEntityActivateEvent;'lr-drilldown-evidence-expand':LyraDrilldownEvidenceExpandEvent;'lr-drilldown-evidence-open':LyraDrilldownEvidenceOpenEvent;'lr-drilldown-navigate':LyraDrilldownNavigateEvent;'lr-edge-activate':LyraEdgeActivateEvent;'lr-edge-enter':LyraEdgeEnterEvent;'lr-edge-leave':LyraEdgeLeaveEvent;'lr-edit':LyraEditEvent;'lr-engine-fallback':LyraEngineFallbackEvent;'lr-entity-open':LyraEntityOpenEvent;'lr-entity-select':LyraEntitySelectEvent;'lr-error':LyraErrorEvent;'lr-event-select':LyraEventSelectEvent;'lr-example-add-request':LyraExampleAddRequestEvent;'lr-example-citation-select':LyraExampleCitationSelectEvent;'lr-example-claim-select':LyraExampleClaimSelectEvent;'lr-example-remove-request':LyraExampleRemoveRequestEvent;'lr-example-select':LyraExampleSelectEvent;'lr-example-toggle':LyraExampleToggleEvent;'lr-example-tool-activate':LyraExampleToolActivateEvent;'lr-example-tool-approval-decide-request':LyraExampleToolApprovalDecideRequestEvent;'lr-example-tool-render-error':LyraExampleToolRenderErrorEvent;'lr-expand':LyraExpandEvent;'lr-export-complete':LyraExportCompleteEvent;'lr-export-error':LyraExportErrorEvent;'lr-export-request':LyraExportRequestEvent;'lr-feedback-change':LyraFeedbackChangeEvent;'lr-feedback-submit-request':LyraFeedbackSubmitRequestEvent;'lr-file-open':LyraFileOpenEvent;'lr-file-select':LyraFileSelectEvent;'lr-files':LyraFilesEvent;'lr-filter':LyraFilterEvent;'lr-filter-change':LyraFilterChangeEvent;'lr-filters-change':LyraFiltersChangeEvent;'lr-finish':LyraFinishEvent;'lr-fit-change':LyraFitChangeEvent;'lr-focus-day':LyraFocusDayEvent;'lr-follow-change':LyraFollowChangeEvent;'lr-forget':LyraForgetEvent;'lr-frame-select':LyraFrameSelectEvent;'lr-fullscreen-change':LyraFullscreenChangeEvent;'lr-fullscreen-request':LyraFullscreenRequestEvent;'lr-group-collapse':LyraGroupCollapseEvent;'lr-group-expand':LyraGroupExpandEvent;'lr-group-toggle':LyraGroupToggleEvent;'lr-group-toggle-request':LyraGroupToggleRequestEvent;'lr-hidden-types-change':LyraHiddenTypesChangeEvent;'lr-hide':LyraHideEvent;'lr-highlight-activate':LyraHighlightActivateEvent;'lr-hover':LyraHoverEvent;'lr-import-request':LyraImportRequestEvent;'lr-include-error':LyraIncludeErrorEvent;'lr-index-change':LyraIndexChangeEvent;'lr-ingestion-cancel':LyraIngestionCancelEvent;'lr-ingestion-retry':LyraIngestionRetryEvent;'lr-initial-focus':LyraInitialFocusEvent;'lr-input':LyraInputEvent;'lr-input-settled':LyraInputSettledEvent;'lr-interrupt':LyraInterruptEvent;'lr-intersect':LyraIntersectEvent;'lr-intersection':LyraIntersectionEvent;'lr-invalid':LyraInvalidEvent;'lr-item-activate':LyraItemActivateEvent;'lr-layout-change':LyraLayoutChangeEvent;'lr-lazy-change':LyraLazyChangeEvent;'lr-lazy-load':LyraLazyLoadEvent;'lr-legend-visibility-change':LyraLegendVisibilityChangeEvent;'lr-legend-visibility-change-request':LyraLegendVisibilityChangeRequestEvent;'lr-level':LyraLevelEvent;'lr-line-activate':LyraLineActivateEvent;'lr-link-activate':LyraLinkActivateEvent;'lr-load':LyraLoadEvent;'lr-load-children':LyraLoadChildrenEvent;'lr-load-error':LyraLoadErrorEvent;'lr-load-more':LyraLoadMoreEvent;'lr-location-change':LyraLocationChangeEvent;'lr-map-anchor-close':LyraMapAnchorCloseEvent;'lr-map-attribution-toggle':LyraMapAttributionToggleEvent;'lr-map-click':LyraMapClickEvent;'lr-map-contextmenu':LyraMapContextmenuEvent;'lr-map-draw-cancel':LyraMapDrawCancelEvent;'lr-map-draw-change':LyraMapDrawChangeEvent;'lr-map-draw-complete':LyraMapDrawCompleteEvent;'lr-map-draw-start':LyraMapDrawStartEvent;'lr-map-draw-vertex-end':LyraMapDrawVertexEndEvent;'lr-map-export-error':LyraMapExportErrorEvent;'lr-map-feature-enter':LyraMapFeatureEnterEvent;'lr-map-feature-leave':LyraMapFeatureLeaveEvent;'lr-map-geolocate':LyraMapGeolocateEvent;'lr-map-geolocate-error':LyraMapGeolocateErrorEvent;'lr-map-geolocate-out-of-bounds':LyraMapGeolocateOutOfBoundsEvent;'lr-map-idle':LyraMapIdleEvent;'lr-map-legend-panel-toggle-request':LyraMapLegendPanelToggleRequestEvent;'lr-map-legend-toggle-request':LyraMapLegendToggleRequestEvent;'lr-map-load':LyraMapLoadEvent;'lr-map-marker-activate':LyraMapMarkerActivateEvent;'lr-map-move':LyraMapMoveEvent;'lr-map-pick':LyraMapPickEvent;'lr-map-pointer-leave':LyraMapPointerLeaveEvent;'lr-map-pointer-move':LyraMapPointerMoveEvent;'lr-map-style-load':LyraMapStyleLoadEvent;'lr-map-view-change':LyraMapViewChangeEvent;'lr-matrix-geometry-change':LyraMatrixGeometryChangeEvent;'lr-matrix-range-select':LyraMatrixRangeSelectEvent;'lr-maximize-change-request':LyraMaximizeChangeRequestEvent;'lr-mcp-initialized':LyraMcpInitializedEvent;'lr-mcp-log':LyraMcpLogEvent;'lr-mcp-open-link':LyraMcpOpenLinkEvent;'lr-mcp-ready':LyraMcpReadyEvent;'lr-mcp-request':LyraMcpRequestEvent;'lr-mcp-resize':LyraMcpResizeEvent;'lr-mcp-send-message':LyraMcpSendMessageEvent;'lr-mcp-tool-call':LyraMcpToolCallEvent;'lr-media-download-request':LyraMediaDownloadRequestEvent;'lr-media-open':LyraMediaOpenEvent;'lr-mention-close':LyraMentionCloseEvent;'lr-mention-select':LyraMentionSelectEvent;'lr-menu-item-change-request':LyraMenuItemChangeRequestEvent;'lr-menu-item-state-change':LyraMenuItemStateChangeEvent;'lr-message-reorder-request':LyraMessageReorderRequestEvent;'lr-message-retry':LyraMessageRetryEvent;'lr-metric-change-request':LyraMetricChangeRequestEvent;'lr-mode-change':LyraModeChangeEvent;'lr-model-change':LyraModelChangeEvent;'lr-move-request':LyraMoveRequestEvent;'lr-multi-split-collapse-change':LyraMultiSplitCollapseChangeEvent;'lr-multi-split-constraints-invalid':LyraMultiSplitConstraintsInvalidEvent;'lr-multi-split-orientation-change':LyraMultiSplitOrientationChangeEvent;'lr-mutation':LyraMutationEvent;'lr-mute-change':LyraMuteChangeEvent;'lr-nav-open-change':LyraNavOpenChangeEvent;'lr-nav-toggle-request':LyraNavToggleRequestEvent;'lr-node-activate':LyraNodeActivateEvent;'lr-node-add':LyraNodeAddEvent;'lr-node-enter':LyraNodeEnterEvent;'lr-node-expand':LyraNodeExpandEvent;'lr-node-leave':LyraNodeLeaveEvent;'lr-node-move':LyraNodeMoveEvent;'lr-node-select':LyraNodeSelectEvent;'lr-node-toggle':LyraNodeToggleEvent;'lr-open':LyraOpenEvent;'lr-option-change':LyraOptionChangeEvent;'lr-overflow':LyraOverflowEvent;'lr-overflow-activate':LyraOverflowActivateEvent;'lr-overflow-toggle':LyraOverflowToggleEvent;'lr-page-change':LyraPageChangeEvent;'lr-page-select':LyraPageSelectEvent;'lr-page-viewer-state-change':LyraPageViewerStateChangeEvent;'lr-palette-place':LyraPalettePlaceEvent;'lr-panorama-camera-change':LyraPanoramaCameraChangeEvent;'lr-panorama-hotspot-select':LyraPanoramaHotspotSelectEvent;'lr-part-resume':LyraPartResumeEvent;'lr-part-retry':LyraPartRetryEvent;'lr-path-request':LyraPathRequestEvent;'lr-pause':LyraPauseEvent;'lr-pause-change':LyraPauseChangeEvent;'lr-peek-change':LyraPeekChangeEvent;'lr-permission-decision':LyraPermissionDecisionEvent;'lr-permission-rule-change':LyraPermissionRuleChangeEvent;'lr-pin-change':LyraPinChangeEvent;'lr-play':LyraPlayEvent;'lr-point-activate':LyraPointActivateEvent;'lr-point-select':LyraPointSelectEvent;'lr-poll-due':LyraPollDueEvent;'lr-preview-change':LyraPreviewChangeEvent;'lr-preview-request':LyraPreviewRequestEvent;'lr-priority-columns-visibility-change':LyraPriorityColumnsVisibilityChangeEvent;'lr-query-change':LyraQueryChangeEvent;'lr-query-delete':LyraQueryDeleteEvent;'lr-query-delete-request':LyraQueryDeleteRequestEvent;'lr-query-load':LyraQueryLoadEvent;'lr-query-load-request':LyraQueryLoadRequestEvent;'lr-query-run':LyraQueryRunEvent;'lr-query-run-request':LyraQueryRunRequestEvent;'lr-query-save':LyraQuerySaveEvent;'lr-query-save-request':LyraQuerySaveRequestEvent;'lr-question-input':LyraQuestionInputEvent;'lr-question-response':LyraQuestionResponseEvent;'lr-queue-change':LyraQueueChangeEvent;'lr-rail-resize':LyraRailResizeEvent;'lr-rail-resize-request':LyraRailResizeRequestEvent;'lr-rate-change':LyraRateChangeEvent;'lr-readonly-change':LyraReadonlyChangeEvent;'lr-record-cancel':LyraRecordCancelEvent;'lr-record-chunk':LyraRecordChunkEvent;'lr-record-error':LyraRecordErrorEvent;'lr-record-start':LyraRecordStartEvent;'lr-record-state-change':LyraRecordStateChangeEvent;'lr-record-stop':LyraRecordStopEvent;'lr-recover':LyraRecoverEvent;'lr-regenerate':LyraRegenerateEvent;'lr-relation-activate':LyraRelationActivateEvent;'lr-remove':LyraRemoveEvent;'lr-remove-condition':LyraRemoveConditionEvent;'lr-rename':LyraRenameEvent;'lr-render-error':LyraRenderErrorEvent;'lr-reorder':LyraReorderEvent;'lr-reorder-request':LyraReorderRequestEvent;'lr-reposition':LyraRepositionEvent;'lr-reposition-request':LyraRepositionRequestEvent;'lr-request':LyraRequestEvent;'lr-request-close':LyraRequestCloseEvent;'lr-reset':LyraResetEvent;'lr-resize':LyraResizeEvent;'lr-resize-change':LyraResizeChangeEvent;'lr-resize-input':LyraResizeInputEvent;'lr-resize-request':LyraResizeRequestEvent;'lr-restore':LyraRestoreEvent;'lr-resume':LyraResumeEvent;'lr-retrieval-select':LyraRetrievalSelectEvent;'lr-retry':LyraRetryEvent;'lr-retry-request':LyraRetryRequestEvent;'lr-reveal-change':LyraRevealChangeEvent;'lr-review-input':LyraReviewInputEvent;'lr-review-skip':LyraReviewSkipEvent;'lr-review-submit':LyraReviewSubmitEvent;'lr-review-validity-change':LyraReviewValidityChangeEvent;'lr-rotation-change':LyraRotationChangeEvent;'lr-row-activate':LyraRowActivateEvent;'lr-row-collapse':LyraRowCollapseEvent;'lr-row-expand':LyraRowExpandEvent;'lr-row-expand-request':LyraRowExpandRequestEvent;'lr-row-expand-toggle':LyraRowExpandToggleEvent;'lr-row-select':LyraRowSelectEvent;'lr-run':LyraRunEvent;'lr-run-activate':LyraRunActivateEvent;'lr-run-cancel':LyraRunCancelEvent;'lr-run-retry':LyraRunRetryEvent;'lr-save':LyraSaveEvent;'lr-schema-select':LyraSchemaSelectEvent;'lr-scroll':LyraScrollEvent;'lr-search':LyraSearchEvent;'lr-search-change':LyraSearchChangeEvent;'lr-segment-activate-request':LyraSegmentActivateRequestEvent;'lr-select':LyraSelectEvent;'lr-selection-action':LyraSelectionActionEvent;'lr-selection-change':LyraSelectionChangeEvent;'lr-selection-delete':LyraSelectionDeleteEvent;'lr-send-now':LyraSendNowEvent;'lr-sequence-step':LyraSequenceStepEvent;'lr-show':LyraShowEvent;'lr-skip':LyraSkipEvent;'lr-slice-change-request':LyraSliceChangeRequestEvent;'lr-slide-change':LyraSlideChangeEvent;'lr-sort':LyraSortEvent;'lr-sort-change':LyraSortChangeEvent;'lr-sort-request':LyraSortRequestEvent;'lr-source-category-select':LyraSourceCategorySelectEvent;'lr-source-create':LyraSourceCreateEvent;'lr-source-delete':LyraSourceDeleteEvent;'lr-source-error':LyraSourceErrorEvent;'lr-source-pause':LyraSourcePauseEvent;'lr-source-point-select':LyraSourcePointSelectEvent;'lr-source-selection-change':LyraSourceSelectionChangeEvent;'lr-source-sync':LyraSourceSyncEvent;'lr-sources-change':LyraSourcesChangeEvent;'lr-span-select':LyraSpanSelectEvent;'lr-span-toggle':LyraSpanToggleEvent;'lr-span-visibility-change':LyraSpanVisibilityChangeEvent;'lr-spatial-bin-select':LyraSpatialBinSelectEvent;'lr-spatial-point-select':LyraSpatialPointSelectEvent;'lr-stage-chunk-action':LyraStageChunkActionEvent;'lr-stage-select':LyraStageSelectEvent;'lr-stall':LyraStallEvent;'lr-start':LyraStartEvent;'lr-step-select':LyraStepSelectEvent;'lr-stepper-orientation-change':LyraStepperOrientationChangeEvent;'lr-stop':LyraStopEvent;'lr-submit':LyraSubmitEvent;'lr-suggestion-select':LyraSuggestionSelectEvent;'lr-switch-toggle-request':LyraSwitchToggleRequestEvent;'lr-tab-change':LyraTabChangeEvent;'lr-tab-hide':LyraTabHideEvent;'lr-tab-show':LyraTabShowEvent;'lr-take-over':LyraTakeOverEvent;'lr-test-select':LyraTestSelectEvent;'lr-text-select':LyraTextSelectEvent;'lr-thread-archive':LyraThreadArchiveEvent;'lr-thread-delete':LyraThreadDeleteEvent;'lr-thread-pin':LyraThreadPinEvent;'lr-thread-rename':LyraThreadRenameEvent;'lr-time-change':LyraTimeChangeEvent;'lr-toast-overflow':LyraToastOverflowEvent;'lr-toggle':LyraToggleEvent;'lr-toggle-group-toggle-request':LyraToggleGroupToggleRequestEvent;'lr-toggle-request':LyraToggleRequestEvent;'lr-toggle-toggle-request':LyraToggleToggleRequestEvent;'lr-token-add-request':LyraTokenAddRequestEvent;'lr-token-edit-request':LyraTokenEditRequestEvent;'lr-token-remove-request':LyraTokenRemoveRequestEvent;'lr-tool-activate':LyraToolActivateEvent;'lr-tool-approval-decide-request':LyraToolApprovalDecideRequestEvent;'lr-tool-call-chip-select':LyraToolCallChipSelectEvent;'lr-tool-render-error':LyraToolRenderErrorEvent;'lr-toolbar-actions-change':LyraToolbarActionsChangeEvent;'lr-topic-select':LyraTopicSelectEvent;'lr-topic-toggle':LyraTopicToggleEvent;'lr-tour-end':LyraTourEndEvent;'lr-tour-end-request':LyraTourEndRequestEvent;'lr-tour-start':LyraTourStartEvent;'lr-tour-step-change-request':LyraTourStepChangeRequestEvent;'lr-tour-target-missing':LyraTourTargetMissingEvent;'lr-validity-change':LyraValidityChangeEvent;'lr-version-change':LyraVersionChangeEvent;'lr-version-select':LyraVersionSelectEvent;'lr-video-change':LyraVideoChangeEvent;'lr-view-change':LyraViewChangeEvent;'lr-view-request':LyraViewRequestEvent;'lr-viewer-diagnostic':LyraViewerDiagnosticEvent;'lr-viewport-change':LyraViewportChangeEvent;'lr-virtual-scroll':LyraVirtualScrollEvent;'lr-visibility-change':LyraVisibilityChangeEvent;'lr-visibility-change-request':LyraVisibilityChangeRequestEvent;'lr-visible-range-change':LyraVisibleRangeChangeEvent;'lr-voice-change':LyraVoiceChangeEvent;'lr-vote-request':LyraVoteRequestEvent;'lr-widget-action':LyraWidgetActionEvent;'lr-widget-state-change':LyraWidgetStateChangeEvent;'lr-word-activate':LyraWordActivateEvent;'lr-zoom':LyraZoomEvent;'lr-zoom-change':LyraZoomChangeEvent;}declare global{
2238
+ export interface LyraGlobalEventMap{'lr-activate':LyraActivateEvent;'lr-add':LyraAddEvent;'lr-add-condition':LyraAddConditionEvent;'lr-after-collapse':LyraAfterCollapseEvent;'lr-after-expand':LyraAfterExpandEvent;'lr-after-hide':LyraAfterHideEvent;'lr-after-show':LyraAfterShowEvent;'lr-anchor-result':LyraAnchorResultEvent;'lr-annotatable-change':LyraAnnotatableChangeEvent;'lr-annotation-create':LyraAnnotationCreateEvent;'lr-approval-close':LyraApprovalCloseEvent;'lr-approval-decision-request':LyraApprovalDecisionRequestEvent;'lr-approval-select':LyraApprovalSelectEvent;'lr-approve-request':LyraApproveRequestEvent;'lr-attachment-open':LyraAttachmentOpenEvent;'lr-attachment-preview-request':LyraAttachmentPreviewRequestEvent;'lr-attachment-remove':LyraAttachmentRemoveEvent;'lr-attachment-retry':LyraAttachmentRetryEvent;'lr-attachments-add':LyraAttachmentsAddEvent;'lr-audio-request':LyraAudioRequestEvent;'lr-autoload-error':LyraAutoloadErrorEvent;'lr-autoload-loaded':LyraAutoloadLoadedEvent;'lr-autoload-preload':LyraAutoloadPreloadEvent;'lr-autoload-traversal-error':LyraAutoloadTraversalErrorEvent;'lr-before-page-change':LyraBeforePageChangeEvent;'lr-branch-change':LyraBranchChangeEvent;'lr-calendar-geometry-change':LyraCalendarGeometryChangeEvent;'lr-camera-change':LyraCameraChangeEvent;'lr-camera-request':LyraCameraRequestEvent;'lr-cancel':LyraCancelEvent;'lr-card-activate':LyraCardActivateEvent;'lr-cell-activate':LyraCellActivateEvent;'lr-cell-click':LyraCellClickEvent;'lr-cell-contextmenu':LyraCellContextmenuEvent;'lr-cell-edit':LyraCellEditEvent;'lr-cell-move':LyraCellMoveEvent;'lr-cell-resize':LyraCellResizeEvent;'lr-change':LyraChangeEvent;'lr-change-decision-request':LyraChangeDecisionRequestEvent;'lr-change-request':LyraChangeRequestEvent;'lr-chart-row-select':LyraChartRowSelectEvent;'lr-checkbox-group-toggle-request':LyraCheckboxGroupToggleRequestEvent;'lr-checkbox-toggle-request':LyraCheckboxToggleRequestEvent;'lr-chip-change':LyraChipChangeEvent;'lr-chip-toggle-request':LyraChipToggleRequestEvent;'lr-chunk-open':LyraChunkOpenEvent;'lr-chunk-select':LyraChunkSelectEvent;'lr-citation-activate':LyraCitationActivateEvent;'lr-citation-open':LyraCitationOpenEvent;'lr-citation-select':LyraCitationSelectEvent;'lr-claim-select':LyraClaimSelectEvent;'lr-clear':LyraClearEvent;'lr-close':LyraCloseEvent;'lr-close-request':LyraCloseRequestEvent;'lr-cluster-activate':LyraClusterActivateEvent;'lr-collapse':LyraCollapseEvent;'lr-collision':LyraCollisionEvent;'lr-column-move':LyraColumnMoveEvent;'lr-column-pin':LyraColumnPinEvent;'lr-column-resize':LyraColumnResizeEvent;'lr-column-resize-request':LyraColumnResizeRequestEvent;'lr-column-visibility-change':LyraColumnVisibilityChangeEvent;'lr-community-activate':LyraCommunityActivateEvent;'lr-complete':LyraCompleteEvent;'lr-connect':LyraConnectEvent;'lr-connector-action':LyraConnectorActionEvent;'lr-content-change':LyraContentChangeEvent;'lr-content-settled':LyraContentSettledEvent;'lr-copy':LyraCopyEvent;'lr-copy-error':LyraCopyErrorEvent;'lr-create':LyraCreateEvent;'lr-cue-change':LyraCueChangeEvent;'lr-data-error':LyraDataErrorEvent;'lr-date-select':LyraDateSelectEvent;'lr-datum-activate':LyraDatumActivateEvent;'lr-datum-visibility-change':LyraDatumVisibilityChangeEvent;'lr-datum-visibility-change-request':LyraDatumVisibilityChangeRequestEvent;'lr-decision-settled':LyraDecisionSettledEvent;'lr-deny-request':LyraDenyRequestEvent;'lr-disconnect':LyraDisconnectEvent;'lr-dismiss':LyraDismissEvent;'lr-download':LyraDownloadEvent;'lr-download-request':LyraDownloadRequestEvent;'lr-drill':LyraDrillEvent;'lr-drilldown-category-change':LyraDrilldownCategoryChangeEvent;'lr-drilldown-document-download':LyraDrilldownDocumentDownloadEvent;'lr-drilldown-document-highlight-activate':LyraDrilldownDocumentHighlightActivateEvent;'lr-drilldown-document-render-error':LyraDrilldownDocumentRenderErrorEvent;'lr-drilldown-entity-activate':LyraDrilldownEntityActivateEvent;'lr-drilldown-evidence-expand':LyraDrilldownEvidenceExpandEvent;'lr-drilldown-evidence-open':LyraDrilldownEvidenceOpenEvent;'lr-drilldown-navigate':LyraDrilldownNavigateEvent;'lr-edge-activate':LyraEdgeActivateEvent;'lr-edge-enter':LyraEdgeEnterEvent;'lr-edge-leave':LyraEdgeLeaveEvent;'lr-edit':LyraEditEvent;'lr-engine-fallback':LyraEngineFallbackEvent;'lr-entity-open':LyraEntityOpenEvent;'lr-entity-select':LyraEntitySelectEvent;'lr-error':LyraErrorEvent;'lr-event-select':LyraEventSelectEvent;'lr-example-add-request':LyraExampleAddRequestEvent;'lr-example-citation-select':LyraExampleCitationSelectEvent;'lr-example-claim-select':LyraExampleClaimSelectEvent;'lr-example-remove-request':LyraExampleRemoveRequestEvent;'lr-example-select':LyraExampleSelectEvent;'lr-example-toggle':LyraExampleToggleEvent;'lr-example-tool-activate':LyraExampleToolActivateEvent;'lr-example-tool-approval-decide-request':LyraExampleToolApprovalDecideRequestEvent;'lr-example-tool-render-error':LyraExampleToolRenderErrorEvent;'lr-expand':LyraExpandEvent;'lr-export-complete':LyraExportCompleteEvent;'lr-export-error':LyraExportErrorEvent;'lr-export-request':LyraExportRequestEvent;'lr-feedback-change':LyraFeedbackChangeEvent;'lr-feedback-submit-request':LyraFeedbackSubmitRequestEvent;'lr-file-open':LyraFileOpenEvent;'lr-file-select':LyraFileSelectEvent;'lr-files':LyraFilesEvent;'lr-filter':LyraFilterEvent;'lr-filter-change':LyraFilterChangeEvent;'lr-filters-change':LyraFiltersChangeEvent;'lr-finish':LyraFinishEvent;'lr-fit-change':LyraFitChangeEvent;'lr-focus-day':LyraFocusDayEvent;'lr-follow-change':LyraFollowChangeEvent;'lr-forget':LyraForgetEvent;'lr-frame-select':LyraFrameSelectEvent;'lr-fullscreen-change':LyraFullscreenChangeEvent;'lr-fullscreen-request':LyraFullscreenRequestEvent;'lr-group-collapse':LyraGroupCollapseEvent;'lr-group-expand':LyraGroupExpandEvent;'lr-group-toggle':LyraGroupToggleEvent;'lr-group-toggle-request':LyraGroupToggleRequestEvent;'lr-hidden-types-change':LyraHiddenTypesChangeEvent;'lr-hide':LyraHideEvent;'lr-highlight-activate':LyraHighlightActivateEvent;'lr-hover':LyraHoverEvent;'lr-import-request':LyraImportRequestEvent;'lr-include-error':LyraIncludeErrorEvent;'lr-index-change':LyraIndexChangeEvent;'lr-ingestion-cancel':LyraIngestionCancelEvent;'lr-ingestion-retry':LyraIngestionRetryEvent;'lr-initial-focus':LyraInitialFocusEvent;'lr-input':LyraInputEvent;'lr-input-settled':LyraInputSettledEvent;'lr-interrupt':LyraInterruptEvent;'lr-intersect':LyraIntersectEvent;'lr-intersection':LyraIntersectionEvent;'lr-invalid':LyraInvalidEvent;'lr-item-activate':LyraItemActivateEvent;'lr-layout-change':LyraLayoutChangeEvent;'lr-lazy-change':LyraLazyChangeEvent;'lr-lazy-load':LyraLazyLoadEvent;'lr-legend-visibility-change':LyraLegendVisibilityChangeEvent;'lr-legend-visibility-change-request':LyraLegendVisibilityChangeRequestEvent;'lr-level':LyraLevelEvent;'lr-line-activate':LyraLineActivateEvent;'lr-link-activate':LyraLinkActivateEvent;'lr-load':LyraLoadEvent;'lr-load-children':LyraLoadChildrenEvent;'lr-load-error':LyraLoadErrorEvent;'lr-load-more':LyraLoadMoreEvent;'lr-location-change':LyraLocationChangeEvent;'lr-map-anchor-close':LyraMapAnchorCloseEvent;'lr-map-attribution-toggle':LyraMapAttributionToggleEvent;'lr-map-camera-interrupt':LyraMapCameraInterruptEvent;'lr-map-click':LyraMapClickEvent;'lr-map-contextmenu':LyraMapContextmenuEvent;'lr-map-draw-cancel':LyraMapDrawCancelEvent;'lr-map-draw-change':LyraMapDrawChangeEvent;'lr-map-draw-complete':LyraMapDrawCompleteEvent;'lr-map-draw-start':LyraMapDrawStartEvent;'lr-map-draw-vertex-end':LyraMapDrawVertexEndEvent;'lr-map-export-error':LyraMapExportErrorEvent;'lr-map-feature-enter':LyraMapFeatureEnterEvent;'lr-map-feature-leave':LyraMapFeatureLeaveEvent;'lr-map-geolocate':LyraMapGeolocateEvent;'lr-map-geolocate-error':LyraMapGeolocateErrorEvent;'lr-map-geolocate-out-of-bounds':LyraMapGeolocateOutOfBoundsEvent;'lr-map-idle':LyraMapIdleEvent;'lr-map-legend-panel-toggle-request':LyraMapLegendPanelToggleRequestEvent;'lr-map-legend-toggle-request':LyraMapLegendToggleRequestEvent;'lr-map-load':LyraMapLoadEvent;'lr-map-marker-activate':LyraMapMarkerActivateEvent;'lr-map-move':LyraMapMoveEvent;'lr-map-pick':LyraMapPickEvent;'lr-map-pointer-leave':LyraMapPointerLeaveEvent;'lr-map-pointer-move':LyraMapPointerMoveEvent;'lr-map-projection-change':LyraMapProjectionChangeEvent;'lr-map-scene-activate':LyraMapSceneActivateEvent;'lr-map-scene-state':LyraMapSceneStateEvent;'lr-map-style-load':LyraMapStyleLoadEvent;'lr-map-terrain-change':LyraMapTerrainChangeEvent;'lr-map-view-change':LyraMapViewChangeEvent;'lr-matrix-geometry-change':LyraMatrixGeometryChangeEvent;'lr-matrix-range-select':LyraMatrixRangeSelectEvent;'lr-maximize-change-request':LyraMaximizeChangeRequestEvent;'lr-mcp-initialized':LyraMcpInitializedEvent;'lr-mcp-log':LyraMcpLogEvent;'lr-mcp-open-link':LyraMcpOpenLinkEvent;'lr-mcp-ready':LyraMcpReadyEvent;'lr-mcp-request':LyraMcpRequestEvent;'lr-mcp-resize':LyraMcpResizeEvent;'lr-mcp-send-message':LyraMcpSendMessageEvent;'lr-mcp-tool-call':LyraMcpToolCallEvent;'lr-media-download-request':LyraMediaDownloadRequestEvent;'lr-media-open':LyraMediaOpenEvent;'lr-mention-close':LyraMentionCloseEvent;'lr-mention-select':LyraMentionSelectEvent;'lr-menu-item-change-request':LyraMenuItemChangeRequestEvent;'lr-menu-item-state-change':LyraMenuItemStateChangeEvent;'lr-message-reorder-request':LyraMessageReorderRequestEvent;'lr-message-retry':LyraMessageRetryEvent;'lr-metric-change-request':LyraMetricChangeRequestEvent;'lr-mode-change':LyraModeChangeEvent;'lr-model-change':LyraModelChangeEvent;'lr-move-request':LyraMoveRequestEvent;'lr-multi-split-collapse-change':LyraMultiSplitCollapseChangeEvent;'lr-multi-split-constraints-invalid':LyraMultiSplitConstraintsInvalidEvent;'lr-multi-split-orientation-change':LyraMultiSplitOrientationChangeEvent;'lr-multi-split-panel-collapse-change':LyraMultiSplitPanelCollapseChangeEvent;'lr-mutation':LyraMutationEvent;'lr-mute-change':LyraMuteChangeEvent;'lr-nav-open-change':LyraNavOpenChangeEvent;'lr-nav-toggle-request':LyraNavToggleRequestEvent;'lr-node-activate':LyraNodeActivateEvent;'lr-node-add':LyraNodeAddEvent;'lr-node-enter':LyraNodeEnterEvent;'lr-node-expand':LyraNodeExpandEvent;'lr-node-leave':LyraNodeLeaveEvent;'lr-node-move':LyraNodeMoveEvent;'lr-node-render-error':LyraNodeRenderErrorEvent;'lr-node-select':LyraNodeSelectEvent;'lr-node-toggle':LyraNodeToggleEvent;'lr-open':LyraOpenEvent;'lr-option-change':LyraOptionChangeEvent;'lr-overflow':LyraOverflowEvent;'lr-overflow-activate':LyraOverflowActivateEvent;'lr-overflow-toggle':LyraOverflowToggleEvent;'lr-page-change':LyraPageChangeEvent;'lr-page-select':LyraPageSelectEvent;'lr-page-viewer-state-change':LyraPageViewerStateChangeEvent;'lr-palette-place':LyraPalettePlaceEvent;'lr-panorama-camera-change':LyraPanoramaCameraChangeEvent;'lr-panorama-hotspot-select':LyraPanoramaHotspotSelectEvent;'lr-part-resume':LyraPartResumeEvent;'lr-part-retry':LyraPartRetryEvent;'lr-path-request':LyraPathRequestEvent;'lr-pause':LyraPauseEvent;'lr-pause-change':LyraPauseChangeEvent;'lr-peek-change':LyraPeekChangeEvent;'lr-permission-decision':LyraPermissionDecisionEvent;'lr-permission-rule-change':LyraPermissionRuleChangeEvent;'lr-pin-change':LyraPinChangeEvent;'lr-play':LyraPlayEvent;'lr-point-activate':LyraPointActivateEvent;'lr-point-select':LyraPointSelectEvent;'lr-poll-due':LyraPollDueEvent;'lr-preview-change':LyraPreviewChangeEvent;'lr-preview-request':LyraPreviewRequestEvent;'lr-priority-columns-visibility-change':LyraPriorityColumnsVisibilityChangeEvent;'lr-query-change':LyraQueryChangeEvent;'lr-query-delete':LyraQueryDeleteEvent;'lr-query-delete-request':LyraQueryDeleteRequestEvent;'lr-query-load':LyraQueryLoadEvent;'lr-query-load-request':LyraQueryLoadRequestEvent;'lr-query-run':LyraQueryRunEvent;'lr-query-run-request':LyraQueryRunRequestEvent;'lr-query-save':LyraQuerySaveEvent;'lr-query-save-request':LyraQuerySaveRequestEvent;'lr-question-input':LyraQuestionInputEvent;'lr-question-response':LyraQuestionResponseEvent;'lr-queue-change':LyraQueueChangeEvent;'lr-rail-resize':LyraRailResizeEvent;'lr-rail-resize-request':LyraRailResizeRequestEvent;'lr-rate-change':LyraRateChangeEvent;'lr-readonly-change':LyraReadonlyChangeEvent;'lr-record-cancel':LyraRecordCancelEvent;'lr-record-chunk':LyraRecordChunkEvent;'lr-record-error':LyraRecordErrorEvent;'lr-record-start':LyraRecordStartEvent;'lr-record-state-change':LyraRecordStateChangeEvent;'lr-record-stop':LyraRecordStopEvent;'lr-recover':LyraRecoverEvent;'lr-regenerate':LyraRegenerateEvent;'lr-relation-activate':LyraRelationActivateEvent;'lr-remove':LyraRemoveEvent;'lr-remove-condition':LyraRemoveConditionEvent;'lr-rename':LyraRenameEvent;'lr-render-error':LyraRenderErrorEvent;'lr-reorder':LyraReorderEvent;'lr-reorder-request':LyraReorderRequestEvent;'lr-reposition':LyraRepositionEvent;'lr-reposition-request':LyraRepositionRequestEvent;'lr-request':LyraRequestEvent;'lr-request-close':LyraRequestCloseEvent;'lr-reset':LyraResetEvent;'lr-resize':LyraResizeEvent;'lr-resize-change':LyraResizeChangeEvent;'lr-resize-input':LyraResizeInputEvent;'lr-resize-request':LyraResizeRequestEvent;'lr-restore':LyraRestoreEvent;'lr-resume':LyraResumeEvent;'lr-retrieval-select':LyraRetrievalSelectEvent;'lr-retry':LyraRetryEvent;'lr-retry-request':LyraRetryRequestEvent;'lr-reveal-change':LyraRevealChangeEvent;'lr-review-input':LyraReviewInputEvent;'lr-review-skip':LyraReviewSkipEvent;'lr-review-submit':LyraReviewSubmitEvent;'lr-review-validity-change':LyraReviewValidityChangeEvent;'lr-rotation-change':LyraRotationChangeEvent;'lr-row-activate':LyraRowActivateEvent;'lr-row-collapse':LyraRowCollapseEvent;'lr-row-expand':LyraRowExpandEvent;'lr-row-expand-request':LyraRowExpandRequestEvent;'lr-row-expand-toggle':LyraRowExpandToggleEvent;'lr-row-select':LyraRowSelectEvent;'lr-run':LyraRunEvent;'lr-run-activate':LyraRunActivateEvent;'lr-run-cancel':LyraRunCancelEvent;'lr-run-retry':LyraRunRetryEvent;'lr-save':LyraSaveEvent;'lr-schema-select':LyraSchemaSelectEvent;'lr-scroll':LyraScrollEvent;'lr-search':LyraSearchEvent;'lr-search-change':LyraSearchChangeEvent;'lr-segment-activate-request':LyraSegmentActivateRequestEvent;'lr-select':LyraSelectEvent;'lr-selection-action':LyraSelectionActionEvent;'lr-selection-change':LyraSelectionChangeEvent;'lr-selection-delete':LyraSelectionDeleteEvent;'lr-send-now':LyraSendNowEvent;'lr-sequence-step':LyraSequenceStepEvent;'lr-show':LyraShowEvent;'lr-skip':LyraSkipEvent;'lr-slice-change-request':LyraSliceChangeRequestEvent;'lr-slide-change':LyraSlideChangeEvent;'lr-sort':LyraSortEvent;'lr-sort-change':LyraSortChangeEvent;'lr-sort-request':LyraSortRequestEvent;'lr-source-category-select':LyraSourceCategorySelectEvent;'lr-source-create':LyraSourceCreateEvent;'lr-source-delete':LyraSourceDeleteEvent;'lr-source-error':LyraSourceErrorEvent;'lr-source-pause':LyraSourcePauseEvent;'lr-source-point-select':LyraSourcePointSelectEvent;'lr-source-selection-change':LyraSourceSelectionChangeEvent;'lr-source-sync':LyraSourceSyncEvent;'lr-sources-change':LyraSourcesChangeEvent;'lr-span-select':LyraSpanSelectEvent;'lr-span-toggle':LyraSpanToggleEvent;'lr-span-visibility-change':LyraSpanVisibilityChangeEvent;'lr-spatial-bin-select':LyraSpatialBinSelectEvent;'lr-spatial-point-select':LyraSpatialPointSelectEvent;'lr-stage-chunk-action':LyraStageChunkActionEvent;'lr-stage-select':LyraStageSelectEvent;'lr-stall':LyraStallEvent;'lr-start':LyraStartEvent;'lr-step-select':LyraStepSelectEvent;'lr-stepper-orientation-change':LyraStepperOrientationChangeEvent;'lr-stop':LyraStopEvent;'lr-submit':LyraSubmitEvent;'lr-suggestion-select':LyraSuggestionSelectEvent;'lr-switch-toggle-request':LyraSwitchToggleRequestEvent;'lr-tab-change':LyraTabChangeEvent;'lr-tab-hide':LyraTabHideEvent;'lr-tab-show':LyraTabShowEvent;'lr-take-over':LyraTakeOverEvent;'lr-test-select':LyraTestSelectEvent;'lr-text-select':LyraTextSelectEvent;'lr-thread-archive':LyraThreadArchiveEvent;'lr-thread-delete':LyraThreadDeleteEvent;'lr-thread-pin':LyraThreadPinEvent;'lr-thread-rename':LyraThreadRenameEvent;'lr-time-change':LyraTimeChangeEvent;'lr-toast-overflow':LyraToastOverflowEvent;'lr-toggle':LyraToggleEvent;'lr-toggle-group-toggle-request':LyraToggleGroupToggleRequestEvent;'lr-toggle-request':LyraToggleRequestEvent;'lr-toggle-toggle-request':LyraToggleToggleRequestEvent;'lr-token-add-request':LyraTokenAddRequestEvent;'lr-token-edit-request':LyraTokenEditRequestEvent;'lr-token-remove-request':LyraTokenRemoveRequestEvent;'lr-tool-activate':LyraToolActivateEvent;'lr-tool-approval-decide-request':LyraToolApprovalDecideRequestEvent;'lr-tool-call-chip-select':LyraToolCallChipSelectEvent;'lr-tool-render-error':LyraToolRenderErrorEvent;'lr-toolbar-actions-change':LyraToolbarActionsChangeEvent;'lr-topic-select':LyraTopicSelectEvent;'lr-topic-toggle':LyraTopicToggleEvent;'lr-tour-end':LyraTourEndEvent;'lr-tour-end-request':LyraTourEndRequestEvent;'lr-tour-start':LyraTourStartEvent;'lr-tour-step-change-request':LyraTourStepChangeRequestEvent;'lr-tour-target-missing':LyraTourTargetMissingEvent;'lr-validity-change':LyraValidityChangeEvent;'lr-version-change':LyraVersionChangeEvent;'lr-version-select':LyraVersionSelectEvent;'lr-video-change':LyraVideoChangeEvent;'lr-view-change':LyraViewChangeEvent;'lr-view-request':LyraViewRequestEvent;'lr-viewer-diagnostic':LyraViewerDiagnosticEvent;'lr-viewport-change':LyraViewportChangeEvent;'lr-virtual-scroll':LyraVirtualScrollEvent;'lr-visibility-change':LyraVisibilityChangeEvent;'lr-visibility-change-request':LyraVisibilityChangeRequestEvent;'lr-visible-range-change':LyraVisibleRangeChangeEvent;'lr-voice-change':LyraVoiceChangeEvent;'lr-vote-request':LyraVoteRequestEvent;'lr-widget-action':LyraWidgetActionEvent;'lr-widget-state-change':LyraWidgetStateChangeEvent;'lr-word-activate':LyraWordActivateEvent;'lr-zoom':LyraZoomEvent;'lr-zoom-change':LyraZoomChangeEvent;}declare global{
2204
2239
  /**
2205
2240
  * Extended rather than re-declared member by member so `LyraGlobalEventMap` remains the one
2206
2241
  * definition. `HTMLElementEventMap`, `DocumentEventMap`, `WindowEventMap`, and