ydb-embedded-ui 6.9.2 → 6.10.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/NodeHostWrapper/NodeHostWrapper.scss +1 -1
- package/dist/components/{VirtualTable/VirtualTable.d.ts → PaginatedTable/PaginatedTable.d.ts} +3 -3
- package/dist/components/{VirtualTable/VirtualTable.js → PaginatedTable/PaginatedTable.js} +4 -4
- package/dist/components/{VirtualTable/VirtualTable.scss → PaginatedTable/PaginatedTable.scss} +11 -11
- package/dist/components/PaginatedTable/ResizeablePaginatedTable.d.ts +6 -0
- package/dist/components/{VirtualTable/ResizeableVirtualTable.js → PaginatedTable/ResizeablePaginatedTable.js} +3 -3
- package/dist/components/{VirtualTable → PaginatedTable}/i18n/index.js +1 -1
- package/dist/components/PaginatedTable/index.d.ts +4 -0
- package/dist/components/PaginatedTable/index.js +4 -0
- package/dist/components/{VirtualTable → PaginatedTable}/reducer.d.ts +3 -3
- package/dist/components/{VirtualTable → PaginatedTable}/reducer.js +1 -1
- package/dist/components/PaginatedTable/shared.js +2 -0
- package/dist/components/{VirtualTable → PaginatedTable}/types.d.ts +2 -2
- package/dist/components/TableWithControlsLayout/TableWithControlsLayout.scss +1 -1
- package/dist/components/VDisk/VDisk.js +19 -6
- package/dist/containers/App/App.d.ts +1 -1
- package/dist/containers/App/App.js +2 -2
- package/dist/containers/App/App.scss +1 -1
- package/dist/containers/AppWithClusters/AppWithClusters.js +1 -10
- package/dist/containers/AsideNavigation/Navigation.d.ts +1 -1
- package/dist/containers/Heatmap/Histogram/Histogram.js +3 -3
- package/dist/containers/Heatmap/util.js +2 -1
- package/dist/containers/Nodes/NodesWrapper.js +5 -5
- package/dist/containers/Nodes/{VirtualNodes.d.ts → PaginatedNodes.d.ts} +1 -1
- package/dist/containers/Nodes/{VirtualNodes.js → PaginatedNodes.js} +3 -3
- package/dist/containers/Nodes/getNodesColumns.d.ts +2 -2
- package/dist/containers/Storage/PDisk/PDisk.js +10 -2
- package/dist/containers/Storage/{VirtualStorage.d.ts → PaginatedStorage.d.ts} +2 -2
- package/dist/containers/Storage/{VirtualStorage.js → PaginatedStorage.js} +5 -5
- package/dist/containers/Storage/Storage.js +3 -12
- package/dist/containers/Storage/StorageGroups/{VirtualStorageGroups.d.ts → PaginatedStorageGroups.d.ts} +3 -3
- package/dist/containers/Storage/StorageGroups/{VirtualStorageGroups.js → PaginatedStorageGroups.js} +3 -3
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.d.ts +2 -2
- package/dist/containers/Storage/StorageNodes/{VirtualStorageNodes.d.ts → PaginatedStorageNodes.d.ts} +3 -3
- package/dist/containers/Storage/StorageNodes/{VirtualStorageNodes.js → PaginatedStorageNodes.js} +3 -3
- package/dist/containers/Storage/StorageWrapper.js +5 -5
- package/dist/containers/Tenant/Diagnostics/Diagnostics.scss +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.scss +1 -2
- package/dist/containers/Tenant/Query/Query.js +2 -8
- package/dist/containers/Tenant/Query/Query.scss +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.d.ts +2 -0
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +23 -36
- package/dist/containers/Tenant/Query/QueryEditor/keybindings.d.ts +9 -0
- package/dist/containers/Tenant/Query/QueryEditor/keybindings.js +13 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.d.ts +1 -3
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +3 -3
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.d.ts +7 -6
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js +55 -47
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.scss +2 -32
- package/dist/containers/Tenant/Query/SaveQuery/i18n/en.json +13 -0
- package/dist/containers/Tenant/Query/SaveQuery/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Query/SaveQuery/i18n/index.js +4 -0
- package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.d.ts +1 -4
- package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.js +5 -3
- package/dist/containers/Tenant/Query/i18n/en.json +2 -1
- package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/utils/useSavedQueries.d.ts +2 -0
- package/dist/containers/Tenant/Query/utils/useSavedQueries.js +5 -0
- package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +6 -2
- package/dist/containers/Tenant/utils/schemaActions.d.ts +1 -1
- package/dist/containers/Tenant/utils/schemaActions.js +10 -4
- package/dist/containers/UserSettings/UserSettings.d.ts +1 -1
- package/dist/containers/UserSettings/UserSettings.js +1 -2
- package/dist/containers/UserSettings/i18n/en.json +9 -4
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.d.ts +7 -2
- package/dist/containers/UserSettings/settings.js +38 -14
- package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.scss +1 -2
- package/dist/lib.d.ts +1 -1
- package/dist/lib.js +1 -1
- package/dist/services/settings.d.ts +2 -0
- package/dist/services/settings.js +4 -2
- package/dist/store/configureStore.d.ts +4 -14
- package/dist/store/defaultStore.d.ts +2 -7
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +20 -20
- package/dist/store/reducers/index.d.ts +3 -13
- package/dist/store/reducers/index.js +2 -2
- package/dist/store/reducers/node/selectors.d.ts +1 -1
- package/dist/store/reducers/nodesList.d.ts +1 -1
- package/dist/store/reducers/queryActions/queryActions.d.ts +34 -0
- package/dist/store/reducers/queryActions/queryActions.js +58 -0
- package/dist/store/reducers/queryActions/types.d.ts +5 -0
- package/dist/store/reducers/queryActions/types.js +1 -0
- package/dist/store/reducers/storage/storage.js +1 -1
- package/dist/store/reducers/tablets.d.ts +5 -5
- package/dist/store/reducers/tabletsFilters.d.ts +1 -1
- package/dist/store/reducers/tenants/selectors.d.ts +9 -9
- package/dist/store/reducers/topic.d.ts +15 -15
- package/dist/utils/constants.d.ts +3 -1
- package/dist/utils/constants.js +5 -2
- package/dist/utils/disks/prepareDisks.js +4 -2
- package/dist/utils/hooks/index.d.ts +0 -2
- package/dist/utils/hooks/index.js +0 -2
- package/package.json +1 -1
- package/dist/components/VirtualTable/ResizeableVirtualTable.d.ts +0 -6
- package/dist/components/VirtualTable/index.d.ts +0 -3
- package/dist/components/VirtualTable/index.js +0 -3
- package/dist/components/VirtualTable/shared.js +0 -2
- package/dist/containers/AppWithClusters/i18n/en.json +0 -4
- package/dist/containers/AppWithClusters/i18n/index.d.ts +0 -2
- package/dist/containers/AppWithClusters/i18n/index.js +0 -5
- package/dist/containers/AppWithClusters/i18n/ru.json +0 -4
- package/dist/store/reducers/saveQuery.d.ts +0 -12
- package/dist/store/reducers/saveQuery.js +0 -25
- package/dist/utils/hooks/useNodesRequestParams.d.ts +0 -15
- package/dist/utils/hooks/useNodesRequestParams.js +0 -23
- package/dist/utils/hooks/useStorageRequestParams.d.ts +0 -8
- package/dist/utils/hooks/useStorageRequestParams.js +0 -20
- /package/dist/components/{VirtualTable → PaginatedTable}/ResizeHandler.d.ts +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/ResizeHandler.js +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/TableChunk.d.ts +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/TableChunk.js +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/TableHead.d.ts +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/TableHead.js +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/TableRow.d.ts +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/TableRow.js +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/constants.d.ts +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/constants.js +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/i18n/en.json +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/i18n/index.d.ts +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/i18n/ru.json +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/shared.d.ts +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/types.js +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/useIntersectionObserver.d.ts +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/useIntersectionObserver.js +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/utils.d.ts +0 -0
- /package/dist/components/{VirtualTable → PaginatedTable}/utils.js +0 -0
@@ -1,8 +0,0 @@
|
|
1
|
-
import type { StorageSortAndFilterParams } from '../../store/reducers/storage/types';
|
2
|
-
import { EVersion } from '../../types/api/storage';
|
3
|
-
export declare const useStorageRequestParams: ({ filter, sortOrder, sortValue, }: StorageSortAndFilterParams) => {
|
4
|
-
version: EVersion;
|
5
|
-
filter: string | undefined;
|
6
|
-
sortOrder: import("@gravity-ui/react-data-table").OrderType | undefined;
|
7
|
-
sortValue: import("../storage").StorageSortValue | undefined;
|
8
|
-
} | undefined;
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { EVersion } from '../../types/api/storage';
|
3
|
-
import { USE_BACKEND_PARAMS_FOR_TABLES_KEY } from '../constants';
|
4
|
-
import { useSetting } from './useSetting';
|
5
|
-
export const useStorageRequestParams = ({ filter, sortOrder, sortValue, }) => {
|
6
|
-
const [useBackendParamsForTables] = useSetting(USE_BACKEND_PARAMS_FOR_TABLES_KEY);
|
7
|
-
// If backend params are enabled, update params value to use them in fetch request
|
8
|
-
// Otherwise no params will be updated, no hooks that depend on requestParams will be triggered
|
9
|
-
return React.useMemo(() => {
|
10
|
-
if (useBackendParamsForTables) {
|
11
|
-
return {
|
12
|
-
version: EVersion.v2,
|
13
|
-
filter,
|
14
|
-
sortOrder,
|
15
|
-
sortValue,
|
16
|
-
};
|
17
|
-
}
|
18
|
-
return undefined;
|
19
|
-
}, [useBackendParamsForTables, filter, sortOrder, sortValue]);
|
20
|
-
};
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|