@finos/legend-extension-dsl-data-space 10.4.20 → 10.4.21

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/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-extension-dsl-data-space v10.4.20
1
+ /** @license @finos/legend-extension-dsl-data-space v10.4.21
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-extension-dsl-data-space",
3
- "version": "10.4.20",
3
+ "version": "10.4.21",
4
4
  "description": "Legend extension for Data Space DSL",
5
5
  "keywords": [
6
6
  "legend",
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { type GenericLegendApplicationStore } from '@finos/legend-application';
17
17
  import { type QueryBuilderConfig, type QuerySDLC, type QueryBuilderWorkflowState, type QueryBuilderActionConfig, QueryBuilderState, type QueryBuilderExtraFunctionAnalysisInfo } from '@finos/legend-query-builder';
18
- import { type Class, type GraphManagerState, type QueryExecutionContext, type Runtime, type Mapping } from '@finos/legend-graph';
18
+ import { type Class, type GraphManagerState, type QueryExecutionContext, type Runtime, type Mapping, type GraphData } from '@finos/legend-graph';
19
19
  import { type DepotServerClient } from '@finos/legend-server-depot';
20
20
  import { type GeneratorFn, ActionState } from '@finos/legend-shared';
21
21
  import { type DataSpaceExecutionContext, DataSpace } from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
@@ -84,6 +84,7 @@ export declare class DataSpaceQueryBuilderState extends QueryBuilderState {
84
84
  setShowRuntimeSelector(val: boolean): void;
85
85
  setIsLightGraphEnabled(val: boolean): void;
86
86
  buildFunctionAnalysisInfo(): QueryBuilderExtraFunctionAnalysisInfo | undefined;
87
+ getGraphData(): GraphData;
87
88
  intialize(): GeneratorFn<void>;
88
89
  }
89
90
  //# sourceMappingURL=DataSpaceQueryBuilderState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceQueryBuilderState.d.ts","sourceRoot":"","sources":["../../../src/stores/query-builder/DataSpaceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,iBAAiB,EACjB,KAAK,qCAAqC,EAC3C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,OAAO,EACZ,KAAK,OAAO,EAMb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,iBAAiB,EAIvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,KAAK,WAAW,EAChB,WAAW,EAGZ,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAEL,KAAK,yBAAyB,EAC9B,SAAS,EACV,MAAM,2FAA2F,CAAC;AAEnG,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,iCAAiC,EAEvC,MAAM,2DAA2D,CAAC;AACnE,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAiBnE,eAAO,MAAM,6BAA6B,cAC7B,SAAS,WACX,OAAO,qBACG,iBAAiB,sBAChB,0BAA0B,KAC7C,KAAK,EA2CP,CAAC;AAEF,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,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yBAAyB,EACnC,YAAY,EAAE,wBAAwB,EACtC,SAAS,EAAE,SAAS,EACpB,gBAAgB,EAAE,yBAAyB,EAC3C,mBAAmB,EAAE,OAAO,EAC5B,aAAa,EAAE,2BAA2B,GAAG,SAAS,EACtD,iBAAiB,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,EACxD,uBAAuB,CAAC,EAAE,uBAAuB,GAAG,SAAS,EAC7D,wBAAwB,CAAC,EACrB,CAAC,CAAC,GAAG,EAAE,yBAAyB,KAAK,IAAI,CAAC,GAC1C,SAAS,EACb,eAAe,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,EACtD,aAAa,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC,GAAG,SAAS,EAClD,MAAM,CAAC,EAAE,kBAAkB,GAAG,SAAS,EACvC,UAAU,CAAC,EAAE,SAAS,GAAG,SAAS;IAkCpC,IAAa,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAIlD;IAEQ,wBAAwB,IAAI,qBAAqB;IAO1D,0BAA0B,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI9C,mBAAmB,CAAC,GAAG,EAAE,yBAAyB,GAAG,IAAI;IAIzD,sBAAsB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI1C,sBAAsB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAIjC,yBAAyB,IAC9B,qCAAqC,GACrC,SAAS;IAwBJ,YAAY,IAAI,SAAS;IAYjC,SAAS,IAAI,WAAW,CAAC,IAAI,CAAC;CAYhC"}
@@ -15,8 +15,8 @@
15
15
  */
