@finos/legend-extension-dsl-data-space 8.0.0 → 9.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.
Files changed (60) hide show
  1. package/lib/components/DataSpaceViewer.d.ts.map +1 -1
  2. package/lib/components/DataSpaceViewer.js +12 -5
  3. package/lib/components/DataSpaceViewer.js.map +1 -1
  4. package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.d.ts +2 -4
  5. package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.d.ts.map +1 -1
  6. package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.js +24 -35
  7. package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.js.map +1 -1
  8. package/lib/components/query/DataSpaceAdvancedSearchModal.d.ts +24 -0
  9. package/lib/components/query/DataSpaceAdvancedSearchModal.d.ts.map +1 -0
  10. package/lib/components/query/DataSpaceAdvancedSearchModal.js +82 -0
  11. package/lib/components/query/DataSpaceAdvancedSearchModal.js.map +1 -0
  12. package/lib/components/query/DataSpaceQueryBuilder.d.ts +7 -0
  13. package/lib/components/query/DataSpaceQueryBuilder.d.ts.map +1 -1
  14. package/lib/components/query/DataSpaceQueryBuilder.js +7 -5
  15. package/lib/components/query/DataSpaceQueryBuilder.js.map +1 -1
  16. package/lib/components/query/DataSpaceQuerySetup.d.ts +3 -4
  17. package/lib/components/query/DataSpaceQuerySetup.d.ts.map +1 -1
  18. package/lib/components/query/DataSpaceQuerySetup.js +45 -56
  19. package/lib/components/query/DataSpaceQuerySetup.js.map +1 -1
  20. package/lib/index.css +2 -2
  21. package/lib/index.css.map +1 -1
  22. package/lib/package.json +4 -4
  23. package/lib/stores/DataSpaceViewerState.d.ts +9 -5
  24. package/lib/stores/DataSpaceViewerState.d.ts.map +1 -1
  25. package/lib/stores/DataSpaceViewerState.js +8 -4
  26. package/lib/stores/DataSpaceViewerState.js.map +1 -1
  27. package/lib/stores/query/DSL_DataSpace_LegendQueryRouter.d.ts +5 -1
  28. package/lib/stores/query/DSL_DataSpace_LegendQueryRouter.d.ts.map +1 -1
  29. package/lib/stores/query/DSL_DataSpace_LegendQueryRouter.js +10 -5
  30. package/lib/stores/query/DSL_DataSpace_LegendQueryRouter.js.map +1 -1
  31. package/lib/stores/query/{DataSpaceQuerySetupState.d.ts → DataSpaceAdvancedSearchState.d.ts} +16 -7
  32. package/lib/stores/query/DataSpaceAdvancedSearchState.d.ts.map +1 -0
  33. package/lib/stores/query/{DataSpaceQuerySetupState.js → DataSpaceAdvancedSearchState.js} +28 -16
  34. package/lib/stores/query/DataSpaceAdvancedSearchState.js.map +1 -0
  35. package/lib/stores/query/DataSpaceQueryBuilderState.d.ts +9 -2
  36. package/lib/stores/query/DataSpaceQueryBuilderState.d.ts.map +1 -1
  37. package/lib/stores/query/DataSpaceQueryBuilderState.js +32 -2
  38. package/lib/stores/query/DataSpaceQueryBuilderState.js.map +1 -1
  39. package/lib/stores/query/DataSpaceQueryCreatorStore.d.ts.map +1 -1
  40. package/lib/stores/query/DataSpaceQueryCreatorStore.js +6 -6
  41. package/lib/stores/query/DataSpaceQueryCreatorStore.js.map +1 -1
  42. package/lib/stores/query/DataSpaceQuerySetupStore.d.ts +50 -0
  43. package/lib/stores/query/DataSpaceQuerySetupStore.d.ts.map +1 -0
  44. package/lib/stores/query/DataSpaceQuerySetupStore.js +112 -0
  45. package/lib/stores/query/DataSpaceQuerySetupStore.js.map +1 -0
  46. package/package.json +15 -15
  47. package/src/components/DataSpaceViewer.tsx +53 -24
  48. package/src/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.tsx +35 -69
  49. package/src/components/query/DataSpaceAdvancedSearchModal.tsx +248 -0
  50. package/src/components/query/DataSpaceQueryBuilder.tsx +57 -37
  51. package/src/components/query/DataSpaceQuerySetup.tsx +124 -186
  52. package/src/stores/DataSpaceViewerState.ts +28 -15
  53. package/src/stores/query/DSL_DataSpace_LegendQueryRouter.ts +34 -20
  54. package/src/stores/query/{DataSpaceQuerySetupState.ts → DataSpaceAdvancedSearchState.ts} +63 -37
  55. package/src/stores/query/DataSpaceQueryBuilderState.ts +61 -2
  56. package/src/stores/query/DataSpaceQueryCreatorStore.ts +11 -4
  57. package/src/stores/query/DataSpaceQuerySetupStore.ts +207 -0
  58. package/tsconfig.json +3 -1
  59. package/lib/stores/query/DataSpaceQuerySetupState.d.ts.map +0 -1
  60. package/lib/stores/query/DataSpaceQuerySetupState.js.map +0 -1
@@ -13,7 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { QuerySetupState, EXTERNAL_APPLICATION_NAVIGATION__generateStudioProjectViewUrl, } from '@finos/legend-application-query';
17
16
  import { DepotScope, ProjectData, } from '@finos/legend-server-depot';
