@finos/legend-query-builder 4.5.0 → 4.5.1
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.js +21 -8
- package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.d.ts +3 -2
- package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.js +7 -5
- package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterStateBuilder.d.ts.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterStateBuilder.js +1 -1
- package/lib/stores/filter/QueryBuilderFilterStateBuilder.js.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js +5 -1
- package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js.map +1 -1
- package/package.json +2 -2
- package/src/components/filter/QueryBuilderFilterPanel.tsx +43 -7
- package/src/stores/filter/QueryBuilderFilterState.ts +13 -5
- package/src/stores/filter/QueryBuilderFilterStateBuilder.ts +1 -0
- package/src/stores/filter/QueryBuilderFilterValueSpecificationBuilder.ts +14 -1
@@ -37,6 +37,7 @@ import {
|
|
37
37
|
} from './QueryBuilderFilterState.js';
|
38
38
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../graph/QueryBuilderMetaModelConst.js';
|
39
39
|
import { DEFAULT_LAMBDA_VARIABLE_NAME } from '../QueryBuilderConfig.js';
|
40
|
+
import { buildPropertyExpressionChain } from '../QueryBuilderValueSpecificationBuilderHelper.js';
|
40
41
|
|
41
42
|
const buildFilterConditionExpression = (
|
42
43
|
filterState: QueryBuilderFilterState,
|
@@ -110,7 +111,19 @@ const buildFilterConditionExpression = (
|
|
110
111
|
)
|
111
112
|
: undefined;
|
112
113
|
}
|
113
|
-
const
|
114
|
+
const lambdaParameterName = node.parentId
|
115
|
+
? guaranteeType(
|
116
|
+
filterState.nodes.get(guaranteeNonNullable(node.parentId)),
|
117
|
+
QueryBuilderFilterTreeOperationNodeData,
|
118
|
+
).lambdaParameterName
|
119
|
+
: undefined;
|
120
|
+
const propertyExpression = guaranteeNonNullable(
|
121
|
+
buildPropertyExpressionChain(
|
122
|
+
node.propertyExpressionState.propertyExpression,
|
123
|
+
node.propertyExpressionState.queryBuilderState,
|
124
|
+
lambdaParameterName ?? filterState.lambdaParameterName,
|
125
|
+
),
|
126
|
+
);
|
114
127
|
const clauses = node.childrenIds
|
115
128
|
.map((e) => filterState.nodes.get(e))
|
116
129
|
.filter(isNonNullable)
|