@aceshooting/lyra-ui 28.1.6 → 29.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -180
- package/README.md +10 -2
- package/dist/components/charts/chart/chart.class.js +2 -2
- package/dist/components/data/data-grid/data-grid.class.js +1 -1
- package/dist/components/data/table/table.class.js +2 -2
- package/dist/components/forms/combobox/option.class.js +1 -1
- package/dist/components/forms/select/select.class.js +1 -1
- package/dist/components/media/map/map-loader.d.ts +9 -1
- package/dist/components/media/map/map-loader.js +1 -1
- package/dist/components/media/map/map.class.d.ts +20 -11
- package/dist/components/media/map/map.class.js +4 -4
- package/dist/components/retrieval/graph/graph-model.d.ts +10 -1
- package/dist/components/retrieval/graph/graph-spatial-controller.js +30 -0
- package/dist/components/retrieval/graph/graph-spatial.js +1 -0
- package/dist/components/retrieval/graph/graph.class.d.ts +45 -6
- package/dist/components/retrieval/graph/graph.class.js +2 -2
- package/dist/components/retrieval/graph/graph.styles.js +1 -1
- package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.d.ts +22 -5
- package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.js +6 -2
- package/dist/events.d.ts +10 -5
- package/dist/framework-types.d.ts +1 -1
- package/dist/internal/accessible-text-controller.js +1 -1
- package/dist/internal/autoloader-manifest.js +1 -1
- package/dist/internal/collection-source-tracker.js +1 -0
- package/dist/internal/default-strings/media.generated.js +1 -1
- package/dist/internal/default-strings/retrieval.generated.js +1 -1
- package/dist/internal/localization-types.d.ts +1 -1
- package/dist/internal/localization.js +1 -1
- package/dist/internal/package-metadata.js +1 -1
- package/dist/internal/positioner.js +1 -1
- package/dist/lyra.d.ts +1 -1
- package/llms/components/lr-geojson-viewer.md +1 -1
- package/llms/components/lr-graph.md +78 -8
- package/llms/components/lr-knowledge-graph-explorer.md +15 -2
- package/llms/components/lr-map.md +60 -25
- package/llms/index.md +1 -1
- package/llms/peers.md +4 -3
- package/llms/shared/ai-and-peers.md +4 -3
- package/llms/shared/imports-and-registration.md +1 -1
- package/llms/shared.md +5 -4
- package/locales.json +138 -138
- package/package.json +12 -6
- package/registrations.json +1 -1
- package/skills/lyra-ui/SKILL.md +8 -3
package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
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{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'../path-strip/path-strip.class.js';import'../../overlays/overlay/popover.class.js';import'../../forms/input/input.class.js';import'../../overlays/chip/chip.class.js';import'../../forms/button/button.class.js';
|
|
1
|
+
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'../path-strip/path-strip.class.js';import'../../overlays/overlay/popover.class.js';import'../../forms/input/input.class.js';import'../../overlays/chip/chip.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;}>;'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-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
|
/**
|
|
@@ -50,7 +50,12 @@ export type KnowledgeGraphHighlight='selection'|'hover'|'none';export interface
|
|
|
50
50
|
* `lr-neighbor-list` (the selected entity's relationships), `lr-path-strip` (a found path), and
|
|
51
51
|
* `lr-popover.showAt()` (the details overlay itself).
|
|
52
52
|
*
|
|
53
|
-
*
|
|
53
|
+
* `view="3d"` forwards true spatial positions and camera controls; `view="list"` provides the
|
|
54
|
+
* visible accessible fallback. Neither requires d3. The default remains `view="2d"`. In 3D,
|
|
55
|
+
* details use `getNodeScreenPosition()` and follow `lr-camera-change`, including search-driven
|
|
56
|
+
* selection. The coordinates are CSS pixels relative to the composed graph's border box.
|
|
57
|
+
*
|
|
58
|
+
* **How the 2D details popover finds its viewport position.** `lr-graph.getNodePosition()` and the
|
|
54
59
|
* `lr-node-activate` event's `{ x, y }` are in the graph's own *local drawing space* (pre pan/zoom),
|
|
55
60
|
* never viewport pixels -- passing them straight to `showAt()` would anchor the popover at the
|
|
56
61
|
* wrong place as soon as the graph has panned or zoomed even once. A direct node click resolves
|
|
@@ -114,7 +119,12 @@ export type KnowledgeGraphHighlight='selection'|'hover'|'none';export interface
|
|
|
114
119
|
* Direct host assignments do not emit.
|
|
115
120
|
* @event lr-hidden-types-change - A node type's visibility changed via the composed legend.
|
|
116
121
|
* `detail: { hiddenTypes }`. See the class doc above. Direct host assignments do not emit.
|
|
117
|
-
* @event lr-node-activate - Bubbles unchanged
|
|
122
|
+
* @event lr-node-activate - Bubbles unchanged with `{ nodeId, x, y, z? }`; spatial activation
|
|
123
|
+
* includes world z, while 2D retains its existing local x/y coordinates.
|
|
124
|
+
* @event lr-camera-change - Bubbles unchanged from the composed graph with `{ camera }`.
|
|
125
|
+
* Spatial detail popovers follow the newly projected node position.
|
|
126
|
+
* @event lr-view-change - Bubbles from the graph toolbar with `{ view }`; the explorer updates
|
|
127
|
+
* its own view before the event reaches consumers. Property assignments are silent.
|
|
118
128
|
* @event lr-edge-activate - Bubbles unchanged from the composed graph with `{ sourceNodeId, targetNodeId, edgeId? }`.
|
|
119
129
|
* @event lr-node-expand - Bubbles straight through from `lr-graph` and/or `lr-neighbor-list` (the
|
|
120
130
|
* same event name/detail shape from either source) -- this component never appends neighbors
|
|
@@ -179,6 +189,13 @@ selectedNodeId:string|null;
|
|
|
179
189
|
* narrows how the node-detail popover anchors and disables its pan/zoom tracking -- see the
|
|
180
190
|
* class doc's anchoring note. */
|
|
181
191
|
renderer:LyraGraphRenderer;
|
|
192
|
+
/** Forwarded to lr-graph.view. '2d' preserves the default; '3d' uses real x/y/z positions and
|
|
193
|
+
* an orbit camera; 'list' exposes all graph items through visible pagination. Spatial/list
|
|
194
|
+
* views work without optional d3 peers. Toolbar changes also update this property. */
|
|
195
|
+
view:LyraGraphView;
|
|
196
|
+
/** Optional orbit-camera input forwarded to lr-graph.camera; camera changes bubble as
|
|
197
|
+
* lr-camera-change. Angles use radians, distance and target use graph units. */
|
|
198
|
+
camera?:LyraGraphCamera;
|
|
182
199
|
/** Forwarded to `lr-graph.nodeLabels`. Unset (the default) leaves the composed `lr-graph` to
|
|
183
200
|
* apply its own per-renderer default -- see that property's own doc. */
|
|
184
201
|
nodeLabels?:LyraGraphNodeLabelsMode;
|
|
@@ -212,7 +229,7 @@ highlight:KnowledgeGraphHighlight;
|
|
|
212
229
|
* `''` (the default) renders no search-result list at all and applies no search dimming.
|
|
213
230
|
* Removing the attribute uses this empty-filter behavior while retaining null property
|
|
214
231
|
* readback. */
|
|
215
|
-
query:string;private pinLiveText;private hoveredNodeId;private activeResult;private graphEl?;private popoverEl?;private pendingNodeId?;private activationGeneration;private internalSelectionAssignment?;private trackedNodeEl?;private nodeById;private linksByNodeId;private degreeByNodeId;private communityLabelById;private matchesMemo?;private normalizedGraphModel?;private normalizedGraphSources?;private readonly announcements;private activationFrameId?;private activationFrameOwner?;private activationFrameDocument?;private activationFrameResolve?;private activationFramePageHide?;private get graphModel();private get canonicalPinnedNodeIds();private get canonicalHiddenTypes();connectedCallback():void;protected willUpdate(changed:PropertyValues):void;protected updated(changed:PropertyValues):void;private activatePresetWhenGraphReady;private waitForActivationFrame;private clearActivationFrameRecord;private cancelActivationFrame;private invalidateActivation;private resumePresetActivation;private setInternalSelectedNodeId;disconnectedCallback():void;adoptedCallback():void;private rebuildDerivedCollections;private isVisibleGraphNode;private isVisibleNode;private canActivateNode;private nodeLabel;private degreeOf;private entityFor;private communityLabelFor;private neighborRowsFor;private searchableNamesOf;private matchingNodes;private searchResultAnnouncement;private neighborIdsOf;private linkKey;private get computedDimmedNodeIds();private get computedDimmedLinkIds();private togglePin;private requestPath;private onVisibilityChange;private onVisibilityChangeProposal;private onSearchInput;private onEntityActivate;
|
|
232
|
+
query:string;private pinLiveText;private hoveredNodeId;private activeResult;private graphEl?;private popoverEl?;private pendingNodeId?;private activationGeneration;private internalSelectionAssignment?;private trackedNodeEl?;private nodeById;private linksByNodeId;private degreeByNodeId;private communityLabelById;private matchesMemo?;private normalizedGraphModel?;private normalizedGraphSources?;private readonly announcements;private activationFrameId?;private activationFrameOwner?;private activationFrameDocument?;private activationFrameResolve?;private activationFramePageHide?;private get graphModel();private get canonicalPinnedNodeIds();private get canonicalHiddenTypes();connectedCallback():void;protected willUpdate(changed:PropertyValues):void;protected updated(changed:PropertyValues):void;private reanchorAfterCameraUpdate;private activatePresetWhenGraphReady;private waitForActivationFrame;private clearActivationFrameRecord;private cancelActivationFrame;private invalidateActivation;private resumePresetActivation;private setInternalSelectedNodeId;disconnectedCallback():void;adoptedCallback():void;private rebuildDerivedCollections;private isVisibleGraphNode;private isVisibleNode;private canActivateNode;private nodeLabel;private degreeOf;private entityFor;private communityLabelFor;private neighborRowsFor;private searchableNamesOf;private matchingNodes;private searchResultAnnouncement;private neighborIdsOf;private linkKey;private get computedDimmedNodeIds();private get computedDimmedLinkIds();private togglePin;private requestPath;private onVisibilityChange;private onVisibilityChangeProposal;private onSearchInput;private onEntityActivate;
|
|
216
233
|
/** Frames every visible node in the composed graph's viewport, forwarding to `lr-graph.fit()`.
|
|
217
234
|
* No-op before the graph has rendered or with no visible nodes. Selection is unaffected. */
|
|
218
235
|
fit(options?:{padding?:number;}):void;
|
package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{__decorate}from"tslib";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{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"../path-strip/path-strip.class.js";import"../../overlays/overlay/popover.class.js";import"../../forms/input/input.class.js";import"../../overlays/chip/chip.class.js";import"../../forms/button/button.class.js";import{AnnouncementSinkController}from"../../../internal/announcer.js";import{LYRA_DEFAULT_graphDataListLimit,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}from"../../../internal/default-strings/retrieval.generated.js";import{LYRA_DEFAULT_fieldRequired,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.nodes=[],this.edges=[],this.nodeTypes=[],this.communities=[],this.entityDetails={},this.pinnedNodeIds=[],this.path=[],this.hiddenTypes=[],this.selectedNodeId=null,this.renderer="svg",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.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;this.query!==value&&(this.query=value,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.canActivateNode(id))return;const generation=this.invalidateActivation();this.setInternalSelectedNodeId(id),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 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=()=>{this.invalidateActivation(),this.trackedNodeEl=void 0,this.setInternalSelectedNodeId(null)}}static{this.defaultStrings={...super.defaultStrings,fieldRequired:LYRA_DEFAULT_fieldRequired,graphDataListLimit:LYRA_DEFAULT_graphDataListLimit,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,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 graphModel(){const sources=this.normalizedGraphSources;return(!sources||sources[0]!==this.nodes||sources[1]!==this.edges||sources[2]!==this.nodeTypes||sources[3]!==this.communities)&&(this.normalizedGraphSources=[this.nodes,this.edges,this.nodeTypes,this.communities],this.normalizedGraphModel=normalizeGraphModel(this.nodes,this.edges,this.nodeTypes,this.communities)),this.normalizedGraphModel}get canonicalPinnedNodeIds(){return canonicalIdentityList(this.pinnedNodeIds)}get canonicalHiddenTypes(){return canonicalIdentityList(this.hiddenTypes)}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this.resumePresetActivation()}willUpdate(changed){super.willUpdate(changed),(changed.has("nodes")||changed.has("edges")||changed.has("communities"))&&this.rebuildDerivedCollections(),this.hoveredNodeId&&!this.isVisibleNode(this.hoveredNodeId)&&(this.hoveredNodeId=null),(changed.has("nodes")||changed.has("hiddenTypes"))&&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),!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 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(){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.selectedNodeId=value,this.emit("lr-selection-change",{selectedNodeId:value,selectedNodeIds:value?[value]:[],selectedEdgeIds:[]}))}disconnectedCallback(){this.invalidateActivation(),this.pendingNodeId=void 0,this.trackedNodeEl=void 0,this.hoveredNodeId=null,super.disconnectedCallback()}adoptedCallback(){super.adoptedCallback(),this.invalidateActivation(),this.announcements.adopted(),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.nodeById.get(id);return node?.label||node?.accessibleLabel||id}degreeOf(id){return this.degreeByNodeId.get(id)??0}entityFor(id){const node=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.degreeOf(node.id)}}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(){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)}get computedDimmedNodeIds(){if(this.highlight==="none")return[];const matches=this.matchingNodes();if(matches){const matchIds=new Set(matches.map(n=>n.id));return this.graphModel.nodes.filter(n=>!matchIds.has(n.id)).map(n=>n.id)}const focusNodeId=this.selectedNodeId??(this.highlight==="hover"?this.hoveredNodeId:null);if(focusNodeId){const keep=this.neighborIdsOf(focusNodeId);return keep.add(focusNodeId),this.graphModel.nodes.filter(n=>!keep.has(n.id)).map(n=>n.id)}return[]}get computedDimmedLinkIds(){const dimmedNodes=new Set(this.computedDimmedNodeIds);return dimmedNodes.size===0?[]:this.graphModel.links.filter(l=>dimmedNodes.has(l.source)||dimmedNodes.has(l.target)).map(l=>this.linkKey(l))}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.isVisibleNode(id)?await this.graphEl?.focusNode(id,options)??!1:!1}async activateEntity(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();rect&&this.openDetailAt(id,{x:rect.left+rect.width/2,y:rect.top+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.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}}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.selectedNodeId?this.entityFor(this.selectedNodeId)??null:null,isPinned=this.selectedNodeId!=null&&pinnedNodeIds.includes(this.selectedNodeId),dimmedDeps=[this.highlight,matches,this.selectedNodeId,this.hoveredNodeId,model],detailDeps=[this.selectedNodeId,model,hiddenTypes,this.entityDetails];return html`
|
|
1
|
+
import{__decorate}from"tslib";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{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"../path-strip/path-strip.class.js";import"../../overlays/overlay/popover.class.js";import"../../forms/input/input.class.js";import"../../overlays/chip/chip.class.js";import"../../forms/button/button.class.js";import{AnnouncementSinkController}from"../../../internal/announcer.js";import{LYRA_DEFAULT_graphDataListLimit,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}from"../../../internal/default-strings/retrieval.generated.js";import{LYRA_DEFAULT_fieldRequired,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.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.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.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;this.query!==value&&(this.query=value,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.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=()=>{this.invalidateActivation(),this.trackedNodeEl=void 0,this.setInternalSelectedNodeId(null)}}static{this.defaultStrings={...super.defaultStrings,fieldRequired:LYRA_DEFAULT_fieldRequired,graphDataListLimit:LYRA_DEFAULT_graphDataListLimit,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,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 graphModel(){const sources=this.normalizedGraphSources;return(!sources||sources[0]!==this.nodes||sources[1]!==this.edges||sources[2]!==this.nodeTypes||sources[3]!==this.communities)&&(this.normalizedGraphSources=[this.nodes,this.edges,this.nodeTypes,this.communities],this.normalizedGraphModel=normalizeGraphModel(this.nodes,this.edges,this.nodeTypes,this.communities)),this.normalizedGraphModel}get canonicalPinnedNodeIds(){return canonicalIdentityList(this.pinnedNodeIds)}get canonicalHiddenTypes(){return canonicalIdentityList(this.hiddenTypes)}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this.resumePresetActivation()}willUpdate(changed){super.willUpdate(changed),(changed.has("nodes")||changed.has("edges")||changed.has("communities"))&&this.rebuildDerivedCollections(),this.hoveredNodeId&&!this.isVisibleNode(this.hoveredNodeId)&&(this.hoveredNodeId=null),(changed.has("nodes")||changed.has("hiddenTypes"))&&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),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(){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.selectedNodeId=value,this.emit("lr-selection-change",{selectedNodeId:value,selectedNodeIds:value?[value]:[],selectedEdgeIds:[]}))}disconnectedCallback(){this.invalidateActivation(),this.pendingNodeId=void 0,this.trackedNodeEl=void 0,this.hoveredNodeId=null,super.disconnectedCallback()}adoptedCallback(){super.adoptedCallback(),this.invalidateActivation(),this.announcements.adopted(),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.nodeById.get(id);return node?.label||node?.accessibleLabel||id}degreeOf(id){return this.degreeByNodeId.get(id)??0}entityFor(id){const node=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.degreeOf(node.id)}}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(){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)}get computedDimmedNodeIds(){if(this.highlight==="none")return[];const matches=this.matchingNodes();if(matches){const matchIds=new Set(matches.map(n=>n.id));return this.graphModel.nodes.filter(n=>!matchIds.has(n.id)).map(n=>n.id)}const focusNodeId=this.selectedNodeId??(this.highlight==="hover"?this.hoveredNodeId:null);if(focusNodeId){const keep=this.neighborIdsOf(focusNodeId);return keep.add(focusNodeId),this.graphModel.nodes.filter(n=>!keep.has(n.id)).map(n=>n.id)}return[]}get computedDimmedLinkIds(){const dimmedNodes=new Set(this.computedDimmedNodeIds);return dimmedNodes.size===0?[]:this.graphModel.links.filter(l=>dimmedNodes.has(l.source)||dimmedNodes.has(l.target)).map(l=>this.linkKey(l))}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.isVisibleNode(id)?await this.graphEl?.focusNode(id,options)??!1:!1}async activateEntity(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}}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.selectedNodeId?this.entityFor(this.selectedNodeId)??null:null,isPinned=this.selectedNodeId!=null&&pinnedNodeIds.includes(this.selectedNodeId),dimmedDeps=[this.highlight,matches,this.selectedNodeId,this.hoveredNodeId,model],detailDeps=[this.selectedNodeId,model,hiddenTypes,this.entityDetails];return html`
|
|
2
2
|
<div
|
|
3
3
|
part="base"
|
|
4
4
|
role=${groupRole??nothing}
|
|
@@ -80,6 +80,8 @@ import{__decorate}from"tslib";import{collectionSupport,publicCollectionTruncatio
|
|
|
80
80
|
.dimmedNodeIds=${guard(dimmedDeps,()=>this.computedDimmedNodeIds)}
|
|
81
81
|
.dimmedEdgeIds=${guard(dimmedDeps,()=>this.computedDimmedLinkIds)}
|
|
82
82
|
renderer=${this.renderer}
|
|
83
|
+
.view=${this.view}
|
|
84
|
+
.camera=${this.camera}
|
|
83
85
|
fit-to=${this.fitTo}
|
|
84
86
|
node-labels=${this.nodeLabels??nothing}
|
|
85
87
|
width=${typeof this.width=="string"?this.width:finiteRange(this.width,800,1)}
|
|
@@ -89,6 +91,8 @@ import{__decorate}from"tslib";import{collectionSupport,publicCollectionTruncatio
|
|
|
89
91
|
@lr-node-enter=${this.onGraphNodeEnter}
|
|
90
92
|
@lr-node-leave=${this.onGraphNodeLeave}
|
|
91
93
|
@lr-viewport-change=${this.onGraphViewportChange}
|
|
94
|
+
@lr-camera-change=${this.onGraphViewportChange}
|
|
95
|
+
@lr-view-change=${event=>{this.view=event.detail.view}}
|
|
92
96
|
></lr-graph>
|
|
93
97
|
<lr-popover
|
|
94
98
|
part="detail-popover"
|
|
@@ -122,4 +126,4 @@ import{__decorate}from"tslib";import{collectionSupport,publicCollectionTruncatio
|
|
|
122
126
|
</slot>
|
|
123
127
|
</lr-popover>
|
|
124
128
|
</div>
|
|
125
|
-
`}}__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({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};
|
|
129
|
+
`}}__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({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
|
@@ -149,6 +149,11 @@ export type LyraBranchChangeEvent=LyraBranchPickerEventMap['lr-branch-change'];
|
|
|
149
149
|
*/
|
|
150
150
|
export type LyraCalendarGeometryChangeEvent=LyraHeatmapEventMap['lr-calendar-geometry-change'];
|
|
151
151
|
/**
|
|
152
|
+
* `lr-camera-change` — dispatched by 2 components: `<lr-graph>`, `<lr-knowledge-graph-explorer>`;
|
|
153
|
+
* detail union of 2, e.g. `LyraGraphEventMap['lr-camera-change']`.
|
|
154
|
+
*/
|
|
155
|
+
export type LyraCameraChangeEvent=LyraGraphEventMap['lr-camera-change']|LyraKnowledgeGraphExplorerEventMap['lr-camera-change'];
|
|
156
|
+
/**
|
|
152
157
|
* `lr-camera-request` — dispatched by 2 components: `<lr-attachment-trigger>`,
|
|
153
158
|
* `<lr-prompt-input>`; detail union of 2, e.g.
|
|
154
159
|
* `LyraAttachmentTriggerEventMap['lr-camera-request']`.
|
|
@@ -1988,11 +1993,11 @@ export type LyraVersionSelectEvent=LyraPromptStudioEventMap['lr-version-select']
|
|
|
1988
1993
|
*/
|
|
1989
1994
|
export type LyraVideoChangeEvent=LyraVideoPlaylistEventMap['lr-video-change'];
|
|
1990
1995
|
/**
|
|
1991
|
-
* `lr-view-change` — dispatched by
|
|
1992
|
-
* `<lr-date-picker>`, `<lr-widget>`; detail union
|
|
1993
|
-
* `LyraArtifactPanelEventMap['lr-view-change']`.
|
|
1996
|
+
* `lr-view-change` — dispatched by 6 components: `<lr-artifact-panel>`, `<lr-calendar>`,
|
|
1997
|
+
* `<lr-date-picker>`, `<lr-graph>`, `<lr-knowledge-graph-explorer>`, `<lr-widget>`; detail union
|
|
1998
|
+
* of 6, e.g. `LyraArtifactPanelEventMap['lr-view-change']`.
|
|
1994
1999
|
*/
|
|
1995
|
-
export type LyraViewChangeEvent=LyraArtifactPanelEventMap['lr-view-change']|LyraCalendarEventMap['lr-view-change']|LyraDatePickerEventMap['lr-view-change']|LyraWidgetEventMap['lr-view-change'];
|
|
2000
|
+
export type LyraViewChangeEvent=LyraArtifactPanelEventMap['lr-view-change']|LyraCalendarEventMap['lr-view-change']|LyraDatePickerEventMap['lr-view-change']|LyraGraphEventMap['lr-view-change']|LyraKnowledgeGraphExplorerEventMap['lr-view-change']|LyraWidgetEventMap['lr-view-change'];
|
|
1996
2001
|
/**
|
|
1997
2002
|
* `lr-view-request` — dispatched by `<lr-widget>`; detail `LyraWidgetEventMap['lr-view-request']`.
|
|
1998
2003
|
*/
|
|
@@ -2092,7 +2097,7 @@ export type LyraZoomChangeEvent=LyraDocumentViewerEventMap['lr-zoom-change']|Lyr
|
|
|
2092
2097
|
* their standard types, and redeclaring them globally would either conflict or widen a built-in.
|
|
2093
2098
|
* Those stay typed per component through the component's own event map.
|
|
2094
2099
|
*/
|
|
2095
|
-
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-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':LyraChangeDecisionEvent;'lr-change-decision-request':LyraChangeDecisionRequestEvent;'lr-change-request':LyraChangeRequestEvent;'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-chunk-toggle':LyraChunkToggleEvent;'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-collapse-change':LyraCollapseChangeEvent;'lr-collapse-request':LyraCollapseRequestEvent;'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-entity-activate':LyraEntityActivateEvent;'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-expanded-change':LyraExpandedChangeEvent;'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-click':LyraMapClickEvent;'lr-map-legend-panel-toggle-request':LyraMapLegendPanelToggleRequestEvent;'lr-map-legend-toggle-request':LyraMapLegendToggleRequestEvent;'lr-map-load':LyraMapLoadEvent;'lr-map-marker-activate':LyraMapMarkerActivateEvent;'lr-map-view-change':LyraMapViewChangeEvent;'lr-matrix-geometry-change':LyraMatrixGeometryChangeEvent;'lr-maximize-change-request':LyraMaximizeChangeRequestEvent;'lr-mcp-log':LyraMcpLogEvent;'lr-mcp-open-link':LyraMcpOpenLinkEvent;'lr-mcp-ready':LyraMcpReadyEvent;'lr-mcp-resize':LyraMcpResizeEvent;'lr-mcp-send-message':LyraMcpSendMessageEvent;'lr-mcp-tool-call':LyraMcpToolCallEvent;'lr-media-download-request':LyraMediaDownloadRequestEvent;'lr-media-open':LyraMediaOpenEvent;'lr-memory-toggle':LyraMemoryToggleEvent;'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':LyraMetricChangeEvent;'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-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-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-change':LyraRunChangeEvent;'lr-run-open':LyraRunOpenEvent;'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':LyraSliceChangeEvent;'lr-slice-change-request':LyraSliceChangeRequestEvent;'lr-slide-change':LyraSlideChangeEvent;'lr-sort':LyraSortEvent;'lr-sort-change':LyraSortChangeEvent;'lr-sort-request':LyraSortRequestEvent;'lr-source-create':LyraSourceCreateEvent;'lr-source-delete':LyraSourceDeleteEvent;'lr-source-error':LyraSourceErrorEvent;'lr-source-pause':LyraSourcePauseEvent;'lr-source-sync':LyraSourceSyncEvent;'lr-sources-change':LyraSourcesChangeEvent;'lr-span-select':LyraSpanSelectEvent;'lr-span-toggle':LyraSpanToggleEvent;'lr-span-visibility-change':LyraSpanVisibilityChangeEvent;'lr-stage-chunk-action':LyraStageChunkActionEvent;'lr-stage-select':LyraStageSelectEvent;'lr-stage-toggle':LyraStageToggleEvent;'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{
|
|
2100
|
+
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':LyraChangeDecisionEvent;'lr-change-decision-request':LyraChangeDecisionRequestEvent;'lr-change-request':LyraChangeRequestEvent;'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-chunk-toggle':LyraChunkToggleEvent;'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-collapse-change':LyraCollapseChangeEvent;'lr-collapse-request':LyraCollapseRequestEvent;'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-entity-activate':LyraEntityActivateEvent;'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-expanded-change':LyraExpandedChangeEvent;'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-click':LyraMapClickEvent;'lr-map-legend-panel-toggle-request':LyraMapLegendPanelToggleRequestEvent;'lr-map-legend-toggle-request':LyraMapLegendToggleRequestEvent;'lr-map-load':LyraMapLoadEvent;'lr-map-marker-activate':LyraMapMarkerActivateEvent;'lr-map-view-change':LyraMapViewChangeEvent;'lr-matrix-geometry-change':LyraMatrixGeometryChangeEvent;'lr-maximize-change-request':LyraMaximizeChangeRequestEvent;'lr-mcp-log':LyraMcpLogEvent;'lr-mcp-open-link':LyraMcpOpenLinkEvent;'lr-mcp-ready':LyraMcpReadyEvent;'lr-mcp-resize':LyraMcpResizeEvent;'lr-mcp-send-message':LyraMcpSendMessageEvent;'lr-mcp-tool-call':LyraMcpToolCallEvent;'lr-media-download-request':LyraMediaDownloadRequestEvent;'lr-media-open':LyraMediaOpenEvent;'lr-memory-toggle':LyraMemoryToggleEvent;'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':LyraMetricChangeEvent;'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-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-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-change':LyraRunChangeEvent;'lr-run-open':LyraRunOpenEvent;'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':LyraSliceChangeEvent;'lr-slice-change-request':LyraSliceChangeRequestEvent;'lr-slide-change':LyraSlideChangeEvent;'lr-sort':LyraSortEvent;'lr-sort-change':LyraSortChangeEvent;'lr-sort-request':LyraSortRequestEvent;'lr-source-create':LyraSourceCreateEvent;'lr-source-delete':LyraSourceDeleteEvent;'lr-source-error':LyraSourceErrorEvent;'lr-source-pause':LyraSourcePauseEvent;'lr-source-sync':LyraSourceSyncEvent;'lr-sources-change':LyraSourcesChangeEvent;'lr-span-select':LyraSpanSelectEvent;'lr-span-toggle':LyraSpanToggleEvent;'lr-span-visibility-change':LyraSpanVisibilityChangeEvent;'lr-stage-chunk-action':LyraStageChunkActionEvent;'lr-stage-select':LyraStageSelectEvent;'lr-stage-toggle':LyraStageToggleEvent;'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{
|
|
2096
2101
|
/**
|
|
2097
2102
|
* Extended rather than re-declared member by member so `LyraGlobalEventMap` remains the one
|
|
2098
2103
|
* definition. `HTMLElementEventMap`, `DocumentEventMap`, `WindowEventMap`, and
|