ydb-embedded-ui 6.9.1 → 6.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. package/dist/components/NodeHostWrapper/NodeHostWrapper.scss +1 -1
  2. package/dist/components/{VirtualTable/VirtualTable.d.ts → PaginatedTable/PaginatedTable.d.ts} +3 -3
  3. package/dist/components/{VirtualTable/VirtualTable.js → PaginatedTable/PaginatedTable.js} +4 -4
  4. package/dist/components/{VirtualTable/VirtualTable.scss → PaginatedTable/PaginatedTable.scss} +11 -11
  5. package/dist/components/PaginatedTable/ResizeablePaginatedTable.d.ts +6 -0
  6. package/dist/components/{VirtualTable/ResizeableVirtualTable.js → PaginatedTable/ResizeablePaginatedTable.js} +3 -3
  7. package/dist/components/{VirtualTable → PaginatedTable}/i18n/index.js +1 -1
  8. package/dist/components/PaginatedTable/index.d.ts +4 -0
  9. package/dist/components/PaginatedTable/index.js +4 -0
  10. package/dist/components/{VirtualTable → PaginatedTable}/reducer.d.ts +3 -3
  11. package/dist/components/{VirtualTable → PaginatedTable}/reducer.js +1 -1
  12. package/dist/components/PaginatedTable/shared.js +2 -0
  13. package/dist/components/{VirtualTable → PaginatedTable}/types.d.ts +2 -2
  14. package/dist/components/TableWithControlsLayout/TableWithControlsLayout.scss +1 -1
  15. package/dist/components/VDisk/VDisk.js +19 -6
  16. package/dist/containers/App/App.d.ts +1 -1
  17. package/dist/containers/App/App.js +2 -2
  18. package/dist/containers/App/App.scss +1 -1
  19. package/dist/containers/AppWithClusters/AppWithClusters.js +1 -10
  20. package/dist/containers/AsideNavigation/Navigation.d.ts +1 -1
  21. package/dist/containers/Header/Header.js +5 -2
  22. package/dist/containers/Heatmap/Histogram/Histogram.js +3 -3
  23. package/dist/containers/Heatmap/util.js +2 -1
  24. package/dist/containers/Nodes/NodesWrapper.js +5 -5
  25. package/dist/containers/Nodes/{VirtualNodes.d.ts → PaginatedNodes.d.ts} +1 -1
  26. package/dist/containers/Nodes/{VirtualNodes.js → PaginatedNodes.js} +3 -3
  27. package/dist/containers/Nodes/getNodesColumns.d.ts +2 -2
  28. package/dist/containers/Storage/PDisk/PDisk.js +10 -2
  29. package/dist/containers/Storage/{VirtualStorage.d.ts → PaginatedStorage.d.ts} +2 -2
  30. package/dist/containers/Storage/{VirtualStorage.js → PaginatedStorage.js} +5 -5
  31. package/dist/containers/Storage/Storage.js +3 -12
  32. package/dist/containers/Storage/StorageGroups/{VirtualStorageGroups.d.ts → PaginatedStorageGroups.d.ts} +3 -3
  33. package/dist/containers/Storage/StorageGroups/{VirtualStorageGroups.js → PaginatedStorageGroups.js} +3 -3
  34. package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.d.ts +2 -2
  35. package/dist/containers/Storage/StorageNodes/{VirtualStorageNodes.d.ts → PaginatedStorageNodes.d.ts} +3 -3
  36. package/dist/containers/Storage/StorageNodes/{VirtualStorageNodes.js → PaginatedStorageNodes.js} +3 -3
  37. package/dist/containers/Storage/StorageWrapper.js +5 -5
  38. package/dist/containers/Tenant/Diagnostics/Diagnostics.scss +1 -1
  39. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.scss +1 -2
  40. package/dist/containers/Tenant/Query/Query.js +2 -8
  41. package/dist/containers/Tenant/Query/Query.scss +1 -1
  42. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.d.ts +2 -0
  43. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +23 -36
  44. package/dist/containers/Tenant/Query/QueryEditor/keybindings.d.ts +9 -0
  45. package/dist/containers/Tenant/Query/QueryEditor/keybindings.js +13 -0
  46. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.d.ts +1 -3
  47. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +3 -3
  48. package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.d.ts +7 -6
  49. package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js +55 -47
  50. package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.scss +2 -32
  51. package/dist/containers/Tenant/Query/SaveQuery/i18n/en.json +13 -0
  52. package/dist/containers/Tenant/Query/SaveQuery/i18n/index.d.ts +2 -0
  53. package/dist/containers/Tenant/Query/SaveQuery/i18n/index.js +4 -0
  54. package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.d.ts +1 -4
  55. package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.js +5 -3
  56. package/dist/containers/Tenant/Query/i18n/en.json +2 -1
  57. package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
  58. package/dist/containers/Tenant/Query/utils/useSavedQueries.d.ts +2 -0
  59. package/dist/containers/Tenant/Query/utils/useSavedQueries.js +5 -0
  60. package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +6 -2
  61. package/dist/containers/Tenant/utils/schemaActions.d.ts +1 -1
  62. package/dist/containers/Tenant/utils/schemaActions.js +10 -4
  63. package/dist/containers/UserSettings/UserSettings.d.ts +1 -1
  64. package/dist/containers/UserSettings/UserSettings.js +1 -2
  65. package/dist/containers/UserSettings/i18n/en.json +9 -4
  66. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  67. package/dist/containers/UserSettings/settings.d.ts +7 -2
  68. package/dist/containers/UserSettings/settings.js +38 -14
  69. package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.scss +1 -2
  70. package/dist/lib.d.ts +1 -1
  71. package/dist/lib.js +1 -1
  72. package/dist/services/settings.d.ts +2 -0
  73. package/dist/services/settings.js +4 -2
  74. package/dist/store/configureStore.d.ts +4 -14
  75. package/dist/store/defaultStore.d.ts +2 -7
  76. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +20 -20
  77. package/dist/store/reducers/index.d.ts +3 -13
  78. package/dist/store/reducers/index.js +2 -2
  79. package/dist/store/reducers/node/selectors.d.ts +1 -1
  80. package/dist/store/reducers/nodesList.d.ts +1 -1
  81. package/dist/store/reducers/queryActions/queryActions.d.ts +34 -0
  82. package/dist/store/reducers/queryActions/queryActions.js +58 -0
  83. package/dist/store/reducers/queryActions/types.d.ts +5 -0
  84. package/dist/store/reducers/queryActions/types.js +1 -0
  85. package/dist/store/reducers/storage/storage.js +1 -1
  86. package/dist/store/reducers/tablets.d.ts +5 -5
  87. package/dist/store/reducers/tabletsFilters.d.ts +1 -1
  88. package/dist/store/reducers/tenants/selectors.d.ts +9 -9
  89. package/dist/store/reducers/topic.d.ts +15 -15
  90. package/dist/utils/constants.d.ts +3 -1
  91. package/dist/utils/constants.js +5 -2
  92. package/dist/utils/disks/prepareDisks.js +4 -2
  93. package/dist/utils/hooks/index.d.ts +0 -2
  94. package/dist/utils/hooks/index.js +0 -2
  95. package/package.json +1 -1
  96. package/dist/components/VirtualTable/ResizeableVirtualTable.d.ts +0 -6
  97. package/dist/components/VirtualTable/index.d.ts +0 -3
  98. package/dist/components/VirtualTable/index.js +0 -3
  99. package/dist/components/VirtualTable/shared.js +0 -2
  100. package/dist/containers/AppWithClusters/i18n/en.json +0 -4
  101. package/dist/containers/AppWithClusters/i18n/index.d.ts +0 -2
  102. package/dist/containers/AppWithClusters/i18n/index.js +0 -5
  103. package/dist/containers/AppWithClusters/i18n/ru.json +0 -4
  104. package/dist/store/reducers/saveQuery.d.ts +0 -12
  105. package/dist/store/reducers/saveQuery.js +0 -25
  106. package/dist/utils/hooks/useNodesRequestParams.d.ts +0 -15
  107. package/dist/utils/hooks/useNodesRequestParams.js +0 -23
  108. package/dist/utils/hooks/useStorageRequestParams.d.ts +0 -8
  109. package/dist/utils/hooks/useStorageRequestParams.js +0 -20
  110. /package/dist/components/{VirtualTable → PaginatedTable}/ResizeHandler.d.ts +0 -0
  111. /package/dist/components/{VirtualTable → PaginatedTable}/ResizeHandler.js +0 -0
  112. /package/dist/components/{VirtualTable → PaginatedTable}/TableChunk.d.ts +0 -0
  113. /package/dist/components/{VirtualTable → PaginatedTable}/TableChunk.js +0 -0
  114. /package/dist/components/{VirtualTable → PaginatedTable}/TableHead.d.ts +0 -0
  115. /package/dist/components/{VirtualTable → PaginatedTable}/TableHead.js +0 -0
  116. /package/dist/components/{VirtualTable → PaginatedTable}/TableRow.d.ts +0 -0
  117. /package/dist/components/{VirtualTable → PaginatedTable}/TableRow.js +0 -0
  118. /package/dist/components/{VirtualTable → PaginatedTable}/constants.d.ts +0 -0
  119. /package/dist/components/{VirtualTable → PaginatedTable}/constants.js +0 -0
  120. /package/dist/components/{VirtualTable → PaginatedTable}/i18n/en.json +0 -0
  121. /package/dist/components/{VirtualTable → PaginatedTable}/i18n/index.d.ts +0 -0
  122. /package/dist/components/{VirtualTable → PaginatedTable}/i18n/ru.json +0 -0
  123. /package/dist/components/{VirtualTable → PaginatedTable}/shared.d.ts +0 -0
  124. /package/dist/components/{VirtualTable → PaginatedTable}/types.js +0 -0
  125. /package/dist/components/{VirtualTable → PaginatedTable}/useIntersectionObserver.d.ts +0 -0
  126. /package/dist/components/{VirtualTable → PaginatedTable}/useIntersectionObserver.js +0 -0
  127. /package/dist/components/{VirtualTable → PaginatedTable}/utils.d.ts +0 -0
  128. /package/dist/components/{VirtualTable → PaginatedTable}/utils.js +0 -0
