@finos/legend-extension-dsl-data-space 4.0.5 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/DSLDataSpace_Const.d.ts +18 -0
- package/lib/DSLDataSpace_Const.d.ts.map +1 -0
- package/lib/DSLDataSpace_Const.js +20 -0
- package/lib/DSLDataSpace_Const.js.map +1 -0
- package/lib/components/DataSpaceViewer.d.ts.map +1 -1
- package/lib/components/DataSpaceViewer.js +30 -27
- package/lib/components/DataSpaceViewer.js.map +1 -1
- package/lib/components/query/{DSLDataSpace_LegendQueryPlugin.d.ts → DSLDataSpace_LegendQueryApplicationPlugin.d.ts} +6 -3
- package/lib/components/query/DSLDataSpace_LegendQueryApplicationPlugin.d.ts.map +1 -0
- package/lib/components/query/{DSLDataSpace_LegendQueryPlugin.js → DSLDataSpace_LegendQueryApplicationPlugin.js} +27 -3
- package/lib/components/query/DSLDataSpace_LegendQueryApplicationPlugin.js.map +1 -0
- package/lib/components/query/DataSpaceQueryEditor.d.ts +20 -0
- package/lib/components/query/DataSpaceQueryEditor.d.ts.map +1 -0
- package/lib/components/query/DataSpaceQueryEditor.js +43 -0
- package/lib/components/query/DataSpaceQueryEditor.js.map +1 -0
- package/lib/components/query/DataSpaceQuerySetup.d.ts.map +1 -1
- package/lib/components/query/DataSpaceQuerySetup.js +4 -17
- package/lib/components/query/DataSpaceQuerySetup.js.map +1 -1
- package/lib/components/studio/{DSLDataSpace_LegendStudioPlugin.d.ts → DSLDataSpace_LegendStudioApplicationPlugin.d.ts} +3 -3
- package/lib/components/studio/DSLDataSpace_LegendStudioApplicationPlugin.d.ts.map +1 -0
- package/lib/components/studio/{DSLDataSpace_LegendStudioPlugin.js → DSLDataSpace_LegendStudioApplicationPlugin.js} +3 -3
- package/lib/components/studio/DSLDataSpace_LegendStudioApplicationPlugin.js.map +1 -0
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.d.ts +2 -1
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.d.ts.map +1 -1
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.js +4 -0
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.js.map +1 -1
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.d.ts +50 -0
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.d.ts.map +1 -0
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.js +48 -0
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.js.map +1 -0
- package/lib/graphManager/protocol/DSLDataSpace_PureGraphManagerExtension.d.ts +23 -0
- package/lib/graphManager/protocol/DSLDataSpace_PureGraphManagerExtension.d.ts.map +1 -0
- package/lib/graphManager/protocol/DSLDataSpace_PureGraphManagerExtension.js +21 -0
- package/lib/graphManager/protocol/DSLDataSpace_PureGraphManagerExtension.js.map +1 -0
- package/lib/graphManager/protocol/DSLDataSpace_PureGraphManagerExtensionBuilder.d.ts +18 -0
- package/lib/graphManager/protocol/DSLDataSpace_PureGraphManagerExtensionBuilder.d.ts.map +1 -0
- package/lib/graphManager/protocol/DSLDataSpace_PureGraphManagerExtensionBuilder.js +20 -0
- package/lib/graphManager/protocol/DSLDataSpace_PureGraphManagerExtensionBuilder.js.map +1 -0
- package/lib/graphManager/protocol/v1/V1_DSLDataSpace_PureGraphManagerExtension.d.ts +26 -0
- package/lib/graphManager/protocol/v1/V1_DSLDataSpace_PureGraphManagerExtension.d.ts.map +1 -0
- package/lib/graphManager/protocol/v1/V1_DSLDataSpace_PureGraphManagerExtension.js +131 -0
- package/lib/graphManager/protocol/v1/V1_DSLDataSpace_PureGraphManagerExtension.js.map +1 -0
- package/lib/graphManager/protocol/v1/engine/analytics/V1_DataSpaceAnalysis.d.ts +53 -0
- package/lib/graphManager/protocol/v1/engine/analytics/V1_DataSpaceAnalysis.d.ts.map +1 -0
- package/lib/graphManager/protocol/v1/engine/analytics/V1_DataSpaceAnalysis.js +78 -0
- package/lib/graphManager/protocol/v1/engine/analytics/V1_DataSpaceAnalysis.js.map +1 -0
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +4 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +4 -2
- package/lib/index.js.map +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.d.ts +3 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.js +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.js.map +1 -1
- package/lib/package.json +6 -5
- package/lib/stores/DataSpaceViewerState.d.ts +7 -11
- package/lib/stores/DataSpaceViewerState.d.ts.map +1 -1
- package/lib/stores/DataSpaceViewerState.js +10 -32
- package/lib/stores/DataSpaceViewerState.js.map +1 -1
- package/lib/stores/query/DSLDataSpace_LegendQueryRouter.d.ts +32 -0
- package/lib/stores/query/DSLDataSpace_LegendQueryRouter.d.ts.map +1 -0
- package/lib/stores/query/DSLDataSpace_LegendQueryRouter.js +34 -0
- package/lib/stores/query/DSLDataSpace_LegendQueryRouter.js.map +1 -0
- package/lib/stores/query/DataSpaceQueryEditorStore.d.ts +31 -0
- package/lib/stores/query/DataSpaceQueryEditorStore.d.ts.map +1 -0
- package/lib/stores/query/DataSpaceQueryEditorStore.js +87 -0
- package/lib/stores/query/DataSpaceQueryEditorStore.js.map +1 -0
- package/lib/stores/query/DataSpaceQuerySetupState.d.ts +3 -4
- package/lib/stores/query/DataSpaceQuerySetupState.d.ts.map +1 -1
- package/lib/stores/query/DataSpaceQuerySetupState.js +34 -44
- package/lib/stores/query/DataSpaceQuerySetupState.js.map +1 -1
- package/package.json +16 -15
- package/src/DSLDataSpace_Const.ts +20 -0
- package/src/components/DataSpaceViewer.tsx +56 -66
- package/src/components/query/{DSLDataSpace_LegendQueryPlugin.tsx → DSLDataSpace_LegendQueryApplicationPlugin.tsx} +39 -2
- package/src/components/query/DataSpaceQueryEditor.tsx +106 -0
- package/src/components/query/DataSpaceQuerySetup.tsx +23 -32
- package/src/components/studio/{DSLDataSpace_LegendStudioPlugin.tsx → DSLDataSpace_LegendStudioApplicationPlugin.tsx} +8 -8
- package/src/graphManager/DSLDataSpace_PureGraphManagerPlugin.ts +6 -0
- package/src/graphManager/action/analytics/DataSpaceAnalysis.ts +64 -0
- package/src/graphManager/protocol/DSLDataSpace_PureGraphManagerExtension.ts +42 -0
- package/src/graphManager/protocol/DSLDataSpace_PureGraphManagerExtensionBuilder.ts +27 -0
- package/src/graphManager/protocol/v1/V1_DSLDataSpace_PureGraphManagerExtension.ts +228 -0
- package/src/graphManager/protocol/v1/engine/analytics/V1_DataSpaceAnalysis.ts +117 -0
- package/src/index.ts +4 -2
- package/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.ts +1 -1
- package/src/stores/DataSpaceViewerState.ts +23 -54
- package/src/stores/query/DSLDataSpace_LegendQueryRouter.ts +69 -0
- package/src/stores/query/DataSpaceQueryEditorStore.ts +141 -0
- package/src/stores/query/DataSpaceQuerySetupState.ts +65 -73
- package/tsconfig.json +11 -2
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.d.ts.map +0 -1
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.js.map +0 -1
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.d.ts.map +0 -1
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.js.map +0 -1
package/lib/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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,iCACE,eACA,iBACA,aACA,gBACA,YACA,WACA,sCACA,cACA,mBACA,iCACA,8BACA,iBAEA,wCCtDF,aACA,mBACA,uBDuDI,gBACA,iCAIJ,6BC9DA,aACA,mBACA,uBD+DE,0BACA,oBAGF,0BCrEA,aACA,mBACA,uBDsEE,WACA,YAGF,kCACE,WACA,sCACA,YACA,kBACA,kBAEA,yCACE,YACA,gBACA,kBAGF,wCCzFF,aACA,mBACA,uBD0FI,YACA,WACA,iCACA,eAGF,4CACE,eAGF,8CACE,kCACA,eAGF,gDACE,kCAIJ,gCACE,YACA,wBACA,8CACA,cAEA,yCACE,YACA,WAIJ,8BACE,aACA,sBACA,YACA,WAEA,sCC5HF,aACA,mBD8HI,cACA,WAGF,sCCnIF,aACA,mBDqII,YACA,sCACA,kCACA,gBACA,iBACA,eAEA,4CCnJJ,aACA,mBACA,uBDoJM,YAEA,gDACE,iBAIJ,4CACE,kBACA,iBACA,gBAIJ,gDACE,WAGF,uCACE,2BACA,WAGF,wCACE,WAEA,mDACE,
|
|
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,iCACE,eACA,iBACA,aACA,gBACA,YACA,WACA,sCACA,cACA,mBACA,iCACA,8BACA,iBAEA,wCCtDF,aACA,mBACA,uBDuDI,gBACA,iCAIJ,6BC9DA,aACA,mBACA,uBD+DE,0BACA,oBAGF,0BCrEA,aACA,mBACA,uBDsEE,WACA,YAGF,kCACE,WACA,sCACA,YACA,kBACA,kBAEA,yCACE,YACA,gBACA,kBAGF,wCCzFF,aACA,mBACA,uBD0FI,YACA,WACA,iCACA,eAGF,4CACE,eAGF,8CACE,kCACA,eAGF,gDACE,kCAIJ,gCACE,YACA,wBACA,8CACA,cAEA,yCACE,YACA,WAIJ,8BACE,aACA,sBACA,YACA,WAEA,sCC5HF,aACA,mBD8HI,cACA,WAGF,sCCnIF,aACA,mBDqII,YACA,sCACA,kCACA,gBACA,iBACA,eAEA,4CCnJJ,aACA,mBACA,uBDoJM,YAEA,gDACE,iBAIJ,4CACE,kBACA,iBACA,gBAIJ,gDACE,WAGF,uCACE,2BACA,WAGF,wCACE,WAEA,mDACE,cAKN,+BACE,aAEA,6CACE,kCAGF,sCCvLF,aACA,mBDyLI,cACA,WAEA,4CCnMJ,aACA,mBACA,uBDoMM,cACA,aACA,8BACA,sCAEA,gDACE,iBAIJ,+CC1MJ,aACA,mBD4MM,cACA,0BACA,8BACA,8CACA,kCACA,eACA,sCACA,kDACA,iBAEA,yDACE,WAEA,oEACE,cAGF,iEC9NR,aACA,mBDiOQ,sEClOR,aACA,mBDoOU,iCACA,cACA,gBACA,kBACA,oBACA,iBACA,kCAIJ,qDACE,oCAKN,4CACE,iBACA,oBACA,eACA,iBACA,aACA,YACA,WACA,sCACA,cACA,mBACA,iCACA,8BACA,iBAEA,mDC1QJ,aACA,mBACA,uBD2QM,gBACA,iCAIJ,wCACE,oBAIJ,0BACE,aAEA,mCACE,eACA,oBAGF,0CCzRF,aACA,mBD2RI,gBACA,iCACA,mBACA,iBACA,eAGF,0CCnSF,aACA,mBDqSI,cACA,eACA,WAGF,6CCjSF,mBACA,uBACA,gBACA,sBACA,gBDgSI,YACA,YACA,8BACA,eACA,mBACA,mCACA,kCACA,gBAGF,+CC9SF,mBACA,uBACA,gBACA,sBACA,gBD6SI,YACA,yBACA,8BACA,eACA,mBACA,sCACA,kCAGF,uCCpUF,aACA,mBDsUI,YACA,oBACA,eACA,mBACA,mCACA,kCACA,gBAGF,gDCtVF,aACA,mBACA,uBDuVI,YACA,WACA,iCACA,gBACA,+CAIJ,kCACE,aAIA,0CChWF,aACA,mBDkWI,cACA,WAEA,gDC5WJ,aACA,mBACA,uBD6WM,cACA,aACA,8BACA,sCAEA,oDACE,iBACA,kCAIJ,mDCpXJ,aACA,mBDsXM,cACA,0BACA,8BACA,8CACA,kCACA,eACA,oCACA,sCACA,kDACA,iBE5YR,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,10 +14,12 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
export * from './DSLDataSpace_Extension.js';
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
17
|
+
export { DSLDataSpace_LegendStudioApplicationPlugin } from './components/studio/DSLDataSpace_LegendStudioApplicationPlugin.js';
|
|
18
|
+
export { DSLDataSpace_LegendQueryApplicationPlugin } from './components/query/DSLDataSpace_LegendQueryApplicationPlugin.js';
|
|
19
19
|
export { DataSpaceViewer } from './components/DataSpaceViewer.js';
|
|
20
20
|
export { DATA_SPACE_ELEMENT_CLASSIFIER_PATH, extractDataSpaceTaxonomyNodes, } from './models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js';
|
|
21
21
|
export { DataSpaceViewerState } from './stores/DataSpaceViewerState.js';
|
|
22
22
|
export * from './graphManager/DSLDataSpace_GraphManagerHelper.js';
|
|
23
|
+
export { getDSLDataSpaceGraphManagerExtension } from './graphManager/protocol/DSLDataSpace_PureGraphManagerExtension.js';
|
|
24
|
+
export { DataSpaceAnalysisResult } from './graphManager/action/analytics/DataSpaceAnalysis.js';
|
|
23
25
|
//# 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,6BAA6B,CAAC;AAC5C,OAAO,EAAE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EAAE,0CAA0C,EAAE,MAAM,mEAAmE,CAAC;AAC/H,OAAO,EAAE,yCAAyC,EAAE,MAAM,iEAAiE,CAAC;AAE5H,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE,OAAO,EACL,kCAAkC,EAClC,6BAA6B,GAC9B,MAAM,qEAAqE,CAAC;AAE7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE,cAAc,mDAAmD,CAAC;AAClE,OAAO,EAAE,oCAAoC,EAAE,MAAM,mEAAmE,CAAC;AACzH,OAAO,EAAE,uBAAuB,EAAE,MAAM,sDAAsD,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -14,10 +14,12 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
export * from './DSLDataSpace_Extension.js';
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
17
|
+
export { DSLDataSpace_LegendStudioApplicationPlugin } from './components/studio/DSLDataSpace_LegendStudioApplicationPlugin.js';
|
|
18
|
+
export { DSLDataSpace_LegendQueryApplicationPlugin } from './components/query/DSLDataSpace_LegendQueryApplicationPlugin.js';
|
|
19
19
|
export { DataSpaceViewer } from './components/DataSpaceViewer.js';
|
|
20
20
|
export { DATA_SPACE_ELEMENT_CLASSIFIER_PATH, extractDataSpaceTaxonomyNodes, } from './models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js';
|
|
21
21
|
export { DataSpaceViewerState } from './stores/DataSpaceViewerState.js';
|
|
22
22
|
export * from './graphManager/DSLDataSpace_GraphManagerHelper.js';
|
|
23
|
+
export { getDSLDataSpaceGraphManagerExtension } from './graphManager/protocol/DSLDataSpace_PureGraphManagerExtension.js';
|
|
24
|
+
export { DataSpaceAnalysisResult } from './graphManager/action/analytics/DataSpaceAnalysis.js';
|
|
23
25
|
//# 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,6BAA6B,CAAC;AAC5C,OAAO,EAAE
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EAAE,0CAA0C,EAAE,MAAM,mEAAmE,CAAC;AAC/H,OAAO,EAAE,yCAAyC,EAAE,MAAM,iEAAiE,CAAC;AAE5H,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE,OAAO,EACL,kCAAkC,EAClC,6BAA6B,GAC9B,MAAM,qEAAqE,CAAC;AAE7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE,cAAc,mDAAmD,CAAC;AAClE,OAAO,EAAE,oCAAoC,EAAE,MAAM,mEAAmE,CAAC;AACzH,OAAO,EAAE,uBAAuB,EAAE,MAAM,sDAAsD,CAAC"}
|
package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.d.ts
CHANGED
|
@@ -13,8 +13,10 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
16
|
+
import { type PlainObject } from '@finos/legend-shared';
|
|
17
|
+
import { type V1_DataSpaceSupportInfo, V1_DataSpace } from '../../model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.js';
|
|
17
18
|
export declare const V1_DATA_SPACE_ELEMENT_PROTOCOL_TYPE = "dataSpace";
|
|
18
19
|
export declare const V1_DATA_SPACE_SUPPORT_EMAIL_TYPE = "email";
|
|
20
|
+
export declare const V1_deserializeSupportInfo: (json: PlainObject<V1_DataSpaceSupportInfo> | undefined) => V1_DataSpaceSupportInfo | undefined;
|
|
19
21
|
export declare const V1_dataSpaceModelSchema: import("serializr").ModelSchema<V1_DataSpace>;
|
|
20
22
|
//# 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;
|
|
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;AAkBH,OAAO,EACL,KAAK,WAAW,EAOjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,uBAAuB,EAC5B,YAAY,EAGb,MAAM,wEAAwE,CAAC;AAEhF,eAAO,MAAM,mCAAmC,cAAc,CAAC;AAC/D,eAAO,MAAM,gCAAgC,UAAU,CAAC;AA+BxD,eAAO,MAAM,yBAAyB,SAC9B,YAAY,uBAAuB,CAAC,GAAG,SAAS,KACrD,uBAAuB,GAAG,SAa5B,CAAC;AAEF,eAAO,MAAM,uBAAuB,+CA8DlC,CAAC"}
|
package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.js
CHANGED
|
@@ -38,7 +38,7 @@ const V1_serializeSupportInfo = (protocol) => {
|
|
|
38
38
|
}
|
|
39
39
|
throw new UnsupportedOperationError(`Can't serialize support info`, protocol);
|
|
40
40
|
};
|
|
41
|
-
const V1_deserializeSupportInfo = (json) => {
|
|
41
|
+
export const V1_deserializeSupportInfo = (json) => {
|
|
42
42
|
if (!json) {
|
|
43
43
|
return undefined;
|
|
44
44
|
}
|
|
@@ -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;AACnB,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,8CAA8C,GAC/C,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,gBAAgB,EAChB,cAAc,EACd,yBAAyB,EACzB,wBAAwB,EACxB,gBAAgB,EAChB,cAAc,GACf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,YAAY,EACZ,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,wEAAwE,CAAC;AAEhF,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,8CAA8C,CAC/C;IACD,WAAW,EAAE,QAAQ,CAAC,SAAS,EAAE,CAAC;IAClC,OAAO,EAAE,gBAAgB,CAAC,8CAA8C,CAAC;IACzE,IAAI,EAAE,SAAS,EAAE;CAClB,CACF,CAAC;AAEF,MAAM,wBAAwB,GAAG,iBAAiB,CAAC,wBAAwB,EAAE;IAC3E,KAAK,EAAE,wBAAwB,CAAC,gCAAgC,CAAC;IACjE,OAAO,EAAE,SAAS,EAAE;CACrB,CAAC,CAAC;AAEH,MAAM,uBAAuB,GAAG,CAC9B,QAA6C,EACO,EAAE;IACtD,IAAI,CAAC,QAAQ,EAAE;QACb,OAAO,IAAI,CAAC;KACb;IACD,IAAI,QAAQ,YAAY,wBAAwB,EAAE;QAChD,OAAO,SAAS,CAAC,wBAAwB,EAAE,QAAQ,CAAC,CAAC;KACtD;IACD,MAAM,IAAI,yBAAyB,CAAC,8BAA8B,EAAE,QAAQ,CAAC,CAAC;AAChF,CAAC,CAAC;AAEF,MAAM,yBAAyB,GAAG,
|
|
1
|
+
{"version":3,"file":"V1_DSLDataSpace_ProtocolHelper.js","sourceRoot":"","sources":["../../../../../../../src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,MAAM,EACN,WAAW,EACX,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,SAAS,EACT,SAAS,EACT,IAAI,GACL,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,sBAAsB,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,CAAC,EAAE;QACtE,WAAW,EAAE,KAAK;KACnB,CAAC,CACL;IACD,WAAW,EAAE,MAAM,CACjB,CAAC,GAAG,EAAE,EAAE,CAAC,uBAAuB,CAAC,GAAG,CAAC,EACrC,CAAC,GAAG,EAAE,EAAE,CAAC,yBAAyB,CAAC,GAAG,CAAC,CACxC;IACD,YAAY,EAAE,MAAM,CAClB,CAAC,MAAM,EAAE,EAAE,CACT,cAAc,CACZ,MAAM,EACN,CAAC,KAAK,EAAE,EAAE,CAAC,SAAS,CAAC,oBAAoB,EAAE,KAAK,CAAC,EACjD;QACE,WAAW,EAAE,IAAI;QACjB,gCAAgC,EAAE,IAAI;KACvC,CACF,EACH,CAAC,MAAM,EAAE,EAAE,CACT,gBAAgB,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,oBAAoB,EAAE,CAAC,CAAC,EAAE;QACpE,WAAW,EAAE,KAAK;KACnB,CAAC,CACL;CACF,CAAC,CAAC"}
|
package/lib/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-extension-dsl-data-space",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Legend extension for Data Space DSL",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -58,17 +58,18 @@
|
|
|
58
58
|
"react": "18.2.0",
|
|
59
59
|
"react-dom": "18.2.0",
|
|
60
60
|
"react-resize-detector": "7.1.2",
|
|
61
|
+
"react-router": "5.3.3",
|
|
61
62
|
"serializr": "2.0.5"
|
|
62
63
|
},
|
|
63
64
|
"devDependencies": {
|
|
64
65
|
"@finos/legend-dev-utils": "workspace:*",
|
|
65
|
-
"@jest/globals": "28.1.
|
|
66
|
+
"@jest/globals": "28.1.3",
|
|
66
67
|
"cross-env": "7.0.3",
|
|
67
|
-
"eslint": "8.
|
|
68
|
-
"jest": "28.1.
|
|
68
|
+
"eslint": "8.20.0",
|
|
69
|
+
"jest": "28.1.3",
|
|
69
70
|
"npm-run-all": "4.1.5",
|
|
70
71
|
"rimraf": "3.0.2",
|
|
71
|
-
"sass": "1.
|
|
72
|
+
"sass": "1.54.0",
|
|
72
73
|
"typescript": "4.7.4"
|
|
73
74
|
},
|
|
74
75
|
"peerDependencies": {
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { type ClassView, type DiagramRenderer, Diagram } from '@finos/legend-extension-dsl-diagram';
|
|
17
|
-
import type {
|
|
18
|
-
import type {
|
|
16
|
+
import { type ClassView, type DiagramRenderer, type Diagram } from '@finos/legend-extension-dsl-diagram';
|
|
17
|
+
import type { PackageableRuntime } from '@finos/legend-graph';
|
|
18
|
+
import type { DataSpaceAnalysisResult, DataSpaceExecutionContextAnalysisResult } from '../graphManager/action/analytics/DataSpaceAnalysis.js';
|
|
19
19
|
export declare enum DATA_SPACE_VIEWER_ACTIVITY_MODE {
|
|
20
20
|
MODELS_OVERVIEW = "MODELS_OVERVIEW",
|
|
21
21
|
EXECUTION = "EXECUTION",
|
|
@@ -26,32 +26,28 @@ export declare enum DATA_SPACE_VIEWER_ACTIVITY_MODE {
|
|
|
26
26
|
SUPPORT = "SUPPORT"
|
|
27
27
|
}
|
|
28
28
|
export declare class DataSpaceViewerState {
|
|
29
|
-
graphManagerState: GraphManagerState;
|
|
30
29
|
groupId: string;
|
|
31
30
|
artifactId: string;
|
|
32
31
|
versionId: string;
|
|
33
|
-
|
|
32
|
+
dataSpaceAnalysisResult: DataSpaceAnalysisResult;
|
|
34
33
|
_renderer?: DiagramRenderer | undefined;
|
|
35
34
|
currentDiagram?: Diagram | undefined;
|
|
36
35
|
currentActivity: DATA_SPACE_VIEWER_ACTIVITY_MODE;
|
|
37
|
-
currentExecutionContext:
|
|
36
|
+
currentExecutionContext: DataSpaceExecutionContextAnalysisResult;
|
|
38
37
|
currentRuntime: PackageableRuntime;
|
|
39
38
|
viewProject?: ((groupId: string, artifactId: string, versionId: string, entityPath: string | undefined) => void) | undefined;
|
|
40
39
|
onDiagramClassDoubleClick?: ((classView: ClassView) => void) | undefined;
|
|
41
|
-
constructor(
|
|
40
|
+
constructor(groupId: string, artifactId: string, versionId: string, dataSpaceAnalysisResult: DataSpaceAnalysisResult, options?: {
|
|
42
41
|
viewProject?: (groupId: string, artifactId: string, versionId: string, entityPath: string | undefined) => void;
|
|
43
42
|
onDiagramClassDoubleClick?: (classView: ClassView) => void;
|
|
44
43
|
});
|
|
45
44
|
get renderer(): DiagramRenderer;
|
|
46
45
|
get isDiagramRendererInitialized(): boolean;
|
|
47
|
-
get featuredDiagrams(): Diagram[];
|
|
48
|
-
get diagrams(): Diagram[];
|
|
49
|
-
get runtimes(): PackageableRuntime[];
|
|
50
46
|
get diagramCursorClass(): string;
|
|
51
47
|
setRenderer(val: DiagramRenderer): void;
|
|
52
48
|
setCurrentDiagram(val: Diagram): void;
|
|
53
49
|
setCurrentActivity(val: DATA_SPACE_VIEWER_ACTIVITY_MODE): void;
|
|
54
|
-
setCurrentExecutionContext(val:
|
|
50
|
+
setCurrentExecutionContext(val: DataSpaceExecutionContextAnalysisResult): void;
|
|
55
51
|
setCurrentRuntime(val: PackageableRuntime): void;
|
|
56
52
|
setupRenderer(): void;
|
|
57
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceViewerState.d.ts","sourceRoot":"","sources":["../../src/stores/DataSpaceViewerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,OAAO,
|
|
1
|
+
{"version":3,"file":"DataSpaceViewerState.d.ts","sourceRoot":"","sources":["../../src/stores/DataSpaceViewerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,SAAS,EACd,KAAK,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AC,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,IAAI,CAAC;KAC5D;IA8BH,IAAI,QAAQ,IAAI,eAAe,CAK9B;IAED,IAAI,4BAA4B,IAAI,OAAO,CAE1C;IAMD,IAAI,kBAAkB,IAAI,MAAM,CAiB/B;IAED,WAAW,CAAC,GAAG,EAAE,eAAe,GAAG,IAAI;IAIvC,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAIrC,kBAAkB,CAAC,GAAG,EAAE,+BAA+B,GAAG,IAAI;IAI9D,0BAA0B,CACxB,GAAG,EAAE,uCAAuC,GAC3C,IAAI;IAKP,iBAAiB,CAAC,GAAG,EAAE,kBAAkB,GAAG,IAAI;IAIhD,aAAa,IAAI,IAAI;CAKtB"}
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
17
|
-
import { guaranteeNonNullable } from '@finos/legend-shared';
|
|
16
|
+
import { DIAGRAM_INTERACTION_MODE, } from '@finos/legend-extension-dsl-diagram';
|
|
17
|
+
import { getNullableFirstElement, guaranteeNonNullable, } from '@finos/legend-shared';
|
|
18
18
|
import { action, computed, makeObservable, observable } from 'mobx';
|
|
19
19
|
export var DATA_SPACE_VIEWER_ACTIVITY_MODE;
|
|
20
20
|
(function (DATA_SPACE_VIEWER_ACTIVITY_MODE) {
|
|
@@ -27,11 +27,10 @@ export var DATA_SPACE_VIEWER_ACTIVITY_MODE;
|
|
|
27
27
|
DATA_SPACE_VIEWER_ACTIVITY_MODE["SUPPORT"] = "SUPPORT";
|
|
28
28
|
})(DATA_SPACE_VIEWER_ACTIVITY_MODE = DATA_SPACE_VIEWER_ACTIVITY_MODE || (DATA_SPACE_VIEWER_ACTIVITY_MODE = {}));
|
|
29
29
|
export class DataSpaceViewerState {
|
|
30
|
-
graphManagerState;
|
|
31
30
|
groupId;
|
|
32
31
|
artifactId;
|
|
33
32
|
versionId;
|
|
34
|
-
|
|
33
|
+
dataSpaceAnalysisResult;
|
|
35
34
|
_renderer;
|
|
36
35
|
currentDiagram;
|
|
37
36
|
currentActivity = DATA_SPACE_VIEWER_ACTIVITY_MODE.MODELS_OVERVIEW;
|
|
@@ -39,7 +38,7 @@ export class DataSpaceViewerState {
|
|
|
39
38
|
currentRuntime;
|
|
40
39
|
viewProject;
|
|
41
40
|
onDiagramClassDoubleClick;
|
|
42
|
-
constructor(
|
|
41
|
+
constructor(groupId, artifactId, versionId, dataSpaceAnalysisResult, options) {
|
|
43
42
|
makeObservable(this, {
|
|
44
43
|
_renderer: observable,
|
|
45
44
|
currentDiagram: observable,
|
|
@@ -53,20 +52,14 @@ export class DataSpaceViewerState {
|
|
|
53
52
|
setCurrentExecutionContext: action,
|
|
54
53
|
setCurrentRuntime: action,
|
|
55
54
|
});
|
|
56
|
-
this.
|
|
57
|
-
this.dataSpace = dataSpace;
|
|
55
|
+
this.dataSpaceAnalysisResult = dataSpaceAnalysisResult;
|
|
58
56
|
this.groupId = groupId;
|
|
59
57
|
this.artifactId = artifactId;
|
|
60
58
|
this.versionId = versionId;
|
|
61
|
-
this.currentExecutionContext =
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
this.currentDiagram = this.
|
|
65
|
-
? this.dataSpace
|
|
66
|
-
.featuredDiagrams[0].value
|
|
67
|
-
: this.diagrams.length
|
|
68
|
-
? this.diagrams[0]
|
|
69
|
-
: undefined;
|
|
59
|
+
this.currentExecutionContext =
|
|
60
|
+
dataSpaceAnalysisResult.defaultExecutionContext;
|
|
61
|
+
this.currentRuntime = this.currentExecutionContext.defaultRuntime;
|
|
62
|
+
this.currentDiagram = getNullableFirstElement(this.dataSpaceAnalysisResult.featuredDiagrams);
|
|
70
63
|
this.viewProject = options?.viewProject;
|
|
71
64
|
this.onDiagramClassDoubleClick = options?.onDiagramClassDoubleClick;
|
|
72
65
|
}
|
|
@@ -76,21 +69,6 @@ export class DataSpaceViewerState {
|
|
|
76
69
|
get isDiagramRendererInitialized() {
|
|
77
70
|
return Boolean(this._renderer);
|
|
78
71
|
}
|
|
79
|
-
get featuredDiagrams() {
|
|
80
|
-
return this.dataSpace.featuredDiagrams?.map((ref) => ref.value) ?? [];
|
|
81
|
-
}
|
|
82
|
-
get diagrams() {
|
|
83
|
-
return this.graphManagerState.graph
|
|
84
|
-
.getExtensionElements(Diagram)
|
|
85
|
-
.concat(this.graphManagerState.graph.dependencyManager.getExtensionElements(Diagram));
|
|
86
|
-
}
|
|
87
|
-
get runtimes() {
|
|
88
|
-
return this.graphManagerState.graph.ownRuntimes
|
|
89
|
-
.concat(this.graphManagerState.graph.dependencyManager.runtimes)
|
|
90
|
-
.filter((runtime) => runtime.runtimeValue.mappings
|
|
91
|
-
.map((mapping) => mapping.value)
|
|
92
|
-
.includes(this.currentExecutionContext.mapping.value));
|
|
93
|
-
}
|
|
94
72
|
// NOTE: we have tried to use React to control the cursor and
|
|
95
73
|
// could not overcome the jank/lag problem, so we settle with CSS-based approach
|
|
96
74
|
// See https://css-tricks.com/using-css-cursors/
|
|
@@ -124,7 +102,7 @@ export class DataSpaceViewerState {
|
|
|
124
102
|
}
|
|
125
103
|
setCurrentExecutionContext(val) {
|
|
126
104
|
this.currentExecutionContext = val;
|
|
127
|
-
this.currentRuntime = val.defaultRuntime
|
|
105
|
+
this.currentRuntime = val.defaultRuntime;
|
|
128
106
|
}
|
|
129
107
|
setCurrentRuntime(val) {
|
|
130
108
|
this.currentRuntime = val;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceViewerState.js","sourceRoot":"","sources":["../../src/stores/DataSpaceViewerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"DataSpaceViewerState.js","sourceRoot":"","sources":["../../src/stores/DataSpaceViewerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,wBAAwB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CAAC,cAAc,GAAG,GAAG,CAAC;IAC5B,CAAC;IAED,kBAAkB,CAAC,GAAoC;QACrD,IAAI,CAAC,eAAe,GAAG,GAAG,CAAC;IAC7B,CAAC;IAED,0BAA0B,CACxB,GAA4C;QAE5C,IAAI,CAAC,uBAAuB,GAAG,GAAG,CAAC;QACnC,IAAI,CAAC,cAAc,GAAG,GAAG,CAAC,cAAc,CAAC;IAC3C,CAAC;IAED,iBAAiB,CAAC,GAAuB;QACvC,IAAI,CAAC,cAAc,GAAG,GAAG,CAAC;IAC5B,CAAC;IAED,aAAa;QACX,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAClC,IAAI,CAAC,QAAQ,CAAC,sBAAsB,GAAG,CAAC,SAAoB,EAAQ,EAAE,CACpE,IAAI,CAAC,yBAAyB,EAAE,CAAC,SAAS,CAAC,CAAC;IAChD,CAAC;CACF"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 { LEGEND_QUERY_PATH_PARAM_TOKEN, LEGEND_QUERY_QUERY_PARAM_TOKEN } from '@finos/legend-query';
|
|
17
|
+
export declare enum DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN {
|
|
18
|
+
DATA_SPACE_PATH = "dataSpacePath",
|
|
19
|
+
EXECUTION_CONTEXT = "executionContext"
|
|
20
|
+
}
|
|
21
|
+
export interface DataSpaceQueryEditorPathParams {
|
|
22
|
+
[LEGEND_QUERY_PATH_PARAM_TOKEN.GAV]: string;
|
|
23
|
+
[DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN.DATA_SPACE_PATH]: string;
|
|
24
|
+
[DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN.EXECUTION_CONTEXT]: string;
|
|
25
|
+
[LEGEND_QUERY_PATH_PARAM_TOKEN.RUNTIME_PATH]?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface DataSpaceQueryEditorQueryParams {
|
|
28
|
+
[LEGEND_QUERY_QUERY_PARAM_TOKEN.CLASS_PATH]?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare const DATA_SPACE_QUERY_EDITOR_ROUTE_PATTERN: string;
|
|
31
|
+
export declare const generateDataSpaceQueryEditorRoute: (groupId: string, artifactId: string, versionId: string, dataSpacePath: string, executionContextKey: string, runtimePath?: string | undefined, classPath?: string | undefined) => string;
|
|
32
|
+
//# sourceMappingURL=DSLDataSpace_LegendQueryRouter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSLDataSpace_LegendQueryRouter.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DSLDataSpace_LegendQueryRouter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,6BAA6B,EAC7B,8BAA8B,EAC/B,MAAM,qBAAqB,CAAC;AAI7B,oBAAY,wCAAwC;IAClD,eAAe,kBAAkB;IACjC,iBAAiB,qBAAqB;CACvC;AAED,MAAM,WAAW,8BAA8B;IAC7C,CAAC,6BAA6B,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAC5C,CAAC,wCAAwC,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IACnE,CAAC,wCAAwC,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACrE,CAAC,6BAA6B,CAAC,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC;CACvD;AAED,MAAM,WAAW,+BAA+B;IAC9C,CAAC,8BAA8B,CAAC,UAAU,CAAC,CAAC,EAAE,MAAM,CAAC;CACtD;AAED,eAAO,MAAM,qCAAqC,QAAiO,CAAC;AAEpR,eAAO,MAAM,iCAAiC,YACnC,MAAM,cACH,MAAM,aACP,MAAM,iBACF,MAAM,uBACA,MAAM,gBACb,MAAM,GAAG,SAAS,cACpB,MAAM,GAAG,SAAS,KAC7B,MAkBC,CAAC"}
|
|
@@ -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 { generateExtensionUrlPattern } from '@finos/legend-application';
|
|
17
|
+
import { LEGEND_QUERY_PATH_PARAM_TOKEN, LEGEND_QUERY_QUERY_PARAM_TOKEN, } from '@finos/legend-query';
|
|
18
|
+
import { generateGAVCoordinates } from '@finos/legend-server-depot';
|
|
19
|
+
import { generatePath } from 'react-router';
|
|
20
|
+
export var DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN;
|
|
21
|
+
(function (DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN) {
|
|
22
|
+
DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN["DATA_SPACE_PATH"] = "dataSpacePath";
|
|
23
|
+
DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN["EXECUTION_CONTEXT"] = "executionContext";
|
|
24
|
+
})(DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN = DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN || (DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN = {}));
|
|
25
|
+
export const DATA_SPACE_QUERY_EDITOR_ROUTE_PATTERN = `/dataspace/:${LEGEND_QUERY_PATH_PARAM_TOKEN.GAV}/:${DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN.DATA_SPACE_PATH}/:${DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN.EXECUTION_CONTEXT}/:${LEGEND_QUERY_PATH_PARAM_TOKEN.RUNTIME_PATH}?`;
|
|
26
|
+
export const generateDataSpaceQueryEditorRoute = (groupId, artifactId, versionId, dataSpacePath, executionContextKey, runtimePath, classPath) => `${generatePath(generateExtensionUrlPattern(DATA_SPACE_QUERY_EDITOR_ROUTE_PATTERN), {
|
|
27
|
+
[LEGEND_QUERY_PATH_PARAM_TOKEN.GAV]: generateGAVCoordinates(groupId, artifactId, versionId),
|
|
28
|
+
[DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN.DATA_SPACE_PATH]: dataSpacePath,
|
|
29
|
+
[DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN.EXECUTION_CONTEXT]: executionContextKey,
|
|
30
|
+
[LEGEND_QUERY_PATH_PARAM_TOKEN.RUNTIME_PATH]: runtimePath,
|
|
31
|
+
})}${classPath
|
|
32
|
+
? `?${LEGEND_QUERY_QUERY_PARAM_TOKEN.CLASS_PATH}=${classPath}`
|
|
33
|
+
: ''}`;
|
|
34
|
+
//# sourceMappingURL=DSLDataSpace_LegendQueryRouter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSLDataSpace_LegendQueryRou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31 @@
|
|
|
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 { QueryEditorStore, type QueryExportConfiguration, type LegendQueryPluginManager, type LegendQueryApplicationStore } from '@finos/legend-query';
|
|
17
|
+
import type { DepotServerClient, ProjectGAVCoordinates } from '@finos/legend-server-depot';
|
|
18
|
+
export declare class DataSpaceQueryEditorStore extends QueryEditorStore {
|
|
19
|
+
groupId: string;
|
|
20
|
+
artifactId: string;
|
|
21
|
+
versionId: string;
|
|
22
|
+
dataSpacePath: string;
|
|
23
|
+
executionContext: string;
|
|
24
|
+
runtimePath: string | undefined;
|
|
25
|
+
classPath: string | undefined;
|
|
26
|
+
constructor(applicationStore: LegendQueryApplicationStore, depotServerClient: DepotServerClient, pluginManager: LegendQueryPluginManager, groupId: string, artifactId: string, versionId: string, dataSpacePath: string, executionContext: string, runtimePath: string | undefined, executionKey: string | undefined);
|
|
27
|
+
getProjectInfo(): ProjectGAVCoordinates;
|
|
28
|
+
setUpBuilderState(): Promise<void>;
|
|
29
|
+
getExportConfiguration(): Promise<QueryExportConfiguration>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=DataSpaceQueryEditorStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceQueryEditorStore.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQueryEditorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,OAAO,EACL,gBAAgB,EAChB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EACjC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,4BAA4B,CAAC;AAkBpC,qBAAa,yBAA0B,SAAQ,gBAAgB;IAC7D,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;gBAG5B,gBAAgB,EAAE,2BAA2B,EAC7C,iBAAiB,EAAE,iBAAiB,EACpC,aAAa,EAAE,wBAAwB,EACvC,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,gBAAgB,EAAE,MAAM,EACxB,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,YAAY,EAAE,MAAM,GAAG,SAAS;IAalC,cAAc,IAAI,qBAAqB;IAQjC,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAoClC,sBAAsB,IAAI,OAAO,CAAC,wBAAwB,CAAC;CAgBlE"}
|
|
@@ -0,0 +1,87 @@
|
|
|
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 { extractElementNameFromPath, QueryTaggedValue, } from '@finos/legend-graph';
|
|
17
|
+
import { QueryEditorStore, } from '@finos/legend-query';
|
|
18
|
+
import { guaranteeNonNullable, uuid } from '@finos/legend-shared';
|
|
19
|
+
import { QUERY_PROFILE_PATH, QUERY_PROFILE_TAG_DATA_SPACE, } from '../../DSLDataSpace_Const.js';
|
|
20
|
+
import { getDataSpace } from '../../graphManager/DSLDataSpace_GraphManagerHelper.js';
|
|
21
|
+
const createQueryDataSpaceTaggedValue = (dataSpacePath) => {
|
|
22
|
+
const taggedValue = new QueryTaggedValue();
|
|
23
|
+
taggedValue.profile = QUERY_PROFILE_PATH;
|
|
24
|
+
taggedValue.tag = QUERY_PROFILE_TAG_DATA_SPACE;
|
|
25
|
+
taggedValue.value = dataSpacePath;
|
|
26
|
+
return taggedValue;
|
|
27
|
+
};
|
|
28
|
+
export class DataSpaceQueryEditorStore extends QueryEditorStore {
|
|
29
|
+
groupId;
|
|
30
|
+
artifactId;
|
|
31
|
+
versionId;
|
|
32
|
+
dataSpacePath;
|
|
33
|
+
executionContext;
|
|
34
|
+
runtimePath;
|
|
35
|
+
classPath;
|
|
36
|
+
constructor(applicationStore, depotServerClient, pluginManager, groupId, artifactId, versionId, dataSpacePath, executionContext, runtimePath, executionKey) {
|
|
37
|
+
super(applicationStore, depotServerClient, pluginManager);
|
|
38
|
+
this.groupId = groupId;
|
|
39
|
+
this.artifactId = artifactId;
|
|
40
|
+
this.versionId = versionId;
|
|
41
|
+
this.dataSpacePath = dataSpacePath;
|
|
42
|
+
this.executionContext = executionContext;
|
|
43
|
+
this.runtimePath = runtimePath;
|
|
44
|
+
this.classPath = executionKey;
|
|
45
|
+
}
|
|
46
|
+
getProjectInfo() {
|
|
47
|
+
return {
|
|
48
|
+
groupId: this.groupId,
|
|
49
|
+
artifactId: this.artifactId,
|
|
50
|
+
versionId: this.versionId,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
async setUpBuilderState() {
|
|
54
|
+
this.queryBuilderState.querySetupState.setMappingIsReadOnly(true);
|
|
55
|
+
this.queryBuilderState.querySetupState.setRuntimeIsReadOnly(true);
|
|
56
|
+
const dataSpace = getDataSpace(this.dataSpacePath, this.graphManagerState.graph);
|
|
57
|
+
const executionContext = guaranteeNonNullable(dataSpace.executionContexts.find((context) => context.name === this.executionContext), `Can't find execution context '${this.executionContext}'`);
|
|
58
|
+
this.queryBuilderState.querySetupState.setMapping(executionContext.mapping.value);
|
|
59
|
+
this.queryBuilderState.querySetupState.setRuntimeValue((this.runtimePath
|
|
60
|
+
? this.graphManagerState.graph.getRuntime(this.runtimePath)
|
|
61
|
+
: executionContext.defaultRuntime.value).runtimeValue);
|
|
62
|
+
if (this.classPath) {
|
|
63
|
+
this.queryBuilderState.querySetupState._class =
|
|
64
|
+
this.queryBuilderState.graphManagerState.graph.getClass(this.classPath);
|
|
65
|
+
this.queryBuilderState.querySetupState.setClassIsReadOnly(true);
|
|
66
|
+
}
|
|
67
|
+
// TODO?: should we set the class here automatically?
|
|
68
|
+
// initialize query builder state after setting up
|
|
69
|
+
this.queryBuilderState.resetQueryBuilder();
|
|
70
|
+
this.queryBuilderState.resetQuerySetup();
|
|
71
|
+
}
|
|
72
|
+
async getExportConfiguration() {
|
|
73
|
+
return {
|
|
74
|
+
defaultName: `New Query for ${extractElementNameFromPath(this.dataSpacePath)}[${this.executionContext}]`,
|
|
75
|
+
decorator: (query) => {
|
|
76
|
+
query.id = uuid();
|
|
77
|
+
query.groupId = this.groupId;
|
|
78
|
+
query.artifactId = this.artifactId;
|
|
79
|
+
query.versionId = this.versionId;
|
|
80
|
+
query.taggedValues = [
|
|
81
|
+
createQueryDataSpaceTaggedValue(this.dataSpacePath),
|
|
82
|
+
];
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=DataSpaceQueryEditorStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceQueryEditorStore.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQueryEditorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,0BAA0B,EAC1B,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,GAIjB,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EAAE,oBAAoB,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EACL,kBAAkB,EAClB,4BAA4B,GAC7B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,uDAAuD,CAAC;AAErF,MAAM,+BAA+B,GAAG,CACtC,aAAqB,EACH,EAAE;IACpB,MAAM,WAAW,GAAG,IAAI,gBAAgB,EAAE,CAAC;IAC3C,WAAW,CAAC,OAAO,GAAG,kBAAkB,CAAC;IACzC,WAAW,CAAC,GAAG,GAAG,4BAA4B,CAAC;IAC/C,WAAW,CAAC,KAAK,GAAG,aAAa,CAAC;IAClC,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC;AAEF,MAAM,OAAO,yBAA0B,SAAQ,gBAAgB;IAC7D,OAAO,CAAS;IAChB,UAAU,CAAS;IACnB,SAAS,CAAS;IAClB,aAAa,CAAS;IACtB,gBAAgB,CAAS;IACzB,WAAW,CAAqB;IAChC,SAAS,CAAqB;IAE9B,YACE,gBAA6C,EAC7C,iBAAoC,EACpC,aAAuC,EACvC,OAAe,EACf,UAAkB,EAClB,SAAiB,EACjB,aAAqB,EACrB,gBAAwB,EACxB,WAA+B,EAC/B,YAAgC;QAEhC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IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC;YAC3D,CAAC,CAAC,gBAAgB,CAAC,cAAc,CAAC,KAAK,CACxC,CAAC,YAAY,CACf,CAAC;QAEF,IAAI,IAAI,CAAC,SAAS,EAAE;YAClB,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,MAAM;gBAC3C,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC1E,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;SACjE;QACD,qDAAqD;QAErD,kDAAkD;QAClD,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,EAAE,CAAC;QAC3C,IAAI,CAAC,iBAAiB,CAAC,eAAe,EAAE,CAAC;IAC3C,CAAC;IAED,KAAK,CAAC,sBAAsB;QAC1B,OAAO;YACL,WAAW,EAAE,iBAAiB,0BAA0B,CACtD,IAAI,CAAC,aAAa,CACnB,IAAI,IAAI,CAAC,gBAAgB,GAAG;YAC7B,SAAS,EAAE,CAAC,KAAY,EAAQ,EAAE;gBAChC,KAAK,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC;gBAClB,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;gBAC7B,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;gBACnC,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;gBACjC,KAAK,CAAC,YAAY,GAAG;oBACnB,+BAA+B,CAAC,IAAI,CAAC,aAAa,CAAC;iBACpD,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
16
|
+
import type { Class } from '@finos/legend-graph';
|
|
17
17
|
import { type QuerySetupStore, QuerySetupState } from '@finos/legend-query';
|
|
18
18
|
import { type GeneratorFn, ActionState } from '@finos/legend-shared';
|
|
19
19
|
import { DataSpaceViewerState } from '../DataSpaceViewerState.js';
|
|
@@ -23,11 +23,10 @@ export interface DataSpaceContext {
|
|
|
23
23
|
versionId: string;
|
|
24
24
|
path: string;
|
|
25
25
|
}
|
|
26
|
-
export declare const createQueryDataSpaceTaggedValue: (dataSpacePath: string) => QueryTaggedValue;
|
|
27
26
|
export declare class DataSpaceQuerySetupState extends QuerySetupState {
|
|
28
27
|
dataSpaces: DataSpaceContext[];
|
|
29
28
|
loadDataSpacesState: ActionState;
|
|
30
|
-
|
|
29
|
+
loadDataSpaceState: ActionState;
|
|
31
30
|
currentDataSpace?: DataSpaceContext | undefined;
|
|
32
31
|
dataSpaceViewerState?: DataSpaceViewerState | undefined;
|
|
33
32
|
toGetSnapShot: boolean;
|
|
@@ -36,7 +35,7 @@ export declare class DataSpaceQuerySetupState extends QuerySetupState {
|
|
|
36
35
|
setDataSpaceViewerState(val: DataSpaceViewerState | undefined): void;
|
|
37
36
|
setToGetSnapShot(val: boolean): void;
|
|
38
37
|
loadDataSpaces(searchText: string): GeneratorFn<void>;
|
|
39
|
-
|
|
38
|
+
loadDataSpace(dataSpace: DataSpaceContext): GeneratorFn<void>;
|
|
40
39
|
proceedToCreateQuery(_class?: Class): GeneratorFn<void>;
|
|
41
40
|
}
|
|
42
41
|
//# sourceMappingURL=DataSpaceQuerySetupState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceQuerySetupState.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQuerySetupState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,
|
|
1
|
+
{"version":3,"file":"DataSpaceQuerySetupState.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQuerySetupState.ts"],"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