@likec4/diagram 1.27.1 → 1.27.2
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/bundle/index.js +2147 -6730
- package/dist/LikeC4Diagram.js +1 -1
- package/dist/LikeC4Diagram.props.d.ts +5 -3
- package/dist/StaticLikeC4Diagram.js +1 -1
- package/dist/_virtual/set.js +5 -0
- package/dist/_virtual/set2.js +3 -0
- package/dist/base/BaseXYFlow.d.ts +2 -1
- package/dist/base/primitives/compound/CompoundNodeContainer.d.ts +1 -1
- package/dist/base/primitives/compound/CompoundNodeContainer.js +0 -1
- package/dist/base/primitives/element/ElementActionButtons.js +5 -10
- package/dist/base/primitives/element/ElementNodeContainer.css.js +4 -4
- package/dist/base/updateEdges.js +1 -9
- package/dist/base/updateNodes.js +1 -12
- package/dist/bundle/LikeC4View.js +2 -2
- package/dist/bundle/LikeC4View.props.d.ts +7 -7
- package/dist/hooks/useCurrentViewId.js +8 -2
- package/dist/hooks/useDiagram.d.ts +1517 -684
- package/dist/hooks/useDiagram.js +16 -8
- package/dist/likec4diagram/ui/notation/NotationPanel.css.js +3 -3
- package/dist/likec4diagram/ui/notation/NotationPanel.js +10 -4
- package/dist/node_modules/.pnpm/mnemonist@0.40.3_patch_hash_5c12abb43fcff6fd81e53021b89075d53249640d165a2556cc1e58d71201a13a/node_modules/mnemonist/set.js +369 -0
- package/dist/overlays/Overlays.js +3 -1
- package/dist/overlays/element-details/actor.d.ts +2769 -173
- package/dist/overlays/overlay/Overlay.css.d.ts +26 -2
- package/dist/overlays/overlay/Overlay.css.js +66 -18
- package/dist/overlays/overlay/Overlay.d.ts +7 -6
- package/dist/overlays/overlay/Overlay.js +12 -8
- package/dist/overlays/overlaysActor.js +2 -2
- package/dist/overlays/relationship-details/RelationshipDetails.js +113 -70
- package/dist/overlays/relationship-details/SelectEdge.d.ts +1 -1
- package/dist/overlays/relationship-details/SelectEdge.js +15 -9
- package/dist/overlays/relationship-details/_types.d.ts +4 -1
- package/dist/overlays/relationship-details/actor.d.ts +415 -128
- package/dist/overlays/relationship-details/actor.js +162 -53
- package/dist/overlays/relationship-details/compute.d.ts +12 -0
- package/dist/overlays/relationship-details/compute.js +139 -0
- package/dist/overlays/relationship-details/custom/ElementActions.js +27 -5
- package/dist/overlays/relationship-details/custom/edgeTypes.js +1 -1
- package/dist/overlays/relationship-details/custom/nodeTypes.d.ts +2 -1
- package/dist/overlays/relationship-details/hooks.d.ts +336 -6
- package/dist/overlays/relationship-details/hooks.js +9 -7
- package/dist/overlays/relationship-details/layout-to-xyflow.d.ts +12 -0
- package/dist/overlays/relationship-details/layout-to-xyflow.js +149 -0
- package/dist/overlays/relationship-details/layout.d.ts +22 -0
- package/dist/overlays/relationship-details/layout.js +314 -0
- package/dist/overlays/relationships-browser/RelationshipsBrowser.d.ts +3 -1
- package/dist/overlays/relationships-browser/RelationshipsBrowser.js +2 -2
- package/dist/overlays/relationships-browser/_types.d.ts +2 -0
- package/dist/overlays/relationships-browser/actor.d.ts +130 -14
- package/dist/overlays/relationships-browser/actor.js +30 -16
- package/dist/overlays/relationships-browser/custom/ElementActions.js +5 -3
- package/dist/overlays/relationships-browser/custom/edgeTypes.d.ts +3 -1
- package/dist/overlays/relationships-browser/custom/edgeTypes.js +1 -1
- package/dist/overlays/relationships-browser/hooks.d.ts +3 -1
- package/dist/overlays/relationships-browser/hooks.js +1 -1
- package/dist/overlays/relationships-browser/{-useRelationshipsView.d.ts → layout.d.ts} +2 -0
- package/dist/overlays/relationships-browser/{-useRelationshipsView.js → layout.js} +19 -2
- package/dist/overlays/relationships-browser/useViewToNodesEdges.d.ts +1 -1
- package/dist/overlays/relationships-browser/useViewToNodesEdges.js +3 -1
- package/dist/packages/core/src/compute-view/relationships-view/compute.js +1 -1
- package/dist/packages/core/src/model/connection/model/ConnectionModel.js +121 -0
- package/dist/packages/core/src/model/connection/model/find.js +39 -0
- package/dist/packages/core/src/model/connection/ops.js +7 -0
- package/dist/packages/core/src/utils/const.js +3 -0
- package/dist/packages/core/src/utils/fqn.js +9 -1
- package/dist/packages/core/src/utils/iterable/find.js +21 -0
- package/dist/packages/core/src/utils/iterable/some.js +21 -0
- package/dist/packages/core/src/utils/set.js +48 -0
- package/dist/packages/core/src/utils/string-hash.js +13 -0
- package/dist/state/diagram-machine.d.ts +1552 -703
- package/dist/state/diagram-machine.js +39 -3
- package/dist/state/syncManualLayoutActor.d.ts +1 -1
- package/dist/styles.css.js +1 -1
- package/package.json +11 -11
- package/src/LikeC4Diagram.props.ts +7 -3
- package/src/LikeC4Diagram.tsx +1 -1
- package/src/StaticLikeC4Diagram.tsx +1 -1
- package/src/base/BaseXYFlow.tsx +2 -1
- package/src/base/primitives/compound/CompoundNodeContainer.tsx +0 -2
- package/src/base/primitives/element/ElementActionButtons.tsx +6 -7
- package/src/base/primitives/element/ElementNodeContainer.css.ts +4 -4
- package/src/base/updateEdges.ts +8 -8
- package/src/base/updateNodes.ts +11 -11
- package/src/bundle/LikeC4View.props.ts +7 -7
- package/src/bundle/LikeC4View.tsx +2 -2
- package/src/hooks/useCurrentViewId.ts +4 -2
- package/src/hooks/useDiagram.ts +18 -9
- package/src/likec4diagram/ui/notation/NotationPanel.css.ts +2 -2
- package/src/likec4diagram/ui/notation/NotationPanel.tsx +8 -6
- package/src/overlays/Overlays.tsx +3 -1
- package/src/overlays/overlay/Overlay.css.ts +67 -17
- package/src/overlays/overlay/Overlay.tsx +26 -21
- package/src/overlays/overlaysActor.ts +1 -1
- package/src/overlays/relationship-details/RelationshipDetails.tsx +131 -68
- package/src/overlays/relationship-details/SelectEdge.tsx +19 -12
- package/src/overlays/relationship-details/_types.ts +3 -1
- package/src/overlays/relationship-details/actor.ts +217 -68
- package/src/overlays/relationship-details/compute.ts +186 -0
- package/src/overlays/relationship-details/custom/ElementActions.tsx +27 -18
- package/src/overlays/relationship-details/custom/edgeTypes.tsx +1 -1
- package/src/overlays/relationship-details/hooks.ts +10 -8
- package/src/overlays/relationship-details/layout-to-xyflow.ts +195 -0
- package/src/overlays/relationship-details/layout.ts +470 -0
- package/src/overlays/relationships-browser/RelationshipsBrowser.tsx +2 -2
- package/src/overlays/relationships-browser/_types.ts +2 -0
- package/src/overlays/relationships-browser/actor.ts +39 -14
- package/src/overlays/relationships-browser/custom/ElementActions.tsx +5 -3
- package/src/overlays/relationships-browser/custom/edgeTypes.tsx +1 -1
- package/src/overlays/relationships-browser/hooks.ts +2 -2
- package/src/overlays/relationships-browser/{-useRelationshipsView.ts → layout.ts} +23 -13
- package/src/overlays/relationships-browser/useViewToNodesEdges.ts +3 -1
- package/src/state/diagram-machine.ts +51 -6
- package/dist/overlays/relationship-details/useLayoutedDetails.d.ts +0 -19
- package/dist/overlays/relationship-details/useLayoutedDetails.js +0 -267
- package/src/overlays/relationship-details/useLayoutedDetails.ts +0 -376
|
@@ -1,24 +1,48 @@
|
|
|
1
|
-
import { BBox,
|
|
2
|
-
import { EdgeChange, NodeChange, ReactFlowInstance } from '@xyflow/react';
|
|
3
|
-
import { ActorLogicFrom, ActorRefFromLogic, SnapshotFrom, StateMachine, NonReducibleUnknown, EventObject, MetaObject, AnyActorLogic, ConditionalRequired, InputFrom, RequiredLogicInput, IsNotNever, ActorRef, MachineSnapshot, AnyActorRef, StateValue, AnyEventObject, ActionFunction, CancelAction } from 'xstate';
|
|
1
|
+
import { BBox, EdgeId, ExclusiveUnion, Fqn, ViewId, RelationId, Color, RelationshipLineType } from '@likec4/core';
|
|
2
|
+
import { EdgeChange, NodeChange, ReactFlowInstance, useStoreApi } from '@xyflow/react';
|
|
3
|
+
import { ActorLogicFrom, ActorRefFromLogic, SnapshotFrom, StateMachine, Values, NonReducibleUnknown, EventObject, MetaObject, AnyActorLogic, ConditionalRequired, InputFrom, RequiredLogicInput, IsNotNever, ActorRef, MachineSnapshot, AnyActorRef, StateValue, AnyEventObject, ActionFunction, CancelAction } from 'xstate';
|
|
4
4
|
import { Base } from '../../base';
|
|
5
5
|
import { RelationshipDetailsTypes } from './_types';
|
|
6
|
+
import { LayoutResult } from './layout';
|
|
6
7
|
import { EdgeMarkerType, HandleType } from '@xyflow/system';
|
|
7
8
|
import { ReactNode, CSSProperties } from 'react';
|
|
8
9
|
type XYFLowInstance = ReactFlowInstance<RelationshipDetailsTypes.Node, RelationshipDetailsTypes.Edge>;
|
|
9
|
-
|
|
10
|
+
type XYStoreApi = ReturnType<typeof useStoreApi<RelationshipDetailsTypes.Node, RelationshipDetailsTypes.Edge>>;
|
|
11
|
+
export type Input = ExclusiveUnion<{
|
|
12
|
+
Edge: {
|
|
13
|
+
edgeId: EdgeId;
|
|
14
|
+
viewId: ViewId;
|
|
15
|
+
};
|
|
16
|
+
Between: {
|
|
17
|
+
source: Fqn;
|
|
18
|
+
target: Fqn;
|
|
19
|
+
viewId: ViewId;
|
|
20
|
+
};
|
|
21
|
+
}>;
|
|
22
|
+
type Subject = {
|
|
10
23
|
edgeId: EdgeId;
|
|
11
|
-
|
|
24
|
+
} | {
|
|
25
|
+
source: Fqn;
|
|
26
|
+
target: Fqn;
|
|
27
|
+
edgeId?: never;
|
|
12
28
|
};
|
|
13
|
-
export type Context = Readonly<
|
|
29
|
+
export type Context = Readonly<{
|
|
30
|
+
subject: Subject;
|
|
31
|
+
viewId: ViewId;
|
|
14
32
|
xyflow: XYFLowInstance | null;
|
|
15
|
-
|
|
33
|
+
xystore: XYStoreApi | null;
|
|
34
|
+
initialized: {
|
|
35
|
+
xydata: boolean;
|
|
36
|
+
xyflow: boolean;
|
|
37
|
+
};
|
|
16
38
|
xynodes: RelationshipDetailsTypes.Node[];
|
|
17
39
|
xyedges: RelationshipDetailsTypes.Edge[];
|
|
40
|
+
bounds: BBox;
|
|
18
41
|
}>;
|
|
19
42
|
export type Events = {
|
|
20
43
|
type: 'xyflow.init';
|
|
21
44
|
instance: XYFLowInstance;
|
|
45
|
+
store: XYStoreApi;
|
|
22
46
|
} | {
|
|
23
47
|
type: 'xyflow.nodeClick';
|
|
24
48
|
node: RelationshipDetailsTypes.Node;
|
|
@@ -47,38 +71,85 @@ export type Events = {
|
|
|
47
71
|
changes: EdgeChange<RelationshipDetailsTypes.Edge>[];
|
|
48
72
|
} | {
|
|
49
73
|
type: 'xyflow.paneClick';
|
|
74
|
+
} | {
|
|
75
|
+
type: 'xyflow.paneDblClick';
|
|
50
76
|
} | {
|
|
51
77
|
type: 'xyflow.resized';
|
|
52
78
|
} | {
|
|
53
|
-
type: '
|
|
54
|
-
|
|
55
|
-
|
|
79
|
+
type: 'xyflow.updateNodeInternals';
|
|
80
|
+
} | {
|
|
81
|
+
type: 'update.layoutData';
|
|
82
|
+
data: LayoutResult;
|
|
56
83
|
} | {
|
|
57
84
|
type: 'fitDiagram';
|
|
58
85
|
duration?: number;
|
|
59
86
|
bounds?: BBox;
|
|
60
87
|
} | {
|
|
61
88
|
type: 'navigate.to';
|
|
62
|
-
|
|
89
|
+
params: {
|
|
90
|
+
edgeId: EdgeId;
|
|
91
|
+
viewId?: ViewId;
|
|
92
|
+
} | {
|
|
93
|
+
source: Fqn;
|
|
94
|
+
target: Fqn;
|
|
95
|
+
viewId?: ViewId;
|
|
96
|
+
};
|
|
63
97
|
} | {
|
|
64
98
|
type: 'close';
|
|
65
99
|
};
|
|
66
|
-
export declare const relationshipDetailsLogic: StateMachine<Readonly<
|
|
100
|
+
export declare const relationshipDetailsLogic: StateMachine<Readonly<{
|
|
101
|
+
subject: Subject;
|
|
102
|
+
viewId: ViewId;
|
|
67
103
|
xyflow: XYFLowInstance | null;
|
|
68
|
-
|
|
104
|
+
xystore: XYStoreApi | null;
|
|
105
|
+
initialized: {
|
|
106
|
+
xydata: boolean;
|
|
107
|
+
xyflow: boolean;
|
|
108
|
+
};
|
|
69
109
|
xynodes: RelationshipDetailsTypes.Node[];
|
|
70
110
|
xyedges: RelationshipDetailsTypes.Edge[];
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
111
|
+
bounds: BBox;
|
|
112
|
+
}>, Events, {}, never, Values<{
|
|
113
|
+
"xyflow:fitDiagram": {
|
|
114
|
+
type: "xyflow:fitDiagram";
|
|
115
|
+
params: {
|
|
116
|
+
duration?: number;
|
|
117
|
+
bounds?: BBox;
|
|
118
|
+
} | undefined;
|
|
119
|
+
};
|
|
120
|
+
"xyflow:updateNodeInternals": {
|
|
121
|
+
type: "xyflow:updateNodeInternals";
|
|
122
|
+
params: unknown;
|
|
123
|
+
};
|
|
124
|
+
updateXYFlow: {
|
|
125
|
+
type: "updateXYFlow";
|
|
126
|
+
params: NonReducibleUnknown;
|
|
127
|
+
};
|
|
128
|
+
updateLayoutData: {
|
|
129
|
+
type: "updateLayoutData";
|
|
130
|
+
params: NonReducibleUnknown;
|
|
131
|
+
};
|
|
132
|
+
}>, Values<{
|
|
133
|
+
isReady: {
|
|
134
|
+
type: "isReady";
|
|
135
|
+
params: unknown;
|
|
136
|
+
};
|
|
137
|
+
"enable: navigate.to": {
|
|
138
|
+
type: "enable: navigate.to";
|
|
139
|
+
params: unknown;
|
|
140
|
+
};
|
|
141
|
+
}>, never, "ready" | "closed" | "isReady" | "initializing", string, {
|
|
142
|
+
source?: never;
|
|
143
|
+
target?: never;
|
|
144
|
+
edgeId: EdgeId;
|
|
145
|
+
viewId: ViewId;
|
|
146
|
+
} | {
|
|
147
|
+
edgeId?: never;
|
|
148
|
+
source: Fqn;
|
|
149
|
+
target: Fqn;
|
|
150
|
+
viewId: ViewId;
|
|
151
|
+
}, NonReducibleUnknown, EventObject, MetaObject, {
|
|
152
|
+
readonly initial: "initializing";
|
|
82
153
|
readonly context: ({ input }: {
|
|
83
154
|
spawn: {
|
|
84
155
|
<TSrc extends never>(logic: TSrc, ...[options]: never): ActorRefFromLogic<never>;
|
|
@@ -89,180 +160,406 @@ export declare const relationshipDetailsLogic: StateMachine<Readonly<Input & {
|
|
|
89
160
|
syncSnapshot?: boolean;
|
|
90
161
|
} & { [K in RequiredLogicInput<TLogic>]: unknown; }], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
|
|
91
162
|
};
|
|
92
|
-
input:
|
|
93
|
-
|
|
163
|
+
input: {
|
|
164
|
+
source?: never;
|
|
165
|
+
target?: never;
|
|
166
|
+
edgeId: EdgeId;
|
|
167
|
+
viewId: ViewId;
|
|
168
|
+
} | {
|
|
169
|
+
edgeId?: never;
|
|
170
|
+
source: Fqn;
|
|
171
|
+
target: Fqn;
|
|
172
|
+
viewId: ViewId;
|
|
173
|
+
};
|
|
174
|
+
self: ActorRef<MachineSnapshot<Readonly<{
|
|
175
|
+
subject: Subject;
|
|
176
|
+
viewId: ViewId;
|
|
94
177
|
xyflow: XYFLowInstance | null;
|
|
95
|
-
|
|
178
|
+
xystore: XYStoreApi | null;
|
|
179
|
+
initialized: {
|
|
180
|
+
xydata: boolean;
|
|
181
|
+
xyflow: boolean;
|
|
182
|
+
};
|
|
96
183
|
xynodes: RelationshipDetailsTypes.Node[];
|
|
97
184
|
xyedges: RelationshipDetailsTypes.Edge[];
|
|
185
|
+
bounds: BBox;
|
|
98
186
|
}>, Events, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, Events, AnyEventObject>;
|
|
99
187
|
}) => {
|
|
100
|
-
|
|
188
|
+
subject: Subject;
|
|
189
|
+
viewId: ViewId;
|
|
190
|
+
bounds: {
|
|
191
|
+
x: number;
|
|
192
|
+
y: number;
|
|
193
|
+
width: number;
|
|
194
|
+
height: number;
|
|
195
|
+
};
|
|
196
|
+
initialized: {
|
|
197
|
+
xydata: false;
|
|
198
|
+
xyflow: false;
|
|
199
|
+
};
|
|
101
200
|
xyflow: null;
|
|
201
|
+
xystore: null;
|
|
102
202
|
xynodes: never[];
|
|
103
203
|
xyedges: never[];
|
|
104
|
-
edgeId: EdgeId;
|
|
105
|
-
view: DiagramView;
|
|
106
204
|
};
|
|
107
205
|
readonly states: {
|
|
108
|
-
readonly
|
|
206
|
+
readonly initializing: {
|
|
109
207
|
readonly on: {
|
|
110
208
|
readonly 'xyflow.init': {
|
|
111
|
-
readonly actions:
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
type: "xyflow.init";
|
|
118
|
-
instance: XYFLowInstance;
|
|
119
|
-
}, Events, undefined, never, never, never, never, never>;
|
|
120
|
-
readonly target: "active";
|
|
209
|
+
readonly actions: "updateXYFlow";
|
|
210
|
+
readonly target: "isReady";
|
|
211
|
+
};
|
|
212
|
+
readonly 'update.layoutData': {
|
|
213
|
+
readonly actions: "updateLayoutData";
|
|
214
|
+
readonly target: "isReady";
|
|
121
215
|
};
|
|
122
216
|
readonly close: {
|
|
123
217
|
readonly target: "closed";
|
|
124
218
|
};
|
|
125
219
|
};
|
|
126
220
|
};
|
|
127
|
-
readonly
|
|
128
|
-
readonly
|
|
129
|
-
readonly
|
|
130
|
-
readonly
|
|
131
|
-
readonly
|
|
132
|
-
|
|
133
|
-
|
|
221
|
+
readonly isReady: {
|
|
222
|
+
readonly always: readonly [{
|
|
223
|
+
readonly guard: "isReady";
|
|
224
|
+
readonly actions: readonly [{
|
|
225
|
+
readonly type: "xyflow:fitDiagram";
|
|
226
|
+
readonly params: {
|
|
227
|
+
readonly duration: 0;
|
|
228
|
+
};
|
|
229
|
+
}, ActionFunction<Readonly<{
|
|
230
|
+
subject: Subject;
|
|
231
|
+
viewId: ViewId;
|
|
232
|
+
xyflow: XYFLowInstance | null;
|
|
233
|
+
xystore: XYStoreApi | null;
|
|
234
|
+
initialized: {
|
|
235
|
+
xydata: boolean;
|
|
236
|
+
xyflow: boolean;
|
|
237
|
+
};
|
|
238
|
+
xynodes: RelationshipDetailsTypes.Node[];
|
|
239
|
+
xyedges: RelationshipDetailsTypes.Edge[];
|
|
240
|
+
bounds: BBox;
|
|
241
|
+
}>, Events, Events, undefined, never, never, never, never, never>];
|
|
242
|
+
readonly target: "ready";
|
|
243
|
+
}, {
|
|
244
|
+
readonly target: "initializing";
|
|
245
|
+
}];
|
|
246
|
+
};
|
|
247
|
+
readonly ready: {
|
|
134
248
|
readonly on: {
|
|
135
249
|
readonly 'xyflow.edgeMouseEnter': {
|
|
136
|
-
readonly actions: readonly [ ActionFunction<Readonly<
|
|
250
|
+
readonly actions: readonly [ ActionFunction<Readonly<{
|
|
251
|
+
subject: Subject;
|
|
252
|
+
viewId: ViewId;
|
|
137
253
|
xyflow: XYFLowInstance | null;
|
|
138
|
-
|
|
254
|
+
xystore: XYStoreApi | null;
|
|
255
|
+
initialized: {
|
|
256
|
+
xydata: boolean;
|
|
257
|
+
xyflow: boolean;
|
|
258
|
+
};
|
|
139
259
|
xynodes: RelationshipDetailsTypes.Node[];
|
|
140
260
|
xyedges: RelationshipDetailsTypes.Edge[];
|
|
261
|
+
bounds: BBox;
|
|
141
262
|
}>, {
|
|
142
263
|
type: "xyflow.edgeMouseEnter";
|
|
143
264
|
edge: RelationshipDetailsTypes.Edge;
|
|
144
|
-
}, Events, undefined, never, never, never, never, never>, CancelAction<Readonly<
|
|
265
|
+
}, Events, undefined, never, never, never, never, never>, CancelAction<Readonly<{
|
|
266
|
+
subject: Subject;
|
|
267
|
+
viewId: ViewId;
|
|
145
268
|
xyflow: XYFLowInstance | null;
|
|
146
|
-
|
|
269
|
+
xystore: XYStoreApi | null;
|
|
270
|
+
initialized: {
|
|
271
|
+
xydata: boolean;
|
|
272
|
+
xyflow: boolean;
|
|
273
|
+
};
|
|
147
274
|
xynodes: RelationshipDetailsTypes.Node[];
|
|
148
275
|
xyedges: RelationshipDetailsTypes.Edge[];
|
|
276
|
+
bounds: BBox;
|
|
149
277
|
}>, {
|
|
150
278
|
type: "xyflow.edgeMouseEnter";
|
|
151
279
|
edge: RelationshipDetailsTypes.Edge;
|
|
152
|
-
}, undefined, Events>, CancelAction<Readonly<
|
|
280
|
+
}, undefined, Events>, CancelAction<Readonly<{
|
|
281
|
+
subject: Subject;
|
|
282
|
+
viewId: ViewId;
|
|
153
283
|
xyflow: XYFLowInstance | null;
|
|
154
|
-
|
|
284
|
+
xystore: XYStoreApi | null;
|
|
285
|
+
initialized: {
|
|
286
|
+
xydata: boolean;
|
|
287
|
+
xyflow: boolean;
|
|
288
|
+
};
|
|
155
289
|
xynodes: RelationshipDetailsTypes.Node[];
|
|
156
290
|
xyedges: RelationshipDetailsTypes.Edge[];
|
|
291
|
+
bounds: BBox;
|
|
157
292
|
}>, {
|
|
158
293
|
type: "xyflow.edgeMouseEnter";
|
|
159
294
|
edge: RelationshipDetailsTypes.Edge;
|
|
160
|
-
}, undefined, Events>, ActionFunction<Readonly<
|
|
295
|
+
}, undefined, Events>, ActionFunction<Readonly<{
|
|
296
|
+
subject: Subject;
|
|
297
|
+
viewId: ViewId;
|
|
161
298
|
xyflow: XYFLowInstance | null;
|
|
162
|
-
|
|
299
|
+
xystore: XYStoreApi | null;
|
|
300
|
+
initialized: {
|
|
301
|
+
xydata: boolean;
|
|
302
|
+
xyflow: boolean;
|
|
303
|
+
};
|
|
163
304
|
xynodes: RelationshipDetailsTypes.Node[];
|
|
164
305
|
xyedges: RelationshipDetailsTypes.Edge[];
|
|
306
|
+
bounds: BBox;
|
|
165
307
|
}>, {
|
|
166
308
|
type: "xyflow.edgeMouseEnter";
|
|
167
309
|
edge: RelationshipDetailsTypes.Edge;
|
|
168
310
|
}, Events, undefined, never, never, never, never, never>];
|
|
169
311
|
};
|
|
170
312
|
readonly 'xyflow.edgeMouseLeave': {
|
|
171
|
-
readonly actions: readonly [ ActionFunction<Readonly<
|
|
313
|
+
readonly actions: readonly [ ActionFunction<Readonly<{
|
|
314
|
+
subject: Subject;
|
|
315
|
+
viewId: ViewId;
|
|
172
316
|
xyflow: XYFLowInstance | null;
|
|
173
|
-
|
|
317
|
+
xystore: XYStoreApi | null;
|
|
318
|
+
initialized: {
|
|
319
|
+
xydata: boolean;
|
|
320
|
+
xyflow: boolean;
|
|
321
|
+
};
|
|
174
322
|
xynodes: RelationshipDetailsTypes.Node[];
|
|
175
323
|
xyedges: RelationshipDetailsTypes.Edge[];
|
|
324
|
+
bounds: BBox;
|
|
176
325
|
}>, {
|
|
177
326
|
type: "xyflow.edgeMouseLeave";
|
|
178
327
|
edge: RelationshipDetailsTypes.Edge;
|
|
179
|
-
}, Events, undefined, never, never, never, never, never>, CancelAction<Readonly<
|
|
328
|
+
}, Events, undefined, never, never, never, never, never>, CancelAction<Readonly<{
|
|
329
|
+
subject: Subject;
|
|
330
|
+
viewId: ViewId;
|
|
180
331
|
xyflow: XYFLowInstance | null;
|
|
181
|
-
|
|
332
|
+
xystore: XYStoreApi | null;
|
|
333
|
+
initialized: {
|
|
334
|
+
xydata: boolean;
|
|
335
|
+
xyflow: boolean;
|
|
336
|
+
};
|
|
182
337
|
xynodes: RelationshipDetailsTypes.Node[];
|
|
183
338
|
xyedges: RelationshipDetailsTypes.Edge[];
|
|
339
|
+
bounds: BBox;
|
|
184
340
|
}>, {
|
|
185
341
|
type: "xyflow.edgeMouseLeave";
|
|
186
342
|
edge: RelationshipDetailsTypes.Edge;
|
|
187
|
-
}, undefined, Events>, ActionFunction<Readonly<
|
|
343
|
+
}, undefined, Events>, ActionFunction<Readonly<{
|
|
344
|
+
subject: Subject;
|
|
345
|
+
viewId: ViewId;
|
|
188
346
|
xyflow: XYFLowInstance | null;
|
|
189
|
-
|
|
347
|
+
xystore: XYStoreApi | null;
|
|
348
|
+
initialized: {
|
|
349
|
+
xydata: boolean;
|
|
350
|
+
xyflow: boolean;
|
|
351
|
+
};
|
|
190
352
|
xynodes: RelationshipDetailsTypes.Node[];
|
|
191
353
|
xyedges: RelationshipDetailsTypes.Edge[];
|
|
354
|
+
bounds: BBox;
|
|
192
355
|
}>, {
|
|
193
356
|
type: "xyflow.edgeMouseLeave";
|
|
194
357
|
edge: RelationshipDetailsTypes.Edge;
|
|
195
358
|
}, Events, undefined, never, never, never, never, never>];
|
|
196
359
|
};
|
|
197
360
|
readonly 'dim.nonhovered.edges': {
|
|
198
|
-
readonly actions: ActionFunction<Readonly<
|
|
361
|
+
readonly actions: ActionFunction<Readonly<{
|
|
362
|
+
subject: Subject;
|
|
363
|
+
viewId: ViewId;
|
|
199
364
|
xyflow: XYFLowInstance | null;
|
|
200
|
-
|
|
365
|
+
xystore: XYStoreApi | null;
|
|
366
|
+
initialized: {
|
|
367
|
+
xydata: boolean;
|
|
368
|
+
xyflow: boolean;
|
|
369
|
+
};
|
|
201
370
|
xynodes: RelationshipDetailsTypes.Node[];
|
|
202
371
|
xyedges: RelationshipDetailsTypes.Edge[];
|
|
372
|
+
bounds: BBox;
|
|
203
373
|
}>, {
|
|
204
374
|
type: "dim.nonhovered.edges";
|
|
205
375
|
}, Events, undefined, never, never, never, never, never>;
|
|
206
376
|
};
|
|
207
377
|
readonly 'undim.edges': {
|
|
208
|
-
readonly actions: ActionFunction<Readonly<
|
|
378
|
+
readonly actions: ActionFunction<Readonly<{
|
|
379
|
+
subject: Subject;
|
|
380
|
+
viewId: ViewId;
|
|
209
381
|
xyflow: XYFLowInstance | null;
|
|
210
|
-
|
|
382
|
+
xystore: XYStoreApi | null;
|
|
383
|
+
initialized: {
|
|
384
|
+
xydata: boolean;
|
|
385
|
+
xyflow: boolean;
|
|
386
|
+
};
|
|
211
387
|
xynodes: RelationshipDetailsTypes.Node[];
|
|
212
388
|
xyedges: RelationshipDetailsTypes.Edge[];
|
|
389
|
+
bounds: BBox;
|
|
213
390
|
}>, {
|
|
214
391
|
type: "undim.edges";
|
|
215
392
|
}, Events, undefined, never, never, never, never, never>;
|
|
216
393
|
};
|
|
217
394
|
readonly 'xyflow.selectionChange': {
|
|
218
|
-
readonly actions: ActionFunction<Readonly<
|
|
395
|
+
readonly actions: ActionFunction<Readonly<{
|
|
396
|
+
subject: Subject;
|
|
397
|
+
viewId: ViewId;
|
|
219
398
|
xyflow: XYFLowInstance | null;
|
|
220
|
-
|
|
399
|
+
xystore: XYStoreApi | null;
|
|
400
|
+
initialized: {
|
|
401
|
+
xydata: boolean;
|
|
402
|
+
xyflow: boolean;
|
|
403
|
+
};
|
|
221
404
|
xynodes: RelationshipDetailsTypes.Node[];
|
|
222
405
|
xyedges: RelationshipDetailsTypes.Edge[];
|
|
406
|
+
bounds: BBox;
|
|
223
407
|
}>, {
|
|
224
408
|
type: "xyflow.selectionChange";
|
|
225
409
|
nodes: RelationshipDetailsTypes.Node[];
|
|
226
410
|
edges: RelationshipDetailsTypes.Edge[];
|
|
227
|
-
}, Events, undefined, never, {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
411
|
+
}, Events, undefined, never, Values<{
|
|
412
|
+
"xyflow:fitDiagram": {
|
|
413
|
+
type: "xyflow:fitDiagram";
|
|
414
|
+
params: {
|
|
415
|
+
duration?: number;
|
|
416
|
+
bounds?: BBox;
|
|
417
|
+
} | undefined;
|
|
418
|
+
};
|
|
419
|
+
"xyflow:updateNodeInternals": {
|
|
420
|
+
type: "xyflow:updateNodeInternals";
|
|
421
|
+
params: unknown;
|
|
422
|
+
};
|
|
423
|
+
updateXYFlow: {
|
|
424
|
+
type: "updateXYFlow";
|
|
425
|
+
params: NonReducibleUnknown;
|
|
426
|
+
};
|
|
427
|
+
updateLayoutData: {
|
|
428
|
+
type: "updateLayoutData";
|
|
429
|
+
params: NonReducibleUnknown;
|
|
430
|
+
};
|
|
431
|
+
}>, Values<{
|
|
432
|
+
isReady: {
|
|
433
|
+
type: "isReady";
|
|
434
|
+
params: unknown;
|
|
435
|
+
};
|
|
436
|
+
"enable: navigate.to": {
|
|
437
|
+
type: "enable: navigate.to";
|
|
438
|
+
params: unknown;
|
|
439
|
+
};
|
|
440
|
+
}>, never, EventObject>;
|
|
237
441
|
};
|
|
238
|
-
readonly '
|
|
239
|
-
readonly actions: readonly [
|
|
442
|
+
readonly 'update.layoutData': {
|
|
443
|
+
readonly actions: readonly ["updateLayoutData", CancelAction<Readonly<{
|
|
444
|
+
subject: Subject;
|
|
445
|
+
viewId: ViewId;
|
|
240
446
|
xyflow: XYFLowInstance | null;
|
|
241
|
-
|
|
447
|
+
xystore: XYStoreApi | null;
|
|
448
|
+
initialized: {
|
|
449
|
+
xydata: boolean;
|
|
450
|
+
xyflow: boolean;
|
|
451
|
+
};
|
|
242
452
|
xynodes: RelationshipDetailsTypes.Node[];
|
|
243
453
|
xyedges: RelationshipDetailsTypes.Edge[];
|
|
454
|
+
bounds: BBox;
|
|
244
455
|
}>, {
|
|
245
|
-
type: "
|
|
246
|
-
|
|
247
|
-
},
|
|
456
|
+
type: "update.layoutData";
|
|
457
|
+
data: LayoutResult;
|
|
458
|
+
}, undefined, Events>, {
|
|
459
|
+
readonly type: "xyflow:fitDiagram";
|
|
460
|
+
readonly params: {
|
|
461
|
+
readonly duration: 0;
|
|
462
|
+
};
|
|
463
|
+
}, ActionFunction<Readonly<{
|
|
464
|
+
subject: Subject;
|
|
465
|
+
viewId: ViewId;
|
|
248
466
|
xyflow: XYFLowInstance | null;
|
|
249
|
-
|
|
467
|
+
xystore: XYStoreApi | null;
|
|
468
|
+
initialized: {
|
|
469
|
+
xydata: boolean;
|
|
470
|
+
xyflow: boolean;
|
|
471
|
+
};
|
|
250
472
|
xynodes: RelationshipDetailsTypes.Node[];
|
|
251
473
|
xyedges: RelationshipDetailsTypes.Edge[];
|
|
474
|
+
bounds: BBox;
|
|
252
475
|
}>, {
|
|
253
|
-
type: "
|
|
254
|
-
|
|
476
|
+
type: "update.layoutData";
|
|
477
|
+
data: LayoutResult;
|
|
255
478
|
}, Events, undefined, never, never, never, never, never>];
|
|
256
479
|
};
|
|
480
|
+
readonly 'xyflow.init': {
|
|
481
|
+
readonly actions: "updateXYFlow";
|
|
482
|
+
};
|
|
483
|
+
readonly 'xyflow.applyNodeChanges': {
|
|
484
|
+
readonly actions: ActionFunction<Readonly<{
|
|
485
|
+
subject: Subject;
|
|
486
|
+
viewId: ViewId;
|
|
487
|
+
xyflow: XYFLowInstance | null;
|
|
488
|
+
xystore: XYStoreApi | null;
|
|
489
|
+
initialized: {
|
|
490
|
+
xydata: boolean;
|
|
491
|
+
xyflow: boolean;
|
|
492
|
+
};
|
|
493
|
+
xynodes: RelationshipDetailsTypes.Node[];
|
|
494
|
+
xyedges: RelationshipDetailsTypes.Edge[];
|
|
495
|
+
bounds: BBox;
|
|
496
|
+
}>, {
|
|
497
|
+
type: "xyflow.applyNodeChanges";
|
|
498
|
+
changes: NodeChange<RelationshipDetailsTypes.Node>[];
|
|
499
|
+
}, Events, undefined, never, never, never, never, never>;
|
|
500
|
+
};
|
|
501
|
+
readonly 'xyflow.applyEdgeChanges': {
|
|
502
|
+
readonly actions: ActionFunction<Readonly<{
|
|
503
|
+
subject: Subject;
|
|
504
|
+
viewId: ViewId;
|
|
505
|
+
xyflow: XYFLowInstance | null;
|
|
506
|
+
xystore: XYStoreApi | null;
|
|
507
|
+
initialized: {
|
|
508
|
+
xydata: boolean;
|
|
509
|
+
xyflow: boolean;
|
|
510
|
+
};
|
|
511
|
+
xynodes: RelationshipDetailsTypes.Node[];
|
|
512
|
+
xyedges: RelationshipDetailsTypes.Edge[];
|
|
513
|
+
bounds: BBox;
|
|
514
|
+
}>, {
|
|
515
|
+
type: "xyflow.applyEdgeChanges";
|
|
516
|
+
changes: EdgeChange<RelationshipDetailsTypes.Edge>[];
|
|
517
|
+
}, Events, undefined, never, never, never, never, never>;
|
|
518
|
+
};
|
|
519
|
+
readonly 'xyflow.paneDblClick': {
|
|
520
|
+
readonly actions: "xyflow:fitDiagram";
|
|
521
|
+
};
|
|
522
|
+
readonly 'navigate.to': {
|
|
523
|
+
readonly actions: ActionFunction<Readonly<{
|
|
524
|
+
subject: Subject;
|
|
525
|
+
viewId: ViewId;
|
|
526
|
+
xyflow: XYFLowInstance | null;
|
|
527
|
+
xystore: XYStoreApi | null;
|
|
528
|
+
initialized: {
|
|
529
|
+
xydata: boolean;
|
|
530
|
+
xyflow: boolean;
|
|
531
|
+
};
|
|
532
|
+
xynodes: RelationshipDetailsTypes.Node[];
|
|
533
|
+
xyedges: RelationshipDetailsTypes.Edge[];
|
|
534
|
+
bounds: BBox;
|
|
535
|
+
}>, {
|
|
536
|
+
type: "navigate.to";
|
|
537
|
+
params: {
|
|
538
|
+
edgeId: EdgeId;
|
|
539
|
+
viewId?: ViewId;
|
|
540
|
+
} | {
|
|
541
|
+
source: Fqn;
|
|
542
|
+
target: Fqn;
|
|
543
|
+
viewId?: ViewId;
|
|
544
|
+
};
|
|
545
|
+
}, Events, undefined, never, never, never, never, never>;
|
|
546
|
+
};
|
|
257
547
|
readonly close: {
|
|
258
548
|
readonly target: "closed";
|
|
259
549
|
};
|
|
260
550
|
};
|
|
261
|
-
readonly exit: ActionFunction<Readonly<
|
|
551
|
+
readonly exit: ActionFunction<Readonly<{
|
|
552
|
+
subject: Subject;
|
|
553
|
+
viewId: ViewId;
|
|
262
554
|
xyflow: XYFLowInstance | null;
|
|
263
|
-
|
|
555
|
+
xystore: XYStoreApi | null;
|
|
556
|
+
initialized: {
|
|
557
|
+
xydata: boolean;
|
|
558
|
+
xyflow: boolean;
|
|
559
|
+
};
|
|
264
560
|
xynodes: RelationshipDetailsTypes.Node[];
|
|
265
561
|
xyedges: RelationshipDetailsTypes.Edge[];
|
|
562
|
+
bounds: BBox;
|
|
266
563
|
}>, Events, Events, undefined, never, never, never, never, never>;
|
|
267
564
|
};
|
|
268
565
|
readonly closed: {
|
|
@@ -274,9 +571,15 @@ export declare const relationshipDetailsLogic: StateMachine<Readonly<Input & {
|
|
|
274
571
|
readonly actions: {
|
|
275
572
|
readonly type: "xyflow:fitDiagram";
|
|
276
573
|
readonly params: (data: {
|
|
277
|
-
context: Readonly<
|
|
574
|
+
context: Readonly<{
|
|
575
|
+
subject: Subject;
|
|
576
|
+
viewId: ViewId;
|
|
278
577
|
xyflow: XYFLowInstance | null;
|
|
279
|
-
|
|
578
|
+
xystore: XYStoreApi | null;
|
|
579
|
+
initialized: {
|
|
580
|
+
xydata: boolean;
|
|
581
|
+
xyflow: boolean;
|
|
582
|
+
};
|
|
280
583
|
xynodes: RelationshipDetailsTypes.Node[];
|
|
281
584
|
xyedges: {
|
|
282
585
|
id: string;
|
|
@@ -318,6 +621,7 @@ export declare const relationshipDetailsLogic: StateMachine<Readonly<Input & {
|
|
|
318
621
|
dimmed?: Base.Dimmed;
|
|
319
622
|
};
|
|
320
623
|
}[];
|
|
624
|
+
bounds: BBox;
|
|
321
625
|
}>;
|
|
322
626
|
event: {
|
|
323
627
|
type: "fitDiagram";
|
|
@@ -332,55 +636,38 @@ export declare const relationshipDetailsLogic: StateMachine<Readonly<Input & {
|
|
|
332
636
|
};
|
|
333
637
|
};
|
|
334
638
|
readonly 'xyflow.resized': {
|
|
335
|
-
readonly actions: readonly [ CancelAction<Readonly<
|
|
639
|
+
readonly actions: readonly [ CancelAction<Readonly<{
|
|
640
|
+
subject: Subject;
|
|
641
|
+
viewId: ViewId;
|
|
336
642
|
xyflow: XYFLowInstance | null;
|
|
337
|
-
|
|
643
|
+
xystore: XYStoreApi | null;
|
|
644
|
+
initialized: {
|
|
645
|
+
xydata: boolean;
|
|
646
|
+
xyflow: boolean;
|
|
647
|
+
};
|
|
338
648
|
xynodes: RelationshipDetailsTypes.Node[];
|
|
339
649
|
xyedges: RelationshipDetailsTypes.Edge[];
|
|
650
|
+
bounds: BBox;
|
|
340
651
|
}>, {
|
|
341
652
|
type: "xyflow.resized";
|
|
342
|
-
}, undefined, Events>, ActionFunction<Readonly<
|
|
653
|
+
}, undefined, Events>, ActionFunction<Readonly<{
|
|
654
|
+
subject: Subject;
|
|
655
|
+
viewId: ViewId;
|
|
343
656
|
xyflow: XYFLowInstance | null;
|
|
344
|
-
|
|
657
|
+
xystore: XYStoreApi | null;
|
|
658
|
+
initialized: {
|
|
659
|
+
xydata: boolean;
|
|
660
|
+
xyflow: boolean;
|
|
661
|
+
};
|
|
345
662
|
xynodes: RelationshipDetailsTypes.Node[];
|
|
346
663
|
xyedges: RelationshipDetailsTypes.Edge[];
|
|
664
|
+
bounds: BBox;
|
|
347
665
|
}>, {
|
|
348
666
|
type: "xyflow.resized";
|
|
349
667
|
}, Events, undefined, never, never, never, never, never>];
|
|
350
668
|
};
|
|
351
|
-
readonly '
|
|
352
|
-
readonly actions:
|
|
353
|
-
xyflow: XYFLowInstance | null;
|
|
354
|
-
initialized: boolean;
|
|
355
|
-
xynodes: RelationshipDetailsTypes.Node[];
|
|
356
|
-
xyedges: RelationshipDetailsTypes.Edge[];
|
|
357
|
-
}>, {
|
|
358
|
-
type: "update.xydata";
|
|
359
|
-
xynodes: RelationshipDetailsTypes.Node[];
|
|
360
|
-
xyedges: RelationshipDetailsTypes.Edge[];
|
|
361
|
-
}, Events, undefined, never, never, never, never, never>;
|
|
362
|
-
};
|
|
363
|
-
readonly 'xyflow.applyNodeChanges': {
|
|
364
|
-
readonly actions: ActionFunction<Readonly<Input & {
|
|
365
|
-
xyflow: XYFLowInstance | null;
|
|
366
|
-
initialized: boolean;
|
|
367
|
-
xynodes: RelationshipDetailsTypes.Node[];
|
|
368
|
-
xyedges: RelationshipDetailsTypes.Edge[];
|
|
369
|
-
}>, {
|
|
370
|
-
type: "xyflow.applyNodeChanges";
|
|
371
|
-
changes: NodeChange<RelationshipDetailsTypes.Node>[];
|
|
372
|
-
}, Events, undefined, never, never, never, never, never>;
|
|
373
|
-
};
|
|
374
|
-
readonly 'xyflow.applyEdgeChanges': {
|
|
375
|
-
readonly actions: ActionFunction<Readonly<Input & {
|
|
376
|
-
xyflow: XYFLowInstance | null;
|
|
377
|
-
initialized: boolean;
|
|
378
|
-
xynodes: RelationshipDetailsTypes.Node[];
|
|
379
|
-
xyedges: RelationshipDetailsTypes.Edge[];
|
|
380
|
-
}>, {
|
|
381
|
-
type: "xyflow.applyEdgeChanges";
|
|
382
|
-
changes: EdgeChange<RelationshipDetailsTypes.Edge>[];
|
|
383
|
-
}, Events, undefined, never, never, never, never, never>;
|
|
669
|
+
readonly 'xyflow.updateNodeInternals': {
|
|
670
|
+
readonly actions: "xyflow:updateNodeInternals";
|
|
384
671
|
};
|
|
385
672
|
};
|
|
386
673
|
}>;
|