@finos/legend-query-builder 4.11.4 → 4.11.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. package/lib/components/QueryBuilder.js +1 -1
  2. package/lib/components/QueryBuilder.js.map +1 -1
  3. package/lib/components/execution-plan/SQLExecutionNodeViewer.js +1 -1
  4. package/lib/components/execution-plan/SQLExecutionNodeViewer.js.map +1 -1
  5. package/lib/components/{QueryBuilderResultPanel.d.ts → result/QueryBuilderResultPanel.d.ts} +1 -2
  6. package/lib/components/result/QueryBuilderResultPanel.d.ts.map +1 -0
  7. package/lib/components/result/QueryBuilderResultPanel.js +185 -0
  8. package/lib/components/result/QueryBuilderResultPanel.js.map +1 -0
  9. package/lib/components/result/tds/QueryBuilderTDSGridResult.d.ts +24 -0
  10. package/lib/components/result/tds/QueryBuilderTDSGridResult.d.ts.map +1 -0
  11. package/lib/components/result/tds/QueryBuilderTDSGridResult.js +140 -0
  12. package/lib/components/result/tds/QueryBuilderTDSGridResult.js.map +1 -0
  13. package/lib/components/result/tds/QueryBuilderTDSResultShared.d.ts +41 -0
  14. package/lib/components/result/tds/QueryBuilderTDSResultShared.d.ts.map +1 -0
  15. package/lib/components/result/tds/QueryBuilderTDSResultShared.js +465 -0
  16. package/lib/components/result/tds/QueryBuilderTDSResultShared.js.map +1 -0
  17. package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.d.ts +24 -0
  18. package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.d.ts.map +1 -0
  19. package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.js +47 -0
  20. package/lib/components/result/tds/QueryBuilderTDSSimpleGridResult.js.map +1 -0
  21. package/lib/index.css +2 -2
  22. package/lib/index.css.map +1 -1
  23. package/lib/package.json +1 -1
  24. package/lib/stores/QueryBuilderResultState.d.ts +5 -1
  25. package/lib/stores/QueryBuilderResultState.d.ts.map +1 -1
  26. package/lib/stores/QueryBuilderResultState.js.map +1 -1
  27. package/package.json +2 -2
  28. package/src/components/QueryBuilder.tsx +1 -1
  29. package/src/components/execution-plan/SQLExecutionNodeViewer.tsx +1 -1
  30. package/src/components/result/QueryBuilderResultPanel.tsx +570 -0
  31. package/src/components/result/tds/QueryBuilderTDSGridResult.tsx +239 -0
  32. package/src/components/result/tds/QueryBuilderTDSResultShared.tsx +866 -0
  33. package/src/components/result/tds/QueryBuilderTDSSimpleGridResult.tsx +80 -0
  34. package/src/stores/QueryBuilderResultState.ts +12 -1
  35. package/tsconfig.json +4 -1
  36. package/lib/components/QueryBuilderResultPanel.d.ts.map +0 -1
  37. package/lib/components/QueryBuilderResultPanel.js +0 -633
  38. package/lib/components/QueryBuilderResultPanel.js.map +0 -1
  39. package/src/components/QueryBuilderResultPanel.tsx +0 -1412