16
16
  import {} from '@finos/legend-application';
17
17
  import { QueryBuilderState, } from '@finos/legend-query-builder';
18
- import { getMappingCompatibleClasses, Package, QueryDataSpaceExecutionContext, elementBelongsToPackage, } from '@finos/legend-graph';
19
- import { DepotScope, SNAPSHOT_VERSION_ALIAS, } from '@finos/legend-server-depot';
18
+ import { getMappingCompatibleClasses, Package, QueryDataSpaceExecutionContext, elementBelongsToPackage, GraphDataWithOrigin, LegendSDLC, InMemoryGraphData, } from '@finos/legend-graph';
19
+ import { DepotScope, resolveVersion, SNAPSHOT_VERSION_ALIAS, } from '@finos/legend-server-depot';
20
20
  import { ActionState, assertErrorThrown, filterByType, } from '@finos/legend-shared';
21
21
  import { action, flow, makeObservable, observable } from 'mobx';
22
22
  import { renderDataSpaceQueryBuilderSetupPanelContent } from '../../components/query-builder/DataSpaceQueryBuilder.js';
@@ -270,6 +270,13 @@ export class DataSpaceQueryBuilderState extends QueryBuilderState {
270
270
  dependencyFunctionInfoMap,
271
271
  };
272
272
  }
