ydb-embedded-ui 6.36.1 → 6.37.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/containers/Cluster/Cluster.js +2 -2
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- package/dist/containers/Nodes/Nodes.d.ts +13 -3
- package/dist/containers/Nodes/Nodes.js +71 -39
- package/dist/containers/Nodes/Nodes.js.map +1 -1
- package/dist/containers/Nodes/{PaginatedNodesTable.d.ts → NodesTable.d.ts} +2 -2
- package/dist/containers/Nodes/{PaginatedNodesTable.js → NodesTable.js} +2 -2
- package/dist/containers/Nodes/NodesTable.js.map +1 -0
- package/dist/containers/Storage/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +2 -2
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.js +2 -2
- package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.js +31 -26
- package/dist/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +3 -7
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryResult/QueryResultViewer.d.ts +14 -0
- package/dist/containers/Tenant/Query/QueryResult/QueryResultViewer.js +188 -0
- package/dist/containers/Tenant/Query/QueryResult/QueryResultViewer.js.map +1 -0
- package/dist/containers/Tenant/Query/{ExplainResult/ExplainResult.scss → QueryResult/QueryResultViewer.scss} +3 -15
- package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/Ast/Ast.d.ts +1 -1
- package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/Ast/Ast.js +1 -1
- package/dist/containers/Tenant/Query/QueryResult/components/Ast/Ast.js.map +1 -0
- package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/Ast/Ast.scss +1 -1
- package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/Graph/Graph.d.ts +2 -2
- package/dist/containers/Tenant/Query/QueryResult/components/Graph/Graph.js +16 -0
- package/dist/containers/Tenant/Query/QueryResult/components/Graph/Graph.js.map +1 -0
- package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/Graph/Graph.scss +0 -6
- package/dist/containers/Tenant/Query/{ExecuteResult → QueryResult/components/PlanToSvgButton}/PlanToSvgButton.d.ts +1 -1
- package/dist/containers/Tenant/Query/{ExecuteResult → QueryResult/components/PlanToSvgButton}/PlanToSvgButton.js +2 -2
- package/dist/containers/Tenant/Query/QueryResult/components/PlanToSvgButton/PlanToSvgButton.js.map +1 -0
- package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.d.ts +7 -0
- package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.js +12 -0
- package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.js.map +1 -0
- package/dist/containers/Tenant/Query/{ExplainResult/components/TextExplain/TextExplain.scss → QueryResult/components/QueryJSONViewer/QueryJSONViewer.scss} +4 -6
- package/dist/containers/Tenant/Query/QueryResult/components/QueryResultError/QueryResultError.d.ts +4 -0
- package/dist/containers/Tenant/Query/QueryResult/components/QueryResultError/QueryResultError.js +20 -0
- package/dist/containers/Tenant/Query/QueryResult/components/QueryResultError/QueryResultError.js.map +1 -0
- package/dist/containers/Tenant/Query/QueryResult/components/QueryResultError/QueryResultError.scss +5 -0
- package/dist/containers/Tenant/Query/QueryResult/components/ResultSetsViewer/ResultSetsViewer.d.ts +9 -0
- package/dist/containers/Tenant/Query/QueryResult/components/ResultSetsViewer/ResultSetsViewer.js +30 -0
- package/dist/containers/Tenant/Query/QueryResult/components/ResultSetsViewer/ResultSetsViewer.js.map +1 -0
- package/dist/containers/Tenant/Query/QueryResult/components/ResultSetsViewer/ResultSetsViewer.scss +36 -0
- package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/MetricsCell.js.map +1 -0
- package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/OperationCell.js.map +1 -0
- package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/OperationParams.js.map +1 -0
- package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/SimplifiedPlan.js.map +1 -0
- package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/SimplifiedPlan.scss +1 -1
- package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/types.js.map +1 -0
- package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/utils.js +1 -1
- package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/utils.js.map +1 -0
- package/dist/containers/Tenant/Query/QueryResult/components/Stub/Stub.d.ts +6 -0
- package/dist/containers/Tenant/Query/QueryResult/components/Stub/Stub.js +8 -0
- package/dist/containers/Tenant/Query/QueryResult/components/Stub/Stub.js.map +1 -0
- package/dist/containers/Tenant/Query/QueryResult/components/Stub/Stub.scss +3 -0
- package/dist/containers/Tenant/Query/{ExecuteResult → QueryResult/components/TraceButton}/TraceButton.js +4 -4
- package/dist/containers/Tenant/Query/QueryResult/components/TraceButton/TraceButton.js.map +1 -0
- package/dist/containers/Tenant/Query/{ExecuteResult → QueryResult}/i18n/en.json +3 -0
- package/dist/containers/Tenant/Query/QueryResult/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Query/QueryResult/i18n/index.js.map +1 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js +2 -2
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js.map +1 -1
- package/dist/containers/Tenant/utils/schemaActions.d.ts +4 -4
- package/dist/containers/Tenant/utils/schemaActions.js +19 -16
- package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
- package/dist/containers/Tenant/utils/schemaQueryTemplates.d.ts +1 -1
- package/dist/containers/Tenant/utils/schemaQueryTemplates.js +3 -3
- package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -1
- package/dist/services/api.d.ts +2 -1
- package/dist/services/api.js +3 -3
- package/dist/services/api.js.map +1 -1
- package/dist/store/reducers/overview/overview.d.ts +1 -0
- package/dist/store/reducers/overview/overview.js +2 -1
- package/dist/store/reducers/overview/overview.js.map +1 -1
- package/dist/store/reducers/query/prepareQueryData.d.ts +0 -3
- package/dist/store/reducers/query/prepareQueryData.js +42 -30
- package/dist/store/reducers/query/prepareQueryData.js.map +1 -1
- package/dist/store/reducers/tableSchemaData.d.ts +1 -1
- package/dist/store/reducers/tableSchemaData.js +5 -1
- package/dist/store/reducers/tableSchemaData.js.map +1 -1
- package/dist/store/reducers/viewSchema/viewSchema.d.ts +1 -0
- package/dist/store/reducers/viewSchema/viewSchema.js +2 -1
- package/dist/store/reducers/viewSchema/viewSchema.js.map +1 -1
- package/dist/types/api/autocomplete.d.ts +7 -0
- package/dist/types/api/autocomplete.js +3 -1
- package/dist/types/api/autocomplete.js.map +1 -1
- package/dist/utils/monaco/yql/generateSuggestions.js +31 -11
- package/dist/utils/monaco/yql/generateSuggestions.js.map +1 -1
- package/package.json +3 -3
- package/dist/containers/Nodes/NodesWrapper.d.ts +0 -9
- package/dist/containers/Nodes/NodesWrapper.js +0 -13
- package/dist/containers/Nodes/NodesWrapper.js.map +0 -1
- package/dist/containers/Nodes/PaginatedNodes.d.ts +0 -19
- package/dist/containers/Nodes/PaginatedNodes.js +0 -91
- package/dist/containers/Nodes/PaginatedNodes.js.map +0 -1
- package/dist/containers/Nodes/PaginatedNodesTable.js.map +0 -1
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.d.ts +0 -12
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +0 -154
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +0 -1
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +0 -89
- package/dist/containers/Tenant/Query/ExecuteResult/PlanToSvgButton.js.map +0 -1
- package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js.map +0 -1
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +0 -2
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.js.map +0 -1
- package/dist/containers/Tenant/Query/ExecuteResult/utils.d.ts +0 -21
- package/dist/containers/Tenant/Query/ExecuteResult/utils.js +0 -40
- package/dist/containers/Tenant/Query/ExecuteResult/utils.js.map +0 -1
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.d.ts +0 -20
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js +0 -120
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js.map +0 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/Ast/Ast.js.map +0 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/Graph/Graph.js +0 -15
- package/dist/containers/Tenant/Query/ExplainResult/components/Graph/Graph.js.map +0 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/MetricsCell.js.map +0 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/OperationCell.js.map +0 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/OperationParams.js.map +0 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.js.map +0 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/types.js.map +0 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.js.map +0 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/TextExplain/TextExplain.d.ts +0 -8
- package/dist/containers/Tenant/Query/ExplainResult/components/TextExplain/TextExplain.js +0 -12
- package/dist/containers/Tenant/Query/ExplainResult/components/TextExplain/TextExplain.js.map +0 -1
- package/dist/containers/Tenant/Query/ExplainResult/i18n/en.json +0 -9
- package/dist/containers/Tenant/Query/ExplainResult/i18n/index.d.ts +0 -2
- package/dist/containers/Tenant/Query/ExplainResult/i18n/index.js +0 -5
- package/dist/containers/Tenant/Query/ExplainResult/i18n/index.js.map +0 -1
- /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/MetricsCell.d.ts +0 -0
- /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/MetricsCell.js +0 -0
- /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/OperationCell.d.ts +0 -0
- /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/OperationCell.js +0 -0
- /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/OperationParams.d.ts +0 -0
- /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/OperationParams.js +0 -0
- /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/SimplifiedPlan.d.ts +0 -0
- /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/SimplifiedPlan.js +0 -0
- /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/types.d.ts +0 -0
- /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/types.js +0 -0
- /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/utils.d.ts +0 -0
- /package/dist/containers/Tenant/Query/{ExecuteResult → QueryResult/components/TraceButton}/TraceButton.d.ts +0 -0
- /package/dist/containers/Tenant/Query/{ExecuteResult → QueryResult}/i18n/index.js +0 -0
@@ -0,0 +1,188 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import React from 'react';
|
3
|
+
import { ClipboardButton, RadioButton } from '@gravity-ui/uikit';
|
4
|
+
import Divider from '../../../../components/Divider/Divider';
|
5
|
+
import ElapsedTime from '../../../../components/ElapsedTime/ElapsedTime';
|
6
|
+
import EnableFullscreenButton from '../../../../components/EnableFullscreenButton/EnableFullscreenButton';
|
7
|
+
import Fullscreen from '../../../../components/Fullscreen/Fullscreen';
|
8
|
+
import { LoaderWrapper } from '../../../../components/LoaderWrapper/LoaderWrapper';
|
9
|
+
import { QueryExecutionStatus } from '../../../../components/QueryExecutionStatus';
|
10
|
+
import { disableFullscreen } from '../../../../store/reducers/fullscreen';
|
11
|
+
import { valueIsDefined } from '../../../../utils';
|
12
|
+
import { cn } from '../../../../utils/cn';
|
13
|
+
import { USE_SHOW_PLAN_SVG_KEY } from '../../../../utils/constants';
|
14
|
+
import { getStringifiedData } from '../../../../utils/dataFormatters/dataFormatters';
|
15
|
+
import { useSetting, useTypedDispatch } from '../../../../utils/hooks';
|
16
|
+
import { PaneVisibilityToggleButtons } from '../../utils/paneVisibilityToggleHelpers';
|
17
|
+
import { CancelQueryButton } from '../CancelQueryButton/CancelQueryButton';
|
18
|
+
import { QueryDuration } from '../QueryDuration/QueryDuration';
|
19
|
+
import { QuerySettingsBanner } from '../QuerySettingsBanner/QuerySettingsBanner';
|
20
|
+
import { getPreparedResult } from '../utils/getPreparedResult';
|
21
|
+
import { isQueryCancelledError } from '../utils/isQueryCancelledError';
|
22
|
+
import { Ast } from './components/Ast/Ast';
|
23
|
+
import { Graph } from './components/Graph/Graph';
|
24
|
+
import { PlanToSvgButton } from './components/PlanToSvgButton/PlanToSvgButton';
|
25
|
+
import { QueryJSONViewer } from './components/QueryJSONViewer/QueryJSONViewer';
|
26
|
+
import { QueryResultError } from './components/QueryResultError/QueryResultError';
|
27
|
+
import { ResultSetsViewer } from './components/ResultSetsViewer/ResultSetsViewer';
|
28
|
+
import { SimplifiedPlan } from './components/SimplifiedPlan/SimplifiedPlan';
|
29
|
+
import { StubMessage } from './components/Stub/Stub';
|
30
|
+
import { TraceButton } from './components/TraceButton/TraceButton';
|
31
|
+
import i18n from './i18n';
|
32
|
+
import './QueryResultViewer.scss';
|
33
|
+
const b = cn('ydb-query-result');
|
34
|
+
const RESULT_OPTIONS_IDS = {
|
35
|
+
result: 'result',
|
36
|
+
schema: 'schema',
|
37
|
+
simplified: 'simplified',
|
38
|
+
json: 'json',
|
39
|
+
stats: 'stats',
|
40
|
+
ast: 'ast',
|
41
|
+
};
|
42
|
+
const RESULT_OPTIONS_TITLES = {
|
43
|
+
get result() {
|
44
|
+
return i18n('action.result');
|
45
|
+
},
|
46
|
+
get schema() {
|
47
|
+
return i18n('action.schema');
|
48
|
+
},
|
49
|
+
get simplified() {
|
50
|
+
return i18n('action.explain-plan');
|
51
|
+
},
|
52
|
+
get json() {
|
53
|
+
return i18n('action.json');
|
54
|
+
},
|
55
|
+
get stats() {
|
56
|
+
return i18n('action.stats');
|
57
|
+
},
|
58
|
+
get ast() {
|
59
|
+
return i18n('action.ast');
|
60
|
+
},
|
61
|
+
};
|
62
|
+
const EXECUTE_SECTIONS = ['result', 'schema', 'simplified', 'stats'];
|
63
|
+
const EXPLAIN_SECTIONS = ['schema', 'json', 'simplified', 'ast'];
|
64
|
+
export function QueryResultViewer({ result, resultType = 'execute', isResultsCollapsed, theme, tenantName, onCollapseResults, onExpandResults, }) {
|
65
|
+
const dispatch = useTypedDispatch();
|
66
|
+
const isExecute = resultType === 'execute';
|
67
|
+
const isExplain = resultType === 'explain';
|
68
|
+
const [selectedResultSet, setSelectedResultSet] = React.useState(0);
|
69
|
+
const [activeSection, setActiveSection] = React.useState(() => {
|
70
|
+
return isExecute ? RESULT_OPTIONS_IDS.result : RESULT_OPTIONS_IDS.schema;
|
71
|
+
});
|
72
|
+
const [useShowPlanToSvg] = useSetting(USE_SHOW_PLAN_SVG_KEY);
|
73
|
+
const { error, isLoading, queryId, data = {} } = result;
|
74
|
+
const { preparedPlan, simplifiedPlan, stats, resultSets, ast } = data;
|
75
|
+
React.useEffect(() => {
|
76
|
+
if (resultType === 'execute' && !EXECUTE_SECTIONS.includes(activeSection)) {
|
77
|
+
setActiveSection('result');
|
78
|
+
}
|
79
|
+
if (resultType === 'explain' && !EXPLAIN_SECTIONS.includes(activeSection)) {
|
80
|
+
setActiveSection('schema');
|
81
|
+
}
|
82
|
+
}, [activeSection, resultType]);
|
83
|
+
const radioButtonOptions = React.useMemo(() => {
|
84
|
+
let sections = [];
|
85
|
+
if (isExecute) {
|
86
|
+
sections = EXECUTE_SECTIONS;
|
87
|
+
}
|
88
|
+
else if (isExplain) {
|
89
|
+
sections = EXPLAIN_SECTIONS;
|
90
|
+
}
|
91
|
+
return sections.map((section) => {
|
92
|
+
return {
|
93
|
+
value: section,
|
94
|
+
content: RESULT_OPTIONS_TITLES[section],
|
95
|
+
};
|
96
|
+
});
|
97
|
+
}, [isExecute, isExplain]);
|
98
|
+
React.useEffect(() => {
|
99
|
+
return () => {
|
100
|
+
dispatch(disableFullscreen());
|
101
|
+
};
|
102
|
+
}, [dispatch]);
|
103
|
+
const onSelectSection = (value) => {
|
104
|
+
setActiveSection(value);
|
105
|
+
};
|
106
|
+
const getStatsToCopy = () => {
|
107
|
+
var _a;
|
108
|
+
switch (activeSection) {
|
109
|
+
case RESULT_OPTIONS_IDS.result: {
|
110
|
+
const currentResult = (_a = data === null || data === void 0 ? void 0 : data.resultSets) === null || _a === void 0 ? void 0 : _a[selectedResultSet];
|
111
|
+
const textResults = getPreparedResult(currentResult === null || currentResult === void 0 ? void 0 : currentResult.result);
|
112
|
+
return textResults;
|
113
|
+
}
|
114
|
+
case RESULT_OPTIONS_IDS.json: {
|
115
|
+
return preparedPlan === null || preparedPlan === void 0 ? void 0 : preparedPlan.pristine;
|
116
|
+
}
|
117
|
+
case RESULT_OPTIONS_IDS.simplified:
|
118
|
+
return simplifiedPlan === null || simplifiedPlan === void 0 ? void 0 : simplifiedPlan.pristine;
|
119
|
+
case RESULT_OPTIONS_IDS.stats:
|
120
|
+
return stats;
|
121
|
+
case RESULT_OPTIONS_IDS.ast:
|
122
|
+
return ast;
|
123
|
+
default:
|
124
|
+
return undefined;
|
125
|
+
}
|
126
|
+
};
|
127
|
+
const renderClipboardButton = () => {
|
128
|
+
const statsToCopy = getStatsToCopy();
|
129
|
+
const copyText = getStringifiedData(statsToCopy);
|
130
|
+
if (!copyText) {
|
131
|
+
return null;
|
132
|
+
}
|
133
|
+
return (_jsx(ClipboardButton, { text: copyText, view: "flat-secondary", title: i18n('action.copy', { activeSection }) }));
|
134
|
+
};
|
135
|
+
const renderStubMessage = () => {
|
136
|
+
return (_jsx(StubMessage, { message: i18n('description.empty-result', {
|
137
|
+
activeSection: RESULT_OPTIONS_TITLES[activeSection],
|
138
|
+
}) }));
|
139
|
+
};
|
140
|
+
const renderResultSection = () => {
|
141
|
+
var _a, _b;
|
142
|
+
if (error) {
|
143
|
+
return _jsx(QueryResultError, { error: error });
|
144
|
+
}
|
145
|
+
if (activeSection === RESULT_OPTIONS_IDS.result) {
|
146
|
+
return (_jsx(ResultSetsViewer, { resultSets: resultSets, selectedResultSet: selectedResultSet, setSelectedResultSet: setSelectedResultSet }));
|
147
|
+
}
|
148
|
+
if (activeSection === RESULT_OPTIONS_IDS.schema) {
|
149
|
+
if (!((_a = preparedPlan === null || preparedPlan === void 0 ? void 0 : preparedPlan.nodes) === null || _a === void 0 ? void 0 : _a.length)) {
|
150
|
+
return renderStubMessage();
|
151
|
+
}
|
152
|
+
return _jsx(Graph, { theme: theme, explain: preparedPlan });
|
153
|
+
}
|
154
|
+
if (activeSection === RESULT_OPTIONS_IDS.json) {
|
155
|
+
if (!(preparedPlan === null || preparedPlan === void 0 ? void 0 : preparedPlan.pristine)) {
|
156
|
+
return renderStubMessage();
|
157
|
+
}
|
158
|
+
return _jsx(QueryJSONViewer, { data: preparedPlan === null || preparedPlan === void 0 ? void 0 : preparedPlan.pristine });
|
159
|
+
}
|
160
|
+
if (activeSection === RESULT_OPTIONS_IDS.simplified) {
|
161
|
+
if (!((_b = simplifiedPlan === null || simplifiedPlan === void 0 ? void 0 : simplifiedPlan.plan) === null || _b === void 0 ? void 0 : _b.length)) {
|
162
|
+
return renderStubMessage();
|
163
|
+
}
|
164
|
+
return _jsx(SimplifiedPlan, { plan: simplifiedPlan.plan });
|
165
|
+
}
|
166
|
+
if (activeSection === RESULT_OPTIONS_IDS.stats) {
|
167
|
+
if (!stats) {
|
168
|
+
return renderStubMessage();
|
169
|
+
}
|
170
|
+
return _jsx(QueryJSONViewer, { data: stats });
|
171
|
+
}
|
172
|
+
if (activeSection === RESULT_OPTIONS_IDS.ast) {
|
173
|
+
if (!ast) {
|
174
|
+
return renderStubMessage();
|
175
|
+
}
|
176
|
+
return _jsx(Ast, { ast: ast, theme: theme });
|
177
|
+
}
|
178
|
+
return null;
|
179
|
+
};
|
180
|
+
const renderLeftControls = () => {
|
181
|
+
return (_jsxs("div", { className: b('controls-left'), children: [_jsx(QueryExecutionStatus, { error: error, loading: isLoading }), !error && !isLoading && (_jsxs(React.Fragment, { children: [valueIsDefined(stats === null || stats === void 0 ? void 0 : stats.DurationUs) ? (_jsx(QueryDuration, { duration: Number(stats.DurationUs) })) : null, radioButtonOptions.length && activeSection ? (_jsxs(React.Fragment, { children: [_jsx(Divider, {}), _jsx(RadioButton, { options: radioButtonOptions, value: activeSection, onUpdate: onSelectSection })] })) : null] })), isLoading ? (_jsxs(React.Fragment, { children: [_jsx(ElapsedTime, { className: b('elapsed-time') }), _jsx(CancelQueryButton, { queryId: queryId, tenantName: tenantName })] })) : null, (data === null || data === void 0 ? void 0 : data.traceId) && isExecute ? (_jsx(TraceButton, { traceId: data.traceId, isTraceReady: result.isTraceReady })) : null, (data === null || data === void 0 ? void 0 : data.plan) && useShowPlanToSvg && isExecute ? (_jsx(PlanToSvgButton, { plan: data === null || data === void 0 ? void 0 : data.plan, database: tenantName })) : null] }));
|
182
|
+
};
|
183
|
+
const renderRightControls = () => {
|
184
|
+
return (_jsxs("div", { className: b('controls-right'), children: [renderClipboardButton(), _jsx(EnableFullscreenButton, {}), _jsx(PaneVisibilityToggleButtons, { onCollapse: onCollapseResults, onExpand: onExpandResults, isCollapsed: isResultsCollapsed, initialDirection: "bottom" })] }));
|
185
|
+
};
|
186
|
+
return (_jsxs(React.Fragment, { children: [_jsxs("div", { className: b('controls'), children: [renderLeftControls(), renderRightControls()] }), isLoading || isQueryCancelledError(error) ? null : _jsx(QuerySettingsBanner, {}), _jsx(LoaderWrapper, { loading: isLoading, children: _jsx(Fullscreen, { className: b('result'), children: renderResultSection() }) })] }));
|
187
|
+
}
|
188
|
+
//# sourceMappingURL=QueryResultViewer.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryResultViewer.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/QueryResult/QueryResultViewer.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,eAAe,EAAE,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAE/D,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,WAAW,MAAM,gDAAgD,CAAC;AACzE,OAAO,sBAAsB,MAAM,sEAAsE,CAAC;AAC1G,OAAO,UAAU,MAAM,8CAA8C,CAAC;AACtE,OAAO,EAAC,aAAa,EAAC,MAAM,oDAAoD,CAAC;AACjF,OAAO,EAAC,oBAAoB,EAAC,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAAC,iBAAiB,EAAC,MAAM,uCAAuC,CAAC;AAIxE,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAC,EAAE,EAAC,MAAM,sBAAsB,CAAC;AACxC,OAAO,EAAC,qBAAqB,EAAC,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAC,kBAAkB,EAAC,MAAM,iDAAiD,CAAC;AACnF,OAAO,EAAC,UAAU,EAAE,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAC,2BAA2B,EAAC,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAC,iBAAiB,EAAC,MAAM,wCA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AmB,EAAE,IACpB,EACL,SAAS,IAAI,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAC,mBAAmB,KAAG,EAC3E,KAAC,aAAa,IAAC,OAAO,EAAE,SAAS,YAC7B,KAAC,UAAU,IAAC,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,YAAG,mBAAmB,EAAE,GAAc,GAC5D,IACH,CACpB,CAAC;AACN,CAAC"}
|
@@ -1,16 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
.ydb-query-explain-result {
|
4
|
-
&__result {
|
5
|
-
display: flex;
|
6
|
-
overflow: auto;
|
7
|
-
flex-grow: 1;
|
8
|
-
flex-direction: column;
|
9
|
-
}
|
10
|
-
&__text-message {
|
11
|
-
padding: 15px 20px;
|
12
|
-
}
|
13
|
-
|
1
|
+
.ydb-query-result {
|
14
2
|
&__controls {
|
15
3
|
position: sticky;
|
16
4
|
z-index: 2;
|
@@ -27,7 +15,7 @@
|
|
27
15
|
background-color: var(--g-color-base-background);
|
28
16
|
}
|
29
17
|
|
30
|
-
&__controls-
|
18
|
+
&__controls-left {
|
31
19
|
display: flex;
|
32
20
|
align-items: center;
|
33
21
|
gap: 12px;
|
@@ -35,7 +23,7 @@
|
|
35
23
|
height: 100%;
|
36
24
|
}
|
37
25
|
|
38
|
-
&__controls-
|
26
|
+
&__controls-right {
|
39
27
|
display: flex;
|
40
28
|
gap: 4px;
|
41
29
|
}
|
@@ -3,7 +3,7 @@ import MonacoEditor from 'react-monaco-editor';
|
|
3
3
|
import { cn } from '../../../../../../utils/cn';
|
4
4
|
import { S_EXPRESSION_LANGUAGE_ID } from '../../../../../../utils/monaco/constats';
|
5
5
|
import './Ast.scss';
|
6
|
-
const b = cn('ydb-query-
|
6
|
+
const b = cn('ydb-query-ast');
|
7
7
|
const EDITOR_OPTIONS = {
|
8
8
|
automaticLayout: true,
|
9
9
|
selectOnLineNumbers: true,
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Ast.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/QueryResult/components/Ast/Ast.tsx"],"names":[],"mappings":";AAAA,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAE/C,OAAO,EAAC,EAAE,EAAC,MAAM,4BAA4B,CAAC;AAC9C,OAAO,EAAC,wBAAwB,EAAC,MAAM,yCAAyC,CAAC;AAEjF,OAAO,YAAY,CAAC;AAEpB,MAAM,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,CAAC;AAE9B,MAAM,cAAc,GAAG;IACnB,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACL,OAAO,EAAE,KAAK;KACjB;IACD,cAAc,EAAE,QAAiB;CACpC,CAAC;AAOF,MAAM,UAAU,GAAG,CAAC,EAAC,GAAG,EAAE,KAAK,EAAW;IACtC,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,EAAE,YACf,KAAC,YAAY,IACT,QAAQ,EAAE,wBAAwB,EAClC,KAAK,EAAE,GAAG,EACV,OAAO,EAAE,cAAc,EACvB,KAAK,EAAE,MAAM,KAAK,EAAE,GACtB,GACA,CACT,CAAC;AACN,CAAC"}
|
package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/Graph/Graph.d.ts
RENAMED
@@ -1,8 +1,8 @@
|
|
1
1
|
import type { PreparedPlan } from '../../../../../../store/reducers/query/types';
|
2
2
|
import './Graph.scss';
|
3
3
|
interface GraphProps {
|
4
|
-
explain
|
5
|
-
theme
|
4
|
+
explain?: PreparedPlan;
|
5
|
+
theme?: string;
|
6
6
|
}
|
7
7
|
export declare function Graph({ explain, theme }: GraphProps): import("react/jsx-runtime").JSX.Element;
|
8
8
|
export {};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { YDBGraph } from '../../../../../../components/Graph/Graph';
|
3
|
+
import { cn } from '../../../../../../utils/cn';
|
4
|
+
import i18n from '../../i18n';
|
5
|
+
import { StubMessage } from '../Stub/Stub';
|
6
|
+
import './Graph.scss';
|
7
|
+
const b = cn('ydb-query-explain-graph');
|
8
|
+
export function Graph({ explain = {}, theme }) {
|
9
|
+
const { links, nodes } = explain;
|
10
|
+
const isEnoughDataForGraph = links && nodes && nodes.length;
|
11
|
+
if (!isEnoughDataForGraph) {
|
12
|
+
return _jsx(StubMessage, { message: i18n('description.graph-is-not-supported') });
|
13
|
+
}
|
14
|
+
return (_jsx("div", { className: b('canvas-container'), children: _jsx(YDBGraph, { data: { links, nodes } }, theme) }));
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=Graph.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Graph.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/QueryResult/components/Graph/Graph.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,0CAA0C,CAAC;AAElE,OAAO,EAAC,EAAE,EAAC,MAAM,4BAA4B,CAAC;AAC9C,OAAO,IAAI,MAAM,YAAY,CAAC;AAC9B,OAAO,EAAC,WAAW,EAAC,MAAM,cAAc,CAAC;AAEzC,OAAO,cAAc,CAAC;AAEtB,MAAM,CAAC,GAAG,EAAE,CAAC,yBAAyB,CAAC,CAAC;AAOxC,MAAM,UAAU,KAAK,CAAC,EAAC,OAAO,GAAG,EAAE,EAAE,KAAK,EAAa;IACnD,MAAM,EAAC,KAAK,EAAE,KAAK,EAAC,GAAG,OAAO,CAAC;IAE/B,MAAM,oBAAoB,GAAG,KAAK,IAAI,KAAK,IAAI,KAAK,CAAC,MAAM,CAAC;IAE5D,IAAI,CAAC,oBAAoB,EAAE,CAAC;QACxB,OAAO,KAAC,WAAW,IAAC,OAAO,EAAE,IAAI,CAAC,oCAAoC,CAAC,GAAI,CAAC;IAChF,CAAC;IAED,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,kBAAkB,CAAC,YACjC,KAAC,QAAQ,IAAa,IAAI,EAAE,EAAC,KAAK,EAAE,KAAK,EAAC,IAA3B,KAAK,CAA0B,GAC5C,CACT,CAAC;AACN,CAAC"}
|
@@ -2,8 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
3
3
|
import { ArrowUpRightFromSquare } from '@gravity-ui/icons';
|
4
4
|
import { Button, Tooltip } from '@gravity-ui/uikit';
|
5
|
-
import { planToSvgApi } from '
|
6
|
-
import i18n from '
|
5
|
+
import { planToSvgApi } from '../../../../../../store/reducers/planToSvg';
|
6
|
+
import i18n from '../../i18n';
|
7
7
|
function getButtonView(error, isLoading) {
|
8
8
|
if (error) {
|
9
9
|
return 'flat-danger';
|
package/dist/containers/Tenant/Query/QueryResult/components/PlanToSvgButton/PlanToSvgButton.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"PlanToSvgButton.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/QueryResult/components/PlanToSvgButton/PlanToSvgButton.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAC,MAAM,EAAE,OAAO,EAAC,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAAC,YAAY,EAAC,MAAM,4CAA4C,CAAC;AAExE,OAAO,IAAI,MAAM,YAAY,CAAC;AAE9B,SAAS,aAAa,CAAC,KAAoB,EAAE,SAAkB;IAC3D,IAAI,KAAK,EAAE,CAAC;QACR,OAAO,aAAa,CAAC;IACzB,CAAC;IACD,OAAO,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,WAAW,CAAC;AACtD,CAAC;AAOD,MAAM,UAAU,eAAe,CAAC,EAAC,IAAI,EAAE,QAAQ,EAAuB;IAClE,MAAM,CAAC,KAAK,EAA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AAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAC,KAAK,EAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,YAElF,MAAC,MAAM,IACH,IAAI,EAAE,aAAa,CAAC,KAAK,EAAE,SAAS,CAAC,EACrC,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,SAAS,aAElB,IAAI,CAAC,eAAe,CAAC,EACtB,KAAC,MAAM,CAAC,IAAI,cACR,KAAC,sBAAsB,KAAG,GAChB,IACT,GACH,CACb,CAAC;AACN,CAAC"}
|
package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.d.ts
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
import './QueryJSONViewer.scss';
|
2
|
+
import 'react-json-inspector/json-inspector.css';
|
3
|
+
interface QueryJSONViewerProps {
|
4
|
+
data?: object;
|
5
|
+
}
|
6
|
+
export declare function QueryJSONViewer({ data }: QueryJSONViewerProps): import("react/jsx-runtime").JSX.Element;
|
7
|
+
export {};
|
package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.js
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import JSONTree from 'react-json-inspector';
|
3
|
+
import { cn } from '../../../../../../utils/cn';
|
4
|
+
import './QueryJSONViewer.scss';
|
5
|
+
import 'react-json-inspector/json-inspector.css';
|
6
|
+
const b = cn('ydb-query-json-viewer');
|
7
|
+
export function QueryJSONViewer({ data }) {
|
8
|
+
return (_jsx(JSONTree, { data: data, isExpanded: () => true, className: b('inspector'), searchOptions: {
|
9
|
+
debounceTime: 300,
|
10
|
+
} }));
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=QueryJSONViewer.js.map
|
package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryJSONViewer.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.tsx"],"names":[],"mappings":";AAAA,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAE5C,OAAO,EAAC,EAAE,EAAC,MAAM,4BAA4B,CAAC;AAE9C,OAAO,wBAAwB,CAAC;AAChC,OAAO,yCAAyC,CAAC;AAEjD,MAAM,CAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC,CAAC;AAMtC,MAAM,UAAU,eAAe,CAAC,EAAC,IAAI,EAAuB;IACxD,OAAO,CACH,KAAC,QAAQ,IACL,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI,EACtB,SAAS,EAAE,CAAC,CAAC,WAAW,CAAC,EACzB,aAAa,EAAE;YACX,YAAY,EAAE,GAAG;SACpB,GACH,CACL,CAAC;AACN,CAAC"}
|
@@ -1,14 +1,12 @@
|
|
1
1
|
@import '../../../../../../styles/mixins.scss';
|
2
2
|
|
3
|
-
.ydb-query-
|
3
|
+
.ydb-query-json-viewer {
|
4
4
|
&__inspector {
|
5
5
|
overflow-y: auto;
|
6
6
|
|
7
|
-
|
7
|
+
width: 100%;
|
8
|
+
height: 100%;
|
9
|
+
padding: 15px 10px;
|
8
10
|
@include json-tree-styles();
|
9
|
-
|
10
|
-
&_fullscreen {
|
11
|
-
padding: 10px;
|
12
|
-
}
|
13
11
|
}
|
14
12
|
}
|
package/dist/containers/Tenant/Query/QueryResult/components/QueryResultError/QueryResultError.js
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { cn } from '../../../../../../utils/cn';
|
3
|
+
import { parseQueryError } from '../../../../../../utils/query';
|
4
|
+
import { ResultIssues } from '../../../Issues/Issues';
|
5
|
+
import { isQueryCancelledError } from '../../../utils/isQueryCancelledError';
|
6
|
+
import './QueryResultError.scss';
|
7
|
+
const b = cn('ydb-query-result-error ');
|
8
|
+
export function QueryResultError({ error }) {
|
9
|
+
const parsedError = parseQueryError(error);
|
10
|
+
// "Stopped" message is displayd in QueryExecutionStatus
|
11
|
+
// There is no need to display "Query is cancelled" message too
|
12
|
+
if (!parsedError || isQueryCancelledError(error)) {
|
13
|
+
return null;
|
14
|
+
}
|
15
|
+
if (typeof parsedError === 'object') {
|
16
|
+
return _jsx(ResultIssues, { data: parsedError });
|
17
|
+
}
|
18
|
+
return _jsx("div", { className: b('message'), children: parsedError });
|
19
|
+
}
|
20
|
+
//# sourceMappingURL=QueryResultError.js.map
|
package/dist/containers/Tenant/Query/QueryResult/components/QueryResultError/QueryResultError.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryResultError.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/QueryResult/components/QueryResultError/QueryResultError.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,EAAE,EAAC,MAAM,4BAA4B,CAAC;AAC9C,OAAO,EAAC,eAAe,EAAC,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAC,YAAY,EAAC,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAC,qBAAqB,EAAC,MAAM,sCAAsC,CAAC;AAE3E,OAAO,yBAAyB,CAAC;AAEjC,MAAM,CAAC,GAAG,EAAE,CAAC,yBAAyB,CAAC,CAAC;AAExC,MAAM,UAAU,gBAAgB,CAAC,EAAC,KAAK,EAAmB;IACtD,MAAM,WAAW,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;IAE3C,wDAAwD;IACxD,+DAA+D;IAC/D,IAAI,CAAC,WAAW,IAAI,qBAAqB,CAAC,KAAK,CAAC,EAAE,CAAC;QAC/C,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE,CAAC;QAClC,OAAO,KAAC,YAAY,IAAC,IAAI,EAAE,WAAW,GAAI,CAAC;IAC/C,CAAC;IAED,OAAO,cAAK,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,YAAG,WAAW,GAAO,CAAC;AAC7D,CAAC"}
|
package/dist/containers/Tenant/Query/QueryResult/components/ResultSetsViewer/ResultSetsViewer.d.ts
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
import type { ParsedResultSet } from '../../../../../../types/store/query';
|
2
|
+
import './ResultSetsViewer.scss';
|
3
|
+
interface ResultSetsViewerProps {
|
4
|
+
resultSets?: ParsedResultSet[];
|
5
|
+
selectedResultSet: number;
|
6
|
+
setSelectedResultSet: (resultSet: number) => void;
|
7
|
+
}
|
8
|
+
export declare function ResultSetsViewer({ resultSets, selectedResultSet, setSelectedResultSet, }: ResultSetsViewerProps): import("react/jsx-runtime").JSX.Element;
|
9
|
+
export {};
|
package/dist/containers/Tenant/Query/QueryResult/components/ResultSetsViewer/ResultSetsViewer.js
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { Tabs, Text } from '@gravity-ui/uikit';
|
3
|
+
import { QueryResultTable } from '../../../../../../components/QueryResultTable';
|
4
|
+
import { getArray } from '../../../../../../utils';
|
5
|
+
import { cn } from '../../../../../../utils/cn';
|
6
|
+
import i18n from '../../i18n';
|
7
|
+
import './ResultSetsViewer.scss';
|
8
|
+
const b = cn('ydb-query-result-sets-viewer');
|
9
|
+
export function ResultSetsViewer({ resultSets, selectedResultSet, setSelectedResultSet, }) {
|
10
|
+
const resultsSetsCount = (resultSets === null || resultSets === void 0 ? void 0 : resultSets.length) || 0;
|
11
|
+
const currentResult = resultSets === null || resultSets === void 0 ? void 0 : resultSets[selectedResultSet];
|
12
|
+
const renderTabs = () => {
|
13
|
+
if (resultsSetsCount > 1) {
|
14
|
+
const tabsItems = getArray(resultsSetsCount).map((item) => {
|
15
|
+
var _a;
|
16
|
+
return ({
|
17
|
+
id: String(item),
|
18
|
+
title: `Result #${item + 1}${((_a = resultSets === null || resultSets === void 0 ? void 0 : resultSets[item]) === null || _a === void 0 ? void 0 : _a.truncated) ? ' (T)' : ''}`,
|
19
|
+
});
|
20
|
+
});
|
21
|
+
return (_jsx("div", { children: _jsx(Tabs, { className: b('tabs'), size: "l", items: tabsItems, activeTab: String(selectedResultSet), onSelectTab: (tabId) => setSelectedResultSet(Number(tabId)) }) }));
|
22
|
+
}
|
23
|
+
return null;
|
24
|
+
};
|
25
|
+
const renderResultHeadWithCount = () => {
|
26
|
+
return (_jsxs("div", { className: b('head'), children: [_jsx(Text, { variant: "subheader-3", children: (currentResult === null || currentResult === void 0 ? void 0 : currentResult.truncated) ? i18n('title.truncated') : i18n('title.result') }), (currentResult === null || currentResult === void 0 ? void 0 : currentResult.result) ? (_jsx(Text, { color: "secondary", variant: "body-2", className: b('row-count'), children: `(${currentResult === null || currentResult === void 0 ? void 0 : currentResult.result.length})` })) : null] }));
|
27
|
+
};
|
28
|
+
return (_jsxs("div", { className: b('result-wrapper'), children: [renderTabs(), currentResult ? (_jsxs("div", { className: b('result'), children: [renderResultHeadWithCount(), _jsx(QueryResultTable, { data: currentResult.result, columns: currentResult.columns })] })) : null] }));
|
29
|
+
}
|
30
|
+
//# sourceMappingURL=ResultSetsViewer.js.map
|
package/dist/containers/Tenant/Query/QueryResult/components/ResultSetsViewer/ResultSetsViewer.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ResultSetsViewer.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/QueryResult/components/ResultSetsViewer/ResultSetsViewer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAC,gBAAgB,EAAC,MAAM,+CAA+C,CAAC;AAE/E,OAAO,EAAC,QAAQ,EAAC,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAC,EAAE,EAAC,MAAM,4BAA4B,CAAC;AAC9C,OAAO,IAAI,MAAM,YA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M,CAAC,aACrB,KAAC,IAAI,IAAC,OAAO,EAAC,aAAa,YACtB,CAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,SAAS,EAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,GACvE,EACN,CAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,MAAM,EAAC,CAAC,CAAC,CACrB,KAAC,IAAI,IACD,KAAK,EAAC,WAAW,EACjB,OAAO,EAAC,QAAQ,EAChB,SAAS,EAAE,CAAC,CAAC,WAAW,CAAC,YAC3B,IAAI,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,MAAM,CAAC,MAAM,GAAG,GAAQ,CAChD,CAAC,CAAC,CAAC,IAAI,IACN,CACT,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,CAAC,gBAAgB,CAAC,aAC9B,UAAU,EAAE,EACZ,aAAa,CAAC,CAAC,CAAC,CACb,eAAK,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,aACtB,yBAAyB,EAAE,EAC5B,KAAC,gBAAgB,IAAC,IAAI,EAAE,aAAa,CAAC,MAAM,EAAE,OAAO,EAAE,aAAa,CAAC,OAAO,GAAI,IAC9E,CACT,CAAC,CAAC,CAAC,IAAI,IACN,CACT,CAAC;AACN,CAAC"}
|
package/dist/containers/Tenant/Query/QueryResult/components/ResultSetsViewer/ResultSetsViewer.scss
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
@import '../../../../../../styles/mixins.scss';
|
2
|
+
|
3
|
+
.ydb-query-result-sets-viewer {
|
4
|
+
&__tabs {
|
5
|
+
padding-left: 10px;
|
6
|
+
}
|
7
|
+
|
8
|
+
&__head {
|
9
|
+
margin-top: var(--g-spacing-4);
|
10
|
+
}
|
11
|
+
|
12
|
+
&__row-count {
|
13
|
+
margin-left: var(--g-spacing-1);
|
14
|
+
}
|
15
|
+
|
16
|
+
&__result-wrapper {
|
17
|
+
display: flex;
|
18
|
+
flex-direction: column;
|
19
|
+
|
20
|
+
width: 100%;
|
21
|
+
}
|
22
|
+
|
23
|
+
&__result {
|
24
|
+
display: flex;
|
25
|
+
overflow: auto;
|
26
|
+
flex-grow: 1;
|
27
|
+
flex-direction: column;
|
28
|
+
|
29
|
+
padding-left: 10px;
|
30
|
+
|
31
|
+
@include query-data-table();
|
32
|
+
& .data-table__table-wrapper {
|
33
|
+
padding-bottom: 0;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"MetricsCell.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/MetricsCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,+BAA+B,CAAC;AAExD,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAO9B,MAAM,UAAU,WAAW,CAAC,EAAC,KAAK,EAAE,SAAS,EAAmB;IAC5D,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;QACpB,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAClC,MAAM,OAAO,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC;IAEvC,OAAO,cAAK,SAAS,EAAE,KAAK,CAAC,cAAc,CAAC,YAAG,OAAO,GAAO,CAAC;AAClE,CAAC"}
|
package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/OperationCell.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"OperationCell.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/OperationCell.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAC,M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C,GAAG,EAAE,CAAC,EAAE,UAAU,EAAC,YAAY,EAAC,SAAS,EAAE,KAAK,CAAC,mBAAmB,CAAC,aACtE,GAAG,CAAC,YAAY,EAAE,IAAI,CACnB,KAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,IAAI,EAAC,OAAO,EAAE,GAAG,CAAC,wBAAwB,EAAE,YACjE,KAAC,MAAM,CAAC,IAAI,cACR,KAAC,WAAW,IACR,SAAS,EAAE,GAAG,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EACnD,IAAI,EAAE,EAAE,GACV,GACQ,GACT,CACZ,EACD,cAAK,SAAS,EAAE,KAAK,CAAC,wBAAwB,CAAC,YAE3C,0BACK,IAAI,YACL,KAAC,eAAe,IAAC,MAAM,EAAE,eAAe,GAAI,IAC1C,GACJ,IACH,IACL,CACT,CAAC;AACN,CAAC"}
|
package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/OperationParams.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"OperationParams.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/OperationParams.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,kBAAkB,EAAC,MAAM,uDAAuD,CAAC;AAEzF,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAE9B,MAAM,uBAAuB,GAA2B;IACpD,KAAK,EAAE,0BAA0B;IACjC,SAAS,EAAE,8BAA8B;IACzC,SAAS,EAAE,6BAA6B;CAC3C,CAAC;AAEF,SAAS,wBAAwB,CAAC,QAAgB;IAC9C,IAAI,QAAQ,IAAI,uBAAuB,EAAE,CAAC;QACtC,OAAO,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IAC7C,CAAC;IACD,OAAO,+BAA+B,CAAC;AAC3C,CAAC;AAED,SAAS,oBAAoB,CAAC,MAA+B;IACzD,MAAM,SAAS,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AAE,CAAC;YACrD,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,sBAAsB,CAAC,CAAC,CAAC,CAAC;YAC/C,MAAM,KAAK,GAAG,wBAAwB,CAAC,GAAG,CAAC,CAAC;YAC5C,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;gBACR,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;YACD,MAAM,CAAC,IAAI,CACP,gBAAc,KAAK,EAAE,EAAC,KAAK,EAAC,aACvB,GAAG,QAAI,kBAAkB,CAAC,KAAK,CAAC,KAD1B,CAAC,CAEL,CACV,CAAC;QACN,CAAC;IACL,CAAC;IAED,OAAO,MAAM,CAAC;AAClB,CAAC;AAMD,MAAM,UAAU,eAAe,CAAC,EAAC,MAAM,EAAuB;IAC1D,IAAI,CAAC,MAAM,EAAE,CAAC;QACV,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO,gBAAM,SAAS,EAAE,KAAK,CAAC,kBAAkB,CAAC,kBAAI,kBAAkB,CAAC,MAAM,CAAC,SAAS,CAAC;AAC7F,CAAC"}
|
package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/SimplifiedPlan.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SimplifiedPlan.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/SimplifiedPlan.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,KAAK,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAIlD,OAAO,EAAC,iBAAiB,EAAC,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAC,UAAU,EAAC,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAC,aAAa,EAAC,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAC,aAA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AAC,IAAI,0CAAE,KAAK,CAAC;gBACjD,MAAM,aAAa,GAAG,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,CAAC,SAAS,CAAC,IAAI,0CAAE,aAAa,CAAC;gBACjE,OAAO,KAAK,CAAC,YAAY,EAAE,EAAC,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAC,CAAC,CAAC;YACzE,CAAC,EACD,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,YAAY,SACd,GACA,CACT,CAAC;AACN,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/types.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,EAAE,EAAC,MAAM,4BAA4B,CAAC;AAI9C,MAAM,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC,2BAA2B,CAAC,CAAC;AAErD,MAAM,UAAU,oBAAoB,CAChC,KAA4B,EAC5B,MAAM,GAAG,EAAE;IAEX,IAAI,CAAC,KAAK,EAAE,CAAC;QACT,OAAO,EAAE,CAAC;IACd,CAAC;IAED,MAAM,KAAK,GAKL,CAAC,EAAC,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAC,EAAE,WAAW,EAAE,EAAE,EAAC,CAAC,CAAC;IAE1D,MAAM,QAAQ,GAAiC,EAAE,CAAC;IAElD,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACtB,MAAM,EAAC,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAC,GAAG,KAAK,CAAC,GAAG,EAAG,CAAC;QAC/D,MAAM,UAAU,GAAiC,EAAE,CAAC;QAEpD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACpC,MAAM,OAAO,GAA+B,EAAC,GAAG,KAAK,CAAC,CAAC,CAAC,EAAC,CAAC;YAC1D,MAAM,IAAI,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC1C,IAAI,SAAS,GAAG,GAAG,MAAM,IAAI,IAAI,EAAE,CAAC;YAEpC,IAAI,CAAC,MAAM,EAAE,CAAC;gBACV,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;YAC7B,CAAC;YACD,OAAO,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC;YAE7B,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAEzB,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;gBACnB,KAAK,CAAC,IAAI,CAAC;oBACP,KAAK,EAAE,OAAO,CAAC,QAAQ;oBACvB,MAAM,EAAE,SAAS;oBACjB,WAAW,EAAE,CAAC;oBACd,WAAW,EAAE,UAAU;iBAC1B,CAAC,CAAC;YACP,CAAC;QACL,CAAC;QAED,IAAI,WAAW,KAAK,CAAC,CAAC,EAAE,CAAC;YACrB,QAAQ,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC;QACjC,CAAC;aAAM,CAAC;YACJ,WAAW,CAAC,WAAW,CAAC,CAAC,QAAQ,GAAG,UAAU,CAAC;QACnD,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC;AACpB,CAAC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { cn } from '../../../../../../utils/cn';
|
3
|
+
import './Stub.scss';
|
4
|
+
const b = cn('ydb-query-result-stub-message');
|
5
|
+
export function StubMessage({ message }) {
|
6
|
+
return _jsx("div", { className: b(null), children: message });
|
7
|
+
}
|
8
|
+
//# sourceMappingURL=Stub.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Stub.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/QueryResult/components/Stub/Stub.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,EAAE,EAAC,MAAM,4BAA4B,CAAC;AAE9C,OAAO,aAAa,CAAC;AAErB,MAAM,CAAC,GAAG,EAAE,CAAC,+BAA+B,CAAC,CAAC;AAM9C,MAAM,UAAU,WAAW,CAAC,EAAC,OAAO,EAAmB;IACnD,OAAO,cAAK,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,YAAG,OAAO,GAAO,CAAC;AACpD,CAAC"}
|