ydb-embedded-ui 6.34.0 → 6.36.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/AutoRefreshControl/AutoRefreshControl.js +1 -1
- package/dist/components/AutoRefreshControl/AutoRefreshControl.js.map +1 -1
- package/dist/components/MemoryViewer/MemoryViewer.d.ts +1 -3
- package/dist/components/MemoryViewer/MemoryViewer.js +3 -1
- package/dist/components/MemoryViewer/MemoryViewer.js.map +1 -1
- package/dist/components/NodeHostWrapper/NodeHostWrapper.d.ts +5 -3
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js +3 -2
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js.map +1 -1
- package/dist/components/PaginatedTable/PaginatedTable.js +9 -7
- package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
- package/dist/components/PaginatedTable/TableChunk.d.ts +4 -5
- package/dist/components/PaginatedTable/TableChunk.js +7 -1
- package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
- package/dist/components/nodesColumns/__test__/utils.test.d.ts +1 -0
- package/dist/components/nodesColumns/__test__/utils.test.js +28 -0
- package/dist/components/nodesColumns/__test__/utils.test.js.map +1 -0
- package/dist/components/nodesColumns/columns.d.ts +28 -2
- package/dist/components/nodesColumns/columns.js +83 -5
- package/dist/components/nodesColumns/columns.js.map +1 -1
- package/dist/components/nodesColumns/constants.d.ts +12 -0
- package/dist/components/nodesColumns/constants.js +36 -0
- package/dist/components/nodesColumns/constants.js.map +1 -1
- package/dist/components/nodesColumns/i18n/en.json +11 -1
- package/dist/components/nodesColumns/i18n/index.d.ts +1 -1
- package/dist/components/nodesColumns/utils.d.ts +2 -0
- package/dist/components/nodesColumns/utils.js +11 -0
- package/dist/components/nodesColumns/utils.js.map +1 -0
- package/dist/containers/Nodes/Nodes.js +2 -2
- package/dist/containers/Nodes/Nodes.js.map +1 -1
- package/dist/containers/Nodes/NodesControls/NodesControls.d.ts +3 -1
- package/dist/containers/Nodes/NodesControls/NodesControls.js +3 -3
- package/dist/containers/Nodes/NodesControls/NodesControls.js.map +1 -1
- package/dist/containers/Nodes/PaginatedNodes.d.ts +11 -3
- package/dist/containers/Nodes/PaginatedNodes.js +16 -19
- package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
- package/dist/containers/Nodes/columns/constants.d.ts +3 -2
- package/dist/containers/Nodes/columns/constants.js +8 -8
- package/dist/containers/Nodes/columns/constants.js.map +1 -1
- package/dist/containers/Nodes/useNodesPageQueryParams.d.ts +3 -2
- package/dist/containers/Nodes/useNodesPageQueryParams.js +2 -2
- package/dist/containers/Nodes/useNodesPageQueryParams.js.map +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/NetworkTable/columns.d.ts +4 -0
- package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/columns.js +23 -0
- package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/columns.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/constants.d.ts +5 -0
- package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/constants.js +23 -0
- package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/constants.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.d.ts +6 -0
- package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.js +26 -0
- package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.js +3 -2
- package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TenantMemory.d.ts +5 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TenantMemory.js +6 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TenantMemory.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.scss +5 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.js +1 -1
- package/dist/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.js.map +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.d.ts +2 -2
- package/dist/containers/Tenant/Query/ExecuteResult/utils.d.ts +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/utils.js +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/utils.js.map +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.d.ts +2 -2
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js.map +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/Graph/Graph.d.ts +2 -2
- package/dist/containers/Tenant/Query/ExplainResult/components/Graph/Graph.js +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/Graph/Graph.js.map +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.d.ts +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/types.d.ts +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.d.ts +1 -1
- package/dist/containers/Tenant/Query/NewSQL/NewSQL.js +3 -9
- package/dist/containers/Tenant/Query/NewSQL/NewSQL.js.map +1 -1
- package/dist/containers/Tenant/Query/NewSQL/i18n/en.json +1 -2
- package/dist/containers/Tenant/Query/NewSQL/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js +1 -1
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js.map +1 -1
- package/dist/containers/Tenant/Query/Query.js +1 -1
- package/dist/containers/Tenant/Query/Query.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +25 -12
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +5 -3
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.d.ts +1 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/en.json +1 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/ru.json +1 -0
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.d.ts +12 -3
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js +25 -10
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js.map +1 -1
- package/dist/containers/Tenant/utils/newSQLQueryActions.d.ts +0 -1
- package/dist/containers/Tenant/utils/newSQLQueryActions.js +0 -1
- package/dist/containers/Tenant/utils/newSQLQueryActions.js.map +1 -1
- package/dist/containers/Tenant/utils/schemaActions.js +5 -4
- package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
- package/dist/containers/Tenant/utils/schemaQueryTemplates.js +86 -53
- package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -1
- package/dist/containers/UserSettings/i18n/en.json +3 -2
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.d.ts +1 -0
- package/dist/containers/UserSettings/settings.js +6 -2
- package/dist/containers/UserSettings/settings.js.map +1 -1
- package/dist/containers/Versions/groupNodes.js +1 -1
- package/dist/containers/Versions/groupNodes.js.map +1 -1
- package/dist/services/api.js +1 -0
- package/dist/services/api.js.map +1 -1
- package/dist/services/settings.d.ts +1 -0
- package/dist/services/settings.js +2 -1
- package/dist/services/settings.js.map +1 -1
- package/dist/store/configureStore.d.ts +16 -8
- package/dist/store/configureStore.js +1 -1
- package/dist/store/configureStore.js.map +1 -1
- package/dist/store/defaultStore.d.ts +8 -4
- package/dist/store/reducers/cancelQuery.js +2 -2
- package/dist/store/reducers/cancelQuery.js.map +1 -1
- package/dist/store/reducers/capabilities/capabilities.d.ts +32 -16
- package/dist/store/reducers/capabilities/hooks.d.ts +1 -0
- package/dist/store/reducers/capabilities/hooks.js +3 -0
- package/dist/store/reducers/capabilities/hooks.js.map +1 -1
- package/dist/store/reducers/cluster/cluster.d.ts +24 -12
- package/dist/store/reducers/cluster/utils.js +2 -2
- package/dist/store/reducers/cluster/utils.js.map +1 -1
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js +3 -3
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js.map +1 -1
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +80 -40
- package/dist/store/reducers/index.d.ts +12 -6
- package/dist/store/reducers/index.js +2 -2
- package/dist/store/reducers/index.js.map +1 -1
- package/dist/store/reducers/node/selectors.d.ts +4 -2
- package/dist/store/reducers/nodes/types.d.ts +13 -0
- package/dist/store/reducers/nodes/utils.js +3 -3
- package/dist/store/reducers/nodes/utils.js.map +1 -1
- package/dist/store/reducers/nodesList.d.ts +4 -2
- package/dist/store/reducers/partitions/partitions.d.ts +4 -3
- package/dist/store/reducers/partitions/partitions.js +1 -3
- package/dist/store/reducers/partitions/partitions.js.map +1 -1
- package/dist/store/reducers/partitions/types.d.ts +0 -3
- package/dist/store/reducers/preview.js +2 -2
- package/dist/store/reducers/preview.js.map +1 -1
- package/dist/store/reducers/query/__test__/utils.test.d.ts +1 -0
- package/dist/store/reducers/query/__test__/utils.test.js +24 -0
- package/dist/store/reducers/query/__test__/utils.test.js.map +1 -0
- package/dist/store/reducers/query/prepareQueryData.d.ts +6 -0
- package/dist/store/reducers/{explainQuery/utils.js → query/prepareQueryData.js} +11 -10
- package/dist/store/reducers/query/prepareQueryData.js.map +1 -0
- package/dist/store/reducers/query/query.d.ts +55 -0
- package/dist/store/reducers/{executeQuery.js → query/query.js} +32 -45
- package/dist/store/reducers/query/query.js.map +1 -0
- package/dist/store/reducers/query/types.d.ts +57 -0
- package/dist/store/reducers/query/types.js.map +1 -0
- package/dist/store/reducers/query/utils.d.ts +7 -0
- package/dist/store/reducers/query/utils.js +21 -0
- package/dist/store/reducers/query/utils.js.map +1 -0
- package/dist/store/reducers/queryActions/queryActions.js +1 -1
- package/dist/store/reducers/queryActions/queryActions.js.map +1 -1
- package/dist/store/reducers/queryActions/types.d.ts +1 -1
- package/dist/store/reducers/shardsWorkload/shardsWorkload.js +2 -2
- package/dist/store/reducers/shardsWorkload/shardsWorkload.js.map +1 -1
- package/dist/store/reducers/tablets.d.ts +20 -10
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.js +2 -2
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.js.map +1 -1
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.js +2 -2
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.js.map +1 -1
- package/dist/store/reducers/tenants/selectors.d.ts +36 -18
- package/dist/store/reducers/topic.d.ts +60 -30
- package/dist/store/reducers/trace.js +1 -1
- package/dist/store/reducers/trace.js.map +1 -1
- package/dist/types/api/nodes.d.ts +56 -0
- package/dist/types/api/nodes.js.map +1 -1
- package/dist/types/api/tenant.d.ts +2 -1
- package/dist/types/api/tenant.js.map +1 -1
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/constants.js +1 -0
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/dataFormatters/dataFormatters.d.ts +1 -1
- package/dist/utils/dataFormatters/dataFormatters.js +12 -6
- package/dist/utils/dataFormatters/dataFormatters.js.map +1 -1
- package/dist/utils/hooks/useQueryExecutionSettings.d.ts +2 -8
- package/dist/utils/hooks/useQueryExecutionSettings.js +14 -3
- package/dist/utils/hooks/useQueryExecutionSettings.js.map +1 -1
- package/dist/utils/hooks/withConfirmation/useChangeInputWithConfirmation.js +13 -9
- package/dist/utils/hooks/withConfirmation/useChangeInputWithConfirmation.js.map +1 -1
- package/dist/utils/monaco/insertSnippet.d.ts +1 -0
- package/dist/utils/monaco/insertSnippet.js +8 -0
- package/dist/utils/monaco/insertSnippet.js.map +1 -0
- package/dist/utils/prepareQueryExplain.d.ts +1 -1
- package/dist/utils/query.d.ts +1 -2
- package/dist/utils/query.js +5 -10
- package/dist/utils/query.js.map +1 -1
- package/dist/utils/query.test.js +20 -34
- package/dist/utils/query.test.js.map +1 -1
- package/dist/utils/timeParsers/parsers.d.ts +1 -1
- package/dist/utils/timeParsers/parsers.js +3 -2
- package/dist/utils/timeParsers/parsers.js.map +1 -1
- package/package.json +2 -2
- package/dist/store/reducers/executeQuery.d.ts +0 -54
- package/dist/store/reducers/executeQuery.js.map +0 -1
- package/dist/store/reducers/explainQuery/explainQuery.d.ts +0 -10
- package/dist/store/reducers/explainQuery/explainQuery.js +0 -72
- package/dist/store/reducers/explainQuery/explainQuery.js.map +0 -1
- package/dist/store/reducers/explainQuery/types.d.ts +0 -28
- package/dist/store/reducers/explainQuery/types.js.map +0 -1
- package/dist/store/reducers/explainQuery/utils.d.ts +0 -6
- package/dist/store/reducers/explainQuery/utils.js.map +0 -1
- package/dist/types/store/executeQuery.d.ts +0 -42
- package/dist/types/store/executeQuery.js +0 -6
- package/dist/types/store/executeQuery.js.map +0 -1
- /package/dist/store/reducers/{explainQuery → query}/types.js +0 -0
@@ -1,16 +1,15 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import React from 'react';
|
3
|
+
import NiceModal from '@ebay/nice-modal-react';
|
3
4
|
import { isEqual } from 'lodash';
|
4
5
|
import throttle from 'lodash/throttle';
|
5
6
|
import { v4 as uuidv4 } from 'uuid';
|
6
7
|
import { MonacoEditor } from '../../../../components/MonacoEditor/MonacoEditor';
|
7
8
|
import SplitPane from '../../../../components/SplitPane';
|
8
9
|
import { useTracingLevelOptionAvailable } from '../../../../store/reducers/capabilities/hooks';
|
9
|
-
import {
|
10
|
-
import { explainQueryApi } from '../../../../store/reducers/explainQuery/explainQuery';
|
10
|
+
import { goToNextQuery, goToPreviousQuery, queryApi, saveQueryToHistory, selectQueriesHistory, selectQueriesHistoryCurrentIndex, selectResult, selectTenantPath, selectUserInput, setTenantPath, } from '../../../../store/reducers/query/query';
|
11
11
|
import { setQueryAction } from '../../../../store/reducers/queryActions/queryActions';
|
12
12
|
import { selectShowPreview, setShowPreview } from '../../../../store/reducers/schema/schema';
|
13
|
-
import { ResultType } from '../../../../types/store/executeQuery';
|
14
13
|
import { cn } from '../../../../utils/cn';
|
15
14
|
import { DEFAULT_IS_QUERY_RESULT_COLLAPSED, DEFAULT_SIZE_RESULT_PANE_KEY, LAST_USED_QUERY_ACTION_KEY, } from '../../../../utils/constants';
|
16
15
|
import { useEventHandler, useQueryExecutionSettings, useSetting, useTypedDispatch, useTypedSelector, } from '../../../../utils/hooks';
|
@@ -24,7 +23,7 @@ import { ExplainResult } from '../ExplainResult/ExplainResult';
|
|
24
23
|
import { Preview } from '../Preview/Preview';
|
25
24
|
import { QueryEditorControls } from '../QueryEditorControls/QueryEditorControls';
|
26
25
|
import { QuerySettingsDialog } from '../QuerySettingsDialog/QuerySettingsDialog';
|
27
|
-
import {
|
26
|
+
import { SAVE_QUERY_DIALOG } from '../SaveQuery/SaveQuery';
|
28
27
|
import i18n from '../i18n';
|
29
28
|
import { useEditorOptions } from './helpers';
|
30
29
|
import { getKeyBindings } from './keybindings';
|
@@ -52,8 +51,7 @@ export default function QueryEditor(props) {
|
|
52
51
|
const [lastQueryExecutionSettings, setLastQueryExecutionSettings] = useLastQueryExecutionSettings();
|
53
52
|
const { resetBanner } = useChangedQuerySettings();
|
54
53
|
const [lastUsedQueryAction, setLastUsedQueryAction] = useSetting(LAST_USED_QUERY_ACTION_KEY);
|
55
|
-
const [
|
56
|
-
const [sendExplainQuery] = explainQueryApi.useExplainQueryMutation();
|
54
|
+
const [sendQuery] = queryApi.useUseSendQueryMutation();
|
57
55
|
React.useEffect(() => {
|
58
56
|
if (savedPath !== tenantName) {
|
59
57
|
dispatch(setTenantPath(tenantName));
|
@@ -86,7 +84,8 @@ export default function QueryEditor(props) {
|
|
86
84
|
setLastQueryExecutionSettings(querySettings);
|
87
85
|
}
|
88
86
|
const queryId = uuidv4();
|
89
|
-
|
87
|
+
sendQuery({
|
88
|
+
actionType: 'execute',
|
90
89
|
query,
|
91
90
|
database: tenantName,
|
92
91
|
querySettings,
|
@@ -112,7 +111,8 @@ export default function QueryEditor(props) {
|
|
112
111
|
setLastQueryExecutionSettings(querySettings);
|
113
112
|
}
|
114
113
|
const queryId = uuidv4();
|
115
|
-
|
114
|
+
sendQuery({
|
115
|
+
actionType: 'explain',
|
116
116
|
query: input,
|
117
117
|
database: tenantName,
|
118
118
|
querySettings,
|
@@ -130,8 +130,21 @@ export default function QueryEditor(props) {
|
|
130
130
|
handleSendExecuteClick();
|
131
131
|
}
|
132
132
|
});
|
133
|
+
const editorWillUnmount = () => {
|
134
|
+
window.ydbEditor = undefined;
|
135
|
+
};
|
133
136
|
const editorDidMount = (editor, monaco) => {
|
137
|
+
window.ydbEditor = editor;
|
134
138
|
const keybindings = getKeyBindings(monaco);
|
139
|
+
monaco.editor.registerCommand('insertSnippetToEditor', (_asessor, input) => {
|
140
|
+
//suggestController is not properly typed yet in monaco-editor package
|
141
|
+
const contribution = editor.getContribution('snippetController2');
|
142
|
+
if (contribution) {
|
143
|
+
editor.focus();
|
144
|
+
editor.setValue('');
|
145
|
+
contribution.insert(input);
|
146
|
+
}
|
147
|
+
});
|
135
148
|
initResizeHandler(editor);
|
136
149
|
initUserPrompt(editor, getLastQueryText);
|
137
150
|
editor.focus();
|
@@ -202,7 +215,7 @@ export default function QueryEditor(props) {
|
|
202
215
|
label: i18n('action.save-query'),
|
203
216
|
keybindings: [keybindings.saveQuery],
|
204
217
|
run: () => {
|
205
|
-
|
218
|
+
NiceModal.show(SAVE_QUERY_DIALOG);
|
206
219
|
},
|
207
220
|
});
|
208
221
|
};
|
@@ -223,16 +236,16 @@ export default function QueryEditor(props) {
|
|
223
236
|
};
|
224
237
|
return (_jsxs("div", { className: b(), children: [_jsxs(SplitPane, { direction: "vertical", defaultSizePaneKey: DEFAULT_SIZE_RESULT_PANE_KEY, triggerCollapse: resultVisibilityState.triggerCollapse, triggerExpand: resultVisibilityState.triggerExpand, minSize: [0, 52], collapsedSizes: [100, 0], onSplitStartDragAdditional: onSplitStartDragAdditional, children: [_jsxs("div", { className: b('pane-wrapper', {
|
225
238
|
top: true,
|
226
|
-
}), children: [_jsx("div", { className: b('monaco-wrapper'), children: _jsx("div", { className: b('monaco'), children: _jsx(MonacoEditor, { language: YQL_LANGUAGE_ID, value: input, options: editorOptions, onChange: onChange, editorDidMount: editorDidMount, theme: `vs-${theme}
|
239
|
+
}), children: [_jsx("div", { className: b('monaco-wrapper'), children: _jsx("div", { className: b('monaco'), children: _jsx(MonacoEditor, { language: YQL_LANGUAGE_ID, value: input, options: editorOptions, onChange: onChange, editorDidMount: editorDidMount, theme: `vs-${theme}`, editorWillUnmount: editorWillUnmount }) }) }), renderControls()] }), _jsx("div", { className: b('pane-wrapper'), children: _jsx(Result, { resultVisibilityState: resultVisibilityState, onExpandResultHandler: onExpandResultHandler, onCollapseResultHandler: onCollapseResultHandler, type: type, theme: theme, result: result, tenantName: tenantName, path: path, showPreview: showPreview }, result === null || result === void 0 ? void 0 : result.queryId) })] }), _jsx(QuerySettingsDialog, {})] }));
|
227
240
|
}
|
228
241
|
function Result({ resultVisibilityState, onExpandResultHandler, onCollapseResultHandler, type, theme, result, tenantName, path, showPreview, }) {
|
229
242
|
if (showPreview) {
|
230
243
|
return _jsx(Preview, { database: tenantName, path: path, type: type });
|
231
244
|
}
|
232
|
-
if ((result === null || result === void 0 ? void 0 : result.type) ===
|
245
|
+
if ((result === null || result === void 0 ? void 0 : result.type) === 'execute') {
|
233
246
|
return (_jsx(ExecuteResult, { result: result, isResultsCollapsed: resultVisibilityState.collapsed, onExpandResults: onExpandResultHandler, onCollapseResults: onCollapseResultHandler, theme: theme, tenantName: tenantName }));
|
234
247
|
}
|
235
|
-
if ((result === null || result === void 0 ? void 0 : result.type) ===
|
248
|
+
if ((result === null || result === void 0 ? void 0 : result.type) === 'explain') {
|
236
249
|
return (_jsx(ExplainResult, { result: result, theme: theme, tenantName: tenantName, isResultsCollapsed: resultVisibilityState.collapsed, onExpandResults: onExpandResultHandler, onCollapseResults: onCollapseResultHandler }));
|
237
250
|
}
|
238
251
|
return null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryEditor.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/QueryEditor/QueryEditor.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,OAAO,EAAC,MAAM,QAAQ,CAAC;AAC/B,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AAEvC,OAAO,EAAC,EAAE,IAAI,MAAM,EAAC,MAAM,MAAM,CAAC;AAElC,OAAO,EAAC,YAAY,EAAC,MAAM,kDAAkD,CAAC;AAC9E,OAAO,SAAS,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C,CAAC,CAAC,WAAW,GAAG,EAAE,CAAC;QACvB,CAAC,CAAC;IACN,CAAC;SAAM,CAAC;QACJ,MAAM,CAAC,cAAc,GAAG,IAAI,CAAC;IACjC,CAAC;AACL,CAAC"}
|
1
|
+
{"version":3,"file":"QueryEditor.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/QueryEditor/QueryEditor.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAC,OAAO,EAAC,MAAM,QAAQ,CAAC;AAC/B,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AAEvC,OAAO,EAAC,EAAE,IAAI,MAAM,EAAC,MAAM,MAAM,CAAC;AAElC,OAAO,EAAC,YAAY,EAAC,MAAM,kDAAkD,CAAC;AAC9E,OAAO,SAAS,MAAM,kCAAkC,CAAC;AACzD,OAAO,EAAC,8BAA8B,EAAC,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EACH,aAAa,EACb,iBAAiB,EACjB,QAAQ,EACR,kBAAkB,EAClB,oBAAoB,EACpB,gCAAgC,EAChC,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,aAAa,GAChB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAC,cAAc,EAAC,MAAM,sDAAsD,CAAC;AACpF,OAAO,EAAC,iBAAiB,EAAE,cAAc,EAAC,MAAM,0CAA0C,CAAC;AAG3F,OAAO,EAAC,EAAE,EAAC,MAAM,sBAAsB,CAAC;AACxC,OAAO,EACH,iCAAiC,EACjC,4BAA4B,EAC5B,0BAA0B,GAC7B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACH,eAAe,EACf,yBAAyB,EACzB,UAAU,EACV,gBAAgB,EAChB,gBAAgB,GACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,uBAAuB,EAAC,MAAM,iDAAiD,CAAC;AACxF,OAAO,EAAC,6BAA6B,EAAC,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AC,EAAE,GAAG,CAAC,CAAC;IAER,MAAM,CAAC,MAAM,EAAE,CAAC;IAEhB,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;IAChD,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE;QACrB,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;AACP,CAAC;AAED,SAAS,cAAc,CAAC,MAA2C,EAAE,cAA4B;IAC7F,aAAa,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,cAAc,EAAE,CAAC,CAAC;IACnD,MAAM,CAAC,uBAAuB,CAAC,GAAG,EAAE;QAChC,aAAa,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,cAAc,EAAE,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;IACH,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE;QACrB,MAAM,CAAC,cAAc,GAAG,IAAI,CAAC;IACjC,CAAC,CAAC,CAAC;AACP,CAAC;AAED,SAAS,aAAa,CAAC,IAAY,EAAE,WAAmB;IACpD,MAAM,eAAe,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,KAAK,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC;IAE5D,IAAI,eAAe,EAAE,CAAC;QAClB,MAAM,CAAC,cAAc,GAAG,CAAC,CAAC,EAAE,EAAE;YAC1B,CAAC,CAAC,cAAc,EAAE,CAAC;YACnB,wCAAwC;YACxC,CAAC,CAAC,WAAW,GAAG,EAAE,CAAC;QACvB,CAAC,CAAC;IACN,CAAC;SAAM,CAAC;QACJ,MAAM,CAAC,cAAc,GAAG,IAAI,CAAC;IACjC,CAAC;AACL,CAAC"}
|
@@ -1,12 +1,13 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import React from 'react';
|
3
|
-
import { Dialog, Link as ExternalLink, Flex, TextInput } from '@gravity-ui/uikit';
|
3
|
+
import { Dialog, Link as ExternalLink, Flex, TextInput, Tooltip } from '@gravity-ui/uikit';
|
4
4
|
import { zodResolver } from '@hookform/resolvers/zod';
|
5
5
|
import { Controller, useForm } from 'react-hook-form';
|
6
6
|
import { useTracingLevelOptionAvailable } from '../../../../store/reducers/capabilities/hooks';
|
7
7
|
import { selectQueryAction, setQueryAction, } from '../../../../store/reducers/queryActions/queryActions';
|
8
8
|
import { cn } from '../../../../utils/cn';
|
9
|
-
import {
|
9
|
+
import { USE_SHOW_PLAN_SVG_KEY } from '../../../../utils/constants';
|
10
|
+
import { useQueryExecutionSettings, useSetting, useTypedDispatch, useTypedSelector, } from '../../../../utils/hooks';
|
10
11
|
import { querySettingsValidationSchema } from '../../../../utils/query';
|
11
12
|
import { QuerySettingsSelect } from './QuerySettingsSelect';
|
12
13
|
import { QUERY_SETTINGS_FIELD_SETTINGS } from './constants';
|
@@ -31,11 +32,12 @@ function QuerySettingsForm({ initialValues, onSubmit, onClose }) {
|
|
31
32
|
defaultValues: initialValues,
|
32
33
|
resolver: zodResolver(querySettingsValidationSchema),
|
33
34
|
});
|
35
|
+
const [useShowPlanToSvg] = useSetting(USE_SHOW_PLAN_SVG_KEY);
|
34
36
|
const enableTracingLevel = useTracingLevelOptionAvailable();
|
35
37
|
return (_jsxs("form", { onSubmit: handleSubmit(onSubmit), children: [_jsxs(Dialog.Body, { className: b('dialog-body'), children: [_jsxs(Flex, { direction: "row", alignItems: "flex-start", className: b('dialog-row'), children: [_jsx("label", { htmlFor: "queryMode", className: b('field-title'), children: QUERY_SETTINGS_FIELD_SETTINGS.queryMode.title }), _jsx("div", { className: b('control-wrapper', { queryMode: true }), children: _jsx(Controller, { name: "queryMode", control: control, render: ({ field }) => (_jsx(QuerySettingsSelect, { id: "queryMode", setting: field.value, onUpdateSetting: field.onChange, settingOptions: QUERY_SETTINGS_FIELD_SETTINGS.queryMode.options })) }) })] }), _jsxs(Flex, { direction: "row", alignItems: "flex-start", className: b('dialog-row'), children: [_jsx("label", { htmlFor: "timeout", className: b('field-title'), children: QUERY_SETTINGS_FIELD_SETTINGS.timeout.title }), _jsx("div", { className: b('control-wrapper'), children: _jsx(Controller, { name: "timeout", control: control, render: ({ field }) => {
|
36
38
|
var _a, _b;
|
37
39
|
return (_jsxs(React.Fragment, { children: [_jsx(TextInput, { id: "timeout", type: "number", ...field, value: (_a = field.value) === null || _a === void 0 ? void 0 : _a.toString(), className: b('timeout'), placeholder: "60", validationState: errors.timeout ? 'invalid' : undefined, errorMessage: (_b = errors.timeout) === null || _b === void 0 ? void 0 : _b.message, errorPlacement: "inside" }), _jsx("span", { className: b('timeout-suffix'), children: i18n('form.timeout.seconds') })] }));
|
38
|
-
} }) })] }), enableTracingLevel && (_jsxs(Flex, { direction: "row", alignItems: "flex-start", className: b('dialog-row'), children: [_jsx("label", { htmlFor: "tracingLevel", className: b('field-title'), children: QUERY_SETTINGS_FIELD_SETTINGS.tracingLevel.title }), _jsx("div", { className: b('control-wrapper'), children: _jsx(Controller, { name: "tracingLevel", control: control, render: ({ field }) => (_jsx(QuerySettingsSelect, { id: "tracingLevel", setting: field.value, onUpdateSetting: field.onChange, settingOptions: QUERY_SETTINGS_FIELD_SETTINGS.tracingLevel.options })) }) })] })), _jsxs(Flex, { direction: "row", alignItems: "flex-start", className: b('dialog-row'), children: [_jsx("label", { htmlFor: "transactionMode", className: b('field-title'), children: QUERY_SETTINGS_FIELD_SETTINGS.transactionMode.title }), _jsx("div", { className: b('control-wrapper', { transactionMode: true }), children: _jsx(Controller, { name: "transactionMode", control: control, render: ({ field }) => (_jsx(QuerySettingsSelect, { id: "transactionMode", setting: field.value, onUpdateSetting: field.onChange, settingOptions: QUERY_SETTINGS_FIELD_SETTINGS.transactionMode.options })) }) })] }), _jsxs(Flex, { direction: "row", alignItems: "flex-start", className: b('dialog-row'), children: [_jsx("label", { htmlFor: "statisticsMode", className: b('field-title'), children: QUERY_SETTINGS_FIELD_SETTINGS.statisticsMode.title }), _jsx("div", { className: b('control-wrapper', { statisticsMode: true }), children: _jsx(Controller, { name: "statisticsMode", control: control, render: ({ field }) => (_jsx(QuerySettingsSelect, { id: "statisticsMode", setting: field.value, onUpdateSetting: field.onChange, settingOptions: QUERY_SETTINGS_FIELD_SETTINGS.statisticsMode.options })) }) })] }), _jsxs(Flex, { direction: "row", alignItems: "flex-start", className: b('dialog-row'), children: [_jsx("label", { htmlFor: "limitRows", className: b('field-title'), children: QUERY_SETTINGS_FIELD_SETTINGS.limitRows.title }), _jsx("div", { className: b('control-wrapper'), children: _jsx(Controller, { name: "limitRows", control: control, render: ({ field }) => {
|
40
|
+
} }) })] }), enableTracingLevel && (_jsxs(Flex, { direction: "row", alignItems: "flex-start", className: b('dialog-row'), children: [_jsx("label", { htmlFor: "tracingLevel", className: b('field-title'), children: QUERY_SETTINGS_FIELD_SETTINGS.tracingLevel.title }), _jsx("div", { className: b('control-wrapper'), children: _jsx(Controller, { name: "tracingLevel", control: control, render: ({ field }) => (_jsx(QuerySettingsSelect, { id: "tracingLevel", setting: field.value, onUpdateSetting: field.onChange, settingOptions: QUERY_SETTINGS_FIELD_SETTINGS.tracingLevel.options })) }) })] })), _jsxs(Flex, { direction: "row", alignItems: "flex-start", className: b('dialog-row'), children: [_jsx("label", { htmlFor: "transactionMode", className: b('field-title'), children: QUERY_SETTINGS_FIELD_SETTINGS.transactionMode.title }), _jsx("div", { className: b('control-wrapper', { transactionMode: true }), children: _jsx(Controller, { name: "transactionMode", control: control, render: ({ field }) => (_jsx(QuerySettingsSelect, { id: "transactionMode", setting: field.value, onUpdateSetting: field.onChange, settingOptions: QUERY_SETTINGS_FIELD_SETTINGS.transactionMode.options })) }) })] }), _jsxs(Flex, { direction: "row", alignItems: "flex-start", className: b('dialog-row'), children: [_jsx("label", { htmlFor: "statisticsMode", className: b('field-title'), children: QUERY_SETTINGS_FIELD_SETTINGS.statisticsMode.title }), _jsx(Tooltip, { disabled: !useShowPlanToSvg, openDelay: 0, content: i18n('tooltip_plan-to-svg-statistics'), children: _jsx("div", { className: b('control-wrapper', { statisticsMode: true }), children: _jsx(Controller, { name: "statisticsMode", control: control, render: ({ field }) => (_jsx(QuerySettingsSelect, { id: "statisticsMode", disabled: useShowPlanToSvg, setting: field.value, onUpdateSetting: field.onChange, settingOptions: QUERY_SETTINGS_FIELD_SETTINGS.statisticsMode.options })) }) }) })] }), _jsxs(Flex, { direction: "row", alignItems: "flex-start", className: b('dialog-row'), children: [_jsx("label", { htmlFor: "limitRows", className: b('field-title'), children: QUERY_SETTINGS_FIELD_SETTINGS.limitRows.title }), _jsx("div", { className: b('control-wrapper'), children: _jsx(Controller, { name: "limitRows", control: control, render: ({ field }) => {
|
39
41
|
var _a, _b;
|
40
42
|
return (_jsx(TextInput, { id: "limitRows", type: "number", ...field, value: (_a = field.value) === null || _a === void 0 ? void 0 : _a.toString(), className: b('limit-rows'), placeholder: "10000", validationState: errors.limitRows ? 'invalid' : undefined, errorMessage: (_b = errors.limitRows) === null || _b === void 0 ? void 0 : _b.message, errorPlacement: "inside" }));
|
41
43
|
} }) })] })] }), _jsx(Dialog.Footer, { textButtonApply: i18n('button-done'), textButtonCancel: i18n('button-cancel'), onClickButtonCancel: onClose, propsButtonApply: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QuerySettingsDialog.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,MAAM,EAAE,IAAI,IAAI,YAAY,EAAE,IAAI,EAAE,SAAS,EAAC,MAAM,mBAAmB,CAAC;
|
1
|
+
{"version":3,"file":"QuerySettingsDialog.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,MAAM,EAAE,IAAI,IAAI,YAAY,EAAE,IAA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EAChB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE;;wCAAC,OAAA,CACjB,KAAC,SAAS,IACN,EAAE,EAAC,WAAW,EACd,IAAI,EAAC,QAAQ,KACT,KAAK,EACT,KAAK,EAAE,MAAA,KAAK,CAAC,KAAK,0CAAE,QAAQ,EAAE,EAC9B,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,EAC1B,WAAW,EAAC,OAAO,EACnB,eAAe,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,EACzD,YAAY,EAAE,MAAA,MAAM,CAAC,SAAS,0CAAE,OAAO,EACvC,cAAc,EAAC,QAAQ,GACzB,CACL,CAAA;qCAAA,GACH,GACA,IACH,IACG,EACd,KAAC,MAAM,CAAC,MAAM,IACV,eAAe,EAAE,IAAI,CAAC,aAAa,CAAC,EACpC,gBAAgB,EAAE,IAAI,CAAC,eAAe,CAAC,EACvC,mBAAmB,EAAE,OAAO,EAC5B,gBAAgB,EAAE;oBACd,IAAI,EAAE,QAAQ;iBACjB,EACD,aAAa,EAAE,CAAC,WAAW,EAAE,YAAY,EAAE,EAAE,CAAC,CAC1C,eAAK,SAAS,EAAE,CAAC,CAAC,mBAAmB,CAAC,aAClC,KAAC,YAAY,IACT,IAAI,EAAC,uBAAuB,EAC5B,MAAM,EAAC,QAAQ,EACf,SAAS,EAAE,CAAC,CAAC,oBAAoB,CAAC,YAEjC,IAAI,CAAC,MAAM,CAAC,GACF,EACf,eAAK,SAAS,EAAE,CAAC,CAAC,cAAc,CAAC,aAC5B,YAAY,EACZ,WAAW,IACV,IACJ,CACT,GACH,IACC,CACV,CAAC;AACN,CAAC"}
|
@@ -10,6 +10,7 @@ interface QuerySettingsSelectProps<T extends SelectType> {
|
|
10
10
|
id?: string;
|
11
11
|
setting: T;
|
12
12
|
settingOptions: QuerySettingSelectOption<T>[];
|
13
|
+
disabled?: boolean;
|
13
14
|
onUpdateSetting: (mode: T) => void;
|
14
15
|
}
|
15
16
|
export declare function QuerySettingsSelect<T extends SelectType>(props: QuerySettingsSelectProps<T>): import("react/jsx-runtime").JSX.Element;
|
@@ -8,7 +8,7 @@ import './QuerySettingsSelect.scss';
|
|
8
8
|
export const getOptionHeight = () => -1;
|
9
9
|
const b = cn('ydb-query-settings-select');
|
10
10
|
export function QuerySettingsSelect(props) {
|
11
|
-
return (_jsx("div", { className: b('selector'), children: _jsx(Select, { id: props.id, options: props.settingOptions, value: [props.setting], onUpdate: (value) => {
|
11
|
+
return (_jsx("div", { className: b('selector'), children: _jsx(Select, { id: props.id, disabled: props.disabled, options: props.settingOptions, value: [props.setting], onUpdate: (value) => {
|
12
12
|
props.onUpdateSetting(value[0]);
|
13
13
|
}, getOptionHeight: getOptionHeight, popupClassName: b('popup'), renderOption: (option) => (_jsxs("div", { className: b('item'), children: [_jsxs("div", { className: b('item-title'), children: [option.content, option.isDefault ? i18n('description.default') : ''] }), option.text && (_jsx("span", { className: b('item-description'), children: option.text }))] })), width: "max" }) }));
|
14
14
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QuerySettingsSelect.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAQzC,OAAO,EAAC,EAAE,EAAC,MAAM,sBAAsB,CAAC;AAExC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,OAAO,4BAA4B,CAAC;AAEpC,8BAA8B;AAC9B,mCAAmC;AACnC,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;AAExC,MAAM,CAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"QuerySettingsSelect.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/QuerySettingsDialog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,EAAC,KAAK,GACb,GACA,CACT,CAAC;AACN,CAAC"}
|
@@ -7,6 +7,7 @@
|
|
7
7
|
"form.tracing-level": "Tracing level",
|
8
8
|
"form.limit-rows": "Limit rows",
|
9
9
|
"button-done": "Save",
|
10
|
+
"tooltip_plan-to-svg-statistics": "Statistics option is set to \"Full\" due to the enabled \"Execution plan\" experiment.\n To disable it, go to the \"Experiments\" section in the user settings.",
|
10
11
|
"button-cancel": "Cancel",
|
11
12
|
"form.timeout.seconds": "sec",
|
12
13
|
"form.validation.timeout": "Must be positive",
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: (key: "button-cancel" | "action.settings" | "form.query-mode" | "form.timeout" | "form.transaction-mode" | "form.statistics-mode" | "form.tracing-level" | "form.limit-rows" | "button-done" | "form.timeout.seconds" | "form.validation.timeout" | "form.validation.limitRows" | "description.default" | "docs", params?: import("@gravity-ui/i18n").Params) => string;
|
1
|
+
declare const _default: (key: "button-cancel" | "action.settings" | "form.query-mode" | "form.timeout" | "form.transaction-mode" | "form.statistics-mode" | "form.tracing-level" | "form.limit-rows" | "button-done" | "tooltip_plan-to-svg-statistics" | "form.timeout.seconds" | "form.validation.timeout" | "form.validation.limitRows" | "description.default" | "docs", params?: import("@gravity-ui/i18n").Params) => string;
|
2
2
|
export default _default;
|
@@ -6,6 +6,7 @@
|
|
6
6
|
"form.statistics-mode": "Режим сбора статистики",
|
7
7
|
"form.tracing-level": "Tracing level",
|
8
8
|
"form.limit-rows": "Лимит строк",
|
9
|
+
"tooltip_plan-to-svg-statistics": "Опция статистики установлена в значение \"Full\" из-за включенного эксперимента \"Execution plan\".\n Чтобы отключить его, перейдите в раздел \"Experiments\" в настройках пользователя.",
|
9
10
|
"button-done": "Готово",
|
10
11
|
"button-cancel": "Отменить",
|
11
12
|
"form.timeout.seconds": "сек",
|
@@ -1,13 +1,22 @@
|
|
1
|
+
import React from 'react';
|
1
2
|
import type { ButtonProps } from '@gravity-ui/uikit';
|
2
3
|
import './SaveQuery.scss';
|
3
4
|
interface SaveQueryProps {
|
4
5
|
buttonProps?: ButtonProps;
|
5
6
|
}
|
6
|
-
|
7
|
+
interface SaveQueryButtonProps extends ButtonProps {
|
8
|
+
dialogProps?: SaveQueryDialogCommonProps;
|
9
|
+
}
|
10
|
+
export declare function SaveQueryButton({ dialogProps, ...buttonProps }: SaveQueryButtonProps): import("react/jsx-runtime").JSX.Element;
|
7
11
|
export declare function SaveQuery({ buttonProps }: SaveQueryProps): import("react/jsx-runtime").JSX.Element;
|
8
|
-
interface
|
12
|
+
interface SaveQueryDialogCommonProps {
|
9
13
|
onSuccess?: () => void;
|
10
14
|
onCancel?: () => void;
|
15
|
+
onClose?: () => void;
|
16
|
+
}
|
17
|
+
interface SaveQueryDialogProps extends SaveQueryDialogCommonProps {
|
18
|
+
open: boolean;
|
11
19
|
}
|
12
|
-
export declare
|
20
|
+
export declare const SAVE_QUERY_DIALOG = "save-query-dialog";
|
21
|
+
export declare const SaveQueryDialogNiceModal: React.FC<SaveQueryDialogProps & import("@ebay/nice-modal-react").NiceModalHocProps>;
|
13
22
|
export {};
|
@@ -1,24 +1,25 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import React from 'react';
|
3
|
+
import NiceModal from '@ebay/nice-modal-react';
|
3
4
|
import { Button, Dialog, DropdownMenu, TextInput } from '@gravity-ui/uikit';
|
4
|
-
import { clearQueryNameToEdit, saveQuery,
|
5
|
+
import { clearQueryNameToEdit, saveQuery, selectQueryName, setQueryAction, } from '../../../../store/reducers/queryActions/queryActions';
|
5
6
|
import { cn } from '../../../../utils/cn';
|
6
7
|
import { useTypedDispatch, useTypedSelector } from '../../../../utils/hooks';
|
7
8
|
import { useSavedQueries } from '../utils/useSavedQueries';
|
8
9
|
import i18n from './i18n';
|
9
10
|
import './SaveQuery.scss';
|
10
11
|
const b = cn('ydb-save-query');
|
11
|
-
function useSaveQueryHandler() {
|
12
|
+
function useSaveQueryHandler(dialogProps) {
|
12
13
|
const dispatch = useTypedDispatch();
|
13
14
|
const onSaveQueryClick = React.useCallback(() => {
|
14
|
-
|
15
|
+
NiceModal.show(SAVE_QUERY_DIALOG, dialogProps);
|
15
16
|
dispatch(clearQueryNameToEdit());
|
16
|
-
}, [dispatch]);
|
17
|
+
}, [dispatch, dialogProps]);
|
17
18
|
return onSaveQueryClick;
|
18
19
|
}
|
19
|
-
export function SaveQueryButton(
|
20
|
-
const onSaveQueryClick = useSaveQueryHandler();
|
21
|
-
return (_jsx(Button, { onClick: onSaveQueryClick, ...
|
20
|
+
export function SaveQueryButton({ dialogProps, ...buttonProps }) {
|
21
|
+
const onSaveQueryClick = useSaveQueryHandler(dialogProps);
|
22
|
+
return (_jsx(Button, { onClick: onSaveQueryClick, ...buttonProps, children: i18n('action.save') }));
|
22
23
|
}
|
23
24
|
export function SaveQuery({ buttonProps = {} }) {
|
24
25
|
const dispatch = useTypedDispatch();
|
@@ -43,10 +44,9 @@ export function SaveQuery({ buttonProps = {} }) {
|
|
43
44
|
};
|
44
45
|
return queryNameToEdit ? renderSaveDropdownMenu() : _jsx(SaveQueryButton, {});
|
45
46
|
}
|
46
|
-
|
47
|
+
function SaveQueryDialog({ onSuccess, onCancel, onClose, open }) {
|
47
48
|
const savedQueries = useSavedQueries();
|
48
49
|
const dispatch = useTypedDispatch();
|
49
|
-
const queryAction = useTypedSelector(selectQueryAction);
|
50
50
|
const [queryName, setQueryName] = React.useState('');
|
51
51
|
const [validationError, setValidationError] = React.useState();
|
52
52
|
const validateQueryName = (value) => {
|
@@ -62,6 +62,7 @@ export function SaveQueryDialog({ onSuccess, onCancel }) {
|
|
62
62
|
dispatch(setQueryAction('idle'));
|
63
63
|
setQueryName('');
|
64
64
|
setValidationError(undefined);
|
65
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
65
66
|
};
|
66
67
|
const onCloseWithoutSave = () => {
|
67
68
|
onCancel === null || onCancel === void 0 ? void 0 : onCancel();
|
@@ -76,7 +77,7 @@ export function SaveQueryDialog({ onSuccess, onCancel }) {
|
|
76
77
|
onCloseDialog();
|
77
78
|
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess();
|
78
79
|
};
|
79
|
-
return (_jsxs(Dialog, { open:
|
80
|
+
return (_jsxs(Dialog, { open: open, hasCloseButton: false, size: "s", onClose: onCloseWithoutSave, children: [_jsx(Dialog.Header, { caption: i18n('action.save') }), _jsxs("form", { onSubmit: (e) => {
|
80
81
|
e.preventDefault();
|
81
82
|
const validationError = validateQueryName(queryName);
|
82
83
|
setValidationError(validationError);
|
@@ -87,4 +88,18 @@ export function SaveQueryDialog({ onSuccess, onCancel }) {
|
|
87
88
|
type: 'submit',
|
88
89
|
} })] })] }));
|
89
90
|
}
|
91
|
+
export const SAVE_QUERY_DIALOG = 'save-query-dialog';
|
92
|
+
export const SaveQueryDialogNiceModal = NiceModal.create((props) => {
|
93
|
+
const modal = NiceModal.useModal();
|
94
|
+
const handleClose = () => {
|
95
|
+
modal.hide();
|
96
|
+
modal.remove();
|
97
|
+
};
|
98
|
+
return (_jsx(SaveQueryDialog, { ...props, onClose: () => {
|
99
|
+
var _a;
|
100
|
+
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
101
|
+
handleClose();
|
102
|
+
}, open: modal.visible }));
|
103
|
+
});
|
104
|
+
NiceModal.register(SAVE_QUERY_DIALOG, SaveQueryDialogNiceModal);
|
90
105
|
//# sourceMappingURL=SaveQuery.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SaveQuery.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/SaveQuery/SaveQuery.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"SaveQuery.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/SaveQuery/SaveQuery.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,SAAS,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MAAM,CAAC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;AAErD,MAAM,CAAC,MAAM,wBAAwB,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,KAA2B,EAAE,EAAE;IACrF,MAAM,KAAK,GAAG,SAAS,CAAC,QAAQ,EAAE,CAAC;IAEnC,MAAM,WAAW,GAAG,GAAG,EAAE;QACrB,KAAK,CAAC,IAAI,EAAE,CAAC;QACb,KAAK,CAAC,MAAM,EAAE,CAAC;IACnB,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,eAAe,OACR,KAAK,EACT,OAAO,EAAE,GAAG,EAAE;;YACV,MAAA,KAAK,CAAC,OAAO,qDAAI,CAAC;YAClB,WAAW,EAAE,CAAC;QAClB,CAAC,EACD,IAAI,EAAE,KAAK,CAAC,OAAO,GACrB,CACL,CAAC;AACN,CAAC,CAAC,CAAC;AAEH,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,wBAAwB,CAAC,CAAC"}
|
@@ -9,7 +9,6 @@ export declare const bindActions: (changeUserInput: (input: string) => void) =>
|
|
9
9
|
upsertQuery: () => void;
|
10
10
|
createExternalTable: () => void;
|
11
11
|
dropExternalTable: () => void;
|
12
|
-
selectQueryFromExternalTable: () => void;
|
13
12
|
createTopic: () => void;
|
14
13
|
alterTopic: () => void;
|
15
14
|
dropTopic: () => void;
|
@@ -14,7 +14,6 @@ export const bindActions = (changeUserInput) => {
|
|
14
14
|
upsertQuery: inputQuery(upsertQueryTemplate),
|
15
15
|
createExternalTable: inputQuery(createExternalTableTemplate),
|
16
16
|
dropExternalTable: inputQuery(dropExternalTableTemplate),
|
17
|
-
selectQueryFromExternalTable: inputQuery(selectQueryTemplate),
|
18
17
|
createTopic: inputQuery(createTopicTemplate),
|
19
18
|
alterTopic: inputQuery(alterTopicTemplate),
|
20
19
|
dropTopic: inputQuery(dropTopicTemplate),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"newSQLQueryActions.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/utils/newSQLQueryActions.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,aAAa,EACb,6BAA6B,EAC7B,kBAAkB,EAClB,kBAAkB,EAClB,8BAA8B,EAC9B,uBAAuB,EACvB,yBAAyB,EACzB,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,4BAA4B,EAC5B,yBAAyB,EACzB,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,GACtB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,eAAwC,EAAE,EAAE;IACpE,MAAM,UAAU,GAAG,CAAC,KAAmB,EAAE,EAAE,CAAC,GAAG,EAAE;QAC7C,eAAe,CAAC,KAAK,EAAE,CAAC,CAAC;IAC7B,CAAC,CAAC;IAEF,OAAO;QACH,cAAc,EAAE,UAAU,CAAC,mBAAmB,CAAC;QAC/C,iBAAiB,EAAE,UAAU,CAAC,yBAAyB,CAAC;QACxD,sBAAsB,EAAE,UAAU,CAAC,8BAA8B,CAAC;QAClE,qBAAqB,EAAE,UAAU,CAAC,6BAA6B,CAAC;QAChE,oBAAoB,EAAE,UAAU,CAAC,4BAA4B,CAAC;QAC9D,UAAU,EAAE,UAAU,CAAC,kBAAkB,CAAC;QAC1C,WAAW,EAAE,UAAU,CAAC,mBAAmB,CAAC;QAC5C,WAAW,EAAE,UAAU,CAAC,mBAAmB,CAAC;QAC5C,mBAAmB,EAAE,UAAU,CAAC,2BAA2B,CAAC;QAC5D,iBAAiB,EAAE,UAAU,CAAC,yBAAyB,CAAC;QACxD,
|
1
|
+
{"version":3,"file":"newSQLQueryActions.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/utils/newSQLQueryActions.ts"],"names":[],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AU,EAAE,UAAU,CAAC,kBAAkB,CAAC;QAC1C,SAAS,EAAE,UAAU,CAAC,iBAAiB,CAAC;QACxC,UAAU,EAAE,UAAU,CAAC,kBAAkB,CAAC;QAC1C,WAAW,EAAE,UAAU,CAAC,mBAAmB,CAAC;QAC5C,UAAU,EAAE,UAAU,CAAC,kBAAkB,CAAC;QAC1C,WAAW,EAAE,UAAU,CAAC,mBAAmB,CAAC;QAC5C,eAAe,EAAE,UAAU,CAAC,uBAAuB,CAAC;QACpD,cAAc,EAAE,UAAU,CAAC,sBAAsB,CAAC;QAClD,eAAe,EAAE,UAAU,CAAC,uBAAuB,CAAC;QACpD,QAAQ,EAAE,UAAU,CAAC,gBAAgB,CAAC;QACtC,SAAS,EAAE,UAAU,CAAC,iBAAiB,CAAC;QACxC,aAAa,EAAE,UAAU,CAAC,aAAa,CAAC;QACxC,cAAc,EAAE,UAAU,CAAC,cAAc,CAAC;KAC7C,CAAC;AACN,CAAC,CAAC"}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import copy from 'copy-to-clipboard';
|
2
|
-
import { changeUserInput } from '../../../store/reducers/executeQuery';
|
3
2
|
import { TENANT_PAGES_IDS, TENANT_QUERY_TABS_ID } from '../../../store/reducers/tenant/constants';
|
4
3
|
import { setQueryTab, setTenantPage } from '../../../store/reducers/tenant/tenant';
|
5
4
|
import createToast from '../../../utils/createToast';
|
5
|
+
import { insertSnippetToEditor } from '../../../utils/monaco/insertSnippet';
|
6
6
|
import { transformPath } from '../ObjectSummary/transformPath';
|
7
7
|
import i18n from '../i18n';
|
8
8
|
import { nodeTableTypeToPathType } from './schema';
|
@@ -20,12 +20,13 @@ const bindActions = (params, dispatch, additionalEffects) => {
|
|
20
20
|
type: pathType,
|
21
21
|
})
|
22
22
|
: Promise.resolve(undefined);
|
23
|
-
|
24
|
-
dispatch(changeUserInput({ input: tmpl({ ...params, tableData }) }));
|
25
|
-
});
|
23
|
+
//order is important here: firstly we should open query tab and initialize editor (it will be set to window.ydbEditor), after that it is possible to insert snippet
|
26
24
|
dispatch(setTenantPage(TENANT_PAGES_IDS.query));
|
27
25
|
dispatch(setQueryTab(TENANT_QUERY_TABS_ID.newQuery));
|
28
26
|
setActivePath(params.path);
|
27
|
+
userInputDataPromise.then((tableData) => {
|
28
|
+
insertSnippetToEditor(tmpl({ ...params, tableData }));
|
29
|
+
});
|
29
30
|
};
|
30
31
|
if (getConfirmation) {
|
31
32
|
const confirmedPromise = getConfirmation();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schemaActions.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/utils/schemaActions.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,mBAAmB,CAAC;
|
1
|
+
{"version":3,"file":"schemaActions.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/utils/schemaActions.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,mBAAmB,CAAC;AAKrC,OAAO,EAAC,gBAAgB,EAAE,oBAAoB,EAAC,MAAM,0CAA0C,CAAC;AAChG,OAAO,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,uCAAuC,CAAC;AAEjF,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAC,qBAAqB,EAAC,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAE7D,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,EAAC,uBAAuB,EAAC,MAAM,UAAU,CAAC;AAEjD,OAAO,EACH,aAAa,EACb,6BAA6B,EAC7B,kBAAkB,EAClB,kBAAkB,EAClB,8BAA8B,EAC9B,uBAAuB,EACvB,yBAAyB,EACzB,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,4BAA4B,EAC5B,yBAAyB,EACzB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,GACtB,MAAM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