@finos/legend-query-builder 4.10.0 → 4.10.2
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/__lib__/QueryBuilderEvent.d.ts +2 -1
- package/lib/__lib__/QueryBuilderEvent.d.ts.map +1 -1
- package/lib/__lib__/QueryBuilderEvent.js +1 -0
- package/lib/__lib__/QueryBuilderEvent.js.map +1 -1
- package/lib/__lib__/QueryBuilderTesting.d.ts +1 -0
- package/lib/__lib__/QueryBuilderTesting.d.ts.map +1 -1
- package/lib/__lib__/QueryBuilderTesting.js +1 -0
- package/lib/__lib__/QueryBuilderTesting.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +2 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js.map +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.d.ts +3 -2
- package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.js +145 -8
- package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
- package/lib/graph/QueryBuilderMetaModelConst.d.ts +22 -1
- package/lib/graph/QueryBuilderMetaModelConst.d.ts.map +1 -1
- package/lib/graph/QueryBuilderMetaModelConst.js +24 -0
- package/lib/graph/QueryBuilderMetaModelConst.js.map +1 -1
- package/lib/index.css +0 -16
- package/lib/index.d.ts +2 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/QueryBuilderPreviewDataHelper.d.ts.map +1 -1
- package/lib/stores/QueryBuilderPreviewDataHelper.js +2 -1
- package/lib/stores/QueryBuilderPreviewDataHelper.js.map +1 -1
- package/lib/stores/QueryBuilderState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderState.js +2 -0
- package/lib/stores/QueryBuilderState.js.map +1 -1
- package/lib/stores/QueryBuilderTypeaheadHelper.d.ts.map +1 -1
- package/lib/stores/QueryBuilderTypeaheadHelper.js +1 -1
- package/lib/stores/QueryBuilderTypeaheadHelper.js.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.d.ts +4 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.js +37 -3
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.js.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.d.ts +1 -4
- package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.js +1 -5
- package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.js +2 -2
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.d.ts +3 -2
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js +9 -0
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js +2 -4
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.d.ts +2 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts +1 -15
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js +3 -44
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js +13 -3
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js +3 -2
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts +2 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js +2 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js +2 -2
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js +3 -10
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowState.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowState.d.ts.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.d.ts +7 -1
- package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.js +27 -0
- package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
- package/package.json +5 -5
- package/src/__lib__/QueryBuilderEvent.ts +1 -0
- package/src/__lib__/QueryBuilderTesting.ts +1 -0
- package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +2 -4
- package/src/components/fetch-structure/QueryBuilderTDSWindowPanel.tsx +1 -1
- package/src/components/filter/QueryBuilderFilterPanel.tsx +239 -21
- package/src/graph/QueryBuilderMetaModelConst.ts +25 -0
- package/src/index.ts +9 -2
- package/src/stores/QueryBuilderPreviewDataHelper.ts +2 -4
- package/src/stores/QueryBuilderState.ts +5 -0
- package/src/stores/QueryBuilderTypeaheadHelper.ts +2 -4
- package/src/stores/fetch-structure/tds/QueryBuilderTDSHelper.ts +58 -2
- package/src/stores/fetch-structure/tds/QueryResultSetModifierState.ts +1 -5
- package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.ts +5 -9
- package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.ts +16 -2
- package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.ts +2 -4
- package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.ts +1 -1
- package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.ts +1 -50
- package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.ts +22 -4
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.ts +4 -4
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts +1 -1
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts +5 -5
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +5 -15
- package/src/stores/fetch-structure/tds/window/QueryBuilderWindowState.ts +1 -1
- package/src/stores/filter/QueryBuilderFilterState.ts +40 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderWindowState.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/window/QueryBuilderWindowState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAqB,KAAK,IAAI,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAML,KAAK,QAAQ,EACd,MAAM,sBAAsB,CAAC;AAI9B,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,oDAAoD,CAAC;AACjH,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,EAAE,
|
1
|
+
{"version":3,"file":"QueryBuilderWindowState.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/window/QueryBuilderWindowState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAqB,KAAK,IAAI,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAML,KAAK,QAAQ,EACd,MAAM,sBAAsB,CAAC;AAI9B,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,oDAAoD,CAAC;AACjH,OAAO,EAAE,0BAA0B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AC,QAAQ,EAAE,8BAA8B,GAAG,IAAI;IAsC9D,YAAY,CAAC,MAAM,EAAE,gBAAgB,GAAG,SAAS,GAAG,IAAI;IAkBxD,IAAI,QAAQ,IAAI,MAAM,CAQrB;CACF;AAED,qBAAa,uBAAwB,YAAW,QAAQ;IACtD,QAAQ,CAAC,QAAQ,EAAE,oBAAoB,CAAC;IACxC,aAAa,EAAE,6BAA6B,EAAE,CAAM;IACpD,SAAS,EAAE,8BAA8B,EAAE,CAAC;IAC5C,UAAU,EAAE,6BAA6B,GAAG,SAAS,CAAC;gBAGpD,QAAQ,EAAE,oBAAoB,EAC9B,SAAS,EAAE,8BAA8B,EAAE;IAgB7C,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,IAAI,wBAAwB,IAAI,mCAAmC,EAAE,CA2BpE;IAED,IAAI,sBAAsB,IAAI,MAAM,EAAE,CAkBrC;IAED,IAAI,oBAAoB,IAAI,0BAA0B,EAAE,CAEvD;IAED,aAAa,CAAC,GAAG,EAAE,6BAA6B,GAAG,SAAS,GAAG,IAAI;IAInE,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,8BAA8B,GAAG,SAAS;IAItE,eAAe,CAAC,SAAS,EAAE,6BAA6B,GAAG,IAAI;IAI/D,YAAY,CAAC,MAAM,EAAE,6BAA6B,GAAG,IAAI;IAIzD,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI;IASpD,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO;IAMnE,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF"}
|
@@ -112,11 +112,17 @@ export declare class QueryBuilderFilterState implements TreeData<QueryBuilderFil
|
|
112
112
|
setSelectedNode(val: QueryBuilderFilterTreeNodeData | undefined): void;
|
113
113
|
getNode(id: string): QueryBuilderFilterTreeNodeData;
|
114
114
|
getRootNode(): QueryBuilderFilterTreeNodeData | undefined;
|
115
|
-
|
115
|
+
getParentNode(node: QueryBuilderFilterTreeNodeData): QueryBuilderFilterTreeOperationNodeData | undefined;
|
116
116
|
private addRootNode;
|
117
117
|
addNodeFromNode(node: QueryBuilderFilterTreeNodeData, fromNode: QueryBuilderFilterTreeNodeData | undefined): void;
|
118
118
|
replaceBlankNodeWithNode(node: QueryBuilderFilterTreeNodeData, blankNode: QueryBuilderFilterTreeBlankConditionNodeData): void;
|
119
119
|
addGroupConditionNodeFromNode(fromNode: QueryBuilderFilterTreeNodeData | undefined): void;
|
120
|
+
/**
|
121
|
+
*
|
122
|
+
* Function to create group condition from node where either of the
|
123
|
+
* child nodes of group condition is `exists` node
|
124
|
+
*/
|
125
|
+
newGroupConditionFromNode(fromNode: QueryBuilderFilterTreeConditionNodeData | QueryBuilderFilterTreeExistsNodeData, node?: QueryBuilderFilterTreeConditionNodeData | QueryBuilderFilterTreeExistsNodeData | undefined, operation?: QUERY_BUILDER_GROUP_OPERATION | undefined): QueryBuilderFilterTreeGroupNodeData;
|
120
126
|
newGroupWithConditionFromNode(node: QueryBuilderFilterTreeNodeData | undefined, fromNode: QueryBuilderFilterTreeNodeData | undefined): void;
|
121
127
|
private removeNode;
|
122
128
|
private pruneChildlessGroupNodes;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderFilterState.d.ts","sourceRoot":"","sources":["../../../src/stores/filter/QueryBuilderFilterState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EACL,KAAK,WAAW,EAWhB,WAAW,EACX,KAAK,QAAQ,EAGd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,0CAA0C,CAAC;AACnG,OAAO,EAAE,mCAAmC,EAAE,MAAM,uCAAuC,CAAC;AAC5F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CA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AAwB,CAAC,IAAI,EAAE,8BAA8B,GAAG,IAAI;IA6BpE,SAAS,IAAI,IAAI;IAiDjB;;OAEG;IACH,YAAY,IAAI,IAAI;IAsCpB,WAAW,CACT,IAAI,EAAE,8BAA8B,EACpC,MAAM,EAAE,8BAA8B,GACrC,OAAO;IAeV,QAAQ,CACN,IAAI,EAAE,8BAA8B,EACpC,MAAM,EAAE,8BAA8B,GACrC,IAAI;IAIP,YAAY,IAAI,IAAI;IAIpB,UAAU,IAAI,IAAI;IAIlB,cAAc,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO;IAUrD,IAAI,QAAQ,IAAI,MAAM,CAMrB;CACF"}
|
@@ -298,6 +298,7 @@ export class QueryBuilderFilterState {
|
|
298
298
|
addNodeFromNode: action,
|
299
299
|
replaceBlankNodeWithNode: action,
|
300
300
|
addGroupConditionNodeFromNode: action,
|
301
|
+
newGroupConditionFromNode: action,
|
301
302
|
newGroupWithConditionFromNode: action,
|
302
303
|
removeNodeAndPruneBranch: action,
|
303
304
|
pruneTree: action,
|
@@ -423,6 +424,32 @@ export class QueryBuilderFilterState {
|
|
423
424
|
newGroupNode.addChildNode(newBlankConditionNode2);
|
424
425
|
this.addNodeFromNode(newGroupNode, fromNode);
|
425
426
|
}
|
427
|
+
/**
|
428
|
+
*
|
429
|
+
* Function to create group condition from node where either of the
|
430
|
+
* child nodes of group condition is `exists` node
|
431
|
+
*/
|
432
|
+
newGroupConditionFromNode(fromNode, node, operation) {
|
433
|
+
const fromNodeParent = this.getParentNode(fromNode);
|
434
|
+
const newGroupNode = new QueryBuilderFilterTreeGroupNodeData(undefined, operation ?? QUERY_BUILDER_GROUP_OPERATION.AND);
|
435
|
+
this.nodes.set(newGroupNode.id, newGroupNode);
|
436
|
+
fromNodeParent?.removeChildNode(fromNode);
|
437
|
+
newGroupNode.addChildNode(fromNode);
|
438
|
+
if (node) {
|
439
|
+
this.nodes.set(node.id, node);
|
440
|
+
newGroupNode.addChildNode(node);
|
441
|
+
}
|
442
|
+
newGroupNode.lambdaParameterName =
|
443
|
+
fromNodeParent?.lambdaParameterName ?? this.lambdaParameterName;
|
444
|
+
if (fromNodeParent) {
|
445
|
+
fromNodeParent.addChildNode(newGroupNode);
|
446
|
+
}
|
447
|
+
else {
|
448
|
+
deleteEntry(this.rootIds, fromNode.id);
|
449
|
+
this.addRootNode(newGroupNode);
|
450
|
+
}
|
451
|
+
return newGroupNode;
|
452
|
+
}
|
426
453
|
newGroupWithConditionFromNode(node, fromNode) {
|
427
454
|
const newNode = node ?? new QueryBuilderFilterTreeBlankConditionNodeData(undefined);
|
428
455
|
if (fromNode instanceof QueryBuilderFilterTreeConditionNodeData) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderFilterState.js","sourceRoot":"","sources":["../../../src/stores/filter/QueryBuilderFilterState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE1E,OAAO,EAEL,UAAU,EACV,qBAAqB,EACrB,oBAAoB,EACpB,aAAa,EACb,iBAAiB,EACjB,IAAI,EACJ,cAAc,EACd,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,WAAW,EAEX,SAAS,EACT,aAAa,GACd,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,mCAAmC,EAAE,MAAM,uCAAuC,CAAC;AAE5F,OAAO,EAKL,0BAA0B,GAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AAExE,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,EAAE,kCAAkC,EAAE,MAAM,kCAAkC,CAAC;AACtF,OAAO,EAAE,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AAC;IACJ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,YAAY;YAC/C,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC;YACvB,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;SAC3C,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-query-builder",
|
3
|
-
"version": "4.10.
|
3
|
+
"version": "4.10.2",
|
4
4
|
"description": "Legend query builder core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -42,10 +42,10 @@
|
|
42
42
|
"test:watch": "jest --watch"
|
43
43
|
},
|
44
44
|
"dependencies": {
|
45
|
-
"@finos/legend-application": "15.0.
|
46
|
-
"@finos/legend-art": "7.0
|
47
|
-
"@finos/legend-graph": "31.3.
|
48
|
-
"@finos/legend-lego": "1.1.
|
45
|
+
"@finos/legend-application": "15.0.46",
|
46
|
+
"@finos/legend-art": "7.1.0",
|
47
|
+
"@finos/legend-graph": "31.3.7",
|
48
|
+
"@finos/legend-lego": "1.1.41",
|
49
49
|
"@finos/legend-server-depot": "6.0.31",
|
50
50
|
"@finos/legend-shared": "10.0.27",
|
51
51
|
"@finos/legend-storage": "3.0.77",
|
@@ -26,6 +26,7 @@ export enum QUERY_BUILDER_EVENT {
|
|
26
26
|
|
27
27
|
MAPPING_MODEL_COVERAGE_ANALYSYS__LAUNCH = 'query-builder.mapping-model-coverage-analysis.launch',
|
28
28
|
MAPPING_MODEL_COVERAGE_ANALYSYS__SUCCESS = 'query-builder.mapping-model-coverage-analysis.success',
|
29
|
+
UNSUPPORTED_QUERY_LAUNCH = 'query-builder.unsupported-query.lanuch',
|
29
30
|
}
|
30
31
|
|
31
32
|
export enum QUERY_BUILDER_FILTER_EVENT {
|
@@ -28,6 +28,7 @@ export enum QUERY_BUILDER_TEST_ID {
|
|
28
28
|
QUERY_BUILDER_FILTER_TREE = 'query__builder__filter__tree',
|
29
29
|
QUERY_BUILDER_FILTER_TREE_NODE = 'query__builder__filter__tree__node',
|
30
30
|
QUERY_BUILDER_FILTER_TREE_NODE_CONTENT = 'query__builder__filter__tree__node-content',
|
31
|
+
QUERY_BUILDER_FILTER_TREE_CONDITION_NODE_CONTENT = 'query__builder__filter__tree__condition__node-content',
|
31
32
|
// post filter
|
32
33
|
QUERY_BUILDER_POST_FILTER_PANEL = 'query__builder__post__filter-panel',
|
33
34
|
QUERY_BUILDER_POST_FILTER_TREE_NODE_CONTENT = 'query__builder__post__filter-tree-node__content',
|
@@ -32,14 +32,12 @@ import {
|
|
32
32
|
MenuContentItem,
|
33
33
|
ModalFooterButton,
|
34
34
|
} from '@finos/legend-art';
|
35
|
-
import {
|
36
|
-
COLUMN_SORT_TYPE,
|
37
|
-
SortColumnState,
|
38
|
-
} from '../../stores/fetch-structure/tds/QueryResultSetModifierState.js';
|
35
|
+
import { SortColumnState } from '../../stores/fetch-structure/tds/QueryResultSetModifierState.js';
|
39
36
|
import { guaranteeNonNullable } from '@finos/legend-shared';
|
40
37
|
import { useApplicationStore } from '@finos/legend-application';
|
41
38
|
import type { QueryBuilderTDSState } from '../../stores/fetch-structure/tds/QueryBuilderTDSState.js';
|
42
39
|
import type { QueryBuilderTDSColumnState } from '../../stores/fetch-structure/tds/QueryBuilderTDSColumnState.js';
|
40
|
+
import { COLUMN_SORT_TYPE } from '../../graph/QueryBuilderMetaModelConst.js';
|
43
41
|
|
44
42
|
const ColumnSortEditor = observer(
|
45
43
|
(props: { tdsState: QueryBuilderTDSState; sortState: SortColumnState }) => {
|
@@ -66,9 +66,9 @@ import {
|
|
66
66
|
import { QUERY_BUILDER_PROJECTION_COLUMN_DND_TYPE } from '../../stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
|
67
67
|
import type { QueryBuilderTDSColumnState } from '../../stores/fetch-structure/tds/QueryBuilderTDSColumnState.js';
|
68
68
|
import type { QueryBuilderTDSState } from '../../stores/fetch-structure/tds/QueryBuilderTDSState.js';
|
69
|
-
import { COLUMN_SORT_TYPE } from '../../stores/fetch-structure/tds/QueryResultSetModifierState.js';
|
70
69
|
import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
|
71
70
|
import { QueryBuilderPanelIssueCountBadge } from '../shared/QueryBuilderPanelIssueCountBadge.js';
|
71
|
+
import { COLUMN_SORT_TYPE } from '../../graph/QueryBuilderMetaModelConst.js';
|
72
72
|
|
73
73
|
// helpers
|
74
74
|
const createWindowColumnState = (
|
@@ -113,6 +113,7 @@ import {
|
|
113
113
|
import { QueryBuilderTelemetryHelper } from '../../__lib__/QueryBuilderTelemetryHelper.js';
|
114
114
|
import { getPropertyChainName } from '../../stores/QueryBuilderPropertyEditorState.js';
|
115
115
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../graph/QueryBuilderMetaModelConst.js';
|
116
|
+
import { buildPropertyExpressionChain } from '../../stores/QueryBuilderValueSpecificationBuilderHelper.js';
|
116
117
|
|
117
118
|
const isCollectionProperty = (
|
118
119
|
propertyExpression: AbstractPropertyExpression,
|
@@ -151,7 +152,7 @@ const isCollectionProperty = (
|
|
151
152
|
export const buildFilterTreeWithExists = (
|
152
153
|
propertyExpression: AbstractPropertyExpression,
|
153
154
|
filterState: QueryBuilderFilterState,
|
154
|
-
targetDropNode?:
|
155
|
+
targetDropNode?: QueryBuilderFilterTreeNodeData,
|
155
156
|
): void => {
|
156
157
|
// 1. Decompose property expression
|
157
158
|
const expressions: (AbstractPropertyExpression | SimpleFunctionExpression)[] =
|
@@ -294,7 +295,21 @@ export const buildFilterTreeWithExists = (
|
|
294
295
|
.value.path,
|
295
296
|
);
|
296
297
|
if (parentPropertyChainIndex >= 0) {
|
297
|
-
parentNode
|
298
|
+
// Here we choose parentNode based on what the type of targetDropNode
|
299
|
+
// 1. QueryBuilderFilterTreeConditionNodeData: In this case we would want to
|
300
|
+
// add a new group condition from the targetDropNode and add new exists node
|
301
|
+
// getting created as it's child so the parent would be the new group node
|
302
|
+
// 2. QueryBuilderFilterTreeGroupNodeData: Parent node would be same as
|
303
|
+
// targetDropNode
|
304
|
+
// 3. QueryBuilderFilterTreeBlankConditionNodeData: parentNode would be the
|
305
|
+
// parent of the targetDropNode. At the end we would deelete this blank node
|
306
|
+
// that got created.
|
307
|
+
parentNode =
|
308
|
+
targetDropNode instanceof QueryBuilderFilterTreeConditionNodeData
|
309
|
+
? filterState.newGroupConditionFromNode(targetDropNode)
|
310
|
+
: targetDropNode instanceof QueryBuilderFilterTreeGroupNodeData
|
311
|
+
? targetDropNode
|
312
|
+
: filterState.getParentNode(targetDropNode);
|
298
313
|
existsLambdaPropertyChains = existsLambdaPropertyChains.slice(
|
299
314
|
parentPropertyChainIndex + 1,
|
300
315
|
);
|
@@ -303,7 +318,12 @@ export const buildFilterTreeWithExists = (
|
|
303
318
|
);
|
304
319
|
}
|
305
320
|
} else if (!parentId) {
|
306
|
-
parentNode =
|
321
|
+
parentNode =
|
322
|
+
targetDropNode instanceof QueryBuilderFilterTreeConditionNodeData
|
323
|
+
? filterState.newGroupConditionFromNode(targetDropNode)
|
324
|
+
: targetDropNode instanceof QueryBuilderFilterTreeGroupNodeData
|
325
|
+
? targetDropNode
|
326
|
+
: filterState.getParentNode(targetDropNode);
|
307
327
|
}
|
308
328
|
}
|
309
329
|
}
|
@@ -332,6 +352,127 @@ export const buildFilterTreeWithExists = (
|
|
332
352
|
filterConditionState,
|
333
353
|
);
|
334
354
|
filterState.addNodeFromNode(treeNode, parentNode);
|
355
|
+
if (targetDropNode instanceof QueryBuilderFilterTreeBlankConditionNodeData) {
|
356
|
+
filterState.removeNodeAndPruneBranch(targetDropNode);
|
357
|
+
}
|
358
|
+
};
|
359
|
+
|
360
|
+
export const buildPropertyExpressionFromExistsNode = (
|
361
|
+
filterState: QueryBuilderFilterState,
|
362
|
+
existsNode: QueryBuilderFilterTreeExistsNodeData,
|
363
|
+
node: QueryBuilderFilterTreeConditionNodeData,
|
364
|
+
): AbstractPropertyExpression => {
|
365
|
+
let nodeParent = filterState.getParentNode(node);
|
366
|
+
let existsLambdaParameterNames: string[] = [];
|
367
|
+
let existsLambdaExpressions: AbstractPropertyExpression[] = [];
|
368
|
+
existsLambdaExpressions.push(
|
369
|
+
node.condition.propertyExpressionState.propertyExpression,
|
370
|
+
);
|
371
|
+
existsLambdaParameterNames.push(
|
372
|
+
nodeParent?.lambdaParameterName ?? filterState.lambdaParameterName,
|
373
|
+
);
|
374
|
+
while (nodeParent && nodeParent.id !== existsNode.id) {
|
375
|
+
if (nodeParent instanceof QueryBuilderFilterTreeExistsNodeData) {
|
376
|
+
existsLambdaExpressions.push(
|
377
|
+
nodeParent.propertyExpressionState.propertyExpression,
|
378
|
+
);
|
379
|
+
existsLambdaParameterNames.push(
|
380
|
+
nodeParent.lambdaParameterName ?? filterState.lambdaParameterName,
|
381
|
+
);
|
382
|
+
}
|
383
|
+
nodeParent = filterState.getParentNode(nodeParent);
|
384
|
+
}
|
385
|
+
if (nodeParent?.id === existsNode.id) {
|
386
|
+
existsLambdaExpressions.push(
|
387
|
+
existsNode.propertyExpressionState.propertyExpression,
|
388
|
+
);
|
389
|
+
existsLambdaParameterNames.push(
|
390
|
+
existsNode.lambdaParameterName ?? filterState.lambdaParameterName,
|
391
|
+
);
|
392
|
+
}
|
393
|
+
existsLambdaParameterNames = existsLambdaParameterNames.reverse();
|
394
|
+
existsLambdaExpressions = existsLambdaExpressions.reverse();
|
395
|
+
|
396
|
+
const initialPropertyExpression = guaranteeNonNullable(
|
397
|
+
existsLambdaExpressions[0],
|
398
|
+
);
|
399
|
+
existsLambdaParameterNames = existsLambdaParameterNames.slice(1);
|
400
|
+
existsLambdaExpressions = existsLambdaExpressions.slice(1);
|
401
|
+
|
402
|
+
let flattenedPropertyExpressionChain = new AbstractPropertyExpression('');
|
403
|
+
flattenedPropertyExpressionChain.func = initialPropertyExpression.func;
|
404
|
+
flattenedPropertyExpressionChain.parametersValues = [
|
405
|
+
...initialPropertyExpression.parametersValues,
|
406
|
+
];
|
407
|
+
for (const exp of existsLambdaExpressions) {
|
408
|
+
// when rebuilding the property expression chain, disregard the initial variable that starts the chain
|
409
|
+
const expressions: (
|
410
|
+
| AbstractPropertyExpression
|
411
|
+
| SimpleFunctionExpression
|
412
|
+
)[] = [];
|
413
|
+
let currentExpression: ValueSpecification = exp;
|
414
|
+
while (
|
415
|
+
currentExpression instanceof AbstractPropertyExpression ||
|
416
|
+
(currentExpression instanceof SimpleFunctionExpression &&
|
417
|
+
matchFunctionName(
|
418
|
+
currentExpression.functionName,
|
419
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUBTYPE,
|
420
|
+
))
|
421
|
+
) {
|
422
|
+
if (currentExpression instanceof SimpleFunctionExpression) {
|
423
|
+
const functionExpression = new SimpleFunctionExpression(
|
424
|
+
extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUBTYPE),
|
425
|
+
);
|
426
|
+
functionExpression.parametersValues.unshift(
|
427
|
+
guaranteeNonNullable(currentExpression.parametersValues[1]),
|
428
|
+
);
|
429
|
+
expressions.push(functionExpression);
|
430
|
+
} else if (currentExpression instanceof AbstractPropertyExpression) {
|
431
|
+
const propertyExp = new AbstractPropertyExpression('');
|
432
|
+
propertyExp.func = currentExpression.func;
|
433
|
+
// NOTE: we must retain the rest of the parameters as those are derived property parameters
|
434
|
+
propertyExp.parametersValues =
|
435
|
+
currentExpression.parametersValues.length > 1
|
436
|
+
? currentExpression.parametersValues.slice(1)
|
437
|
+
: [];
|
438
|
+
expressions.push(propertyExp);
|
439
|
+
}
|
440
|
+
currentExpression = guaranteeNonNullable(
|
441
|
+
currentExpression.parametersValues[0],
|
442
|
+
);
|
443
|
+
}
|
444
|
+
assertTrue(
|
445
|
+
expressions.length > 0,
|
446
|
+
`Can't process exists() expression: exists() usage with non-chain property expression is not supported`,
|
447
|
+
);
|
448
|
+
for (let i = 0; i < expressions.length - 1; ++i) {
|
449
|
+
(
|
450
|
+
expressions[i] as AbstractPropertyExpression | SimpleFunctionExpression
|
451
|
+
).parametersValues.unshift(
|
452
|
+
expressions[i + 1] as
|
453
|
+
| AbstractPropertyExpression
|
454
|
+
| SimpleFunctionExpression,
|
455
|
+
);
|
456
|
+
}
|
457
|
+
(
|
458
|
+
expressions[expressions.length - 1] as
|
459
|
+
| AbstractPropertyExpression
|
460
|
+
| SimpleFunctionExpression
|
461
|
+
).parametersValues.unshift(flattenedPropertyExpressionChain);
|
462
|
+
flattenedPropertyExpressionChain = guaranteeType(
|
463
|
+
expressions[0],
|
464
|
+
AbstractPropertyExpression,
|
465
|
+
`Can't process exists() expression: can't flatten to a property expression`,
|
466
|
+
);
|
467
|
+
}
|
468
|
+
return guaranteeType(
|
469
|
+
buildPropertyExpressionChain(
|
470
|
+
flattenedPropertyExpressionChain,
|
471
|
+
filterState.queryBuilderState,
|
472
|
+
existsNode.lambdaParameterName ?? filterState.lambdaParameterName,
|
473
|
+
),
|
474
|
+
AbstractPropertyExpression,
|
475
|
+
);
|
335
476
|
};
|
336
477
|
|
337
478
|
/**
|
@@ -340,7 +481,7 @@ export const buildFilterTreeWithExists = (
|
|
340
481
|
const buildFilterTree = (
|
341
482
|
propertyExpression: AbstractPropertyExpression,
|
342
483
|
filterState: QueryBuilderFilterState,
|
343
|
-
targetDropNode?:
|
484
|
+
targetDropNode?: QueryBuilderFilterTreeNodeData | undefined,
|
344
485
|
): void => {
|
345
486
|
if (isCollectionProperty(propertyExpression)) {
|
346
487
|
const propertyChainName = getPropertyChainName(
|
@@ -383,12 +524,88 @@ const buildFilterTree = (
|
|
383
524
|
undefined,
|
384
525
|
filterConditionState,
|
385
526
|
);
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
527
|
+
// Check if there are any exists node present in the parent nodes of the target.
|
528
|
+
// This would change the way we build the filter tree
|
529
|
+
let cn: QueryBuilderFilterTreeNodeData | undefined = targetDropNode;
|
530
|
+
let existsNode: QueryBuilderFilterTreeExistsNodeData | undefined =
|
531
|
+
undefined;
|
532
|
+
let parentId = targetDropNode?.parentId;
|
533
|
+
while (parentId) {
|
534
|
+
cn = filterState.nodes.get(parentId);
|
535
|
+
parentId = cn?.parentId;
|
536
|
+
if (cn instanceof QueryBuilderFilterTreeExistsNodeData) {
|
537
|
+
existsNode = cn;
|
538
|
+
}
|
539
|
+
}
|
540
|
+
if (cn instanceof QueryBuilderFilterTreeExistsNodeData) {
|
541
|
+
existsNode = cn;
|
542
|
+
}
|
543
|
+
if (targetDropNode instanceof QueryBuilderFilterTreeGroupNodeData) {
|
544
|
+
if (existsNode) {
|
545
|
+
filterState.newGroupConditionFromNode(
|
546
|
+
existsNode,
|
547
|
+
treeNode,
|
548
|
+
targetDropNode.groupOperation,
|
549
|
+
);
|
550
|
+
} else {
|
551
|
+
filterState.addNodeFromNode(treeNode, targetDropNode);
|
552
|
+
}
|
553
|
+
} else if (
|
554
|
+
targetDropNode instanceof QueryBuilderFilterTreeBlankConditionNodeData
|
555
|
+
) {
|
556
|
+
if (existsNode) {
|
557
|
+
filterState.queryBuilderState.applicationStore.notificationService.notifyError(
|
558
|
+
`Can't drag and drop here: property expression of target and source doesn't match`,
|
559
|
+
);
|
560
|
+
} else {
|
561
|
+
filterState.replaceBlankNodeWithNode(treeNode, targetDropNode);
|
562
|
+
}
|
563
|
+
} else if (
|
564
|
+
existsNode &&
|
565
|
+
targetDropNode instanceof QueryBuilderFilterTreeExistsNodeData
|
566
|
+
) {
|
567
|
+
filterState.newGroupConditionFromNode(existsNode, treeNode);
|
568
|
+
} else if (
|
569
|
+
targetDropNode instanceof QueryBuilderFilterTreeConditionNodeData
|
570
|
+
) {
|
571
|
+
const parentNode = filterState.getParentNode(targetDropNode);
|
572
|
+
if (
|
573
|
+
existsNode &&
|
574
|
+
parentNode instanceof QueryBuilderFilterTreeExistsNodeData &&
|
575
|
+
parentNode.childrenIds.length === 1
|
576
|
+
) {
|
577
|
+
filterState.newGroupConditionFromNode(
|
578
|
+
existsNode,
|
579
|
+
treeNode,
|
580
|
+
QUERY_BUILDER_GROUP_OPERATION.AND,
|
581
|
+
);
|
582
|
+
} else if (
|
583
|
+
existsNode &&
|
584
|
+
parentNode instanceof QueryBuilderFilterTreeGroupNodeData
|
585
|
+
) {
|
586
|
+
const propertyExpression1 = buildPropertyExpressionFromExistsNode(
|
587
|
+
filterState,
|
588
|
+
existsNode,
|
589
|
+
targetDropNode,
|
590
|
+
);
|
591
|
+
filterState.removeNodeAndPruneBranch(targetDropNode);
|
592
|
+
filterState.newGroupConditionFromNode(
|
593
|
+
existsNode,
|
594
|
+
treeNode,
|
595
|
+
parentNode.groupOperation,
|
596
|
+
);
|
597
|
+
const newParentNode = filterState.getParentNode(treeNode);
|
598
|
+
buildFilterTreeWithExists(
|
599
|
+
propertyExpression1,
|
600
|
+
filterState,
|
601
|
+
newParentNode,
|
602
|
+
);
|
603
|
+
} else {
|
604
|
+
filterState.newGroupWithConditionFromNode(treeNode, targetDropNode);
|
605
|
+
}
|
606
|
+
} else {
|
607
|
+
filterState.addNodeFromNode(treeNode, undefined);
|
608
|
+
}
|
392
609
|
}
|
393
610
|
};
|
394
611
|
|
@@ -604,7 +821,12 @@ const QueryBuilderFilterConditionEditor = observer(
|
|
604
821
|
};
|
605
822
|
|
606
823
|
return (
|
607
|
-
<div
|
824
|
+
<div
|
825
|
+
className="query-builder-filter-tree__node__label__content dnd__entry__container"
|
826
|
+
data-testid={
|
827
|
+
QUERY_BUILDER_TEST_ID.QUERY_BUILDER_FILTER_TREE_CONDITION_NODE_CONTENT
|
828
|
+
}
|
829
|
+
>
|
608
830
|
<PanelEntryDropZonePlaceholder
|
609
831
|
isDragOver={isDragOver}
|
610
832
|
label="Add New Logical Group"
|
@@ -845,21 +1067,17 @@ const QueryBuilderFilterTreeNodeContainer = observer(
|
|
845
1067
|
node,
|
846
1068
|
);
|
847
1069
|
} else if (node instanceof QueryBuilderFilterTreeConditionNodeData) {
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
filterConditionState,
|
852
|
-
),
|
1070
|
+
buildFilterTree(
|
1071
|
+
filterConditionState.propertyExpressionState.propertyExpression,
|
1072
|
+
filterState,
|
853
1073
|
node,
|
854
1074
|
);
|
855
1075
|
} else if (
|
856
1076
|
node instanceof QueryBuilderFilterTreeBlankConditionNodeData
|
857
1077
|
) {
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
filterConditionState,
|
862
|
-
),
|
1078
|
+
buildFilterTree(
|
1079
|
+
filterConditionState.propertyExpressionState.propertyExpression,
|
1080
|
+
filterState,
|
863
1081
|
node,
|
864
1082
|
);
|
865
1083
|
}
|
@@ -105,6 +105,7 @@ export enum QUERY_BUILDER_SUPPORTED_FUNCTIONS {
|
|
105
105
|
TDS_GROUP_BY = 'meta::pure::tds::groupBy',
|
106
106
|
TDS_SORT = 'meta::pure::tds::sort',
|
107
107
|
TDS_TAKE = 'meta::pure::tds::take',
|
108
|
+
TDS_RESTRICT = 'meta::pure::tds::restrict',
|
108
109
|
TDS_FUNC = 'meta::pure::tds::func',
|
109
110
|
|
110
111
|
// filter
|
@@ -149,4 +150,28 @@ export enum QUERY_BUILDER_SUPPORTED_FUNCTIONS {
|
|
149
150
|
FROM = 'meta::pure::mapping::from',
|
150
151
|
CHECKED = 'meta::pure::dataQuality::checked',
|
151
152
|
MERGERUNTIMES = 'meta::pure::runtime::mergeRuntimes',
|
153
|
+
|
154
|
+
// TOTDS
|
155
|
+
TABLE_TO_TDS = 'meta::pure::tds::tableToTDS',
|
156
|
+
TABLE_REFERENCE = 'meta::relational::functions::database::tableReference',
|
157
|
+
}
|
158
|
+
|
159
|
+
export enum TDS_COLUMN_GETTER {
|
160
|
+
GET_STRING = 'getString',
|
161
|
+
GET_NUMBER = 'getNumber',
|
162
|
+
GET_INTEGER = 'getInteger',
|
163
|
+
GET_FLOAT = 'getFloat',
|
164
|
+
GET_DECIMAL = 'getDecimal',
|
165
|
+
GET_DATE = 'getDate',
|
166
|
+
GET_DATETIME = 'getDateTime',
|
167
|
+
GET_STRICTDATE = 'getStrictDate',
|
168
|
+
GET_BOOLEAN = 'getBoolean',
|
169
|
+
GET_ENUM = 'getEnum',
|
170
|
+
IS_NULL = 'isNull',
|
171
|
+
IS_NOT_NULL = 'isNotNull',
|
172
|
+
}
|
173
|
+
|
174
|
+
export enum COLUMN_SORT_TYPE {
|
175
|
+
ASC = 'ASC',
|
176
|
+
DESC = 'DESC',
|
152
177
|
}
|