@@ -19,7 +19,7 @@ import { clsx, HammerIcon, ResizablePanelGroup, ResizablePanel, ResizablePanelSp
19
19
  import { QueryBuilderFilterPanel } from './filter/QueryBuilderFilterPanel.js';
20
20
  import { QueryBuilderExplorerPanel } from './explorer/QueryBuilderExplorerPanel.js';
21
21
  import { QueryBuilderSidebar } from './QueryBuilderSideBar.js';
22
- import { QueryBuilderResultPanel } from './QueryBuilderResultPanel.js';
22
+ import { QueryBuilderResultPanel } from './result/QueryBuilderResultPanel.js';
23
23
  import { QueryBuilderTextEditor } from './QueryBuilderTextEditor.js';
24
24
  import { QueryBuilderTextEditorMode } from '../stores/QueryBuilderTextEditorState.js';
25
25
  import { QueryBuilderFetchStructurePanel } from './fetch-structure/QueryBuilderFetchStructurePanel.js';
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilder.js","sourceRoot":"","sources":["../../src/components/QueryBuilder.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ,UAAU,EACV,mBAAmB,EACnB,cAAc,EACd,sBAAsB,EACtB,UAAU,EACV,YAAY,EACZ,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,oBA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CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"QueryBuilder.js","sourceRoot":"","sources":["../../src/components/QueryBuilder.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ,UAAU,EACV,mBAAmB,EACnB,cAAc,EACd,sBAAsB,EACtB,UAAU,EACV,YAAY,EACZ,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,SAAS,EACT,aAAa,EACb,QAAQ,EACR,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,MAAM,EACN,KAAK,EACL,SAAS,EACT,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,QAAQ,GACT,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,OAAO,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AACtF,OAAO,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACvG,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAC7F,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,EACX,qBAAqB,EACrB,eAAe,GAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,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AC,CAAC,CAAC,CACnB,KAAC,kBAAkB,IACjB,eAAe,EACb,iBAAiB,CAAC,sBAAsB;iDACrC,eAAe,GAEpB,CACH,CAAC,CAAC,CAAC,CACF,KAAC,iBAAiB,uDAEE,CACrB,GACG,GACI,EACZ,KAAC,WAAW,cACV,KAAC,iBAAiB,IAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,WAAW,GAAI,GAC5C,IACR,GACD,CACV,IACG,EACN,KAAC,qBAAqB,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,IAC3D,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -18,9 +18,9 @@ import { observer } from 'mobx-react-lite';
18
18
  import { EXECUTION_PLAN_VIEW_MODE, } from '../../stores/execution-plan/ExecutionPlanState.js';
19
19
  import { stringifyDataType, } from '@finos/legend-graph';
20
20
  import { PanelListItem, CopyIcon, PanelDivider, Button, PanelContent, } from '@finos/legend-art';
21
- import { tryToFormatSql } from '../QueryBuilderResultPanel.js';
22
21
  import { ResultTypeViewer } from './ResultTypeViewer.js';
23
22
  import { CodeEditor, CODE_EDITOR_LANGUAGE, } from '@finos/legend-lego/code-editor';
23
+ import { tryToFormatSql } from '../result/tds/QueryBuilderTDSResultShared.js';
24
24
  /**
25
25
  * TODO: Create a new `AbstractPlugin` for this, called `ExecutionPlanViewerPlugin`
26
26
  * when we modularize relational and execution plan processing, etc.
@@ -1 +1 @@
1
- {"version":3,"file":"SQLExecutionNodeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/SQLExecutionNodeViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAEL,wBAAwB,GACzB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAEL,iBAAiB,GAElB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,Y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AK,EAAE,EAAE;IACtB,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,kBAAkB,EAAE,QAAQ,EAAE,GACtE,KAAK,CAAC;IACR,MAAM,gBAAgB,GAAG,kBAAkB,CAAC,gBAAgB,CAAC;IAE7D,IAAI,QAAQ,KAAK,KAAK,EAAE;QACtB,OAAO,CACL,KAAC,4BAA4B,IAC3B,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,UAAU,EACtB,kBAAkB,EAAE,kBAAkB,GACtC,CACH,CAAC;KACH;IACD,OAAO,CACL,MAAC,YAAY,IACX,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa,CAAC,mCAAmC,aAGrE,KAAC,4BAA4B,IAC3B,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,UAAU,EACtB,kBAAkB,EAAE,kBAAkB,GACtC,EACF,KAAC,gBAAgB,IAAC,UAAU,EAAE,UAAU,GAAI,EAC5C,cAAK,SAAS,EAAC,+BAA+B,YAC5C,KAAC,MAAM,IACL,SAAS,EAAC,sEAAsE,EAChF,OAAO,EAAE,GAAS,EAAE,CAClB,kBAAkB,CAAC,WAAW,CAAC,wBAAwB,CAAC,IAAI,CAAC,EAE/D,IAAI,EAAC,WAAW,GAChB,GACE,EACN,KAAC,YAAY,KAAG,IACH,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"SQLExecutionNodeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/SQLExecutionNodeViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAEL,wBAAwB,GACzB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAEL,iBAAiB,GAElB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,aAAa,EACb,QAAQ,EACR,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B,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE;IACtB,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,kBAAkB,EAAE,QAAQ,EAAE,GACtE,KAAK,CAAC;IACR,MAAM,gBAAgB,GAAG,kBAAkB,CAAC,gBAAgB,CAAC;IAE7D,IAAI,QAAQ,KAAK,KAAK,EAAE;QACtB,OAAO,CACL,KAAC,4BAA4B,IAC3B,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,UAAU,EACtB,kBAAkB,EAAE,kBAAkB,GACtC,CACH,CAAC;KACH;IACD,OAAO,CACL,MAAC,YAAY,IACX,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa,CAAC,mCAAmC,aAGrE,KAAC,4BAA4B,IAC3B,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,UAAU,EACtB,kBAAkB,EAAE,kBAAkB,GACtC,EACF,KAAC,gBAAgB,IAAC,UAAU,EAAE,UAAU,GAAI,EAC5C,cAAK,SAAS,EAAC,+BAA+B,YAC5C,KAAC,MAAM,IACL,SAAS,EAAC,sEAAsE,EAChF,OAAO,EAAE,GAAS,EAAE,CAClB,kBAAkB,CAAC,WAAW,CAAC,wBAAwB,CAAC,IAAI,CAAC,EAE/D,IAAI,EAAC,WAAW,GAChB,GACE,EACN,KAAC,YAAY,KAAG,IACH,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -13,8 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
17
- export declare const tryToFormatSql: (sql: string) => string;
16
+ import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
18
17
  export declare const QueryBuilderResultPanel: ((props: {
19
18
  queryBuilderState: QueryBuilderState;
20
19
  }) => import("react/jsx-runtime").JSX.Element) & {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryBuilderResultPanel.d.ts","sourceRoot":"","sources":["../../../src/components/result/QueryBuilderResultPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA4BH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAoF3E,eAAO,MAAM,uBAAuB,WAC1B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CA0bjD,CAAC"}
@@ -0,0 +1,185 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2020-present, Goldman Sachs
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { BlankPanelContent, PanelLoadingIndicator, PlayIcon, DropdownMenu, MenuContent, MenuContentItem, CaretDownIcon, clsx, PauseCircleIcon, ExclamationTriangleIcon, PanelContent, Button, SQLIcon, Dialog, Modal, ModalBody, ModalFooter, ModalFooterButton, ModalHeader, PanelDivider, SquareIcon, CheckSquareIcon, } from '@finos/legend-art';
18
+ import { observer } from 'mobx-react-lite';
19
+ import { flowResult } from 'mobx';
20
+ import { extractExecutionResultValues, TDSExecutionResult, RawExecutionResult, } from '@finos/legend-graph';
21
+ import { ActionAlertActionType, ActionAlertType, DEFAULT_TAB_SIZE, useApplicationStore, } from '@finos/legend-application';
22
+ import { prettyDuration } from '@finos/legend-shared';
23
+ import { useRef, useState } from 'react';
24
+ import { QueryBuilderTDSState } from '../../stores/fetch-structure/tds/QueryBuilderTDSState.js';
25
+ import { PARAMETER_SUBMIT_ACTION } from '../../stores/shared/LambdaParameterState.js';
26
+ import { QUERY_BUILDER_TEST_ID } from '../../__lib__/QueryBuilderTesting.js';
27
+ import { CODE_EDITOR_LANGUAGE, CodeEditor, } from '@finos/legend-lego/code-editor';
28
+ import { ExecutionPlanViewer } from '../execution-plan/ExecutionPlanViewer.js';
29
+ import { QueryUsageViewer } from '../QueryUsageViewer.js';
30
+ import { DocumentationLink } from '@finos/legend-lego/application';
31
+ import { QUERY_BUILDER_DOCUMENTATION_KEY } from '../../__lib__/QueryBuilderDocumentation.js';
32
+ import { QueryBuilderTDSSimpleGridResult } from './tds/QueryBuilderTDSSimpleGridResult.js';
33
+ import { isEnterpriseModeEnabled } from '@finos/legend-lego/data-grid';
34
+ import { getExecutedSqlFromExecutionResult, tryToFormatSql, } from './tds/QueryBuilderTDSResultShared.js';
35
+ import { QueryBuilderTDSGridResult } from './tds/QueryBuilderTDSGridResult.js';
36
+ const QueryBuilderResultValues = observer((props) => {
37
+ const { executionResult, queryBuilderState } = props;
38
+ if (executionResult instanceof TDSExecutionResult) {
39
+ if (isEnterpriseModeEnabled) {
40
+ return (_jsx(QueryBuilderTDSGridResult, { queryBuilderState: queryBuilderState, executionResult: executionResult }));
41
+ }
42
+ else {
43
+ return (_jsx(QueryBuilderTDSSimpleGridResult, { queryBuilderState: queryBuilderState, executionResult: executionResult }));
44
+ }
45
+ }
46
+ else if (executionResult instanceof RawExecutionResult) {
47
+ const inputValue = executionResult.value === null
48
+ ? 'null'
49
+ : executionResult.value.toString();
50
+ return (_jsx(CodeEditor, { language: CODE_EDITOR_LANGUAGE.TEXT, inputValue: inputValue, isReadOnly: true }));
51
+ }
52
+ return (_jsx(CodeEditor, { language: CODE_EDITOR_LANGUAGE.JSON, inputValue: JSON.stringify(extractExecutionResultValues(executionResult), null, DEFAULT_TAB_SIZE), isReadOnly: true }));
53
+ });
54
+ export const QueryBuilderResultPanel = observer((props) => {
55
+ const { queryBuilderState } = props;
56
+ const applicationStore = useApplicationStore();
57
+ const resultState = queryBuilderState.resultState;
58
+ const queryParametersState = queryBuilderState.parametersState;
59
+ const executionResult = resultState.executionResult;
60
+ const [showSqlModal, setShowSqlModal] = useState(false);
61
+ const executedSql = executionResult
62
+ ? getExecutedSqlFromExecutionResult(executionResult)
63
+ : undefined;
64
+ const fetchStructureImplementation = queryBuilderState.fetchStructureState.implementation;
65
+ const USER_ATTESTATION_MESSAGE = 'I attest that I am aware of the sensitive data leakage risk when exporting queried data. The data I export will only be used by me.';
66
+ const exportQueryResults = async (format) => {
67
+ if (queryBuilderState.parametersState.parameterStates.length) {
68
+ queryParametersState.parameterValuesEditorState.open(() => flowResult(resultState.exportData(format)).catch(applicationStore.alertUnhandledError), PARAMETER_SUBMIT_ACTION.EXPORT);
69
+ }
70
+ else {
71
+ await flowResult(resultState.exportData(format)).catch(applicationStore.alertUnhandledError);
72
+ }
73
+ };
74
+ const confirmExport = (format) => {
75
+ applicationStore.alertService.setActionAlertInfo({
76
+ message: USER_ATTESTATION_MESSAGE,
77
+ type: ActionAlertType.CAUTION,
78
+ actions: [
79
+ {
80
+ label: 'Accept',
81
+ type: ActionAlertActionType.PROCEED_WITH_CAUTION,
82
+ handler: applicationStore.guardUnhandledError(() => exportQueryResults(format)),
83
+ },
84
+ {
85
+ label: 'Decline',
86
+ type: ActionAlertActionType.PROCEED,
87
+ default: true,
88
+ },
89
+ ],
90
+ });
91
+ };
92
+ const allValidationIssues = queryBuilderState.allValidationIssues;
93
+ const isSupportedQueryValid = allValidationIssues.length === 0;
94
+ const isQueryValid = !queryBuilderState.isQuerySupported || isSupportedQueryValid;
95
+ const isQueryValidForAdvancedMode = isQueryValid &&
96
+ queryBuilderState.fetchStructureState.implementation instanceof
97
+ QueryBuilderTDSState;
98
+ const runQuery = () => {
99
+ resultState.setSelectedCells([]);
100
+ resultState.pressedRunQuery.inProgress();
101
+ if (queryParametersState.parameterStates.length) {
102
+ queryParametersState.parameterValuesEditorState.open(() => flowResult(resultState.runQuery()).catch(applicationStore.alertUnhandledError), PARAMETER_SUBMIT_ACTION.RUN);
103
+ }
104
+ else {
105
+ flowResult(resultState.runQuery()).catch(applicationStore.alertUnhandledError);
106
+ }
107
+ resultState.pressedRunQuery.complete();
108
+ };
109
+ const cancelQuery = applicationStore.guardUnhandledError(() => flowResult(resultState.cancelQuery()));
110
+ const generatePlan = applicationStore.guardUnhandledError(() => flowResult(resultState.generatePlan(false)));
111
+ const debugPlanGeneration = applicationStore.guardUnhandledError(() => flowResult(resultState.generatePlan(true)));
112
+ const allowSettingPreviewLimit = queryBuilderState.isQuerySupported;
113
+ const allowSettingAdvancedMode = queryBuilderState.isQuerySupported && isEnterpriseModeEnabled;
114
+ const copyExpression = (value) => {
115
+ applicationStore.clipboardService
116
+ .copyTextToClipboard(value)
117
+ .then(() => applicationStore.notificationService.notifySuccess('SQL Query copied', undefined, 2500))
118
+ .catch(applicationStore.alertUnhandledError);
119
+ };
120
+ const isRunQueryDisabled = !isQueryValid ||
121
+ resultState.isGeneratingPlan ||
122
+ resultState.pressedRunQuery.isInProgress;
123
+ const getResultSetDescription = (_executionResult) => {
124
+ const queryDuration = resultState.executionDuration
125
+ ? prettyDuration(resultState.executionDuration, {
126
+ ms: true,
127
+ })
128
+ : undefined;
129
+ if (_executionResult instanceof TDSExecutionResult) {
130
+ const rowLength = _executionResult.result.rows.length;
131
+ return `${rowLength} row(s)${queryDuration ? ` in ${queryDuration}` : ''}`;
132
+ }
133
+ if (!queryDuration) {
134
+ return undefined;
135
+ }
136
+ return `query ran in ${queryDuration}`;
137
+ };
138
+ const resultDescription = executionResult
139
+ ? getResultSetDescription(executionResult)
140
+ : undefined;
141
+ const [previewLimitValue, setPreviewLimitValue] = useState(resultState.previewLimit);
142
+ const changePreviewLimit = (event) => {
143
+ setPreviewLimitValue(parseInt(event.target.value, 10));
144
+ };
145
+ const inputRef = useRef(null);
146
+ const getPreviewLimit = () => {
147
+ if (isNaN(previewLimitValue) || previewLimitValue === 0) {
148
+ setPreviewLimitValue(1);
149
+ queryBuilderState.resultState.setPreviewLimit(1);
150
+ }
151
+ else {
152
+ queryBuilderState.resultState.setPreviewLimit(previewLimitValue);
153
+ }
154
+ };
155
+ const onKeyDown = (event) => {
156
+ if (event.code === 'Enter') {
157
+ getPreviewLimit();
158
+ inputRef.current?.focus();
159
+ }
160
+ else if (event.code === 'Escape') {
161
+ inputRef.current?.select();
162
+ }
163
+ };
164
+ const toggleIsAdvancedModeEnabled = () => {
165
+ resultState.setExecutionResult(undefined);
166
+ queryBuilderState.setIsAdvancedModeEnabled(!queryBuilderState.isAdvancedModeEnabled);
167
+ };
168
+ return (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_RESULT_PANEL, className: "panel query-builder__result", children: [showSqlModal && executedSql && (_jsx(Dialog, { open: Boolean(showSqlModal), onClose: () => setShowSqlModal(false), children: _jsxs(Modal, { className: "editor-modal", darkMode: true, children: [_jsx(ModalHeader, { title: "Executed SQL Query" }), _jsx(ModalBody, { className: "query-builder__sql__modal", children: _jsxs(_Fragment, { children: [_jsx(CodeEditor, { inputValue: tryToFormatSql(executedSql), isReadOnly: true, language: CODE_EDITOR_LANGUAGE.SQL, hideMinimap: true }), _jsx(PanelDivider, {})] }) }), _jsxs(ModalFooter, { children: [_jsx(ModalFooterButton, { formatText: false, onClick: () => copyExpression(executedSql), text: "Copy SQL to Clipboard" }), _jsx(ModalFooterButton, { onClick: () => setShowSqlModal(false), text: "Close" })] })] }) })), _jsxs("div", { className: "panel__header", children: [_jsxs("div", { className: "panel__header__title", children: [_jsx("div", { className: "panel__header__title__label", children: "result" }), executedSql && (_jsx(Button, { onClick: () => setShowSqlModal(true), title: "Executed SQL", className: "query-builder__result__sql__actions", children: _jsx(SQLIcon, {}) })), resultState.pressedRunQuery.isInProgress && (_jsx("div", { className: "panel__header__title__label__status", children: "Running Query..." })), _jsx("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_RESULT_ANALYTICS, className: "query-builder__result__analytics", children: resultDescription ?? '' }), executionResult && resultState.checkForStaleResults && (_jsxs("div", { className: "query-builder__result__stale-status", children: [_jsx("div", { className: "query-builder__result__stale-status__icon", children: _jsx(ExclamationTriangleIcon, {}) }), _jsx("div", { className: "query-builder__result__stale-status__label", children: "Preview data might be stale" })] }))] }), _jsxs("div", { className: "panel__header__actions query-builder__result__header__actions", children: [allowSettingAdvancedMode && (_jsxs("div", { className: "query-builder__result__advanced__mode", children: [_jsxs("div", { className: "query-builder__result__advanced__mode__label", children: ["Advanced Mode", _jsx(DocumentationLink, { title: "The grid in advanced mode performs all operations like grouping, sorting, filtering, etc after initial query execution locally withought reaching out to server. This limits the number of rows to smaller number so they can fit in memory", documentationKey: QUERY_BUILDER_DOCUMENTATION_KEY.QUESTION_HOW_TO_USE_ADVANCED_GRID_MODE })] }), _jsx("button", { className: clsx('query-builder__result__advanced__mode__toggler__btn', {
169
+ 'query-builder__result__advanced__mode__toggler__btn--toggled': queryBuilderState.isAdvancedModeEnabled,
170
+ }), disabled: !isQueryValidForAdvancedMode, onClick: toggleIsAdvancedModeEnabled, tabIndex: -1, children: queryBuilderState.isAdvancedModeEnabled ? (_jsx(CheckSquareIcon, {})) : (_jsx(SquareIcon, {})) })] })), allowSettingPreviewLimit && (_jsxs("div", { className: "query-builder__result__limit", children: [_jsx("div", { className: "query-builder__result__limit__label", children: "preview limit" }), _jsx("input", { ref: inputRef, className: "input--dark query-builder__result__limit__input", spellCheck: false, type: "number", value: previewLimitValue, onChange: changePreviewLimit, onBlur: getPreviewLimit, onKeyDown: onKeyDown, disabled: !isQueryValid })] })), _jsx("div", { className: "query-builder__result__execute-btn btn__dropdown-combo btn__dropdown-combo--primary", children: resultState.isRunningQuery ? (_jsx("button", { className: "btn__dropdown-combo__canceler", onClick: cancelQuery, tabIndex: -1, disabled: !isQueryValid, children: _jsxs("div", { className: "btn--dark btn--caution btn__dropdown-combo__canceler__label", children: [_jsx(PauseCircleIcon, { className: "btn__dropdown-combo__canceler__label__icon" }), _jsx("div", { className: "btn__dropdown-combo__canceler__label__title", children: "Stop" })] }) })) : (_jsxs(_Fragment, { children: [_jsxs("button", { className: "btn__dropdown-combo__label", onClick: runQuery, tabIndex: -1, title: allValidationIssues.length
171
+ ? `Query is not valid:\n${allValidationIssues
172
+ .map((issue) => `\u2022 ${issue}`)
173
+ .join('\n')}`
174
+ : undefined, disabled: isRunQueryDisabled, children: [_jsx(PlayIcon, { className: "btn__dropdown-combo__label__icon" }), _jsx("div", { className: "btn__dropdown-combo__label__title", children: "Run Query" })] }), _jsx(DropdownMenu, { className: "btn__dropdown-combo__dropdown-btn", disabled: isRunQueryDisabled, content: _jsxs(MenuContent, { children: [_jsx(MenuContentItem, { className: "btn__dropdown-combo__option", onClick: generatePlan, disabled: isRunQueryDisabled, children: "Generate Plan" }), _jsx(MenuContentItem, { className: "btn__dropdown-combo__option", onClick: debugPlanGeneration, disabled: isRunQueryDisabled, children: "Debug" })] }), menuProps: {
175
+ anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
176
+ transformOrigin: { vertical: 'top', horizontal: 'right' },
177
+ }, children: _jsx(CaretDownIcon, {}) })] })) }), _jsxs(DropdownMenu, { className: "query-builder__result__export__dropdown", title: "Export", disabled: !isQueryValid, content: _jsxs(MenuContent, { children: [Object.values(fetchStructureImplementation.exportDataFormatOptions).map((format) => (_jsx(MenuContentItem, { className: "query-builder__result__export__dropdown__menu__item", onClick: () => confirmExport(format), children: format }, format))), _jsx(MenuContentItem, { className: "query-builder__result__export__dropdown__menu__item", onClick: () => resultState.setIsQueryUsageViewerOpened(true), disabled: queryBuilderState.changeDetectionState.hasChanged, children: "View Query Usage..." })] }), menuProps: {
178
+ anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
179
+ transformOrigin: { vertical: 'top', horizontal: 'right' },
180
+ elevation: 7,
181
+ }, children: [_jsx("div", { className: "query-builder__result__export__dropdown__label", children: "Export" }), _jsx("div", { className: "query-builder__result__export__dropdown__trigger", children: _jsx(CaretDownIcon, {}) })] }), resultState.isQueryUsageViewerOpened && (_jsx(QueryUsageViewer, { resultState: resultState }))] })] }), _jsxs(PanelContent, { children: [_jsx(PanelLoadingIndicator, { isLoading: resultState.isRunningQuery ||
182
+ resultState.isGeneratingPlan ||
183
+ resultState.exportDataState.isInProgress }), !executionResult && (_jsx(BlankPanelContent, { children: "Build or load a valid query first" })), executionResult && (_jsx("div", { className: "query-builder__result__values", children: _jsx(QueryBuilderResultValues, { executionResult: executionResult, queryBuilderState: queryBuilderState }) }))] }), _jsx(ExecutionPlanViewer, { executionPlanState: resultState.executionPlanState })] }));
184
+ });
185
+ //# sourceMappingURL=QueryBuilderResultPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryBuilderResultPanel.js","sourceRoot":"","sources":["../../../src/components/result/QueryBuilderResultPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,eAAe,EACf,aAAa,EACb,IAAI,EACJ,eAAe,EACf,uBAAuB,EACvB,YAAY,EACZ,MAAM,EACN,OAAO,EACP,MAAM,EACN,KAAK,EACL,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,UAAU,EACV,eAAe,GAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EAEL,4BAA4B,EAC5B,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OA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,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"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { QueryBuilderState } from '../../../stores/QueryBuilderState.js';
17
+ import type { TDSExecutionResult } from '@finos/legend-graph';
18
+ export declare const QueryBuilderTDSGridResult: ((props: {
19
+ executionResult: TDSExecutionResult;
20
+ queryBuilderState: QueryBuilderState;
21
+ }) => import("react/jsx-runtime").JSX.Element) & {
22
+ displayName: string;
23
+ };
24
+ //# sourceMappingURL=QueryBuilderTDSGridResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryBuilderTDSGridResult.d.ts","sourceRoot":"","sources":["../../../../src/components/result/tds/QueryBuilderTDSGridResult.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAgF9D,eAAO,MAAM,yBAAyB,WAC5B;IACN,eAAe,EAAE,kBAAkB,CAAC;IACpC,iBAAiB,EAAE,iBAAiB,CAAC;CACtC;;CAuIF,CAAC"}
@@ -0,0 +1,140 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2020-present, Goldman Sachs
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { clsx } from '@finos/legend-art';
18
+ import { observer } from 'mobx-react-lite';
19
+ import { useState } from 'react';
20
+ import { DataGrid, } from '@finos/legend-lego/data-grid';
21
+ import { getAggregationTDSColumnCustomizations, getRowDataFromExecutionResult, QueryResultEnterpriseCellRenderer, } from './QueryBuilderTDSResultShared.js';
22
+ const getAdvancedColDefs = (executionResult, resultState) => executionResult.result.columns.map((colName) => {
23
+ const col = {
24
+ minWidth: 50,
25
+ sortable: true,
26
+ resizable: true,
27
+ field: colName,
28
+ flex: 1,
29
+ enablePivot: true,
30
+ enableRowGroup: true,
31
+ enableValue: true,
32
+ ...getAggregationTDSColumnCustomizations(executionResult, colName),
33
+ };
34
+ const persistedColumn = resultState.gridConfig.columns.find((c) => c.colId === colName);
35
+ if (persistedColumn) {
36
+ if (persistedColumn.width) {
37
+ col.width = persistedColumn.width;
38
+ }
39
+ col.pinned = persistedColumn.pinned ?? null;
40
+ col.rowGroup = persistedColumn.rowGroup ?? false;
41
+ col.rowGroupIndex = persistedColumn.rowGroupIndex ?? null;
42
+ col.aggFunc = persistedColumn.aggFunc ?? null;
43
+ col.pivot = persistedColumn.pivot ?? false;
44
+ col.hide = persistedColumn.hide ?? false;
45
+ }
46
+ return col;
47
+ });
48
+ const getEnterpriseModeColDefs = (executionResult, resultState) => executionResult.result.columns.map((colName) => ({
49
+ minWidth: 50,
50
+ sortable: true,
51
+ resizable: true,
52
+ field: colName,
53
+ flex: 1,
54
+ cellRenderer: QueryResultEnterpriseCellRenderer,
55
+ cellRendererParams: {
56
+ resultState: resultState,
57
+ tdsExecutionResult: executionResult,
58
+ },
59
+ }));
60
+ export const QueryBuilderTDSGridResult = observer((props) => {
61
+ const { executionResult, queryBuilderState } = props;
62
+ const [columnAPi, setColumnApi] = useState(undefined);
63
+ const resultState = queryBuilderState.resultState;
64
+ const isAdvancedModeEnabled = queryBuilderState.isAdvancedModeEnabled;
65
+ const colDefs = isAdvancedModeEnabled
66
+ ? getAdvancedColDefs(executionResult, resultState)
67
+ : getEnterpriseModeColDefs(executionResult, resultState);
68
+ const onSaveGridColumnState = () => {
69
+ if (!columnAPi) {
70
+ return;
71
+ }
72
+ resultState.setGridConfig({
73
+ columns: columnAPi.getColumnState(),
74
+ isPivotModeEnabled: columnAPi.isPivotMode(),
75
+ });
76
+ };
77
+ const getSelectedCells = (api) => {
78
+ const seletcedRanges = api.getCellRanges();
79
+ const nodes = api.getRenderedNodes();
80
+ const columns = api.getColumnDefs();
81
+ const selectedCells = [];
82
+ if (seletcedRanges) {
83
+ for (const seletcedRange of seletcedRanges) {
84
+ const startRow = seletcedRange.startRow?.rowIndex ?? 0;
85
+ const endRow = seletcedRange.endRow?.rowIndex ?? 0;
86
+ const selectedColumns = seletcedRange.columns.map((col) => col.getColId());
87
+ for (let x = startRow; x <= endRow; x++) {
88
+ const curRowData = nodes.find((n) => n.rowIndex === x)?.data;
89
+ if (curRowData) {
90
+ for (const col of selectedColumns) {
91
+ const valueAndColumnId = {
92
+ value: Object.entries(curRowData)
93
+ .find((rData) => rData[0] === col)
94
+ ?.at(1),
95
+ columnName: col,
96
+ coordinates: {
97
+ rowIndex: x,
98
+ colIndex: columns.findIndex((colDef) => colDef.colId === col),
99
+ },
100
+ };
101
+ selectedCells.push(valueAndColumnId);
102
+ }
103
+ }
104
+ }
105
+ }
106
+ }
107
+ return selectedCells;
108
+ };
109
+ return (_jsx("div", { className: "query-builder__result__values__table", children: _jsx("div", { className: clsx('ag-theme-balham-dark query-builder__result__tds-grid'), children: isAdvancedModeEnabled ? (_jsx(DataGrid, { rowData: getRowDataFromExecutionResult(executionResult), onGridReady: (params) => {
110
+ setColumnApi(params.columnApi);
111
+ params.columnApi.setPivotMode(resultState.gridConfig.isPivotModeEnabled);
112
+ }, gridOptions: {
113
+ suppressScrollOnNewData: true,
114
+ getRowId: (data) => data.data.rowNumber,
115
+ rowSelection: 'multiple',
116
+ pivotPanelShow: 'always',
117
+ rowGroupPanelShow: 'always',
118
+ enableRangeSelection: true,
119
+ },
120
+ // NOTE: when column definition changed, we need to force refresh the cell to make sure the cell renderer is updated
121
+ // See https://stackoverflow.com/questions/56341073/how-to-refresh-an-ag-grid-when-a-change-occurs-inside-a-custom-cell-renderer-com
122
+ onRowDataUpdated: (params) => {
123
+ params.api.refreshCells({ force: true });
124
+ }, suppressFieldDotNotation: true, suppressContextMenu: false, columnDefs: colDefs, sideBar: ['columns', 'filters'], onColumnVisible: onSaveGridColumnState, onColumnPinned: onSaveGridColumnState, onColumnResized: onSaveGridColumnState, onColumnRowGroupChanged: onSaveGridColumnState, onColumnValueChanged: onSaveGridColumnState, onColumnPivotChanged: onSaveGridColumnState, onColumnPivotModeChanged: onSaveGridColumnState })) : (_jsx(DataGrid, { rowData: getRowDataFromExecutionResult(executionResult), gridOptions: {
125
+ suppressScrollOnNewData: true,
126
+ getRowId: (data) => data.data.rowNumber,
127
+ rowSelection: 'multiple',
128
+ enableRangeSelection: true,
129
+ },
130
+ // NOTE: when column definition changed, we need to force refresh the cell to make sure the cell renderer is updated
131
+ // See https://stackoverflow.com/questions/56341073/how-to-refresh-an-ag-grid-when-a-change-occurs-inside-a-custom-cell-renderer-com
132
+ onRowDataUpdated: (params) => {
133
+ params.api.refreshCells({ force: true });
134
+ }, onRangeSelectionChanged: (event) => {
135
+ const selectedCells = getSelectedCells(event.api);
136
+ resultState.setSelectedCells([]);
137
+ selectedCells.forEach((cell) => resultState.addSelectedCell(cell));
138
+ }, suppressFieldDotNotation: true, suppressClipboardPaste: false, suppressContextMenu: !isAdvancedModeEnabled, columnDefs: colDefs })) }) }));
139
+ });
140
+ //# sourceMappingURL=QueryBuilderTDSGridResult.js.map
@@ -0,0 +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;AAG3C,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EACL,QAAQ,GAMT,MAAM,8BAA8B,CAAC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ACF,KAAC,QAAQ,IACP,OAAO,EAAE,6BAA6B,CAAC,eAAe,CAAC,EACvD,WAAW,EAAE;oBACX,uBAAuB,EAAE,IAAI;oBAC7B,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS;oBACvC,YAAY,EAAE,UAAU;oBACxB,oBAAoB,EAAE,IAAI;iBAC3B;gBACD,oHAAoH;gBACpH,oIAAoI;gBACpI,gBAAgB,EAAE,CAAC,MAAM,EAAE,EAAE;oBAC3B,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;gBAC3C,CAAC,EACD,uBAAuB,EAAE,CAAC,KAAK,EAAE,EAAE;oBACjC,MAAM,aAAa,GAAG,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;oBAClD,WAAW,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC;oBACjC,aAAa,CAAC,OAAO,CAAC,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,CAAC,qBAAqB,EAC3C,UAAU,EAAE,OAAO,GACnB,CACH,GACG,GACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /// <reference types="react" resolution-mode="require"/>
17
+ import { TDSExecutionResult, type ExecutionResult } from '@finos/legend-graph';
18
+ import { type PlainObject } from '@finos/legend-shared';
19
+ import { QueryBuilderTDSState } from '../../../stores/fetch-structure/tds/QueryBuilderTDSState.js';
20
+ import { type DataGridApi, type DataGridCellRendererParams } from '@finos/legend-lego/data-grid';
21
+ import type { QueryBuilderResultState, QueryBuilderTDSResultCellData, QueryBuilderTDSRowDataType } from '../../../stores/QueryBuilderResultState.js';
22
+ export declare const tryToFormatSql: (sql: string) => string;
23
+ export declare const getExecutedSqlFromExecutionResult: (execResult: ExecutionResult) => string | undefined;
24
+ export declare const getAggregationTDSColumnCustomizations: (result: TDSExecutionResult, columnName: string) => object | undefined;
25
+ export declare const getRowDataFromExecutionResult: (executionResult: TDSExecutionResult) => PlainObject<QueryBuilderTDSRowDataType>[];
26
+ export type IQueryRendererParamsWithGridType = DataGridCellRendererParams & {
27
+ resultState: QueryBuilderResultState;
28
+ tdsExecutionResult: TDSExecutionResult;
29
+ };
30
+ export declare const QueryBuilderGridResultContextMenu: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<{
31
+ data: QueryBuilderTDSResultCellData | null;
32
+ tdsState: QueryBuilderTDSState;
33
+ dataGridApi: DataGridApi<QueryBuilderTDSRowDataType>;
34
+ } & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>>;
35
+ export declare const QueryResultEnterpriseCellRenderer: ((params: IQueryRendererParamsWithGridType) => import("react/jsx-runtime").JSX.Element) & {
36
+ displayName: string;
37
+ };
38
+ export declare const QueryResultCellRenderer: ((params: IQueryRendererParamsWithGridType) => import("react/jsx-runtime").JSX.Element) & {
39
+ displayName: string;
40
+ };
41
+ //# sourceMappingURL=QueryBuilderTDSResultShared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryBuilderTDSResultShared.d.ts","sourceRoot":"","sources":["../../../../src/components/result/tds/QueryBuilderTDSResultShared.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAWH,OAAO,EAGL,kBAAkB,EAKlB,KAAK,eAAe,EAErB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAQL,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAsB9B,OAAO,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAC;AAKnG,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,0BAA0B,EAChC,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAEV,uBAAuB,EACvB,6BAA6B,EAC7B,0BAA0B,EAE3B,MAAM,4CAA4C,CAAC;AAOpD,eAAO,MAAM,cAAc,QAAS,MAAM,KAAG,MAY5C,CAAC;AAEF,eAAO,MAAM,iCAAiC,eAChC,eAAe,KAC1B,MAAM,GAAG,SAiBX,CAAC;AAEF,eAAO,MAAM,qCAAqC,WACxC,kBAAkB,cACd,MAAM,KACjB,MAAM,GAAG,SA6BX,CAAC;AAEF,eAAO,MAAM,6BAA6B,oBACvB,kBAAkB,KAClC,YAAY,0BAA0B,CAAC,EAezC,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG,0BAA0B,GAAG;IAC1E,WAAW,EAAE,uBAAuB,CAAC;IACrC,kBAAkB,EAAE,kBAAkB,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,iCAAiC;UAIlC,6BAA6B,GAAG,IAAI;cAChC,oBAAoB;iBACjB,YAAY,0BAA0B,CAAC;2GAgWzD,CAAC;AAEF,eAAO,MAAM,iCAAiC,YACnC,gCAAgC;;CAqE1C,CAAC;AAEF,eAAO,MAAM,uBAAuB,YACzB,gCAAgC;;CAuP1C,CAAC"}