@finos/legend-extension-dsl-data-space 0.0.6 → 1.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 +32 -0
- package/lib/DSLDataSpace_Extension.d.ts +0 -5
- package/lib/DSLDataSpace_Extension.d.ts.map +1 -1
- package/lib/DSLDataSpace_Extension.js +0 -12
- package/lib/DSLDataSpace_Extension.js.map +1 -1
- package/lib/components/{studio/DataSpaceEditor.d.ts → DataSpaceViewer.d.ts} +5 -2
- package/lib/components/DataSpaceViewer.d.ts.map +1 -0
- package/lib/components/DataSpaceViewer.js +186 -0
- package/lib/components/DataSpaceViewer.js.map +1 -0
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.d.ts +24 -0
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.d.ts.map +1 -0
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.js +51 -0
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.js.map +1 -0
- package/lib/components/query/DataSpaceQuerySetup.d.ts +22 -0
- package/lib/components/query/DataSpaceQuerySetup.d.ts.map +1 -0
- package/lib/components/query/DataSpaceQuerySetup.js +95 -0
- package/lib/components/query/DataSpaceQuerySetup.js.map +1 -0
- package/lib/components/studio/{DSLDataSpace_StudioPlugin.d.ts → DSLDataSpace_LegendStudioPlugin.d.ts} +5 -6
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.d.ts.map +1 -0
- package/lib/components/studio/{DSLDataSpace_StudioPlugin.js → DSLDataSpace_LegendStudioPlugin.js} +7 -18
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.js.map +1 -0
- package/lib/graph/DSLDataSpace_PureGraphPlugin.js +1 -1
- package/lib/graph/DSLDataSpace_PureGraphPlugin.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +5 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -0
- package/lib/index.js.map +1 -1
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts +39 -1
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts.map +1 -1
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js +110 -8
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js.map +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.d.ts +1 -0
- 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 +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.js.map +1 -1
- package/lib/stores/DataSpaceViewerState.d.ts +59 -0
- package/lib/stores/DataSpaceViewerState.d.ts.map +1 -0
- package/lib/stores/DataSpaceViewerState.js +137 -0
- package/lib/stores/DataSpaceViewerState.js.map +1 -0
- package/lib/stores/query/DataSpaceQuerySetupState.d.ts +49 -0
- package/lib/stores/query/DataSpaceQuerySetupState.d.ts.map +1 -0
- package/lib/stores/query/DataSpaceQuerySetupState.js +129 -0
- package/lib/stores/query/DataSpaceQuerySetupState.js.map +1 -0
- package/package.json +26 -21
- package/src/DSLDataSpace_Extension.ts +0 -15
- package/src/components/DataSpaceViewer.tsx +598 -0
- package/src/components/query/DSLDataSpace_LegendQueryPlugin.tsx +76 -0
- package/src/components/query/DataSpaceQuerySetup.tsx +234 -0
- package/src/components/studio/{DSLDataSpace_StudioPlugin.tsx → DSLDataSpace_LegendStudioPlugin.tsx} +17 -27
- package/src/graph/DSLDataSpace_PureGraphPlugin.ts +1 -1
- package/src/index.ts +12 -0
- package/src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts +192 -6
- package/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.ts +1 -1
- package/src/stores/DataSpaceViewerState.ts +202 -0
- package/src/stores/query/DataSpaceQuerySetupState.ts +235 -0
- package/tsconfig.json +7 -3
- package/tsconfig.package.json +1 -0
- package/lib/components/studio/DSLDataSpace_StudioPlugin.d.ts.map +0 -1
- package/lib/components/studio/DSLDataSpace_StudioPlugin.js.map +0 -1
- package/lib/components/studio/DataSpaceEditor.d.ts.map +0 -1
- package/lib/components/studio/DataSpaceEditor.js +0 -98
- package/lib/components/studio/DataSpaceEditor.js.map +0 -1
- package/lib/stores/studio/DataSpaceEditorState.d.ts +0 -42
- package/lib/stores/studio/DataSpaceEditorState.d.ts.map +0 -1
- package/lib/stores/studio/DataSpaceEditorState.js +0 -76
- package/lib/stores/studio/DataSpaceEditorState.js.map +0 -1
- package/src/components/studio/DataSpaceEditor.tsx +0 -272
- package/src/stores/studio/DataSpaceEditorState.ts +0 -108
package/lib/components/studio/{DSLDataSpace_StudioPlugin.js → DSLDataSpace_LegendStudioPlugin.js}
RENAMED
|
@@ -15,14 +15,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import packageJson from '../../../package.json';
|
|
18
|
-
import {
|
|
18
|
+
import { UnsupportedElementEditorState, LegendStudioPlugin, } from '@finos/legend-studio';
|
|
19
19
|
import { SquareIcon } from '@finos/legend-art';
|
|
20
20
|
import { DataSpace, DataSpaceExecutionContext, } from '../../models/metamodels/pure/model/packageableElements/dataSpace/DataSpace';
|
|
21
|
-
import {
|
|
22
|
-
import { DataSpaceViewer } from './DataSpaceEditor';
|
|
21
|
+
import { LATEST_VERSION_ALIAS } from '@finos/legend-server-depot';
|
|
23
22
|
const DATA_SPACE_ELEMENT_TYPE = 'DATA SPACE';
|
|
24
23
|
const DATA_SPACE_ELEMENT_PROJECT_EXPLORER_DND_TYPE = 'PROJECT_EXPLORER_DATA_SPACE';
|
|
25
|
-
export class
|
|
24
|
+
export class DSLDataSpace_LegendStudioPlugin extends LegendStudioPlugin {
|
|
26
25
|
constructor() {
|
|
27
26
|
super(packageJson.extensions.studioPlugin, packageJson.version);
|
|
28
27
|
}
|
|
@@ -46,17 +45,7 @@ export class DSLDataSpace_StudioPlugin extends StudioPlugin {
|
|
|
46
45
|
return [
|
|
47
46
|
(type) => {
|
|
48
47
|
if (type === DATA_SPACE_ELEMENT_TYPE) {
|
|
49
|
-
return (_jsx("div",
|
|
50
|
-
}
|
|
51
|
-
return undefined;
|
|
52
|
-
},
|
|
53
|
-
];
|
|
54
|
-
}
|
|
55
|
-
getExtraElementEditorRenderers() {
|
|
56
|
-
return [
|
|
57
|
-
(elementEditorState) => {
|
|
58
|
-
if (elementEditorState instanceof DataSpaceEditorState) {
|
|
59
|
-
return _jsx(DataSpaceViewer, {}, elementEditorState.uuid);
|
|
48
|
+
return (_jsx("div", { className: "icon icon--data-space", children: _jsx(SquareIcon, {}, void 0) }, void 0));
|
|
60
49
|
}
|
|
61
50
|
return undefined;
|
|
62
51
|
},
|
|
@@ -71,7 +60,7 @@ export class DSLDataSpace_StudioPlugin extends StudioPlugin {
|
|
|
71
60
|
state.editorStore.projectConfigurationEditorState.currentProjectConfiguration.groupId;
|
|
72
61
|
dataSpace.artifactId =
|
|
73
62
|
state.editorStore.projectConfigurationEditorState.currentProjectConfiguration.artifactId;
|
|
74
|
-
dataSpace.versionId =
|
|
63
|
+
dataSpace.versionId = LATEST_VERSION_ALIAS;
|
|
75
64
|
const dataSpaceExecutionContext = new DataSpaceExecutionContext();
|
|
76
65
|
dataSpaceExecutionContext.name = 'dummyContext';
|
|
77
66
|
dataSpaceExecutionContext.mapping = 'dummyMapping';
|
|
@@ -88,7 +77,7 @@ export class DSLDataSpace_StudioPlugin extends StudioPlugin {
|
|
|
88
77
|
return [
|
|
89
78
|
(editorStore, element) => {
|
|
90
79
|
if (element instanceof DataSpace) {
|
|
91
|
-
return new
|
|
80
|
+
return new UnsupportedElementEditorState(editorStore, element);
|
|
92
81
|
}
|
|
93
82
|
return undefined;
|
|
94
83
|
},
|
|
@@ -108,4 +97,4 @@ export class DSLDataSpace_StudioPlugin extends StudioPlugin {
|
|
|
108
97
|
return [DATA_SPACE_ELEMENT_PROJECT_EXPLORER_DND_TYPE];
|
|
109
98
|
}
|
|
110
99
|
}
|
|
111
|
-
//# sourceMappingURL=
|
|
100
|
+
//# sourceMappingURL=DSLDataSpace_LegendStudioPlugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSLDataSpace_LegendStudioPlugin.js","sourceRoot":"","sources":["../../../src/components/studio/DSLDataSpace_LegendStudioPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAahD,OAAO,EACL,6BAA6B,EAC7B,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EACL,SAAS,EACT,yBAAyB,GAC1B,MAAM,4EAA4E,CAAC;AACpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,MAAM,uBAAuB,GAAG,YAAY,CAAC;AAC7C,MAAM,4CAA4C,GAChD,6BAA6B,CAAC;AAEhC,MAAM,OAAO,+BACX,SAAQ,kBAAkB;IAG1B;QACE,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC,YAAY,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,aAAwC;QAC9C,aAAa,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;IAED,6BAA6B;QAC3B,OAAO,CAAC,uBAAuB,CAAC,CAAC;IACnC,CAAC;IAED,0BAA0B;QACxB,OAAO;YACL,CAAC,OAA2B,EAAsB,EAAE;gBAClD,IAAI,OAAO,YAAY,SAAS,EAAE;oBAChC,OAAO,uBAAuB,CAAC;iBAChC;g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O,IAAI,6BAA6B,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;iBAChE;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;IAED,4CAA4C;QAC1C,OAAO;YACL,CAAC,OAA2B,EAAsB,EAAE;gBAClD,IAAI,OAAO,YAAY,SAAS,EAAE;oBAChC,OAAO,4CAA4C,CAAC;iBACrD;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;IAED,iCAAiC;QAC/B,OAAO,CAAC,4CAA4C,CAAC,CAAC;IACxD,CAAC;CACF"}
|
|
@@ -21,7 +21,7 @@ export class DSLDataSpace_PureGraphPlugin extends PureGraphPlugin {
|
|
|
21
21
|
super(packageJson.extensions.pureGraphPlugin, packageJson.version);
|
|
22
22
|
}
|
|
23
23
|
install(pluginManager) {
|
|
24
|
-
pluginManager.
|
|
24
|
+
pluginManager.registerPureGraphPlugin(this);
|
|
25
25
|
}
|
|
26
26
|
getExtraPureGraphExtensionClasses() {
|
|
27
27
|
return [DataSpace];
|
|
@@ -1 +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,
|
|
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,uBAAuB,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC;IAEQ,iCAAiC;QACxC,OAAO,CAAC,SAAS,CAAC,CAAC;IACrB,CAAC;CACF"}
|
package/lib/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license @finos/legend-extension-dsl-data-space
|
|
1
|
+
/** @license @finos/legend-extension-dsl-data-space v1.0.1
|
|
2
2
|
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
.data-
|
|
17
|
+
@import'@finos/legend-extension-dsl-diagram/lib/index.css';.data-space__viewer{display:flex;flex-direction:column;height:100%;width:100%;background:var(--color-dark-grey-80)}.data-space__viewer__header{display:flex;align-items:center;justify-content:center;flex-direction:column;padding:2rem;height:17rem}.data-space__viewer__path{display:flex;align-items:center;justify-content:center;height:3.4rem;background:var(--color-blue-150)}.data-space__viewer__path__label{display:flex;align-items:center;justify-content:center;height:100%;font-family:"Roboto Mono",monospace;font-size:1.6rem;padding:0 1rem;user-select:none;color:var(--color-light-grey-0)}.data-space__viewer__path__link{display:flex;align-items:center;justify-content:center;height:3.4rem;width:3.4rem;border-left:.1rem solid var(--color-dark-shade-230)}.data-space__viewer__path__link svg{font-size:1.6rem;color:var(--color-light-grey-0)}.data-space__viewer__gav{display:flex;align-items:center;justify-content:center;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__gav__link{display:flex;align-items:center;justify-content:center;margin-left:.5rem}.data-space__viewer__gav__link svg{color:var(--color-blue-50)}.data-space__viewer__description{cursor:default;user-select:none;padding:1rem;height:5rem;width:100%;background:var(--color-dark-grey-100);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;font-weight:500;color:var(--color-dark-grey-300)}.data-space__viewer__content{display:flex;align-items:center;justify-content:center;height:calc(100% - 17rem);padding:0 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:100%;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);overflow:auto}.data-space__viewer__main-panel__content{height:100%;width:100%}.data-space__viewer__diagrams{display:flex;flex-direction:column;height:100%;width:100%}.data-space__viewer__diagrams__header{display:flex;align-items:center;height:3.4rem;width:100%}.data-space__viewer__diagrams__footer{display:flex;align-items:center;height:2rem;background:var(--color-dark-grey-250);color:var(--color-light-grey-400);padding:0 .5rem;user-select:none;cursor:default}.data-space__viewer__diagrams__diagram-selector{width:100%}.data-space__viewer__diagrams__content{height:calc(100% - 5.4rem);width:100%}.data-space__viewer__diagrams__dropdown{width:100%}.data-space__viewer__diagrams__dropdown__container{padding:.3rem}.data-space__viewer__diagrams__dropdown__option{display:flex;align-items:center}.data-space__viewer__diagrams__dropdown__option__tag{display:flex;align-items:center;background:var(--color-blue-200);height:1.8rem;padding:0 .5rem;margin-left:.5rem;border-radius:.2rem;font-size:1.2rem;color:var(--color-light-grey-100)}.data-space__viewer__execution{padding:2rem}.data-space__viewer__execution__context-icon{color:var(--color-light-grey-200)}.data-space__viewer__execution__entry{display:flex;align-items:center;height:3.4rem;width:100%}.data-space__viewer__execution__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__execution__entry__icon svg{font-size:1.6rem}.data-space__viewer__execution__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;background:var(--color-dark-grey-100);border-left:.1rem solid var(--color-dark-grey-50);user-select:none}.data-space__viewer__execution__entry__content__dropdown{width:100%}.data-space__viewer__execution__entry__content__dropdown__container{padding:.3rem}.data-space__viewer__execution__entry__content__dropdown__option{display:flex;align-items:center}.data-space__viewer__execution__entry__content__dropdown__option__tag{display:flex;align-items:center;background:var(--color-blue-200);height:1.8rem;padding:0 .5rem;margin-left:.5rem;border-radius:.2rem;font-size:1.2rem;color:var(--color-light-grey-100)}.data-space__viewer__execution__entry__content__text{font-family:"Roboto Mono",monospace}.data-space__viewer__execution__description{margin-top:.5rem;margin-bottom:.5rem;cursor:default;user-select:none;padding:1rem;height:5rem;width:100%;background:var(--color-dark-grey-100);overflow:auto;line-height:1.6rem;color:var(--color-dark-grey-500);font-family:Roboto,sans-serif;font-size:1.2rem}.data-space__viewer__execution__description--empty{display:flex;align-items:center;justify-content:center;font-weight:500;color:var(--color-dark-grey-300)}.data-space__viewer__execution__mapping{margin-bottom:.5rem}.data-space__viewer__tags{padding:2rem}.data-space__viewer__tags__section{cursor:default;margin:.5rem 0 3rem}.data-space__viewer__tags__section__title{display:flex;align-items:center;font-weight:500;color:var(--color-dark-grey-500);margin-bottom:1rem;line-height:2rem;cursor:default}.data-space__viewer__tags__section__entry{display:flex;align-items:center;height:2.8rem;margin:.5rem 0;width:100%}.data-space__viewer__tags__tagged-value__tag{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-word;text-align:left;height:100%;width:15rem;border-radius:.2rem 0 0 .2rem;padding:0 1rem;line-height:2.8rem;background:var(--color-purple-400);color:var(--color-light-grey-400);font-weight:500}.data-space__viewer__tags__tagged-value__value{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-word;text-align:left;height:100%;width:calc(100% - 15rem);border-radius:0 .2rem .2rem 0;padding:0 1rem;line-height:2.8rem;background:var(--color-dark-grey-100);color:var(--color-light-grey-400)}.data-space__viewer__tags__steoreotype{display:flex;align-items:center;height:100%;border-radius:.2rem;padding:0 1rem;line-height:2.8rem;background:var(--color-purple-400);color:var(--color-light-grey-400);font-weight:500}.data-space__viewer__tags__section__placeholder{display:flex;align-items:center;justify-content:center;height:4rem;width:100%;color:var(--color-dark-grey-300);font-weight:500;border:.2rem dashed var(--color-dark-grey-200)}.data-space__viewer__support-info{padding:2rem}.data-space__viewer__support-email__entry{display:flex;align-items:center;height:3.4rem;width:100%}.data-space__viewer__support-email__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__support-email__entry__icon svg{font-size:1.6rem;color:var(--color-light-grey-200)}.data-space__viewer__support-email__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);user-select:none}.query-setup__landing-page__option--data-space:hover{background:var(--color-yellow-100)}.query-setup__landing-page__icon--data-space{font-size:1.3rem}.query-setup__data-space{width:calc(100% - 10rem);height:calc(100% - 10rem)}.query-setup__data-space__header{background:var(--color-yellow-100)}.query-setup__data-space__input-group{padding:.5rem;width:100%;height:3.8rem;background:var(--color-dark-grey-200)}.query-setup__data-space__use-snapshot-btn{display:flex;align-items:center;justify-content:center;height:2.8rem;width:2.8rem;border-radius:0 .2rem .2rem 0;background:var(--color-dark-grey-300)}.query-setup__data-space__use-snapshot-btn svg{color:var(--color-light-grey-50)}.query-setup__data-space__use-snapshot-btn--active{background:var(--color-blue-100)}.query-setup__data-space .query-setup__wizard__selector{width:100%}.query-setup__data-space__option{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-word;text-align:left;display:inline-flex}.query-setup__data-space__option__gav{font-size:1.2rem;color:var(--color-dark-grey-400);margin-left:.5rem;line-height:1.4rem}.query-setup__data-space__view{height:calc(100% - 3.8rem);width:100%}.query-setup__data-space__view--failed{display:flex;align-items:center;height:2.8rem}.query-setup__data-space__view--failed__icon{display:flex;align-items:center;justify-content:center;height:100%}.query-setup__data-space__view--failed__text{margin-left:.5rem;color:var(--color-dark-grey-300);font-weight:700;cursor:default;user-select:none;text-align:center;line-height:2.8rem}:root{--color-data-space: var(--color-blue-50)}.icon--data-space{color:var(--color-data-space)}/*# sourceMappingURL=index.css.map */
|
package/lib/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../style/
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../style/_deps.scss","../style/_data-space-viewer.scss","../../../node_modules/@finos/legend-art/scss/_mixins.scss","../style/_data-space-query-plugin.scss","../style/index.scss"],"names":[],"mappings":"AAgBQ,2DCER,oBACE,aACA,sBACA,YACA,WACA,qCAEA,4BCDA,aACA,mBACA,uBDEE,sBACA,aACA,aAGF,0BCTA,aACA,mBACA,uBDUE,cACA,iCAEA,iCCfF,aACA,mBACA,uBDgBI,YACA,oCACA,iBACA,eACA,iBACA,gCAGF,gCC1BF,aACA,mBACA,uBD2BI,cACA,aACA,oDAEA,oCACE,iBACA,gCAKN,yBCxCA,aACA,mBACA,uBDyCE,iBACA,cACA,iBACA,iCACA,6CACA,mBACA,YACA,oCAEA,sCACE,kCAGF,qCACE,2BACA,gBAGF,+BC7DF,aACA,mBACA,uBD8DI,kBAEA,mCACE,2BAKN,iCACE,eACA,iBACA,aACA,YACA,WACA,sCACA,cACA,mBACA,iCACA,8BACA,iBAEA,wCCrFF,aACA,mBACA,uBDsFI,gBACA,iCAIJ,6BC7FA,aACA,mBACA,uBD8FE,0BACA,oBAGF,0BCpGA,aACA,mBACA,uBDqGE,WACA,YAGF,kCACE,WACA,sCACA,YACA,kBACA,kBAEA,yCACE,YACA,gBACA,kBAGF,wCCxHF,aACA,mBACA,uBDyHI,YACA,WACA,iCACA,eAGF,4CACE,eAGF,8CACE,kCACA,eAGF,gDACE,kCAIJ,gCACE,YACA,wBACA,8CACA,cAEA,yCACE,YACA,WAIJ,8BACE,aACA,sBACA,YACA,WAEA,sCC3JF,aACA,mBD6JI,cACA,WAGF,sCClKF,aACA,mBDoKI,YACA,sCACA,kCACA,gBACA,iBACA,eAGF,gDACE,WAGF,uCACE,2BACA,WAGF,wCACE,WAEA,mDACE,cAGF,gDC7LJ,aACA,mBDgMI,qDCjMJ,aACA,mBDmMM,iCACA,cACA,gBACA,kBACA,oBACA,iBACA,kCAKN,+BACE,aAEA,6CACE,kCAGF,sCCtNF,aACA,mBDwNI,cACA,WAEA,4CClOJ,aACA,mBACA,uBDmOM,cACA,aACA,8BACA,sCAEA,gDACE,iBAIJ,+CCzOJ,aACA,mBD2OM,cACA,0BACA,8BACA,8CACA,kCACA,eACA,sCACA,kDACA,iBAEA,yDACE,WAEA,oEACE,cAGF,iEC7PR,aACA,mBDgQQ,sECjQR,aACA,mBDmQU,iCACA,cACA,gBACA,kBACA,oBACA,iBACA,kCAIJ,qDACE,oCAKN,4CACE,iBACA,oBACA,eACA,iBACA,aACA,YACA,WACA,sCACA,cACA,mBACA,iCACA,8BACA,iBAEA,mDCzSJ,aACA,mBACA,uBD0SM,gBACA,iCAIJ,wCACE,oBAIJ,0BACE,aAEA,mCACE,eACA,oBAGF,0CCxTF,aACA,mBD0TI,gBACA,iCACA,mBACA,iBACA,eAGF,0CClUF,aACA,mBDoUI,cACA,eACA,WAGF,6CChUF,mBACA,uBACA,gBACA,sBACA,gBD+TI,YACA,YACA,8BACA,eACA,mBACA,mCACA,kCACA,gBAGF,+CC7UF,mBACA,uBACA,gBACA,sBACA,gBD4UI,YACA,yBACA,8BACA,eACA,mBACA,sCACA,kCAGF,uCCnWF,aACA,mBDqWI,YACA,oBACA,eACA,mBACA,mCACA,kCACA,gBAGF,gDCrXF,aACA,mBACA,uBDsXI,YACA,WACA,iCACA,gBACA,+CAIJ,kCACE,aAIA,0CC/XF,aACA,mBDiYI,cACA,WAEA,gDC3YJ,aACA,mBACA,uBD4YM,cACA,aACA,8BACA,sCAEA,oDACE,iBACA,kCAIJ,mDCnZJ,aACA,mBDqZM,cACA,0BACA,8BACA,8CACA,kCACA,eACA,oCACA,sCACA,kDACA,iBE3aR,qDACE,mCAGF,6CACE,iBAGF,yBACE,yBACA,0BAEA,iCACE,mCAGF,sCACE,cACA,WACA,cACA,sCAGF,2CDjBA,aACA,mBACA,uBCkBE,cACA,aACA,8BACA,sCAEA,+CACE,iCAGF,mDACE,iCAIJ,wDACE,WAGF,iCDtBA,mBACA,uBACA,gBACA,sBACA,gBCqBE,oBAGF,sCACE,iBACA,iCACA,kBACA,mBAGF,+BACE,2BACA,WAEA,uCDjDF,aACA,mBCmDI,cAEA,6CD5DJ,aACA,mBACA,uBC6DM,YAGF,6CACE,kBACA,iCACA,gBACA,eACA,iBACA,kBACA,mBC7ER,MACE,yCAGF,kBACE","file":"index.css"}
|
package/lib/index.d.ts
CHANGED
|
@@ -14,4 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
export * from './DSLDataSpace_Extension';
|
|
17
|
+
export { DSLDataSpace_LegendStudioPlugin } from './components/studio/DSLDataSpace_LegendStudioPlugin';
|
|
18
|
+
export { DSLDataSpace_LegendQueryPlugin } from './components/query/DSLDataSpace_LegendQueryPlugin';
|
|
19
|
+
export { DataSpaceViewer } from './components/DataSpaceViewer';
|
|
20
|
+
export { DATA_SPACE_ELEMENT_CLASSIFIER_PATH, extractDataSpaceTaxonomyNodes, getResolvedDataSpace, } from './models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin';
|
|
21
|
+
export { DataSpaceViewerState } from './stores/DataSpaceViewerState';
|
|
17
22
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,+BAA+B,EAAE,MAAM,qDAAqD,CAAC;AACtG,OAAO,EAAE,8BAA8B,EAAE,MAAM,mDAAmD,CAAC;AAEnG,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,OAAO,EACL,kCAAkC,EAClC,6BAA6B,EAC7B,oBAAoB,GACrB,MAAM,kEAAkE,CAAC;AAE1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -14,4 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
export * from './DSLDataSpace_Extension';
|
|
17
|
+
export { DSLDataSpace_LegendStudioPlugin } from './components/studio/DSLDataSpace_LegendStudioPlugin';
|
|
18
|
+
export { DSLDataSpace_LegendQueryPlugin } from './components/query/DSLDataSpace_LegendQueryPlugin';
|
|
19
|
+
export { DataSpaceViewer } from './components/DataSpaceViewer';
|
|
20
|
+
export { DATA_SPACE_ELEMENT_CLASSIFIER_PATH, extractDataSpaceTaxonomyNodes, getResolvedDataSpace, } from './models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin';
|
|
21
|
+
export { DataSpaceViewerState } from './stores/DataSpaceViewerState';
|
|
17
22
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,+BAA+B,EAAE,MAAM,qDAAqD,CAAC;AACtG,OAAO,EAAE,8BAA8B,EAAE,MAAM,mDAAmD,CAAC;AAEnG,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,OAAO,EACL,kCAAkC,EAClC,6BAA6B,EAC7B,oBAAoB,GACrB,MAAM,kEAAkE,CAAC;AAE1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -13,9 +13,13 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { V1_DataSpace } from './v1/model/packageableElements/dataSpace/V1_DataSpace';
|
|
16
17
|
import type { PlainObject } from '@finos/legend-shared';
|
|
17
|
-
import type {
|
|
18
|
+
import type { DataSpaceSupportInfo } from '../../metamodels/pure/model/packageableElements/dataSpace/DataSpace';
|
|
19
|
+
import type { GraphPluginManager, Mapping, PackageableElementReference, PackageableRuntime, PureModel, V1_ElementProtocolClassifierPathGetter, V1_ElementProtocolDeserializer, V1_ElementProtocolSerializer, V1_ElementTransformer, V1_PackageableElement, V1_PureModelContextData } from '@finos/legend-graph';
|
|
18
20
|
import { PureProtocolProcessorPlugin, V1_ElementBuilder } from '@finos/legend-graph';
|
|
21
|
+
import { Diagram } from '@finos/legend-extension-dsl-diagram';
|
|
22
|
+
export declare const DATA_SPACE_ELEMENT_CLASSIFIER_PATH = "meta::pure::metamodel::dataSpace::DataSpace";
|
|
19
23
|
export declare class DSLDataSpace_PureProtocolProcessorPlugin extends PureProtocolProcessorPlugin {
|
|
20
24
|
constructor();
|
|
21
25
|
install(pluginManager: GraphPluginManager): void;
|
|
@@ -26,4 +30,38 @@ export declare class DSLDataSpace_PureProtocolProcessorPlugin extends PureProtoc
|
|
|
26
30
|
V1_getExtraElementProtocolDeserializers(): V1_ElementProtocolDeserializer[];
|
|
27
31
|
V1_getExtraElementTransformers(): V1_ElementTransformer[];
|
|
28
32
|
}
|
|
33
|
+
export declare class ResolvedDataSpaceExecutionContext {
|
|
34
|
+
name: string;
|
|
35
|
+
description?: string | undefined;
|
|
36
|
+
mapping: PackageableElementReference<Mapping>;
|
|
37
|
+
defaultRuntime: PackageableElementReference<PackageableRuntime>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* When we actually need to use the data space, we want to resolve all of its
|
|
41
|
+
* element pointers to actual reference, hence this model.
|
|
42
|
+
*/
|
|
43
|
+
export declare class ResolvedDataSpace {
|
|
44
|
+
taggedValues: {
|
|
45
|
+
uuid: string;
|
|
46
|
+
profile: string;
|
|
47
|
+
tag: string;
|
|
48
|
+
value: string;
|
|
49
|
+
}[];
|
|
50
|
+
stereotypes: {
|
|
51
|
+
uuid: string;
|
|
52
|
+
profile: string;
|
|
53
|
+
stereotype: string;
|
|
54
|
+
}[];
|
|
55
|
+
path: string;
|
|
56
|
+
groupId: string;
|
|
57
|
+
artifactId: string;
|
|
58
|
+
versionId: string;
|
|
59
|
+
executionContexts: ResolvedDataSpaceExecutionContext[];
|
|
60
|
+
defaultExecutionContext: ResolvedDataSpaceExecutionContext;
|
|
61
|
+
featuredDiagrams: PackageableElementReference<Diagram>[];
|
|
62
|
+
description?: string | undefined;
|
|
63
|
+
supportInfo?: DataSpaceSupportInfo | undefined;
|
|
64
|
+
}
|
|
65
|
+
export declare const getResolvedDataSpace: (json: PlainObject<V1_DataSpace>, graph: PureModel) => ResolvedDataSpace;
|
|
66
|
+
export declare const extractDataSpaceTaxonomyNodes: (json: PlainObject<V1_DataSpace>) => string[];
|
|
29
67
|
//# sourceMappingURL=DSLDataSpace_PureProtocolProcessorPlugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSLDataSpace_PureProtocolProcessorPlugin.d.ts","sourceRoot":"","sources":["../../../../src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"DSLDataSpace_PureProtocolProcessorPlugin.d.ts","sourceRoot":"","sources":["../../../../src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EACL,YAAY,EAGb,MAAM,uDAAuD,CAAC;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAexD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qEAAqE,CAAC;AAMhH,OAAO,KAAK,EACV,kBAAkB,EAClB,OAAO,EAEP,2BAA2B,EAC3B,kBAAkB,EA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AAU,EAAG,MAAM,CAAC;IACpB,SAAS,EAAG,MAAM,CAAC;IACnB,iBAAiB,EAAE,iCAAiC,EAAE,CAAM;IAC5D,uBAAuB,EAAG,iCAAiC,CAAC;IAC5D,gBAAgB,EAAE,2BAA2B,CAAC,OAAO,CAAC,EAAE,CAAM;IAC9D,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,WAAW,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;CAChD;AAED,eAAO,MAAM,oBAAoB,SACzB,YAAY,YAAY,CAAC,SACxB,SAAS,KACf,iBAkGF,CAAC;AAEF,eAAO,MAAM,6BAA6B,SAClC,YAAY,YAAY,CAAC,KAC9B,MAAM,EA6BR,CAAC"}
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
import packageJson from '../../../../package.json';
|
|
17
17
|
import V1_SYSTEM_MODELS from './v1/V1_DSLDataSpace_SystemModels.json';
|
|
18
18
|
import { V1_DataSpace, V1_DataSpaceExecutionContext, V1_DataSpaceSupportEmail, } from './v1/model/packageableElements/dataSpace/V1_DataSpace';
|
|
19
|
-
import { guaranteeNonEmptyString, guaranteeNonNullable, UnsupportedOperationError, isNonNullable, assertType, } from '@finos/legend-shared';
|
|
19
|
+
import { uuid, guaranteeNonEmptyString, guaranteeNonNullable, UnsupportedOperationError, isNonNullable, assertType, } from '@finos/legend-shared';
|
|
20
20
|
import { deserialize, serialize } from 'serializr';
|
|
21
21
|
import { V1_dataSpaceModelSchema, V1_DATA_SPACE_ELEMENT_PROTOCOL_TYPE, } from './v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper';
|
|
22
22
|
import { getDataSpace } from '../../../graphManager/DSLDataSpace_GraphManagerHelper';
|
|
23
23
|
import { DataSpace, DataSpaceExecutionContext, DataSpaceSupportEmail, } from '../../metamodels/pure/model/packageableElements/dataSpace/DataSpace';
|
|
24
|
-
import { V1_PackageableElementPointer, V1_PackageableElementPointerType, V1_buildTaggedValue, V1_transformStereotype, V1_transformTaggedValue, PureProtocolProcessorPlugin, V1_ElementBuilder, V1_initPackageableElement, } from '@finos/legend-graph';
|
|
25
|
-
import { V1_DSLDiagram_PackageableElementPointerType } from '@finos/legend-extension-dsl-diagram';
|
|
26
|
-
const DATA_SPACE_ELEMENT_CLASSIFIER_PATH = 'meta::pure::metamodel::dataSpace::DataSpace';
|
|
24
|
+
import { V1_taggedValueSchema, PackageableElementExplicitReference, V1_PackageableElementPointer, V1_PackageableElementPointerType, V1_buildTaggedValue, V1_transformStereotype, V1_transformTaggedValue, PureProtocolProcessorPlugin, V1_ElementBuilder, V1_initPackageableElement, V1_StereotypePtr, } from '@finos/legend-graph';
|
|
25
|
+
import { Diagram, V1_DSLDiagram_PackageableElementPointerType, } from '@finos/legend-extension-dsl-diagram';
|
|
26
|
+
export const DATA_SPACE_ELEMENT_CLASSIFIER_PATH = 'meta::pure::metamodel::dataSpace::DataSpace';
|
|
27
27
|
export class DSLDataSpace_PureProtocolProcessorPlugin extends PureProtocolProcessorPlugin {
|
|
28
28
|
constructor() {
|
|
29
29
|
super(packageJson.extensions.pureProtocolProcessorPlugin, packageJson.version);
|
|
@@ -67,11 +67,13 @@ export class DSLDataSpace_PureProtocolProcessorPlugin extends PureProtocolProces
|
|
|
67
67
|
element.defaultExecutionContext = guaranteeNonNullable(element.executionContexts.find((context) => context.name ===
|
|
68
68
|
guaranteeNonEmptyString(elementProtocol.defaultExecutionContext, `Data space 'defaultExecutionContext' field is missing or empty`)), `Can't find default execution context '${elementProtocol.defaultExecutionContext}'`);
|
|
69
69
|
element.description = elementProtocol.description;
|
|
70
|
-
|
|
70
|
+
if (elementProtocol.featuredDiagrams) {
|
|
71
|
+
element.featuredDiagrams = elementProtocol.featuredDiagrams.map((pointer) => pointer.path);
|
|
72
|
+
}
|
|
71
73
|
if (elementProtocol.supportInfo) {
|
|
72
74
|
if (elementProtocol.supportInfo instanceof V1_DataSpaceSupportEmail) {
|
|
73
75
|
const supportEmail = new DataSpaceSupportEmail();
|
|
74
|
-
supportEmail.address = elementProtocol.supportInfo.address;
|
|
76
|
+
supportEmail.address = guaranteeNonEmptyString(elementProtocol.supportInfo.address, `Data space support email 'address' field is missing or empty`);
|
|
75
77
|
element.supportInfo = supportEmail;
|
|
76
78
|
}
|
|
77
79
|
else {
|
|
@@ -97,7 +99,7 @@ export class DSLDataSpace_PureProtocolProcessorPlugin extends PureProtocolProces
|
|
|
97
99
|
}
|
|
98
100
|
V1_getExtraElementProtocolSerializers() {
|
|
99
101
|
return [
|
|
100
|
-
(elementProtocol) => {
|
|
102
|
+
(elementProtocol, plugins) => {
|
|
101
103
|
if (elementProtocol instanceof V1_DataSpace) {
|
|
102
104
|
return serialize(V1_dataSpaceModelSchema, elementProtocol);
|
|
103
105
|
}
|
|
@@ -107,7 +109,7 @@ export class DSLDataSpace_PureProtocolProcessorPlugin extends PureProtocolProces
|
|
|
107
109
|
}
|
|
108
110
|
V1_getExtraElementProtocolDeserializers() {
|
|
109
111
|
return [
|
|
110
|
-
(json) => {
|
|
112
|
+
(json, plugins) => {
|
|
111
113
|
if (json._type === V1_DATA_SPACE_ELEMENT_PROTOCOL_TYPE) {
|
|
112
114
|
return deserialize(V1_dataSpaceModelSchema, json);
|
|
113
115
|
}
|
|
@@ -156,4 +158,104 @@ export class DSLDataSpace_PureProtocolProcessorPlugin extends PureProtocolProces
|
|
|
156
158
|
];
|
|
157
159
|
}
|
|
158
160
|
}
|
|
161
|
+
export class ResolvedDataSpaceExecutionContext {
|
|
162
|
+
name;
|
|
163
|
+
description;
|
|
164
|
+
mapping;
|
|
165
|
+
defaultRuntime;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* When we actually need to use the data space, we want to resolve all of its
|
|
169
|
+
* element pointers to actual reference, hence this model.
|
|
170
|
+
*/
|
|
171
|
+
export class ResolvedDataSpace {
|
|
172
|
+
taggedValues = [];
|
|
173
|
+
stereotypes = [];
|
|
174
|
+
path;
|
|
175
|
+
groupId;
|
|
176
|
+
artifactId;
|
|
177
|
+
versionId;
|
|
178
|
+
executionContexts = [];
|
|
179
|
+
defaultExecutionContext;
|
|
180
|
+
featuredDiagrams = [];
|
|
181
|
+
description;
|
|
182
|
+
supportInfo;
|
|
183
|
+
}
|
|
184
|
+
export const getResolvedDataSpace = (json, graph) => {
|
|
185
|
+
const dataSpace = new ResolvedDataSpace();
|
|
186
|
+
if (json._type === V1_DATA_SPACE_ELEMENT_PROTOCOL_TYPE) {
|
|
187
|
+
const protocol = deserialize(V1_dataSpaceModelSchema, json);
|
|
188
|
+
dataSpace.path = protocol.path;
|
|
189
|
+
if (Array.isArray(json.taggedValues)) {
|
|
190
|
+
dataSpace.taggedValues = json.taggedValues
|
|
191
|
+
.map((taggedValueJson) => deserialize(V1_taggedValueSchema, taggedValueJson))
|
|
192
|
+
.map((taggedValue) => ({
|
|
193
|
+
uuid: uuid(),
|
|
194
|
+
profile: taggedValue.tag.profile,
|
|
195
|
+
tag: taggedValue.tag.value,
|
|
196
|
+
value: taggedValue.value,
|
|
197
|
+
}));
|
|
198
|
+
}
|
|
199
|
+
if (Array.isArray(json.stereotypes)) {
|
|
200
|
+
dataSpace.stereotypes = json.stereotypes
|
|
201
|
+
.map((stereotypePtrJson) => deserialize(V1_StereotypePtr, stereotypePtrJson))
|
|
202
|
+
.map((stereotypePtr) => ({
|
|
203
|
+
uuid: uuid(),
|
|
204
|
+
profile: stereotypePtr.profile,
|
|
205
|
+
stereotype: stereotypePtr.value,
|
|
206
|
+
}));
|
|
207
|
+
}
|
|
208
|
+
dataSpace.groupId = guaranteeNonEmptyString(protocol.groupId, `Data space 'groupId' field is missing or empty`);
|
|
209
|
+
dataSpace.artifactId = guaranteeNonEmptyString(protocol.artifactId, `Data space 'artifactId' field is missing or empty`);
|
|
210
|
+
dataSpace.versionId = guaranteeNonEmptyString(protocol.versionId, `Data space 'versionId' field is missing or empty`);
|
|
211
|
+
dataSpace.executionContexts = protocol.executionContexts.map((contextProtocol) => {
|
|
212
|
+
const context = new ResolvedDataSpaceExecutionContext();
|
|
213
|
+
context.name = guaranteeNonEmptyString(contextProtocol.name, `Data space execution context 'name' field is missing or empty`);
|
|
214
|
+
context.description = contextProtocol.description;
|
|
215
|
+
context.mapping = PackageableElementExplicitReference.create(graph.getMapping(contextProtocol.mapping.path));
|
|
216
|
+
context.defaultRuntime = PackageableElementExplicitReference.create(graph.getRuntime(contextProtocol.defaultRuntime.path));
|
|
217
|
+
return context;
|
|
218
|
+
});
|
|
219
|
+
dataSpace.defaultExecutionContext = guaranteeNonNullable(dataSpace.executionContexts.find((context) => context.name ===
|
|
220
|
+
guaranteeNonEmptyString(protocol.defaultExecutionContext, `Data space 'defaultExecutionContext' field is missing or empty`)), `Can't find default execution context '${protocol.defaultExecutionContext}'`);
|
|
221
|
+
dataSpace.description = protocol.description;
|
|
222
|
+
if (protocol.featuredDiagrams) {
|
|
223
|
+
dataSpace.featuredDiagrams = protocol.featuredDiagrams.map((pointer) => PackageableElementExplicitReference.create(graph.getExtensionElement(pointer.path, Diagram)));
|
|
224
|
+
}
|
|
225
|
+
if (protocol.supportInfo) {
|
|
226
|
+
if (protocol.supportInfo instanceof V1_DataSpaceSupportEmail) {
|
|
227
|
+
const supportEmail = new DataSpaceSupportEmail();
|
|
228
|
+
supportEmail.address = guaranteeNonEmptyString(protocol.supportInfo.address, `Data space support email 'address' field is missing or empty`);
|
|
229
|
+
dataSpace.supportInfo = supportEmail;
|
|
230
|
+
}
|
|
231
|
+
else {
|
|
232
|
+
throw new UnsupportedOperationError(`Can't build data space support info`, protocol.supportInfo);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
return dataSpace;
|
|
236
|
+
}
|
|
237
|
+
throw new UnsupportedOperationError(`Can't resolve data space`, json);
|
|
238
|
+
};
|
|
239
|
+
export const extractDataSpaceTaxonomyNodes = (json) => {
|
|
240
|
+
const ENTERPRISE_PROFILE_PATH = `meta::pure::profiles::enterprise`;
|
|
241
|
+
const TAXONOMY_NODES_TAG = `taxonomyNodes`;
|
|
242
|
+
const TAXONOMY_NODES_TAG_VALUE_DELIMITER = `,`;
|
|
243
|
+
const taxonomyNodes = new Set();
|
|
244
|
+
if (json._type === V1_DATA_SPACE_ELEMENT_PROTOCOL_TYPE) {
|
|
245
|
+
if (Array.isArray(json.taggedValues)) {
|
|
246
|
+
const taggedValues = json.taggedValues.map((taggedValueJson) => deserialize(V1_taggedValueSchema, taggedValueJson));
|
|
247
|
+
taggedValues
|
|
248
|
+
.filter((taggedValue) => taggedValue.tag.profile === ENTERPRISE_PROFILE_PATH &&
|
|
249
|
+
taggedValue.tag.value === TAXONOMY_NODES_TAG)
|
|
250
|
+
.forEach((taggedValue) => {
|
|
251
|
+
taggedValue.value
|
|
252
|
+
.split(TAXONOMY_NODES_TAG_VALUE_DELIMITER)
|
|
253
|
+
.map((value) => value.trim())
|
|
254
|
+
.filter((value) => Boolean(value))
|
|
255
|
+
.forEach((value) => taxonomyNodes.add(value));
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
return Array.from(taxonomyNodes.values());
|
|
260
|
+
};
|
|
159
261
|
//# sourceMappingURL=DSLDataSpace_PureProtocolProcessorPlugin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSLDataSpace_PureProtocolProcessorPlugin.js","sourceRoot":"","sources":["../../../../src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,gBAAgB,MAAM,wCAAwC,CAAC;AACtE,OAAO,EACL,YAAY,EACZ,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,uDAAuD,CAAC;AAE/D,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,yBAAyB,EACzB,aAAa,EACb,UAAU,GACX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EACL,uBAAuB,EACvB,mCAAmC,GACpC,MAAM,iEAAiE,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,uDAAuD,CAAC;
|
|
1
|
+
{"version":3,"file":"DSLDataSpace_PureProtocolProcessorPlugin.js","sourceRoot":"","sources":["../../../../src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,gBAAgB,MAAM,wCAAwC,CAAC;AACtE,OAAO,EACL,YAAY,EACZ,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,uDAAuD,CAAC;AAE/D,OAAO,EACL,IAAI,EACJ,uBAAuB,EACvB,oBAAoB,EACpB,yBAAyB,EACzB,aAAa,EACb,UAAU,GACX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EACL,uBAAuB,EACvB,mCAAmC,GACpC,MAAM,iEAAiE,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,uDAAuD,CAAC;AAErF,OAAO,EACL,SAAS,EACT,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,qEAAqE,CAAC;AAkB7E,OAAO,EACL,oBAAoB,EACpB,mCAAmC,EACnC,4BAA4B,EAC5B,gCAAgC,EAChC,mBAAmB,EACnB,sBAAsB,EACtB,uBAAuB,EACvB,2BAA2B,EAC3B,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,OAAO,EACP,2CAA2C,GAC5C,MAAM,qCAAqC,CAAC;AAE7C,MAAM,CAAC,MAAM,kCAAkC,GAC7C,6CAA6C,CAAC;AAEhD,MAAM,OAAO,wCAAyC,SAAQ,2BAA2B;IACvF;QACE,KAAK,CACH,WAAW,CAAC,UAAU,CAAC,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AC/C;iBACA,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE;gBACvB,WAAW,CAAC,KAAK;qBACd,KAAK,CAAC,kCAAkC,CAAC;qBACzC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;qBAC5B,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;qBACjC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;YAClD,CAAC,CAAC,CAAC;SACN;KACF;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC,CAAC;AAC5C,CAAC,CAAC"}
|
package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.d.ts
CHANGED
|
@@ -15,5 +15,6 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { V1_DataSpace } from '../../model/packageableElements/dataSpace/V1_DataSpace';
|
|
17
17
|
export declare const V1_DATA_SPACE_ELEMENT_PROTOCOL_TYPE = "dataSpace";
|
|
18
|
+
export declare const V1_DATA_SPACE_SUPPORT_EMAIL_TYPE = "email";
|
|
18
19
|
export declare const V1_dataSpaceModelSchema: import("serializr").ModelSchema<V1_DataSpace>;
|
|
19
20
|
//# sourceMappingURL=V1_DSLDataSpace_ProtocolHelper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"V1_DSLDataSpace_ProtocolHelper.d.ts","sourceRoot":"","sources":["../../../../../../../src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA4BH,OAAO,EACL,YAAY,EAGb,MAAM,wDAAwD,CAAC;AAEhE,eAAO,MAAM,mCAAmC,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"V1_DSLDataSpace_ProtocolHelper.d.ts","sourceRoot":"","sources":["../../../../../../../src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA4BH,OAAO,EACL,YAAY,EAGb,MAAM,wDAAwD,CAAC;AAEhE,eAAO,MAAM,mCAAmC,cAAc,CAAC;AAC/D,eAAO,MAAM,gCAAgC,UAAU,CAAC;AAgDxD,eAAO,MAAM,uBAAuB,+CA0DlC,CAAC"}
|
package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.js
CHANGED
|
@@ -18,7 +18,7 @@ import { V1_stereotypePtrSchema, V1_taggedValueSchema, V1_packageableElementPoin
|
|
|
18
18
|
import { deserializeArray, serializeArray, UnsupportedOperationError, usingConstantValueSchema, usingModelSchema, } from '@finos/legend-shared';
|
|
19
19
|
import { V1_DataSpace, V1_DataSpaceExecutionContext, V1_DataSpaceSupportEmail, } from '../../model/packageableElements/dataSpace/V1_DataSpace';
|
|
20
20
|
export const V1_DATA_SPACE_ELEMENT_PROTOCOL_TYPE = 'dataSpace';
|
|
21
|
-
const V1_DATA_SPACE_SUPPORT_EMAIL_TYPE = 'email';
|
|
21
|
+
export const V1_DATA_SPACE_SUPPORT_EMAIL_TYPE = 'email';
|
|
22
22
|
const V1_dataSpaceExecutionContextModelSchema = createModelSchema(V1_DataSpaceExecutionContext, {
|
|
23
23
|
defaultRuntime: usingModelSchema(V1_packageableElementPointerDeserializerSchema),
|
|
24
24
|
description: optional(primitive()),
|
|
@@ -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;AAEnB,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,8CAA8C,GAC/C,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,yBAAyB,EACzB,wBAAwB,EACxB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,YAAY,EACZ,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,wDAAwD,CAAC;AAEhE,MAAM,CAAC,MAAM,mCAAmC,GAAG,WAAW,CAAC;AAC/D,MAAM,gCAAgC,GAAG,OAAO,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;AAEnB,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,8CAA8C,GAC/C,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,yBAAyB,EACzB,wBAAwB,EACxB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,YAAY,EACZ,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,wDAAwD,CAAC;AAEhE,MAAM,CAAC,MAAM,mCAAmC,GAAG,WAAW,CAAC;AAC/D,MAAM,CAAC,MAAM,gCAAgC,GAAG,OAAO,CAAC;AAExD,MAAM,uCAAuC,GAAG,iBAAiB,CAC/D,4BAA4B,EAC5B;IACE,cAAc,EAAE,gBAAgB,CAC9B,8CAA8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ACvB,CAAC,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
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 { ClassView, DiagramRenderer } from '@finos/legend-extension-dsl-diagram';
|
|
17
|
+
import { Diagram } from '@finos/legend-extension-dsl-diagram';
|
|
18
|
+
import type { GraphManagerState, PackageableRuntime } from '@finos/legend-graph';
|
|
19
|
+
import type { ResolvedDataSpace, ResolvedDataSpaceExecutionContext } from '../models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin';
|
|
20
|
+
export declare enum DATA_SPACE_VIEWER_ACTIVITY_MODE {
|
|
21
|
+
MODELS_OVERVIEW = "MODELS_OVERVIEW",
|
|
22
|
+
EXECUTION = "EXECUTION",
|
|
23
|
+
ENTITLEMENT = "ENTITLEMENT",
|
|
24
|
+
TEST_DATA = "TEST_DATA",
|
|
25
|
+
TEST_COVERAGE = "TEST_COVERAGE",
|
|
26
|
+
TAGS = "TAGS",
|
|
27
|
+
SUPPORT = "SUPPORT"
|
|
28
|
+
}
|
|
29
|
+
export declare class DataSpaceViewerState {
|
|
30
|
+
graphManagerState: GraphManagerState;
|
|
31
|
+
dataSpaceGroupId: string;
|
|
32
|
+
dataSpaceArtifactId: string;
|
|
33
|
+
dataSpaceVersionId: string;
|
|
34
|
+
dataSpace: ResolvedDataSpace;
|
|
35
|
+
_renderer?: DiagramRenderer | undefined;
|
|
36
|
+
currentDiagram?: Diagram | undefined;
|
|
37
|
+
currentActivity: DATA_SPACE_VIEWER_ACTIVITY_MODE;
|
|
38
|
+
currentExecutionContext: ResolvedDataSpaceExecutionContext;
|
|
39
|
+
currentRuntime: PackageableRuntime;
|
|
40
|
+
viewProject?: ((groupId: string, artifactId: string, versionId: string, entityPath: string | undefined) => void) | undefined;
|
|
41
|
+
onDiagramClassDoubleClick?: ((classView: ClassView) => void) | undefined;
|
|
42
|
+
constructor(graphManagerState: GraphManagerState, dataSpaceGroupId: string, dataSpaceArtifactId: string, dataSpaceVersionId: string, dataSpace: ResolvedDataSpace, options?: {
|
|
43
|
+
viewProject?: (groupId: string, artifactId: string, versionId: string, entityPath: string | undefined) => void;
|
|
44
|
+
onDiagramClassDoubleClick?: (classView: ClassView) => void;
|
|
45
|
+
});
|
|
46
|
+
get renderer(): DiagramRenderer;
|
|
47
|
+
get isDiagramRendererInitialized(): boolean;
|
|
48
|
+
get featuredDiagrams(): Diagram[];
|
|
49
|
+
get diagrams(): Diagram[];
|
|
50
|
+
get runtimes(): PackageableRuntime[];
|
|
51
|
+
get diagramCursorClass(): string;
|
|
52
|
+
setRenderer(val: DiagramRenderer): void;
|
|
53
|
+
setCurrentDiagram(val: Diagram): void;
|
|
54
|
+
setCurrentActivity(val: DATA_SPACE_VIEWER_ACTIVITY_MODE): void;
|
|
55
|
+
setCurrentExecutionContext(val: ResolvedDataSpaceExecutionContext): void;
|
|
56
|
+
setCurrentRuntime(val: PackageableRuntime): void;
|
|
57
|
+
setupRenderer(): void;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=DataSpaceViewerState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceViewerState.d.ts","sourceRoot":"","sources":["../../src/stores/DataSpaceViewerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,O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