@finos/legend-query-builder 4.11.5 → 4.11.6
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/result/QueryBuilderResultPanel.d.ts.map +1 -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 +76 -12
- package/lib/components/result/tds/QueryBuilderTDSGridResult.js.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSResultShared.d.ts +8 -12
- package/lib/components/result/tds/QueryBuilderTDSResultShared.d.ts.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSResultShared.js +134 -348
- package/lib/components/result/tds/QueryBuilderTDSResultShared.js.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.d.ts +1 -1
- package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.d.ts.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.js +179 -2
- package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/package.json +3 -3
- package/src/components/result/QueryBuilderResultPanel.tsx +0 -1
- package/src/components/result/tds/QueryBuilderTDSGridResult.tsx +125 -18
- package/src/components/result/tds/QueryBuilderTDSResultShared.tsx +299 -663
- package/src/components/result/tds/QueryBuilderTDSSimpleGridResult.tsx +310 -3
@@ -14,23 +14,22 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
14
|
* See the License for the specific language governing permissions and
|
15
15
|
* limitations under the License.
|
16
16
|
*/
|
17
|
-
import { MenuContent, MenuContentItem,
|
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 { InstanceValue,
|
20
|
+
import { InstanceValue, EnumValueInstanceValue, EnumValueExplicitReference, PRIMITIVE_TYPE, RelationalExecutionActivities, } from '@finos/legend-graph';
|
21
21
|
import { format as formatSQL } from 'sql-formatter';
|
22
|
-
import { useApplicationStore } from '@finos/legend-application';
|
23
|
-
import { assertErrorThrown, guaranteeNonNullable,
|
22
|
+
import { useApplicationStore, } from '@finos/legend-application';
|
23
|
+
import { assertErrorThrown, guaranteeNonNullable, filterByType, isBoolean, } from '@finos/legend-shared';
|
24
24
|
import { forwardRef } from 'react';
|
25
25
|
import { QueryBuilderDerivationProjectionColumnState, QueryBuilderProjectionColumnState, } 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';
|
29
|
-
import { QueryBuilderTDSState } from '../../../stores/fetch-structure/tds/QueryBuilderTDSState.js';
|
30
29
|
import { instanceValue_setValue, instanceValue_setValues, } from '../../../stores/shared/ValueSpecificationModifierHelper.js';
|
31
|
-
import {
|
30
|
+
import {} from '@finos/legend-lego/data-grid';
|
32
31
|
import { QueryBuilderPostFilterOperator_IsEmpty, QueryBuilderPostFilterOperator_IsNotEmpty, } from '../../../stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js';
|
33
|
-
import {
|
32
|
+
import { getTDSColumnState } from '../../../stores/fetch-structure/tds/QueryBuilderTDSHelper.js';
|
34
33
|
export const tryToFormatSql = (sql) => {
|
35
34
|
try {
|
36
35
|
const formattedSql = formatSQL(sql, { language: 'mysql' });
|
@@ -108,358 +107,145 @@ export const getRowDataFromExecutionResult = (executionResult) => {
|
|
108
107
|
});
|
109
108
|
return rowData;
|
110
109
|
};
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
.
|
125
|
-
.
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
const possibleProjectionColumnState = cellData.columnName
|
148
|
-
? tdsState.projectionColumns
|
149
|
-
.filter((c) => c.columnName === cellData.columnName)
|
150
|
-
.concat(tdsState.aggregationState.columns
|
151
|
-
.filter((c) => c.columnName === cellData.columnName)
|
152
|
-
.map((ag) => ag.projectionColumnState))[0]
|
153
|
-
: projectionColumnState;
|
154
|
-
if (possibleProjectionColumnState) {
|
155
|
-
postFilterConditionState = new PostFilterConditionState(postFilterState, possibleProjectionColumnState, operator);
|
156
|
-
if (projectionColumnState instanceof
|
157
|
-
QueryBuilderDerivationProjectionColumnState) {
|
158
|
-
await flowResult(projectionColumnState.fetchDerivationLambdaReturnType());
|
159
|
-
}
|
160
|
-
const defaultFilterConditionValue = postFilterConditionState.operator.getDefaultFilterConditionValue(postFilterConditionState);
|
161
|
-
postFilterConditionState.buildFromValueSpec(defaultFilterConditionValue);
|
162
|
-
updateFilterConditionValue(defaultFilterConditionValue, cellData);
|
163
|
-
postFilterState.addNodeFromNode(new QueryBuilderPostFilterTreeConditionNodeData(undefined, postFilterConditionState), undefined);
|
164
|
-
}
|
165
|
-
}
|
166
|
-
catch (error) {
|
167
|
-
assertErrorThrown(error);
|
168
|
-
applicationStore.notificationService.notifyWarning(error.message);
|
169
|
-
return;
|
170
|
-
}
|
171
|
-
};
|
172
|
-
const updateExistingPostFilterConditionNodeData = (existingPostFilterNode, isFilterBy, cellData, operator) => {
|
173
|
-
if (operator === postFilterEmptyOperator ||
|
174
|
-
operator === postFilterNotEmptyOperator) {
|
175
|
-
const conditionState = existingPostFilterNode.condition;
|
176
|
-
if (conditionState.operator.getLabel() !== operator.getLabel()) {
|
177
|
-
conditionState.changeOperator(isFilterBy ? postFilterEmptyOperator : postFilterNotEmptyOperator);
|
110
|
+
const postFilterEqualOperator = new QueryBuilderPostFilterOperator_Equal();
|
111
|
+
const postFilterInOperator = new QueryBuilderPostFilterOperator_In();
|
112
|
+
const postFilterEmptyOperator = new QueryBuilderPostFilterOperator_IsEmpty();
|
113
|
+
const postFilterNotEmptyOperator = new QueryBuilderPostFilterOperator_IsNotEmpty();
|
114
|
+
const postFilterNotEqualOperator = new QueryBuilderPostFilterOperator_NotEqual();
|
115
|
+
const postFilterNotInOperator = new QueryBuilderPostFilterOperator_NotIn();
|
116
|
+
const getExistingPostFilterNode = (operators, projectionColumnName, postFilterState, tdsColState) => Array.from(postFilterState.nodes.values())
|
117
|
+
.filter(filterByType(QueryBuilderPostFilterTreeConditionNodeData))
|
118
|
+
.filter((node) => node.condition.leftConditionValue instanceof
|
119
|
+
QueryBuilderProjectionColumnState)
|
120
|
+
.filter((node) => node.condition.leftConditionValue.columnName ===
|
121
|
+
(projectionColumnName ?? tdsColState?.columnName) &&
|
122
|
+
operators
|
123
|
+
.map((op) => op.getLabel())
|
124
|
+
.includes(node.condition.operator.getLabel()))[0];
|
125
|
+
const updateFilterConditionValue = (conditionValue, _cellData, tdsState) => {
|
126
|
+
if (_cellData.value) {
|
127
|
+
instanceValue_setValue(conditionValue, conditionValue instanceof EnumValueInstanceValue
|
128
|
+
? EnumValueExplicitReference.create(guaranteeNonNullable((conditionValue.genericType?.ownerReference.value).values.filter((v) => v.name === _cellData.value)[0]))
|
129
|
+
: _cellData.value, 0, tdsState.queryBuilderState.observerContext);
|
130
|
+
}
|
131
|
+
};
|
132
|
+
const generateNewPostFilterConditionNodeData = async (applicationStore, operator, _cellData, tdsState, tdsColState) => {
|
133
|
+
let postFilterConditionState;
|
134
|
+
try {
|
135
|
+
const possibleProjectionColumnState = _cellData.columnName
|
136
|
+
? tdsState.projectionColumns
|
137
|
+
.filter((c) => c.columnName === _cellData.columnName)
|
138
|
+
.concat(tdsState.aggregationState.columns
|
139
|
+
.filter((c) => c.columnName === _cellData.columnName)
|
140
|
+
.map((ag) => ag.projectionColumnState))[0]
|
141
|
+
: tdsColState;
|
142
|
+
if (possibleProjectionColumnState) {
|
143
|
+
postFilterConditionState = new PostFilterConditionState(tdsState.postFilterState, possibleProjectionColumnState, operator);
|
144
|
+
if (tdsColState instanceof QueryBuilderDerivationProjectionColumnState) {
|
145
|
+
await flowResult(tdsColState.fetchDerivationLambdaReturnType());
|
178
146
|
}
|
179
|
-
|
147
|
+
const defaultFilterConditionValue = postFilterConditionState.operator.getDefaultFilterConditionValue(postFilterConditionState);
|
148
|
+
postFilterConditionState.buildFromValueSpec(defaultFilterConditionValue);
|
149
|
+
updateFilterConditionValue(defaultFilterConditionValue, _cellData, tdsState);
|
150
|
+
tdsState.postFilterState.addNodeFromNode(new QueryBuilderPostFilterTreeConditionNodeData(undefined, postFilterConditionState), undefined);
|
180
151
|
}
|
152
|
+
}
|
153
|
+
catch (error) {
|
154
|
+
assertErrorThrown(error);
|
155
|
+
applicationStore.notificationService.notifyWarning(error.message);
|
156
|
+
return;
|
157
|
+
}
|
158
|
+
};
|
159
|
+
const updateExistingPostFilterConditionNodeData = (existingPostFilterNode, isFilterBy, _cellData, operator, data, tdsState) => {
|
160
|
+
if (operator === postFilterEmptyOperator ||
|
161
|
+
operator === postFilterNotEmptyOperator) {
|
181
162
|
const conditionState = existingPostFilterNode.condition;
|
182
|
-
|
183
|
-
|
184
|
-
if (conditionState.operator.getLabel() === operator.getLabel()) {
|
185
|
-
const doesValueAlreadyExist = rightSide.value instanceof InstanceValue &&
|
186
|
-
(rightSide.value instanceof EnumValueInstanceValue
|
187
|
-
? rightSide.value.values.map((ef) => ef.value.name)
|
188
|
-
: rightSide.value.values).includes(cellData.value);
|
189
|
-
if (!doesValueAlreadyExist) {
|
190
|
-
const currentValueSpecificaton = rightSide.value;
|
191
|
-
const newValueSpecification = conditionState.operator.getDefaultFilterConditionValue(conditionState);
|
192
|
-
updateFilterConditionValue(newValueSpecification, cellData);
|
193
|
-
conditionState.changeOperator(isFilterBy ? postFilterInOperator : postFilterNotInOperator);
|
194
|
-
instanceValue_setValues(rightSide.value, [currentValueSpecificaton, newValueSpecification], tdsState.queryBuilderState.observerContext);
|
195
|
-
}
|
196
|
-
}
|
197
|
-
else {
|
198
|
-
const doesValueAlreadyExist = rightSide.value instanceof InstanceValue &&
|
199
|
-
rightSide.value.values
|
200
|
-
.filter((v) => v instanceof InstanceValue)
|
201
|
-
.map((v) => v instanceof EnumValueInstanceValue
|
202
|
-
? v.values.map((ef) => ef.value.name)
|
203
|
-
: v.values)
|
204
|
-
.flat()
|
205
|
-
.includes(cellData.value ?? data?.value);
|
206
|
-
if (!doesValueAlreadyExist) {
|
207
|
-
const newValueSpecification = (isFilterBy ? postFilterEqualOperator : postFilterNotEqualOperator).getDefaultFilterConditionValue(conditionState);
|
208
|
-
updateFilterConditionValue(newValueSpecification, cellData);
|
209
|
-
instanceValue_setValues(rightSide.value, [
|
210
|
-
...rightSide.value.values,
|
211
|
-
newValueSpecification,
|
212
|
-
], tdsState.queryBuilderState.observerContext);
|
213
|
-
}
|
214
|
-
}
|
163
|
+
if (conditionState.operator.getLabel() !== operator.getLabel()) {
|
164
|
+
conditionState.changeOperator(isFilterBy ? postFilterEmptyOperator : postFilterNotEmptyOperator);
|
215
165
|
}
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
166
|
+
return;
|
167
|
+
}
|
168
|
+
const conditionState = existingPostFilterNode.condition;
|
169
|
+
const rightSide = conditionState.rightConditionValue;
|
170
|
+
if (rightSide instanceof PostFilterValueSpecConditionValueState) {
|
171
|
+
if (conditionState.operator.getLabel() === operator.getLabel()) {
|
172
|
+
const doesValueAlreadyExist = rightSide.value instanceof InstanceValue &&
|
173
|
+
(rightSide.value instanceof EnumValueInstanceValue
|
174
|
+
? rightSide.value.values.map((ef) => ef.value.name)
|
175
|
+
: rightSide.value.values).includes(_cellData.value);
|
176
|
+
if (!doesValueAlreadyExist) {
|
177
|
+
const currentValueSpecificaton = rightSide.value;
|
178
|
+
const newValueSpecification = conditionState.operator.getDefaultFilterConditionValue(conditionState);
|
179
|
+
updateFilterConditionValue(newValueSpecification, _cellData, tdsState);
|
180
|
+
conditionState.changeOperator(isFilterBy ? postFilterInOperator : postFilterNotInOperator);
|
181
|
+
instanceValue_setValues(rightSide.value, [currentValueSpecificaton, newValueSpecification], tdsState.queryBuilderState.observerContext);
|
224
182
|
}
|
225
183
|
}
|
226
184
|
else {
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
? [postFilterEmptyOperator, postFilterNotEmptyOperator]
|
240
|
-
: isFilterBy
|
241
|
-
? [postFilterEqualOperator, postFilterInOperator]
|
242
|
-
: [postFilterNotEqualOperator, postFilterNotInOperator], cellData.columnName);
|
243
|
-
existingPostFilterNode === undefined
|
244
|
-
? generateNewPostFilterConditionNodeData(operator, cellData).catch(applicationStore.alertUnhandledError)
|
245
|
-
: updateExistingPostFilterConditionNodeData(existingPostFilterNode, isFilterBy, cellData, operator);
|
246
|
-
};
|
247
|
-
const filterByOrOutValues = (isFilterBy) => {
|
248
|
-
tdsState.queryBuilderState.resultState.selectedCells.forEach((cellData) => {
|
249
|
-
filterByOrOutValue(isFilterBy, cellData);
|
250
|
-
});
|
251
|
-
};
|
252
|
-
const handleCopyCellValue = isEnterpriseModeEnabled
|
253
|
-
? () => {
|
254
|
-
dataGridApi.copySelectedRangeToClipboard();
|
255
|
-
}
|
256
|
-
: applicationStore.guardUnhandledError(() => applicationStore.clipboardService.copyTextToClipboard(tdsState.queryBuilderState.resultState.selectedCells
|
257
|
-
.map((cellData) => cellData.value)
|
258
|
-
.join(',')));
|
259
|
-
const findRowFromRowIndex = (rowIndex) => {
|
260
|
-
if (!tdsState.queryBuilderState.resultState.executionResult ||
|
261
|
-
!(tdsState.queryBuilderState.resultState.executionResult instanceof
|
262
|
-
TDSExecutionResult)) {
|
263
|
-
return '';
|
264
|
-
}
|
265
|
-
// try to get the entire row value separated by comma
|
266
|
-
// rowData is in format of {columnName: value, columnName1: value, ...., rowNumber:value}
|
267
|
-
const valueArr = [];
|
268
|
-
Object.entries(dataGridApi.getRenderedNodes().find((n) => n.rowIndex === rowIndex)
|
269
|
-
?.data).forEach((entry) => {
|
270
|
-
if (entry[0] !== 'rowNumber') {
|
271
|
-
valueArr.push(entry[1]);
|
185
|
+
const doesValueAlreadyExist = rightSide.value instanceof InstanceValue &&
|
186
|
+
rightSide.value.values
|
187
|
+
.filter((v) => v instanceof InstanceValue)
|
188
|
+
.map((v) => v instanceof EnumValueInstanceValue
|
189
|
+
? v.values.map((ef) => ef.value.name)
|
190
|
+
: v.values)
|
191
|
+
.flat()
|
192
|
+
.includes(_cellData.value ?? data?.value);
|
193
|
+
if (!doesValueAlreadyExist) {
|
194
|
+
const newValueSpecification = (isFilterBy ? postFilterEqualOperator : postFilterNotEqualOperator).getDefaultFilterConditionValue(conditionState);
|
195
|
+
updateFilterConditionValue(newValueSpecification, _cellData, tdsState);
|
196
|
+
instanceValue_setValues(rightSide.value, [...rightSide.value.values, newValueSpecification], tdsState.queryBuilderState.observerContext);
|
272
197
|
}
|
273
|
-
});
|
274
|
-
return valueArr.join(',');
|
275
|
-
};
|
276
|
-
const handleCopyRowValue = isEnterpriseModeEnabled
|
277
|
-
? () => {
|
278
|
-
dataGridApi.copySelectedRowsToClipboard();
|
279
198
|
}
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
}, children: "Filter Out" }), _jsx(MenuContentDivider, {}), _jsx(MenuContentItem, { onClick: handleCopyCellValue, children: "Copy Cell Value" }), _jsx(MenuContentItem, { onClick: handleCopyRowValue, children: "Copy Row Value" })] }));
|
287
|
-
}));
|
288
|
-
export const QueryResultEnterpriseCellRenderer = observer((params) => {
|
289
|
-
const resultState = params.resultState;
|
290
|
-
const fetchStructureImplementation = resultState.queryBuilderState.fetchStructureState.implementation;
|
291
|
-
const cellValue = params.value;
|
292
|
-
const formattedCellValue = () => {
|
293
|
-
if (isNumber(cellValue)) {
|
294
|
-
return Intl.NumberFormat(DEFAULT_LOCALE, {
|
295
|
-
maximumFractionDigits: 4,
|
296
|
-
}).format(Number(cellValue));
|
297
|
-
}
|
298
|
-
return cellValue;
|
299
|
-
};
|
300
|
-
const cellValueUrlLink = isString(cellValue) && isValidURL(cellValue) ? cellValue : undefined;
|
301
|
-
const mouseDown = (event) => {
|
302
|
-
event.preventDefault();
|
303
|
-
if (event.button === 0 || event.button === 2) {
|
304
|
-
resultState.setMouseOverCell(resultState.selectedCells[0] ?? null);
|
305
|
-
}
|
306
|
-
};
|
307
|
-
const mouseUp = (event) => {
|
308
|
-
resultState.setIsSelectingCells(false);
|
309
|
-
};
|
310
|
-
const mouseOver = (event) => {
|
311
|
-
resultState.setMouseOverCell(resultState.selectedCells[0] ?? null);
|
312
|
-
};
|
313
|
-
return (_jsx(ContextMenu, { content:
|
314
|
-
// NOTE: we only support this functionality for grid result with a projection fetch-structure
|
315
|
-
fetchStructureImplementation instanceof QueryBuilderTDSState ? (_jsx(QueryBuilderGridResultContextMenu, { data: resultState.mousedOverCell, tdsState: fetchStructureImplementation, dataGridApi: params.api })) : null, disabled: !(resultState.queryBuilderState.fetchStructureState
|
316
|
-
.implementation instanceof QueryBuilderTDSState) ||
|
317
|
-
!resultState.queryBuilderState.isQuerySupported ||
|
318
|
-
!resultState.mousedOverCell, menuProps: { elevation: 7 }, className: clsx('ag-theme-balham-dark query-builder__result__tds-grid'), children: _jsx("div", { className: clsx('query-builder__result__values__table__cell'), onMouseDown: (event) => mouseDown(event), onMouseUp: (event) => mouseUp(event), onMouseOver: (event) => mouseOver(event), children: cellValueUrlLink ? (_jsx("a", { href: cellValueUrlLink, target: "_blank", rel: "noreferrer", children: cellValueUrlLink })) : (_jsx("span", { children: formattedCellValue() })) }) }));
|
319
|
-
});
|
320
|
-
export const QueryResultCellRenderer = observer((params) => {
|
321
|
-
const resultState = params.resultState;
|
322
|
-
const tdsExecutionResult = params.tdsExecutionResult;
|
323
|
-
const fetchStructureImplementation = resultState.queryBuilderState.fetchStructureState.implementation;
|
324
|
-
const cellValue = params.value;
|
325
|
-
const formattedCellValue = () => {
|
326
|
-
if (isNumber(cellValue)) {
|
327
|
-
return Intl.NumberFormat(DEFAULT_LOCALE, {
|
328
|
-
maximumFractionDigits: 4,
|
329
|
-
}).format(Number(cellValue));
|
330
|
-
}
|
331
|
-
return cellValue;
|
332
|
-
};
|
333
|
-
const cellValueUrlLink = isString(cellValue) && isValidURL(cellValue) ? cellValue : undefined;
|
334
|
-
const columnName = params.column?.getColId() ?? '';
|
335
|
-
const findCoordinatesFromResultValue = (colId, rowNumber) => {
|
336
|
-
const colIndex = tdsExecutionResult.result.columns.findIndex((col) => col === colId);
|
337
|
-
return { rowIndex: rowNumber, colIndex: colIndex };
|
338
|
-
};
|
339
|
-
const currentCellCoordinates = findCoordinatesFromResultValue(columnName, params.rowIndex);
|
340
|
-
const cellInFilteredResults = resultState.selectedCells.some((result) => result.coordinates.colIndex === currentCellCoordinates.colIndex &&
|
341
|
-
result.coordinates.rowIndex === currentCellCoordinates.rowIndex);
|
342
|
-
const findColumnFromCoordinates = (colIndex) => {
|
343
|
-
if (!resultState.executionResult ||
|
344
|
-
!(resultState.executionResult instanceof TDSExecutionResult)) {
|
345
|
-
return undefined;
|
346
|
-
}
|
347
|
-
return resultState.executionResult.result.columns[colIndex];
|
348
|
-
};
|
349
|
-
const findResultValueFromCoordinates = (resultCoordinate) => {
|
350
|
-
const rowIndex = resultCoordinate[0];
|
351
|
-
const colIndex = resultCoordinate[1];
|
352
|
-
if (!resultState.executionResult ||
|
353
|
-
!(resultState.executionResult instanceof TDSExecutionResult)) {
|
354
|
-
return undefined;
|
355
|
-
}
|
356
|
-
if (params.columnApi.getColumnState()[colIndex]?.sort === 'asc') {
|
357
|
-
resultState.executionResult.result.rows.sort((a, b) => getTDSRowRankByColumnInAsc(a, b, colIndex));
|
358
|
-
}
|
359
|
-
else if (params.columnApi.getColumnState()[colIndex]?.sort === 'desc') {
|
360
|
-
resultState.executionResult.result.rows.sort((a, b) => getTDSRowRankByColumnInAsc(b, a, colIndex));
|
361
|
-
}
|
362
|
-
return resultState.executionResult.result.rows[rowIndex]?.values[colIndex];
|
363
|
-
};
|
364
|
-
const isCoordinatesSelected = (resultCoordinate) => resultState.selectedCells.some((cell) => cell.coordinates.rowIndex === resultCoordinate.rowIndex &&
|
365
|
-
cell.coordinates.colIndex === resultCoordinate.colIndex);
|
366
|
-
const mouseDown = (event) => {
|
367
|
-
event.preventDefault();
|
368
|
-
if (event.shiftKey) {
|
369
|
-
const coordinates = findCoordinatesFromResultValue(columnName, params.rowIndex);
|
370
|
-
const actualValue = findResultValueFromCoordinates([
|
371
|
-
coordinates.rowIndex,
|
372
|
-
coordinates.colIndex,
|
373
|
-
]);
|
374
|
-
resultState.addSelectedCell({
|
375
|
-
value: actualValue,
|
376
|
-
columnName: columnName,
|
377
|
-
coordinates: coordinates,
|
378
|
-
});
|
379
|
-
return;
|
199
|
+
}
|
200
|
+
};
|
201
|
+
const getFilterOperator = (isFilterBy, _cellData) => {
|
202
|
+
if (isFilterBy) {
|
203
|
+
if (_cellData.value === null) {
|
204
|
+
return postFilterEmptyOperator;
|
380
205
|
}
|
381
|
-
|
382
|
-
|
383
|
-
resultState.setSelectedCells([]);
|
384
|
-
const coordinates = findCoordinatesFromResultValue(columnName, params.rowIndex);
|
385
|
-
const actualValue = findResultValueFromCoordinates([
|
386
|
-
coordinates.rowIndex,
|
387
|
-
coordinates.colIndex,
|
388
|
-
]);
|
389
|
-
resultState.setSelectedCells([
|
390
|
-
{
|
391
|
-
value: actualValue,
|
392
|
-
columnName: columnName,
|
393
|
-
coordinates: coordinates,
|
394
|
-
},
|
395
|
-
]);
|
396
|
-
resultState.setMouseOverCell(resultState.selectedCells[0] ?? null);
|
206
|
+
else {
|
207
|
+
return postFilterEqualOperator;
|
397
208
|
}
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
const actualValue = findResultValueFromCoordinates([
|
403
|
-
coordinates.rowIndex,
|
404
|
-
coordinates.colIndex,
|
405
|
-
]);
|
406
|
-
resultState.setSelectedCells([
|
407
|
-
{
|
408
|
-
value: actualValue,
|
409
|
-
columnName: columnName,
|
410
|
-
coordinates: coordinates,
|
411
|
-
},
|
412
|
-
]);
|
413
|
-
resultState.setMouseOverCell(resultState.selectedCells[0] ?? null);
|
414
|
-
}
|
209
|
+
}
|
210
|
+
else {
|
211
|
+
if (_cellData.value === null) {
|
212
|
+
return postFilterNotEmptyOperator;
|
415
213
|
}
|
416
|
-
|
417
|
-
|
418
|
-
resultState.setIsSelectingCells(false);
|
419
|
-
};
|
420
|
-
const mouseOver = (event) => {
|
421
|
-
if (resultState.isSelectingCells) {
|
422
|
-
if (resultState.selectedCells.length < 1) {
|
423
|
-
return;
|
424
|
-
}
|
425
|
-
const results = resultState.selectedCells[0];
|
426
|
-
if (!results) {
|
427
|
-
return;
|
428
|
-
}
|
429
|
-
const firstCorner = results.coordinates;
|
430
|
-
const secondCorner = findCoordinatesFromResultValue(columnName, params.rowIndex);
|
431
|
-
resultState.setSelectedCells([results]);
|
432
|
-
const minRow = Math.min(firstCorner.rowIndex, secondCorner.rowIndex);
|
433
|
-
const minCol = Math.min(firstCorner.colIndex, secondCorner.colIndex);
|
434
|
-
const maxRow = Math.max(firstCorner.rowIndex, secondCorner.rowIndex);
|
435
|
-
const maxCol = Math.max(firstCorner.colIndex, secondCorner.colIndex);
|
436
|
-
for (let x = minRow; x <= maxRow; x++) {
|
437
|
-
for (let y = minCol; y <= maxCol; y++) {
|
438
|
-
const actualValue = findResultValueFromCoordinates([x, y]);
|
439
|
-
const valueAndColumnId = {
|
440
|
-
value: actualValue,
|
441
|
-
columnName: findColumnFromCoordinates(y),
|
442
|
-
coordinates: {
|
443
|
-
rowIndex: x,
|
444
|
-
colIndex: y,
|
445
|
-
},
|
446
|
-
};
|
447
|
-
if (!resultState.selectedCells.find((result) => result.coordinates.colIndex === y &&
|
448
|
-
result.coordinates.rowIndex === x)) {
|
449
|
-
resultState.addSelectedCell(valueAndColumnId);
|
450
|
-
}
|
451
|
-
}
|
452
|
-
}
|
214
|
+
else {
|
215
|
+
return postFilterNotEqualOperator;
|
453
216
|
}
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
217
|
+
}
|
218
|
+
};
|
219
|
+
const filterByOrOutValue = (applicationStore, isFilterBy, _cellData, data, tdsState) => {
|
220
|
+
tdsState.setShowPostFilterPanel(true);
|
221
|
+
const operator = getFilterOperator(isFilterBy, _cellData);
|
222
|
+
const tdsColState = data?.columnName
|
223
|
+
? getTDSColumnState(tdsState, data.columnName)
|
224
|
+
: undefined;
|
225
|
+
const existingPostFilterNode = getExistingPostFilterNode(_cellData.value === null
|
226
|
+
? [postFilterEmptyOperator, postFilterNotEmptyOperator]
|
227
|
+
: isFilterBy
|
228
|
+
? [postFilterEqualOperator, postFilterInOperator]
|
229
|
+
: [postFilterNotEqualOperator, postFilterNotInOperator], _cellData.columnName, tdsState.postFilterState, tdsColState);
|
230
|
+
existingPostFilterNode === undefined
|
231
|
+
? generateNewPostFilterConditionNodeData(applicationStore, operator, _cellData, tdsState, tdsColState).catch(applicationStore.alertUnhandledError)
|
232
|
+
: updateExistingPostFilterConditionNodeData(existingPostFilterNode, isFilterBy, _cellData, operator, data, tdsState);
|
233
|
+
};
|
234
|
+
export const filterByOrOutValues = (applicationStore, data, isFilterBy, tdsState) => {
|
235
|
+
tdsState.queryBuilderState.resultState.selectedCells.forEach((_cellData) => {
|
236
|
+
filterByOrOutValue(applicationStore, isFilterBy, _cellData, data, tdsState);
|
237
|
+
});
|
238
|
+
};
|
239
|
+
export const QueryBuilderGridResultContextMenu = observer(forwardRef(function QueryBuilderResultContextMenu(props, ref) {
|
240
|
+
const { data, tdsState, copyCellValueFunc, copyCellRowValueFunc } = props;
|
241
|
+
const applicationStore = useApplicationStore();
|
242
|
+
const tdsColState = data?.columnName
|
243
|
+
? getTDSColumnState(tdsState, data.columnName)
|
244
|
+
: undefined;
|
245
|
+
return (_jsxs(MenuContent, { ref: ref, children: [_jsx(MenuContentItem, { disabled: !tdsColState, onClick: () => {
|
246
|
+
filterByOrOutValues(applicationStore, data, true, tdsState);
|
247
|
+
}, children: "Filter By" }), _jsx(MenuContentItem, { disabled: !tdsColState, onClick: () => {
|
248
|
+
filterByOrOutValues(applicationStore, data, false, tdsState);
|
249
|
+
}, children: "Filter Out" }), _jsx(MenuContentDivider, {}), _jsx(MenuContentItem, { onClick: copyCellValueFunc, children: "Copy Cell Value" }), _jsx(MenuContentItem, { onClick: copyCellRowValueFunc, children: "Copy Row Value" })] }));
|
250
|
+
}));
|
465
251
|
//# 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,WAAW,EACX,IAAI,EACJ,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C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,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,EACxC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,EACpC,WAAW,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,YAEvC,gBAAgB,CAAC,CAAC,CAAC,CAClB,YAAG,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,YAAY,YACxD,gBAAgB,GACf,CACL,CAAC,CAAC,CAAC,CACF,yBAAO,kBAAkB,EAAE,GAAQ,CACpC,GACG,GACM,CACf,CAAC;AACJ,CAAC,CACF,CAAC"}
|
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;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAGL,aAAa,EACb,sBAAsB,EACtB,0BAA0B,EAC1B,cAAc,EAEd,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAKL,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,YAAY,EACZ,SAAS,GACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EACL,2CAA2C,EAC3C,iCAAiC,GAClC,MAAM,qFAAqF,CAAC;AAC7F,OAAO,EAGL,wBAAwB,EACxB,2CAA2C,EAC3C,sCAAsC,GACvC,MA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BuilderState } from '../../../stores/QueryBuilderState.js';
|
17
|
-
import
|
17
|
+
import { TDSExecutionResult } from '@finos/legend-graph';
|
18
18
|
export declare const QueryBuilderTDSSimpleGridResult: ((props: {
|
19
19
|
executionResult: TDSExecutionResult;
|
20
20
|
queryBuilderState: QueryBuilderState;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderTDSSimpleGridResult.d.ts","sourceRoot":"","sources":["../../../../src/components/result/tds/QueryBuilderTDSSimpleGridResult.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,
|
1
|
+
{"version":3,"file":"QueryBuilderTDSSimpleGridResult.d.ts","sourceRoot":"","sources":["../../../../src/components/result/tds/QueryBuilderTDSSimpleGridResult.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAEL,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AA0T7B,eAAO,MAAM,+BAA+B,WAClC;IACN,eAAe,EAAE,kBAAkB,CAAC;IACpC,iBAAiB,EAAE,iBAAiB,CAAC;CACtC;;CA8CF,CAAC"}
|