18
17
  import { ActionState, assertErrorThrown, } from '@finos/legend-shared';
19
18
  import { action, flow, flowResult, makeObservable, observable } from 'mobx';
@@ -24,15 +23,19 @@ import { generateDataSpaceQueryCreatorRoute } from './DSL_DataSpace_LegendQueryR
24
23
  import { extractDataSpaceInfo } from './DataSpaceInfo.js';
25
24
  import { DEFAULT_TYPEAHEAD_SEARCH_LIMIT, DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH, } from '@finos/legend-application';
26
25
  import { retrieveAnalyticsResultCache } from '../../graphManager/action/analytics/DataSpaceAnalysisHelper.js';
27
- export class DataSpaceQuerySetupState extends QuerySetupState {
26
+ export class DataSpaceAdvancedSearchState {
27
+ applicationStore;
28
+ graphManagerState;
29
+ depotServerClient;
30
+ viewProject;
31
+ viewSDLCProject;
28
32
  dataSpaces = [];
29
33
  loadDataSpacesState = ActionState.create();
30
34
  loadDataSpaceState = ActionState.create();
31
35
  currentDataSpace;
32
36
  dataSpaceViewerState;
33
37
  toGetSnapShot = false;
34
- constructor(setupStore) {
35
- super(setupStore);
38
+ constructor(applicationStore, graphManagerState, depotServerClient, actions, currentDataSpace, toGetSnapshot) {
36
39
  makeObservable(this, {
37
40
  dataSpaces: observable,
38
41
  currentDataSpace: observable.ref,
@@ -45,6 +48,15 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
45
48
  loadDataSpace: flow,
46
49
  proceedToCreateQuery: flow,
47
50
  });
51
+ this.applicationStore = applicationStore;
52
+ this.graphManagerState = graphManagerState;
53
+ this.depotServerClient = depotServerClient;
54
+ this.viewProject = actions.viewProject;
55
+ this.viewSDLCProject = actions.viewSDLCProject;
56
+ this.currentDataSpace = currentDataSpace;
57
+ if (toGetSnapshot !== undefined) {
58
+ this.toGetSnapShot = toGetSnapshot;
59
+ }
48
60
  }
49
61
  setCurrentDataSpace(val) {
50
62
  this.currentDataSpace = val;
@@ -59,7 +71,7 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
59
71
  const isValidSearchString = searchText.length >= DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH;
60
72
  this.loadDataSpacesState.inProgress();
61
73
  try {
62
- this.dataSpaces = (yield this.setupStore.depotServerClient.getEntitiesByClassifierPath(DATA_SPACE_ELEMENT_CLASSIFIER_PATH, {
74
+ this.dataSpaces = (yield this.depotServerClient.getEntitiesByClassifierPath(DATA_SPACE_ELEMENT_CLASSIFIER_PATH, {
63
75
  search: isValidSearchString ? searchText : undefined,
64
76
  scope: this.toGetSnapShot
65
77
  ? DepotScope.SNAPSHOT
@@ -71,7 +83,7 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
71
83
  catch (error) {
72
84
  assertErrorThrown(error);
73
85
  this.loadDataSpacesState.fail();
74
- this.setupStore.applicationStore.notifyError(error);
86
+ this.applicationStore.notifyError(error);
75
87
  }
76
88
  }
77
89
  *loadDataSpace(dataSpace) {
@@ -80,18 +92,19 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
80
92
  try {
81
93
  // fetch project
82
94
  this.loadDataSpaceState.setMessage(`Fetching project...`);
83
- const project = ProjectData.serialization.fromJson((yield flowResult(this.setupStore.depotServerClient.getProject(dataSpace.groupId, dataSpace.artifactId))));
95
+ const project = ProjectData.serialization.fromJson((yield flowResult(this.depotServerClient.getProject(dataSpace.groupId, dataSpace.artifactId))));
84
96
  // fetch entities
85
97
  this.loadDataSpaceState.setMessage(`Fetching entities...`);
86
- const entities = (yield this.setupStore.depotServerClient.getEntities(project, dataSpace.versionId));
98
+ const entities = (yield this.depotServerClient.getEntities(project, dataSpace.versionId));
87
99
  // fetch dependencies
88
100
  this.loadDataSpaceState.setMessage(`Fetching dependencies...`);
89
- const dependencyEntitiesIndex = (yield flowResult(this.setupStore.depotServerClient.getIndexedDependencyEntities(project, dataSpace.versionId)));
101
+ const dependencyEntitiesIndex = (yield flowResult(this.depotServerClient.getIndexedDependencyEntities(project, dataSpace.versionId)));
90
102
  // analyze data space
91
103
  this.loadDataSpaceState.setMessage(`Analyzing data space...`);
92
- const analysisResult = (yield DSL_DataSpace_getGraphManagerExtension(this.setupStore.graphManagerState.graphManager).analyzeDataSpace(dataSpace.path, entities, dependencyEntitiesIndex, () => retrieveAnalyticsResultCache(dataSpace.groupId, dataSpace.artifactId, dataSpace.versionId, dataSpace.path, this.setupStore.depotServerClient)));
93
- this.dataSpaceViewerState = new DataSpaceViewerState(dataSpace.groupId, dataSpace.artifactId, dataSpace.versionId, analysisResult, {
94
- viewProject: (groupId, artifactId, versionId, entityPath) => this.setupStore.applicationStore.navigator.visitAddress(EXTERNAL_APPLICATION_NAVIGATION__generateStudioProjectViewUrl(this.setupStore.applicationStore.config.studioUrl, groupId, artifactId, versionId, entityPath)),
104
+ const analysisResult = (yield DSL_DataSpace_getGraphManagerExtension(this.graphManagerState.graphManager).analyzeDataSpace(dataSpace.path, entities, dependencyEntitiesIndex, () => retrieveAnalyticsResultCache(dataSpace.groupId, dataSpace.artifactId, dataSpace.versionId, dataSpace.path, this.depotServerClient)));
105
+ this.dataSpaceViewerState = new DataSpaceViewerState(this.applicationStore, dataSpace.groupId, dataSpace.artifactId, dataSpace.versionId, analysisResult, {
106
+ viewProject: this.viewProject,
107
+ viewSDLCProject: this.viewSDLCProject,
95
108
  onDiagramClassDoubleClick: (classView) => {
96
109
  this.proceedToCreateQuery(classView.class.value);
97
110
  },
@@ -101,7 +114,7 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
101
114
  catch (error) {
102
115
  assertErrorThrown(error);
103
116
  this.loadDataSpaceState.fail();
104
- this.setupStore.applicationStore.notifyError(error);
117
+ this.applicationStore.notifyError(error);
105
118
  }
106
119
  finally {
107
120
  this.loadDataSpaceState.setMessage(undefined);
@@ -109,12 +122,11 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
109
122
  }
110
123
  *proceedToCreateQuery(_class) {
111
124
  if (this.dataSpaceViewerState) {
112
- this.setupStore.applicationStore.navigator.goToLocation(generateDataSpaceQueryCreatorRoute(this.dataSpaceViewerState.groupId, this.dataSpaceViewerState.artifactId, this.dataSpaceViewerState.versionId, this.dataSpaceViewerState.dataSpaceAnalysisResult.path, this.dataSpaceViewerState.currentExecutionContext.name, this.dataSpaceViewerState.currentRuntime ===
125
+ this.applicationStore.navigator.goToLocation(generateDataSpaceQueryCreatorRoute(this.dataSpaceViewerState.groupId, this.dataSpaceViewerState.artifactId, this.dataSpaceViewerState.versionId, this.dataSpaceViewerState.dataSpaceAnalysisResult.path, this.dataSpaceViewerState.currentExecutionContext.name, this.dataSpaceViewerState.currentRuntime ===
113
126
  this.dataSpaceViewerState.currentExecutionContext.defaultRuntime
114
127
  ? undefined
115
128
  : this.dataSpaceViewerState.currentRuntime.path, _class?.path));
116
- this.setupStore.setSetupState(undefined);
117
129
  }
118
130
  }
119
131
  }
120
- //# sourceMappingURL=DataSpaceQuerySetupState.js.map
132
+ //# sourceMappingURL=DataSpaceAdvancedSearchState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceAdvancedSearchState.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceAdvancedSearchState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,EAEL,UAAU,EACV,WA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AC,YAAY,CAC1C,kCAAkC,CAChC,IAAI,CAAC,oBAAoB,CAAC,OAAO,EACjC,IAAI,CAAC,oBAAoB,CAAC,UAAU,EACpC,IAAI,CAAC,oBAAoB,CAAC,SAAS,EACnC,IAAI,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,IAAI,EACtD,IAAI,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,IAAI,EACtD,IAAI,CAAC,oBAAoB,CAAC,cAAc;gBACtC,IAAI,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,cAAc;gBAChE,CAAC,CAAC,SAAS;gBACX,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC,IAAI,EACjD,MAAM,EAAE,IAAI,CACb,CACF,CAAC;SACH;IACH,CAAC;CACF"}
@@ -20,12 +20,16 @@ import { type DepotServerClient } from '@finos/legend-server-depot';
20
20
  import { type GeneratorFn, ActionState } from '@finos/legend-shared';
21
21
  import type { DataSpace, DataSpaceExecutionContext } from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
22
22
  import { type DataSpaceInfo } from './DataSpaceInfo.js';
23
+ import { DataSpaceAdvancedSearchState } from './DataSpaceAdvancedSearchState.js';
23
24
  export declare class DataSpaceQueryBuilderState extends QueryBuilderState {
25
+ readonly depotServerClient: DepotServerClient;
24
26
  readonly dataSpace: DataSpace;
25
27
  readonly groupId: string;
26
28
  readonly artifactId: string;
27
29
  readonly versionId: string;
28
- readonly depotServerClient: DepotServerClient;
30
+ readonly viewProject: (groupId: string, artifactId: string, versionId: string, entityPath: string | undefined) => void;
31
+ readonly viewSDLCProject: (groupId: string, artifactId: string, entityPath: string | undefined) => Promise<void>;
32
+ readonly isAdvancedDataSpaceSearchEnabled: boolean;
29
33
  readonly loadDataSpacesState: ActionState;
30
34
  readonly onDataSpaceChange: (val: DataSpaceInfo) => void;
31
35
  readonly onExecutionContextChange?: ((val: DataSpaceExecutionContext) => void) | undefined;
@@ -35,8 +39,11 @@ export declare class DataSpaceQueryBuilderState extends QueryBuilderState {
35
39
  executionContext: DataSpaceExecutionContext;
36
40
  dataSpaces: DataSpaceInfo[];
37
41
  showRuntimeSelector: boolean;
38
- constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, depotServerClient: DepotServerClient, dataSpace: DataSpace, executionContext: DataSpaceExecutionContext, groupId: string, versionId: string, artifactId: string, onDataSpaceChange: (val: DataSpaceInfo) => void, onExecutionContextChange?: ((val: DataSpaceExecutionContext) => void) | undefined, onRuntimeChange?: ((val: Runtime) => void) | undefined, onClassChange?: ((val: Class) => void) | undefined);
42
+ advancedSearchState?: DataSpaceAdvancedSearchState | undefined;
43
+ constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, depotServerClient: DepotServerClient, dataSpace: DataSpace, executionContext: DataSpaceExecutionContext, groupId: string, artifactId: string, versionId: string, viewProject: (groupId: string, artifactId: string, versionId: string, entityPath: string | undefined) => void, viewSDLCProject: (groupId: string, artifactId: string, entityPath: string | undefined) => Promise<void>, onDataSpaceChange: (val: DataSpaceInfo) => void, onExecutionContextChange?: ((val: DataSpaceExecutionContext) => void) | undefined, onRuntimeChange?: ((val: Runtime) => void) | undefined, onClassChange?: ((val: Class) => void) | undefined);
39
44
  get sideBarClassName(): string | undefined;
45
+ showAdvancedSearchPanel(): void;
46
+ hideAdvancedSearchPanel(): void;
40
47
  setExecutionContext(val: DataSpaceExecutionContext): void;
41
48
  setShowRuntimeSelector(val: boolean): void;
42
49
  loadDataSpaces(searchText: string): GeneratorFn<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceQueryBuilderState.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,6BAA6B,EAGnC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AA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AAC,UAAU,EAAE,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC;IA0BtD;;;;;;OAMG;IACH,+BAA+B,CAC7B,gBAAgB,EAAE,yBAAyB,GAC1C,IAAI;CAkBR"}
@@ -22,12 +22,16 @@ import { action, flow, makeObservable, observable } from 'mobx';
22
22
  import { renderDataSpaceQueryBuilderSetupPanelContent } from '../../components/query/DataSpaceQueryBuilder.js';
23
23
  import { DATA_SPACE_ELEMENT_CLASSIFIER_PATH } from '../../graphManager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.js';
24
24
  import { extractDataSpaceInfo } from './DataSpaceInfo.js';
25
+ import { DataSpaceAdvancedSearchState } from './DataSpaceAdvancedSearchState.js';
25
26
  export class DataSpaceQueryBuilderState extends QueryBuilderState {
27
+ depotServerClient;
26
28
  dataSpace;
27
29
  groupId;
28
30
  artifactId;
29
31
  versionId;
30
- depotServerClient;
32
+ viewProject;
33
+ viewSDLCProject;
34
+ isAdvancedDataSpaceSearchEnabled;
31
35
  loadDataSpacesState = ActionState.create();
32
36
  onDataSpaceChange;
33
37
  onExecutionContextChange;
@@ -37,12 +41,16 @@ export class DataSpaceQueryBuilderState extends QueryBuilderState {
37
41
  executionContext;
38
42
  dataSpaces = [];
39
43
  showRuntimeSelector = false;
40
- constructor(applicationStore, graphManagerState, depotServerClient, dataSpace, executionContext, groupId, versionId, artifactId, onDataSpaceChange, onExecutionContextChange, onRuntimeChange, onClassChange) {
44
+ advancedSearchState;
45
+ constructor(applicationStore, graphManagerState, depotServerClient, dataSpace, executionContext, groupId, artifactId, versionId, viewProject, viewSDLCProject, onDataSpaceChange, onExecutionContextChange, onRuntimeChange, onClassChange) {
41
46
  super(applicationStore, graphManagerState);
42
47
  makeObservable(this, {
43
48
  dataSpaces: observable,
44
49
  executionContext: observable,
45
50
  showRuntimeSelector: observable,
51
+ advancedSearchState: observable,
52
+ showAdvancedSearchPanel: action,
53
+ hideAdvancedSearchPanel: action,
46
54
  setExecutionContext: action,
47
55
  setShowRuntimeSelector: action,
48
56
  loadDataSpaces: flow,
@@ -53,16 +61,38 @@ export class DataSpaceQueryBuilderState extends QueryBuilderState {
53
61
  this.groupId = groupId;
54
62
  this.artifactId = artifactId;
55
63
  this.versionId = versionId;
64
+ this.viewProject = viewProject;
65
+ this.viewSDLCProject = viewSDLCProject;
56
66
  this.onDataSpaceChange = onDataSpaceChange;
57
67
  this.onExecutionContextChange = onExecutionContextChange;
58
68
  this.onRuntimeChange = onRuntimeChange;
59
69
  this.onClassChange = onClassChange;
70
+ // NOTE: if we reuse this state in the future (e.g. in Studio), we might need
71
+ // to turn this flag off
72
+ this.isAdvancedDataSpaceSearchEnabled = true;
60
73
  }
61
74
  get sideBarClassName() {
62
75
  return this.showRuntimeSelector
63
76
  ? 'query-builder__setup__data-space--with-runtime'
64
77
  : 'query-builder__setup__data-space';
65
78
  }
79
+ showAdvancedSearchPanel() {
80
+ this.advancedSearchState = new DataSpaceAdvancedSearchState(this.applicationStore, this.graphManagerState, this.depotServerClient, {
81
+ viewProject: this.viewProject,
82
+ viewSDLCProject: this.viewSDLCProject,
83
+ }, {
84
+ groupId: this.groupId,
85
+ artifactId: this.artifactId,
86
+ versionId: this.versionId,
87
+ title: this.dataSpace.title,
88
+ name: this.dataSpace.name,
89
+ path: this.dataSpace.path,
90
+ defaultExecutionContext: this.dataSpace.defaultExecutionContext.name,
91
+ }, this.versionId === SNAPSHOT_VERSION_ALIAS);
92
+ }
93
+ hideAdvancedSearchPanel() {
94
+ this.advancedSearchState = undefined;
95
+ }
66
96
  setExecutionContext(val) {
67
97
  this.executionContext = val;
68
98
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,8BAA8B,EAC9B,8CAA8C,GAC/C,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,iB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sources":["../../../src/stores/query/DataSpaceQueryCreatorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,gBAAgB,EAKjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAChB,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EACjC,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAepE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEnE,eAAO,MAAM,+BAA+B,kBAC3B,MAAM,KACpB,gBAMF,CAAC;AAEF,qBAAa,0BAA2B,SAAQ,gBAAgB;IAC9D,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,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,2BAA2B,IAAI,OAAO,CAAC,iBAAiB,CAAC;IA2HzD,sBAAsB,IAAI,OAAO,CAAC,wBAAwB,CAAC;CAgBlE"}
1
+ {"version":3,"file":"DataSpaceQueryCreatorStore.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQueryCreatorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,gBAAgB,EAKjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAChB,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAGjC,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAepE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEnE,eAAO,MAAM,+BAA+B,kBAC3B,MAAM,KACpB,gBAMF,CAAC;AAEF,qBAAa,0BAA2B,SAAQ,gBAAgB;IAC9D,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,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,2BAA2B,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAgIzD,sBAAsB,IAAI,OAAO,CAAC,wBAAwB,CAAC;CAgBlE"}
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { extractElementNameFromPath, QueryTaggedValue, RuntimePointer, PackageableElementExplicitReference, } from '@finos/legend-graph';
17
- import { QueryEditorStore, } from '@finos/legend-application-query';
17
+ import { QueryEditorStore, createViewProjectHandler, createViewSDLCProjectHandler, } from '@finos/legend-application-query';
18
18
  import { guaranteeNonNullable, guaranteeType, uuid, } from '@finos/legend-shared';
19
19
  import { QUERY_PROFILE_PATH, QUERY_PROFILE_TAG_DATA_SPACE, } from '../../DSL_DataSpace_Const.js';
20
20
  import { getDataSpace } from '../../graphManager/DSL_DataSpace_GraphManagerHelper.js';
@@ -55,9 +55,9 @@ export class DataSpaceQueryCreatorStore extends QueryEditorStore {
55
55
  async initializeQueryBuilderState() {
56
56
  const dataSpace = getDataSpace(this.dataSpacePath, this.graphManagerState.graph);
57
57
  const executionContext = guaranteeNonNullable(dataSpace.executionContexts.find((context) => context.name === this.executionContext), `Can't find execution context '${this.executionContext}'`);
58
- const queryBuilderState = new DataSpaceQueryBuilderState(this.applicationStore, this.graphManagerState, this.depotServerClient, dataSpace, executionContext, this.groupId, this.artifactId, this.versionId, (dataSpaceInfo) => {
58
+ const queryBuilderState = new DataSpaceQueryBuilderState(this.applicationStore, this.graphManagerState, this.depotServerClient, dataSpace, executionContext, this.groupId, this.artifactId, this.versionId, createViewProjectHandler(this.applicationStore), createViewSDLCProjectHandler(this.applicationStore, this.depotServerClient), (dataSpaceInfo) => {
59
59
  if (dataSpaceInfo.defaultExecutionContext) {
60
- this.applicationStore.navigator.reloadToLocation(generateDataSpaceQueryCreatorRoute(dataSpaceInfo.groupId, dataSpaceInfo.artifactId, dataSpaceInfo.versionId, dataSpaceInfo.path, dataSpaceInfo.defaultExecutionContext, undefined, undefined));
60
+ this.applicationStore.navigator.goToLocation(generateDataSpaceQueryCreatorRoute(dataSpaceInfo.groupId, dataSpaceInfo.artifactId, dataSpaceInfo.versionId, dataSpaceInfo.path, dataSpaceInfo.defaultExecutionContext, undefined, undefined));
61
61
  }
62
62
  else {
63
63
  this.applicationStore.notifyWarning(`Can't switch data space: default execution context not specified`);
@@ -65,20 +65,20 @@ export class DataSpaceQueryCreatorStore extends QueryEditorStore {
65
65
  }, (ec) => {
66
66
  // runtime should already be set
67
67
  const runtimePointer = guaranteeType(queryBuilderState.runtimeValue, RuntimePointer);
68
- this.applicationStore.navigator.goToLocation(generateDataSpaceQueryCreatorRoute(this.groupId, this.artifactId, this.versionId, dataSpace.path, ec.name, runtimePointer.packageableRuntime.value ===
68
+ this.applicationStore.navigator.updateCurrentLocation(generateDataSpaceQueryCreatorRoute(this.groupId, this.artifactId, this.versionId, dataSpace.path, ec.name, runtimePointer.packageableRuntime.value ===
69
69
  queryBuilderState.executionContext.defaultRuntime.value
70
70
  ? undefined
71
71
  : runtimePointer.packageableRuntime.value.path, queryBuilderState.class?.path));
72
72
  }, (runtimeValue) => {
73
73
  const runtimePointer = guaranteeType(runtimeValue, RuntimePointer);
74
- queryBuilderState.applicationStore.navigator.goToLocation(generateDataSpaceQueryCreatorRoute(queryBuilderState.groupId, queryBuilderState.artifactId, queryBuilderState.versionId, queryBuilderState.dataSpace.path, queryBuilderState.executionContext.name, runtimePointer.packageableRuntime.value ===
74
+ queryBuilderState.applicationStore.navigator.updateCurrentLocation(generateDataSpaceQueryCreatorRoute(queryBuilderState.groupId, queryBuilderState.artifactId, queryBuilderState.versionId, queryBuilderState.dataSpace.path, queryBuilderState.executionContext.name, runtimePointer.packageableRuntime.value ===
75
75
  queryBuilderState.executionContext.defaultRuntime.value
76
76
  ? undefined
77
77
  : runtimePointer.packageableRuntime.value.path, queryBuilderState.class?.path));
78
78
  }, (_class) => {
79
79
  // runtime should already be set
80
80
  const runtimePointer = guaranteeType(queryBuilderState.runtimeValue, RuntimePointer);
81
- queryBuilderState.applicationStore.navigator.goToLocation(generateDataSpaceQueryCreatorRoute(queryBuilderState.groupId, queryBuilderState.artifactId, queryBuilderState.versionId, queryBuilderState.dataSpace.path, queryBuilderState.executionContext.name, runtimePointer.packageableRuntime.value ===
81
+ queryBuilderState.applicationStore.navigator.updateCurrentLocation(generateDataSpaceQueryCreatorRoute(queryBuilderState.groupId, queryBuilderState.artifactId, queryBuilderState.versionId, queryBuilderState.dataSpace.path, queryBuilderState.executionContext.name, runtimePointer.packageableRuntime.value ===
82
82
  queryBuilderState.executionContext.defaultRuntime.value
83
83
  ? undefined
84
84
  : runtimePointer.packageableRuntime.value.path, _class.path));
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceQueryCreatorStore.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQueryCreatorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,0BAA0B,EAC1B,gBAAgB,EAChB,cAAc,EACd,mCAAmC,GAGpC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,GAGjB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,IAAI,GACL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,kBAAkB,EAClB,4BAA4B,GAC7B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,wDAAwD,CAAC;AACtF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAK1F,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAC7C,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,0BAA2B,SAAQ,gBAAgB;IAC9D,OAAO,CAAS;IAChB,UAAU,CAAS;IACnB,SAAS,CAAS;IAClB,aAAa,CAAS;IACtB,gBAAgB,CAAS;IACzB,WAAW,CAAqB;IAChC,SAAS,CAAqB;IAE9B,YACE,g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,CAAC,SAAS,EAAE;YAClB,iBAAiB,CAAC,WAAW,CAC3B,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CACtD,CAAC;SACH;QAED,OAAO,iBAAiB,CAAC;IAC3B,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"}
1
+ {"version":3,"file":"DataSpaceQueryCreatorStore.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQueryCreatorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,0BAA0B,EAC1B,gBAAgB,EAChB,cAAc,EACd,mCAAmC,GAGpC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAGhB,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,IAAI,GACL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,kBAAkB,EAClB,4BAA4B,GAC7B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,wDAAwD,CAAC;AACtF,OAAO,EAA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,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"}
@@ -0,0 +1,50 @@
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 } from '@finos/legend-application-query';
17
+ import { type DepotServerClient } from '@finos/legend-server-depot';
18
+ import type { GraphManagerState, RawLambda } from '@finos/legend-graph';
19
+ import { type GenericLegendApplicationStore } from '@finos/legend-application';
20
+ import { QueryBuilderState } from '@finos/legend-query-builder';
21
+ import type { ProjectGAVCoordinates } from '@finos/legend-storage';
22
+ import { ActionState, type GeneratorFn } from '@finos/legend-shared';
23
+ import { type DataSpaceInfo } from './DataSpaceInfo.js';
24
+ import { DataSpaceAdvancedSearchState } from './DataSpaceAdvancedSearchState.js';
25
+ export declare class DataSpaceQuerySetupState extends QueryBuilderState {
26
+ readonly depotServerClient: DepotServerClient;
27
+ readonly loadDataSpacesState: ActionState;
28
+ readonly onDataSpaceChange: (val: DataSpaceInfo) => void;
29
+ readonly viewProject: (groupId: string, artifactId: string, versionId: string, entityPath: string | undefined) => void;
30
+ readonly viewSDLCProject: (groupId: string, artifactId: string, entityPath: string | undefined) => Promise<void>;
31
+ TEMPORARY__setupPanelContentRenderer: () => React.ReactNode;
32
+ dataSpaces: DataSpaceInfo[];
33
+ showRuntimeSelector: boolean;
34
+ advancedSearchState?: DataSpaceAdvancedSearchState | undefined;
35
+ constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, depotServerClient: DepotServerClient, onDataSpaceChange: (val: DataSpaceInfo) => void, viewProject: (groupId: string, artifactId: string, versionId: string, entityPath: string | undefined) => void, viewSDLCProject: (groupId: string, artifactId: string, entityPath: string | undefined) => Promise<void>);
36
+ get isResultPanelHidden(): boolean;
37
+ get sideBarClassName(): string | undefined;
38
+ showAdvancedSearchPanel(): void;
39
+ hideAdvancedSearchPanel(): void;
40
+ loadDataSpaces(searchText: string): GeneratorFn<void>;
41
+ }
42
+ export declare class DataSpaceQuerySetupStore extends QueryEditorStore {
43
+ get isViewProjectActionDisabled(): boolean;
44
+ get isSaveActionDisabled(): boolean;
45
+ getProjectInfo(): ProjectGAVCoordinates;
46
+ getExportConfiguration(lambda: RawLambda): Promise<QueryExportConfiguration>;
47
+ initializeQueryBuilderState(): Promise<QueryBuilderState>;
48
+ buildGraph(): GeneratorFn<void>;
49
+ }
50
+ //# sourceMappingURL=DataSpaceQuerySetupStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceQuerySetupStore.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQuerySetupStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,gBAAgB,EAChB,KAAK,wBAAwB,EAC9B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAEL,KAAK,iBAAiB,EAEvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAGL,KAAK,6BAA6B,EACnC,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AACn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CAAC,IAAI,CAAC;IAkBpB,IAAa,mBAAmB,IAAI,OAAO,CAE1C;IAED,IAAa,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAElD;IAED,uBAAuB,IAAI,IAAI;IAY/B,uBAAuB,IAAI,IAAI;IAI9B,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC;CAsBvD;AAED,qBAAa,wBAAyB,SAAQ,gBAAgB;IAC5D,IAAa,2BAA2B,IAAI,OAAO,CAElD;IAED,IAAa,oBAAoB,IAAI,OAAO,CAE3C;IAED,cAAc,IAAI,qBAAqB;IAIvC,sBAAsB,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAItE,2BAA2B,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAkCrD,UAAU,IAAI,WAAW,CAAC,IAAI,CAAC;CAG1C"}
@@ -0,0 +1,112 @@
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 { createViewProjectHandler, createViewSDLCProjectHandler, QueryEditorStore, } from '@finos/legend-application-query';
17
+ import { DepotScope, } from '@finos/legend-server-depot';
18
+ import { DEFAULT_TYPEAHEAD_SEARCH_LIMIT, DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH, } from '@finos/legend-application';
19
+ import { action, flow, makeObservable, observable } from 'mobx';
20
+ import { QueryBuilderState } from '@finos/legend-query-builder';
21
+ import { ActionState, assertErrorThrown, UnsupportedOperationError, } from '@finos/legend-shared';
22
+ import { extractDataSpaceInfo } from './DataSpaceInfo.js';
23
+ import { DATA_SPACE_ELEMENT_CLASSIFIER_PATH } from '../../graphManager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.js';
24
+ import { generateDataSpaceQueryCreatorRoute } from './DSL_DataSpace_LegendQueryRouter.js';
25
+ import { renderDataSpaceQuerySetupSetupPanelContent } from '../../components/query/DataSpaceQuerySetup.js';
26
+ import { DataSpaceAdvancedSearchState } from './DataSpaceAdvancedSearchState.js';
27
+ export class DataSpaceQuerySetupState extends QueryBuilderState {
28
+ depotServerClient;
29
+ loadDataSpacesState = ActionState.create();
30
+ onDataSpaceChange;
31
+ viewProject;
32
+ viewSDLCProject;
33
+ TEMPORARY__setupPanelContentRenderer = () => renderDataSpaceQuerySetupSetupPanelContent(this);
34
+ dataSpaces = [];
35
+ showRuntimeSelector = false;
36
+ advancedSearchState;
37
+ constructor(applicationStore, graphManagerState, depotServerClient, onDataSpaceChange, viewProject, viewSDLCProject) {
38
+ super(applicationStore, graphManagerState);
39
+ makeObservable(this, {
40
+ dataSpaces: observable,
41
+ advancedSearchState: observable,
42
+ showAdvancedSearchPanel: action,
43
+ hideAdvancedSearchPanel: action,
44
+ loadDataSpaces: flow,
45
+ });
46
+ this.depotServerClient = depotServerClient;
47
+ this.onDataSpaceChange = onDataSpaceChange;
48
+ this.viewProject = viewProject;
49
+ this.viewSDLCProject = viewSDLCProject;
50
+ }
51
+ get isResultPanelHidden() {
52
+ return true;
53
+ }
54
+ get sideBarClassName() {
55
+ return 'query-builder__setup__data-space-setup';
56
+ }
57
+ showAdvancedSearchPanel() {
58
+ this.advancedSearchState = new DataSpaceAdvancedSearchState(this.applicationStore, this.graphManagerState, this.depotServerClient, {
59
+ viewProject: this.viewProject,
60
+ viewSDLCProject: this.viewSDLCProject,
61
+ });
62
+ }
63
+ hideAdvancedSearchPanel() {
64
+ this.advancedSearchState = undefined;
65
+ }
66
+ *loadDataSpaces(searchText) {
67
+ const isValidSearchString = searchText.length >= DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH;
68
+ this.loadDataSpacesState.inProgress();
69
+ try {
70
+ this.dataSpaces = (yield this.depotServerClient.getEntitiesByClassifierPath(DATA_SPACE_ELEMENT_CLASSIFIER_PATH, {
71
+ search: isValidSearchString ? searchText : undefined,
72
+ scope: DepotScope.RELEASES,
73
+ limit: DEFAULT_TYPEAHEAD_SEARCH_LIMIT,
74
+ })).map((storedEntity) => extractDataSpaceInfo(storedEntity, false));
75
+ this.loadDataSpacesState.pass();
76
+ }
77
+ catch (error) {
78
+ assertErrorThrown(error);
79
+ this.loadDataSpacesState.fail();
80
+ this.applicationStore.notifyError(error);
81
+ }
82
+ }
83
+ }
84
+ export class DataSpaceQuerySetupStore extends QueryEditorStore {
85
+ get isViewProjectActionDisabled() {
86
+ return true;
87
+ }
88
+ get isSaveActionDisabled() {
89
+ return true;
90
+ }
91
+ getProjectInfo() {
92
+ throw new UnsupportedOperationError();
93
+ }
94
+ getExportConfiguration(lambda) {
95
+ throw new UnsupportedOperationError();
96
+ }
97
+ async initializeQueryBuilderState() {
98
+ const queryBuilderState = new DataSpaceQuerySetupState(this.applicationStore, this.graphManagerState, this.depotServerClient, (dataSpaceInfo) => {
99
+ if (dataSpaceInfo.defaultExecutionContext) {
100
+ this.applicationStore.navigator.goToLocation(generateDataSpaceQueryCreatorRoute(dataSpaceInfo.groupId, dataSpaceInfo.artifactId, dataSpaceInfo.versionId, dataSpaceInfo.path, dataSpaceInfo.defaultExecutionContext, undefined, undefined));
101
+ }
102
+ else {
103
+ this.applicationStore.notifyWarning(`Can't switch data space: default execution context not specified`);
104
+ }
105
+ }, createViewProjectHandler(this.applicationStore), createViewSDLCProjectHandler(this.applicationStore, this.depotServerClient));
106
+ return queryBuilderState;
107
+ }
108
+ *buildGraph() {
109
+ // do nothing
110
+ }
111
+ }
112
+ //# sourceMappingURL=DataSpaceQuerySetupStore.js.map
@@ -0,0 +1 @@
1
+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AAwB,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAC/C,4BAA4B,CAC1B,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,iBAAiB,CACvB,CACF,CAAC;QAEF,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAEQ,CAAC,UAAU;QAClB,aAAa;IACf,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-extension-dsl-data-space",
3
- "version": "8.0.0",
3
+ "version": "9.0.0",
4
4
  "description": "Legend extension for Data Space DSL",
5
5
  "keywords": [
6
6
  "legend",
@@ -43,29 +43,29 @@
43
43
  "test:watch": "jest --watch"
44
44
  },
45
45
  "dependencies": {
46
- "@finos/legend-application": "9.0.0",
47
- "@finos/legend-application-query": "8.1.2",
48
- "@finos/legend-application-studio": "18.0.2",
49
- "@finos/legend-art": "4.0.0",
50
- "@finos/legend-extension-dsl-diagram": "7.0.2",
51
- "@finos/legend-graph": "18.0.0",
52
- "@finos/legend-query-builder": "0.2.0",
53
- "@finos/legend-server-depot": "4.1.1",
54
- "@finos/legend-shared": "6.1.4",
55
- "@finos/legend-storage": "3.0.13",
46
+ "@finos/legend-application": "10.0.0",
47
+ "@finos/legend-application-query": "9.0.0",
48
+ "@finos/legend-application-studio": "19.0.0",
49
+ "@finos/legend-art": "4.1.0",
50
+ "@finos/legend-extension-dsl-diagram": "7.0.4",
51
+ "@finos/legend-graph": "19.0.0",
52
+ "@finos/legend-query-builder": "0.2.2",
53
+ "@finos/legend-server-depot": "4.1.2",
54
+ "@finos/legend-shared": "6.1.5",
55
+ "@finos/legend-storage": "3.0.14",
56
56
  "@types/react": "18.0.21",
57
57
  "mobx": "6.6.2",
58
58
  "mobx-react-lite": "3.4.0",
59
59
  "react": "18.2.0",
60
60
  "react-dom": "18.2.0",
61
- "serializr": "2.0.5"
61
+ "serializr": "3.0.1"
62
62
  },
63
63
  "devDependencies": {
64
- "@finos/legend-dev-utils": "2.0.20",
65
- "@jest/globals": "29.1.2",
64
+ "@finos/legend-dev-utils": "2.0.21",
65
+ "@jest/globals": "29.2.1",
66
66
  "cross-env": "7.0.3",
67
67
  "eslint": "8.25.0",
68
- "jest": "29.1.2",
68
+ "jest": "29.2.1",
69
69
  "npm-run-all": "4.1.5",
70
70
  "rimraf": "3.0.2",
71
71
  "sass": "1.55.0",