@finos/legend-query-builder 4.10.0 → 4.10.1
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/__lib__/QueryBuilderTesting.d.ts +1 -0
- package/lib/__lib__/QueryBuilderTesting.d.ts.map +1 -1
- package/lib/__lib__/QueryBuilderTesting.js +1 -0
- package/lib/__lib__/QueryBuilderTesting.js.map +1 -1
- package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderResultPanel.js +44 -57
- package/lib/components/QueryBuilderResultPanel.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/index.css +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/QueryBuilderResultState.d.ts +3 -0
- package/lib/stores/QueryBuilderResultState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderResultState.js +31 -2
- package/lib/stores/QueryBuilderResultState.js.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__/QueryBuilderTesting.ts +1 -0
- package/src/components/QueryBuilderResultPanel.tsx +63 -76
- package/src/components/filter/QueryBuilderFilterPanel.tsx +239 -21
- package/src/stores/QueryBuilderResultState.ts +36 -1
- package/src/stores/filter/QueryBuilderFilterState.ts +40 -1
@@ -25,6 +25,7 @@ export declare enum QUERY_BUILDER_TEST_ID {
|
|
25
25
|
QUERY_BUILDER_FILTER_TREE = "query__builder__filter__tree",
|
26
26
|
QUERY_BUILDER_FILTER_TREE_NODE = "query__builder__filter__tree__node",
|
27
27
|
QUERY_BUILDER_FILTER_TREE_NODE_CONTENT = "query__builder__filter__tree__node-content",
|
28
|
+
QUERY_BUILDER_FILTER_TREE_CONDITION_NODE_CONTENT = "query__builder__filter__tree__condition__node-content",
|
28
29
|
QUERY_BUILDER_POST_FILTER_PANEL = "query__builder__post__filter-panel",
|
29
30
|
QUERY_BUILDER_POST_FILTER_TREE_NODE_CONTENT = "query__builder__post__filter-tree-node__content",
|
30
31
|
QUERY_BUILDER_WINDOW_GROUPBY = "query__builder__window",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderTesting.d.ts","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderTesting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,qBAAqB;IAC/B,2BAA2B,iCAAiC;IAE5D,aAAa,mBAAmB;IAChC,mBAAmB,0BAA0B;IAC7C,iBAAiB,wBAAwB;IACzC,mCAAmC,wCAAwC;IAC3E,wCAAwC,+CAA+C;IACvF,yBAAyB,iCAAiC;IAE1D,0BAA0B,kCAAkC;IAC5D,yBAAyB,iCAAiC;IAC1D,8BAA8B,uCAAuC;IACrE,sCAAsC,+CAA+C;
|
1
|
+
{"version":3,"file":"QueryBuilderTesting.d.ts","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderTesting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,qBAAqB;IAC/B,2BAA2B,iCAAiC;IAE5D,aAAa,mBAAmB;IAChC,mBAAmB,0BAA0B;IAC7C,iBAAiB,wBAAwB;IACzC,mCAAmC,wCAAwC;IAC3E,wCAAwC,+CAA+C;IACvF,yBAAyB,iCAAiC;IAE1D,0BAA0B,kCAAkC;IAC5D,yBAAyB,iCAAiC;IAC1D,8BAA8B,uCAAuC;IACrE,sCAAsC,+CAA+C;IACrF,gDAAgD,0DAA0D;IAE1G,+BAA+B,uCAAuC;IACtE,2CAA2C,oDAAoD;IAC/F,4BAA4B,2BAA2B;IACvD,sBAAsB,6BAA6B;IACnD,mCAAmC,4CAA4C;IAC/E,0BAA0B,kCAAkC;IAC5D,8BAA8B,sCAAsC;IACpE,wBAAwB,8BAA8B;IACtD,uBAAuB,6BAA6B;CACrD"}
|
@@ -27,6 +27,7 @@ export var QUERY_BUILDER_TEST_ID;
|
|
27
27
|
QUERY_BUILDER_TEST_ID["QUERY_BUILDER_FILTER_TREE"] = "query__builder__filter__tree";
|
28
28
|
QUERY_BUILDER_TEST_ID["QUERY_BUILDER_FILTER_TREE_NODE"] = "query__builder__filter__tree__node";
|
29
29
|
QUERY_BUILDER_TEST_ID["QUERY_BUILDER_FILTER_TREE_NODE_CONTENT"] = "query__builder__filter__tree__node-content";
|
30
|
+
QUERY_BUILDER_TEST_ID["QUERY_BUILDER_FILTER_TREE_CONDITION_NODE_CONTENT"] = "query__builder__filter__tree__condition__node-content";
|
30
31
|
// post filter
|
31
32
|
QUERY_BUILDER_TEST_ID["QUERY_BUILDER_POST_FILTER_PANEL"] = "query__builder__post__filter-panel";
|
32
33
|
QUERY_BUILDER_TEST_ID["QUERY_BUILDER_POST_FILTER_TREE_NODE_CONTENT"] = "query__builder__post__filter-tree-node__content";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderTesting.js","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderTesting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,
|
1
|
+
{"version":3,"file":"QueryBuilderTesting.js","sourceRoot":"","sources":["../../src/__lib__/QueryBuilderTesting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,qBAyBX;AAzBD,WAAY,qBAAqB;IAC/B,qFAA4D,CAAA;IAE5D,yDAAgC,CAAA;IAChC,sEAA6C,CAAA;IAC7C,kEAAyC,CAAA;IACzC,oGAA2E,CAAA;IAC3E,gHAAuF,CAAA;IACvF,mFAA0D,CAAA;IAC1D,eAAe;IACf,qFAA4D,CAAA;IAC5D,mFAA0D,CAAA;IAC1D,8FAAqE,CAAA;IACrE,8GAAqF,CAAA;IACrF,mIAA0G,CAAA;IAC1G,cAAc;IACd,+FAAsE,CAAA;IACtE,wHAA+F,CAAA;IAC/F,gFAAuD,CAAA;IACvD,4EAAmD,CAAA;IACnD,wGAA+E,CAAA;IAC/E,qFAA4D,CAAA;IAC5D,6FAAoE,CAAA;IACpE,+EAAsD,CAAA;IACtD,6EAAoD,CAAA;AACtD,CAAC,EAzBW,qBAAqB,KAArB,qBAAqB,QAyBhC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderResultPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA6BH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderResultPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA6BH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AA4ExE,eAAO,MAAM,cAAc,QAAS,MAAM,KAAG,MAY5C,CAAC;AAsrBF,eAAO,MAAM,uBAAuB,WAC1B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAsZjD,CAAC"}
|
@@ -18,9 +18,9 @@ import { BlankPanelContent, PanelLoadingIndicator, PlayIcon, DropdownMenu, MenuC
|
|
18
18
|
import { format as formatSQL } from 'sql-formatter';
|
19
19
|
import { observer } from 'mobx-react-lite';
|
20
20
|
import { flowResult } from 'mobx';
|
21
|
-
import { InstanceValue, extractExecutionResultValues, TDSExecutionResult, RawExecutionResult, EnumValueInstanceValue, EnumValueExplicitReference, RelationalExecutionActivities,
|
21
|
+
import { InstanceValue, extractExecutionResultValues, TDSExecutionResult, RawExecutionResult, EnumValueInstanceValue, EnumValueExplicitReference, RelationalExecutionActivities, } from '@finos/legend-graph';
|
22
22
|
import { ActionAlertActionType, ActionAlertType, DEFAULT_TAB_SIZE, useApplicationStore, } from '@finos/legend-application';
|
23
|
-
import { assertErrorThrown, guaranteeNonNullable,
|
23
|
+
import { assertErrorThrown, guaranteeNonNullable, prettyDuration, filterByType, isValidURL, isString, isNumber, } from '@finos/legend-shared';
|
24
24
|
import { forwardRef, useRef, useState } 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';
|
@@ -193,16 +193,29 @@ const QueryBuilderGridResultContextMenu = observer(forwardRef(function QueryBuil
|
|
193
193
|
});
|
194
194
|
};
|
195
195
|
const handleCopyCellValue = applicationStore.guardUnhandledError(() => applicationStore.clipboardService.copyTextToClipboard(data?.value?.toString() ?? ''));
|
196
|
-
const
|
196
|
+
const findSelectedCellRowData = () => {
|
197
197
|
if (!tdsState.queryBuilderState.resultState.executionResult ||
|
198
198
|
!(tdsState.queryBuilderState.resultState.executionResult instanceof
|
199
199
|
TDSExecutionResult)) {
|
200
|
-
return
|
200
|
+
return '';
|
201
201
|
}
|
202
|
-
|
202
|
+
const rowData = tdsState.queryBuilderState.resultState.rowData.find((rData) => rData.rowNumber ===
|
203
|
+
tdsState.queryBuilderState.resultState.selectedCells[0]?.coordinates
|
204
|
+
.rowIndex);
|
205
|
+
// try to get the entire row value separated by comma
|
206
|
+
// rowData is in format of {columnName: value, columnName1: value, ...., rowNumber:value}
|
207
|
+
const valueArr = [];
|
208
|
+
if (rowData) {
|
209
|
+
Object.entries(rowData).forEach((entry) => {
|
210
|
+
if (entry[0] !== 'rowNumber') {
|
211
|
+
valueArr.push(entry[1]);
|
212
|
+
}
|
213
|
+
});
|
214
|
+
return valueArr.join(',');
|
215
|
+
}
|
216
|
+
return '';
|
203
217
|
};
|
204
|
-
const handleCopyRowValue = applicationStore.guardUnhandledError(() => applicationStore.clipboardService.copyTextToClipboard(
|
205
|
-
.rowIndex ?? 0).toString()));
|
218
|
+
const handleCopyRowValue = applicationStore.guardUnhandledError(() => applicationStore.clipboardService.copyTextToClipboard(findSelectedCellRowData()));
|
206
219
|
return (_jsxs(MenuContent, { ref: ref, children: [_jsx(MenuContentItem, { disabled: !projectionColumnState, onClick: () => {
|
207
220
|
filterByOrOutValues(true);
|
208
221
|
}, children: "Filter By" }), _jsx(MenuContentItem, { disabled: !projectionColumnState, onClick: () => {
|
@@ -224,45 +237,28 @@ const QueryResultCellRenderer = observer((params) => {
|
|
224
237
|
};
|
225
238
|
const cellValueUrlLink = isString(cellValue) && isValidURL(cellValue) ? cellValue : undefined;
|
226
239
|
const columnName = params.column?.getColId() ?? '';
|
227
|
-
const findCoordinatesFromResultValue = (
|
228
|
-
const colIndex = tdsExecutionResult.result.columns.findIndex((col) => col ===
|
240
|
+
const findCoordinatesFromResultValue = (colName, rowNumber) => {
|
241
|
+
const colIndex = tdsExecutionResult.result.columns.findIndex((col) => col === colName);
|
229
242
|
return { rowIndex: rowNumber, colIndex: colIndex };
|
230
243
|
};
|
231
|
-
const currentCellCoordinates = findCoordinatesFromResultValue(columnName, params.
|
244
|
+
const currentCellCoordinates = findCoordinatesFromResultValue(columnName, params.data.rowNumber);
|
232
245
|
const cellInFilteredResults = resultState.selectedCells.some((result) => result.coordinates.colIndex === currentCellCoordinates.colIndex &&
|
233
246
|
result.coordinates.rowIndex === currentCellCoordinates.rowIndex);
|
234
|
-
const
|
247
|
+
const findColumnNameFromColumnIndex = (colIndex) => {
|
235
248
|
if (!resultState.executionResult ||
|
236
249
|
!(resultState.executionResult instanceof TDSExecutionResult)) {
|
237
250
|
return undefined;
|
238
251
|
}
|
239
252
|
return resultState.executionResult.result.columns[colIndex];
|
240
253
|
};
|
241
|
-
const findResultValueFromCoordinates = (
|
242
|
-
const rowIndex = resultCoordinate[0];
|
243
|
-
const colIndex = resultCoordinate[1];
|
244
|
-
if (!resultState.executionResult ||
|
245
|
-
!(resultState.executionResult instanceof TDSExecutionResult)) {
|
246
|
-
return undefined;
|
247
|
-
}
|
248
|
-
if (params.columnApi.getColumnState()[colIndex]?.sort === 'asc') {
|
249
|
-
resultState.executionResult.result.rows.sort((a, b) => getTDSRowRankByColumnInAsc(a, b, colIndex));
|
250
|
-
}
|
251
|
-
else if (params.columnApi.getColumnState()[colIndex]?.sort === 'desc') {
|
252
|
-
resultState.executionResult.result.rows.sort((a, b) => getTDSRowRankByColumnInAsc(b, a, colIndex));
|
253
|
-
}
|
254
|
-
return resultState.executionResult.result.rows[rowIndex]?.values[colIndex];
|
255
|
-
};
|
254
|
+
const findResultValueFromCoordinates = (rowIndex, colName) => resultState.rowData.find((data) => data.rowNumber === rowIndex)[colName];
|
256
255
|
const isCoordinatesSelected = (resultCoordinate) => resultState.selectedCells.some((cell) => cell.coordinates.rowIndex === resultCoordinate.rowIndex &&
|
257
256
|
cell.coordinates.colIndex === resultCoordinate.colIndex);
|
258
257
|
const mouseDown = (event) => {
|
259
258
|
event.preventDefault();
|
260
259
|
if (event.shiftKey) {
|
261
|
-
const coordinates = findCoordinatesFromResultValue(columnName, params.
|
262
|
-
const actualValue = findResultValueFromCoordinates(
|
263
|
-
coordinates.rowIndex,
|
264
|
-
coordinates.colIndex,
|
265
|
-
]);
|
260
|
+
const coordinates = findCoordinatesFromResultValue(columnName, params.data.rowNumber);
|
261
|
+
const actualValue = findResultValueFromCoordinates(coordinates.rowIndex, columnName);
|
266
262
|
resultState.addSelectedCell({
|
267
263
|
value: actualValue,
|
268
264
|
columnName: columnName,
|
@@ -273,11 +269,8 @@ const QueryResultCellRenderer = observer((params) => {
|
|
273
269
|
if (event.button === 0) {
|
274
270
|
resultState.setIsSelectingCells(true);
|
275
271
|
resultState.setSelectedCells([]);
|
276
|
-
const coordinates = findCoordinatesFromResultValue(columnName, params.
|
277
|
-
const actualValue = findResultValueFromCoordinates(
|
278
|
-
coordinates.rowIndex,
|
279
|
-
coordinates.colIndex,
|
280
|
-
]);
|
272
|
+
const coordinates = findCoordinatesFromResultValue(columnName, params.data.rowNumber);
|
273
|
+
const actualValue = findResultValueFromCoordinates(coordinates.rowIndex, columnName);
|
281
274
|
resultState.setSelectedCells([
|
282
275
|
{
|
283
276
|
value: actualValue,
|
@@ -288,13 +281,10 @@ const QueryResultCellRenderer = observer((params) => {
|
|
288
281
|
resultState.setMouseOverCell(resultState.selectedCells[0] ?? null);
|
289
282
|
}
|
290
283
|
if (event.button === 2) {
|
291
|
-
const coordinates = findCoordinatesFromResultValue(columnName, params.
|
284
|
+
const coordinates = findCoordinatesFromResultValue(columnName, params.data.rowNumber);
|
292
285
|
const isInSelected = isCoordinatesSelected(coordinates);
|
293
286
|
if (!isInSelected) {
|
294
|
-
const actualValue = findResultValueFromCoordinates(
|
295
|
-
coordinates.rowIndex,
|
296
|
-
coordinates.colIndex,
|
297
|
-
]);
|
287
|
+
const actualValue = findResultValueFromCoordinates(coordinates.rowIndex, columnName);
|
298
288
|
resultState.setSelectedCells([
|
299
289
|
{
|
300
290
|
value: actualValue,
|
@@ -319,7 +309,7 @@ const QueryResultCellRenderer = observer((params) => {
|
|
319
309
|
return;
|
320
310
|
}
|
321
311
|
const firstCorner = results.coordinates;
|
322
|
-
const secondCorner = findCoordinatesFromResultValue(columnName, params.
|
312
|
+
const secondCorner = findCoordinatesFromResultValue(columnName, params.data.rowNumber);
|
323
313
|
resultState.setSelectedCells([results]);
|
324
314
|
const minRow = Math.min(firstCorner.rowIndex, secondCorner.rowIndex);
|
325
315
|
const minCol = Math.min(firstCorner.colIndex, secondCorner.colIndex);
|
@@ -327,10 +317,10 @@ const QueryResultCellRenderer = observer((params) => {
|
|
327
317
|
const maxCol = Math.max(firstCorner.colIndex, secondCorner.colIndex);
|
328
318
|
for (let x = minRow; x <= maxRow; x++) {
|
329
319
|
for (let y = minCol; y <= maxCol; y++) {
|
330
|
-
const actualValue = findResultValueFromCoordinates(
|
320
|
+
const actualValue = findResultValueFromCoordinates(x, findColumnNameFromColumnIndex(y));
|
331
321
|
const valueAndColumnId = {
|
332
322
|
value: actualValue,
|
333
|
-
columnName:
|
323
|
+
columnName: findColumnNameFromColumnIndex(y),
|
334
324
|
coordinates: {
|
335
325
|
rowIndex: x,
|
336
326
|
colIndex: y,
|
@@ -357,19 +347,16 @@ const QueryResultCellRenderer = observer((params) => {
|
|
357
347
|
const QueryBuilderGridResult = observer((props) => {
|
358
348
|
const { executionResult, queryBuilderState } = props;
|
359
349
|
const resultState = queryBuilderState.resultState;
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
return row;
|
371
|
-
});
|
372
|
-
return (_jsx("div", { className: "query-builder__result__values__table", children: _jsx("div", { className: clsx('ag-theme-balham-dark query-builder__result__tds-grid'), children: _jsx(DataGrid, { rowData: rowData, gridOptions: {
|
350
|
+
return (_jsx("div", { className: "query-builder__result__values__table", children: _jsx("div", { className: clsx('ag-theme-balham-dark query-builder__result__tds-grid'), children: _jsx(DataGrid, { rowData: queryBuilderState.resultState.getRowData(), onSortChanged: (params) => {
|
351
|
+
const sortedData = [];
|
352
|
+
params.api.forEachNodeAfterFilterAndSort((node, index) => {
|
353
|
+
node.rowIndex = index;
|
354
|
+
// rowNumber has to be manually updated after sorting the column
|
355
|
+
node.data.rowNumber = index;
|
356
|
+
sortedData.push(node.data);
|
357
|
+
});
|
358
|
+
queryBuilderState.resultState.setRowData(sortedData);
|
359
|
+
}, gridOptions: {
|
373
360
|
suppressScrollOnNewData: true,
|
374
361
|
getRowId: (data) => data.data.rowNumber,
|
375
362
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderResultPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.ts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ClB,WAAW,CAAC,2BAA2B,CAAC,IAAI,CAAC,EAE/C,QAAQ,EAAE,iBAAiB,CAAC,oBAAoB,CAAC,UAAU,oCAG3C,IACN,EAEhB,SAAS,EAAE;oCACT,YAAY,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE;oCACzD,eAAe,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE;oCACzD,SAAS,EAAE,CAAC;iCACb,aAED,cAAK,SAAS,EAAC,gDAAgD,uBAEzD,EACN,cAAK,SAAS,EAAC,kDAAkD,YAC/D,KAAC,aAAa,KAAG,GACb,IACO,EACd,WAAW,CAAC,wBAAwB,IAAI,CACvC,KAAC,gBAAgB,IAAC,WAAW,EAAE,WAAW,GAAI,CAC/C,IACG,IACF,EACN,MAAC,YAAY,eACX,KAAC,qBAAqB,IACpB,SAAS,EACP,WAAW,CAAC,cAAc;4BAC1B,WAAW,CAAC,gBAAgB;4BAC5B,WAAW,CAAC,eAAe,CAAC,YAAY,GAE1C,EACD,CAAC,eAAe,IAAI,CACnB,KAAC,iBAAiB,oDAEE,CACrB,EACA,eAAe,IAAI,CAClB,cAAK,SAAS,EAAC,+BAA+B,YAC5C,KAAC,wBAAwB,IACvB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,GACpC,GACE,CACP,IACY,EACf,KAAC,mBAAmB,IAClB,kBAAkB,EAAE,WAAW,CAAC,kBAAkB,GAClD,IACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
1
|
+
{"version":3,"file":"QueryBuilderResultPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,eAAe,EACf,aAAa,EACb,WAAW,EACX,IAAI,EACJ,eAAe,EACf,uB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B,IACvB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,GACpC,GACE,CACP,IACY,EACf,KAAC,mBAAmB,IAClB,kBAAkB,EAAE,WAAW,CAAC,kBAAkB,GAClD,IACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -13,14 +13,15 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { QUERY_BUILDER_FILTER_DND_TYPE,
|
16
|
+
import { type QueryBuilderFilterTreeNodeData, QUERY_BUILDER_FILTER_DND_TYPE, QueryBuilderFilterTreeConditionNodeData, QueryBuilderFilterTreeExistsNodeData, type QueryBuilderFilterState } from '../../stores/filter/QueryBuilderFilterState.js';
|
17
17
|
import { QUERY_BUILDER_EXPLORER_TREE_DND_TYPE } from '../../stores/explorer/QueryBuilderExplorerState.js';
|
18
18
|
import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
|
19
19
|
import { AbstractPropertyExpression } from '@finos/legend-graph';
|
20
20
|
/**
|
21
21
|
* This function updates the filter state when we DnD a property that can accept multiple values.
|
22
22
|
*/
|
23
|
-
export declare const buildFilterTreeWithExists: (propertyExpression: AbstractPropertyExpression, filterState: QueryBuilderFilterState, targetDropNode?:
|
23
|
+
export declare const buildFilterTreeWithExists: (propertyExpression: AbstractPropertyExpression, filterState: QueryBuilderFilterState, targetDropNode?: QueryBuilderFilterTreeNodeData) => void;
|
24
|
+
export declare const buildPropertyExpressionFromExistsNode: (filterState: QueryBuilderFilterState, existsNode: QueryBuilderFilterTreeExistsNodeData, node: QueryBuilderFilterTreeConditionNodeData) => AbstractPropertyExpression;
|
24
25
|
export declare const IS_DRAGGABLE_FILTER_DND_TYPES_FETCH_SUPPORTED: string[];
|
25
26
|
export declare const IS_DRAGGABLE_FILTER_DND_TYPES: (QUERY_BUILDER_EXPLORER_TREE_DND_TYPE | QUERY_BUILDER_FILTER_DND_TYPE)[];
|
26
27
|
export declare const QueryBuilderFilterPanel: ((props: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderFilterPanel.d.ts","sourceRoot":"","sources":["../../../src/components/filter/QueryBuilderFilterPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAmCH,OAAO,
|
1
|
+
{"version":3,"file":"QueryBuilderFilterPanel.d.ts","sourceRoot":"","sources":["../../../src/components/filter/QueryBuilderFilterPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAmCH,OAAO,EAGL,KAAK,8BAA8B,EACnC,6BAA6B,EAE7B,uCAAuC,EAGvC,oCAAoC,EAEpC,KAAK,uBAAuB,EAC7B,MAAM,gDAAgD,CAAC;AAExD,OAAO,EAIL,oCAAoC,EACrC,MAAM,oDAAoD,CAAC;AAK5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAiB3E,OAAO,EACL,0BAA0B,EAO3B,MAAM,qBAAqB,CAAC;AAkD7B;;GAEG;AACH,eAAO,MAAM,yBAAyB,uBAChB,0BAA0B,eACjC,uBAAuB,mBACnB,8BAA8B,KAC9C,IA0MF,CAAC;AAEF,eAAO,MAAM,qCAAqC,gBACnC,uBAAuB,cACxB,oCAAoC,QAC1C,uCAAuC,KAC5C,0BAgHF,CAAC;AAwIF,eAAO,MAAM,6CAA6C,UAKzD,CAAC;AAEF,eAAO,MAAM,6BAA6B,0EAIzC,CAAC;AAgsBF,eAAO,MAAM,uBAAuB,WAC1B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAsRjD,CAAC"}
|
@@ -32,6 +32,7 @@ import { BasicValueSpecificationEditor, QUERY_BUILDER_VARIABLE_DND_TYPE, } from
|
|
32
32
|
import { QueryBuilderTelemetryHelper } from '../../__lib__/QueryBuilderTelemetryHelper.js';
|
33
33
|
import { getPropertyChainName } from '../../stores/QueryBuilderPropertyEditorState.js';
|
34
34
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../graph/QueryBuilderMetaModelConst.js';
|
35
|
+
import { buildPropertyExpressionChain } from '../../stores/QueryBuilderValueSpecificationBuilderHelper.js';
|
35
36
|
const isCollectionProperty = (propertyExpression) => {
|
36
37
|
let currentExpression = propertyExpression;
|
37
38
|
while (currentExpression instanceof AbstractPropertyExpression) {
|
@@ -150,13 +151,32 @@ export const buildFilterTreeWithExists = (propertyExpression, filterState, targe
|
|
150
151
|
cn.propertyExpressionState.propertyExpression.func.ownerReference
|
151
152
|
.value.path);
|
152
153
|
if (parentPropertyChainIndex >= 0) {
|
153
|
-
parentNode
|
154
|
+
// Here we choose parentNode based on what the type of targetDropNode
|
155
|
+
// 1. QueryBuilderFilterTreeConditionNodeData: In this case we would want to
|
156
|
+
// add a new group condition from the targetDropNode and add new exists node
|
157
|
+
// getting created as it's child so the parent would be the new group node
|
158
|
+
// 2. QueryBuilderFilterTreeGroupNodeData: Parent node would be same as
|
159
|
+
// targetDropNode
|
160
|
+
// 3. QueryBuilderFilterTreeBlankConditionNodeData: parentNode would be the
|
161
|
+
// parent of the targetDropNode. At the end we would deelete this blank node
|
162
|
+
// that got created.
|
163
|
+
parentNode =
|
164
|
+
targetDropNode instanceof QueryBuilderFilterTreeConditionNodeData
|
165
|
+
? filterState.newGroupConditionFromNode(targetDropNode)
|
166
|
+
: targetDropNode instanceof QueryBuilderFilterTreeGroupNodeData
|
167
|
+
? targetDropNode
|
168
|
+
: filterState.getParentNode(targetDropNode);
|
154
169
|
existsLambdaPropertyChains = existsLambdaPropertyChains.slice(parentPropertyChainIndex + 1);
|
155
170
|
existsLambdaParamNames = existsLambdaParamNames.slice(parentPropertyChainIndex + 1);
|
156
171
|
}
|
157
172
|
}
|
158
173
|
else if (!parentId) {
|
159
|
-
parentNode =
|
174
|
+
parentNode =
|
175
|
+
targetDropNode instanceof QueryBuilderFilterTreeConditionNodeData
|
176
|
+
? filterState.newGroupConditionFromNode(targetDropNode)
|
177
|
+
: targetDropNode instanceof QueryBuilderFilterTreeGroupNodeData
|
178
|
+
? targetDropNode
|
179
|
+
: filterState.getParentNode(targetDropNode);
|
160
180
|
}
|
161
181
|
}
|
162
182
|
}
|
@@ -173,6 +193,69 @@ export const buildFilterTreeWithExists = (propertyExpression, filterState, targe
|
|
173
193
|
const filterConditionState = new FilterConditionState(filterState, existsLambdaPropertyChains[existsLambdaPropertyChains.length - 1]);
|
174
194
|
const treeNode = new QueryBuilderFilterTreeConditionNodeData(undefined, filterConditionState);
|
175
195
|
filterState.addNodeFromNode(treeNode, parentNode);
|
196
|
+
if (targetDropNode instanceof QueryBuilderFilterTreeBlankConditionNodeData) {
|
197
|
+
filterState.removeNodeAndPruneBranch(targetDropNode);
|
198
|
+
}
|
199
|
+
};
|
200
|
+
export const buildPropertyExpressionFromExistsNode = (filterState, existsNode, node) => {
|
201
|
+
let nodeParent = filterState.getParentNode(node);
|
202
|
+
let existsLambdaParameterNames = [];
|
203
|
+
let existsLambdaExpressions = [];
|
204
|
+
existsLambdaExpressions.push(node.condition.propertyExpressionState.propertyExpression);
|
205
|
+
existsLambdaParameterNames.push(nodeParent?.lambdaParameterName ?? filterState.lambdaParameterName);
|
206
|
+
while (nodeParent && nodeParent.id !== existsNode.id) {
|
207
|
+
if (nodeParent instanceof QueryBuilderFilterTreeExistsNodeData) {
|
208
|
+
existsLambdaExpressions.push(nodeParent.propertyExpressionState.propertyExpression);
|
209
|
+
existsLambdaParameterNames.push(nodeParent.lambdaParameterName ?? filterState.lambdaParameterName);
|
210
|
+
}
|
211
|
+
nodeParent = filterState.getParentNode(nodeParent);
|
212
|
+
}
|
213
|
+
if (nodeParent?.id === existsNode.id) {
|
214
|
+
existsLambdaExpressions.push(existsNode.propertyExpressionState.propertyExpression);
|
215
|
+
existsLambdaParameterNames.push(existsNode.lambdaParameterName ?? filterState.lambdaParameterName);
|
216
|
+
}
|
217
|
+
existsLambdaParameterNames = existsLambdaParameterNames.reverse();
|
218
|
+
existsLambdaExpressions = existsLambdaExpressions.reverse();
|
219
|
+
const initialPropertyExpression = guaranteeNonNullable(existsLambdaExpressions[0]);
|
220
|
+
existsLambdaParameterNames = existsLambdaParameterNames.slice(1);
|
221
|
+
existsLambdaExpressions = existsLambdaExpressions.slice(1);
|
222
|
+
let flattenedPropertyExpressionChain = new AbstractPropertyExpression('');
|
223
|
+
flattenedPropertyExpressionChain.func = initialPropertyExpression.func;
|
224
|
+
flattenedPropertyExpressionChain.parametersValues = [
|
225
|
+
...initialPropertyExpression.parametersValues,
|
226
|
+
];
|
227
|
+
for (const exp of existsLambdaExpressions) {
|
228
|
+
// when rebuilding the property expression chain, disregard the initial variable that starts the chain
|
229
|
+
const expressions = [];
|
230
|
+
let currentExpression = exp;
|
231
|
+
while (currentExpression instanceof AbstractPropertyExpression ||
|
232
|
+
(currentExpression instanceof SimpleFunctionExpression &&
|
233
|
+
matchFunctionName(currentExpression.functionName, QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUBTYPE))) {
|
234
|
+
if (currentExpression instanceof SimpleFunctionExpression) {
|
235
|
+
const functionExpression = new SimpleFunctionExpression(extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUBTYPE));
|
236
|
+
functionExpression.parametersValues.unshift(guaranteeNonNullable(currentExpression.parametersValues[1]));
|
237
|
+
expressions.push(functionExpression);
|
238
|
+
}
|
239
|
+
else if (currentExpression instanceof AbstractPropertyExpression) {
|
240
|
+
const propertyExp = new AbstractPropertyExpression('');
|
241
|
+
propertyExp.func = currentExpression.func;
|
242
|
+
// NOTE: we must retain the rest of the parameters as those are derived property parameters
|
243
|
+
propertyExp.parametersValues =
|
244
|
+
currentExpression.parametersValues.length > 1
|
245
|
+
? currentExpression.parametersValues.slice(1)
|
246
|
+
: [];
|
247
|
+
expressions.push(propertyExp);
|
248
|
+
}
|
249
|
+
currentExpression = guaranteeNonNullable(currentExpression.parametersValues[0]);
|
250
|
+
}
|
251
|
+
assertTrue(expressions.length > 0, `Can't process exists() expression: exists() usage with non-chain property expression is not supported`);
|
252
|
+
for (let i = 0; i < expressions.length - 1; ++i) {
|
253
|
+
expressions[i].parametersValues.unshift(expressions[i + 1]);
|
254
|
+
}
|
255
|
+
expressions[expressions.length - 1].parametersValues.unshift(flattenedPropertyExpressionChain);
|
256
|
+
flattenedPropertyExpressionChain = guaranteeType(expressions[0], AbstractPropertyExpression, `Can't process exists() expression: can't flatten to a property expression`);
|
257
|
+
}
|
258
|
+
return guaranteeType(buildPropertyExpressionChain(flattenedPropertyExpressionChain, filterState.queryBuilderState, existsNode.lambdaParameterName ?? filterState.lambdaParameterName), AbstractPropertyExpression);
|
176
259
|
};
|
177
260
|
/**
|
178
261
|
* This function builds the filter tree when we DnD a node to the filter panel.
|
@@ -201,9 +284,63 @@ const buildFilterTree = (propertyExpression, filterState, targetDropNode) => {
|
|
201
284
|
else {
|
202
285
|
const filterConditionState = new FilterConditionState(filterState, propertyExpression);
|
203
286
|
const treeNode = new QueryBuilderFilterTreeConditionNodeData(undefined, filterConditionState);
|
204
|
-
|
205
|
-
|
206
|
-
|
287
|
+
// Check if there are any exists node present in the parent nodes of the target.
|
288
|
+
// This would change the way we build the filter tree
|
289
|
+
let cn = targetDropNode;
|
290
|
+
let existsNode = undefined;
|
291
|
+
let parentId = targetDropNode?.parentId;
|
292
|
+
while (parentId) {
|
293
|
+
cn = filterState.nodes.get(parentId);
|
294
|
+
parentId = cn?.parentId;
|
295
|
+
if (cn instanceof QueryBuilderFilterTreeExistsNodeData) {
|
296
|
+
existsNode = cn;
|
297
|
+
}
|
298
|
+
}
|
299
|
+
if (cn instanceof QueryBuilderFilterTreeExistsNodeData) {
|
300
|
+
existsNode = cn;
|
301
|
+
}
|
302
|
+
if (targetDropNode instanceof QueryBuilderFilterTreeGroupNodeData) {
|
303
|
+
if (existsNode) {
|
304
|
+
filterState.newGroupConditionFromNode(existsNode, treeNode, targetDropNode.groupOperation);
|
305
|
+
}
|
306
|
+
else {
|
307
|
+
filterState.addNodeFromNode(treeNode, targetDropNode);
|
308
|
+
}
|
309
|
+
}
|
310
|
+
else if (targetDropNode instanceof QueryBuilderFilterTreeBlankConditionNodeData) {
|
311
|
+
if (existsNode) {
|
312
|
+
filterState.queryBuilderState.applicationStore.notificationService.notifyError(`Can't drag and drop here: property expression of target and source doesn't match`);
|
313
|
+
}
|
314
|
+
else {
|
315
|
+
filterState.replaceBlankNodeWithNode(treeNode, targetDropNode);
|
316
|
+
}
|
317
|
+
}
|
318
|
+
else if (existsNode &&
|
319
|
+
targetDropNode instanceof QueryBuilderFilterTreeExistsNodeData) {
|
320
|
+
filterState.newGroupConditionFromNode(existsNode, treeNode);
|
321
|
+
}
|
322
|
+
else if (targetDropNode instanceof QueryBuilderFilterTreeConditionNodeData) {
|
323
|
+
const parentNode = filterState.getParentNode(targetDropNode);
|
324
|
+
if (existsNode &&
|
325
|
+
parentNode instanceof QueryBuilderFilterTreeExistsNodeData &&
|
326
|
+
parentNode.childrenIds.length === 1) {
|
327
|
+
filterState.newGroupConditionFromNode(existsNode, treeNode, QUERY_BUILDER_GROUP_OPERATION.AND);
|
328
|
+
}
|
329
|
+
else if (existsNode &&
|
330
|
+
parentNode instanceof QueryBuilderFilterTreeGroupNodeData) {
|
331
|
+
const propertyExpression1 = buildPropertyExpressionFromExistsNode(filterState, existsNode, targetDropNode);
|
332
|
+
filterState.removeNodeAndPruneBranch(targetDropNode);
|
333
|
+
filterState.newGroupConditionFromNode(existsNode, treeNode, parentNode.groupOperation);
|
334
|
+
const newParentNode = filterState.getParentNode(treeNode);
|
335
|
+
buildFilterTreeWithExists(propertyExpression1, filterState, newParentNode);
|
336
|
+
}
|
337
|
+
else {
|
338
|
+
filterState.newGroupWithConditionFromNode(treeNode, targetDropNode);
|
339
|
+
}
|
340
|
+
}
|
341
|
+
else {
|
342
|
+
filterState.addNodeFromNode(treeNode, undefined);
|
343
|
+
}
|
207
344
|
}
|
208
345
|
};
|
209
346
|
export const IS_DRAGGABLE_FILTER_DND_TYPES_FETCH_SUPPORTED = [
|
@@ -290,7 +427,7 @@ const QueryBuilderFilterConditionEditor = observer((props) => {
|
|
290
427
|
reloadValues: debouncedTypeaheadSearch,
|
291
428
|
cleanUpReloadValues,
|
292
429
|
};
|
293
|
-
return (_jsx("div", { className: "query-builder-filter-tree__node__label__content dnd__entry__container", children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, label: "Add New Logical Group", children: _jsxs("div", { className: "query-builder-filter-tree__condition-node", children: [_jsx("div", { className: "query-builder-filter-tree__condition-node__property", children: _jsx(QueryBuilderPropertyExpressionBadge, { propertyExpressionState: node.condition.propertyExpressionState, onPropertyExpressionChange: changeProperty }) }), _jsxs(DropdownMenu, { className: "query-builder-filter-tree__condition-node__operator", title: "Choose Operator...", content: _jsx(MenuContent, { children: node.condition.operators.map((op) => (_jsx(MenuContentItem, { className: "query-builder-filter-tree__condition-node__operator__dropdown__option", onClick: changeOperator(op), children: op.getLabel(node.condition) }, op.uuid))) }), menuProps: {
|
430
|
+
return (_jsx("div", { className: "query-builder-filter-tree__node__label__content dnd__entry__container", "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_FILTER_TREE_CONDITION_NODE_CONTENT, children: _jsx(PanelEntryDropZonePlaceholder, { isDragOver: isDragOver, label: "Add New Logical Group", children: _jsxs("div", { className: "query-builder-filter-tree__condition-node", children: [_jsx("div", { className: "query-builder-filter-tree__condition-node__property", children: _jsx(QueryBuilderPropertyExpressionBadge, { propertyExpressionState: node.condition.propertyExpressionState, onPropertyExpressionChange: changeProperty }) }), _jsxs(DropdownMenu, { className: "query-builder-filter-tree__condition-node__operator", title: "Choose Operator...", content: _jsx(MenuContent, { children: node.condition.operators.map((op) => (_jsx(MenuContentItem, { className: "query-builder-filter-tree__condition-node__operator__dropdown__option", onClick: changeOperator(op), children: op.getLabel(node.condition) }, op.uuid))) }), menuProps: {
|
294
431
|
anchorOrigin: { vertical: 'bottom', horizontal: 'left' },
|
295
432
|
transformOrigin: { vertical: 'top', horizontal: 'left' },
|
296
433
|
elevation: 7,
|
@@ -379,10 +516,10 @@ const QueryBuilderFilterTreeNodeContainer = observer((props) => {
|
|
379
516
|
buildFilterTree(filterConditionState.propertyExpressionState.propertyExpression, filterState, node);
|
380
517
|
}
|
381
518
|
else if (node instanceof QueryBuilderFilterTreeConditionNodeData) {
|
382
|
-
|
519
|
+
buildFilterTree(filterConditionState.propertyExpressionState.propertyExpression, filterState, node);
|
383
520
|
}
|
384
521
|
else if (node instanceof QueryBuilderFilterTreeBlankConditionNodeData) {
|
385
|
-
|
522
|
+
buildFilterTree(filterConditionState.propertyExpressionState.propertyExpression, filterState, node);
|
386
523
|
}
|
387
524
|
}
|
388
525
|
}, [applicationStore, filterState, node]);
|