@finos/legend-extension-dsl-data-space 4.0.4 → 6.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/lib/DSLDataSpace_Const.d.ts +18 -0
- package/lib/DSLDataSpace_Const.d.ts.map +1 -0
- package/lib/DSLDataSpace_Const.js +20 -0
- package/lib/DSLDataSpace_Const.js.map +1 -0
- package/lib/DSLDataSpace_Extension.d.ts +1 -1
- package/lib/DSLDataSpace_Extension.d.ts.map +1 -1
- package/lib/DSLDataSpace_Extension.js +3 -3
- package/lib/DSLDataSpace_Extension.js.map +1 -1
- package/lib/components/DataSpaceViewer.d.ts.map +1 -1
- package/lib/components/DataSpaceViewer.js +30 -27
- package/lib/components/DataSpaceViewer.js.map +1 -1
- package/lib/components/query/{DSLDataSpace_LegendQueryPlugin.d.ts → DSLDataSpace_LegendQueryApplicationPlugin.d.ts} +6 -3
- package/lib/components/query/DSLDataSpace_LegendQueryApplicationPlugin.d.ts.map +1 -0
- package/lib/components/query/{DSLDataSpace_LegendQueryPlugin.js → DSLDataSpace_LegendQueryApplicationPlugin.js} +28 -4
- package/lib/components/query/DSLDataSpace_LegendQueryApplicationPlugin.js.map +1 -0
- package/lib/components/query/DataSpaceQueryEditor.d.ts +20 -0
- package/lib/components/query/DataSpaceQueryEditor.d.ts.map +1 -0
- package/lib/components/query/DataSpaceQueryEditor.js +43 -0
- package/lib/components/query/DataSpaceQueryEditor.js.map +1 -0
- package/lib/components/query/DataSpaceQuerySetup.d.ts.map +1 -1
- package/lib/components/query/DataSpaceQuerySetup.js +4 -17
- package/lib/components/query/DataSpaceQuerySetup.js.map +1 -1
- package/lib/components/studio/{DSLDataSpace_LegendStudioPlugin.d.ts → DSLDataSpace_LegendStudioApplicationPlugin.d.ts} +3 -3
- package/lib/components/studio/DSLDataSpace_LegendStudioApplicationPlugin.d.ts.map +1 -0
- package/lib/components/studio/{DSLDataSpace_LegendStudioPlugin.js → DSLDataSpace_LegendStudioApplicationPlugin.js} +5 -5
- package/lib/components/studio/DSLDataSpace_LegendStudioApplicationPlugin.js.map +1 -0
- package/lib/{models/DSLDataSpace_ModelUtils.d.ts → graph/DSLDataSpace_HashUtils.d.ts} +1 -1
- package/lib/graph/DSLDataSpace_HashUtils.d.ts.map +1 -0
- package/lib/{models/DSLDataSpace_ModelUtils.js → graph/DSLDataSpace_HashUtils.js} +1 -1
- package/lib/graph/DSLDataSpace_HashUtils.js.map +1 -0
- package/lib/graph/DSLDataSpace_PureGraphPlugin.js +1 -1
- package/lib/graph/DSLDataSpace_PureGraphPlugin.js.map +1 -1
- package/lib/{models/metamodels → graph/metamodel}/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.d.ts +0 -0
- package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.d.ts.map +1 -0
- package/lib/{models/metamodels → graph/metamodel}/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js +1 -1
- package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js.map +1 -0
- package/lib/graphManager/DSLDataSpace_GraphManagerHelper.d.ts +1 -1
- package/lib/graphManager/DSLDataSpace_GraphManagerHelper.d.ts.map +1 -1
- package/lib/graphManager/DSLDataSpace_GraphManagerHelper.js +1 -1
- package/lib/graphManager/DSLDataSpace_GraphManagerHelper.js.map +1 -1
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.d.ts +2 -1
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.d.ts.map +1 -1
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.js +5 -1
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.js.map +1 -1
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.d.ts +50 -0
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.d.ts.map +1 -0
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.js +48 -0
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.js.map +1 -0
- package/lib/graphManager/action/changeDetection/DSLDataSpace_ObserverHelper.d.ts +1 -1
- package/lib/graphManager/action/changeDetection/DSLDataSpace_ObserverHelper.d.ts.map +1 -1
- package/lib/graphManager/action/changeDetection/DSLDataSpace_ObserverHelper.js +1 -0
- package/lib/graphManager/action/changeDetection/DSLDataSpace_ObserverHelper.js.map +1 -1
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtension.d.ts +23 -0
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtension.d.ts.map +1 -0
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtension.js +21 -0
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtension.js.map +1 -0
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtensionBuilder.d.ts +18 -0
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtensionBuilder.d.ts.map +1 -0
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtensionBuilder.js +20 -0
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtensionBuilder.js.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts +0 -0
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/DSLDataSpace_PureProtocolProcessorPlugin.js +1 -1
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureProtocolProcessorPlugin.js.map +1 -0
- package/lib/graphManager/protocol/pure/v1/V1_DSLDataSpace_PureGraphManagerExtension.d.ts +26 -0
- package/lib/graphManager/protocol/pure/v1/V1_DSLDataSpace_PureGraphManagerExtension.d.ts.map +1 -0
- package/lib/graphManager/protocol/pure/v1/V1_DSLDataSpace_PureGraphManagerExtension.js +131 -0
- package/lib/graphManager/protocol/pure/v1/V1_DSLDataSpace_PureGraphManagerExtension.js.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/V1_DSLDataSpace_SystemModels.json +0 -0
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.d.ts +53 -0
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.d.ts.map +1 -0
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.js +78 -0
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.js.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.d.ts +0 -0
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.d.ts.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.js +1 -1
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.js.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.d.ts +1 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.d.ts.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.js +0 -0
- package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.js.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.d.ts +3 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.d.ts.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.js +1 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.js.map +1 -0
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +5 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -3
- package/lib/index.js.map +1 -1
- package/lib/package.json +15 -14
- package/lib/stores/DataSpaceViewerState.d.ts +7 -11
- package/lib/stores/DataSpaceViewerState.d.ts.map +1 -1
- package/lib/stores/DataSpaceViewerState.js +10 -32
- package/lib/stores/DataSpaceViewerState.js.map +1 -1
- package/lib/stores/query/DSLDataSpace_LegendQueryRouter.d.ts +32 -0
- package/lib/stores/query/DSLDataSpace_LegendQueryRouter.d.ts.map +1 -0
- package/lib/stores/query/DSLDataSpace_LegendQueryRouter.js +34 -0
- package/lib/stores/query/DSLDataSpace_LegendQueryRouter.js.map +1 -0
- package/lib/stores/query/DataSpaceQueryEditorStore.d.ts +31 -0
- package/lib/stores/query/DataSpaceQueryEditorStore.d.ts.map +1 -0
- package/lib/stores/query/DataSpaceQueryEditorStore.js +87 -0
- package/lib/stores/query/DataSpaceQueryEditorStore.js.map +1 -0
- package/lib/stores/query/DataSpaceQuerySetupState.d.ts +4 -5
- package/lib/stores/query/DataSpaceQuerySetupState.d.ts.map +1 -1
- package/lib/stores/query/DataSpaceQuerySetupState.js +35 -45
- package/lib/stores/query/DataSpaceQuerySetupState.js.map +1 -1
- package/package.json +22 -21
- package/src/DSLDataSpace_Const.ts +20 -0
- package/src/DSLDataSpace_Extension.ts +3 -3
- package/src/components/DataSpaceViewer.tsx +56 -66
- package/src/components/query/{DSLDataSpace_LegendQueryPlugin.tsx → DSLDataSpace_LegendQueryApplicationPlugin.tsx} +41 -4
- package/src/components/query/DataSpaceQueryEditor.tsx +106 -0
- package/src/components/query/DataSpaceQuerySetup.tsx +23 -32
- package/src/components/studio/{DSLDataSpace_LegendStudioPlugin.tsx → DSLDataSpace_LegendStudioApplicationPlugin.tsx} +11 -11
- package/src/{models/DSLDataSpace_ModelUtils.ts → graph/DSLDataSpace_HashUtils.ts} +0 -0
- package/src/graph/DSLDataSpace_PureGraphPlugin.ts +1 -1
- package/src/{models/metamodels → graph/metamodel}/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.ts +1 -1
- package/src/graphManager/DSLDataSpace_GraphManagerHelper.ts +1 -1
- package/src/graphManager/DSLDataSpace_PureGraphManagerPlugin.ts +7 -1
- package/src/graphManager/action/analytics/DataSpaceAnalysis.ts +64 -0
- package/src/graphManager/action/changeDetection/DSLDataSpace_ObserverHelper.ts +2 -1
- package/src/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtension.ts +42 -0
- package/src/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtensionBuilder.ts +27 -0
- package/src/{models/protocols → graphManager/protocol}/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts +1 -1
- package/src/graphManager/protocol/pure/v1/V1_DSLDataSpace_PureGraphManagerExtension.ts +228 -0
- package/src/{models/protocols → graphManager/protocol}/pure/v1/V1_DSLDataSpace_SystemModels.json +0 -0
- package/src/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.ts +117 -0
- package/src/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.ts +1 -1
- package/src/{models/protocols → graphManager/protocol}/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.ts +1 -1
- package/src/{models/protocols → graphManager/protocol}/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.ts +1 -1
- package/src/index.ts +5 -3
- package/src/stores/DataSpaceViewerState.ts +23 -54
- package/src/stores/query/DSLDataSpace_LegendQueryRouter.ts +69 -0
- package/src/stores/query/DataSpaceQueryEditorStore.ts +141 -0
- package/src/stores/query/DataSpaceQuerySetupState.ts +67 -75
- package/tsconfig.json +18 -9
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.d.ts.map +0 -1
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.js.map +0 -1
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.d.ts.map +0 -1
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.js.map +0 -1
- package/lib/models/DSLDataSpace_ModelUtils.d.ts.map +0 -1
- package/lib/models/DSLDataSpace_ModelUtils.js.map +0 -1
- package/lib/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.d.ts.map +0 -1
- package/lib/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js.map +0 -1
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts.map +0 -1
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js.map +0 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.d.ts.map +0 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.js.map +0 -1
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.d.ts.map +0 -1
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.js.map +0 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.d.ts.map +0 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.js.map +0 -1
|
@@ -17,20 +17,19 @@
|
|
|
17
17
|
import {
|
|
18
18
|
type ClassView,
|
|
19
19
|
type DiagramRenderer,
|
|
20
|
-
Diagram,
|
|
20
|
+
type Diagram,
|
|
21
21
|
DIAGRAM_INTERACTION_MODE,
|
|
22
22
|
} from '@finos/legend-extension-dsl-diagram';
|
|
23
|
-
import type {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from '@finos/legend-
|
|
28
|
-
import { guaranteeNonNullable } from '@finos/legend-shared';
|
|
23
|
+
import type { PackageableRuntime } from '@finos/legend-graph';
|
|
24
|
+
import {
|
|
25
|
+
getNullableFirstElement,
|
|
26
|
+
guaranteeNonNullable,
|
|
27
|
+
} from '@finos/legend-shared';
|
|
29
28
|
import { action, computed, makeObservable, observable } from 'mobx';
|
|
30
29
|
import type {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
} from '../
|
|
30
|
+
DataSpaceAnalysisResult,
|
|
31
|
+
DataSpaceExecutionContextAnalysisResult,
|
|
32
|
+
} from '../graphManager/action/analytics/DataSpaceAnalysis.js';
|
|
34
33
|
|
|
35
34
|
export enum DATA_SPACE_VIEWER_ACTIVITY_MODE {
|
|
36
35
|
MODELS_OVERVIEW = 'MODELS_OVERVIEW',
|
|
@@ -43,15 +42,14 @@ export enum DATA_SPACE_VIEWER_ACTIVITY_MODE {
|
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
export class DataSpaceViewerState {
|
|
46
|
-
graphManagerState: GraphManagerState;
|
|
47
45
|
groupId: string;
|
|
48
46
|
artifactId: string;
|
|
49
47
|
versionId: string;
|
|
50
|
-
|
|
48
|
+
dataSpaceAnalysisResult: DataSpaceAnalysisResult;
|
|
51
49
|
_renderer?: DiagramRenderer | undefined;
|
|
52
50
|
currentDiagram?: Diagram | undefined;
|
|
53
51
|
currentActivity = DATA_SPACE_VIEWER_ACTIVITY_MODE.MODELS_OVERVIEW;
|
|
54
|
-
currentExecutionContext:
|
|
52
|
+
currentExecutionContext: DataSpaceExecutionContextAnalysisResult;
|
|
55
53
|
currentRuntime: PackageableRuntime;
|
|
56
54
|
viewProject?:
|
|
57
55
|
| ((
|
|
@@ -64,11 +62,10 @@ export class DataSpaceViewerState {
|
|
|
64
62
|
onDiagramClassDoubleClick?: ((classView: ClassView) => void) | undefined;
|
|
65
63
|
|
|
66
64
|
constructor(
|
|
67
|
-
graphManagerState: GraphManagerState,
|
|
68
65
|
groupId: string,
|
|
69
66
|
artifactId: string,
|
|
70
67
|
versionId: string,
|
|
71
|
-
|
|
68
|
+
dataSpaceAnalysisResult: DataSpaceAnalysisResult,
|
|
72
69
|
options?: {
|
|
73
70
|
viewProject?: (
|
|
74
71
|
groupId: string,
|
|
@@ -93,22 +90,16 @@ export class DataSpaceViewerState {
|
|
|
93
90
|
setCurrentRuntime: action,
|
|
94
91
|
});
|
|
95
92
|
|
|
96
|
-
this.
|
|
97
|
-
this.dataSpace = dataSpace;
|
|
93
|
+
this.dataSpaceAnalysisResult = dataSpaceAnalysisResult;
|
|
98
94
|
this.groupId = groupId;
|
|
99
95
|
this.artifactId = artifactId;
|
|
100
96
|
this.versionId = versionId;
|
|
101
|
-
this.currentExecutionContext =
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
this.currentDiagram =
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
.featuredDiagrams[0] as PackageableElementReference<Diagram>
|
|
108
|
-
).value
|
|
109
|
-
: this.diagrams.length
|
|
110
|
-
? this.diagrams[0]
|
|
111
|
-
: undefined;
|
|
97
|
+
this.currentExecutionContext =
|
|
98
|
+
dataSpaceAnalysisResult.defaultExecutionContext;
|
|
99
|
+
this.currentRuntime = this.currentExecutionContext.defaultRuntime;
|
|
100
|
+
this.currentDiagram = getNullableFirstElement(
|
|
101
|
+
this.dataSpaceAnalysisResult.featuredDiagrams,
|
|
102
|
+
);
|
|
112
103
|
this.viewProject = options?.viewProject;
|
|
113
104
|
this.onDiagramClassDoubleClick = options?.onDiagramClassDoubleClick;
|
|
114
105
|
}
|
|
@@ -124,30 +115,6 @@ export class DataSpaceViewerState {
|
|
|
124
115
|
return Boolean(this._renderer);
|
|
125
116
|
}
|
|
126
117
|
|
|
127
|
-
get featuredDiagrams(): Diagram[] {
|
|
128
|
-
return this.dataSpace.featuredDiagrams?.map((ref) => ref.value) ?? [];
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
get diagrams(): Diagram[] {
|
|
132
|
-
return this.graphManagerState.graph
|
|
133
|
-
.getExtensionElements(Diagram)
|
|
134
|
-
.concat(
|
|
135
|
-
this.graphManagerState.graph.dependencyManager.getExtensionElements(
|
|
136
|
-
Diagram,
|
|
137
|
-
),
|
|
138
|
-
);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
get runtimes(): PackageableRuntime[] {
|
|
142
|
-
return this.graphManagerState.graph.ownRuntimes
|
|
143
|
-
.concat(this.graphManagerState.graph.dependencyManager.runtimes)
|
|
144
|
-
.filter((runtime) =>
|
|
145
|
-
runtime.runtimeValue.mappings
|
|
146
|
-
.map((mapping) => mapping.value)
|
|
147
|
-
.includes(this.currentExecutionContext.mapping.value),
|
|
148
|
-
);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
118
|
// NOTE: we have tried to use React to control the cursor and
|
|
152
119
|
// could not overcome the jank/lag problem, so we settle with CSS-based approach
|
|
153
120
|
// See https://css-tricks.com/using-css-cursors/
|
|
@@ -183,9 +150,11 @@ export class DataSpaceViewerState {
|
|
|
183
150
|
this.currentActivity = val;
|
|
184
151
|
}
|
|
185
152
|
|
|
186
|
-
setCurrentExecutionContext(
|
|
153
|
+
setCurrentExecutionContext(
|
|
154
|
+
val: DataSpaceExecutionContextAnalysisResult,
|
|
155
|
+
): void {
|
|
187
156
|
this.currentExecutionContext = val;
|
|
188
|
-
this.currentRuntime = val.defaultRuntime
|
|
157
|
+
this.currentRuntime = val.defaultRuntime;
|
|
189
158
|
}
|
|
190
159
|
|
|
191
160
|
setCurrentRuntime(val: PackageableRuntime): void {
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { generateExtensionUrlPattern } from '@finos/legend-application';
|
|
18
|
+
import {
|
|
19
|
+
LEGEND_QUERY_PATH_PARAM_TOKEN,
|
|
20
|
+
LEGEND_QUERY_QUERY_PARAM_TOKEN,
|
|
21
|
+
} from '@finos/legend-application-query';
|
|
22
|
+
import { generateGAVCoordinates } from '@finos/legend-server-depot';
|
|
23
|
+
import { generatePath } from 'react-router';
|
|
24
|
+
|
|
25
|
+
export enum DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN {
|
|
26
|
+
DATA_SPACE_PATH = 'dataSpacePath',
|
|
27
|
+
EXECUTION_CONTEXT = 'executionContext',
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface DataSpaceQueryEditorPathParams {
|
|
31
|
+
[LEGEND_QUERY_PATH_PARAM_TOKEN.GAV]: string;
|
|
32
|
+
[DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN.DATA_SPACE_PATH]: string;
|
|
33
|
+
[DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN.EXECUTION_CONTEXT]: string;
|
|
34
|
+
[LEGEND_QUERY_PATH_PARAM_TOKEN.RUNTIME_PATH]?: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface DataSpaceQueryEditorQueryParams {
|
|
38
|
+
[LEGEND_QUERY_QUERY_PARAM_TOKEN.CLASS_PATH]?: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export const DATA_SPACE_QUERY_EDITOR_ROUTE_PATTERN = `/dataspace/:${LEGEND_QUERY_PATH_PARAM_TOKEN.GAV}/:${DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN.DATA_SPACE_PATH}/:${DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN.EXECUTION_CONTEXT}/:${LEGEND_QUERY_PATH_PARAM_TOKEN.RUNTIME_PATH}?`;
|
|
42
|
+
|
|
43
|
+
export const generateDataSpaceQueryEditorRoute = (
|
|
44
|
+
groupId: string,
|
|
45
|
+
artifactId: string,
|
|
46
|
+
versionId: string,
|
|
47
|
+
dataSpacePath: string,
|
|
48
|
+
executionContextKey: string,
|
|
49
|
+
runtimePath?: string | undefined,
|
|
50
|
+
classPath?: string | undefined,
|
|
51
|
+
): string =>
|
|
52
|
+
`${generatePath(
|
|
53
|
+
generateExtensionUrlPattern(DATA_SPACE_QUERY_EDITOR_ROUTE_PATTERN),
|
|
54
|
+
{
|
|
55
|
+
[LEGEND_QUERY_PATH_PARAM_TOKEN.GAV]: generateGAVCoordinates(
|
|
56
|
+
groupId,
|
|
57
|
+
artifactId,
|
|
58
|
+
versionId,
|
|
59
|
+
),
|
|
60
|
+
[DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN.DATA_SPACE_PATH]: dataSpacePath,
|
|
61
|
+
[DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN.EXECUTION_CONTEXT]:
|
|
62
|
+
executionContextKey,
|
|
63
|
+
[LEGEND_QUERY_PATH_PARAM_TOKEN.RUNTIME_PATH]: runtimePath,
|
|
64
|
+
},
|
|
65
|
+
)}${
|
|
66
|
+
classPath
|
|
67
|
+
? `?${LEGEND_QUERY_QUERY_PARAM_TOKEN.CLASS_PATH}=${classPath}`
|
|
68
|
+
: ''
|
|
69
|
+
}`;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import {
|
|
18
|
+
type Query,
|
|
19
|
+
extractElementNameFromPath,
|
|
20
|
+
QueryTaggedValue,
|
|
21
|
+
} from '@finos/legend-graph';
|
|
22
|
+
import {
|
|
23
|
+
QueryEditorStore,
|
|
24
|
+
type QueryExportConfiguration,
|
|
25
|
+
type LegendQueryPluginManager,
|
|
26
|
+
type LegendQueryApplicationStore,
|
|
27
|
+
} from '@finos/legend-application-query';
|
|
28
|
+
import type {
|
|
29
|
+
DepotServerClient,
|
|
30
|
+
ProjectGAVCoordinates,
|
|
31
|
+
} from '@finos/legend-server-depot';
|
|
32
|
+
import { guaranteeNonNullable, uuid } from '@finos/legend-shared';
|
|
33
|
+
import {
|
|
34
|
+
QUERY_PROFILE_PATH,
|
|
35
|
+
QUERY_PROFILE_TAG_DATA_SPACE,
|
|
36
|
+
} from '../../DSLDataSpace_Const.js';
|
|
37
|
+
import { getDataSpace } from '../../graphManager/DSLDataSpace_GraphManagerHelper.js';
|
|
38
|
+
|
|
39
|
+
const createQueryDataSpaceTaggedValue = (
|
|
40
|
+
dataSpacePath: string,
|
|
41
|
+
): QueryTaggedValue => {
|
|
42
|
+
const taggedValue = new QueryTaggedValue();
|
|
43
|
+
taggedValue.profile = QUERY_PROFILE_PATH;
|
|
44
|
+
taggedValue.tag = QUERY_PROFILE_TAG_DATA_SPACE;
|
|
45
|
+
taggedValue.value = dataSpacePath;
|
|
46
|
+
return taggedValue;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export class DataSpaceQueryEditorStore extends QueryEditorStore {
|
|
50
|
+
groupId: string;
|
|
51
|
+
artifactId: string;
|
|
52
|
+
versionId: string;
|
|
53
|
+
dataSpacePath: string;
|
|
54
|
+
executionContext: string;
|
|
55
|
+
runtimePath: string | undefined;
|
|
56
|
+
classPath: string | undefined;
|
|
57
|
+
|
|
58
|
+
constructor(
|
|
59
|
+
applicationStore: LegendQueryApplicationStore,
|
|
60
|
+
depotServerClient: DepotServerClient,
|
|
61
|
+
pluginManager: LegendQueryPluginManager,
|
|
62
|
+
groupId: string,
|
|
63
|
+
artifactId: string,
|
|
64
|
+
versionId: string,
|
|
65
|
+
dataSpacePath: string,
|
|
66
|
+
executionContext: string,
|
|
67
|
+
runtimePath: string | undefined,
|
|
68
|
+
executionKey: string | undefined,
|
|
69
|
+
) {
|
|
70
|
+
super(applicationStore, depotServerClient, pluginManager);
|
|
71
|
+
|
|
72
|
+
this.groupId = groupId;
|
|
73
|
+
this.artifactId = artifactId;
|
|
74
|
+
this.versionId = versionId;
|
|
75
|
+
this.dataSpacePath = dataSpacePath;
|
|
76
|
+
this.executionContext = executionContext;
|
|
77
|
+
this.runtimePath = runtimePath;
|
|
78
|
+
this.classPath = executionKey;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
getProjectInfo(): ProjectGAVCoordinates {
|
|
82
|
+
return {
|
|
83
|
+
groupId: this.groupId,
|
|
84
|
+
artifactId: this.artifactId,
|
|
85
|
+
versionId: this.versionId,
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
async setUpBuilderState(): Promise<void> {
|
|
90
|
+
this.queryBuilderState.querySetupState.setMappingIsReadOnly(true);
|
|
91
|
+
this.queryBuilderState.querySetupState.setRuntimeIsReadOnly(true);
|
|
92
|
+
|
|
93
|
+
const dataSpace = getDataSpace(
|
|
94
|
+
this.dataSpacePath,
|
|
95
|
+
this.graphManagerState.graph,
|
|
96
|
+
);
|
|
97
|
+
const executionContext = guaranteeNonNullable(
|
|
98
|
+
dataSpace.executionContexts.find(
|
|
99
|
+
(context) => context.name === this.executionContext,
|
|
100
|
+
),
|
|
101
|
+
`Can't find execution context '${this.executionContext}'`,
|
|
102
|
+
);
|
|
103
|
+
this.queryBuilderState.querySetupState.setMapping(
|
|
104
|
+
executionContext.mapping.value,
|
|
105
|
+
);
|
|
106
|
+
this.queryBuilderState.querySetupState.setRuntimeValue(
|
|
107
|
+
(this.runtimePath
|
|
108
|
+
? this.graphManagerState.graph.getRuntime(this.runtimePath)
|
|
109
|
+
: executionContext.defaultRuntime.value
|
|
110
|
+
).runtimeValue,
|
|
111
|
+
);
|
|
112
|
+
|
|
113
|
+
if (this.classPath) {
|
|
114
|
+
this.queryBuilderState.querySetupState._class =
|
|
115
|
+
this.queryBuilderState.graphManagerState.graph.getClass(this.classPath);
|
|
116
|
+
this.queryBuilderState.querySetupState.setClassIsReadOnly(true);
|
|
117
|
+
}
|
|
118
|
+
// TODO?: should we set the class here automatically?
|
|
119
|
+
|
|
120
|
+
// initialize query builder state after setting up
|
|
121
|
+
this.queryBuilderState.resetQueryBuilder();
|
|
122
|
+
this.queryBuilderState.resetQuerySetup();
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
async getExportConfiguration(): Promise<QueryExportConfiguration> {
|
|
126
|
+
return {
|
|
127
|
+
defaultName: `New Query for ${extractElementNameFromPath(
|
|
128
|
+
this.dataSpacePath,
|
|
129
|
+
)}[${this.executionContext}]`,
|
|
130
|
+
decorator: (query: Query): void => {
|
|
131
|
+
query.id = uuid();
|
|
132
|
+
query.groupId = this.groupId;
|
|
133
|
+
query.artifactId = this.artifactId;
|
|
134
|
+
query.versionId = this.versionId;
|
|
135
|
+
query.taggedValues = [
|
|
136
|
+
createQueryDataSpaceTaggedValue(this.dataSpacePath),
|
|
137
|
+
];
|
|
138
|
+
},
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
}
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import type { ClassView } from '@finos/legend-extension-dsl-diagram';
|
|
18
|
-
import {
|
|
18
|
+
import type { Class } from '@finos/legend-graph';
|
|
19
|
+
import type { Entity } from '@finos/legend-storage';
|
|
19
20
|
import {
|
|
20
21
|
type QuerySetupStore,
|
|
21
|
-
CreateQueryInfoState,
|
|
22
22
|
QuerySetupState,
|
|
23
|
-
|
|
24
|
-
} from '@finos/legend-query';
|
|
23
|
+
generateStudioProjectViewUrl,
|
|
24
|
+
} from '@finos/legend-application-query';
|
|
25
25
|
import {
|
|
26
26
|
type StoredEntity,
|
|
27
27
|
DepotScope,
|
|
@@ -35,9 +35,11 @@ import {
|
|
|
35
35
|
assertErrorThrown,
|
|
36
36
|
} from '@finos/legend-shared';
|
|
37
37
|
import { action, flow, flowResult, makeObservable, observable } from 'mobx';
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
38
|
+
import type { DataSpaceAnalysisResult } from '../../graphManager/action/analytics/DataSpaceAnalysis.js';
|
|
39
|
+
import { getDSLDataSpaceGraphManagerExtension } from '../../graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtension.js';
|
|
40
|
+
import { DATA_SPACE_ELEMENT_CLASSIFIER_PATH } from '../../graphManager/protocol/pure/DSLDataSpace_PureProtocolProcessorPlugin.js';
|
|
40
41
|
import { DataSpaceViewerState } from '../DataSpaceViewerState.js';
|
|
42
|
+
import { generateDataSpaceQueryEditorRoute } from './DSLDataSpace_LegendQueryRouter.js';
|
|
41
43
|
|
|
42
44
|
export interface DataSpaceContext {
|
|
43
45
|
groupId: string;
|
|
@@ -46,23 +48,10 @@ export interface DataSpaceContext {
|
|
|
46
48
|
path: string;
|
|
47
49
|
}
|
|
48
50
|
|
|
49
|
-
const QUERY_PROFILE_PATH = 'meta::pure::profiles::query';
|
|
50
|
-
const QUERY_PROFILE_TAG_DATA_SPACE = 'dataSpace';
|
|
51
|
-
|
|
52
|
-
export const createQueryDataSpaceTaggedValue = (
|
|
53
|
-
dataSpacePath: string,
|
|
54
|
-
): QueryTaggedValue => {
|
|
55
|
-
const taggedValue = new QueryTaggedValue();
|
|
56
|
-
taggedValue.profile = QUERY_PROFILE_PATH;
|
|
57
|
-
taggedValue.tag = QUERY_PROFILE_TAG_DATA_SPACE;
|
|
58
|
-
taggedValue.value = dataSpacePath;
|
|
59
|
-
return taggedValue;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
51
|
export class DataSpaceQuerySetupState extends QuerySetupState {
|
|
63
52
|
dataSpaces: DataSpaceContext[] = [];
|
|
64
53
|
loadDataSpacesState = ActionState.create();
|
|
65
|
-
|
|
54
|
+
loadDataSpaceState = ActionState.create();
|
|
66
55
|
currentDataSpace?: DataSpaceContext | undefined;
|
|
67
56
|
dataSpaceViewerState?: DataSpaceViewerState | undefined;
|
|
68
57
|
toGetSnapShot = false;
|
|
@@ -79,7 +68,7 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
|
|
|
79
68
|
setDataSpaceViewerState: action,
|
|
80
69
|
setToGetSnapShot: action,
|
|
81
70
|
loadDataSpaces: flow,
|
|
82
|
-
|
|
71
|
+
loadDataSpace: flow,
|
|
83
72
|
proceedToCreateQuery: flow,
|
|
84
73
|
});
|
|
85
74
|
}
|
|
@@ -97,16 +86,11 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
|
|
|
97
86
|
}
|
|
98
87
|
|
|
99
88
|
*loadDataSpaces(searchText: string): GeneratorFn<void> {
|
|
100
|
-
if (this.queryStore.initState.isInInitialState) {
|
|
101
|
-
yield flowResult(this.queryStore.initialize());
|
|
102
|
-
} else if (this.queryStore.initState.isInProgress) {
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
89
|
const isValidSearchString = searchText.length >= 3;
|
|
106
90
|
this.loadDataSpacesState.inProgress();
|
|
107
91
|
try {
|
|
108
92
|
this.dataSpaces = (
|
|
109
|
-
(yield this.
|
|
93
|
+
(yield this.setupStore.depotServerClient.getEntitiesByClassifierPath(
|
|
110
94
|
DATA_SPACE_ELEMENT_CLASSIFIER_PATH,
|
|
111
95
|
{
|
|
112
96
|
search: isValidSearchString ? searchText : undefined,
|
|
@@ -128,37 +112,57 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
|
|
|
128
112
|
} catch (error) {
|
|
129
113
|
assertErrorThrown(error);
|
|
130
114
|
this.loadDataSpacesState.fail();
|
|
131
|
-
this.
|
|
115
|
+
this.setupStore.applicationStore.notifyError(error);
|
|
132
116
|
}
|
|
133
117
|
}
|
|
134
118
|
|
|
135
|
-
*
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
return;
|
|
140
|
-
}
|
|
141
|
-
this.setUpDataSpaceState.inProgress();
|
|
119
|
+
*loadDataSpace(dataSpace: DataSpaceContext): GeneratorFn<void> {
|
|
120
|
+
this.loadDataSpaceState.inProgress();
|
|
121
|
+
this.loadDataSpaceState.setMessage(`Initializing...`);
|
|
122
|
+
|
|
142
123
|
try {
|
|
143
|
-
|
|
124
|
+
// fetch project
|
|
125
|
+
this.loadDataSpaceState.setMessage(`Fetching project...`);
|
|
126
|
+
const project = ProjectData.serialization.fromJson(
|
|
144
127
|
(yield flowResult(
|
|
145
|
-
this.
|
|
128
|
+
this.setupStore.depotServerClient.getProject(
|
|
146
129
|
dataSpace.groupId,
|
|
147
130
|
dataSpace.artifactId,
|
|
148
131
|
),
|
|
149
132
|
)) as PlainObject<ProjectData>,
|
|
150
133
|
);
|
|
151
134
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
135
|
+
// fetch entities
|
|
136
|
+
this.loadDataSpaceState.setMessage(`Fetching entities...`);
|
|
137
|
+
const entities = (yield this.setupStore.depotServerClient.getEntities(
|
|
138
|
+
project,
|
|
139
|
+
dataSpace.versionId,
|
|
140
|
+
)) as Entity[];
|
|
141
|
+
|
|
142
|
+
// fetch dependencies
|
|
143
|
+
this.loadDataSpaceState.setMessage(`Fetching dependencies...`);
|
|
144
|
+
const dependencyEntitiesIndex = (yield flowResult(
|
|
145
|
+
this.setupStore.depotServerClient.getIndexedDependencyEntities(
|
|
146
|
+
project,
|
|
147
|
+
dataSpace.versionId,
|
|
148
|
+
),
|
|
149
|
+
)) as Map<string, Entity[]>;
|
|
150
|
+
|
|
151
|
+
// analyze data space
|
|
152
|
+
this.loadDataSpaceState.setMessage(`Analyzing data space...`);
|
|
153
|
+
const analysisResult = (yield getDSLDataSpaceGraphManagerExtension(
|
|
154
|
+
this.setupStore.graphManagerState.graphManager,
|
|
155
|
+
).analyzeDataSpace(
|
|
156
|
+
dataSpace.path,
|
|
157
|
+
entities,
|
|
158
|
+
dependencyEntitiesIndex,
|
|
159
|
+
)) as DataSpaceAnalysisResult;
|
|
155
160
|
|
|
156
161
|
this.dataSpaceViewerState = new DataSpaceViewerState(
|
|
157
|
-
this.queryStore.graphManagerState,
|
|
158
162
|
dataSpace.groupId,
|
|
159
163
|
dataSpace.artifactId,
|
|
160
164
|
dataSpace.versionId,
|
|
161
|
-
|
|
165
|
+
analysisResult,
|
|
162
166
|
{
|
|
163
167
|
viewProject: (
|
|
164
168
|
groupId: string,
|
|
@@ -166,55 +170,43 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
|
|
|
166
170
|
versionId: string,
|
|
167
171
|
entityPath: string | undefined,
|
|
168
172
|
): void =>
|
|
169
|
-
this.
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
173
|
+
this.setupStore.applicationStore.navigator.openNewWindow(
|
|
174
|
+
generateStudioProjectViewUrl(
|
|
175
|
+
this.setupStore.applicationStore.config.studioUrl,
|
|
176
|
+
groupId,
|
|
177
|
+
artifactId,
|
|
178
|
+
versionId,
|
|
179
|
+
entityPath,
|
|
180
|
+
),
|
|
174
181
|
),
|
|
175
182
|
onDiagramClassDoubleClick: (classView: ClassView): void => {
|
|
176
183
|
this.proceedToCreateQuery(classView.class.value);
|
|
177
184
|
},
|
|
178
185
|
},
|
|
179
186
|
);
|
|
180
|
-
this.
|
|
187
|
+
this.loadDataSpaceState.pass();
|
|
181
188
|
} catch (error) {
|
|
182
189
|
assertErrorThrown(error);
|
|
183
|
-
this.
|
|
184
|
-
this.
|
|
190
|
+
this.loadDataSpaceState.fail();
|
|
191
|
+
this.setupStore.applicationStore.notifyError(error);
|
|
192
|
+
} finally {
|
|
193
|
+
this.loadDataSpaceState.setMessage(undefined);
|
|
185
194
|
}
|
|
186
195
|
}
|
|
187
196
|
|
|
188
197
|
*proceedToCreateQuery(_class?: Class): GeneratorFn<void> {
|
|
189
198
|
if (this.dataSpaceViewerState) {
|
|
190
|
-
|
|
191
|
-
(
|
|
192
|
-
this.queryStore.depotServerClient.getProject(
|
|
193
|
-
this.dataSpaceViewerState.groupId,
|
|
194
|
-
this.dataSpaceViewerState.artifactId,
|
|
195
|
-
),
|
|
196
|
-
)) as PlainObject<ProjectData>,
|
|
197
|
-
);
|
|
198
|
-
const queryInfoState = new CreateQueryInfoState(
|
|
199
|
-
this.queryStore,
|
|
200
|
-
projectData,
|
|
201
|
-
this.dataSpaceViewerState.versionId,
|
|
202
|
-
this.dataSpaceViewerState.currentExecutionContext.mapping.value,
|
|
203
|
-
this.dataSpaceViewerState.currentRuntime,
|
|
204
|
-
);
|
|
205
|
-
queryInfoState.taggedValues = [
|
|
206
|
-
createQueryDataSpaceTaggedValue(
|
|
207
|
-
this.dataSpaceViewerState.dataSpace.path,
|
|
208
|
-
),
|
|
209
|
-
];
|
|
210
|
-
this.queryStore.setQueryInfoState(queryInfoState);
|
|
211
|
-
this.queryStore.applicationStore.navigator.goTo(
|
|
212
|
-
generateCreateQueryRoute(
|
|
199
|
+
this.setupStore.applicationStore.navigator.goTo(
|
|
200
|
+
generateDataSpaceQueryEditorRoute(
|
|
213
201
|
this.dataSpaceViewerState.groupId,
|
|
214
202
|
this.dataSpaceViewerState.artifactId,
|
|
215
203
|
this.dataSpaceViewerState.versionId,
|
|
216
|
-
this.dataSpaceViewerState.
|
|
217
|
-
this.dataSpaceViewerState.
|
|
204
|
+
this.dataSpaceViewerState.dataSpaceAnalysisResult.path,
|
|
205
|
+
this.dataSpaceViewerState.currentExecutionContext.name,
|
|
206
|
+
this.dataSpaceViewerState.currentRuntime ===
|
|
207
|
+
this.dataSpaceViewerState.currentExecutionContext.defaultRuntime
|
|
208
|
+
? undefined
|
|
209
|
+
: this.dataSpaceViewerState.currentRuntime.path,
|
|
218
210
|
_class?.path,
|
|
219
211
|
),
|
|
220
212
|
);
|
package/tsconfig.json
CHANGED
|
@@ -33,27 +33,36 @@
|
|
|
33
33
|
}
|
|
34
34
|
],
|
|
35
35
|
"files": [
|
|
36
|
+
"./src/DSLDataSpace_Const.ts",
|
|
36
37
|
"./src/DSLDataSpace_Extension.ts",
|
|
37
38
|
"./src/index.ts",
|
|
38
39
|
"./src/components/studio/DSLDataSpace_CodeSnippets.ts",
|
|
39
40
|
"./src/components/studio/DSLDataSpace_LegendStudioDocumentation.ts",
|
|
41
|
+
"./src/graph/DSLDataSpace_HashUtils.ts",
|
|
40
42
|
"./src/graph/DSLDataSpace_PureGraphPlugin.ts",
|
|
43
|
+
"./src/graph/metamodel/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.ts",
|
|
41
44
|
"./src/graphManager/DSLDataSpace_GraphManagerHelper.ts",
|
|
42
45
|
"./src/graphManager/DSLDataSpace_PureGraphManagerPlugin.ts",
|
|
46
|
+
"./src/graphManager/action/analytics/DataSpaceAnalysis.ts",
|
|
43
47
|
"./src/graphManager/action/changeDetection/DSLDataSpace_ObserverHelper.ts",
|
|
44
|
-
"./src/
|
|
45
|
-
"./src/
|
|
46
|
-
"./src/
|
|
47
|
-
"./src/
|
|
48
|
-
"./src/
|
|
49
|
-
"./src/
|
|
48
|
+
"./src/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtension.ts",
|
|
49
|
+
"./src/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtensionBuilder.ts",
|
|
50
|
+
"./src/graphManager/protocol/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts",
|
|
51
|
+
"./src/graphManager/protocol/pure/v1/V1_DSLDataSpace_PureGraphManagerExtension.ts",
|
|
52
|
+
"./src/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.ts",
|
|
53
|
+
"./src/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.ts",
|
|
54
|
+
"./src/graphManager/protocol/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.ts",
|
|
55
|
+
"./src/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.ts",
|
|
50
56
|
"./src/stores/DataSpaceViewerState.ts",
|
|
57
|
+
"./src/stores/query/DSLDataSpace_LegendQueryRouter.ts",
|
|
58
|
+
"./src/stores/query/DataSpaceQueryEditorStore.ts",
|
|
51
59
|
"./src/stores/query/DataSpaceQuerySetupState.ts",
|
|
52
60
|
"./src/components/DataSpaceViewer.tsx",
|
|
53
|
-
"./src/components/query/
|
|
61
|
+
"./src/components/query/DSLDataSpace_LegendQueryApplicationPlugin.tsx",
|
|
62
|
+
"./src/components/query/DataSpaceQueryEditor.tsx",
|
|
54
63
|
"./src/components/query/DataSpaceQuerySetup.tsx",
|
|
55
|
-
"./src/components/studio/
|
|
56
|
-
"./src/
|
|
64
|
+
"./src/components/studio/DSLDataSpace_LegendStudioApplicationPlugin.tsx",
|
|
65
|
+
"./src/graphManager/protocol/pure/v1/V1_DSLDataSpace_SystemModels.json"
|
|
57
66
|
],
|
|
58
67
|
"include": [
|
|
59
68
|
"src/**/*.ts",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DSLDataSpace_LegendQueryPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/query/DSLDataSpace_LegendQueryPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,iBAAiB,EACjB,KAAK,qCAAqC,EAC1C,KAAK,kBAAkB,EAGxB,MAAM,qBAAqB,CAAC;AAK7B,qBAAa,8BAA+B,SAAQ,iBAAiB;;IAK1D,8CAA8C,IAAI,qCAAqC,EAAE;IA2BzF,2BAA2B,IAAI,kBAAkB,EAAE;CAU7D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DSLDataSpace_LegendQueryPlugin.js","sourceRoot":"","sources":["../../../src/components/query/DSLDataSpace_LegendQueryPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,EACL,iBAAiB,GAKlB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,MAAM,OAAO,8BAA+B,SAAQ,iBAAiB;IACnE;QACE,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACjE,CAAC;IAEQ,8CAA8C;QACrD,OAAO;YACL;gBACE,GAAG,EAAE,yBAAyB;gBAC9B,QAAQ,EAAE,CACR,UAA2B,EACE,EAAE;oBAC/B,MAAM,WAAW,GAAG,GAAS,EAAE,CAC7B,UAAU,CAAC,aAAa,CAAC,IAAI,wBAAwB,CAAC,UAAU,CAAC,CAAC,CAAC;oBACrE,OAAO,CACL,kBACE,SAAS,EAAC,iFAAiF,EAC3F,OAAO,EAAE,WAAW,aAEpB,cAAK,SAAS,EAAC,yCAAyC,YACtD,KAAC,UAAU,IAAC,SAAS,EAAC,6CAA6C,GAAG,GAClE,EACN,cAAK,SAAS,EAAC,0CAA0C,6CAEnD,IACC,CACV,CAAC;gBACJ,CAAC;aACF;SACF,CAAC;IACJ,CAAC;IAEQ,2BAA2B;QAClC,OAAO;YACL,CAAC,eAAgC,EAA+B,EAAE;gBAChE,IAAI,eAAe,YAAY,wBAAwB,EAAE;oBACvD,OAAO,KAAC,mBAAmB,IAAC,eAAe,EAAE,eAAe,GAAI,CAAC;iBAClE;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DSLDataSpace_LegendStudioPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DSLDataSpace_LegendStudioPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,EACxC,KAAK,iBAAiB,EACtB,KAAK,gCAAgC,EAErC,KAAK,yBAAyB,EAG9B,KAAK,2CAA2C,EAChD,KAAK,oCAAoC,EACzC,KAAK,wCAAwC,EAE7C,KAAK,gDAAgD,EAErD,kBAAkB,EACnB,MAAM,sBAAsB,CAAC;AAwB9B,qBAAa,+BACX,SAAQ,kBACR,YAAW,gCAAgC;;IAMlC,iCAAiC,IAAI,MAAM,EAAE;IAOtD,6BAA6B,IAAI,MAAM,EAAE;IAIzC,0BAA0B,IAAI,iBAAiB,EAAE;IAWjD,0BAA0B,IAAI,iBAAiB,EAAE;IAejD,mCAAmC,IAAI,0BAA0B,EAAE;IA0BnE,kCAAkC,IAAI,yBAAyB,EAAE;IAcjE,4CAA4C,IAAI,mCAAmC,EAAE;IAWrF,qCAAqC,IAAI,MAAM,EAAE;IAIjD,oDAAoD,IAAI,2CAA2C,EAAE;IAmBrG,6CAA6C,IAAI,oCAAoC,EAAE;IAgBvF,iDAAiD,IAAI,wCAAwC,EAAE;IAgB/F,yDAAyD,IAAI,gDAAgD,EAAE;CAgBhH"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DSLDataSpace_LegendStudioPlugin.js","sourceRoot":"","sources":["../../../src/components/studio/DSLDataSpace_LegendStudioPlugin.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DSLDataSpace_ModelUtils.d.ts","sourceRoot":"","sources":["../../src/models/DSLDataSpace_ModelUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,yBAAyB;IACnC,UAAU,eAAe;IACzB,4BAA4B,iCAAiC;IAC7D,wBAAwB,6BAA6B;CACtD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DSLDataSpace_ModelUtils.js","sourceRoot":"","sources":["../../src/models/DSLDataSpace_ModelUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,yBAIX;AAJD,WAAY,yBAAyB;IACnC,sDAAyB,CAAA;IACzB,0FAA6D,CAAA;IAC7D,kFAAqD,CAAA;AACvD,CAAC,EAJW,yBAAyB,GAAzB,yBAAyB,KAAzB,yBAAyB,QAIpC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DSLDataSpace_DataSpace.d.ts","sourceRoot":"","sources":["../../../../../../../src/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EACL,kBAAkB,EAClB,KAAK,2BAA2B,EAChC,KAAK,OAAO,EACZ,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC/B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC;AAEnE,8BAAsB,oBAAqB,YAAW,QAAQ;IAC5D,QAAQ,KAAK,QAAQ,IAAI,MAAM,CAAC;CACjC;AAED,qBAAa,qBACX,SAAQ,oBACR,YAAW,QAAQ;IAEnB,OAAO,EAAG,MAAM,CAAC;IAEjB,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF;AAED,qBAAa,yBAA0B,YAAW,QAAQ;IACxD,IAAI,EAAG,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,OAAO,EAAG,2BAA2B,CAAC,OAAO,CAAC,CAAC;IAC/C,cAAc,EAAG,2BAA2B,CAAC,kBAAkB,CAAC,CAAC;IAEjE,IAAI,QAAQ,IAAI,MAAM,CAQrB;CACF;AAED,qBAAa,SAAU,SAAQ,kBAAmB,YAAW,QAAQ;IACnE,iBAAiB,EAAE,yBAAyB,EAAE,CAAM;IACpD,uBAAuB,EAAG,yBAAyB,CAAC;IACpD,gBAAgB,CAAC,EAAE,2BAA2B,CAAC,OAAO,CAAC,EAAE,GAAG,SAAS,CAAC;IACtE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,WAAW,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAE/C,cAAuB,gBAAgB,IAAI,MAAM,CAiBhD;IAED,gCAAgC,CAAC,CAAC,EAChC,OAAO,EAAE,yBAAyB,CAAC,CAAC,CAAC,GACpC,CAAC;CAGL"}
|
package/lib/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DSLDataSpace_DataSpace.js","sourceRoot":"","sources":["../../../../../../../src/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAiB,MAAM,sBAAsB,CAAC;AAChE,OAAO,EACL,kBAAkB,GAKnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAGtF,MAAM,OAAgB,oBAAoB;CAEzC;AAED,MAAM,OAAO,qBACX,SAAQ,oBAAoB;IAG5B,OAAO,CAAU;IAEjB,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,yBAAyB,CAAC,wBAAwB;YAClD,IAAI,CAAC,OAAO;SACb,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,yBAAyB;IACpC,IAAI,CAAU;IACd,WAAW,CAAsB;IACjC,OAAO,CAAwC;IAC/C,cAAc,CAAmD;IAEjE,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,yBAAyB,CAAC,4BAA4B;YACtD,IAAI,CAAC,IAAI;YACT,IAAI,CAAC,WAAW,IAAI,EAAE;YACtB,IAAI,CAAC,OAAO,CAAC,qBAAqB,IAAI,EAAE;YACxC,IAAI,CAAC,cAAc,CAAC,qBAAqB,IAAI,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,SAAU,SAAQ,kBAAkB;IAC/C,iBAAiB,GAAgC,EAAE,CAAC;IACpD,uBAAuB,CAA6B;IACpD,gBAAgB,CAAsD;IACtE,WAAW,CAAsB;IACjC,WAAW,CAAoC;IAE/C,IAAuB,gBAAgB;QACrC,OAAO,SAAS,CAAC;YACf,yBAAyB,CAAC,UAAU;YACpC,SAAS,CACP,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,eAAe,CAAC,CACjE;YACD,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC;YAC5B,SAAS,CAAC,IAAI,CAAC,iBAAiB,CAAC;YACjC,IAAI,CAAC,uBAAuB,CAAC,IAAI;YACjC,SAAS,CACP,CAAC,IAAI,CAAC,gBAAgB,IAAI,EAAE,CAAC,CAAC,GAAG,CAC/B,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,qBAAqB,IAAI,EAAE,CACjD,CACF;YACD,IAAI,CAAC,WAAW,IAAI,EAAE;YACtB,IAAI,CAAC,WAAW,IAAI,EAAE;SACvB,CAAC,CAAC;IACL,CAAC;IAED,gCAAgC,CAC9B,OAAqC;QAErC,OAAO,OAAO,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;CACF"}
|