@@ -1,25 +0,0 @@
1
- const SET_QUERY_NAME_TO_EDIT = 'SET_QUERY_NAME_TO_EDIT';
2
- const CLEAR_QUERY_NAME_TO_EDIT = 'CLEAR_QUERY_NAME_TO_EDIT';
3
- const initialState = null;
4
- const saveQuery = function (state = initialState, action) {
5
- switch (action.type) {
6
- case SET_QUERY_NAME_TO_EDIT:
7
- return action.data;
8
- case CLEAR_QUERY_NAME_TO_EDIT:
9
- return null;
10
- default:
11
- return state;
12
- }
13
- };
14
- export function setQueryNameToEdit(name) {
15
- return {
16
- type: SET_QUERY_NAME_TO_EDIT,
17
- data: name,
18
- };
19
- }
20
- export function clearQueryNameToEdit() {
21
- return {
22
- type: CLEAR_QUERY_NAME_TO_EDIT,
23
- };
24
- }
25
- export default saveQuery;
@@ -1,15 +0,0 @@
1
- import type { NodesGeneralRequestParams } from '../../store/reducers/nodes/types';
2
- import type { ProblemFilterValue } from '../../store/reducers/settings/types';
3
- import type { NodesUptimeFilterValues } from '../nodes';
4
- interface NodesRawRequestParams extends Omit<NodesGeneralRequestParams, 'problems_only' | 'uptime'> {
5
- problemFilter?: ProblemFilterValue;
6
- nodesUptimeFilter?: NodesUptimeFilterValues;
7
- }
8
- export declare const useNodesRequestParams: ({ filter, problemFilter, nodesUptimeFilter, sortOrder, sortValue, }: NodesRawRequestParams) => {
9
- filter: string | undefined;
10
- problems_only: boolean;
11
- uptime: number | undefined;
12
- sortOrder: import("@gravity-ui/react-data-table").OrderType | undefined;
13
- sortValue: import("../nodes").NodesSortValue | undefined;
14
- } | undefined;
15
- export {};
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- import { USE_BACKEND_PARAMS_FOR_TABLES_KEY } from '../constants';
3
- import { getProblemParamValue, getUptimeParamValue } from '../nodes';
4
- import { useSetting } from './useSetting';
5
- export const useNodesRequestParams = ({ filter, problemFilter, nodesUptimeFilter, 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
- const problemsOnly = getProblemParamValue(problemFilter);
12
- const uptime = getUptimeParamValue(nodesUptimeFilter);
13
- return {
14
- filter,
15
- problems_only: problemsOnly,
16
- uptime,
17
- sortOrder,
18
- sortValue,
19
- };
20
- }
21
- return undefined;
22
- }, [useBackendParamsForTables, filter, problemFilter, nodesUptimeFilter, sortOrder, sortValue]);
23
- };
@@ -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
- };