@finos/legend-query-builder 4.15.1 → 4.15.3
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/data-cube/QueryBuilderDataCube.d.ts.map +1 -1
- package/lib/components/data-cube/QueryBuilderDataCube.js +9 -17
- package/lib/components/data-cube/QueryBuilderDataCube.js.map +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.js +2 -2
- package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
- package/lib/components/result/QueryBuilderResultPanel.d.ts.map +1 -1
- package/lib/components/result/QueryBuilderResultPanel.js +13 -1
- package/lib/components/result/QueryBuilderResultPanel.js.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSGridResult.d.ts.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSGridResult.js +4 -3
- package/lib/components/result/tds/QueryBuilderTDSGridResult.js.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSResultShared.d.ts +2 -2
- package/lib/components/result/tds/QueryBuilderTDSResultShared.d.ts.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSResultShared.js +157 -19
- package/lib/components/result/tds/QueryBuilderTDSResultShared.js.map +1 -1
- package/lib/index.css +1 -17
- package/lib/index.css.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.d.ts +1 -3
- package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.d.ts.map +1 -1
- package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.js +1 -7
- package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.js.map +1 -1
- package/lib/stores/data-cube/QueryBuilderDataCubeEngine.d.ts +5 -2
- package/lib/stores/data-cube/QueryBuilderDataCubeEngine.d.ts.map +1 -1
- package/lib/stores/data-cube/QueryBuilderDataCubeEngine.js +14 -2
- package/lib/stores/data-cube/QueryBuilderDataCubeEngine.js.map +1 -1
- package/lib/stores/data-cube/QueryBuilderDataCubeEngineHelper.d.ts +1 -1
- package/lib/stores/data-cube/QueryBuilderDataCubeEngineHelper.d.ts.map +1 -1
- package/lib/stores/data-cube/QueryBuilderDataCubeEngineHelper.js +8 -1
- package/lib/stores/data-cube/QueryBuilderDataCubeEngineHelper.js.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterOperator.d.ts +1 -1
- package/lib/stores/filter/QueryBuilderFilterOperator.d.ts.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.d.ts +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.js +8 -3
- package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterStateBuilder.js +1 -1
- package/lib/stores/filter/QueryBuilderFilterStateBuilder.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js +3 -3
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js +3 -3
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.d.ts +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js +3 -3
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js.map +1 -1
- package/lib/stores/shared/LambdaParameterState.d.ts +2 -1
- package/lib/stores/shared/LambdaParameterState.d.ts.map +1 -1
- package/lib/stores/shared/LambdaParameterState.js +1 -0
- package/lib/stores/shared/LambdaParameterState.js.map +1 -1
- package/package.json +8 -8
- package/src/components/data-cube/QueryBuilderDataCube.tsx +19 -41
- package/src/components/filter/QueryBuilderFilterPanel.tsx +2 -2
- package/src/components/result/QueryBuilderResultPanel.tsx +23 -3
- package/src/components/result/tds/QueryBuilderTDSGridResult.tsx +7 -3
- package/src/components/result/tds/QueryBuilderTDSResultShared.tsx +334 -26
- package/src/stores/data-cube/QueryBuilderDataCubeApplicationEngine.ts +1 -12
- package/src/stores/data-cube/QueryBuilderDataCubeEngine.ts +23 -0
- package/src/stores/data-cube/QueryBuilderDataCubeEngineHelper.ts +16 -1
- package/src/stores/filter/QueryBuilderFilterOperator.ts +1 -1
- package/src/stores/filter/QueryBuilderFilterState.ts +10 -5
- package/src/stores/filter/QueryBuilderFilterStateBuilder.ts +1 -1
- package/src/stores/filter/operators/QueryBuilderFilterOperator_Contain.ts +3 -5
- package/src/stores/filter/operators/QueryBuilderFilterOperator_EndWith.ts +3 -5
- package/src/stores/filter/operators/QueryBuilderFilterOperator_Equal.ts +2 -2
- package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.ts +2 -4
- package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.ts +2 -4
- package/src/stores/filter/operators/QueryBuilderFilterOperator_In.ts +2 -2
- package/src/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.ts +2 -2
- package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThan.ts +2 -4
- package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.ts +2 -4
- package/src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts +3 -5
- package/src/stores/shared/LambdaParameterState.ts +1 -0
@@ -17,12 +17,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
17
|
import { MenuContent, MenuContentItem, MenuContentDivider, } from '@finos/legend-art';
|
18
18
|
import { observer } from 'mobx-react-lite';
|
19
19
|
import { flowResult } from 'mobx';
|
20
|
-
import {
|
20
|
+
import { EnumValueExplicitReference, EnumValueInstanceValue, InstanceValue, RelationalExecutionActivities, } from '@finos/legend-graph';
|
21
21
|
import { format as formatSQL } from 'sql-formatter';
|
22
22
|
import { useApplicationStore, } from '@finos/legend-application';
|
23
23
|
import { assertErrorThrown, guaranteeNonNullable, filterByType, } from '@finos/legend-shared';
|
24
24
|
import { forwardRef } from 'react';
|
25
|
-
import { QueryBuilderDerivationProjectionColumnState, QueryBuilderProjectionColumnState, } from '../../../stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
|
25
|
+
import { QueryBuilderDerivationProjectionColumnState, QueryBuilderProjectionColumnState, QueryBuilderSimpleProjectionColumnState, } from '../../../stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
|
26
26
|
import { PostFilterConditionState, QueryBuilderPostFilterTreeConditionNodeData, PostFilterValueSpecConditionValueState, } from '../../../stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js';
|
27
27
|
import { QueryBuilderPostFilterOperator_Equal, QueryBuilderPostFilterOperator_NotEqual, } from '../../../stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js';
|
28
28
|
import { QueryBuilderPostFilterOperator_In, QueryBuilderPostFilterOperator_NotIn, } from '../../../stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js';
|
@@ -30,6 +30,11 @@ import { instanceValue_setValue, instanceValue_setValues, } from '../../../store
|
|
30
30
|
import {} from '@finos/legend-lego/data-grid';
|
31
31
|
import { QueryBuilderPostFilterOperator_IsEmpty, QueryBuilderPostFilterOperator_IsNotEmpty, } from '../../../stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js';
|
32
32
|
import { getTDSColumnState } from '../../../stores/fetch-structure/tds/QueryBuilderTDSHelper.js';
|
33
|
+
import { FilterConditionState, FilterValueSpecConditionValueState, isCollectionProperty, QueryBuilderFilterTreeConditionNodeData, } from '../../../stores/filter/QueryBuilderFilterState.js';
|
34
|
+
import { QueryBuilderAggregateColumnState } from '../../../stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js';
|
35
|
+
import { QueryBuilderFilterOperator_Equal, QueryBuilderFilterOperator_NotEqual, } from '../../../stores/filter/operators/QueryBuilderFilterOperator_Equal.js';
|
36
|
+
import { QueryBuilderFilterOperator_In, QueryBuilderFilterOperator_NotIn, } from '../../../stores/filter/operators/QueryBuilderFilterOperator_In.js';
|
37
|
+
import { QueryBuilderFilterOperator_IsEmpty, QueryBuilderFilterOperator_IsNotEmpty, } from '../../../stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js';
|
33
38
|
export const tryToFormatSql = (sql) => {
|
34
39
|
try {
|
35
40
|
const formattedSql = formatSQL(sql, { language: 'mysql' });
|
@@ -77,12 +82,25 @@ export const getRowDataFromExecutionResult = (executionResult) => {
|
|
77
82
|
});
|
78
83
|
return rowData;
|
79
84
|
};
|
85
|
+
const filterEqualOperator = new QueryBuilderFilterOperator_Equal();
|
86
|
+
const filterNotEqualOperator = new QueryBuilderFilterOperator_NotEqual();
|
87
|
+
const filterInOperator = new QueryBuilderFilterOperator_In();
|
88
|
+
const filterNotInOperator = new QueryBuilderFilterOperator_NotIn();
|
89
|
+
const filterEmptyOperator = new QueryBuilderFilterOperator_IsEmpty();
|
90
|
+
const filterNotEmptyOperator = new QueryBuilderFilterOperator_IsNotEmpty();
|
80
91
|
const postFilterEqualOperator = new QueryBuilderPostFilterOperator_Equal();
|
81
92
|
const postFilterInOperator = new QueryBuilderPostFilterOperator_In();
|
82
93
|
const postFilterEmptyOperator = new QueryBuilderPostFilterOperator_IsEmpty();
|
83
94
|
const postFilterNotEmptyOperator = new QueryBuilderPostFilterOperator_IsNotEmpty();
|
84
95
|
const postFilterNotEqualOperator = new QueryBuilderPostFilterOperator_NotEqual();
|
85
96
|
const postFilterNotInOperator = new QueryBuilderPostFilterOperator_NotIn();
|
97
|
+
const getExistingFilterNode = (operators, propertyExpressionState, filterState) => Array.from(filterState.nodes.values())
|
98
|
+
.filter(filterByType(QueryBuilderFilterTreeConditionNodeData))
|
99
|
+
.filter((node) => node.condition.propertyExpressionState.path ===
|
100
|
+
propertyExpressionState?.path &&
|
101
|
+
operators
|
102
|
+
.map((op) => op.getLabel())
|
103
|
+
.includes(node.condition.operator.getLabel()))[0];
|
86
104
|
const getExistingPostFilterNode = (operators, projectionColumnName, postFilterState, tdsColState) => Array.from(postFilterState.nodes.values())
|
87
105
|
.filter(filterByType(QueryBuilderPostFilterTreeConditionNodeData))
|
88
106
|
.filter((node) => node.condition.leftConditionValue instanceof
|
@@ -92,11 +110,28 @@ const getExistingPostFilterNode = (operators, projectionColumnName, postFilterSt
|
|
92
110
|
operators
|
93
111
|
.map((op) => op.getLabel())
|
94
112
|
.includes(node.condition.operator.getLabel()))[0];
|
95
|
-
const updateFilterConditionValue = (conditionValue, _cellData,
|
113
|
+
const updateFilterConditionValue = (conditionValue, _cellData, queryBuilderState) => {
|
96
114
|
if (_cellData.value) {
|
97
115
|
instanceValue_setValue(conditionValue, conditionValue instanceof EnumValueInstanceValue
|
98
116
|
? EnumValueExplicitReference.create(guaranteeNonNullable((conditionValue.genericType?.ownerReference.value).values.filter((v) => v.name === _cellData.value)[0]))
|
99
|
-
: _cellData.value, 0,
|
117
|
+
: _cellData.value, 0, queryBuilderState.observerContext);
|
118
|
+
}
|
119
|
+
};
|
120
|
+
const generateNewFilterConditionNodeData = (applicationStore, operator, _cellData, filterState, propertyExpression) => {
|
121
|
+
let filterConditionState;
|
122
|
+
try {
|
123
|
+
if (propertyExpression) {
|
124
|
+
filterConditionState = new FilterConditionState(filterState, propertyExpression, operator);
|
125
|
+
const defaultFilterConditionValue = filterConditionState.operator.getDefaultFilterConditionValue(filterConditionState);
|
126
|
+
filterConditionState.buildRightConditionValueFromValueSpec(defaultFilterConditionValue);
|
127
|
+
updateFilterConditionValue(defaultFilterConditionValue, _cellData, filterState.queryBuilderState);
|
128
|
+
filterState.addNodeFromNode(new QueryBuilderFilterTreeConditionNodeData(undefined, filterConditionState), undefined);
|
129
|
+
}
|
130
|
+
}
|
131
|
+
catch (error) {
|
132
|
+
assertErrorThrown(error);
|
133
|
+
applicationStore.notificationService.notifyWarning(error.message);
|
134
|
+
return;
|
100
135
|
}
|
101
136
|
};
|
102
137
|
const generateNewPostFilterConditionNodeData = async (applicationStore, operator, _cellData, tdsState, tdsColState) => {
|
@@ -116,7 +151,7 @@ const generateNewPostFilterConditionNodeData = async (applicationStore, operator
|
|
116
151
|
}
|
117
152
|
const defaultFilterConditionValue = postFilterConditionState.operator.getDefaultFilterConditionValue(postFilterConditionState);
|
118
153
|
postFilterConditionState.buildFromValueSpec(defaultFilterConditionValue);
|
119
|
-
updateFilterConditionValue(defaultFilterConditionValue, _cellData, tdsState);
|
154
|
+
updateFilterConditionValue(defaultFilterConditionValue, _cellData, tdsState.queryBuilderState);
|
120
155
|
tdsState.postFilterState.addNodeFromNode(new QueryBuilderPostFilterTreeConditionNodeData(undefined, postFilterConditionState), undefined);
|
121
156
|
}
|
122
157
|
}
|
@@ -126,6 +161,47 @@ const generateNewPostFilterConditionNodeData = async (applicationStore, operator
|
|
126
161
|
return;
|
127
162
|
}
|
128
163
|
};
|
164
|
+
const updateExistingFilterConditionNodeData = (existingPreFilterNode, isFilterBy, _cellData, operator, data, queryBuilderState) => {
|
165
|
+
if (operator === filterEmptyOperator || operator === filterNotEmptyOperator) {
|
166
|
+
const conditionState = existingPreFilterNode.condition;
|
167
|
+
if (conditionState.operator.getLabel() !== operator.getLabel()) {
|
168
|
+
conditionState.changeOperator(isFilterBy ? filterEmptyOperator : filterNotEmptyOperator);
|
169
|
+
}
|
170
|
+
return;
|
171
|
+
}
|
172
|
+
const conditionState = existingPreFilterNode.condition;
|
173
|
+
const rightSide = conditionState.rightConditionValue;
|
174
|
+
if (rightSide instanceof FilterValueSpecConditionValueState) {
|
175
|
+
if (conditionState.operator.getLabel() === operator.getLabel()) {
|
176
|
+
const doesValueAlreadyExist = rightSide.value instanceof InstanceValue &&
|
177
|
+
(rightSide.value instanceof EnumValueInstanceValue
|
178
|
+
? rightSide.value.values.map((ef) => ef.value.name)
|
179
|
+
: rightSide.value.values).includes(_cellData.value);
|
180
|
+
if (!doesValueAlreadyExist) {
|
181
|
+
const currentValueSpecificaton = rightSide.value;
|
182
|
+
const newValueSpecification = conditionState.operator.getDefaultFilterConditionValue(conditionState);
|
183
|
+
updateFilterConditionValue(newValueSpecification, _cellData, queryBuilderState);
|
184
|
+
conditionState.changeOperator(isFilterBy ? filterInOperator : filterNotInOperator);
|
185
|
+
instanceValue_setValues(rightSide.value, [currentValueSpecificaton, newValueSpecification], queryBuilderState.observerContext);
|
186
|
+
}
|
187
|
+
}
|
188
|
+
else {
|
189
|
+
const doesValueAlreadyExist = rightSide.value instanceof InstanceValue &&
|
190
|
+
rightSide.value.values
|
191
|
+
.filter((v) => v instanceof InstanceValue)
|
192
|
+
.map((v) => v instanceof EnumValueInstanceValue
|
193
|
+
? v.values.map((ef) => ef.value.name)
|
194
|
+
: v.values)
|
195
|
+
.flat()
|
196
|
+
.includes(_cellData.value ?? data?.value);
|
197
|
+
if (!doesValueAlreadyExist) {
|
198
|
+
const newValueSpecification = (isFilterBy ? filterEqualOperator : filterNotEqualOperator).getDefaultFilterConditionValue(conditionState);
|
199
|
+
updateFilterConditionValue(newValueSpecification, _cellData, queryBuilderState);
|
200
|
+
instanceValue_setValues(rightSide.value, [...rightSide.value.values, newValueSpecification], queryBuilderState.observerContext);
|
201
|
+
}
|
202
|
+
}
|
203
|
+
}
|
204
|
+
};
|
129
205
|
const updateExistingPostFilterConditionNodeData = (existingPostFilterNode, isFilterBy, _cellData, operator, data, tdsState) => {
|
130
206
|
if (operator === postFilterEmptyOperator ||
|
131
207
|
operator === postFilterNotEmptyOperator) {
|
@@ -146,7 +222,7 @@ const updateExistingPostFilterConditionNodeData = (existingPostFilterNode, isFil
|
|
146
222
|
if (!doesValueAlreadyExist) {
|
147
223
|
const currentValueSpecificaton = rightSide.value;
|
148
224
|
const newValueSpecification = conditionState.operator.getDefaultFilterConditionValue(conditionState);
|
149
|
-
updateFilterConditionValue(newValueSpecification, _cellData, tdsState);
|
225
|
+
updateFilterConditionValue(newValueSpecification, _cellData, tdsState.queryBuilderState);
|
150
226
|
conditionState.changeOperator(isFilterBy ? postFilterInOperator : postFilterNotInOperator);
|
151
227
|
instanceValue_setValues(rightSide.value, [currentValueSpecificaton, newValueSpecification], tdsState.queryBuilderState.observerContext);
|
152
228
|
}
|
@@ -162,13 +238,31 @@ const updateExistingPostFilterConditionNodeData = (existingPostFilterNode, isFil
|
|
162
238
|
.includes(_cellData.value ?? data?.value);
|
163
239
|
if (!doesValueAlreadyExist) {
|
164
240
|
const newValueSpecification = (isFilterBy ? postFilterEqualOperator : postFilterNotEqualOperator).getDefaultFilterConditionValue(conditionState);
|
165
|
-
updateFilterConditionValue(newValueSpecification, _cellData, tdsState);
|
241
|
+
updateFilterConditionValue(newValueSpecification, _cellData, tdsState.queryBuilderState);
|
166
242
|
instanceValue_setValues(rightSide.value, [...rightSide.value.values, newValueSpecification], tdsState.queryBuilderState.observerContext);
|
167
243
|
}
|
168
244
|
}
|
169
245
|
}
|
170
246
|
};
|
171
247
|
const getFilterOperator = (isFilterBy, _cellData) => {
|
248
|
+
if (isFilterBy) {
|
249
|
+
if (_cellData.value === null) {
|
250
|
+
return filterEmptyOperator;
|
251
|
+
}
|
252
|
+
else {
|
253
|
+
return filterEqualOperator;
|
254
|
+
}
|
255
|
+
}
|
256
|
+
else {
|
257
|
+
if (_cellData.value === null) {
|
258
|
+
return filterNotEmptyOperator;
|
259
|
+
}
|
260
|
+
else {
|
261
|
+
return filterNotEqualOperator;
|
262
|
+
}
|
263
|
+
}
|
264
|
+
};
|
265
|
+
const getPostFilterOperator = (isFilterBy, _cellData) => {
|
172
266
|
if (isFilterBy) {
|
173
267
|
if (_cellData.value === null) {
|
174
268
|
return postFilterEmptyOperator;
|
@@ -186,12 +280,30 @@ const getFilterOperator = (isFilterBy, _cellData) => {
|
|
186
280
|
}
|
187
281
|
}
|
188
282
|
};
|
189
|
-
const
|
190
|
-
|
283
|
+
const preFilterByOrOutValue = (applicationStore, isFilterBy, _cellData, data, propertyExpressionState, queryBuilderState) => {
|
284
|
+
queryBuilderState.filterState.setShowPanel(true);
|
191
285
|
const operator = getFilterOperator(isFilterBy, _cellData);
|
192
|
-
const
|
193
|
-
?
|
194
|
-
:
|
286
|
+
const existingPreFilterNode = getExistingFilterNode(_cellData.value === null
|
287
|
+
? [filterEmptyOperator, filterNotEmptyOperator]
|
288
|
+
: isFilterBy
|
289
|
+
? [filterEqualOperator, filterInOperator]
|
290
|
+
: [filterNotEqualOperator, filterNotInOperator], propertyExpressionState, queryBuilderState.filterState);
|
291
|
+
if (existingPreFilterNode) {
|
292
|
+
updateExistingFilterConditionNodeData(existingPreFilterNode, isFilterBy, _cellData, operator, data, queryBuilderState);
|
293
|
+
}
|
294
|
+
else {
|
295
|
+
try {
|
296
|
+
generateNewFilterConditionNodeData(applicationStore, operator, _cellData, queryBuilderState.filterState, propertyExpressionState.propertyExpression);
|
297
|
+
}
|
298
|
+
catch (error) {
|
299
|
+
assertErrorThrown(error);
|
300
|
+
applicationStore.alertUnhandledError(error);
|
301
|
+
}
|
302
|
+
}
|
303
|
+
};
|
304
|
+
const postFilterByOrOutValue = async (applicationStore, isFilterBy, _cellData, data, tdsColState, tdsState) => {
|
305
|
+
tdsState.setShowPostFilterPanel(true);
|
306
|
+
const operator = getPostFilterOperator(isFilterBy, _cellData);
|
195
307
|
const existingPostFilterNode = getExistingPostFilterNode(_cellData.value === null
|
196
308
|
? [postFilterEmptyOperator, postFilterNotEmptyOperator]
|
197
309
|
: isFilterBy
|
@@ -201,13 +313,39 @@ const filterByOrOutValue = (applicationStore, isFilterBy, _cellData, data, tdsSt
|
|
201
313
|
updateExistingPostFilterConditionNodeData(existingPostFilterNode, isFilterBy, _cellData, operator, data, tdsState);
|
202
314
|
}
|
203
315
|
else {
|
204
|
-
|
316
|
+
try {
|
317
|
+
await generateNewPostFilterConditionNodeData(applicationStore, operator, _cellData, tdsState, tdsColState);
|
318
|
+
}
|
319
|
+
catch (error) {
|
320
|
+
assertErrorThrown(error);
|
321
|
+
applicationStore.alertUnhandledError(error);
|
322
|
+
}
|
205
323
|
}
|
206
324
|
};
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
325
|
+
const filterByOrOutValue = async (applicationStore, isFilterBy, _cellData, data, tdsState) => {
|
326
|
+
const tdsColState = data?.columnName
|
327
|
+
? getTDSColumnState(tdsState, _cellData.columnName)
|
328
|
+
: _cellData.columnName
|
329
|
+
? getTDSColumnState(tdsState, _cellData.columnName)
|
330
|
+
: undefined;
|
331
|
+
if (tdsColState instanceof QueryBuilderDerivationProjectionColumnState ||
|
332
|
+
tdsColState instanceof QueryBuilderAggregateColumnState ||
|
333
|
+
(tdsColState instanceof QueryBuilderSimpleProjectionColumnState &&
|
334
|
+
isCollectionProperty(tdsColState.propertyExpressionState.propertyExpression))) {
|
335
|
+
await postFilterByOrOutValue(applicationStore, isFilterBy, _cellData, data, tdsColState, tdsState);
|
336
|
+
}
|
337
|
+
else if (tdsColState instanceof QueryBuilderSimpleProjectionColumnState) {
|
338
|
+
preFilterByOrOutValue(applicationStore, isFilterBy, _cellData, data, tdsColState.propertyExpressionState, tdsState.queryBuilderState);
|
339
|
+
}
|
340
|
+
else {
|
341
|
+
applicationStore.notificationService.notifyError(`Can't filter column '${data?.columnName ? data.columnName : _cellData.columnName}'`);
|
342
|
+
}
|
343
|
+
};
|
344
|
+
export const filterByOrOutValues = async (applicationStore, data, isFilterBy, tdsState) => {
|
345
|
+
for (const _cellData of tdsState.queryBuilderState.resultState
|
346
|
+
.selectedCells) {
|
347
|
+
await filterByOrOutValue(applicationStore, isFilterBy, _cellData, data, tdsState);
|
348
|
+
}
|
211
349
|
};
|
212
350
|
export const QueryBuilderGridResultContextMenu = observer(forwardRef(function QueryBuilderResultContextMenu(props, ref) {
|
213
351
|
const { data, tdsState, copyCellValueFunc, copyCellRowValueFunc } = props;
|
@@ -216,9 +354,9 @@ export const QueryBuilderGridResultContextMenu = observer(forwardRef(function Qu
|
|
216
354
|
? getTDSColumnState(tdsState, data.columnName)
|
217
355
|
: undefined;
|
218
356
|
return (_jsxs(MenuContent, { ref: ref, children: [_jsx(MenuContentItem, { disabled: !tdsColState, onClick: () => {
|
219
|
-
filterByOrOutValues(applicationStore, data, true, tdsState);
|
357
|
+
filterByOrOutValues(applicationStore, data, true, tdsState).catch(tdsState.queryBuilderState.applicationStore.alertUnhandledError);
|
220
358
|
}, children: "Filter By" }), _jsx(MenuContentItem, { disabled: !tdsColState, onClick: () => {
|
221
|
-
filterByOrOutValues(applicationStore, data, false, tdsState);
|
359
|
+
filterByOrOutValues(applicationStore, data, false, tdsState).catch(tdsState.queryBuilderState.applicationStore.alertUnhandledError);
|
222
360
|
}, children: "Filter Out" }), _jsx(MenuContentDivider, {}), _jsx(MenuContentItem, { onClick: copyCellValueFunc, children: "Copy Cell Value" }), _jsx(MenuContentItem, { onClick: copyCellRowValueFunc, children: "Copy Row Value" })] }));
|
223
361
|
}));
|
224
362
|
//# sourceMappingURL=QueryBuilderTDSResultShared.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderTDSResultShared.js","sourceRoot":"","sources":["../../../../src/components/result/tds/QueryBuilderTDSResultShared.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,WAAW,EACX,eAAe,EACf,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3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