ydb-embedded-ui 6.15.1 → 6.16.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/ElapsedTime/ElapsedTime.js +2 -1
- package/dist/components/ElapsedTime/ElapsedTime.js.map +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +6 -0
- package/dist/components/EmptyState/EmptyState.js +6 -0
- package/dist/components/EmptyState/EmptyState.js.map +1 -1
- package/dist/components/EntitiesCount/EntitiesCount.js +3 -1
- package/dist/components/EntitiesCount/EntitiesCount.js.map +1 -1
- package/dist/components/EntityPageTitle/EntityPageTitle.d.ts +11 -0
- package/dist/components/{DiskPageTitle/DiskPageTitle.js → EntityPageTitle/EntityPageTitle.js} +5 -5
- package/dist/components/EntityPageTitle/EntityPageTitle.js.map +1 -0
- package/dist/components/{DiskPageTitle/DiskPageTitle.scss → EntityPageTitle/EntityPageTitle.scss} +1 -1
- package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.d.ts +2 -1
- package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.js +10 -1
- package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.js.map +1 -1
- package/dist/components/MetricChart/reducer.d.ts +2 -2
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.d.ts +9 -0
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js +9 -0
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js.map +1 -0
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.scss +3 -0
- package/dist/components/PageMeta/PageMeta.d.ts +2 -1
- package/dist/components/PageMeta/PageMeta.js +9 -4
- package/dist/components/PageMeta/PageMeta.js.map +1 -1
- package/dist/components/PageMeta/PageMeta.scss +9 -6
- package/dist/components/PaginatedTable/PaginatedTable.d.ts +5 -4
- package/dist/components/PaginatedTable/PaginatedTable.js +24 -116
- package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
- package/dist/components/PaginatedTable/ResizeablePaginatedTable.d.ts +2 -2
- package/dist/components/PaginatedTable/ResizeablePaginatedTable.js.map +1 -1
- package/dist/components/PaginatedTable/TableChunk.d.ts +13 -5
- package/dist/components/PaginatedTable/TableChunk.js +51 -21
- package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
- package/dist/components/PaginatedTable/TableRow.js +1 -1
- package/dist/components/PaginatedTable/TableRow.js.map +1 -1
- package/dist/components/PaginatedTable/types.d.ts +8 -1
- package/dist/components/Skeleton/Skeleton.d.ts +6 -0
- package/dist/components/Skeleton/Skeleton.js +11 -0
- package/dist/components/Skeleton/Skeleton.js.map +1 -0
- package/dist/components/Tablet/Tablet.js +2 -2
- package/dist/components/Tablet/Tablet.js.map +1 -1
- package/dist/components/TabletState/TabletState.d.ts +6 -0
- package/dist/components/TabletState/TabletState.js +7 -0
- package/dist/components/TabletState/TabletState.js.map +1 -0
- package/dist/containers/Cluster/Cluster.js +10 -10
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- package/dist/containers/Cluster/Cluster.scss +14 -0
- package/dist/containers/Cluster/i18n/index.d.ts +1 -1
- package/dist/containers/Heatmap/HeatmapCanvas/HeatmapCanvas.js +2 -2
- package/dist/containers/Heatmap/HeatmapCanvas/HeatmapCanvas.js.map +1 -1
- package/dist/containers/Nodes/Nodes.d.ts +2 -1
- package/dist/containers/Nodes/Nodes.js +2 -2
- package/dist/containers/Nodes/Nodes.js.map +1 -1
- package/dist/containers/Nodes/NodesWrapper.d.ts +1 -0
- package/dist/containers/Nodes/NodesWrapper.js.map +1 -1
- package/dist/containers/Nodes/PaginatedNodes.d.ts +2 -1
- package/dist/containers/Nodes/PaginatedNodes.js +6 -18
- package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
- package/dist/containers/Nodes/getNodes.d.ts +3 -6
- package/dist/containers/Nodes/getNodes.js +19 -2
- package/dist/containers/Nodes/getNodes.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.js +4 -5
- package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.scss +0 -7
- package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/PaginatedStorage.d.ts +2 -2
- package/dist/containers/Storage/PaginatedStorage.js +3 -3
- package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
- package/dist/containers/Storage/Storage.d.ts +2 -2
- package/dist/containers/Storage/Storage.js +3 -3
- package/dist/containers/Storage/Storage.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +2 -2
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js +5 -17
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/getGroups.d.ts +3 -6
- package/dist/containers/Storage/StorageGroups/getGroups.js +15 -2
- package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.d.ts +2 -2
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js +6 -18
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/getNodes.d.ts +3 -5
- package/dist/containers/Storage/StorageNodes/getNodes.js +17 -2
- package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
- package/dist/containers/Storage/StorageWrapper.d.ts +1 -1
- package/dist/containers/Tablet/Tablet.d.ts +1 -1
- package/dist/containers/Tablet/Tablet.js +95 -52
- package/dist/containers/Tablet/Tablet.js.map +1 -1
- package/dist/containers/Tablet/Tablet.scss +4 -81
- package/dist/containers/Tablet/components/TabletControls/TabletControls.d.ts +6 -0
- package/dist/containers/Tablet/components/TabletControls/TabletControls.js +27 -0
- package/dist/containers/Tablet/components/TabletControls/TabletControls.js.map +1 -0
- package/dist/containers/Tablet/components/TabletControls/index.js.map +1 -0
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.d.ts +7 -0
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js +59 -0
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js.map +1 -0
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.scss +12 -0
- package/dist/containers/Tablet/components/TabletInfo/i18n/en.json +16 -0
- package/dist/containers/Tablet/components/TabletInfo/i18n/index.d.ts +1 -0
- package/dist/containers/Tablet/components/TabletInfo/i18n/index.js +5 -0
- package/dist/containers/Tablet/components/TabletInfo/i18n/index.js.map +1 -0
- package/dist/containers/Tablet/components/TabletInfo/index.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.d.ts +7 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.js +36 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.scss +78 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/columns.d.ts +3 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/columns.js +56 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/columns.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/i18n/en.json +7 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/i18n/index.d.ts +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/i18n/index.js +5 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/i18n/index.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/shared.d.ts +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/shared.js +3 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/shared.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/types.d.ts +5 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/types.js +2 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/types.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/utils.d.ts +3 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/utils.js +29 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/utils.js.map +1 -0
- package/dist/containers/Tablet/{TabletTable → components/TabletTable}/TabletTable.d.ts +1 -1
- package/dist/containers/Tablet/{TabletTable → components/TabletTable}/TabletTable.js +7 -6
- package/dist/containers/Tablet/components/TabletTable/TabletTable.js.map +1 -0
- package/dist/containers/Tablet/components/TabletTable/index.js.map +1 -0
- package/dist/containers/Tablet/i18n/en.json +5 -1
- package/dist/containers/Tablet/i18n/index.d.ts +1 -1
- package/dist/containers/Tablet/utils.d.ts +1 -0
- package/dist/containers/Tablet/utils.js +4 -0
- package/dist/containers/Tablet/utils.js.map +1 -0
- package/dist/containers/Tablets/Tablets.js +16 -10
- package/dist/containers/Tablets/Tablets.js.map +1 -1
- package/dist/containers/Tablets/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Acl/Acl.scss +2 -2
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +10 -9
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.scss +13 -2
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +2 -2
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.js +21 -11
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js +2 -2
- package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js.map +1 -1
- package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js +3 -8
- package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js.map +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.js +2 -5
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.js.map +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.d.ts +0 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.js +0 -21
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.js.map +1 -1
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js +19 -1
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js.map +1 -1
- package/dist/containers/Tenant/Query/Query.js +2 -14
- package/dist/containers/Tenant/Query/Query.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +4 -4
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +3 -3
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +8 -8
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +6 -6
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js.map +1 -1
- package/dist/containers/Tenant/Query/i18n/en.json +4 -1
- package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/utils/useSavedQueries.js +2 -1
- package/dist/containers/Tenant/Query/utils/useSavedQueries.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/columns.js +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/columns.js.map +1 -1
- 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/Schema/SchemaViewer/types.d.ts +1 -1
- package/dist/containers/Tenant/utils/queryTemplates.js +6 -5
- package/dist/containers/Tenant/utils/queryTemplates.js.map +1 -1
- package/dist/containers/UserSettings/i18n/en.json +0 -2
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.d.ts +0 -1
- package/dist/containers/UserSettings/settings.js +2 -7
- package/dist/containers/UserSettings/settings.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.js +5 -6
- package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.scss +0 -4
- package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
- package/dist/routes.d.ts +1 -0
- package/dist/routes.js +3 -0
- package/dist/routes.js.map +1 -1
- package/dist/services/api.d.ts +13 -7
- package/dist/services/api.js +27 -6
- package/dist/services/api.js.map +1 -1
- package/dist/services/settings.d.ts +1 -2
- package/dist/services/settings.js +1 -2
- package/dist/services/settings.js.map +1 -1
- package/dist/store/configureStore.d.ts +4 -8
- package/dist/store/defaultStore.d.ts +2 -4
- package/dist/store/reducers/api.d.ts +1 -1
- package/dist/store/reducers/api.js +1 -1
- package/dist/store/reducers/api.js.map +1 -1
- package/dist/store/reducers/authentication/authentication.d.ts +4 -4
- package/dist/store/reducers/cancelQuery.d.ts +2 -2
- package/dist/store/reducers/capabilities/capabilities.d.ts +6 -10
- 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 +2 -2
- package/dist/store/reducers/clusterNodes/clusterNodes.d.ts +2 -2
- package/dist/store/reducers/clusters/clusters.d.ts +2 -2
- package/dist/store/reducers/describe.d.ts +2 -2
- package/dist/store/reducers/executeQuery.d.ts +18 -4
- package/dist/store/reducers/executeQuery.js +50 -5
- package/dist/store/reducers/executeQuery.js.map +1 -1
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +2 -2
- package/dist/store/reducers/explainQuery/explainQuery.d.ts +2 -2
- package/dist/store/reducers/header/types.d.ts +1 -1
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +58 -78
- package/dist/store/reducers/heatmap.d.ts +2 -2
- package/dist/store/reducers/hotKeys/hotKeys.d.ts +2 -2
- package/dist/store/reducers/index.d.ts +3 -6
- package/dist/store/reducers/index.js +0 -2
- package/dist/store/reducers/index.js.map +1 -1
- package/dist/store/reducers/network/network.d.ts +2 -2
- package/dist/store/reducers/node/node.d.ts +3 -3
- package/dist/store/reducers/node/selectors.d.ts +1 -2
- package/dist/store/reducers/nodes/nodes.d.ts +3 -3
- package/dist/store/reducers/nodes/types.d.ts +11 -1
- package/dist/store/reducers/nodesList.d.ts +3 -4
- package/dist/store/reducers/overview/overview.d.ts +2 -2
- package/dist/store/reducers/partitions/partitions.d.ts +2 -2
- package/dist/store/reducers/pdisk/pdisk.d.ts +3 -3
- package/dist/store/reducers/preview.d.ts +2 -2
- package/dist/store/reducers/schema/schema.d.ts +3 -3
- package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +2 -2
- package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +2 -2
- package/dist/store/reducers/storage/storage.d.ts +3 -3
- package/dist/store/reducers/storage/types.d.ts +15 -0
- package/dist/store/reducers/storage/types.js.map +1 -1
- package/dist/store/reducers/tableData.d.ts +14 -0
- package/dist/store/reducers/tableData.js +25 -0
- package/dist/store/reducers/tableData.js.map +1 -0
- package/dist/store/reducers/tablet.d.ts +19 -3
- package/dist/store/reducers/tablet.js +82 -13
- package/dist/store/reducers/tablet.js.map +1 -1
- package/dist/store/reducers/tablets.d.ts +15 -23
- package/dist/store/reducers/tablets.js +2 -20
- package/dist/store/reducers/tablets.js.map +1 -1
- package/dist/store/reducers/tabletsFilters.d.ts +1 -2
- package/dist/store/reducers/tenant/tenant.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +2 -2
- package/dist/store/reducers/tenants/selectors.d.ts +27 -36
- package/dist/store/reducers/tenants/selectors.js +1 -1
- package/dist/store/reducers/tenants/selectors.js.map +1 -1
- package/dist/store/reducers/tenants/tenants.d.ts +2 -2
- package/dist/store/reducers/topic.d.ts +44 -59
- package/dist/store/reducers/vdisk/vdisk.d.ts +2 -2
- package/dist/store/reducers/viewSchema/viewSchema.d.ts +2 -2
- package/dist/styles/mixins.scss +0 -5
- package/dist/types/api/capabilities.d.ts +1 -1
- package/dist/types/api/schema/shared.d.ts +1 -3
- package/dist/types/api/schema/shared.js.map +1 -1
- package/dist/types/api/schema/table.d.ts +2 -0
- package/dist/types/api/schema/table.js.map +1 -1
- package/dist/types/api/tablet.d.ts +22 -0
- package/dist/types/store/executeQuery.d.ts +5 -2
- package/dist/types/store/tablets.d.ts +1 -0
- package/dist/utils/constants.d.ts +1 -2
- package/dist/utils/constants.js +1 -2
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/dataFormatters/dataFormatters.d.ts +1 -0
- package/dist/utils/dataFormatters/dataFormatters.js +5 -0
- package/dist/utils/dataFormatters/dataFormatters.js.map +1 -1
- package/dist/utils/developerUI/developerUI.d.ts +1 -1
- package/dist/utils/developerUI/developerUI.js +3 -2
- package/dist/utils/developerUI/developerUI.js.map +1 -1
- package/dist/utils/hooks/useQueryExecutionSettings.js +3 -2
- package/dist/utils/hooks/useQueryExecutionSettings.js.map +1 -1
- package/package.json +2 -1
- package/dist/components/DiskPageTitle/DiskPageTitle.d.ts +0 -10
- package/dist/components/DiskPageTitle/DiskPageTitle.js.map +0 -1
- package/dist/components/PaginatedTable/reducer.d.ts +0 -43
- package/dist/components/PaginatedTable/reducer.js +0 -104
- package/dist/components/PaginatedTable/reducer.js.map +0 -1
- package/dist/containers/Tablet/TabletControls/TabletControls.d.ts +0 -7
- package/dist/containers/Tablet/TabletControls/TabletControls.js +0 -29
- package/dist/containers/Tablet/TabletControls/TabletControls.js.map +0 -1
- package/dist/containers/Tablet/TabletControls/index.js.map +0 -1
- package/dist/containers/Tablet/TabletInfo/TabletInfo.d.ts +0 -7
- package/dist/containers/Tablet/TabletInfo/TabletInfo.js +0 -40
- package/dist/containers/Tablet/TabletInfo/TabletInfo.js.map +0 -1
- package/dist/containers/Tablet/TabletInfo/index.js.map +0 -1
- package/dist/containers/Tablet/TabletTable/TabletTable.js.map +0 -1
- package/dist/containers/Tablet/TabletTable/index.js.map +0 -1
- /package/dist/containers/Tablet/{TabletControls → components/TabletControls}/index.d.ts +0 -0
- /package/dist/containers/Tablet/{TabletControls → components/TabletControls}/index.js +0 -0
- /package/dist/containers/Tablet/{TabletInfo → components/TabletInfo}/index.d.ts +0 -0
- /package/dist/containers/Tablet/{TabletInfo → components/TabletInfo}/index.js +0 -0
- /package/dist/containers/Tablet/{TabletTable → components/TabletTable}/index.d.ts +0 -0
- /package/dist/containers/Tablet/{TabletTable → components/TabletTable}/index.js +0 -0
@@ -1,11 +1,14 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
2
|
import { Text } from '@gravity-ui/uikit';
|
3
3
|
import omit from 'lodash/omit';
|
4
|
+
import { toFormattedSize } from '../../../../../components/FormattedBytes/utils';
|
4
5
|
import { formatObject } from '../../../../../components/InfoViewer';
|
5
6
|
import { formatFollowerGroupItem, formatPartitionConfigItem, formatTableStatsItem, formatTabletMetricsItem, } from '../../../../../components/InfoViewer/formatters';
|
6
7
|
import { EPathType } from '../../../../../types/api/schema';
|
8
|
+
import { valueIsDefined } from '../../../../../utils';
|
7
9
|
import { formatBytes, formatNumber } from '../../../../../utils/dataFormatters/dataFormatters';
|
8
10
|
import { formatDurationToShortTimeFormat } from '../../../../../utils/timeParsers';
|
11
|
+
import { isNumeric } from '../../../../../utils/utils';
|
9
12
|
import i18n from './i18n';
|
10
13
|
const isInStoreColumnTable = (table) => {
|
11
14
|
// SchemaPresetId could be 0
|
@@ -84,10 +87,12 @@ const prepareTableGeneralInfo = (PartitionConfig, TTLSettings) => {
|
|
84
87
|
generalTableInfo.push(ttlInfo);
|
85
88
|
}
|
86
89
|
}
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
90
|
+
if (valueIsDefined(EnableFilterByKey)) {
|
91
|
+
generalTableInfo.push({
|
92
|
+
label: i18n('label.bloom-filter'),
|
93
|
+
value: EnableFilterByKey ? i18n('enabled') : i18n('disabled'),
|
94
|
+
});
|
95
|
+
}
|
91
96
|
return generalTableInfo;
|
92
97
|
};
|
93
98
|
/** Prepares data for Table, ColumnTable and ColumnStore */
|
@@ -97,7 +102,7 @@ export const prepareTableInfo = (data, type) => {
|
|
97
102
|
}
|
98
103
|
const { PathDescription = {} } = data;
|
99
104
|
const { TableStats = {}, TabletMetrics = {}, Table: { PartitionConfig = {}, TTLSettings } = {}, ColumnTableDescription = {}, } = PathDescription;
|
100
|
-
const { PartCount, RowCount, DataSize, IndexSize, LastAccessTime, LastUpdateTime, ImmediateTxCompleted, PlannedTxCompleted, TxRejectedByOverload, TxRejectedBySpace, TxCompleteLagMsec, InFlightTxCount, RowUpdates, RowDeletes, RowReads, RangeReads, RangeReadRows, } = TableStats;
|
105
|
+
const { PartCount, RowCount, DataSize, IndexSize, ByKeyFilterSize, LastAccessTime, LastUpdateTime, ImmediateTxCompleted, PlannedTxCompleted, TxRejectedByOverload, TxRejectedBySpace, TxCompleteLagMsec, InFlightTxCount, RowUpdates, RowDeletes, RowReads, RangeReads, RangeReadRows, } = TableStats;
|
101
106
|
const { FollowerGroups, FollowerCount, CrossDataCenterFollowerCount } = PartitionConfig;
|
102
107
|
let generalInfo = [];
|
103
108
|
switch (type) {
|
@@ -110,13 +115,18 @@ export const prepareTableInfo = (data, type) => {
|
|
110
115
|
break;
|
111
116
|
}
|
112
117
|
}
|
118
|
+
const generalStats = formatObject(formatTableStatsItem, {
|
119
|
+
PartCount,
|
120
|
+
RowCount,
|
121
|
+
DataSize,
|
122
|
+
IndexSize,
|
123
|
+
});
|
124
|
+
if (isNumeric(ByKeyFilterSize) &&
|
125
|
+
(PartitionConfig.EnableFilterByKey || Number(ByKeyFilterSize) > 0)) {
|
126
|
+
generalStats.push({ label: 'BloomFilterSize', value: toFormattedSize(ByKeyFilterSize) });
|
127
|
+
}
|
113
128
|
const tableStatsInfo = [
|
114
|
-
|
115
|
-
PartCount,
|
116
|
-
RowCount,
|
117
|
-
DataSize,
|
118
|
-
IndexSize,
|
119
|
-
}),
|
129
|
+
generalStats,
|
120
130
|
formatObject(formatTableStatsItem, {
|
121
131
|
LastAccessTime,
|
122
132
|
LastUpdateTime,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"prepareTableInfo.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,IAAI,MAAM,aAAa,CAAC;
|
1
|
+
{"version":3,"file":"prepareTableInfo.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,IAAI,MAAM,aAAa,CAAC;AAE/B,OAAO,EAAC,eAAe,EAAC,MAAM,gDAAgD,CAAC;AAE/E,OAAO,EAAC,YAAY,EAAC,MAAM,sCAAsC,CAAC;AAClE,OAAO,EACH,uBAAuB,EACvB,yBAAyB,EACzB,oBAAoB,EACpB,uBAAuB,GAC1B,MAAM,iDAAiD,CAAC;AAQzD,OAAO,EAAC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AM,GAAG,CAAC,EAAE,CAAC;QAC7D,mBAAmB,GAAG,YAAY,CAAC,uBAAuB,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IACnF,CAAC;SAAM,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;QACrC,mBAAmB,CAAC,IAAI,CAAC,yBAAyB,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC,CAAC;IACxF,CAAC;SAAM,IAAI,4BAA4B,KAAK,SAAS,EAAE,CAAC;QACpD,mBAAmB,CAAC,IAAI,CACpB,yBAAyB,CAAC,8BAA8B,EAAE,4BAA4B,CAAC,CAC1F,CAAC;IACN,CAAC;IAED,OAAO,EAAC,WAAW,EAAE,cAAc,EAAE,iBAAiB,EAAE,mBAAmB,EAAC,CAAC;AACjF,CAAC,CAAC"}
|
@@ -5,7 +5,7 @@ import { EntityStatus } from '../../../../components/EntityStatus/EntityStatus';
|
|
5
5
|
import { InternalLink } from '../../../../components/InternalLink';
|
6
6
|
import { LinkToSchemaObject } from '../../../../components/LinkToSchemaObject/LinkToSchemaObject';
|
7
7
|
import { UsageLabel } from '../../../../components/UsageLabel/UsageLabel';
|
8
|
-
import
|
8
|
+
import { getTabletPagePath } from '../../../../routes';
|
9
9
|
import { getLoadSeverityForShard } from '../../../../store/reducers/tenantOverview/topShards/utils';
|
10
10
|
import { formatNumber, roundToPrecision } from '../../../../utils/dataFormatters/dataFormatters';
|
11
11
|
import { createTabletDeveloperUIHref } from '../../../../utils/developerUI/developerUI';
|
@@ -68,7 +68,7 @@ const tabletIdColumn = {
|
|
68
68
|
if (!row.TabletId) {
|
69
69
|
return '–';
|
70
70
|
}
|
71
|
-
return (_jsx(EntityStatus, { name: (_a = row.TabletId) === null || _a === void 0 ? void 0 : _a.toString(), path:
|
71
|
+
return (_jsx(EntityStatus, { name: (_a = row.TabletId) === null || _a === void 0 ? void 0 : _a.toString(), path: getTabletPagePath(row.TabletId), hasClipboardButton: true, showStatus: false, additionalControls: _jsx(DeveloperUILinkButton, { href: createTabletDeveloperUIHref(row.TabletId) }) }));
|
72
72
|
},
|
73
73
|
sortable: false,
|
74
74
|
width: 220,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getTopShardsColumns.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAIrD,OAAO,EAAC,qBAAqB,EAAC,MAAM,oEAAoE,CAAC;AACzG,OAAO,EAAC,YAAY,EAAC,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAC,YAAY,EAAC,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAC,kBAAkB,EAAC,MAAM,8DAA8D,CAAC;AAChG,OAAO,EAAC,UAAU,EAAC,MAAM,8CAA8C,CAAC;AACxE,OAAO,
|
1
|
+
{"version":3,"file":"getTopShardsColumns.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAIrD,OAAO,EAAC,qBAAqB,EAAC,MAAM,oEAAoE,CAAC;AACzG,OAAO,EAAC,YAAY,EAAC,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAC,YAAY,EAAC,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAC,kBAAkB,EAAC,MAAM,8DAA8D,CAAC;AAChG,OAAO,EAAC,UAAU,EAAC,MAAM,8CAA8C,CAAC;AACxE,OAAO,EAAC,iBAAiB,EAAC,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAC,uBAAuB,EAAC,MAAM,2DAA2D,CAAC;AAGlG,OAAO,EAAC,YAAY,EAAE,gBAAgB,EAAC,MAAM,iDAAiD,CAAC;AAC/F,OAAO,EAAC,2BAA2B,EAAC,MAAM,2CAA2C,CAAC;AACtF,OAAO,EAAC,kBAAkB,EAAC,MAAM,yBAAyB,CAAC;AAE3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AE,EAAE;IAC/E,OAAO;QACH,aAAa,CAAC,UAAU,EAAE,QAAQ,CAAC;QACnC,cAAc;QACd,cAAc;QACd,cAAc;QACd,YAAY;QACZ,qBAAqB;KACxB,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,UAAkB,EAAE,QAAkB,EAAE,EAAE;IAC1E,OAAO,CAAC,cAAc,EAAE,aAAa,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,uBAAuB,CAAC,CAAC;AAC1F,CAAC,CAAC"}
|
@@ -1,5 +1,7 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import React from 'react';
|
2
3
|
import { useThemeValue } from '@gravity-ui/uikit';
|
4
|
+
import NotRenderUntilFirstVisible from '../../../components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible';
|
3
5
|
import { TENANT_PAGES_IDS } from '../../../store/reducers/tenant/constants';
|
4
6
|
import { cn } from '../../../utils/cn';
|
5
7
|
import { useTypedSelector } from '../../../utils/hooks';
|
@@ -13,14 +15,7 @@ function ObjectGeneral(props) {
|
|
13
15
|
const { tenantPage } = useTypedSelector((state) => state.tenant);
|
14
16
|
const renderPageContent = () => {
|
15
17
|
const { type, additionalTenantProps, additionalNodesProps, tenantName, path } = props;
|
16
|
-
|
17
|
-
case TENANT_PAGES_IDS.query: {
|
18
|
-
return _jsx(Query, { tenantName: tenantName, path: path, theme: theme, type: type });
|
19
|
-
}
|
20
|
-
default: {
|
21
|
-
return (_jsx(Diagnostics, { type: type, tenantName: tenantName, path: path, additionalTenantProps: additionalTenantProps, additionalNodesProps: additionalNodesProps }));
|
22
|
-
}
|
23
|
-
}
|
18
|
+
return (_jsxs(React.Fragment, { children: [_jsx(NotRenderUntilFirstVisible, { show: tenantPage === TENANT_PAGES_IDS.query, children: _jsx(Query, { tenantName: tenantName, path: path, theme: theme, type: type }) }), _jsx(NotRenderUntilFirstVisible, { show: tenantPage === TENANT_PAGES_IDS.diagnostics, children: _jsx(Diagnostics, { type: type, tenantName: tenantName, path: path, additionalTenantProps: additionalTenantProps, additionalNodesProps: additionalNodesProps }) })] }));
|
24
19
|
};
|
25
20
|
return (_jsxs("div", { className: b(), children: [_jsx(TenantNavigation, {}), renderPageContent()] }));
|
26
21
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ObjectGeneral.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/ObjectGeneral/ObjectGeneral.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAC,gBAAgB,EAAC,MAAM,0CAA0C,CAAC;AAG1E,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AACrC,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AACtD,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAC,KAAK,EAAC,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAC,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;AAEtE,OAAO,sBAAsB,CAAC;AAE9B,MAAM,CAAC,GAAG,EAAE,CAAC,gBAAgB,CAAC,CAAC;AAU/B,SAAS,aAAa,CAAC,KAAyB;IAC5C,MAAM,KAAK,GAAG,aAAa,EAAE,CAAC;IAE9B,MAAM,EAAC,UAAU,EAAC,GAAG,gBAAgB,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAE/D,MAAM,iBAAiB,GAAG,GAAG,EAAE;QAC3B,MAAM,EAAC,IAAI,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,UAAU,EAAE,IAAI,EAAC,GAAG,KAAK,CAAC;
|
1
|
+
{"version":3,"file":"ObjectGeneral.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/ObjectGeneral/ObjectGeneral.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAA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AqB,EAAE,qBAAqB,EAC5C,oBAAoB,EAAE,oBAAoB,GAC5C,GACuB,IAChB,CACpB,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,EAAE,aACf,KAAC,gBAAgB,KAAG,EACnB,iBAAiB,EAAE,IAClB,CACT,CAAC;AACN,CAAC;AAED,eAAe,aAAa,CAAC"}
|
package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.js
CHANGED
@@ -6,7 +6,7 @@ import { formatToMs } from '../../../../../../utils/timeParsers';
|
|
6
6
|
import { toExponential } from '../../../../../../utils/utils';
|
7
7
|
import { MetricsCell } from './MetricsCell';
|
8
8
|
import { OperationCell } from './OperationCell';
|
9
|
-
import { block, getExtendedTreeNodes
|
9
|
+
import { block, getExtendedTreeNodes } from './utils';
|
10
10
|
import './SimplifiedPlan.scss';
|
11
11
|
function nameAccessorFn(row) {
|
12
12
|
return { name: row.name, operationParams: row.operationParams, lines: row.lines };
|
@@ -73,10 +73,7 @@ const columns = [
|
|
73
73
|
];
|
74
74
|
export function SimplifiedPlan({ plan }) {
|
75
75
|
const planWithLinesInfo = React.useMemo(() => getExtendedTreeNodes(plan), [plan]);
|
76
|
-
const [expanded, setExpanded] = React.useState(
|
77
|
-
const coordinates = getTreeNodesCoordinates(plan);
|
78
|
-
return Object.fromEntries(coordinates.map((id) => [id, true]));
|
79
|
-
});
|
76
|
+
const [expanded, setExpanded] = React.useState(true);
|
80
77
|
const table = useTable({
|
81
78
|
columns,
|
82
79
|
data: planWithLinesInfo,
|
package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SimplifiedPlan.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/ExplainResult/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,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EAAC,KAAK,EAAE,oBAAoB,
|
1
|
+
{"version":3,"file":"SimplifiedPlan.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/ExplainResult/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,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EAAC,KAAK,EAAE,oBAAoB,EAAC,MAAM,SAAS,CAAC;AAEpD,OAAO,uBAAuB,CAAC;AAE/B,SAAS,cAAc,CAAC,GAA+B;IACnD,OAAO,EAAC,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,eAAe,EAAE,GAAG,CAAC,eAAe,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,EAAC,CAAC;AACpF,CAAC;AAED,SAAS,WAAW,CAAC,IAAsD;IACvE,MAAM,SAAS,GAAG,CAAC,KAAa,EAAE,EAAE,CAChC,KAAK,GAAG,GAAG,CAAC,CAAC,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explainQuery/types';
|
2
2
|
import type { ExtendedSimplifiesPlanItem } from './types';
|
3
3
|
export declare const block: import("@bem-react/classname").ClassNameFormatter;
|
4
|
-
export declare function getTreeNodesCoordinates(items?: SimplifiedPlanItem[], prefix?: string): string[];
|
5
4
|
export declare function getExtendedTreeNodes(items?: SimplifiedPlanItem[], prefix?: string): ExtendedSimplifiesPlanItem[];
|
@@ -1,26 +1,5 @@
|
|
1
1
|
import { cn } from '../../../../../../utils/cn';
|
2
2
|
export const block = cn('ydb-query-explain-simplified-plan');
|
3
|
-
export function getTreeNodesCoordinates(items, prefix = '') {
|
4
|
-
const result = [];
|
5
|
-
const stack = [];
|
6
|
-
if (items) {
|
7
|
-
stack.push({ items, prefix });
|
8
|
-
}
|
9
|
-
while (stack.length > 0) {
|
10
|
-
const { items, prefix } = stack.pop();
|
11
|
-
items === null || items === void 0 ? void 0 : items.forEach((item, index) => {
|
12
|
-
let newPrefix = `${prefix}.${index}`;
|
13
|
-
if (!prefix) {
|
14
|
-
newPrefix = String(index);
|
15
|
-
}
|
16
|
-
result.push(newPrefix);
|
17
|
-
if (item.children) {
|
18
|
-
stack.push({ items: item.children, prefix: newPrefix });
|
19
|
-
}
|
20
|
-
});
|
21
|
-
}
|
22
|
-
return result;
|
23
|
-
}
|
24
3
|
export function getExtendedTreeNodes(items, prefix = '') {
|
25
4
|
if (!items) {
|
26
5
|
return [];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,EAAE,EAAC,MAAM,4BAA4B,CAAC;AAI9C,MAAM,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC,mCAAmC,CAAC,CAAC;AAE7D,MAAM,UAAU,
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.ts"],"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,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"}
|
@@ -7,7 +7,9 @@ import { selectQueriesHistory, selectQueriesHistoryFilter, setQueryHistoryFilter
|
|
7
7
|
import { TENANT_QUERY_TABS_ID } from '../../../../store/reducers/tenant/constants';
|
8
8
|
import { setQueryTab } from '../../../../store/reducers/tenant/tenant';
|
9
9
|
import { cn } from '../../../../utils/cn';
|
10
|
+
import { formatDateTime } from '../../../../utils/dataFormatters/dataFormatters';
|
10
11
|
import { useTypedDispatch, useTypedSelector } from '../../../../utils/hooks';
|
12
|
+
import { formatToMs, parseUsToMs } from '../../../../utils/timeParsers';
|
11
13
|
import { MAX_QUERY_HEIGHT, QUERY_TABLE_SETTINGS } from '../../utils/constants';
|
12
14
|
import i18n from '../i18n';
|
13
15
|
import './QueriesHistory.scss';
|
@@ -28,13 +30,29 @@ function QueriesHistory({ changeUserInput }) {
|
|
28
30
|
const columns = [
|
29
31
|
{
|
30
32
|
name: 'queryText',
|
31
|
-
header: '
|
33
|
+
header: i18n('history.queryText'),
|
32
34
|
render: ({ row }) => {
|
33
35
|
return (_jsx("div", { className: b('query'), children: _jsx(TruncatedQuery, { value: row.queryText, maxQueryHeight: MAX_QUERY_HEIGHT }) }));
|
34
36
|
},
|
35
37
|
sortable: false,
|
36
38
|
width: 600,
|
37
39
|
},
|
40
|
+
{
|
41
|
+
name: 'EndTime',
|
42
|
+
header: i18n('history.endTime'),
|
43
|
+
render: ({ row }) => (row.endTime ? formatDateTime(row.endTime.toString()) : '-'),
|
44
|
+
align: 'right',
|
45
|
+
width: 200,
|
46
|
+
sortable: false,
|
47
|
+
},
|
48
|
+
{
|
49
|
+
name: 'Duration',
|
50
|
+
header: i18n('history.duration'),
|
51
|
+
render: ({ row }) => (row.durationUs ? formatToMs(parseUsToMs(row.durationUs)) : '-'),
|
52
|
+
align: 'right',
|
53
|
+
width: 150,
|
54
|
+
sortable: false,
|
55
|
+
},
|
38
56
|
];
|
39
57
|
return (_jsxs(TableWithControlsLayout, { className: b(), children: [_jsx(TableWithControlsLayout.Controls, { children: _jsx(Search, { value: filter, onChange: onChangeFilter, placeholder: i18n('filter.text.placeholder'), className: b('search') }) }), _jsx(TableWithControlsLayout.Table, { children: _jsx(ResizeableDataTable, { columnsWidthLSKey: QUERIES_HISTORY_COLUMNS_WIDTH_LS_KEY, columns: columns, data: reversedHistory, settings: QUERY_TABLE_SETTINGS, emptyDataMessage: i18n(filter ? 'history.empty-search' : 'history.empty'), onRowClick: (row) => onQueryClick(row), rowClassName: () => b('table-row') }) })] }));
|
40
58
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueriesHistory.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/QueriesHistory/QueriesHistory.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,mBAAmB,EAAC,MAAM,gEAAgE,CAAC;AACnG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAC,uBAAuB,EAAC,MAAM,wEAAwE,CAAC;AAC/G,OAAO,EAAC,cAAc,EAAC,MAAM,sDAAsD,CAAC;AACpF,OAAO,EACH,oBAAoB,EACpB,0BAA0B,EAC1B,qBAAqB,GACxB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAC,oBAAoB,EAAC,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAAC,WA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V,QAAQ,EAAE,KAAK;SAClB;KACJ,CAAC;IAEF,OAAO,CACH,MAAC,uBAAuB,IAAC,SAAS,EAAE,CAAC,EAAE,aACnC,KAAC,uBAAuB,CAAC,QAAQ,cAC7B,KAAC,MAAM,IACH,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,cAAc,EACxB,WAAW,EAAE,IAAI,CAAC,yBAAyB,CAAC,EAC5C,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,GACxB,GAC6B,EACnC,KAAC,uBAAuB,CAAC,KAAK,cAC1B,KAAC,mBAAmB,IAChB,iBAAiB,EAAE,oCAAoC,EACvD,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,eAAe,EACrB,QAAQ,EAAE,oBAAoB,EAC9B,gBAAgB,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,eAAe,CAAC,EACzE,UAAU,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,EACtC,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,GACpC,GAC0B,IACV,CAC7B,CAAC;AACN,CAAC;AAED,eAAe,cAAc,CAAC"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import React from 'react';
|
3
3
|
import { Helmet } from 'react-helmet-async';
|
4
|
+
import NotRenderUntilFirstVisible from '../../../components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible';
|
4
5
|
import { changeUserInput } from '../../../store/reducers/executeQuery';
|
5
6
|
import { TENANT_QUERY_TABS_ID } from '../../../store/reducers/tenant/constants';
|
6
7
|
import { cn } from '../../../utils/cn';
|
@@ -19,20 +20,7 @@ export const Query = (props) => {
|
|
19
20
|
};
|
20
21
|
const activeTab = React.useMemo(() => queryEditorTabs.find(({ id }) => id === queryTab), [queryTab]);
|
21
22
|
const renderContent = () => {
|
22
|
-
|
23
|
-
case TENANT_QUERY_TABS_ID.newQuery: {
|
24
|
-
return _jsx(QueryEditor, { changeUserInput: handleUserInputChange, ...props });
|
25
|
-
}
|
26
|
-
case TENANT_QUERY_TABS_ID.history: {
|
27
|
-
return _jsx(QueriesHistory, { changeUserInput: handleUserInputChange });
|
28
|
-
}
|
29
|
-
case TENANT_QUERY_TABS_ID.saved: {
|
30
|
-
return _jsx(SavedQueries, { changeUserInput: handleUserInputChange });
|
31
|
-
}
|
32
|
-
default: {
|
33
|
-
return null;
|
34
|
-
}
|
35
|
-
}
|
23
|
+
return (_jsxs(React.Fragment, { children: [_jsx(NotRenderUntilFirstVisible, { show: queryTab === TENANT_QUERY_TABS_ID.newQuery, children: _jsx(QueryEditor, { changeUserInput: handleUserInputChange, ...props }) }), _jsx(NotRenderUntilFirstVisible, { show: queryTab === TENANT_QUERY_TABS_ID.history, children: _jsx(QueriesHistory, { changeUserInput: handleUserInputChange }) }), _jsx(NotRenderUntilFirstVisible, { show: queryTab === TENANT_QUERY_TABS_ID.saved, children: _jsx(SavedQueries, { changeUserInput: handleUserInputChange }) })] }));
|
36
24
|
};
|
37
25
|
return (_jsxs("div", { className: b(), children: [activeTab ? (_jsx(Helmet, { children: _jsx("title", { children: activeTab.title }) })) : null, _jsx(QueryTabs, { className: b('tabs'), activeTab: queryTab }), _jsx("div", { className: b('content'), children: renderContent() })] }));
|
38
26
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/Query/Query.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAE1C,OAAO,EAAC,eAAe,EAAC,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAC,oBAAoB,EAAC,MAAM,0CAA0C,CAAC;AAE9E,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AACrC,OAAO,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AAC,IAAI,EAAE,QAAQ,KAAK,oBAAoB,CAAC,OAAO,YACvE,KAAC,cAAc,IAAC,eAAe,EAAE,qBAAqB,GAAI,GACjC,EAC7B,KAAC,0BAA0B,IAAC,IAAI,EAAE,QAAQ,KAAK,oBAAoB,CAAC,KAAK,YACrE,KAAC,YAAY,IAAC,eAAe,EAAE,qBAAqB,GAAI,GAC/B,IAChB,CACpB,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,EAAE,aACd,SAAS,CAAC,CAAC,CAAC,CACT,KAAC,MAAM,cACH,0BAAQ,SAAS,CAAC,KAAK,GAAS,GAC3B,CACZ,CAAC,CAAC,CAAC,IAAI,EACR,KAAC,SAAS,IAAC,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,QAAQ,GAAI,EACxD,cAAK,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,YAAG,aAAa,EAAE,GAAO,IACnD,CACT,CAAC;AACN,CAAC,CAAC"}
|
@@ -7,12 +7,13 @@ import { v4 as uuidv4 } from 'uuid';
|
|
7
7
|
import { MonacoEditor } from '../../../../components/MonacoEditor/MonacoEditor';
|
8
8
|
import SplitPane from '../../../../components/SplitPane';
|
9
9
|
import { cancelQueryApi } from '../../../../store/reducers/cancelQuery';
|
10
|
+
import { useTracingLevelOptionAvailable } from '../../../../store/reducers/capabilities/hooks';
|
10
11
|
import { executeQueryApi, goToNextQuery, goToPreviousQuery, saveQueryToHistory, setTenantPath, } from '../../../../store/reducers/executeQuery';
|
11
12
|
import { explainQueryApi } from '../../../../store/reducers/explainQuery/explainQuery';
|
12
13
|
import { setQueryAction } from '../../../../store/reducers/queryActions/queryActions';
|
13
14
|
import { setShowPreview } from '../../../../store/reducers/schema/schema';
|
14
15
|
import { cn } from '../../../../utils/cn';
|
15
|
-
import { DEFAULT_IS_QUERY_RESULT_COLLAPSED, DEFAULT_SIZE_RESULT_PANE_KEY,
|
16
|
+
import { DEFAULT_IS_QUERY_RESULT_COLLAPSED, DEFAULT_SIZE_RESULT_PANE_KEY, LAST_USED_QUERY_ACTION_KEY, QUERY_USE_MULTI_SCHEMA_KEY, } from '../../../../utils/constants';
|
16
17
|
import { useEventHandler, useQueryExecutionSettings, useSetting } from '../../../../utils/hooks';
|
17
18
|
import { useChangedQuerySettings } from '../../../../utils/hooks/useChangedQuerySettings';
|
18
19
|
import { useLastQueryExecutionSettings } from '../../../../utils/hooks/useLastQueryExecutionSettings';
|
@@ -48,7 +49,7 @@ function QueryEditor(props) {
|
|
48
49
|
const [resultType, setResultType] = React.useState();
|
49
50
|
const [isResultLoaded, setIsResultLoaded] = React.useState(false);
|
50
51
|
const [querySettings] = useQueryExecutionSettings();
|
51
|
-
const
|
52
|
+
const enableTracingLevel = useTracingLevelOptionAvailable();
|
52
53
|
const [lastQueryExecutionSettings, setLastQueryExecutionSettings] = useLastQueryExecutionSettings();
|
53
54
|
const { resetBanner } = useChangedQuerySettings();
|
54
55
|
const [useMultiSchema] = useSetting(QUERY_USE_MULTI_SCHEMA_KEY);
|
@@ -108,14 +109,13 @@ function QueryEditor(props) {
|
|
108
109
|
if (!text) {
|
109
110
|
const { queries, currentIndex } = history;
|
110
111
|
if (query !== ((_a = queries[currentIndex]) === null || _a === void 0 ? void 0 : _a.queryText)) {
|
111
|
-
props.saveQueryToHistory(input);
|
112
|
+
props.saveQueryToHistory(input, queryId);
|
112
113
|
}
|
113
114
|
}
|
114
115
|
dispatchResultVisibilityState(PaneVisibilityActionTypes.triggerExpand);
|
115
116
|
});
|
116
117
|
const handleSettingsClick = () => {
|
117
118
|
props.setQueryAction('settings');
|
118
|
-
props.setShowPreview(false);
|
119
119
|
};
|
120
120
|
const handleGetExplainQueryClick = useEventHandler(() => {
|
121
121
|
const { input } = executeQuery;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryEditor.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/QueryEditor/QueryEditor.tsx"],"names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C,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,6 +1,6 @@
|
|
1
1
|
import { ISOLATION_LEVELS, QUERY_MODES, STATISTICS_MODES, TRACING_LEVELS, } from '../../../../../utils/query';
|
2
2
|
const DEFAULT_QUERY_SETTINGS = {
|
3
|
-
queryMode: QUERY_MODES.
|
3
|
+
queryMode: QUERY_MODES.query,
|
4
4
|
isolationLevel: ISOLATION_LEVELS.serializable,
|
5
5
|
timeout: '60',
|
6
6
|
statisticsMode: STATISTICS_MODES.none,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getChangedQueryExecutionSettings.test.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.ts"],"names":[],"mappings":"AACA,OAAO,EACH,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,cAAc,GACjB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,sBAAsB,GAAkB;IAC1C,SAAS,EAAE,WAAW,CAAC,
|
1
|
+
{"version":3,"file":"getChangedQueryExecutionSettings.test.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.ts"],"names":[],"mappings":"AACA,OAAO,EACH,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,cAAc,GACjB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,sBAAsB,GAAkB;IAC1C,SAAS,EAAE,WAAW,CAAC,KAAK;IAC5B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W;YACX,gBAAgB;YAChB,SAAS;YACT,gBAAgB;YAChB,cAAc;SACjB,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
@@ -2,7 +2,7 @@ import { ISOLATION_LEVELS, ISOLATION_LEVELS_TITLES, QUERY_MODES, QUERY_MODES_TIT
|
|
2
2
|
import { QUERY_SETTINGS_FIELD_SETTINGS } from '../../QuerySettingsDialog/constants';
|
3
3
|
import getChangedQueryExecutionSettingsDescription from './getChangedQueryExecutionSettingsDescription';
|
4
4
|
const DEFAULT_QUERY_SETTINGS = {
|
5
|
-
queryMode: QUERY_MODES.
|
5
|
+
queryMode: QUERY_MODES.query,
|
6
6
|
isolationLevel: ISOLATION_LEVELS.serializable,
|
7
7
|
timeout: '60',
|
8
8
|
statisticsMode: STATISTICS_MODES.none,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getChangedQueryExecutionSettingsDescription.test.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.ts"],"names":[],"mappings":"AACA,OAAO,EACH,gBAAgB,EAChB,uBAAuB,EACvB,WAAW,EACX,kBAAkB,EAClB,gBAAgB,EAChB,uBAAuB,EACvB,cAAc,EACd,qBAAqB,GACxB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAC,6BAA6B,EAAC,MAAM,qCAAqC,CAAC;AAElF,OAAO,2CAA2C,MAAM,+CAA+C,CAAC;AAExG,MAAM,sBAAsB,GAAkB;IAC1C,SAAS,EAAE,WAAW,CAAC,
|
1
|
+
{"version":3,"file":"getChangedQueryExecutionSettingsDescription.test.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.ts"],"names":[],"mappings":"AACA,OAAO,EACH,gBAAgB,EAChB,uBAAuB,EACvB,WAAW,EACX,kBAAkB,EAClB,gBAAgB,EAChB,uBAAuB,EACvB,cAAc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O,CAAC,KAAK,CAAC,EAAE,IAAI;SACtD,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,gEAAgE,EAAE,GAAG,EAAE;QACtE,MAAM,eAAe,GAAkB;YACnC,SAAS,EAAE,WAAW,CAAC,IAAI;YAC3B,cAAc,EAAE,gBAAgB,CAAC,QAAQ;YACzC,OAAO,EAAE,KAAK;YACd,cAAc,EAAE,gBAAgB,CAAC,OAAO;YACxC,YAAY,EAAE,cAAc,CAAC,UAAU;SAC1C,CAAC;QAEF,MAAM,MAAM,GAAG,2CAA2C,CAAC;YACvD,eAAe;YACf,eAAe,EAAE,sBAAsB;SAC1C,CAAC,CAAC;QAEH,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC;YACnB,CAAC,6BAA6B,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,kBAAkB,CAAC,IAAI;YACxE,CAAC,6BAA6B,CAAC,cAAc,CAAC,KAAK,CAAC,EAChD,uBAAuB,CAAC,oBAAoB,CAAC;YACjD,CAAC,6BAA6B,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK;YACpD,CAAC,6BAA6B,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,uBAAuB,CAAC,OAAO;YACrF,CAAC,6BAA6B,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,qBAAqB,CAAC,UAAU;SACvF,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
@@ -2,10 +2,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
3
3
|
import { Dialog, Link as ExternalLink, Flex, TextInput } from '@gravity-ui/uikit';
|
4
4
|
import { Controller, useForm } from 'react-hook-form';
|
5
|
-
import {
|
5
|
+
import { useTracingLevelOptionAvailable } from '../../../../store/reducers/capabilities/hooks';
|
6
6
|
import { selectQueryAction, setQueryAction, } from '../../../../store/reducers/queryActions/queryActions';
|
7
7
|
import { cn } from '../../../../utils/cn';
|
8
|
-
import { useQueryExecutionSettings,
|
8
|
+
import { useQueryExecutionSettings, useTypedDispatch, useTypedSelector, } from '../../../../utils/hooks';
|
9
9
|
import { QuerySettingsSelect } from './QuerySettingsSelect';
|
10
10
|
import { QUERY_SETTINGS_FIELD_SETTINGS } from './constants';
|
11
11
|
import i18n from './i18n';
|
@@ -28,7 +28,7 @@ function QuerySettingsForm({ initialValues, onSubmit, onClose }) {
|
|
28
28
|
const { control, handleSubmit } = useForm({
|
29
29
|
defaultValues: initialValues,
|
30
30
|
});
|
31
|
-
const
|
31
|
+
const enableTracingLevel = useTracingLevelOptionAvailable();
|
32
32
|
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, { 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 }) => (_jsxs(React.Fragment, { children: [_jsx(TextInput, { type: "number", ...field, className: b('timeout'), placeholder: "60" }), _jsx("span", { className: b('timeout-suffix'), children: i18n('form.timeout.seconds') })] })) }) })] }), 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, { 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: "isolationLevel", className: b('field-title'), children: QUERY_SETTINGS_FIELD_SETTINGS.isolationLevel.title }), _jsx("div", { className: b('control-wrapper', { isolationLevel: true }), children: _jsx(Controller, { name: "isolationLevel", control: control, render: ({ field }) => (_jsx(QuerySettingsSelect, { setting: field.value, onUpdateSetting: field.onChange, settingOptions: QUERY_SETTINGS_FIELD_SETTINGS.isolationLevel.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, { setting: field.value, onUpdateSetting: field.onChange, settingOptions: QUERY_SETTINGS_FIELD_SETTINGS.statisticsMode.options })) }) })] })] }), _jsx(Dialog.Footer, { textButtonApply: i18n('button-done'), textButtonCancel: i18n('button-cancel'), onClickButtonCancel: onClose, propsButtonApply: {
|
33
33
|
type: 'submit',
|
34
34
|
}, renderButtons: (buttonApply, buttonCancel) => (_jsxs("div", { className: b('buttons-container'), children: [_jsx(ExternalLink, { href: "https://ydb.tech/docs", target: "_blank", className: b('documentation-link'), children: i18n('docs') }), _jsxs("div", { className: b('main-buttons'), children: [buttonCancel, buttonApply] })] })) })] }));
|
@@ -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;AAChF,OAAO,EAAC,UAAU,EAAE,OAAO,EAAC,MAAM,iBAAiB,CAAC;AAEpD,OAAO,EAAC,
|
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;AAChF,OAAO,EAAC,UAAU,EAAE,OAAO,EAAC,MAAM,iBAAiB,CAAC;AAEpD,OAAO,EAAC,8BAA8B,EAAC,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EACH,iBAAiB,EACjB,cAAc,GACjB,MAAM,sDAAsD,CAAC;AAE9D,OAAO,EAAC,EAAE,EAAC,MAAM,sBAAsB,CAAC;AACxC,OAAO,EACH,yBAAyB,EACzB,gBAAgB,EAChB,gBAAgB,GACnB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAC,6BAA6B,EAAC,MAAM,aAAa,CAAC;AAC1D,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,OAAO,4BAA4B,CAAC;AAEpC,MAAM,CAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC,CAAC;AAE1C,MAAM,UAAU,mBAAmB;IAC/B,MAAM,QAAQ,GAAG,gBAAgB,EAAE,CAAC;IACpC,MAAM,WAAW,GAAG,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;IACxD,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,yBAAyB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