@finos/legend-query-builder 4.15.3 → 4.15.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. package/lib/__lib__/QueryBuilderTesting.d.ts +3 -1
  2. package/lib/__lib__/QueryBuilderTesting.d.ts.map +1 -1
  3. package/lib/__lib__/QueryBuilderTesting.js +4 -0
  4. package/lib/__lib__/QueryBuilderTesting.js.map +1 -1
  5. package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
  6. package/lib/components/QueryBuilderSideBar.js +1 -1
  7. package/lib/components/QueryBuilderSideBar.js.map +1 -1
  8. package/lib/components/data-cube/QueryBuilderDataCube.d.ts.map +1 -1
  9. package/lib/components/data-cube/QueryBuilderDataCube.js +4 -6
  10. package/lib/components/data-cube/QueryBuilderDataCube.js.map +1 -1
  11. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts.map +1 -1
  12. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js +38 -33
  13. package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js.map +1 -1
  14. package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
  15. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +12 -5
  16. package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
  17. package/lib/index.css +16 -0
  18. package/lib/index.d.ts +1 -2
  19. package/lib/index.d.ts.map +1 -1
  20. package/lib/index.js +0 -1
  21. package/lib/index.js.map +1 -1
  22. package/lib/package.json +1 -1
  23. package/lib/stores/QueryBuilderState.d.ts +6 -1
  24. package/lib/stores/QueryBuilderState.d.ts.map +1 -1
  25. package/lib/stores/QueryBuilderState.js +3 -0
  26. package/lib/stores/QueryBuilderState.js.map +1 -1
  27. package/lib/stores/data-cube/QueryBuilderDataCubeEngine.d.ts +12 -21
  28. package/lib/stores/data-cube/QueryBuilderDataCubeEngine.d.ts.map +1 -1
  29. package/lib/stores/data-cube/QueryBuilderDataCubeEngine.js +39 -57
  30. package/lib/stores/data-cube/QueryBuilderDataCubeEngine.js.map +1 -1
  31. package/lib/stores/explorer/QueryFunctionsExplorerState.d.ts +17 -6
  32. package/lib/stores/explorer/QueryFunctionsExplorerState.d.ts.map +1 -1
  33. package/lib/stores/explorer/QueryFunctionsExplorerState.js +142 -59
  34. package/lib/stores/explorer/QueryFunctionsExplorerState.js.map +1 -1
  35. package/package.json +8 -8
  36. package/src/__lib__/QueryBuilderTesting.ts +5 -0
  37. package/src/components/QueryBuilderSideBar.tsx +4 -1
  38. package/src/components/data-cube/QueryBuilderDataCube.tsx +5 -17
  39. package/src/components/explorer/QueryBuilderFunctionsExplorerPanel.tsx +63 -70
  40. package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +23 -11
  41. package/src/index.ts +1 -1
  42. package/src/stores/QueryBuilderState.ts +12 -0
  43. package/src/stores/data-cube/QueryBuilderDataCubeEngine.ts +66 -86
  44. package/src/stores/explorer/QueryFunctionsExplorerState.ts +227 -94
  45. package/tsconfig.json +0 -1
  46. package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.d.ts +0 -36
  47. package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.d.ts.map +0 -1
  48. package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.js +0 -65
  49. package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.js.map +0 -1
  50. package/src/stores/data-cube/QueryBuilderDataCubeApplicationEngine.ts +0 -98
@@ -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 { ConcreteFunctionDefinition, Package, Unit, ROOT_PACKAGE_NAME, } from '@finos/legend-graph';
17
- import { addUniqueEntry, guaranteeNonNullable, isNonNullable, noop, uuid, } from '@finos/legend-shared';
16
+ import { Package, Unit, ROOT_PACKAGE_NAME, buildFunctionAnalysisInfoFromConcreteFunctionDefinition, getOrCreateGraphPackage, } from '@finos/legend-graph';
17
+ import { ActionState, addUniqueEntry, guaranteeNonNullable, isNonNullable, noop, uuid, } from '@finos/legend-shared';
18
18
  import { action, makeObservable, observable } from 'mobx';
19
19
  import { compareLabelFn, } from '@finos/legend-art';
20
20
  export const QUERY_BUILDER_FUNCTION_DND_TYPE = 'QUERY_BUILDER_FUNCTION';
