@finos/legend-extension-dsl-data-space 1.0.4 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/lib/components/DataSpaceViewer.d.ts +2 -1
- package/lib/components/DataSpaceViewer.d.ts.map +1 -1
- package/lib/components/DataSpaceViewer.js +6 -6
- package/lib/components/DataSpaceViewer.js.map +1 -1
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.d.ts +1 -2
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.d.ts.map +1 -1
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.js +1 -1
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.js.map +1 -1
- package/lib/components/query/DataSpaceQuerySetup.d.ts +1 -0
- package/lib/components/query/DataSpaceQuerySetup.d.ts.map +1 -1
- package/lib/components/query/DataSpaceQuerySetup.js +2 -1
- package/lib/components/query/DataSpaceQuerySetup.js.map +1 -1
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.d.ts +1 -2
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.d.ts.map +1 -1
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.js.map +1 -1
- package/lib/graph/DSLDataSpace_PureGraphPlugin.d.ts +1 -2
- package/lib/graph/DSLDataSpace_PureGraphPlugin.d.ts.map +1 -1
- package/lib/graph/DSLDataSpace_PureGraphPlugin.js.map +1 -1
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.d.ts +1 -2
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.d.ts.map +1 -1
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.js +1 -1
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/dataSpace/DataSpace.d.ts +2 -3
- package/lib/models/metamodels/pure/model/packageableElements/dataSpace/DataSpace.d.ts.map +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/dataSpace/DataSpace.js +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/dataSpace/DataSpace.js.map +1 -1
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts +3 -4
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts.map +1 -1
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DataSpace.d.ts +2 -3
- package/lib/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DataSpace.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DataSpace.js +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DataSpace.js.map +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.js.map +1 -1
- package/lib/stores/DataSpaceViewerState.d.ts +1 -2
- package/lib/stores/DataSpaceViewerState.d.ts.map +1 -1
- package/lib/stores/DataSpaceViewerState.js.map +1 -1
- package/lib/stores/query/DataSpaceQuerySetupState.d.ts +4 -6
- package/lib/stores/query/DataSpaceQuerySetupState.d.ts.map +1 -1
- package/lib/stores/query/DataSpaceQuerySetupState.js +8 -2
- package/lib/stores/query/DataSpaceQuerySetupState.js.map +1 -1
- package/package.json +23 -21
- package/src/components/DataSpaceViewer.tsx +25 -11
- package/src/components/query/DSLDataSpace_LegendQueryPlugin.tsx +6 -6
- package/src/components/query/DataSpaceQuerySetup.tsx +5 -2
- package/src/components/studio/DSLDataSpace_LegendStudioPlugin.tsx +9 -11
- package/src/graph/DSLDataSpace_PureGraphPlugin.ts +1 -2
- package/src/graphManager/DSLDataSpace_PureGraphManagerPlugin.ts +4 -4
- package/src/models/metamodels/pure/model/packageableElements/dataSpace/DataSpace.ts +6 -7
- package/src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts +16 -18
- package/src/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DataSpace.ts +7 -8
- package/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.ts +3 -3
- package/src/stores/DataSpaceViewerState.ts +2 -4
- package/src/stores/query/DataSpaceQuerySetupState.ts +13 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"V1_DSLDataSpace_ProtocolHelper.js","sourceRoot":"","sources":["../../../../../../../src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,MAAM,EACN,WAAW,EACX,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,SAAS,EACT,SAAS,EACT,IAAI,GACL,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"V1_DSLDataSpace_ProtocolHelper.js","sourceRoot":"","sources":["../../../../../../../src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,MAAM,EACN,WAAW,EACX,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,SAAS,EACT,SAAS,EACT,IAAI,GACL,MAAM,WAAW,CAAC;AACnB,OAAO,EAEL,sBAAsB,EACtB,oBAAoB,EACpB,8CAA8C,GAC/C,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,gBAAgB,EAChB,cAAc,EACd,yBAAyB,EACzB,wBAAwB,EACxB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,YAAY,EACZ,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,wD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,KAAK,CAAC,EACjD,IAAI,CACL,EACH,CAAC,MAAM,EAAE,EAAE,CACT,gBAAgB,CACd,MAAM,EACN,CAAC,CAAmB,EAAE,EAAE,CAAC,WAAW,CAAC,oBAAoB,EAAE,CAAC,CAAC,EAC7D,KAAK,CACN,CACJ;IACD,SAAS,EAAE,SAAS,EAAE;CACvB,CAAC,CAAC"}
|
|
@@ -13,8 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type
|
|
17
|
-
import { Diagram } from '@finos/legend-extension-dsl-diagram';
|
|
16
|
+
import { type ClassView, type DiagramRenderer, Diagram } from '@finos/legend-extension-dsl-diagram';
|
|
18
17
|
import type { GraphManagerState, PackageableRuntime } from '@finos/legend-graph';
|
|
19
18
|
import type { ResolvedDataSpace, ResolvedDataSpaceExecutionContext } from '../models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin';
|
|
20
19
|
export declare enum DATA_SPACE_VIEWER_ACTIVITY_MODE {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceViewerState.d.ts","sourceRoot":"","sources":["../../src/stores/DataSpaceViewerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"DataSpaceViewerState.d.ts","sourceRoot":"","sources":["../../src/stores/DataSpaceViewerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,OAAO,EAER,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EACV,iBAAiB,EAEjB,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,EACV,iBAAiB,EACjB,iCAAiC,EAClC,MAAM,mEAAmE,CAAC;AAE3E,oBAAY,+BAA+B;IACzC,eAAe,oBAAoB;IACnC,SAAS,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IAAI,OAAO,EAAE,CAEhC;IAED,IAAI,QAAQ,IAAI,OAAO,EAAE,CAQxB;IAED,IAAI,QAAQ,IAAI,kBAAkB,EAAE,CAQnC;IAMD,IAAI,kBAAkB,IAAI,MAAM,CAiB/B;IAED,WAAW,CAAC,GAAG,EAAE,eAAe,GAAG,IAAI;IAIvC,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAIrC,kBAAkB,CAAC,GAAG,EAAE,+BAA+B,GAAG,IAAI;IAI9D,0BAA0B,CAAC,GAAG,EAAE,iCAAiC,GAAG,IAAI;IAKxE,iBAAiB,CAAC,GAAG,EAAE,kBAAkB,GAAG,IAAI;IAIhD,aAAa,IAAI,IAAI;CAKtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceViewerState.js","sourceRoot":"","sources":["../../src/stores/DataSpaceViewerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"DataSpaceViewerState.js","sourceRoot":"","sources":["../../src/stores/DataSpaceViewerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,OAAO,EACP,wBAAwB,GACzB,MAAM,qCAAqC,CAAC;AAM7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAMpE,MAAM,CAAN,IAAY,+BAQX;AARD,WAAY,+BAA+B;IACzC,sEAAmC,CAAA;IACnC,0DAAuB,CAAA;IACvB,8DAA2B,CAAA;IAC3B,0DAAuB,CAAA;IACvB,kEAA+B,CAAA;IAC/B,gDAAa,CAAA;IACb,sDAAmB,CAAA;AACrB,CAAC,EARW,+BAA+B,KAA/B,+BAA+B,QAQ1C;AAED,MAAM,OAAO,oBAAoB;IAC/B,iBAAiB,CAAoB;IACrC,gBAAgB,C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the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type
|
|
17
|
-
import { QueryTaggedValue } from '@finos/legend-graph';
|
|
16
|
+
import { type Class, QueryTaggedValue } from '@finos/legend-graph';
|
|
18
17
|
import type { Entity } from '@finos/legend-model-storage';
|
|
19
|
-
import type
|
|
20
|
-
import {
|
|
21
|
-
import type { GeneratorFn } from '@finos/legend-shared';
|
|
22
|
-
import { ActionState } from '@finos/legend-shared';
|
|
18
|
+
import { type QuerySetupStore, QuerySetupState } from '@finos/legend-query';
|
|
19
|
+
import { type GeneratorFn, ActionState } from '@finos/legend-shared';
|
|
23
20
|
import { DataSpaceViewerState } from '../DataSpaceViewerState';
|
|
24
21
|
export declare type LightDataSpace = Entity & {
|
|
25
22
|
groupId: string;
|
|
@@ -37,6 +34,7 @@ export declare class DataSpaceQuerySetupState extends QuerySetupState {
|
|
|
37
34
|
dataSpaces: LightDataSpace[];
|
|
38
35
|
loadDataSpacesState: ActionState;
|
|
39
36
|
setUpDataSpaceState: ActionState;
|
|
37
|
+
setUpDataSpaceStatusText?: string | undefined;
|
|
40
38
|
currentDataSpace?: LightDataSpace | undefined;
|
|
41
39
|
dataSpaceViewerState?: DataSpaceViewerState | undefined;
|
|
42
40
|
toGetSnapShot: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceQuerySetupState.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQuerySetupState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,
|
|
1
|
+
{"version":3,"file":"DataSpaceQuerySetupState.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQuerySetupState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,KAAK,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6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5D,oBAAoB,CAAC,MAAM,CAAC,EAAE,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC;CAuCzD"}
|
|
@@ -34,6 +34,7 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
|
|
|
34
34
|
dataSpaces = [];
|
|
35
35
|
loadDataSpacesState = ActionState.create();
|
|
36
36
|
setUpDataSpaceState = ActionState.create();
|
|
37
|
+
setUpDataSpaceStatusText;
|
|
37
38
|
currentDataSpace;
|
|
38
39
|
dataSpaceViewerState;
|
|
39
40
|
toGetSnapShot = false;
|
|
@@ -43,6 +44,7 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
|
|
|
43
44
|
dataSpaces: observable,
|
|
44
45
|
currentDataSpace: observable.ref,
|
|
45
46
|
dataSpaceViewerState: observable,
|
|
47
|
+
setUpDataSpaceStatusText: observable,
|
|
46
48
|
toGetSnapShot: observable,
|
|
47
49
|
setCurrentDataSpace: action,
|
|
48
50
|
setDataSpaceViewerState: action,
|
|
@@ -109,7 +111,9 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
|
|
|
109
111
|
}
|
|
110
112
|
this.setUpDataSpaceState.inProgress();
|
|
111
113
|
try {
|
|
114
|
+
this.setUpDataSpaceStatusText = `Fetching information for data space...`;
|
|
112
115
|
const projectData = ProjectData.serialization.fromJson((yield flowResult(this.queryStore.depotServerClient.getProject(dataSpace.content.groupId, dataSpace.content.artifactId))));
|
|
116
|
+
this.setUpDataSpaceStatusText = `Building graph...`;
|
|
113
117
|
yield flowResult(this.queryStore.buildGraph(projectData, dataSpace.content.versionId));
|
|
114
118
|
const resolvedDataSpace = getResolvedDataSpace(dataSpace.content, this.queryStore.graphManagerState.graph);
|
|
115
119
|
this.dataSpaceViewerState = new DataSpaceViewerState(this.queryStore.graphManagerState, dataSpace.groupId, dataSpace.artifactId, dataSpace.versionId, resolvedDataSpace, {
|
|
@@ -125,6 +129,9 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
|
|
|
125
129
|
this.setUpDataSpaceState.fail();
|
|
126
130
|
this.queryStore.applicationStore.notifyError(error);
|
|
127
131
|
}
|
|
132
|
+
finally {
|
|
133
|
+
this.setUpDataSpaceStatusText = undefined;
|
|
134
|
+
}
|
|
128
135
|
}
|
|
129
136
|
*proceedToCreateQuery(_class) {
|
|
130
137
|
if (this.dataSpaceViewerState) {
|
|
@@ -133,9 +140,8 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
|
|
|
133
140
|
queryInfoState.taggedValues = [
|
|
134
141
|
createQueryDataSpaceTaggedValue(this.dataSpaceViewerState.dataSpace.path, this.dataSpaceViewerState.dataSpaceGroupId, this.dataSpaceViewerState.dataSpaceArtifactId, this.dataSpaceViewerState.dataSpaceVersionId),
|
|
135
142
|
];
|
|
136
|
-
queryInfoState.class = _class;
|
|
137
143
|
this.queryStore.setQueryInfoState(queryInfoState);
|
|
138
|
-
this.queryStore.applicationStore.navigator.goTo(generateCreateQueryRoute(this.dataSpaceViewerState.dataSpace.groupId, this.dataSpaceViewerState.dataSpace.artifactId, this.dataSpaceViewerState.dataSpace.versionId, this.dataSpaceViewerState.currentExecutionContext.mapping.value.path, this.dataSpaceViewerState.currentRuntime.path));
|
|
144
|
+
this.queryStore.applicationStore.navigator.goTo(generateCreateQueryRoute(this.dataSpaceViewerState.dataSpace.groupId, this.dataSpaceViewerState.dataSpace.artifactId, this.dataSpaceViewerState.dataSpace.versionId, this.dataSpaceViewerState.currentExecutionContext.mapping.value.path, this.dataSpaceViewerState.currentRuntime.path, _class?.path));
|
|
139
145
|
this.setupStore.setSetupState(undefined);
|
|
140
146
|
}
|
|
141
147
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceQuerySetupState.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQuerySetupState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"DataSpaceQuerySetupState.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQu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AI,CAAC,oBAAoB,CAAC,kBAAkB,CAC7C;aACF,CAAC;YACF,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;YAClD,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC,SAAS,CAAC,IAAI,CAC7C,wBAAwB,CACtB,IAAI,CAAC,oBAAoB,CAAC,SAAS,CAAC,OAAO,EAC3C,IAAI,CAAC,oBAAoB,CAAC,SAAS,CAAC,UAAU,EAC9C,IAAI,CAAC,oBAAoB,CAAC,SAAS,CAAC,SAAS,EAC7C,IAAI,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EACpE,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC,IAAI,EAC7C,MAAM,EAAE,IAAI,CACb,CACF,CAAC;YACF,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;SAC1C;IACH,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-extension-dsl-data-space",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "Legend extension for Data Space DSL",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -27,7 +27,9 @@
|
|
|
27
27
|
"build": "yarn clean && yarn build:sass && yarn build:tsc",
|
|
28
28
|
"build:sass": "cross-env INIT_CWD=$INIT_CWD node ../../scripts/workflow/buildSass.js",
|
|
29
29
|
"build:tsc": "tsc --project ./tsconfig.build.json",
|
|
30
|
-
"clean": "
|
|
30
|
+
"clean": "npm-run-all clean:cache clean:lib",
|
|
31
|
+
"clean:cache": "rimraf \"build\"",
|
|
32
|
+
"clean:lib": "rimraf \"lib\"",
|
|
31
33
|
"dev": "npm-run-all --parallel dev:sass dev:tsc",
|
|
32
34
|
"dev:sass": "sass style lib --watch --load-path=../../node_modules/@finos/legend-art/scss",
|
|
33
35
|
"dev:tsc": "tsc --watch --preserveWatchOutput",
|
|
@@ -38,36 +40,36 @@
|
|
|
38
40
|
"test:watch": "jest --watch"
|
|
39
41
|
},
|
|
40
42
|
"dependencies": {
|
|
41
|
-
"@finos/legend-application": "1.
|
|
42
|
-
"@finos/legend-art": "0.2
|
|
43
|
-
"@finos/legend-extension-dsl-diagram": "1.0.
|
|
44
|
-
"@finos/legend-graph": "0.
|
|
45
|
-
"@finos/legend-model-storage": "0.0.
|
|
46
|
-
"@finos/legend-query": "0.
|
|
47
|
-
"@finos/legend-server-depot": "0.0.
|
|
48
|
-
"@finos/legend-shared": "1.
|
|
49
|
-
"@finos/legend-studio": "2.
|
|
50
|
-
"@types/react": "17.0.
|
|
43
|
+
"@finos/legend-application": "1.1.2",
|
|
44
|
+
"@finos/legend-art": "0.3.2",
|
|
45
|
+
"@finos/legend-extension-dsl-diagram": "1.0.9",
|
|
46
|
+
"@finos/legend-graph": "1.0.2",
|
|
47
|
+
"@finos/legend-model-storage": "0.0.15",
|
|
48
|
+
"@finos/legend-query": "0.5.0",
|
|
49
|
+
"@finos/legend-server-depot": "0.0.18",
|
|
50
|
+
"@finos/legend-shared": "1.1.1",
|
|
51
|
+
"@finos/legend-studio": "2.3.2",
|
|
52
|
+
"@types/react": "17.0.38",
|
|
51
53
|
"@types/react-router-dom": "5.3.2",
|
|
52
|
-
"mobx": "6.3.
|
|
53
|
-
"mobx-react-lite": "3.2.
|
|
54
|
-
"monaco-editor": "0.
|
|
54
|
+
"mobx": "6.3.13",
|
|
55
|
+
"mobx-react-lite": "3.2.3",
|
|
56
|
+
"monaco-editor": "0.31.1",
|
|
55
57
|
"react": "17.0.2",
|
|
56
58
|
"react-dom": "17.0.2",
|
|
57
|
-
"react-resize-detector": "
|
|
59
|
+
"react-resize-detector": "7.0.0",
|
|
58
60
|
"react-router": "5.2.1",
|
|
59
61
|
"react-router-dom": "5.3.0",
|
|
60
62
|
"serializr": "2.0.5"
|
|
61
63
|
},
|
|
62
64
|
"devDependencies": {
|
|
63
|
-
"@finos/legend-dev-utils": "0.3.
|
|
65
|
+
"@finos/legend-dev-utils": "0.3.7",
|
|
64
66
|
"cross-env": "7.0.3",
|
|
65
|
-
"eslint": "8.
|
|
66
|
-
"jest": "27.4.
|
|
67
|
+
"eslint": "8.7.0",
|
|
68
|
+
"jest": "27.4.7",
|
|
67
69
|
"npm-run-all": "4.1.5",
|
|
68
70
|
"rimraf": "3.0.2",
|
|
69
|
-
"sass": "1.
|
|
70
|
-
"typescript": "4.5.
|
|
71
|
+
"sass": "1.49.0",
|
|
72
|
+
"typescript": "4.5.5"
|
|
71
73
|
},
|
|
72
74
|
"peerDependencies": {
|
|
73
75
|
"react": "^17.0.0"
|
|
@@ -25,8 +25,8 @@ import {
|
|
|
25
25
|
EnvelopIcon,
|
|
26
26
|
clsx,
|
|
27
27
|
CustomSelectorInput,
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
PURE_MappingIcon,
|
|
29
|
+
PURE_RuntimeIcon,
|
|
30
30
|
CogIcon,
|
|
31
31
|
KeyIcon,
|
|
32
32
|
FlaskIcon,
|
|
@@ -34,15 +34,22 @@ import {
|
|
|
34
34
|
ExternalLinkIcon,
|
|
35
35
|
ShieldIcon,
|
|
36
36
|
TagsIcon,
|
|
37
|
+
LightBulbIcon,
|
|
37
38
|
} from '@finos/legend-art';
|
|
38
|
-
import
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
import {
|
|
40
|
+
type Diagram,
|
|
41
|
+
DiagramRenderer,
|
|
42
|
+
} from '@finos/legend-extension-dsl-diagram';
|
|
43
|
+
import {
|
|
44
|
+
DataSpaceSupportEmail,
|
|
45
|
+
type DataSpaceSupportInfo,
|
|
46
|
+
} from '../models/metamodels/pure/model/packageableElements/dataSpace/DataSpace';
|
|
42
47
|
import type { ResolvedDataSpaceExecutionContext } from '../models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin';
|
|
43
48
|
import type { PackageableRuntime } from '@finos/legend-graph';
|
|
44
|
-
import
|
|
45
|
-
|
|
49
|
+
import {
|
|
50
|
+
type DataSpaceViewerState,
|
|
51
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE,
|
|
52
|
+
} from '../stores/DataSpaceViewerState';
|
|
46
53
|
|
|
47
54
|
interface DataSpaceViewerActivityConfig {
|
|
48
55
|
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE;
|
|
@@ -166,7 +173,14 @@ const DataSpaceModelsOverview = observer(
|
|
|
166
173
|
/>
|
|
167
174
|
)}
|
|
168
175
|
</div>
|
|
169
|
-
<div className="data-space__viewer__diagrams__footer"
|
|
176
|
+
<div className="data-space__viewer__diagrams__footer">
|
|
177
|
+
<div className="data-space__viewer__diagrams__footer__icon">
|
|
178
|
+
<LightBulbIcon />
|
|
179
|
+
</div>
|
|
180
|
+
<div className="data-space__viewer__diagrams__footer__text">
|
|
181
|
+
Double-click a class to start a query for that class
|
|
182
|
+
</div>
|
|
183
|
+
</div>
|
|
170
184
|
</div>
|
|
171
185
|
);
|
|
172
186
|
},
|
|
@@ -283,7 +297,7 @@ const DataSpaceExecutionViewer = observer(
|
|
|
283
297
|
</div>
|
|
284
298
|
<div className="data-space__viewer__execution__entry data-space__viewer__execution__mapping">
|
|
285
299
|
<div className="data-space__viewer__execution__entry__icon">
|
|
286
|
-
<
|
|
300
|
+
<PURE_MappingIcon />
|
|
287
301
|
</div>
|
|
288
302
|
<div className="data-space__viewer__execution__entry__content data-space__viewer__execution__entry__content__text">
|
|
289
303
|
{dataSpaceViewerState.currentExecutionContext.mapping.value.path}
|
|
@@ -291,7 +305,7 @@ const DataSpaceExecutionViewer = observer(
|
|
|
291
305
|
</div>
|
|
292
306
|
<div className="data-space__viewer__execution__entry">
|
|
293
307
|
<div className="data-space__viewer__execution__entry__icon">
|
|
294
|
-
<
|
|
308
|
+
<PURE_RuntimeIcon />
|
|
295
309
|
</div>
|
|
296
310
|
<div className="data-space__viewer__execution__entry__content data-space__viewer__execution__entry__content__dropdown__container">
|
|
297
311
|
<CustomSelectorInput
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import packageJson from '../../../package.json';
|
|
18
|
-
import
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
import {
|
|
19
|
+
LegendQueryPlugin,
|
|
20
|
+
type QuerySetupOptionRendererConfiguration,
|
|
21
|
+
type QuerySetupRenderer,
|
|
22
|
+
type QuerySetupState,
|
|
23
|
+
type QuerySetupStore,
|
|
23
24
|
} from '@finos/legend-query';
|
|
24
|
-
import { LegendQueryPlugin } from '@finos/legend-query';
|
|
25
25
|
import { SquareIcon } from '@finos/legend-art';
|
|
26
26
|
import { DataSpaceQuerySetupState } from '../../stores/query/DataSpaceQuerySetupState';
|
|
27
27
|
import { DataspaceQuerySetup } from './DataSpaceQuerySetup';
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { useApplicationStore } from '@finos/legend-application';
|
|
18
|
-
import type { SelectComponent } from '@finos/legend-art';
|
|
19
18
|
import {
|
|
19
|
+
type SelectComponent,
|
|
20
20
|
BoltIcon,
|
|
21
21
|
ArrowRightIcon,
|
|
22
22
|
clsx,
|
|
@@ -211,7 +211,10 @@ export const DataspaceQuerySetup = observer(
|
|
|
211
211
|
)}
|
|
212
212
|
{!querySetupState.dataSpaceViewerState &&
|
|
213
213
|
querySetupState.setUpDataSpaceState.isInProgress && (
|
|
214
|
-
<BlankPanelContent>
|
|
214
|
+
<BlankPanelContent>
|
|
215
|
+
{querySetupState.setUpDataSpaceStatusText ??
|
|
216
|
+
`Setting up data space...`}
|
|
217
|
+
</BlankPanelContent>
|
|
215
218
|
)}
|
|
216
219
|
{!querySetupState.dataSpaceViewerState &&
|
|
217
220
|
querySetupState.setUpDataSpaceState.hasFailed && (
|
|
@@ -15,18 +15,16 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import packageJson from '../../../package.json';
|
|
18
|
-
import type {
|
|
19
|
-
NewElementFromStateCreator,
|
|
20
|
-
ElementTypeGetter,
|
|
21
|
-
ElementProjectExplorerDnDTypeGetter,
|
|
22
|
-
ElementIconGetter,
|
|
23
|
-
DSL_LegendStudioPlugin_Extension,
|
|
24
|
-
NewElementState,
|
|
25
|
-
ElementEditorStateCreator,
|
|
26
|
-
EditorStore,
|
|
27
|
-
ElementEditorState,
|
|
28
|
-
} from '@finos/legend-studio';
|
|
29
18
|
import {
|
|
19
|
+
type NewElementFromStateCreator,
|
|
20
|
+
type ElementTypeGetter,
|
|
21
|
+
type ElementProjectExplorerDnDTypeGetter,
|
|
22
|
+
type ElementIconGetter,
|
|
23
|
+
type DSL_LegendStudioPlugin_Extension,
|
|
24
|
+
type NewElementState,
|
|
25
|
+
type ElementEditorStateCreator,
|
|
26
|
+
type EditorStore,
|
|
27
|
+
type ElementEditorState,
|
|
30
28
|
UnsupportedElementEditorState,
|
|
31
29
|
LegendStudioPlugin,
|
|
32
30
|
} from '@finos/legend-studio';
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
import packageJson from '../../package.json';
|
|
18
18
|
import { DataSpace } from '../models/metamodels/pure/model/packageableElements/dataSpace/DataSpace';
|
|
19
19
|
import type { Clazz } from '@finos/legend-shared';
|
|
20
|
-
import type
|
|
21
|
-
import { PureGraphPlugin } from '@finos/legend-graph';
|
|
20
|
+
import { type PackageableElement, PureGraphPlugin } from '@finos/legend-graph';
|
|
22
21
|
|
|
23
22
|
export class DSLDataSpace_PureGraphPlugin extends PureGraphPlugin {
|
|
24
23
|
constructor() {
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
|
|
17
17
|
import packageJson from '../../package.json';
|
|
18
18
|
import { DataSpace } from '../models/metamodels/pure/model/packageableElements/dataSpace/DataSpace';
|
|
19
|
-
import
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
import {
|
|
20
|
+
PureGraphManagerPlugin,
|
|
21
|
+
type PackageableElement,
|
|
22
|
+
type PureGrammarElementLabeler,
|
|
22
23
|
} from '@finos/legend-graph';
|
|
23
|
-
import { PureGraphManagerPlugin } from '@finos/legend-graph';
|
|
24
24
|
|
|
25
25
|
const PURE_GRAMMAR_DATA_SPACE_PARSER_NAME = 'DataSpace';
|
|
26
26
|
const PURE_GRAMMAR_DATA_SPACE_ELEMENT_TYPE_LABEL = 'DataSpace';
|
|
@@ -15,14 +15,13 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { makeObservable, override } from 'mobx';
|
|
18
|
-
import { hashArray } from '@finos/legend-shared';
|
|
19
|
-
import
|
|
20
|
-
|
|
21
|
-
PackageableElementVisitor,
|
|
22
|
-
StereotypeReference,
|
|
23
|
-
TaggedValue,
|
|
18
|
+
import { hashArray, type Hashable } from '@finos/legend-shared';
|
|
19
|
+
import {
|
|
20
|
+
PackageableElement,
|
|
21
|
+
type PackageableElementVisitor,
|
|
22
|
+
type StereotypeReference,
|
|
23
|
+
type TaggedValue,
|
|
24
24
|
} from '@finos/legend-graph';
|
|
25
|
-
import { PackageableElement } from '@finos/legend-graph';
|
|
26
25
|
import { DATA_SPACE_HASH_STRUCTURE } from '../../../../../DSLDataSpace_ModelUtils';
|
|
27
26
|
|
|
28
27
|
export abstract class DataSpaceSupportInfo implements Hashable {
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
V1_DataSpaceExecutionContext,
|
|
22
22
|
V1_DataSpaceSupportEmail,
|
|
23
23
|
} from './v1/model/packageableElements/dataSpace/V1_DataSpace';
|
|
24
|
-
import type { PlainObject } from '@finos/legend-shared';
|
|
25
24
|
import {
|
|
25
|
+
type PlainObject,
|
|
26
26
|
uuid,
|
|
27
27
|
guaranteeNonEmptyString,
|
|
28
28
|
guaranteeNonNullable,
|
|
@@ -36,29 +36,27 @@ import {
|
|
|
36
36
|
V1_DATA_SPACE_ELEMENT_PROTOCOL_TYPE,
|
|
37
37
|
} from './v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper';
|
|
38
38
|
import { getDataSpace } from '../../../graphManager/DSLDataSpace_GraphManagerHelper';
|
|
39
|
-
import type { DataSpaceSupportInfo } from '../../metamodels/pure/model/packageableElements/dataSpace/DataSpace';
|
|
40
39
|
import {
|
|
40
|
+
type DataSpaceSupportInfo,
|
|
41
41
|
DataSpace,
|
|
42
42
|
DataSpaceExecutionContext,
|
|
43
43
|
DataSpaceSupportEmail,
|
|
44
44
|
} from '../../metamodels/pure/model/packageableElements/dataSpace/DataSpace';
|
|
45
|
-
import type {
|
|
46
|
-
Mapping,
|
|
47
|
-
PackageableElement,
|
|
48
|
-
PackageableElementReference,
|
|
49
|
-
PackageableRuntime,
|
|
50
|
-
PureModel,
|
|
51
|
-
V1_ElementProtocolClassifierPathGetter,
|
|
52
|
-
V1_ElementProtocolDeserializer,
|
|
53
|
-
V1_ElementProtocolSerializer,
|
|
54
|
-
V1_ElementTransformer,
|
|
55
|
-
V1_GraphBuilderContext,
|
|
56
|
-
V1_GraphTransformerContext,
|
|
57
|
-
V1_PackageableElement,
|
|
58
|
-
V1_PureModelContextData,
|
|
59
|
-
V1_TaggedValue,
|
|
60
|
-
} from '@finos/legend-graph';
|
|
61
45
|
import {
|
|
46
|
+
type Mapping,
|
|
47
|
+
type PackageableElement,
|
|
48
|
+
type PackageableElementReference,
|
|
49
|
+
type PackageableRuntime,
|
|
50
|
+
type PureModel,
|
|
51
|
+
type V1_ElementProtocolClassifierPathGetter,
|
|
52
|
+
type V1_ElementProtocolDeserializer,
|
|
53
|
+
type V1_ElementProtocolSerializer,
|
|
54
|
+
type V1_ElementTransformer,
|
|
55
|
+
type V1_GraphBuilderContext,
|
|
56
|
+
type V1_GraphTransformerContext,
|
|
57
|
+
type V1_PackageableElement,
|
|
58
|
+
type V1_PureModelContextData,
|
|
59
|
+
type V1_TaggedValue,
|
|
62
60
|
V1_taggedValueSchema,
|
|
63
61
|
PackageableElementExplicitReference,
|
|
64
62
|
V1_PackageableElementPointer,
|
|
@@ -14,16 +14,15 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { hashArray } from '@finos/legend-shared';
|
|
18
|
-
import type { Hashable } from '@finos/legend-shared';
|
|
17
|
+
import { hashArray, type Hashable } from '@finos/legend-shared';
|
|
19
18
|
import { DATA_SPACE_HASH_STRUCTURE } from '../../../../../../DSLDataSpace_ModelUtils';
|
|
20
|
-
import
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
import {
|
|
20
|
+
V1_PackageableElement,
|
|
21
|
+
type V1_PackageableElementPointer,
|
|
22
|
+
type V1_PackageableElementVisitor,
|
|
23
|
+
type V1_StereotypePtr,
|
|
24
|
+
type V1_TaggedValue,
|
|
25
25
|
} from '@finos/legend-graph';
|
|
26
|
-
import { V1_PackageableElement } from '@finos/legend-graph';
|
|
27
26
|
|
|
28
27
|
export abstract class V1_DataSpaceSupportInfo implements Hashable {
|
|
29
28
|
abstract get hashCode(): string;
|
package/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.ts
CHANGED
|
@@ -25,22 +25,22 @@ import {
|
|
|
25
25
|
serialize,
|
|
26
26
|
SKIP,
|
|
27
27
|
} from 'serializr';
|
|
28
|
-
import type { V1_StereotypePtr } from '@finos/legend-graph';
|
|
29
28
|
import {
|
|
29
|
+
type V1_StereotypePtr,
|
|
30
30
|
V1_stereotypePtrSchema,
|
|
31
31
|
V1_taggedValueSchema,
|
|
32
32
|
V1_packageableElementPointerDeserializerSchema,
|
|
33
33
|
} from '@finos/legend-graph';
|
|
34
|
-
import type { PlainObject } from '@finos/legend-shared';
|
|
35
34
|
import {
|
|
35
|
+
type PlainObject,
|
|
36
36
|
deserializeArray,
|
|
37
37
|
serializeArray,
|
|
38
38
|
UnsupportedOperationError,
|
|
39
39
|
usingConstantValueSchema,
|
|
40
40
|
usingModelSchema,
|
|
41
41
|
} from '@finos/legend-shared';
|
|
42
|
-
import type { V1_DataSpaceSupportInfo } from '../../model/packageableElements/dataSpace/V1_DataSpace';
|
|
43
42
|
import {
|
|
43
|
+
type V1_DataSpaceSupportInfo,
|
|
44
44
|
V1_DataSpace,
|
|
45
45
|
V1_DataSpaceExecutionContext,
|
|
46
46
|
V1_DataSpaceSupportEmail,
|
|
@@ -14,11 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import type {
|
|
18
|
-
ClassView,
|
|
19
|
-
DiagramRenderer,
|
|
20
|
-
} from '@finos/legend-extension-dsl-diagram';
|
|
21
17
|
import {
|
|
18
|
+
type ClassView,
|
|
19
|
+
type DiagramRenderer,
|
|
22
20
|
Diagram,
|
|
23
21
|
DIAGRAM_INTERACTION_MODE,
|
|
24
22
|
} from '@finos/legend-extension-dsl-diagram';
|