@finos/legend-query-builder 4.15.3 → 4.15.4
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/__lib__/QueryBuilderTesting.d.ts +1 -0
- package/lib/__lib__/QueryBuilderTesting.d.ts.map +1 -1
- package/lib/__lib__/QueryBuilderTesting.js +2 -0
- package/lib/__lib__/QueryBuilderTesting.js.map +1 -1
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js +38 -33
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +12 -5
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
- package/lib/index.css +16 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/QueryBuilderState.d.ts +6 -1
- package/lib/stores/QueryBuilderState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderState.js +3 -0
- package/lib/stores/QueryBuilderState.js.map +1 -1
- package/lib/stores/explorer/QueryFunctionsExplorerState.d.ts +17 -6
- package/lib/stores/explorer/QueryFunctionsExplorerState.d.ts.map +1 -1
- package/lib/stores/explorer/QueryFunctionsExplorerState.js +142 -59
- package/lib/stores/explorer/QueryFunctionsExplorerState.js.map +1 -1
- package/package.json +6 -6
- package/src/__lib__/QueryBuilderTesting.ts +2 -0
- package/src/components/explorer/QueryBuilderFunctionsExplorerPanel.tsx +63 -70
- package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +23 -11
- package/src/index.ts +1 -0
- package/src/stores/QueryBuilderState.ts +12 -0
- package/src/stores/explorer/QueryFunctionsExplorerState.ts +227 -94
@@ -13,7 +13,8 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { type PackageableElement,
|
16
|
+
import { type PackageableElement, type FunctionAnalysisInfo, type PureModel, Package, ROOT_PACKAGE_NAME } from '@finos/legend-graph';
|
17
|
+
import { ActionState } from '@finos/legend-shared';
|
17
18
|
import type { QueryBuilderState } from '../QueryBuilderState.js';
|
18
19
|
import { type TreeNodeData, type TreeData } from '@finos/legend-art';
|
19
20
|
export declare const QUERY_BUILDER_FUNCTION_DND_TYPE = "QUERY_BUILDER_FUNCTION";
|
@@ -25,28 +26,37 @@ export declare class QueryBuilderFunctionsExplorerTreeNodeData implements TreeNo
|
|
25
26
|
label: string;
|
26
27
|
childrenIds: string[];
|
27
28
|
isOpen?: boolean | undefined;
|
28
|
-
|
29
|
-
|
29
|
+
package?: PackageableElement;
|
30
|
+
functionAnalysisInfo?: FunctionAnalysisInfo | undefined;
|
31
|
+
constructor(id: string, label: string);
|
30
32
|
}
|
31
|
-
export declare const
|
33
|
+
export declare const generateFunctionsExplorerTreeNodeDataFromFunctionAnalysisInfo: (functionAnalysisInfo: FunctionAnalysisInfo) => QueryBuilderFunctionsExplorerTreeNodeData;
|
32
34
|
export declare const getFunctionsExplorerTreeData: (roots: Package[], queryBuilderState: QueryBuilderState, rootPackageName?: ROOT_PACKAGE_NAME) => TreeData<QueryBuilderFunctionsExplorerTreeNodeData>;
|
33
35
|
export declare const getFunctionsExplorerTreeNodeChildren: (queryBuilderState: QueryBuilderState, node: QueryBuilderFunctionsExplorerTreeNodeData, data: TreeData<QueryBuilderFunctionsExplorerTreeNodeData>, rootPackageName?: ROOT_PACKAGE_NAME) => QueryBuilderFunctionsExplorerTreeNodeData[];
|
34
36
|
export declare class QueryFunctionExplorerState {
|
35
37
|
readonly uuid: string;
|
36
38
|
queryFunctionsState: QueryFunctionsExplorerState;
|
37
|
-
|
38
|
-
constructor(queryFunctionsState: QueryFunctionsExplorerState,
|
39
|
+
functionAnalysisInfo: FunctionAnalysisInfo;
|
40
|
+
constructor(queryFunctionsState: QueryFunctionsExplorerState, functionAnalysisInfo: FunctionAnalysisInfo);
|
39
41
|
}
|
40
42
|
export declare class QueryFunctionsExplorerState {
|
43
|
+
readonly initState: ActionState;
|
41
44
|
queryBuilderState: QueryBuilderState;
|
42
45
|
treeData?: TreeData<QueryBuilderFunctionsExplorerTreeNodeData> | undefined;
|
43
46
|
dependencyTreeData?: TreeData<QueryBuilderFunctionsExplorerTreeNodeData> | undefined;
|
47
|
+
_functionGraph: PureModel;
|
44
48
|
functionExplorerStates: QueryFunctionExplorerState[];
|
45
49
|
dependencyFunctionExplorerStates: QueryFunctionExplorerState[];
|
46
50
|
displayablePackagesSet: Set<Package>;
|
47
51
|
dependencyDisplayablePackagesSet: Set<Package>;
|
52
|
+
functionInfoMap?: Map<string, FunctionAnalysisInfo>;
|
53
|
+
dependencyFunctionInfoMap?: Map<string, FunctionAnalysisInfo>;
|
54
|
+
packagePathToFunctionInfoMap?: Map<string, FunctionAnalysisInfo[]>;
|
48
55
|
constructor(queryBuilderState: QueryBuilderState);
|
49
56
|
getTreeData(rootPackageName?: ROOT_PACKAGE_NAME): TreeData<QueryBuilderFunctionsExplorerTreeNodeData> | undefined;
|
57
|
+
setFunctionInfoMap(info: Map<string, FunctionAnalysisInfo>): void;
|
58
|
+
setDependencyFunctionInfoMap(info: Map<string, FunctionAnalysisInfo>): void;
|
59
|
+
setPackagePathToFunctionInfoMap(map: Map<string, FunctionAnalysisInfo[]>): void;
|
50
60
|
initializeDisplayablePackagesSet(): Promise<void>;
|
51
61
|
initializeDependencyDisplayablePackagesSet(): Promise<void>;
|
52
62
|
setTreeData(val: TreeData<QueryBuilderFunctionsExplorerTreeNodeData> | undefined): void;
|
@@ -54,6 +64,7 @@ export declare class QueryFunctionsExplorerState {
|
|
54
64
|
refreshTree(): void;
|
55
65
|
get nonNullableTreeData(): TreeData<QueryBuilderFunctionsExplorerTreeNodeData>;
|
56
66
|
onTreeNodeSelect: (queryBuilderState: QueryBuilderState, node: QueryBuilderFunctionsExplorerTreeNodeData, data: TreeData<QueryBuilderFunctionsExplorerTreeNodeData>, rootPackageName?: ROOT_PACKAGE_NAME) => void;
|
67
|
+
initializeFunctionInfoMap(): void;
|
57
68
|
initializeTreeData(): void;
|
58
69
|
}
|
59
70
|
//# sourceMappingURL=QueryFunctionsExplorerState.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryFunctionsExplorerState.d.ts","sourceRoot":"","sources":["../../../src/stores/explorer/QueryFunctionsExplorerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,kBAAkB,EACvB,
|
1
|
+
{"version":3,"file":"QueryFunctionsExplorerState.d.ts","sourceRoot":"","sources":["../../../src/stores/explorer/QueryFunctionsExplorerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,OAAO,EAEP,iBAAiB,EAGlB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,WAAW,EAMZ,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,QAAQ,EAEd,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,+BAA+B,2BAA2B,CAAC;AAExE,MAAM,WAAW,uCAAuC;IACtD,IAAI,EAAE,yCAAyC,CAAC;CACjD;AAED,qBAAa,yCAA0C,YAAW,YAAY;IAC5E,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,EAAE,CAAM;IAC3B,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,oBAAoB,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;gBAE5C,EAAE,EAAE,MAAM,EAAE,KAAK,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ACvC,QAAQ,CAAC,yCAAyC,CAAC,GAAG,SAAS;IASlE,kBAAkB,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE,oBAAoB,CAAC;IAI1D,4BAA4B,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE,oBAAoB,CAAC;IAIpE,+BAA+B,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,EAAE,oBAAoB,EAAE,CAAC;IAIlE,gCAAgC,IAAI,OAAO,CAAC,IAAI,CAAC;IAgBjD,0CAA0C,IAAI,OAAO,CAAC,IAAI,CAAC;IAgBjE,WAAW,CACT,GAAG,EAAE,QAAQ,CAAC,yCAAyC,CAAC,GAAG,SAAS,GACnE,IAAI;IAIP,qBAAqB,CACnB,GAAG,EAAE,QAAQ,CAAC,yCAAyC,CAAC,GAAG,SAAS,GACnE,IAAI;IAIP,WAAW,IAAI,IAAI;IASnB,IAAI,mBAAmB,IAAI,QAAQ,CAAC,yCAAyC,CAAC,CAK7E;IAED,gBAAgB,sBACK,iBAAiB,QAC9B,yCAAyC,QACzC,QAAQ,CAAC,yCAAyC,CAAC,0CAExD,IAAI,CAmBL;IAEF,yBAAyB,IAAI,IAAI;IA0DjC,kBAAkB,IAAI,IAAI;CA2C3B"}
|
@@ -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 { 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
|
-
|
27
|
-
|
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
|
-
|
42
|
+
const generateFunctionsExplorerTreeNodeDataFromPackage = (queryBuilderState, element, rootPackageName) => ({
|
43
43
|
id: element.path,
|
44
44
|
label: element.name,
|
45
|
-
childrenIds: element
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
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
|
-
|
58
|
-
.
|
59
|
-
|
60
|
-
|
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
|
-
|
69
|
-
child
|
70
|
-
|
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.
|
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.
|
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 =
|
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.
|
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
|
-
|
132
|
-
constructor(queryFunctionsState,
|
144
|
+
functionAnalysisInfo;
|
145
|
+
constructor(queryFunctionsState, functionAnalysisInfo) {
|
133
146
|
makeObservable(this, {
|
134
|
-
|
147
|
+
functionAnalysisInfo: observable,
|
135
148
|
});
|
136
149
|
this.queryFunctionsState = queryFunctionsState;
|
137
|
-
this.
|
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.
|
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.
|
172
|
-
.
|
173
|
-
|
174
|
-
|
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.
|
178
|
-
.
|
179
|
-
|
180
|
-
|
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.
|
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.
|
219
|
-
this.functionExplorerStates =
|
220
|
-
this.
|
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.
|
223
|
-
.hasDependencies) {
|
305
|
+
if (this.dependencyFunctionInfoMap) {
|
224
306
|
this.initializeDependencyDisplayablePackagesSet()
|
225
307
|
.catch(noop())
|
226
308
|
.finally(() => {
|
227
|
-
this.setDependencyTreeData(getFunctionsExplorerTreeData(this.
|
228
|
-
|
229
|
-
|
230
|
-
|
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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C,YAAY,CAAC,GAAG,CAC7D,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,0BAA0B,CAAC,IAAI,EAAE,CAAC,CAAC,CAC/C,CAAC;QACN,CAAC,CAAC,CAAC;QACL,IACE,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAAC,iBAAiB;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,E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0BAA0B,CAAC,IAAI,EAAE,IAAI,CAAC,CACrD;oBACH,CAAC,CAAC,EAAE,CAAC;YACT,CAAC,CAAC,CAAC;QACP,CAAC;QACD,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IACxB,CAAC;CACF"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-query-builder",
|
3
|
-
"version": "4.15.
|
3
|
+
"version": "4.15.4",
|
4
4
|
"description": "Legend query builder core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -44,11 +44,11 @@
|
|
44
44
|
"dependencies": {
|
45
45
|
"@finos/legend-application": "16.0.3",
|
46
46
|
"@finos/legend-art": "7.1.62",
|
47
|
-
"@finos/legend-code-editor": "2.0.
|
48
|
-
"@finos/legend-data-cube": "0.0.
|
49
|
-
"@finos/legend-graph": "31.10.
|
50
|
-
"@finos/legend-lego": "2.0.
|
51
|
-
"@finos/legend-server-depot": "6.0.
|
47
|
+
"@finos/legend-code-editor": "2.0.5",
|
48
|
+
"@finos/legend-data-cube": "0.0.10",
|
49
|
+
"@finos/legend-graph": "31.10.39",
|
50
|
+
"@finos/legend-lego": "2.0.7",
|
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
|