@finos/legend-extension-dsl-data-space 9.1.7 → 9.2.1
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/lib/components/DataSpaceDataAccess.d.ts.map +1 -1
- package/lib/components/DataSpaceDataAccess.js +71 -3
- package/lib/components/DataSpaceDataAccess.js.map +1 -1
- package/lib/components/DataSpaceDescription.d.ts.map +1 -1
- package/lib/components/DataSpaceDescription.js +6 -1
- package/lib/components/DataSpaceDescription.js.map +1 -1
- package/lib/components/DataSpaceDiagramViewer.js +3 -3
- package/lib/components/DataSpaceDiagramViewer.js.map +1 -1
- package/lib/components/DataSpaceQuickStart.d.ts.map +1 -1
- package/lib/components/DataSpaceQuickStart.js +3 -2
- package/lib/components/DataSpaceQuickStart.js.map +1 -1
- package/lib/components/DataSpaceViewer.d.ts.map +1 -1
- package/lib/components/DataSpaceViewer.js +3 -2
- package/lib/components/DataSpaceViewer.js.map +1 -1
- package/lib/components/DataSpaceViewerActivityBar.d.ts.map +1 -1
- package/lib/components/DataSpaceViewerActivityBar.js +13 -4
- package/lib/components/DataSpaceViewerActivityBar.js.map +1 -1
- package/lib/components/DataSpaceWiki.d.ts.map +1 -1
- package/lib/components/DataSpaceWiki.js +1 -0
- package/lib/components/DataSpaceWiki.js.map +1 -1
- package/lib/components/query/DataSpaceQueryCreator.js +1 -1
- package/lib/components/query/DataSpaceQueryCreator.js.map +1 -1
- package/lib/graph/DSL_DataSpace_HashUtils.d.ts +1 -0
- package/lib/graph/DSL_DataSpace_HashUtils.d.ts.map +1 -1
- package/lib/graph/DSL_DataSpace_HashUtils.js +1 -0
- package/lib/graph/DSL_DataSpace_HashUtils.js.map +1 -1
- package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.d.ts +23 -19
- package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.d.ts.map +1 -1
- package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js +41 -32
- package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js.map +1 -1
- package/lib/graphManager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.js +23 -17
- package/lib/graphManager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js +4 -11
- package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.d.ts +3 -3
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.js +25 -2
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.d.ts +21 -17
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.js +41 -32
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.d.ts +2 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.js +44 -10
- package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +5 -5
- package/lib/stores/DataSpaceViewerDataAccessState.d.ts +35 -0
- package/lib/stores/DataSpaceViewerDataAccessState.d.ts.map +1 -0
- package/lib/stores/DataSpaceViewerDataAccessState.js +100 -0
- package/lib/stores/DataSpaceViewerDataAccessState.js.map +1 -0
- package/lib/stores/DataSpaceViewerState.d.ts +34 -20
- package/lib/stores/DataSpaceViewerState.d.ts.map +1 -1
- package/lib/stores/DataSpaceViewerState.js +100 -29
- package/lib/stores/DataSpaceViewerState.js.map +1 -1
- package/lib/stores/query/DataSpaceAdvancedSearchState.d.ts +1 -1
- package/lib/stores/query/DataSpaceAdvancedSearchState.d.ts.map +1 -1
- package/lib/stores/query/DataSpaceAdvancedSearchState.js +2 -0
- package/lib/stores/query/DataSpaceAdvancedSearchState.js.map +1 -1
- package/lib/stores/studio/DataSpacePreviewState.d.ts.map +1 -1
- package/lib/stores/studio/DataSpacePreviewState.js +2 -0
- package/lib/stores/studio/DataSpacePreviewState.js.map +1 -1
- package/package.json +16 -16
- package/src/components/DataSpaceDataAccess.tsx +116 -2
- package/src/components/DataSpaceDescription.tsx +7 -1
- package/src/components/DataSpaceDiagramViewer.tsx +3 -3
- package/src/components/DataSpaceQuickStart.tsx +5 -1
- package/src/components/DataSpaceViewer.tsx +6 -2
- package/src/components/DataSpaceViewerActivityBar.tsx +14 -5
- package/src/components/DataSpaceWiki.tsx +2 -0
- package/src/components/query/DataSpaceQueryCreator.tsx +1 -1
- package/src/graph/DSL_DataSpace_HashUtils.ts +1 -0
- package/src/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.ts +59 -55
- package/src/graphManager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.ts +23 -30
- package/src/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts +9 -18
- package/src/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.ts +34 -3
- package/src/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.ts +57 -46
- package/src/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.ts +59 -14
- package/src/stores/DataSpaceViewerDataAccessState.ts +146 -0
- package/src/stores/DataSpaceViewerState.ts +126 -33
- package/src/stores/query/DataSpaceAdvancedSearchState.ts +14 -1
- package/src/stores/studio/DataSpacePreviewState.ts +3 -0
- package/tsconfig.json +1 -0
|
@@ -14,7 +14,10 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import type {
|
|
17
|
+
import type {
|
|
18
|
+
GenericLegendApplicationStore,
|
|
19
|
+
NavigationZone,
|
|
20
|
+
} from '@finos/legend-application';
|
|
18
21
|
import {
|
|
19
22
|
type ClassView,
|
|
20
23
|
type DiagramRenderer,
|
|
@@ -22,6 +25,7 @@ import {
|
|
|
22
25
|
} from '@finos/legend-extension-dsl-diagram';
|
|
23
26
|
import type {
|
|
24
27
|
BasicGraphManagerState,
|
|
28
|
+
GraphData,
|
|
25
29
|
PackageableRuntime,
|
|
26
30
|
} from '@finos/legend-graph';
|
|
27
31
|
import {
|
|
@@ -38,31 +42,54 @@ import {
|
|
|
38
42
|
PURE_DATA_SPACE_INFO_PROFILE_PATH,
|
|
39
43
|
PURE_DATA_SPACE_INFO_PROFILE_VERIFIED_STEREOTYPE,
|
|
40
44
|
} from '../graphManager/DSL_DataSpace_PureGraphManagerPlugin.js';
|
|
45
|
+
import { DataSpaceViewerDataAccessState } from './DataSpaceViewerDataAccessState.js';
|
|
41
46
|
|
|
42
47
|
export enum DATA_SPACE_VIEWER_ACTIVITY_MODE {
|
|
43
|
-
DESCRIPTION = '
|
|
44
|
-
DIAGRAM_VIEWER = '
|
|
45
|
-
MODELS_DOCUMENTATION = '
|
|
46
|
-
QUICK_START = '
|
|
47
|
-
EXECUTION_CONTEXT = '
|
|
48
|
-
DATA_ACCESS = '
|
|
49
|
-
|
|
50
|
-
DATA_STORES = '
|
|
51
|
-
DATA_AVAILABILITY = '
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
48
|
+
DESCRIPTION = 'description',
|
|
49
|
+
DIAGRAM_VIEWER = 'diagram_viewer',
|
|
50
|
+
MODELS_DOCUMENTATION = 'models_documentation',
|
|
51
|
+
QUICK_START = 'quick_start',
|
|
52
|
+
EXECUTION_CONTEXT = 'execution_context',
|
|
53
|
+
DATA_ACCESS = 'data_access',
|
|
54
|
+
|
|
55
|
+
DATA_STORES = 'data_stores', // TODO: with test-data, also let user call TDS query on top of these
|
|
56
|
+
DATA_AVAILABILITY = 'data_availability',
|
|
57
|
+
DATA_READINESS = 'data_readiness',
|
|
58
|
+
DATA_COST = 'data_cost',
|
|
59
|
+
DATA_GOVERNANCE = 'data_governance',
|
|
60
|
+
INFO = 'info', // TODO: test coverage? (or maybe this should be done in elements/diagrams/data-quality section)
|
|
61
|
+
SUPPORT = 'support',
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
class DataSpaceLayoutState {
|
|
65
|
+
readonly dataSpaceViewerState: DataSpaceViewerState;
|
|
66
|
+
|
|
67
|
+
isExpandedModeEnabled = false;
|
|
68
|
+
|
|
69
|
+
constructor(dataSpaceViewerState: DataSpaceViewerState) {
|
|
70
|
+
makeObservable(this, {
|
|
71
|
+
isExpandedModeEnabled: observable,
|
|
72
|
+
enableExpandedMode: action,
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
this.dataSpaceViewerState = dataSpaceViewerState;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
enableExpandedMode(val: boolean): void {
|
|
79
|
+
this.isExpandedModeEnabled = val;
|
|
80
|
+
}
|
|
56
81
|
}
|
|
57
82
|
|
|
58
83
|
export class DataSpaceViewerState {
|
|
59
84
|
readonly applicationStore: GenericLegendApplicationStore;
|
|
60
85
|
readonly graphManagerState: BasicGraphManagerState;
|
|
86
|
+
readonly layoutState: DataSpaceLayoutState;
|
|
61
87
|
|
|
88
|
+
readonly dataSpaceAnalysisResult: DataSpaceAnalysisResult;
|
|
62
89
|
readonly groupId: string;
|
|
63
90
|
readonly artifactId: string;
|
|
64
91
|
readonly versionId: string;
|
|
65
|
-
readonly
|
|
92
|
+
readonly retriveGraphData: () => GraphData;
|
|
66
93
|
readonly viewProject: (
|
|
67
94
|
groupId: string,
|
|
68
95
|
artifactId: string,
|
|
@@ -75,6 +102,11 @@ export class DataSpaceViewerState {
|
|
|
75
102
|
entityPath: string | undefined,
|
|
76
103
|
) => Promise<void>;
|
|
77
104
|
readonly onDiagramClassDoubleClick: (classView: ClassView) => void;
|
|
105
|
+
readonly onZoneChange?:
|
|
106
|
+
| ((zone: NavigationZone | undefined) => void)
|
|
107
|
+
| undefined;
|
|
108
|
+
|
|
109
|
+
readonly dataAccessState: DataSpaceViewerDataAccessState;
|
|
78
110
|
|
|
79
111
|
_renderer?: DiagramRenderer | undefined;
|
|
80
112
|
currentDiagram?: DataSpaceDiagramAnalysisResult | undefined;
|
|
@@ -82,8 +114,6 @@ export class DataSpaceViewerState {
|
|
|
82
114
|
currentExecutionContext: DataSpaceExecutionContextAnalysisResult;
|
|
83
115
|
currentRuntime: PackageableRuntime;
|
|
84
116
|
|
|
85
|
-
isExpandedModeEnabled = false;
|
|
86
|
-
|
|
87
117
|
constructor(
|
|
88
118
|
applicationStore: GenericLegendApplicationStore,
|
|
89
119
|
graphManagerState: BasicGraphManagerState,
|
|
@@ -92,6 +122,7 @@ export class DataSpaceViewerState {
|
|
|
92
122
|
versionId: string,
|
|
93
123
|
dataSpaceAnalysisResult: DataSpaceAnalysisResult,
|
|
94
124
|
actions: {
|
|
125
|
+
retriveGraphData: () => GraphData;
|
|
95
126
|
viewProject: (
|
|
96
127
|
groupId: string,
|
|
97
128
|
artifactId: string,
|
|
@@ -104,6 +135,7 @@ export class DataSpaceViewerState {
|
|
|
104
135
|
entityPath: string | undefined,
|
|
105
136
|
) => Promise<void>;
|
|
106
137
|
onDiagramClassDoubleClick: (classView: ClassView) => void;
|
|
138
|
+
onZoneChange?: ((zone: NavigationZone | undefined) => void) | undefined;
|
|
107
139
|
},
|
|
108
140
|
) {
|
|
109
141
|
makeObservable(this, {
|
|
@@ -112,19 +144,19 @@ export class DataSpaceViewerState {
|
|
|
112
144
|
currentActivity: observable,
|
|
113
145
|
currentExecutionContext: observable,
|
|
114
146
|
currentRuntime: observable,
|
|
115
|
-
isExpandedModeEnabled: observable,
|
|
116
147
|
isVerified: computed,
|
|
117
|
-
|
|
118
|
-
|
|
148
|
+
diagramRenderer: computed,
|
|
149
|
+
setDiagramRenderer: action,
|
|
119
150
|
setCurrentDiagram: action,
|
|
120
151
|
setCurrentActivity: action,
|
|
121
152
|
setCurrentExecutionContext: action,
|
|
122
153
|
setCurrentRuntime: action,
|
|
123
|
-
enableExpandedMode: action,
|
|
124
154
|
});
|
|
125
155
|
|
|
126
156
|
this.applicationStore = applicationStore;
|
|
127
157
|
this.graphManagerState = graphManagerState;
|
|
158
|
+
this.layoutState = new DataSpaceLayoutState(this);
|
|
159
|
+
|
|
128
160
|
this.dataSpaceAnalysisResult = dataSpaceAnalysisResult;
|
|
129
161
|
this.groupId = groupId;
|
|
130
162
|
this.artifactId = artifactId;
|
|
@@ -135,12 +167,16 @@ export class DataSpaceViewerState {
|
|
|
135
167
|
this.currentDiagram = getNullableFirstElement(
|
|
136
168
|
this.dataSpaceAnalysisResult.diagrams,
|
|
137
169
|
);
|
|
170
|
+
this.retriveGraphData = actions.retriveGraphData;
|
|
138
171
|
this.viewProject = actions.viewProject;
|
|
139
172
|
this.viewSDLCProject = actions.viewSDLCProject;
|
|
140
173
|
this.onDiagramClassDoubleClick = actions.onDiagramClassDoubleClick;
|
|
174
|
+
this.onZoneChange = actions.onZoneChange;
|
|
175
|
+
|
|
176
|
+
this.dataAccessState = new DataSpaceViewerDataAccessState(this);
|
|
141
177
|
}
|
|
142
178
|
|
|
143
|
-
get
|
|
179
|
+
get diagramRenderer(): DiagramRenderer {
|
|
144
180
|
return guaranteeNonNullable(
|
|
145
181
|
this._renderer,
|
|
146
182
|
`Diagram renderer must be initialized (this is likely caused by calling this method at the wrong place)`,
|
|
@@ -159,12 +195,12 @@ export class DataSpaceViewerState {
|
|
|
159
195
|
if (!this.isDiagramRendererInitialized) {
|
|
160
196
|
return '';
|
|
161
197
|
}
|
|
162
|
-
if (this.
|
|
198
|
+
if (this.diagramRenderer.middleClick || this.diagramRenderer.rightClick) {
|
|
163
199
|
return 'diagram-editor__cursor--grabbing';
|
|
164
200
|
}
|
|
165
|
-
switch (this.
|
|
201
|
+
switch (this.diagramRenderer.interactionMode) {
|
|
166
202
|
case DIAGRAM_INTERACTION_MODE.LAYOUT: {
|
|
167
|
-
if (this.
|
|
203
|
+
if (this.diagramRenderer.mouseOverClassView) {
|
|
168
204
|
return 'diagram-editor__cursor--pointer';
|
|
169
205
|
}
|
|
170
206
|
return '';
|
|
@@ -184,7 +220,7 @@ export class DataSpaceViewerState {
|
|
|
184
220
|
);
|
|
185
221
|
}
|
|
186
222
|
|
|
187
|
-
|
|
223
|
+
setDiagramRenderer(val: DiagramRenderer): void {
|
|
188
224
|
this._renderer = val;
|
|
189
225
|
}
|
|
190
226
|
|
|
@@ -207,14 +243,71 @@ export class DataSpaceViewerState {
|
|
|
207
243
|
this.currentRuntime = val;
|
|
208
244
|
}
|
|
209
245
|
|
|
210
|
-
|
|
211
|
-
this.
|
|
212
|
-
this.
|
|
213
|
-
this.
|
|
214
|
-
|
|
246
|
+
setupDiagramRenderer(): void {
|
|
247
|
+
this.diagramRenderer.setIsReadOnly(true);
|
|
248
|
+
this.diagramRenderer.setEnableLayoutAutoAdjustment(true);
|
|
249
|
+
this.diagramRenderer.onClassViewDoubleClick = (
|
|
250
|
+
classView: ClassView,
|
|
251
|
+
): void => this.onDiagramClassDoubleClick(classView);
|
|
215
252
|
}
|
|
216
253
|
|
|
217
|
-
|
|
218
|
-
|
|
254
|
+
changeZone(zone: NavigationZone): void {
|
|
255
|
+
switch (zone) {
|
|
256
|
+
case DATA_SPACE_VIEWER_ACTIVITY_MODE.DESCRIPTION:
|
|
257
|
+
case DATA_SPACE_VIEWER_ACTIVITY_MODE.DIAGRAM_VIEWER:
|
|
258
|
+
case DATA_SPACE_VIEWER_ACTIVITY_MODE.MODELS_DOCUMENTATION:
|
|
259
|
+
case DATA_SPACE_VIEWER_ACTIVITY_MODE.QUICK_START: {
|
|
260
|
+
this.setCurrentActivity(DATA_SPACE_VIEWER_ACTIVITY_MODE.DESCRIPTION);
|
|
261
|
+
break;
|
|
262
|
+
}
|
|
263
|
+
case DATA_SPACE_VIEWER_ACTIVITY_MODE.EXECUTION_CONTEXT: {
|
|
264
|
+
this.setCurrentActivity(
|
|
265
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE.EXECUTION_CONTEXT,
|
|
266
|
+
);
|
|
267
|
+
break;
|
|
268
|
+
}
|
|
269
|
+
case DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_ACCESS: {
|
|
270
|
+
this.setCurrentActivity(DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_ACCESS);
|
|
271
|
+
break;
|
|
272
|
+
}
|
|
273
|
+
case DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_STORES: {
|
|
274
|
+
this.setCurrentActivity(DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_STORES);
|
|
275
|
+
break;
|
|
276
|
+
}
|
|
277
|
+
case DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_AVAILABILITY: {
|
|
278
|
+
this.setCurrentActivity(
|
|
279
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_AVAILABILITY,
|
|
280
|
+
);
|
|
281
|
+
break;
|
|
282
|
+
}
|
|
283
|
+
case DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_READINESS: {
|
|
284
|
+
this.setCurrentActivity(DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_READINESS);
|
|
285
|
+
break;
|
|
286
|
+
}
|
|
287
|
+
case DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_COST: {
|
|
288
|
+
this.setCurrentActivity(DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_COST);
|
|
289
|
+
break;
|
|
290
|
+
}
|
|
291
|
+
case DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_GOVERNANCE: {
|
|
292
|
+
this.setCurrentActivity(
|
|
293
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_GOVERNANCE,
|
|
294
|
+
);
|
|
295
|
+
break;
|
|
296
|
+
}
|
|
297
|
+
case DATA_SPACE_VIEWER_ACTIVITY_MODE.INFO: {
|
|
298
|
+
this.setCurrentActivity(DATA_SPACE_VIEWER_ACTIVITY_MODE.INFO);
|
|
299
|
+
break;
|
|
300
|
+
}
|
|
301
|
+
case DATA_SPACE_VIEWER_ACTIVITY_MODE.SUPPORT: {
|
|
302
|
+
this.setCurrentActivity(DATA_SPACE_VIEWER_ACTIVITY_MODE.SUPPORT);
|
|
303
|
+
break;
|
|
304
|
+
}
|
|
305
|
+
default: {
|
|
306
|
+
// unknown
|
|
307
|
+
this.setCurrentActivity(DATA_SPACE_VIEWER_ACTIVITY_MODE.DESCRIPTION);
|
|
308
|
+
this.onZoneChange?.(undefined);
|
|
309
|
+
break;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
219
312
|
}
|
|
220
313
|
}
|
|
@@ -15,7 +15,12 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import type { ClassView } from '@finos/legend-extension-dsl-diagram';
|
|
18
|
-
import
|
|
18
|
+
import {
|
|
19
|
+
GraphDataWithOrigin,
|
|
20
|
+
type Class,
|
|
21
|
+
type GraphManagerState,
|
|
22
|
+
LegendSDLC,
|
|
23
|
+
} from '@finos/legend-graph';
|
|
19
24
|
import {
|
|
20
25
|
type StoredEntity,
|
|
21
26
|
type DepotServerClient,
|
|
@@ -192,6 +197,14 @@ export class DataSpaceAdvancedSearchState {
|
|
|
192
197
|
dataSpace.versionId,
|
|
193
198
|
analysisResult,
|
|
194
199
|
{
|
|
200
|
+
retriveGraphData: () =>
|
|
201
|
+
new GraphDataWithOrigin(
|
|
202
|
+
new LegendSDLC(
|
|
203
|
+
dataSpace.groupId,
|
|
204
|
+
dataSpace.artifactId,
|
|
205
|
+
dataSpace.versionId,
|
|
206
|
+
),
|
|
207
|
+
),
|
|
195
208
|
viewProject: this.viewProject,
|
|
196
209
|
viewSDLCProject: this.viewSDLCProject,
|
|
197
210
|
onDiagramClassDoubleClick: (classView: ClassView): void => {
|
|
@@ -31,6 +31,7 @@ import type { DataSpace } from '../../graph/metamodel/pure/model/packageableElem
|
|
|
31
31
|
import type { DataSpaceAnalysisResult } from '../../graphManager/action/analytics/DataSpaceAnalysis.js';
|
|
32
32
|
import { DSL_DataSpace_getGraphManagerExtension } from '../../graphManager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.js';
|
|
33
33
|
import { DataSpaceViewerState } from '../DataSpaceViewerState.js';
|
|
34
|
+
import { LiveGraphData } from '@finos/legend-graph';
|
|
34
35
|
|
|
35
36
|
export class DataSpacePreviewState extends EditorExtensionState {
|
|
36
37
|
readonly editorStore: EditorStore;
|
|
@@ -116,6 +117,8 @@ export class DataSpacePreviewState extends EditorExtensionState {
|
|
|
116
117
|
versionId,
|
|
117
118
|
analysisResult,
|
|
118
119
|
{
|
|
120
|
+
retriveGraphData: () =>
|
|
121
|
+
new LiveGraphData(this.editorStore.graphManagerState.graph),
|
|
119
122
|
viewProject: () => {
|
|
120
123
|
this.editorStore.applicationStore.notificationService.notifyWarning(
|
|
121
124
|
'This feature is not supported in preview mode',
|
package/tsconfig.json
CHANGED
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"./src/graphManager/protocol/pure/v1/transformation/pureGraph/V1_DSL_DataSpace_GraphBuilderHelper.ts",
|
|
58
58
|
"./src/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.ts",
|
|
59
59
|
"./src/stores/DSL_DataSpace_LegendApplicationPlugin_Extension.ts",
|
|
60
|
+
"./src/stores/DataSpaceViewerDataAccessState.ts",
|
|
60
61
|
"./src/stores/DataSpaceViewerState.ts",
|
|
61
62
|
"./src/stores/query/DataSpaceAdvancedSearchState.ts",
|
|
62
63
|
"./src/stores/query/DataSpaceInfo.ts",
|