@finos/legend-query-builder 4.14.26 → 4.14.27
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/result/tds/QueryBuilderTDSGridResult.d.ts +4 -0
- package/lib/components/result/tds/QueryBuilderTDSGridResult.d.ts.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSGridResult.js +126 -37
- package/lib/components/result/tds/QueryBuilderTDSGridResult.js.map +1 -1
- package/lib/index.css +17 -1
- package/lib/index.css.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/QueryBuilderResultState.d.ts +12 -0
- package/lib/stores/QueryBuilderResultState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderResultState.js +68 -4
- package/lib/stores/QueryBuilderResultState.js.map +1 -1
- package/package.json +3 -3
- package/src/components/result/tds/QueryBuilderTDSGridResult.tsx +188 -11
- package/src/stores/QueryBuilderResultState.ts +82 -4
@@ -15,6 +15,10 @@
|
|
15
15
|
*/
|
16
16
|
import type { QueryBuilderState } from '../../../stores/QueryBuilderState.js';
|
17
17
|
import { type TDSExecutionResult } from '@finos/legend-graph';
|
18
|
+
export declare const enum QueryBuilderDataGridCustomAggregationFunction {
|
19
|
+
wavg = "wavg",
|
20
|
+
WAVG = "WAVG"
|
21
|
+
}
|
18
22
|
export declare const QueryBuilderTDSGridResult: ((props: {
|
19
23
|
executionResult: TDSExecutionResult;
|
20
24
|
queryBuilderState: QueryBuilderState;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderTDSGridResult.d.ts","sourceRoot":"","sources":["../../../../src/components/result/tds/QueryBuilderTDSGridResult.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
1
|
+
{"version":3,"file":"QueryBuilderTDSGridResult.d.ts","sourceRoot":"","sources":["../../../../src/components/result/tds/QueryBuilderTDSGridResult.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAkB,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AA8C9E,0BAAkB,6CAA6C;IAC7D,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AA2KD,eAAO,MAAM,yBAAyB,WAC5B;IACN,eAAe,EAAE,kBAAkB,CAAC;IACpC,iBAAiB,EAAE,iBAAiB,CAAC;CACtC;;CAgWF,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
/**
|
3
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
4
|
*
|
@@ -14,17 +14,23 @@ import { jsx as _jsx } 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 { clsx } from '@finos/legend-art';
|
18
17
|
import { observer } from 'mobx-react-lite';
|
19
18
|
import { PRIMITIVE_TYPE } from '@finos/legend-graph';
|
20
|
-
import { useState, useCallback } from 'react';
|
19
|
+
import { useState, useCallback, useEffect } from 'react';
|
21
20
|
import { DataGrid, } from '@finos/legend-lego/data-grid';
|
22
21
|
import { getRowDataFromExecutionResult, filterByOrOutValues, } from './QueryBuilderTDSResultShared.js';
|
22
|
+
import { QueryBuilderResultWavgAggregationState, } from '../../../stores/QueryBuilderResultState.js';
|
23
23
|
import { QueryBuilderTDSState } from '../../../stores/fetch-structure/tds/QueryBuilderTDSState.js';
|
24
24
|
import { DEFAULT_LOCALE } from '../../../graph-manager/QueryBuilderConst.js';
|
25
|
-
import { isNumber, isString, isValidURL } from '@finos/legend-shared';
|
25
|
+
import { assertErrorThrown, isNumber, isString, isValidURL, } from '@finos/legend-shared';
|
26
26
|
import { useApplicationStore } from '@finos/legend-application';
|
27
27
|
import { QUERY_BUILDER_TEST_ID } from '../../../__lib__/QueryBuilderTesting.js';
|
28
|
+
import { clsx, Modal, ModalBody, ModalHeader, ModalFooter, ModalFooterButton, Dialog, CustomSelectorInput, } from '@finos/legend-art';
|
29
|
+
export var QueryBuilderDataGridCustomAggregationFunction;
|
30
|
+
(function (QueryBuilderDataGridCustomAggregationFunction) {
|
31
|
+
QueryBuilderDataGridCustomAggregationFunction["wavg"] = "wavg";
|
32
|
+
QueryBuilderDataGridCustomAggregationFunction["WAVG"] = "WAVG";
|
33
|
+
})(QueryBuilderDataGridCustomAggregationFunction || (QueryBuilderDataGridCustomAggregationFunction = {}));
|
28
34
|
const getAggregationTDSColumnCustomizations = (result, columnName) => {
|
29
35
|
const columnType = result.builder.columns.find((col) => col.name === columnName)?.type;
|
30
36
|
switch (columnType) {
|
@@ -45,7 +51,7 @@ const getAggregationTDSColumnCustomizations = (result, columnName) => {
|
|
45
51
|
case PRIMITIVE_TYPE.FLOAT:
|
46
52
|
return {
|
47
53
|
filter: 'agNumberColumnFilter',
|
48
|
-
allowedAggFuncs: ['count', 'sum', 'max', 'min', 'avg'],
|
54
|
+
allowedAggFuncs: ['count', 'sum', 'max', 'min', 'avg', 'wavg'],
|
49
55
|
};
|
50
56
|
default:
|
51
57
|
return {
|
@@ -144,13 +150,14 @@ const getColDefs = (executionResult, resultState) => executionResult.result.colu
|
|
144
150
|
export const QueryBuilderTDSGridResult = observer((props) => {
|
145
151
|
const { executionResult, queryBuilderState } = props;
|
146
152
|
const applicationStore = useApplicationStore();
|
153
|
+
const darkMode = !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled;
|
147
154
|
const [columnAPi, setColumnApi] = useState(undefined);
|
155
|
+
const [aggFuncParams, setAggFuncParams] = useState(undefined);
|
148
156
|
const resultState = queryBuilderState.resultState;
|
149
157
|
const isLocalModeEnabled = queryBuilderState.isLocalModeEnabled;
|
150
158
|
const colDefs = isLocalModeEnabled
|
151
159
|
? getLocalColDefs(executionResult, resultState)
|
152
160
|
: getColDefs(executionResult, resultState);
|
153
|
-
const darkMode = !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled;
|
154
161
|
const onSaveGridColumnState = () => {
|
155
162
|
if (!columnAPi) {
|
156
163
|
return;
|
@@ -160,6 +167,9 @@ export const QueryBuilderTDSGridResult = observer((props) => {
|
|
160
167
|
isPivotModeEnabled: columnAPi.isPivotMode(),
|
161
168
|
isLocalModeEnabled: true,
|
162
169
|
previewLimit: resultState.previewLimit,
|
170
|
+
...(resultState.wavgAggregationState?.weightedColumnIdPairs && {
|
171
|
+
weightedColumnPairs: resultState.wavgAggregationState.weightedColumnIdPairs,
|
172
|
+
}),
|
163
173
|
});
|
164
174
|
};
|
165
175
|
const getSelectedCells = (api) => {
|
@@ -227,38 +237,117 @@ export const QueryBuilderTDSGridResult = observer((props) => {
|
|
227
237
|
resultState.mousedOverCell,
|
228
238
|
resultState.queryBuilderState.fetchStructureState.implementation,
|
229
239
|
]);
|
230
|
-
|
240
|
+
const weightedColumnOptions = columnAPi
|
241
|
+
?.getColumns()
|
242
|
+
?.filter((c) => c.getColDef().cellDataType === 'number')
|
243
|
+
.map((col) => ({
|
244
|
+
label: col.getColId(),
|
245
|
+
value: col.getColId(),
|
246
|
+
}));
|
247
|
+
const selectedWeightedColumn = aggFuncParams?.colDef.field &&
|
248
|
+
resultState.wavgAggregationState?.weightedColumnIdPairs.get(aggFuncParams.colDef.field)
|
249
|
+
? {
|
250
|
+
label: resultState.wavgAggregationState.weightedColumnIdPairs.get(aggFuncParams.colDef.field),
|
251
|
+
value: resultState.wavgAggregationState.weightedColumnIdPairs.get(aggFuncParams.colDef.field),
|
252
|
+
}
|
253
|
+
: null;
|
254
|
+
const onWeightedColumnOptionChange = async (option) => {
|
255
|
+
if (aggFuncParams?.colDef.field && option?.value) {
|
256
|
+
resultState.wavgAggregationState?.addWeightedColumnIdPair(aggFuncParams.colDef.field, option.value);
|
257
|
+
}
|
258
|
+
};
|
259
|
+
const weightedAverage = (param) => {
|
260
|
+
if (param.colDef.field) {
|
261
|
+
if (!resultState.wavgAggregationState) {
|
262
|
+
resultState.setWavgAggregationState(new QueryBuilderResultWavgAggregationState());
|
263
|
+
}
|
264
|
+
resultState.wavgAggregationState?.addWeightedColumnIdPair(param.colDef.field, param.colDef.field);
|
265
|
+
resultState.wavgAggregationState?.setIsApplyingWavg(true);
|
266
|
+
setAggFuncParams(param);
|
267
|
+
}
|
268
|
+
else {
|
269
|
+
applicationStore.notificationService.notifyError('The id of this column can`t be retrieved to perform weighted average');
|
270
|
+
}
|
271
|
+
};
|
272
|
+
const weightedAverageHelper = (param) => {
|
273
|
+
try {
|
274
|
+
const column = param.colDef.field;
|
275
|
+
if (column) {
|
276
|
+
const weightedColumnId = resultState.wavgAggregationState?.weightedColumnIdPairs.get(column);
|
277
|
+
if (weightedColumnId) {
|
278
|
+
const weightedColumnSum = param.rowNode.allLeafChildren
|
279
|
+
.map((node) => node.data[weightedColumnId])
|
280
|
+
.reduce((a, b) => a + b);
|
281
|
+
const weightedColumnMultiply = param.rowNode.allLeafChildren
|
282
|
+
.map((node) => node.data[weightedColumnId] * node.data[column])
|
283
|
+
.reduce((a, b) => a + b);
|
284
|
+
if (weightedColumnSum !== 0) {
|
285
|
+
onSaveGridColumnState();
|
286
|
+
return weightedColumnMultiply / weightedColumnSum;
|
287
|
+
}
|
288
|
+
else {
|
289
|
+
applicationStore.notificationService.notifyError('The weighted column sum is 0');
|
290
|
+
}
|
291
|
+
}
|
292
|
+
else {
|
293
|
+
applicationStore.notificationService.notifyError('The weighted column Id is not defined');
|
294
|
+
}
|
295
|
+
}
|
296
|
+
}
|
297
|
+
catch (error) {
|
298
|
+
assertErrorThrown(error);
|
299
|
+
applicationStore.notificationService.notifyError(error);
|
300
|
+
}
|
301
|
+
return -1;
|
302
|
+
};
|
303
|
+
useEffect(() => {
|
304
|
+
if (aggFuncParams) {
|
305
|
+
aggFuncParams.columnApi.setColumnAggFunc(aggFuncParams.colDef.field, QueryBuilderDataGridCustomAggregationFunction.WAVG);
|
306
|
+
}
|
307
|
+
}, [resultState.wavgAggregationState, aggFuncParams]);
|
308
|
+
return (_jsx("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_RESULT_VALUES_TDS, className: "query-builder__result__values__table", children: _jsxs("div", { className: clsx('query-builder__result__tds-grid', {
|
231
309
|
'ag-theme-balham': !darkMode,
|
232
310
|
'ag-theme-balham-dark': darkMode,
|
233
|
-
}), children: isLocalModeEnabled ? (_jsx(DataGrid, { rowData: getRowDataFromExecutionResult(executionResult), onGridReady: (params) => {
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
311
|
+
}), children: [isLocalModeEnabled ? (_jsx(DataGrid, { rowData: getRowDataFromExecutionResult(executionResult), onGridReady: (params) => {
|
312
|
+
setColumnApi(params.columnApi);
|
313
|
+
params.columnApi.setPivotMode(Boolean(resultState.gridConfig?.isPivotModeEnabled));
|
314
|
+
}, gridOptions: {
|
315
|
+
suppressScrollOnNewData: true,
|
316
|
+
getRowId: (data) => data.data.rowNumber,
|
317
|
+
rowSelection: 'multiple',
|
318
|
+
pivotPanelShow: 'always',
|
319
|
+
rowGroupPanelShow: 'always',
|
320
|
+
enableRangeSelection: true,
|
321
|
+
},
|
322
|
+
// NOTE: when column definition changed, we need to force refresh the cell to make sure the cell renderer is updated
|
323
|
+
// See https://stackoverflow.com/questions/56341073/how-to-refresh-an-ag-grid-when-a-change-occurs-inside-a-custom-cell-renderer-com
|
324
|
+
onRowDataUpdated: (params) => {
|
325
|
+
params.api.refreshCells({ force: true });
|
326
|
+
}, suppressFieldDotNotation: true, suppressContextMenu: false, columnDefs: colDefs, aggFuncs: {
|
327
|
+
wavg: weightedAverage,
|
328
|
+
WAVG: weightedAverageHelper,
|
329
|
+
}, sideBar: ['columns', 'filters'], onColumnVisible: onSaveGridColumnState, onColumnPinned: onSaveGridColumnState, onColumnResized: onSaveGridColumnState, onColumnRowGroupChanged: onSaveGridColumnState, onColumnValueChanged: onSaveGridColumnState, onColumnPivotChanged: onSaveGridColumnState, onColumnPivotModeChanged: onSaveGridColumnState })) : (_jsx(DataGrid, { rowData: getRowDataFromExecutionResult(executionResult), gridOptions: {
|
330
|
+
suppressScrollOnNewData: true,
|
331
|
+
getRowId: (data) => data.data.rowNumber,
|
332
|
+
rowSelection: 'multiple',
|
333
|
+
enableRangeSelection: true,
|
334
|
+
},
|
335
|
+
// NOTE: when column definition changed, we need to force refresh the cell to make sure the cell renderer is updated
|
336
|
+
// See https://stackoverflow.com/questions/56341073/how-to-refresh-an-ag-grid-when-a-change-occurs-inside-a-custom-cell-renderer-com
|
337
|
+
onRowDataUpdated: (params) => {
|
338
|
+
params.api.refreshCells({ force: true });
|
339
|
+
}, onRangeSelectionChanged: (event) => {
|
340
|
+
const selectedCells = getSelectedCells(event.api);
|
341
|
+
resultState.setSelectedCells([]);
|
342
|
+
selectedCells.forEach((cell) => resultState.addSelectedCell(cell));
|
343
|
+
}, suppressFieldDotNotation: true, suppressClipboardPaste: false, suppressContextMenu: false, columnDefs: colDefs, getContextMenuItems: (params) => getContextMenuItems(params) })), resultState.wavgAggregationState?.isApplyingWavg && (_jsx(Dialog, { open: resultState.wavgAggregationState.isApplyingWavg, onClose: () => resultState.wavgAggregationState?.setIsApplyingWavg(false), classes: {
|
344
|
+
root: 'editor-modal__root-container',
|
345
|
+
container: 'editor-modal__container',
|
346
|
+
paper: 'editor-modal__content',
|
347
|
+
}, children: _jsxs(Modal, { darkMode: !applicationStore.layoutService
|
348
|
+
.TEMPORARY__isLightColorThemeEnabled, className: "query-editor__blocking-alert", children: [_jsx(ModalHeader, { title: "Applying Weighted Average" }), _jsxs(ModalBody, { children: [_jsx("div", { className: "query-builder__result__tds-grid__text", children: "choose a weighted column from dropdown" }), _jsx(CustomSelectorInput, { options: weightedColumnOptions, onChange: onWeightedColumnOptionChange, value: selectedWeightedColumn, placeholder: 'Choose a weighted column', darkMode: !applicationStore.layoutService
|
349
|
+
.TEMPORARY__isLightColorThemeEnabled })] }), _jsx(ModalFooter, { children: _jsx(ModalFooterButton, { onClick: () => {
|
350
|
+
resultState.wavgAggregationState?.setIsApplyingWavg(false);
|
351
|
+
}, text: "Apply" }) })] }) }))] }) }));
|
263
352
|
});
|
264
353
|
//# sourceMappingURL=QueryBuilderTDSGridResult.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderTDSGridResult.js","sourceRoot":"","sources":["../../../../src/components/result/tds/QueryBuilderTDSGridResult.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,cAAc,EAA2B,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EACL,QAAQ,GAQT,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,6BAA6B,EAE7B,mBAAmB,GACpB,MAAM,kCAAkC,CAAC;AAO1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAC;AACnG,OAAO,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAEhF,MAAM,qCAAqC,GAAG,CAC5C,MAA0B,EAC1B,UAAkB,EACV,EAAE;IACV,MAAM,UAAU,GAAG,MAAM,C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,CAAC,IAAI,EAAE,EAAE,CAC7B,WAAW,CAAC,eAAe,CAAC,IAAI,CAAC,CAClC,CAAC;gBACJ,CAAC,EACD,wBAAwB,EAAE,IAAI,EAC9B,sBAAsB,EAAE,KAAK,EAC7B,mBAAmB,EAAE,KAAK,EAC1B,UAAU,EAAE,OAAO,EACnB,mBAAmB,EAAE,CAAC,MAAM,EAAoC,EAAE,CAChE,mBAAmB,CAAC,MAAM,CAAC,GAE7B,CACH,GACG,GACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
1
|
+
{"version":3,"file":"QueryBuilderTDSGridResult.js","sourceRoot":"","sources":["../../../../src/components/result/tds/QueryBuilderTDSGridResult.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,cAAc,EAA2B,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EACL,QAAQ,GAST,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,6BAA6B,EAE7B,mBAAmB,GACpB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,sCAAsC,GAIvC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAC;AACnG,OAAO,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAC;AAC7E,OAAO,EACL,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,UAAU,GACX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EACL,IAAI,EACJ,KAAK,EACL,SAAS,EACT,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,MAAM,EACN,mBAAmB,GAC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