273
+ getGraphData() {
274
+ if (this.dataSpaceRepo instanceof DataSpacesDepotRepository) {
275
+ const option = new LegendSDLC(this.dataSpaceRepo.project.groupId, this.dataSpaceRepo.project.artifactId, resolveVersion(this.dataSpaceRepo.project.versionId));
276
+ return new GraphDataWithOrigin(option);
277
+ }
278
+ return new InMemoryGraphData(this.graphManagerState.graph);
279
+ }
273
280
  *intialize() {
274
281
  this.displayedTemplateQueries =
275
282
  this.dataSpace.executables && this.dataSpace.executables.length > 0
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/query-builder/DataSpaceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAsC,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAKL,iBAAiB,GAElB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAOL,2BAA2B,EAC3B,OAAO,EACP,8BAA8B,EAC9B,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,UAAU,EACV,sBAAsB,GACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEL,WAAW,EACX,iBAAiB,EACjB,YAAY,GACb,MAAM,sBAAsB,CAAC;A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ACJ,CAAC;IAED,CAAC,SAAS;QACR,IAAI,CAAC,wBAAwB;YAC3B,IAAI,CAAC,SAAS,CAAC,WAAW,IAAI,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC;gBACjE,CAAC,CAAE,CAAC,MAAM,oDAAoD,CAC1D,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,SAAS,CAAC,WAAW,EAC1B,IAAI,CAAC,iBAAiB,CACvB,CAAyC;gBAC5C,CAAC,CAAC,IAAI,CAAC,uBAAuB,EAAE,WAAW,CAAC,MAAM,CAC9C,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,KAAK,SAAS,CAC9B,CAAC;IACV,CAAC;CACF"}
1
+ {"version":3,"file":"DataSpaceQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/query-builder/DataSpaceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAsC,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAKL,iBAAiB,GAElB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAQL,2BAA2B,EAC3B,OAAO,EACP,8BAA8B,EAC9B,uBAAuB,EACvB,mBAAmB,EACnB,UAAU,EACV,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,UAAU,EACV,cAAc,EACd,sBAAsB,GACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEL,WAAW,EACX,iBAAiB,EACjB,YAAY,GACb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAChE,OAAO,EAAE,4CAA4C,EAAE,MAAM,yDAAyD,CAAC;AACvH,OAAO,EAGL,SAAS,GACV,MAAM,2FAA2F,CAAC;AACnG,OAAO,EAAE,kCAAkC,EAAE,MAAM,gFAAgF,CAAC;AACpI,OAAO,EAAE,4BAA4B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AAC,SAAS,CAAC,CACrD,CAAC;YACF,OAAO,IAAI,mBAAmB,CAAC,MAAM,CAAC,CAAC;QACzC,CAAC;QACD,OAAO,IAAI,iBAAiB,CAAC,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAC7D,CAAC;IAED,CAAC,SAAS;QACR,IAAI,CAAC,wBAAwB;YAC3B,IAAI,CAAC,SAAS,CAAC,WAAW,IAAI,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC;gBACjE,CAAC,CAAE,CAAC,MAAM,oDAAoD,CAC1D,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,SAAS,CAAC,WAAW,EAC1B,IAAI,CAAC,iBAAiB,CACvB,CAAyC;gBAC5C,CAAC,CAAC,IAAI,CAAC,uBAAuB,EAAE,WAAW,CAAC,MAAM,CAC9C,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,KAAK,SAAS,CAC9B,CAAC;IACV,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-extension-dsl-data-space",
3
- "version": "10.4.20",
3
+ "version": "10.4.21",
4
4
  "description": "Legend extension for Data Space DSL",
5
5
  "keywords": [
6
6
  "legend",
@@ -45,11 +45,11 @@
45
45
  "dependencies": {
46
46
  "@finos/legend-application": "16.0.12",
47
47
  "@finos/legend-art": "7.1.69",
48
- "@finos/legend-code-editor": "2.0.25",
49
- "@finos/legend-extension-dsl-diagram": "8.1.44",
50
- "@finos/legend-graph": "31.10.59",
51
- "@finos/legend-lego": "2.0.27",
52
- "@finos/legend-query-builder": "4.15.28",
48
+ "@finos/legend-code-editor": "2.0.26",
49
+ "@finos/legend-extension-dsl-diagram": "8.1.45",
50
+ "@finos/legend-graph": "31.10.60",
51
+ "@finos/legend-lego": "2.0.28",
52
+ "@finos/legend-query-builder": "4.15.29",
53
53
  "@finos/legend-server-depot": "6.0.71",
54
54
  "@finos/legend-server-sdlc": "5.3.39",
55
55
  "@finos/legend-shared": "10.0.62",
@@ -30,15 +30,20 @@ import {
30
30
  type Runtime,
31
31
  type Mapping,
32
32
  type FunctionAnalysisInfo,
33
+ type GraphData,
33
34
  getMappingCompatibleClasses,
34
35
  Package,
35
36
  QueryDataSpaceExecutionContext,
36
37
  elementBelongsToPackage,
38
+ GraphDataWithOrigin,
39
+ LegendSDLC,
40
+ InMemoryGraphData,
37
41
  } from '@finos/legend-graph';
38
42
  import {
39
43
  type DepotServerClient,
40
44
  type StoredEntity,
41
45
  DepotScope,
46
+ resolveVersion,
42
47
  SNAPSHOT_VERSION_ALIAS,
43
48
  } from '@finos/legend-server-depot';
44
49
  import {
@@ -481,6 +486,18 @@ export class DataSpaceQueryBuilderState extends QueryBuilderState {
481
486
  };
482
487
  }
483
488
 
489
+ override getGraphData(): GraphData {
490
+ if (this.dataSpaceRepo instanceof DataSpacesDepotRepository) {
491
+ const option = new LegendSDLC(
492
+ this.dataSpaceRepo.project.groupId,
493
+ this.dataSpaceRepo.project.artifactId,
494
+ resolveVersion(this.dataSpaceRepo.project.versionId),
495
+ );
496
+ return new GraphDataWithOrigin(option);
497
+ }
498
+ return new InMemoryGraphData(this.graphManagerState.graph);
499
+ }
500
+
484
501
  *intialize(): GeneratorFn<void> {
485
502
  this.displayedTemplateQueries =
486
503
  this.dataSpace.executables && this.dataSpace.executables.length > 0