@finos/legend-extension-dsl-data-space 0.0.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/CHANGELOG.md +9 -0
- package/LICENSE +201 -0
- package/README.md +3 -0
- package/lib/DSLDataSpace_Extension.d.ts +27 -0
- package/lib/DSLDataSpace_Extension.d.ts.map +1 -0
- package/lib/DSLDataSpace_Extension.js +43 -0
- package/lib/DSLDataSpace_Extension.js.map +1 -0
- package/lib/components/studio/DSLDataSpace_StudioPlugin.d.ts +30 -0
- package/lib/components/studio/DSLDataSpace_StudioPlugin.d.ts.map +1 -0
- package/lib/components/studio/DSLDataSpace_StudioPlugin.js +107 -0
- package/lib/components/studio/DSLDataSpace_StudioPlugin.js.map +1 -0
- package/lib/components/studio/DataSpaceEditor.d.ts +19 -0
- package/lib/components/studio/DataSpaceEditor.d.ts.map +1 -0
- package/lib/components/studio/DataSpaceEditor.js +100 -0
- package/lib/components/studio/DataSpaceEditor.js.map +1 -0
- package/lib/graph/DSLDataSpace_PureGraphPlugin.d.ts +24 -0
- package/lib/graph/DSLDataSpace_PureGraphPlugin.d.ts.map +1 -0
- package/lib/graph/DSLDataSpace_PureGraphPlugin.js +30 -0
- package/lib/graph/DSLDataSpace_PureGraphPlugin.js.map +1 -0
- package/lib/graphManager/DSLDataSpace_GraphManagerHelper.d.ts +19 -0
- package/lib/graphManager/DSLDataSpace_GraphManagerHelper.d.ts.map +1 -0
- package/lib/graphManager/DSLDataSpace_GraphManagerHelper.js +18 -0
- package/lib/graphManager/DSLDataSpace_GraphManagerHelper.js.map +1 -0
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.d.ts +25 -0
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.d.ts.map +1 -0
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.js +45 -0
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.js.map +1 -0
- package/lib/index.css +17 -0
- package/lib/index.css.map +1 -0
- package/lib/index.d.ts +17 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +17 -0
- package/lib/index.js.map +1 -0
- package/lib/models/DSLDataSpace_ModelUtils.d.ts +19 -0
- package/lib/models/DSLDataSpace_ModelUtils.d.ts.map +1 -0
- package/lib/models/DSLDataSpace_ModelUtils.js +20 -0
- package/lib/models/DSLDataSpace_ModelUtils.js.map +1 -0
- package/lib/models/metamodels/pure/model/packageableElements/dataSpace/DataSpace.d.ts +34 -0
- package/lib/models/metamodels/pure/model/packageableElements/dataSpace/DataSpace.d.ts.map +1 -0
- package/lib/models/metamodels/pure/model/packageableElements/dataSpace/DataSpace.js +58 -0
- package/lib/models/metamodels/pure/model/packageableElements/dataSpace/DataSpace.js.map +1 -0
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts +27 -0
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts.map +1 -0
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js +119 -0
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js.map +1 -0
- package/lib/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DataSpace.d.ts +33 -0
- package/lib/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DataSpace.d.ts.map +1 -0
- package/lib/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DataSpace.js +49 -0
- package/lib/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DataSpace.js.map +1 -0
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.d.ts +19 -0
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.d.ts.map +1 -0
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.js +18 -0
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.js.map +1 -0
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.d.ts +19 -0
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.d.ts.map +1 -0
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.js +36 -0
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.js.map +1 -0
- package/lib/stores/studio/DataSpaceEditorState.d.ts +42 -0
- package/lib/stores/studio/DataSpaceEditorState.d.ts.map +1 -0
- package/lib/stores/studio/DataSpaceEditorState.js +76 -0
- package/lib/stores/studio/DataSpaceEditorState.js.map +1 -0
- package/package.json +80 -0
- package/src/DSLDataSpace_Extension.ts +49 -0
- package/src/components/studio/DSLDataSpace_StudioPlugin.tsx +146 -0
- package/src/components/studio/DataSpaceEditor.tsx +275 -0
- package/src/graph/DSLDataSpace_PureGraphPlugin.ts +38 -0
- package/src/graphManager/DSLDataSpace_GraphManagerHelper.ts +21 -0
- package/src/graphManager/DSLDataSpace_PureGraphManagerPlugin.ts +56 -0
- package/src/index.ts +17 -0
- package/src/models/DSLDataSpace_ModelUtils.ts +19 -0
- package/src/models/metamodels/pure/model/packageableElements/dataSpace/DataSpace.ts +73 -0
- package/src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts +180 -0
- package/src/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DataSpace.ts +60 -0
- package/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.ts +30 -0
- package/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.ts +82 -0
- package/src/stores/studio/DataSpaceEditorState.ts +108 -0
- package/tsconfig.json +64 -0
- package/tsconfig.package.json +40 -0
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
import packageJson from '../../package.json';
|
|
17
|
+
import { DataSpace } from '../models/metamodels/pure/model/packageableElements/dataSpace/DataSpace';
|
|
18
|
+
import { PureGraphPlugin } from '@finos/legend-graph';
|
|
19
|
+
export class DSLDataSpace_PureGraphPlugin extends PureGraphPlugin {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(packageJson.extensions.pureGraphPlugin, packageJson.version);
|
|
22
|
+
}
|
|
23
|
+
install(pluginManager) {
|
|
24
|
+
pluginManager.registerPureGraphPlugins(this);
|
|
25
|
+
}
|
|
26
|
+
getExtraPureGraphExtensionClasses() {
|
|
27
|
+
return [DataSpace];
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=DSLDataSpace_PureGraphPlugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSLDataSpace_PureGraphPlugin.js","sourceRoot":"","sources":["../../src/graph/DSLDataSpace_PureGraphPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,yEAAyE,CAAC;AAMpG,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,MAAM,OAAO,4BAA6B,SAAQ,eAAe;IAC/D;QACE,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC,eAAe,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;IAED,OAAO,CAAC,aAAiC;QACvC,aAAa,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC;IAEQ,iCAAiC;QACxC,OAAO,CAAC,SAAS,CAAC,CAAC;IACrB,CAAC;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
import type { PureModel } from '@finos/legend-graph';
|
|
17
|
+
import { DataSpace } from '../models/metamodels/pure/model/packageableElements/dataSpace/DataSpace';
|
|
18
|
+
export declare const getDataSpace: (path: string, graph: PureModel) => DataSpace;
|
|
19
|
+
//# sourceMappingURL=DSLDataSpace_GraphManagerHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSLDataSpace_GraphManagerHelper.d.ts","sourceRoot":"","sources":["../../src/graphManager/DSLDataSpace_GraphManagerHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,yEAAyE,CAAC;AAEpG,eAAO,MAAM,YAAY,SAAU,MAAM,SAAS,SAAS,KAAG,SACiB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
import { DataSpace } from '../models/metamodels/pure/model/packageableElements/dataSpace/DataSpace';
|
|
17
|
+
export const getDataSpace = (path, graph) => graph.getExtensionElement(path, DataSpace, `Can't find data space '${path}'`);
|
|
18
|
+
//# sourceMappingURL=DSLDataSpace_GraphManagerHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSLDataSpace_GraphManagerHelper.js","sourceRoot":"","sources":["../../src/graphManager/DSLDataSpace_GraphManagerHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,yEAAyE,CAAC;AAEpG,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAY,EAAE,KAAgB,EAAa,EAAE,CACxE,KAAK,CAAC,mBAAmB,CAAC,IAAI,EAAE,SAAS,EAAE,0BAA0B,IAAI,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
import type { GraphPluginManager, PureGrammarElementLabeler } from '@finos/legend-graph';
|
|
17
|
+
import { PureGraphManagerPlugin } from '@finos/legend-graph';
|
|
18
|
+
export declare class DSLDataSpace_PureGraphManagerPlugin extends PureGraphManagerPlugin {
|
|
19
|
+
constructor();
|
|
20
|
+
install(pluginManager: GraphPluginManager): void;
|
|
21
|
+
getExtraPureGrammarParserNames(): string[];
|
|
22
|
+
getExtraPureGrammarKeywords(): string[];
|
|
23
|
+
getExtraPureGrammarElementLabelers(): PureGrammarElementLabeler[];
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=DSLDataSpace_PureGraphManagerPlugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSLDataSpace_PureGraphManagerPlugin.d.ts","sourceRoot":"","sources":["../../src/graphManager/DSLDataSpace_PureGraphManagerPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,KAAK,EACV,kBAAkB,EAElB,yBAAyB,EAC1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAK7D,qBAAa,mCAAoC,SAAQ,sBAAsB;;IAK7E,OAAO,CAAC,aAAa,EAAE,kBAAkB,GAAG,IAAI;IAIvC,8BAA8B,IAAI,MAAM,EAAE;IAI1C,2BAA2B,IAAI,MAAM,EAAE;IAIvC,kCAAkC,IAAI,yBAAyB,EAAE;CAU3E"}
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
import packageJson from '../../package.json';
|
|
17
|
+
import { DataSpace } from '../models/metamodels/pure/model/packageableElements/dataSpace/DataSpace';
|
|
18
|
+
import { PureGraphManagerPlugin } from '@finos/legend-graph';
|
|
19
|
+
const PURE_GRAMMAR_DATA_SPACE_PARSER_NAME = 'DataSpace';
|
|
20
|
+
const PURE_GRAMMAR_DATA_SPACE_ELEMENT_TYPE_LABEL = 'DataSpace';
|
|
21
|
+
export class DSLDataSpace_PureGraphManagerPlugin extends PureGraphManagerPlugin {
|
|
22
|
+
constructor() {
|
|
23
|
+
super(packageJson.extensions.pureGraphManagerPlugin, packageJson.version);
|
|
24
|
+
}
|
|
25
|
+
install(pluginManager) {
|
|
26
|
+
pluginManager.registerPureGraphManagerPlugin(this);
|
|
27
|
+
}
|
|
28
|
+
getExtraPureGrammarParserNames() {
|
|
29
|
+
return [PURE_GRAMMAR_DATA_SPACE_PARSER_NAME];
|
|
30
|
+
}
|
|
31
|
+
getExtraPureGrammarKeywords() {
|
|
32
|
+
return [PURE_GRAMMAR_DATA_SPACE_ELEMENT_TYPE_LABEL];
|
|
33
|
+
}
|
|
34
|
+
getExtraPureGrammarElementLabelers() {
|
|
35
|
+
return [
|
|
36
|
+
(element) => {
|
|
37
|
+
if (element instanceof DataSpace) {
|
|
38
|
+
return PURE_GRAMMAR_DATA_SPACE_ELEMENT_TYPE_LABEL;
|
|
39
|
+
}
|
|
40
|
+
return undefined;
|
|
41
|
+
},
|
|
42
|
+
];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=DSLDataSpace_PureGraphManagerPlugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSLDataSpace_PureGraphManagerPlugin.js","sourceRoot":"","sources":["../../src/graphManager/DSLDataSpace_PureGraphManagerPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,yEAAyE,CAAC;AAMpG,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,mCAAmC,GAAG,WAAW,CAAC;AACxD,MAAM,0CAA0C,GAAG,WAAW,CAAC;AAE/D,MAAM,OAAO,mCAAoC,SAAQ,sBAAsB;IAC7E;QACE,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC,sBAAsB,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED,OAAO,CAAC,aAAiC;QACvC,aAAa,CAAC,8BAA8B,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;IAEQ,8BAA8B;QACrC,OAAO,CAAC,mCAAmC,CAAC,CAAC;IAC/C,CAAC;IAEQ,2BAA2B;QAClC,OAAO,CAAC,0CAA0C,CAAC,CAAC;IACtD,CAAC;IAEQ,kCAAkC;QACzC,OAAO;YACL,CAAC,OAA2B,EAAsB,EAAE;gBAClD,IAAI,OAAO,YAAY,SAAS,EAAE;oBAChC,OAAO,0CAA0C,CAAC;iBACnD;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
|
package/lib/index.css
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** @license @finos/legend-extension-dsl-data-space v0.0.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
|
+
.data-space-viewer{display:flex;flex-direction:column;height:100%;width:100%}.data-space-viewer__header{display:flex;align-items:center;justify-content:center;flex-direction:column;padding:2rem;height:20rem}.data-space-viewer__path{display:flex;align-items:center;justify-content:center;cursor:default;user-select:none;height:3.4rem;background:var(--color-blue-150);font-size:1.6rem;padding:.5rem 1rem;color:var(--color-light-grey-0);font-family:"Roboto Mono",monospace}.data-space-viewer__gav{display:flex;align-items:center;justify-content:center;cursor:default;user-select:none;height:2.8rem;font-size:1.4rem;color:var(--color-dark-grey-400);border:.1rem solid var(--color-dark-grey-85);padding:.5rem 1rem;margin:1rem;font-family:"Roboto Mono",monospace}.data-space-viewer__gav__artifact-id{color:var(--color-light-grey-400)}.data-space-viewer__gav__version-id{color:var(--color-blue-50);font-weight:700}.data-space-viewer__description{cursor:default;user-select:none;padding:1rem;height:7rem;width:100%;background:var(--color-dark-grey-80);overflow:auto;line-height:1.6rem;color:var(--color-dark-grey-500);font-family:"Roboto",sans-serif;font-size:1.2rem}.data-space-viewer__description--empty{display:flex;align-items:center;justify-content:center;height:100%;width:100%;font-weight:500;color:var(--color-dark-grey-300)}.data-space-viewer__content{display:flex;align-items:center;justify-content:center;height:calc(100% - 20rem);padding:0 2rem 2rem 2rem}.data-space-viewer__body{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.data-space-viewer__activity-bar{width:5rem;background:var(--color-dark-grey-100);height:100%;overflow-x:hidden;overflow-y:hidden}.data-space-viewer__activity-bar__items{height:calc(100% - 5rem);overflow-y:auto;overflow-x:hidden}.data-space-viewer__activity-bar__item{display:flex;align-items:center;justify-content:center;height:5rem;width:5rem;color:var(--color-dark-grey-400);cursor:pointer}.data-space-viewer__activity-bar__item svg{font-size:2rem}.data-space-viewer__activity-bar__item:hover{color:var(--color-light-grey-250);cursor:pointer}.data-space-viewer__activity-bar__item--active{color:var(--color-light-grey-250)}.data-space-viewer__main-panel{height:100%;width:calc(100% - 5rem);border:.1rem solid var(--color-dark-grey-100)}.data-space-viewer__main-panel__content{height:100%;width:100%}.data-space-viewer__overview-panel{display:flex;flex-direction:column;height:100%;width:100%}.data-space-viewer__overview-panel__header{display:flex;align-items:center;height:3.4rem;width:100%}.data-space-viewer__overview-panel__diagram-selector{width:100%}.data-space-viewer__overview-panel__content{height:calc(100% - 3.4rem);width:100%}.data-space-viewer__execution-panel,.data-space-viewer__support-panel{padding:2rem}.data-space-viewer__panel__info-entry{display:flex;align-items:center;height:3.4rem;width:100%}.data-space-viewer__panel__info-entry__icon{display:flex;align-items:center;justify-content:center;height:3.4rem;width:3.4rem;border-radius:.2rem 0 0 .2rem;background:var(--color-dark-grey-100)}.data-space-viewer__panel__info-entry__icon svg{font-size:1.6rem;color:var(--color-light-grey-200)}.data-space-viewer__panel__info-entry__content{display:flex;align-items:center;height:3.4rem;width:calc(100% - 3.4rem);border-radius:0 .2rem .2rem 0;border:.1rem solid var(--color-dark-grey-100);color:var(--color-light-grey-400);padding:0 1rem;font-family:"Roboto Mono",monospace;background:var(--color-dark-grey-100);border-left:.1rem solid var(--color-dark-grey-50);cursor:default;user-select:none}.data-space-viewer__panel__info-entry+.data-space-viewer__panel__info-entry{margin-top:1rem}:root{--color-data-space: var(--color-blue-50)}.icon--data-space{color:var(--color-text-element)}/*# sourceMappingURL=index.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../style/data-space-viewer.scss","../style/_mixins.scss","../style/index.scss"],"names":[],"mappings":"AAkBA,mBACE,aACA,sBACA,YACA,WAEA,2BCPA,aACA,mBACA,uBDQE,sBACA,aACA,aAGF,yBCfA,aACA,mBACA,uBDgBE,eACA,iBACA,cACA,iCACA,iBACA,mBACA,gCACA,oCAGF,wBC5BA,aACA,mBACA,uBD6BE,eACA,iBACA,cACA,iBACA,iCACA,6CACA,mBACA,YACA,oCAEA,qCACE,kCAGF,oCACE,2BACA,gBAIJ,gCACE,eACA,iBACA,aACA,YACA,WACA,qCACA,cACA,mBACA,iCACA,gCACA,iBAEA,uCChEF,aACA,mBACA,uBDiEI,YACA,WACA,gBACA,iCAIJ,4BC1EA,aACA,mBACA,uBD2EE,0BACA,yBAGF,yBCjFA,aACA,mBACA,uBDkFE,WACA,YAGF,iCACE,WACA,sCACA,YACA,kBACA,kBAEA,wCACE,yBACA,gBACA,kBAGF,uCCrGF,aACA,mBACA,uBDsGI,YACA,WACA,iCACA,eAGF,2CACE,eAGF,6CACE,kCACA,eAGF,+CACE,kCAIJ,+BACE,YACA,wBACA,8CAEA,wCACE,YACA,WAIJ,mCACE,aACA,sBACA,YACA,WAEA,2CCvIF,aACA,mBDyII,cACA,WAGF,qDACE,WAGF,4CACE,2BACA,WAIJ,sEAEE,aAGF,sCC7JA,aACA,mBD+JE,cACA,WAEA,4CCzKF,aACA,mBACA,uBD0KI,cACA,aACA,8BACA,sCAEA,gDACE,iBACA,kCAIJ,+CCjLF,aACA,mBDmLI,cACA,0BACA,8BACA,8CACA,kCACA,eACA,oCACA,sCACA,kDACA,eACA,iBAIJ,4EACE,gBEvMJ,MACE,yCAGF,kBACE","file":"index.css"}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
export * from './DSLDataSpace_Extension';
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,0BAA0B,CAAC"}
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
export * from './DSLDataSpace_Extension';
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
export declare enum DATA_SPACE_HASH_STRUCTURE {
|
|
17
|
+
DATA_SPACE = "DATA_SPACE"
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=DSLDataSpace_ModelUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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;CAC1B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
export var DATA_SPACE_HASH_STRUCTURE;
|
|
17
|
+
(function (DATA_SPACE_HASH_STRUCTURE) {
|
|
18
|
+
DATA_SPACE_HASH_STRUCTURE["DATA_SPACE"] = "DATA_SPACE";
|
|
19
|
+
})(DATA_SPACE_HASH_STRUCTURE || (DATA_SPACE_HASH_STRUCTURE = {}));
|
|
20
|
+
//# sourceMappingURL=DSLDataSpace_ModelUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSLDataSpace_ModelUtils.js","sourceRoot":"","sources":["../../src/models/DSLDataSpace_ModelUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,yBAEX;AAFD,WAAY,yBAAyB;IACnC,sDAAyB,CAAA;AAC3B,CAAC,EAFW,yBAAyB,KAAzB,yBAAyB,QAEpC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
import type { Hashable } from '@finos/legend-shared';
|
|
17
|
+
import type { PackageableElementVisitor, StereotypeReference, TaggedValue } from '@finos/legend-graph';
|
|
18
|
+
import { PackageableElement } from '@finos/legend-graph';
|
|
19
|
+
export declare class DataSpace extends PackageableElement implements Hashable {
|
|
20
|
+
stereotypes: StereotypeReference[];
|
|
21
|
+
taggedValues: TaggedValue[];
|
|
22
|
+
groupId: string;
|
|
23
|
+
artifactId: string;
|
|
24
|
+
versionId: string;
|
|
25
|
+
mapping: string;
|
|
26
|
+
runtime: string;
|
|
27
|
+
diagrams: string[];
|
|
28
|
+
description?: string | undefined;
|
|
29
|
+
supportEmail?: string | undefined;
|
|
30
|
+
constructor(name: string);
|
|
31
|
+
protected get _elementHashCode(): string;
|
|
32
|
+
accept_PackageableElementVisitor<T>(visitor: PackageableElementVisitor<T>): T;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=DataSpace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpace.d.ts","sourceRoot":"","sources":["../../../../../../../src/models/metamodels/pure/model/packageableElements/dataSpace/DataSpace.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EACV,yBAAyB,EACzB,mBAAmB,EACnB,WAAW,EACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAGzD,qBAAa,SAAU,SAAQ,kBAAmB,YAAW,QAAQ;IACnE,WAAW,EAAE,mBAAmB,EAAE,CAAM;IACxC,YAAY,EAAE,WAAW,EAAE,CAAM;IACjC,OAAO,EAAG,MAAM,CAAC;IACjB,UAAU,EAAG,MAAM,CAAC;IACpB,SAAS,EAAG,MAAM,CAAC;IACnB,OAAO,EAAG,MAAM,CAAC;IACjB,OAAO,EAAG,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAM;IACxB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAGjC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;gBAEtB,IAAI,EAAE,MAAM;IAQxB,cAAuB,gBAAgB,IAAI,MAAM,CAgBhD;IAED,gCAAgC,CAAC,CAAC,EAChC,OAAO,EAAE,yBAAyB,CAAC,CAAC,CAAC,GACpC,CAAC;CAGL"}
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
import { makeObservable, override } from 'mobx';
|
|
17
|
+
import { hashArray } from '@finos/legend-shared';
|
|
18
|
+
import { PackageableElement } from '@finos/legend-graph';
|
|
19
|
+
import { DATA_SPACE_HASH_STRUCTURE } from '../../../../../DSLDataSpace_ModelUtils';
|
|
20
|
+
export class DataSpace extends PackageableElement {
|
|
21
|
+
stereotypes = [];
|
|
22
|
+
taggedValues = [];
|
|
23
|
+
groupId;
|
|
24
|
+
artifactId;
|
|
25
|
+
versionId;
|
|
26
|
+
mapping;
|
|
27
|
+
runtime;
|
|
28
|
+
diagrams = [];
|
|
29
|
+
description;
|
|
30
|
+
// NOTE: we're not too sure about this attribute. We feel that this would be needed but maybe
|
|
31
|
+
// we can think of a more generic strategy for this type of metadata
|
|
32
|
+
supportEmail;
|
|
33
|
+
constructor(name) {
|
|
34
|
+
super(name);
|
|
35
|
+
makeObservable(this, {
|
|
36
|
+
_elementHashCode: override,
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
get _elementHashCode() {
|
|
40
|
+
return hashArray([
|
|
41
|
+
DATA_SPACE_HASH_STRUCTURE.DATA_SPACE,
|
|
42
|
+
hashArray(this.stereotypes.map((stereotype) => stereotype.pointerHashCode)),
|
|
43
|
+
hashArray(this.taggedValues),
|
|
44
|
+
this.groupId,
|
|
45
|
+
this.artifactId,
|
|
46
|
+
this.versionId,
|
|
47
|
+
this.mapping,
|
|
48
|
+
this.runtime,
|
|
49
|
+
hashArray(this.diagrams),
|
|
50
|
+
this.description ?? '',
|
|
51
|
+
this.supportEmail ?? '',
|
|
52
|
+
]);
|
|
53
|
+
}
|
|
54
|
+
accept_PackageableElementVisitor(visitor) {
|
|
55
|
+
return visitor.visit_PackageableElement(this);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=DataSpace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpace.js","sourceRoot":"","sources":["../../../../../../../src/models/metamodels/pure/model/packageableElements/dataSpace/DataSpace.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAOjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAEnF,MAAM,OAAO,SAAU,SAAQ,kBAAkB;IAC/C,WAAW,GAA0B,EAAE,CAAC;IACxC,YAAY,GAAkB,EAAE,CAAC;IACjC,OAAO,CAAU;IACjB,UAAU,CAAU;IACpB,SAAS,CAAU;IACnB,OAAO,CAAU;IACjB,OAAO,CAAU;IACjB,QAAQ,GAAa,EAAE,CAAC;IACxB,WAAW,CAAsB;IACjC,6FAA6F;IAC7F,oEAAoE;IACpE,YAAY,CAAsB;IAElC,YAAY,IAAY;QACtB,KAAK,CAAC,IAAI,CAAC,CAAC;QAEZ,cAAc,CAAgC,IAAI,EAAE;YAClD,gBAAgB,EAAE,QAAQ;SAC3B,CAAC,CAAC;IACL,CAAC;IAED,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,IAAI,CAAC,OAAO;YACZ,IAAI,CAAC,UAAU;YACf,IAAI,CAAC,SAAS;YACd,IAAI,CAAC,OAAO;YACZ,IAAI,CAAC,OAAO;YACZ,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC;YACxB,IAAI,CAAC,WAAW,IAAI,EAAE;YACtB,IAAI,CAAC,YAAY,IAAI,EAAE;SACxB,CAAC,CAAC;IACL,CAAC;IAED,gCAAgC,CAC9B,OAAqC;QAErC,OAAO,OAAO,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;CACF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
import type { GraphPluginManager, V1_ElementProtocolClassifierPathGetter, V1_ElementProtocolDeserializer, V1_ElementProtocolSerializer, V1_ElementTransformer, V1_PackageableElement } from '@finos/legend-graph';
|
|
17
|
+
import { PureProtocolProcessorPlugin, V1_ElementBuilder } from '@finos/legend-graph';
|
|
18
|
+
export declare class DSLDataSpace_PureProtocolProcessorPlugin extends PureProtocolProcessorPlugin {
|
|
19
|
+
constructor();
|
|
20
|
+
install(pluginManager: GraphPluginManager): void;
|
|
21
|
+
V1_getExtraElementBuilders(): V1_ElementBuilder<V1_PackageableElement>[];
|
|
22
|
+
V1_getExtraElementClassifierPathGetters(): V1_ElementProtocolClassifierPathGetter[];
|
|
23
|
+
V1_getExtraElementProtocolSerializers(): V1_ElementProtocolSerializer[];
|
|
24
|
+
V1_getExtraElementProtocolDeserializers(): V1_ElementProtocolDeserializer[];
|
|
25
|
+
V1_getExtraElementTransformers(): V1_ElementTransformer[];
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=DSLDataSpace_PureProtocolProcessorPlugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSLDataSpace_PureProtocolProcessorPlugin.d.ts","sourceRoot":"","sources":["../../../../src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAaH,OAAO,KAAK,EACV,kBAAkB,EAElB,sCAAsC,EACtC,8BAA8B,EAC9B,4BAA4B,EAC5B,qBAAqB,EAGrB,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAIL,2BAA2B,EAC3B,iBAAiB,EAElB,MAAM,qBAAqB,CAAC;AAK7B,qBAAa,wCAAyC,SAAQ,2BAA2B;;IAQvF,OAAO,CAAC,aAAa,EAAE,kBAAkB,GAAG,IAAI;IAIvC,0BAA0B,IAAI,iBAAiB,CAAC,qBAAqB,CAAC,EAAE;IAmDxE,uCAAuC,IAAI,sCAAsC,EAAE;IAWnF,qCAAqC,IAAI,4BAA4B,EAAE;IAavE,uCAAuC,IAAI,8BAA8B,EAAE;IAa3E,8BAA8B,IAAI,qBAAqB,EAAE;CA6BnE"}
|
|
@@ -0,0 +1,119 @@
|
|
|
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
|
+
import packageJson from '../../../../package.json';
|
|
17
|
+
import { V1_DataSpace } from './v1/model/packageableElements/dataSpace/V1_DataSpace';
|
|
18
|
+
import { isNonNullable, assertType } from '@finos/legend-shared';
|
|
19
|
+
import { deserialize, serialize } from 'serializr';
|
|
20
|
+
import { V1_dataSpaceModelSchema, V1_DATA_SPACE_ELEMENT_PROTOCOL_TYPE, } from './v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper';
|
|
21
|
+
import { getDataSpace } from '../../../graphManager/DSLDataSpace_GraphManagerHelper';
|
|
22
|
+
import { DataSpace } from '../../metamodels/pure/model/packageableElements/dataSpace/DataSpace';
|
|
23
|
+
import { V1_buildTaggedValue, V1_transformStereotype, V1_transformTaggedValue, PureProtocolProcessorPlugin, V1_ElementBuilder, V1_initPackageableElement, } from '@finos/legend-graph';
|
|
24
|
+
const DATA_SPACE_ELEMENT_CLASSIFIER_PATH = 'meta::pure::metamodel::dataSpace::DataSpace';
|
|
25
|
+
export class DSLDataSpace_PureProtocolProcessorPlugin extends PureProtocolProcessorPlugin {
|
|
26
|
+
constructor() {
|
|
27
|
+
super(packageJson.extensions.pureProtocolProcessorPlugin, packageJson.version);
|
|
28
|
+
}
|
|
29
|
+
install(pluginManager) {
|
|
30
|
+
pluginManager.registerPureProtocolProcessorPlugin(this);
|
|
31
|
+
}
|
|
32
|
+
V1_getExtraElementBuilders() {
|
|
33
|
+
return [
|
|
34
|
+
new V1_ElementBuilder({
|
|
35
|
+
elementClassName: 'DataSpace',
|
|
36
|
+
_class: V1_DataSpace,
|
|
37
|
+
firstPass: (elementProtocol, context) => {
|
|
38
|
+
assertType(elementProtocol, V1_DataSpace);
|
|
39
|
+
const element = new DataSpace(elementProtocol.name);
|
|
40
|
+
const path = context.currentSubGraph.buildPath(elementProtocol.package, elementProtocol.name);
|
|
41
|
+
context.currentSubGraph.setOwnElementInExtension(path, element, DataSpace);
|
|
42
|
+
return element;
|
|
43
|
+
},
|
|
44
|
+
secondPass: (elementProtocol, context) => {
|
|
45
|
+
assertType(elementProtocol, V1_DataSpace);
|
|
46
|
+
const path = context.graph.buildPath(elementProtocol.package, elementProtocol.name);
|
|
47
|
+
const element = getDataSpace(path, context.graph);
|
|
48
|
+
element.stereotypes = elementProtocol.stereotypes
|
|
49
|
+
.map((stereotype) => context.resolveStereotype(stereotype))
|
|
50
|
+
.filter(isNonNullable);
|
|
51
|
+
element.taggedValues = elementProtocol.taggedValues
|
|
52
|
+
.map((taggedValue) => V1_buildTaggedValue(taggedValue, context))
|
|
53
|
+
.filter(isNonNullable);
|
|
54
|
+
element.groupId = elementProtocol.groupId;
|
|
55
|
+
element.artifactId = elementProtocol.artifactId;
|
|
56
|
+
element.versionId = elementProtocol.versionId;
|
|
57
|
+
element.mapping = elementProtocol.mapping;
|
|
58
|
+
element.runtime = elementProtocol.runtime;
|
|
59
|
+
element.description = elementProtocol.description;
|
|
60
|
+
element.supportEmail = elementProtocol.supportEmail;
|
|
61
|
+
element.diagrams = elementProtocol.diagrams ?? [];
|
|
62
|
+
},
|
|
63
|
+
}),
|
|
64
|
+
];
|
|
65
|
+
}
|
|
66
|
+
V1_getExtraElementClassifierPathGetters() {
|
|
67
|
+
return [
|
|
68
|
+
(elementProtocol) => {
|
|
69
|
+
if (elementProtocol instanceof V1_DataSpace) {
|
|
70
|
+
return DATA_SPACE_ELEMENT_CLASSIFIER_PATH;
|
|
71
|
+
}
|
|
72
|
+
return undefined;
|
|
73
|
+
},
|
|
74
|
+
];
|
|
75
|
+
}
|
|
76
|
+
V1_getExtraElementProtocolSerializers() {
|
|
77
|
+
return [
|
|
78
|
+
(elementProtocol) => {
|
|
79
|
+
if (elementProtocol instanceof V1_DataSpace) {
|
|
80
|
+
return serialize(V1_dataSpaceModelSchema, elementProtocol);
|
|
81
|
+
}
|
|
82
|
+
return undefined;
|
|
83
|
+
},
|
|
84
|
+
];
|
|
85
|
+
}
|
|
86
|
+
V1_getExtraElementProtocolDeserializers() {
|
|
87
|
+
return [
|
|
88
|
+
(json) => {
|
|
89
|
+
if (json._type === V1_DATA_SPACE_ELEMENT_PROTOCOL_TYPE) {
|
|
90
|
+
return deserialize(V1_dataSpaceModelSchema, json);
|
|
91
|
+
}
|
|
92
|
+
return undefined;
|
|
93
|
+
},
|
|
94
|
+
];
|
|
95
|
+
}
|
|
96
|
+
V1_getExtraElementTransformers() {
|
|
97
|
+
return [
|
|
98
|
+
(metamodel, context) => {
|
|
99
|
+
if (metamodel instanceof DataSpace) {
|
|
100
|
+
const protocol = new V1_DataSpace();
|
|
101
|
+
V1_initPackageableElement(protocol, metamodel);
|
|
102
|
+
protocol.stereotypes = metamodel.stereotypes.map(V1_transformStereotype);
|
|
103
|
+
protocol.taggedValues = metamodel.taggedValues.map(V1_transformTaggedValue);
|
|
104
|
+
protocol.groupId = metamodel.groupId;
|
|
105
|
+
protocol.artifactId = metamodel.artifactId;
|
|
106
|
+
protocol.versionId = metamodel.versionId;
|
|
107
|
+
protocol.mapping = metamodel.mapping;
|
|
108
|
+
protocol.runtime = metamodel.runtime;
|
|
109
|
+
protocol.description = metamodel.description;
|
|
110
|
+
protocol.supportEmail = metamodel.supportEmail;
|
|
111
|
+
protocol.diagrams = metamodel.diagrams;
|
|
112
|
+
return protocol;
|
|
113
|
+
}
|
|
114
|
+
return undefined;
|
|
115
|
+
},
|
|
116
|
+
];
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
//# sourceMappingURL=DSLDataSpace_PureProtocolProcessorPlugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSLDataSpace_PureProtocolProcessorPlugin.js","sourceRoot":"","sources":["../../../../src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
import type { Hashable } from '@finos/legend-shared';
|
|
17
|
+
import type { V1_PackageableElementVisitor, V1_StereotypePtr, V1_TaggedValue } from '@finos/legend-graph';
|
|
18
|
+
import { V1_PackageableElement } from '@finos/legend-graph';
|
|
19
|
+
export declare class V1_DataSpace extends V1_PackageableElement implements Hashable {
|
|
20
|
+
stereotypes: V1_StereotypePtr[];
|
|
21
|
+
taggedValues: V1_TaggedValue[];
|
|
22
|
+
groupId: string;
|
|
23
|
+
artifactId: string;
|
|
24
|
+
versionId: string;
|
|
25
|
+
mapping: string;
|
|
26
|
+
runtime: string;
|
|
27
|
+
diagrams?: string[] | undefined;
|
|
28
|
+
description?: string | undefined;
|
|
29
|
+
supportEmail?: string | undefined;
|
|
30
|
+
get hashCode(): string;
|
|
31
|
+
accept_PackageableElementVisitor<T>(visitor: V1_PackageableElementVisitor<T>): T;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=V1_DataSpace.d.ts.map
|
package/lib/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DataSpace.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"V1_DataSpace.d.ts","sourceRoot":"","sources":["../../../../../../../../src/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DataSpace.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,KAAK,EACV,4BAA4B,EAC5B,gBAAgB,EAChB,cAAc,EACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,qBAAa,YAAa,SAAQ,qBAAsB,YAAW,QAAQ;IACzE,WAAW,EAAE,gBAAgB,EAAE,CAAM;IACrC,YAAY,EAAE,cAAc,EAAE,CAAM;IACpC,OAAO,EAAG,MAAM,CAAC;IACjB,UAAU,EAAG,MAAM,CAAC;IACpB,SAAS,EAAG,MAAM,CAAC;IACnB,OAAO,EAAG,MAAM,CAAC;IACjB,OAAO,EAAG,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAElC,IAAa,QAAQ,IAAI,MAAM,CAc9B;IAED,gCAAgC,CAAC,CAAC,EAChC,OAAO,EAAE,4BAA4B,CAAC,CAAC,CAAC,GACvC,CAAC;CAGL"}
|