@@ -23,11 +23,11 @@ export class QueryBuilderFunctionsExplorerTreeNodeData {
23
23
  label;
24
24
  childrenIds = [];
25
25
  isOpen;
26
- packageableElement;
27
- constructor(id, label, packageableElement) {
26
+ package;
27
+ functionAnalysisInfo;
28
+ constructor(id, label) {
28
29
  this.id = id;
29
30
  this.label = label;
30
- this.packageableElement = packageableElement;
31
31
  }
32
32
  }
33
33
  const getValidDisplayablePackageSet = (queryBuilderState, rootPackageName) => {
@@ -39,35 +39,48 @@ const getValidDisplayablePackageSet = (queryBuilderState, rootPackageName) => {
39
39
  return queryBuilderState.functionsExplorerState.displayablePackagesSet;
40
40
  }
41
41
  };
42
- export const generateFunctionsExplorerTreeNodeData = (queryBuilderState, element, rootPackageName) => ({
42
+ const generateFunctionsExplorerTreeNodeDataFromPackage = (queryBuilderState, element, rootPackageName) => ({
43
43
  id: element.path,
44
44
  label: element.name,
45
- childrenIds: element instanceof Package
46
- ? element.children
47
- .filter((child) => !(child instanceof Unit))
48
- .filter((child) => (child instanceof Package &&
49
- getValidDisplayablePackageSet(queryBuilderState, rootPackageName).has(child)) ||
50
- child instanceof ConcreteFunctionDefinition)
51
- .map((child) => child.path)
52
- : [],
53
- packageableElement: element,
45
+ childrenIds: element.children
46
+ .filter((child) => !(child instanceof Unit))
47
+ .filter((child) => child instanceof Package &&
48
+ getValidDisplayablePackageSet(queryBuilderState, rootPackageName).has(child))
49
+ .map((child) => child.path)
50
+ .concat(queryBuilderState.functionsExplorerState.packagePathToFunctionInfoMap
51
+ ?.get(element.path)
52
+ ?.map((info) => info.functionPath) ?? []),
53
+ package: element,
54
+ });
55
+ export const generateFunctionsExplorerTreeNodeDataFromFunctionAnalysisInfo = (functionAnalysisInfo) => ({
56
+ id: functionAnalysisInfo.functionPath,
57
+ label: functionAnalysisInfo.name,
58
+ childrenIds: [],
59
+ functionAnalysisInfo: functionAnalysisInfo,
54
60
  });
55
61
  const generateFunctionsExplorerTreeNodeChilrdren = (queryBuilderState, node, data, rootPackageName = ROOT_PACKAGE_NAME.MAIN) => {
62
+ const functionInfoMap = rootPackageName === ROOT_PACKAGE_NAME.MAIN
63
+ ? queryBuilderState.functionsExplorerState.functionInfoMap
64
+ : queryBuilderState.functionsExplorerState.dependencyFunctionInfoMap;
56
65
  const validDisplayablePackageSet = getValidDisplayablePackageSet(queryBuilderState, rootPackageName);
57
- node.childrenIds = node.packageableElement.children
58
- .filter((child) => !(child instanceof Unit))
59
- .filter((child) =>
60
- // avoid displaying empty packages
61
- (child instanceof Package && validDisplayablePackageSet.has(child)) ||
62
- child instanceof ConcreteFunctionDefinition)
63
- .map((child) => child.path);
64
- node.packageableElement.children
65
- .filter((child) => !(child instanceof Unit))
66
+ const qualifiedExtraFunctionPaths = queryBuilderState.functionsExplorerState.packagePathToFunctionInfoMap
67
+ ?.get(node.id)
68
+ ?.map((info) => info.functionPath);
69
+ const childrenPackages = node.package.children
66
70
  .filter((child) =>
67
71
  // avoid displaying empty packages
68
- (child instanceof Package && validDisplayablePackageSet.has(child)) ||
69
- child instanceof ConcreteFunctionDefinition)
70
- .map((child) => generateFunctionsExplorerTreeNodeData(queryBuilderState, child, rootPackageName))
72
+ child instanceof Package && validDisplayablePackageSet.has(child))
73
+ .map((child) => child);
74
+ node.childrenIds = childrenPackages
75
+ .map((child) => child.path)
76
+ .concat(qualifiedExtraFunctionPaths ?? []);
77
+ const childNodesFromPackage = childrenPackages.map((child) => generateFunctionsExplorerTreeNodeDataFromPackage(queryBuilderState, child, rootPackageName));
78
+ const childNodesFromFunction = qualifiedExtraFunctionPaths
79
+ ?.map((path) => functionInfoMap?.get(path))
80
+ .filter(isNonNullable)
81
+ .map((info) => generateFunctionsExplorerTreeNodeDataFromFunctionAnalysisInfo(info));
82
+ childNodesFromPackage
83
+ .concat(childNodesFromFunction ?? [])
71
84
  .forEach((childNode) => {
72
85
  const currentNode = data.nodes.get(childNode.id);
73
86
  if (currentNode) {
@@ -85,25 +98,26 @@ export const getFunctionsExplorerTreeData = (roots, queryBuilderState, rootPacka
85
98
  const validDisplayablePackageSet = getValidDisplayablePackageSet(queryBuilderState, rootPackageName);
86
99
  switch (rootPackageName) {
87
100
  case ROOT_PACKAGE_NAME.PROJECT_DEPENDENCY_ROOT:
88
- if (queryBuilderState.graphManagerState.graph.dependencyManager.functions
89
- .length === 0) {
101
+ if (!queryBuilderState.functionsExplorerState.dependencyFunctionInfoMap ||
102
+ Array.from(queryBuilderState.functionsExplorerState.dependencyFunctionInfoMap).length === 0) {
90
103
  return { rootIds, nodes };
91
104
  }
92
105
  break;
93
106
  default:
94
- if (queryBuilderState.graphManagerState.graph.ownFunctions.length === 0) {
107
+ if (!queryBuilderState.functionsExplorerState.functionInfoMap ||
108
+ Array.from(queryBuilderState.functionsExplorerState.functionInfoMap)
109
+ .length === 0) {
95
110
  return { rootIds, nodes };
96
111
  }
97
112
  }
98
113
  roots.forEach((root) => {
99
114
  root.children
100
115
  .slice()
101
- .filter((child) => !(child instanceof Unit))
102
116
  .filter((child) => child instanceof Package && validDisplayablePackageSet.has(child))
117
+ .map((child) => child)
103
118
  .sort((a, b) => a.name.localeCompare(b.name))
104
- .sort((a, b) => (b instanceof Package ? 1 : 0) - (a instanceof Package ? 1 : 0))
105
119
  .forEach((childPackage) => {
106
- const childTreeNodeData = generateFunctionsExplorerTreeNodeData(queryBuilderState, childPackage, rootPackageName);
120
+ const childTreeNodeData = generateFunctionsExplorerTreeNodeDataFromPackage(queryBuilderState, childPackage, rootPackageName);
107
121
  addUniqueEntry(rootIds, childTreeNodeData.id);
108
122
  nodes.set(childTreeNodeData.id, childTreeNodeData);
109
123
  });
@@ -116,48 +130,61 @@ export const getFunctionsExplorerTreeNodeChildren = (queryBuilderState, node, da
116
130
  .map((id) => data.nodes.get(id))
117
131
  .filter(isNonNullable)
118
132
  .sort(compareLabelFn)
119
- .sort((a, b) => (b.packageableElement instanceof Package ? 1 : 0) -
120
- (a.packageableElement instanceof Package ? 1 : 0));
133
+ .sort((a, b) => (b.package ? 1 : 0) - (a.package ? 1 : 0));
121
134
  };
122
135
  const getAllPackagesFromElement = (element) => {
123
136
  if (element.package) {
124
- return [element.package].concat(getAllPackagesFromElement(element.package));
137
+ return (element instanceof Package ? [element] : []).concat([element.package].concat(getAllPackagesFromElement(element.package)));
125
138
  }
126
139
  return [];
127
140
  };
128
141
  export class QueryFunctionExplorerState {
129
142
  uuid = uuid();
130
143
  queryFunctionsState;
131
- concreteFunctionDefinition;
132
- constructor(queryFunctionsState, concreteFunctionDefinition) {
144
+ functionAnalysisInfo;
145
+ constructor(queryFunctionsState, functionAnalysisInfo) {
133
146
  makeObservable(this, {
134
- concreteFunctionDefinition: observable,
147
+ functionAnalysisInfo: observable,
135
148
  });
136
149
  this.queryFunctionsState = queryFunctionsState;
137
- this.concreteFunctionDefinition = concreteFunctionDefinition;
150
+ this.functionAnalysisInfo = functionAnalysisInfo;
138
151
  }
139
152
  }
140
153
  export class QueryFunctionsExplorerState {
154
+ initState = ActionState.create();
141
155
  queryBuilderState;
142
156
  treeData;
143
157
  dependencyTreeData;
158
+ _functionGraph;
144
159
  functionExplorerStates = [];
145
160
  dependencyFunctionExplorerStates = [];
146
161
  displayablePackagesSet = new Set();
147
162
  dependencyDisplayablePackagesSet = new Set();
163
+ functionInfoMap;
164
+ dependencyFunctionInfoMap;
165
+ packagePathToFunctionInfoMap;
148
166
  constructor(queryBuilderState) {
149
167
  makeObservable(this, {
150
168
  functionExplorerStates: observable.ref,
151
169
  dependencyFunctionExplorerStates: observable.ref,
152
170
  treeData: observable.ref,
153
171
  dependencyTreeData: observable.ref,
172
+ _functionGraph: observable,
173
+ functionInfoMap: observable,
174
+ dependencyFunctionInfoMap: observable,
175
+ packagePathToFunctionInfoMap: observable,
176
+ setFunctionInfoMap: action,
177
+ setDependencyFunctionInfoMap: action,
154
178
  setTreeData: action,
179
+ setPackagePathToFunctionInfoMap: action,
155
180
  setDependencyTreeData: action,
156
181
  refreshTree: action,
157
182
  onTreeNodeSelect: action,
183
+ initializeTreeData: action,
158
184
  });
159
185
  this.queryBuilderState = queryBuilderState;
160
- this.initializeTreeData();
186
+ this._functionGraph =
187
+ this.queryBuilderState.graphManagerState.createNewGraph();
161
188
  }
162
189
  getTreeData(rootPackageName = ROOT_PACKAGE_NAME.MAIN) {
163
190
  switch (rootPackageName) {
@@ -167,17 +194,32 @@ export class QueryFunctionsExplorerState {
167
194
  return this.treeData;
168
195
  }
169
196
  }
197
+ setFunctionInfoMap(info) {
198
+ this.functionInfoMap = info;
199
+ }
200
+ setDependencyFunctionInfoMap(info) {
201
+ this.dependencyFunctionInfoMap = info;
202
+ }
203
+ setPackagePathToFunctionInfoMap(map) {
204
+ this.packagePathToFunctionInfoMap = map;
205
+ }
170
206
  async initializeDisplayablePackagesSet() {
171
- this.queryBuilderState.graphManagerState.graph.ownFunctions
172
- .map((f) => getAllPackagesFromElement(f))
173
- .flat()
174
- .forEach((pkg) => this.displayablePackagesSet.add(pkg));
207
+ if (this.functionInfoMap) {
208
+ Array.from(this.functionInfoMap.values())
209
+ .map((info) => getOrCreateGraphPackage(this._functionGraph, info.packagePath, undefined))
210
+ .map((f) => getAllPackagesFromElement(f))
211
+ .flat()
212
+ .forEach((pkg) => this.displayablePackagesSet.add(pkg));
213
+ }
175
214
  }
176
215
  async initializeDependencyDisplayablePackagesSet() {
177
- this.queryBuilderState.graphManagerState.graph.dependencyManager.functions
178
- .map((f) => getAllPackagesFromElement(f))
179
- .flat()
180
- .forEach((pkg) => this.dependencyDisplayablePackagesSet.add(pkg));
216
+ if (this.dependencyFunctionInfoMap) {
217
+ Array.from(this.dependencyFunctionInfoMap.values())
218
+ .map((info) => getOrCreateGraphPackage(this._functionGraph, info.packagePath, undefined))
219
+ .map((f) => getAllPackagesFromElement(f))
220
+ .flat()
221
+ .forEach((pkg) => this.dependencyDisplayablePackagesSet.add(pkg));
222
+ }
181
223
  }
182
224
  setTreeData(val) {
183
225
  this.treeData = val;
@@ -197,7 +239,7 @@ export class QueryFunctionsExplorerState {
197
239
  return guaranteeNonNullable(this.treeData, 'Query builder functions explorer tree data has not been initialized');
198
240
  }
199
241
  onTreeNodeSelect = (queryBuilderState, node, data, rootPackageName = ROOT_PACKAGE_NAME.MAIN) => {
200
- if (node.packageableElement instanceof Package) {
242
+ if (node.package) {
201
243
  if (node.childrenIds.length) {
202
244
  node.isOpen = !node.isOpen;
203
245
  generateFunctionsExplorerTreeNodeChilrdren(queryBuilderState, node, data, rootPackageName);
@@ -211,25 +253,66 @@ export class QueryFunctionsExplorerState {
211
253
  }
212
254
  }
213
255
  };
256
+ initializeFunctionInfoMap() {
257
+ const functionInfoMap = new Map();
258
+ const dependencyFunctionInfoMap = new Map();
259
+ const functionInfos = buildFunctionAnalysisInfoFromConcreteFunctionDefinition(this.queryBuilderState.graphManagerState.graph.ownFunctions, this._functionGraph);
260
+ functionInfos.forEach((info) => functionInfoMap.set(info.functionPath, info));
261
+ if (this.queryBuilderState.graphManagerState.graph.dependencyManager
262
+ .hasDependencies) {
263
+ const dependencyFunctions = this.queryBuilderState.graphManagerState.graph.dependencyManager
264
+ .functions;
265
+ const dependencyFunctionInfos = buildFunctionAnalysisInfoFromConcreteFunctionDefinition(dependencyFunctions, this._functionGraph);
266
+ dependencyFunctionInfos.forEach((info) => dependencyFunctionInfoMap.set(info.functionPath, info));
267
+ }
268
+ const queryBuilderFunctionAnalysisInfo = this.queryBuilderState.buildFunctionAnalysisInfo();
269
+ if (queryBuilderFunctionAnalysisInfo) {
270
+ Array.from(queryBuilderFunctionAnalysisInfo.functionInfoMap.entries()).forEach(([path, info]) => functionInfoMap.set(path, info));
271
+ Array.from(queryBuilderFunctionAnalysisInfo.dependencyFunctionInfoMap.entries()).forEach(([path, info]) => {
272
+ dependencyFunctionInfoMap.set(path, info);
273
+ });
274
+ }
275
+ const packagePathToFunctionInfoMap = new Map();
276
+ Array.from(functionInfoMap.values())
277
+ .concat(Array.from(dependencyFunctionInfoMap.values()))
278
+ .forEach((info) => {
279
+ const curr = packagePathToFunctionInfoMap.get(info.packagePath);
280
+ if (curr) {
281
+ packagePathToFunctionInfoMap.set(info.packagePath, [...curr, info]);
282
+ }
283
+ else {
284
+ packagePathToFunctionInfoMap.set(info.packagePath, [info]);
285
+ }
286
+ });
287
+ this.setPackagePathToFunctionInfoMap(packagePathToFunctionInfoMap);
288
+ this.setFunctionInfoMap(functionInfoMap);
289
+ this.setDependencyFunctionInfoMap(dependencyFunctionInfoMap);
290
+ }
214
291
  initializeTreeData() {
292
+ if (!this.initState.isInInitialState) {
293
+ return;
294
+ }
295
+ this.initState.inProgress();
296
+ this.initializeFunctionInfoMap();
215
297
  this.initializeDisplayablePackagesSet()
216
298
  .catch(noop())
217
299
  .finally(() => {
218
- this.setTreeData(getFunctionsExplorerTreeData([this.queryBuilderState.graphManagerState.graph.root], this.queryBuilderState));
219
- this.functionExplorerStates =
220
- this.queryBuilderState.graphManagerState.graph.ownFunctions.map((f) => new QueryFunctionExplorerState(this, f));
300
+ this.setTreeData(getFunctionsExplorerTreeData([this._functionGraph.root], this.queryBuilderState, ROOT_PACKAGE_NAME.MAIN));
301
+ this.functionExplorerStates = this.functionInfoMap
302
+ ? Array.from(this.functionInfoMap.values()).map((info) => new QueryFunctionExplorerState(this, info))
303
+ : [];
221
304
  });
222
- if (this.queryBuilderState.graphManagerState.graph.dependencyManager
223
- .hasDependencies) {
305
+ if (this.dependencyFunctionInfoMap) {
224
306
  this.initializeDependencyDisplayablePackagesSet()
225
307
  .catch(noop())
226
308
  .finally(() => {
227
- this.setDependencyTreeData(getFunctionsExplorerTreeData(this.queryBuilderState.graphManagerState.graph.dependencyManager
228
- .roots, this.queryBuilderState, ROOT_PACKAGE_NAME.PROJECT_DEPENDENCY_ROOT));
229
- this.dependencyFunctionExplorerStates =
230
- this.queryBuilderState.graphManagerState.graph.dependencyManager.functions.map((f) => new QueryFunctionExplorerState(this, f));
309
+ this.setDependencyTreeData(getFunctionsExplorerTreeData([this._functionGraph.root], this.queryBuilderState, ROOT_PACKAGE_NAME.PROJECT_DEPENDENCY_ROOT));
310
+ this.dependencyFunctionExplorerStates = this.dependencyFunctionInfoMap
311
+ ? Array.from(this.dependencyFunctionInfoMap.values()).map((info) => new QueryFunctionExplorerState(this, info))
312
+ : [];
231
313
  });
232
314
  }
315
+ this.initState.pass();
233
316
  }
234
317
  }
235
318
  //# sourceMappingURL=QueryFunctionsExplorerState.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryFunctionsExplorerState.js","sourceRoot":"","sources":["../../../src/stores/explorer/QueryFunctionsExplorerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,0BAA0B,EAC1B,OAAO,EACP,IAAI,EACJ,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,IAAI,EACJ,IAAI,GACL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,OAAO,EAGL,cAAc,GACf,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,MAAM,+BAA+B,GAAG,wBAAwB,CAAC;AAMxE,MAAM,OAAO,yCAAyC;IACpD,EAAE,CAAS;IACX,KAAK,CAAS;IACd,WAAW,GAAa,EAAE,CAAC;IAC3B,MAAM,CAAuB;IAC7B,kBAAkB,CAAqB;IAEvC,YACE,EAAU,EACV,KAAa,EACb,kBAAsC;QAEtC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;IAC/C,CAAC;CACF;AAED,MAAM,6BAA6B,GAAG,CACpC,i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B;aAC7D,eAAe,EAClB,CAAC;YACD,IAAI,CAAC,0CAA0C,EAAE;iBAC9C,KAAK,CAAC,IAAI,EAAE,CAAC;iBACb,OAAO,CAAC,GAAG,EAAE;gBACZ,IAAI,CAAC,qBAAqB,CACxB,4BAA4B,CAC1B,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAAC,iBAAiB;qBAC7D,KAAK,EACR,IAAI,CAAC,iBAAiB,EACtB,iBAAiB,CAAC,uBAAuB,CAC1C,CACF,CAAC;gBACF,IAAI,CAAC,gCAAgC;oBACnC,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAAC,iBAAiB,CAAC,SAAS,CAAC,GAAG,CAC5E,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,0BAA0B,CAAC,IAAI,EAAE,CAAC,CAAC,CAC/C,CAAC;YACN,CAAC,CAAC,CAAC;QACP,CAAC;IACH,CAAC;CACF"}
1
+ {"version":3,"file":"QueryFunctionsExplorerState.js","sourceRoot":"","sources":["../../../src/stores/explorer/QueryFunctionsExplorerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,OAAO,EACP,IAAI,EACJ,iBAAiB,EACjB,uDAAuD,EACvD,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,WAAW,EACX,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,IAAI,EACJ,IAAI,GACL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,OAAO,EAGL,cAAc,GACf,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,MAAM,+BAA+B,GAAG,wBAAwB,CAAC;AAMxE,MAAM,OAAO,yCAAyC;IACpD,EAAE,CAAS;IACX,KAAK,CAAS;IACd,WAAW,GAAa,EAAE,CAAC;IAC3B,MAAM,CAAuB;IAC7B,OA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  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "4.15.3",
3
+ "version": "4.15.5",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -42,13 +42,13 @@
42
42
  "test:watch": "jest --watch"
43
43
  },
44
44
  "dependencies": {
45
- "@finos/legend-application": "16.0.3",
46
- "@finos/legend-art": "7.1.62",
47
- "@finos/legend-code-editor": "2.0.4",
48
- "@finos/legend-data-cube": "0.0.9",
49
- "@finos/legend-graph": "31.10.38",
50
- "@finos/legend-lego": "2.0.6",
51
- "@finos/legend-server-depot": "6.0.62",
45
+ "@finos/legend-application": "16.0.4",
46
+ "@finos/legend-art": "7.1.63",
47
+ "@finos/legend-code-editor": "2.0.6",
48
+ "@finos/legend-data-cube": "0.0.11",
49
+ "@finos/legend-graph": "31.10.40",
50
+ "@finos/legend-lego": "2.0.8",
51
+ "@finos/legend-server-depot": "6.0.63",
52
52
  "@finos/legend-shared": "10.0.57",
53
53
  "@finos/legend-storage": "3.0.107",
54
54
  "@testing-library/dom": "10.4.0",
@@ -53,6 +53,8 @@ export enum QUERY_BUILDER_TEST_ID {
53
53
  QUERY_BUILDER_PARAMETERS = 'query-builder__parameters',
54
54
  // constant panel
55
55
  QUERY_BUILDER_CONSTANTS = 'query-builder__constants',
56
+ // function panel
57
+ QUERY_BUILDER_FUNCTIONS = 'query-builder__functions',
56
58
  // other
57
59
  QUERY_BUILDER_TOOLTIP_ICON = 'query-builder__tooltip__icon',
58
60
  // result panel
@@ -66,4 +68,7 @@ export enum QUERY_BUILDER_TEST_ID {
66
68
  QUERY_BUILDER_RESULT_MODIFIER_PANEL = 'query__builder__result__modifier__panel',
67
69
  QUERY_BUILDER_RESULT_MODIFIER_PANEL_SORT_REMOVE_BTN = 'query__builder__projection__options__sort__remove-btn',
68
70
  QUERY_BUILDER_RESULT_MODIFIER_PANEL__WATERMAKR = 'query__builder__result__modifier__panel__watermark',
71
+
72
+ // template query panel
73
+ QUERY_BUILDER_TEMPLATE_QUERY_PANE = 'query__builder__template__query__panel',
69
74
  }
@@ -396,7 +396,10 @@ export const QueryBuilderSidebar = observer(
396
396
  )}
397
397
  </div>
398
398
  </div>
399
- <div className="query-builder__template-query">
399
+ <div
400
+ data-testid={QUERY_BUILDER_TEST_ID.QUERY_BUILDER_TEMPLATE_QUERY_PANE}
401
+ className="query-builder__template-query"
402
+ >
400
403
  {templateQueryPanelContentTab}
401
404
  </div>
402
405
  <div className="query-builder__side-bar__content">{children}</div>
@@ -14,10 +14,9 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { DataCube, DataCubeProvider } from '@finos/legend-data-cube';
17
+ import { DataCube } from '@finos/legend-data-cube';
18
18
  import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
19
19
  import { observer } from 'mobx-react-lite';
20
- import { QueryBuilderDataCubeApplicationEngine } from '../../stores/data-cube/QueryBuilderDataCubeApplicationEngine.js';
21
20
  import {
22
21
  clsx,
23
22
  Dialog,
@@ -31,23 +30,12 @@ import { createDataCubeEngineFromQueryBuilder } from '../../stores/data-cube/Que
31
30
  const QueryBuilderDataCube = observer(
32
31
  (props: { queryBuilderState: QueryBuilderState }) => {
33
32
  const { queryBuilderState } = props;
34
- const applicationStore = new QueryBuilderDataCubeApplicationEngine(
35
- queryBuilderState.applicationStore,
36
- );
37
- const queryBuilderEngine =
38
- createDataCubeEngineFromQueryBuilder(queryBuilderState);
39
- if (!queryBuilderEngine) {
33
+ const engine = createDataCubeEngineFromQueryBuilder(queryBuilderState);
34
+
35
+ if (!engine) {
40
36
  return null;
41
37
  }
42
-
43
- return (
44
- <DataCubeProvider
45
- application={applicationStore}
46
- engine={queryBuilderEngine}
47
- >
48
- <DataCube />
49
- </DataCubeProvider>
50
- );
38
+ return <DataCube engine={engine} />;
51
39
  },
52
40
  );
53
41