ydb-embedded-ui 6.21.0 → 6.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (280) hide show
  1. package/dist/components/AutoRefreshControl/i18n/index.d.ts +1 -1
  2. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.d.ts +2 -1
  3. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js +2 -2
  4. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js.map +1 -1
  5. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +4 -0
  6. package/dist/components/GroupInfo/i18n/index.d.ts +1 -1
  7. package/dist/components/PDiskInfo/PDiskInfo.js +1 -3
  8. package/dist/components/PDiskInfo/PDiskInfo.js.map +1 -1
  9. package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
  10. package/dist/components/QueryResultTable/Cell/Cell.js +1 -4
  11. package/dist/components/QueryResultTable/Cell/Cell.js.map +1 -1
  12. package/dist/components/StorageGroupInfo/i18n/index.d.ts +1 -1
  13. package/dist/components/VDisk/VDisk.d.ts +2 -1
  14. package/dist/components/VDisk/VDisk.js +2 -2
  15. package/dist/components/VDisk/VDisk.js.map +1 -1
  16. package/dist/components/VDiskInfo/VDiskInfo.js +1 -3
  17. package/dist/components/VDiskInfo/VDiskInfo.js.map +1 -1
  18. package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
  19. package/dist/containers/App/App.scss +1 -1
  20. package/dist/containers/Cluster/Cluster.js +1 -1
  21. package/dist/containers/Cluster/Cluster.js.map +1 -1
  22. package/dist/containers/Cluster/i18n/index.d.ts +1 -1
  23. package/dist/containers/Clusters/Clusters.js +3 -3
  24. package/dist/containers/Clusters/Clusters.js.map +1 -1
  25. package/dist/containers/Clusters/columns.js +2 -2
  26. package/dist/containers/Clusters/columns.js.map +1 -1
  27. package/dist/containers/Clusters/constants.d.ts +4 -4
  28. package/dist/containers/Clusters/constants.js +3 -3
  29. package/dist/containers/Clusters/constants.js.map +1 -1
  30. package/dist/containers/Node/Node.js +14 -4
  31. package/dist/containers/Node/Node.js.map +1 -1
  32. package/dist/containers/Node/NodePages.js +4 -5
  33. package/dist/containers/Node/NodePages.js.map +1 -1
  34. package/dist/containers/Nodes/Nodes.js +10 -11
  35. package/dist/containers/Nodes/Nodes.js.map +1 -1
  36. package/dist/containers/Nodes/PaginatedNodes.js +10 -11
  37. package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
  38. package/dist/containers/Nodes/{getNodesColumns.d.ts → columns/columns.d.ts} +3 -10
  39. package/dist/containers/Nodes/{getNodesColumns.js → columns/columns.js} +29 -39
  40. package/dist/containers/Nodes/columns/columns.js.map +1 -0
  41. package/dist/containers/Nodes/columns/constants.d.ts +39 -0
  42. package/dist/containers/Nodes/columns/constants.js +79 -0
  43. package/dist/containers/Nodes/columns/constants.js.map +1 -0
  44. package/dist/containers/Nodes/columns/hooks.d.ts +6 -0
  45. package/dist/containers/Nodes/columns/hooks.js +11 -0
  46. package/dist/containers/Nodes/columns/hooks.js.map +1 -0
  47. package/dist/containers/Nodes/columns/i18n/en.json +16 -0
  48. package/dist/containers/Nodes/columns/i18n/index.d.ts +2 -0
  49. package/dist/containers/Nodes/columns/i18n/index.js +5 -0
  50. package/dist/containers/Nodes/columns/i18n/index.js.map +1 -0
  51. package/dist/containers/Nodes/columns/types.d.ts +9 -0
  52. package/dist/containers/Nodes/columns/types.js +2 -0
  53. package/dist/containers/Nodes/columns/types.js.map +1 -0
  54. package/dist/containers/Nodes/getNodes.d.ts +3 -2
  55. package/dist/containers/Nodes/getNodes.js +6 -3
  56. package/dist/containers/Nodes/getNodes.js.map +1 -1
  57. package/dist/containers/PDiskPage/PDiskPage.js +12 -10
  58. package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
  59. package/dist/containers/PDiskPage/PDiskPage.scss +14 -14
  60. package/dist/containers/PDiskPage/i18n/en.json +1 -1
  61. package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
  62. package/dist/containers/ReduxTooltip/ReduxTooltip.js +7 -7
  63. package/dist/containers/ReduxTooltip/ReduxTooltip.js.map +1 -1
  64. package/dist/containers/Storage/PDisk/PDisk.d.ts +4 -4
  65. package/dist/containers/Storage/PDisk/PDisk.js +2 -2
  66. package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
  67. package/dist/containers/Storage/PaginatedStorage.d.ts +2 -3
  68. package/dist/containers/Storage/PaginatedStorage.js +27 -6
  69. package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
  70. package/dist/containers/Storage/Storage.d.ts +4 -4
  71. package/dist/containers/Storage/Storage.js +45 -11
  72. package/dist/containers/Storage/Storage.js.map +1 -1
  73. package/dist/containers/Storage/StorageControls/StorageControls.d.ts +4 -1
  74. package/dist/containers/Storage/StorageControls/StorageControls.js +4 -2
  75. package/dist/containers/Storage/StorageControls/StorageControls.js.map +1 -1
  76. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +3 -1
  77. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js +2 -4
  78. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +1 -1
  79. package/dist/containers/Storage/StorageGroups/StorageGroups.d.ts +3 -1
  80. package/dist/containers/Storage/StorageGroups/StorageGroups.js +2 -4
  81. package/dist/containers/Storage/StorageGroups/StorageGroups.js.map +1 -1
  82. package/dist/containers/Storage/StorageGroups/columns/columns.d.ts +4 -0
  83. package/dist/containers/Storage/StorageGroups/columns/{getStorageGroupsColumns.js → columns.js} +33 -81
  84. package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -0
  85. package/dist/containers/Storage/StorageGroups/columns/constants.d.ts +37 -0
  86. package/dist/containers/Storage/StorageGroups/columns/constants.js +75 -0
  87. package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -0
  88. package/dist/containers/Storage/StorageGroups/columns/hooks.d.ts +6 -2
  89. package/dist/containers/Storage/StorageGroups/columns/hooks.js +22 -14
  90. package/dist/containers/Storage/StorageGroups/columns/hooks.js.map +1 -1
  91. package/dist/containers/Storage/StorageGroups/columns/i18n/en.json +15 -0
  92. package/dist/containers/Storage/StorageGroups/columns/i18n/index.d.ts +2 -0
  93. package/dist/containers/Storage/StorageGroups/columns/i18n/index.js +5 -0
  94. package/dist/containers/Storage/StorageGroups/columns/i18n/index.js.map +1 -0
  95. package/dist/containers/Storage/StorageGroups/columns/types.d.ts +2 -6
  96. package/dist/containers/Storage/StorageGroups/getGroups.js +4 -1
  97. package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
  98. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.d.ts +3 -3
  99. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js +2 -5
  100. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js.map +1 -1
  101. package/dist/containers/Storage/StorageNodes/StorageNodes.d.ts +4 -6
  102. package/dist/containers/Storage/StorageNodes/StorageNodes.js +2 -4
  103. package/dist/containers/Storage/StorageNodes/StorageNodes.js.map +1 -1
  104. package/dist/containers/Storage/StorageNodes/StorageNodes.scss +1 -27
  105. package/dist/containers/Storage/StorageNodes/columns/StorageNodesColumns.scss +23 -0
  106. package/dist/containers/Storage/StorageNodes/columns/columns.d.ts +39 -0
  107. package/dist/containers/Storage/StorageNodes/{getStorageNodesColumns.js → columns/columns.js} +21 -31
  108. package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -0
  109. package/dist/containers/Storage/StorageNodes/columns/constants.d.ts +25 -0
  110. package/dist/containers/Storage/StorageNodes/columns/constants.js +47 -0
  111. package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -0
  112. package/dist/containers/Storage/StorageNodes/columns/hooks.d.ts +43 -0
  113. package/dist/containers/Storage/StorageNodes/columns/hooks.js +18 -0
  114. package/dist/containers/Storage/StorageNodes/columns/hooks.js.map +1 -0
  115. package/dist/containers/Storage/StorageNodes/columns/i18n/en.json +9 -0
  116. package/dist/containers/Storage/StorageNodes/columns/i18n/index.d.ts +2 -0
  117. package/dist/containers/Storage/StorageNodes/columns/i18n/index.js +5 -0
  118. package/dist/containers/Storage/StorageNodes/columns/i18n/index.js.map +1 -0
  119. package/dist/containers/Storage/StorageNodes/columns/types.d.ts +11 -0
  120. package/dist/containers/Storage/StorageNodes/columns/types.js +2 -0
  121. package/dist/containers/Storage/StorageNodes/columns/types.js.map +1 -0
  122. package/dist/containers/Storage/StorageNodes/getNodes.d.ts +2 -2
  123. package/dist/containers/Storage/StorageNodes/getNodes.js +7 -4
  124. package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
  125. package/dist/containers/Storage/StorageNodes/shared.js +1 -1
  126. package/dist/containers/Storage/StorageNodes/shared.js.map +1 -1
  127. package/dist/containers/Storage/StorageWrapper.d.ts +0 -2
  128. package/dist/containers/Storage/StorageWrapper.js.map +1 -1
  129. package/dist/containers/Storage/utils/index.js +6 -5
  130. package/dist/containers/Storage/utils/index.js.map +1 -1
  131. package/dist/containers/StorageGroupPage/StorageGroupPage.js +14 -57
  132. package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -1
  133. package/dist/containers/StorageGroupPage/StorageGroupPage.scss +14 -17
  134. package/dist/containers/StorageGroupPage/i18n/en.json +1 -2
  135. package/dist/containers/StorageGroupPage/i18n/index.d.ts +1 -1
  136. package/dist/containers/Tablets/i18n/index.d.ts +1 -1
  137. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +6 -0
  138. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +2 -2
  139. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
  140. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +12 -5
  141. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js.map +1 -1
  142. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js +12 -5
  143. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js.map +1 -1
  144. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +13 -5
  145. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js.map +1 -1
  146. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +2 -1
  147. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
  148. package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
  149. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +46 -55
  150. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js.map +1 -1
  151. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.scss +6 -7
  152. package/dist/containers/Tenant/ObjectSummary/ObjectTree.d.ts +6 -0
  153. package/dist/containers/Tenant/ObjectSummary/ObjectTree.js +25 -0
  154. package/dist/containers/Tenant/ObjectSummary/ObjectTree.js.map +1 -0
  155. package/dist/containers/Tenant/ObjectSummary/SchemaActions.d.ts +1 -0
  156. package/dist/containers/Tenant/ObjectSummary/SchemaActions.js +18 -0
  157. package/dist/containers/Tenant/ObjectSummary/SchemaActions.js.map +1 -0
  158. package/dist/containers/Tenant/ObjectSummary/i18n/en.json +21 -0
  159. package/dist/containers/Tenant/ObjectSummary/i18n/index.d.ts +2 -0
  160. package/dist/containers/Tenant/ObjectSummary/i18n/index.js +5 -0
  161. package/dist/containers/Tenant/ObjectSummary/i18n/index.js.map +1 -0
  162. package/dist/containers/Tenant/ObjectSummary/shared.d.ts +1 -0
  163. package/dist/containers/Tenant/ObjectSummary/shared.js +3 -0
  164. package/dist/containers/Tenant/ObjectSummary/shared.js.map +1 -0
  165. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +12 -12
  166. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
  167. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +8 -0
  168. package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +2 -1
  169. package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
  170. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.js +3 -1
  171. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.js.map +1 -1
  172. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js +5 -10
  173. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js.map +1 -1
  174. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.js +5 -3
  175. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.js.map +1 -1
  176. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js +6 -10
  177. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js.map +1 -1
  178. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +11 -2
  179. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js.map +1 -1
  180. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.scss +1 -0
  181. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.d.ts +1 -0
  182. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js +1 -1
  183. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js.map +1 -1
  184. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +3 -0
  185. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +3 -0
  186. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js.map +1 -1
  187. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/en.json +3 -0
  188. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/index.d.ts +1 -1
  189. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/ru.json +3 -0
  190. package/dist/containers/Tenant/utils/schema.js +1 -0
  191. package/dist/containers/Tenant/utils/schema.js.map +1 -1
  192. package/dist/containers/UserSettings/i18n/en.json +0 -2
  193. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  194. package/dist/containers/UserSettings/settings.d.ts +0 -1
  195. package/dist/containers/UserSettings/settings.js +2 -7
  196. package/dist/containers/UserSettings/settings.js.map +1 -1
  197. package/dist/containers/VDiskPage/VDiskPage.d.ts +0 -3
  198. package/dist/containers/VDiskPage/VDiskPage.js +9 -33
  199. package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
  200. package/dist/containers/VDiskPage/VDiskPage.scss +10 -19
  201. package/dist/containers/VDiskPage/i18n/en.json +1 -1
  202. package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
  203. package/dist/services/api.d.ts +16 -5
  204. package/dist/services/api.js +50 -11
  205. package/dist/services/api.js.map +1 -1
  206. package/dist/services/settings.d.ts +2 -2
  207. package/dist/services/settings.js +2 -3
  208. package/dist/services/settings.js.map +1 -1
  209. package/dist/store/configureStore.d.ts +2 -2
  210. package/dist/store/defaultStore.d.ts +1 -1
  211. package/dist/store/reducers/capabilities/capabilities.d.ts +8 -1
  212. package/dist/store/reducers/capabilities/capabilities.js +6 -1
  213. package/dist/store/reducers/capabilities/capabilities.js.map +1 -1
  214. package/dist/store/reducers/executeQuery.js +3 -0
  215. package/dist/store/reducers/executeQuery.js.map +1 -1
  216. package/dist/store/reducers/index.d.ts +2 -2
  217. package/dist/store/reducers/nodes/nodes.d.ts +2 -2
  218. package/dist/store/reducers/nodes/nodes.js.map +1 -1
  219. package/dist/store/reducers/nodes/types.d.ts +2 -24
  220. package/dist/store/reducers/pdisk/pdisk.js +29 -2
  221. package/dist/store/reducers/pdisk/pdisk.js.map +1 -1
  222. package/dist/store/reducers/pdisk/utils.js +1 -1
  223. package/dist/store/reducers/pdisk/utils.js.map +1 -1
  224. package/dist/store/reducers/storage/storage.d.ts +2 -2
  225. package/dist/store/reducers/storage/storage.js.map +1 -1
  226. package/dist/store/reducers/tooltip.d.ts +1 -1
  227. package/dist/styles/mixins.scss +3 -3
  228. package/dist/types/api/common.d.ts +1 -0
  229. package/dist/types/api/nodes.d.ts +33 -0
  230. package/dist/types/api/nodes.js.map +1 -1
  231. package/dist/types/api/query.d.ts +1 -0
  232. package/dist/types/api/storage.d.ts +8 -5
  233. package/dist/types/store/query.d.ts +5 -8
  234. package/dist/utils/constants.d.ts +0 -8
  235. package/dist/utils/constants.js +0 -9
  236. package/dist/utils/constants.js.map +1 -1
  237. package/dist/utils/filters.d.ts +2 -1
  238. package/dist/utils/filters.js +1 -4
  239. package/dist/utils/filters.js.map +1 -1
  240. package/dist/utils/hooks/useChangedQuerySettings.d.ts +2 -2
  241. package/dist/utils/hooks/useChangedQuerySettings.js +2 -1
  242. package/dist/utils/hooks/useChangedQuerySettings.js.map +1 -1
  243. package/dist/utils/hooks/useLastQueryExecutionSettings.d.ts +15 -2
  244. package/dist/utils/hooks/useLastQueryExecutionSettings.js +8 -9
  245. package/dist/utils/hooks/useLastQueryExecutionSettings.js.map +1 -1
  246. package/dist/utils/hooks/useQueryExecutionSettings.d.ts +15 -2
  247. package/dist/utils/hooks/useQueryExecutionSettings.js +5 -7
  248. package/dist/utils/hooks/useQueryExecutionSettings.js.map +1 -1
  249. package/dist/utils/hooks/useSelectedColumns.d.ts +8 -0
  250. package/dist/utils/hooks/useSelectedColumns.js +35 -0
  251. package/dist/utils/hooks/useSelectedColumns.js.map +1 -0
  252. package/dist/utils/nodes.d.ts +3 -22
  253. package/dist/utils/nodes.js +16 -19
  254. package/dist/utils/nodes.js.map +1 -1
  255. package/dist/utils/query.d.ts +129 -0
  256. package/dist/utils/query.js +33 -1
  257. package/dist/utils/query.js.map +1 -1
  258. package/dist/utils/storage.d.ts +1 -1
  259. package/dist/utils/storage.js.map +1 -1
  260. package/package.json +2 -1
  261. package/dist/containers/Clusters/useSelectedColumns.d.ts +0 -7
  262. package/dist/containers/Clusters/useSelectedColumns.js +0 -26
  263. package/dist/containers/Clusters/useSelectedColumns.js.map +0 -1
  264. package/dist/containers/Nodes/getNodesColumns.js.map +0 -1
  265. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.d.ts +0 -6
  266. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +0 -30
  267. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js.map +0 -1
  268. package/dist/containers/PDiskPage/PDiskGroups/utils.d.ts +0 -2
  269. package/dist/containers/PDiskPage/PDiskGroups/utils.js +0 -14
  270. package/dist/containers/PDiskPage/PDiskGroups/utils.js.map +0 -1
  271. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.d.ts +0 -21
  272. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js.map +0 -1
  273. package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.d.ts +0 -50
  274. package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js.map +0 -1
  275. package/dist/containers/VDiskPage/utils.d.ts +0 -2
  276. package/dist/containers/VDiskPage/utils.js +0 -7
  277. package/dist/containers/VDiskPage/utils.js.map +0 -1
  278. package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +0 -4
  279. package/dist/store/reducers/tenantOverview/topNodes/topNodes.js +0 -27
  280. package/dist/store/reducers/tenantOverview/topNodes/topNodes.js.map +0 -1
@@ -55,23 +55,20 @@ export const getProblemParamValue = (problemFilter) => {
55
55
  export const getUptimeParamValue = (nodesUptimeFilter) => {
56
56
  return nodesUptimeFilter === NodesUptimeFilterValues.SmallUptime ? HOUR_IN_SECONDS : undefined;
57
57
  };
58
- /**
59
- * Values to sort /compute v2 and /nodes responses
60
- *
61
- * For actual values go to:\
62
- * /nodes: https://github.com/ydb-platform/ydb/blob/main/ydb/core/viewer/json_nodes.h\
63
- * /compute: https://github.com/ydb-platform/ydb/blob/main/ydb/core/viewer/json_compute.h
64
- */
65
- export const NODES_SORT_VALUES = {
66
- NodeId: 'NodeId',
67
- Host: 'Host',
68
- DC: 'DC',
69
- Rack: 'Rack',
70
- Version: 'Version',
71
- Uptime: 'Uptime',
72
- Memory: 'Memory',
73
- CPU: 'CPU',
74
- LoadAverage: 'LoadAverage',
75
- };
76
- export const isSortableNodesProperty = (value) => Object.values(NODES_SORT_VALUES).includes(value);
58
+ export const NODES_SORT_VALUES = [
59
+ 'NodeId',
60
+ 'Host',
61
+ 'NodeName',
62
+ 'DC',
63
+ 'Rack',
64
+ 'Version',
65
+ 'Uptime',
66
+ 'CPU',
67
+ 'LoadAverage',
68
+ 'Memory',
69
+ `Missing`,
70
+ `DiskSpaceUsage`,
71
+ `Database`,
72
+ ];
73
+ export const isSortableNodesProperty = (value) => NODES_SORT_VALUES.includes(value);
77
74
  //# sourceMappingURL=nodes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../src/utils/nodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,OAAO,EAAC,mBAAmB,EAAC,MAAM,qCAAqC,CAAC;AAExE,OAAO,EAAC,KAAK,EAAC,MAAM,oBAAoB,CAAC;AAMzC,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAC,UAAU,EAAC,MAAM,iCAAiC,CAAC;AAE3D,OAAO,EAAC,cAAc,EAAC,MAAM,GAAG,CAAC;AAEjC,MAAM,CAAN,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAC/B,sCAAa,CAAA;IACb,sDAA6B,CAAA;AACjC,CAAC,EAHW,uBAAuB,KAAvB,uBAAuB,QAGlC;AAED,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC;KACzC,UAAU,CAAC,uBAAuB,CAAC;KACnC,KAAK,CAAC,uBAAuB,CAAC,GAAG,CAAC,CAAC;AAExC,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC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,CAAC;AACnG,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAqB;IAC/C,QAAQ;IACR,MAAM;IACN,UAAU;IACV,IAAI;IACJ,MAAM;IACN,SAAS;IACT,QAAQ;IACR,KAAK;IACL,aAAa;IACb,QAAQ;IACR,SAAS;IACT,gBAAgB;IAChB,UAAU;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,KAAc,EAA2B,EAAE,CAC/E,iBAAiB,CAAC,QAAQ,CAAC,KAAuB,CAAC,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { z } from 'zod';
1
2
  import type { AnyExecuteResponse, AnyExplainResponse, ErrorResponse, KeyValueRow, QueryPlan, ScriptPlan } from '../types/api/query';
2
3
  import type { IQueryResult, QueryMode, StatisticsMode, TracingLevel, TransactionMode } from '../types/store/query';
3
4
  export declare const TRANSACTION_MODES: {
@@ -51,4 +52,132 @@ export declare const parseQueryExplainPlan: (plan: ScriptPlan | QueryPlan) => Qu
51
52
  export declare const prepareQueryResponse: (data?: KeyValueRow[]) => KeyValueRow[];
52
53
  export declare const parseQueryError: (error: unknown) => ErrorResponse | string | undefined;
53
54
  export declare const parseQueryErrorToString: (error: unknown) => string | undefined;
55
+ export declare const DEFAULT_QUERY_SETTINGS: {
56
+ queryMode: "query";
57
+ transactionMode: "implicit";
58
+ timeout: number;
59
+ limitRows: number;
60
+ statisticsMode: "none";
61
+ tracingLevel: "detailed";
62
+ };
63
+ export declare const queryModeSchema: z.ZodNativeEnum<{
64
+ readonly scan: "scan";
65
+ readonly script: "script";
66
+ readonly data: "data";
67
+ readonly query: "query";
68
+ readonly pg: "pg";
69
+ }>;
70
+ export declare const transactionModeSchema: z.ZodNativeEnum<{
71
+ readonly serializable: "serializable-read-write";
72
+ readonly stalero: "stale-read-only";
73
+ readonly onlinero: "online-read-only";
74
+ readonly snapshot: "snapshot-read-only";
75
+ readonly implicit: "implicit";
76
+ }>;
77
+ export declare const statisticsModeSchema: z.ZodNativeEnum<{
78
+ readonly none: "none";
79
+ readonly basic: "basic";
80
+ readonly full: "full";
81
+ readonly profile: "profile";
82
+ }>;
83
+ export declare const tracingLevelSchema: z.ZodNativeEnum<{
84
+ readonly off: "off";
85
+ readonly toplevel: "toplevel";
86
+ readonly basic: "basic";
87
+ readonly detailed: "detailed";
88
+ readonly diagnostic: "diagnostic";
89
+ readonly trace: "trace";
90
+ }>;
91
+ export declare const querySettingsValidationSchema: z.ZodObject<{
92
+ timeout: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodUndefined]>, number | undefined, unknown>;
93
+ limitRows: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodUndefined]>, number | undefined, unknown>;
94
+ queryMode: z.ZodNativeEnum<{
95
+ readonly scan: "scan";
96
+ readonly script: "script";
97
+ readonly data: "data";
98
+ readonly query: "query";
99
+ readonly pg: "pg";
100
+ }>;
101
+ transactionMode: z.ZodNativeEnum<{
102
+ readonly serializable: "serializable-read-write";
103
+ readonly stalero: "stale-read-only";
104
+ readonly onlinero: "online-read-only";
105
+ readonly snapshot: "snapshot-read-only";
106
+ readonly implicit: "implicit";
107
+ }>;
108
+ statisticsMode: z.ZodNativeEnum<{
109
+ readonly none: "none";
110
+ readonly basic: "basic";
111
+ readonly full: "full";
112
+ readonly profile: "profile";
113
+ }>;
114
+ tracingLevel: z.ZodNativeEnum<{
115
+ readonly off: "off";
116
+ readonly toplevel: "toplevel";
117
+ readonly basic: "basic";
118
+ readonly detailed: "detailed";
119
+ readonly diagnostic: "diagnostic";
120
+ readonly trace: "trace";
121
+ }>;
122
+ }, "strip", z.ZodTypeAny, {
123
+ queryMode: "scan" | "script" | "data" | "query" | "pg";
124
+ transactionMode: "serializable-read-write" | "stale-read-only" | "online-read-only" | "snapshot-read-only" | "implicit";
125
+ statisticsMode: "none" | "basic" | "full" | "profile";
126
+ tracingLevel: "basic" | "off" | "toplevel" | "detailed" | "diagnostic" | "trace";
127
+ timeout?: number | undefined;
128
+ limitRows?: number | undefined;
129
+ }, {
130
+ queryMode: "scan" | "script" | "data" | "query" | "pg";
131
+ transactionMode: "serializable-read-write" | "stale-read-only" | "online-read-only" | "snapshot-read-only" | "implicit";
132
+ statisticsMode: "none" | "basic" | "full" | "profile";
133
+ tracingLevel: "basic" | "off" | "toplevel" | "detailed" | "diagnostic" | "trace";
134
+ timeout?: unknown;
135
+ limitRows?: unknown;
136
+ }>;
137
+ export declare const querySettingsRestoreSchema: z.ZodCatch<z.ZodObject<{
138
+ timeout: z.ZodEffects<z.ZodCatch<z.ZodOptional<z.ZodNumber>>, number | undefined, unknown>;
139
+ limitRows: z.ZodEffects<z.ZodCatch<z.ZodOptional<z.ZodNumber>>, number | undefined, unknown>;
140
+ queryMode: z.ZodCatch<z.ZodNativeEnum<{
141
+ readonly scan: "scan";
142
+ readonly script: "script";
143
+ readonly data: "data";
144
+ readonly query: "query";
145
+ readonly pg: "pg";
146
+ }>>;
147
+ transactionMode: z.ZodCatch<z.ZodNativeEnum<{
148
+ readonly serializable: "serializable-read-write";
149
+ readonly stalero: "stale-read-only";
150
+ readonly onlinero: "online-read-only";
151
+ readonly snapshot: "snapshot-read-only";
152
+ readonly implicit: "implicit";
153
+ }>>;
154
+ statisticsMode: z.ZodCatch<z.ZodNativeEnum<{
155
+ readonly none: "none";
156
+ readonly basic: "basic";
157
+ readonly full: "full";
158
+ readonly profile: "profile";
159
+ }>>;
160
+ tracingLevel: z.ZodCatch<z.ZodNativeEnum<{
161
+ readonly off: "off";
162
+ readonly toplevel: "toplevel";
163
+ readonly basic: "basic";
164
+ readonly detailed: "detailed";
165
+ readonly diagnostic: "diagnostic";
166
+ readonly trace: "trace";
167
+ }>>;
168
+ }, "strip", z.ZodTypeAny, {
169
+ queryMode: "scan" | "script" | "data" | "query" | "pg";
170
+ transactionMode: "serializable-read-write" | "stale-read-only" | "online-read-only" | "snapshot-read-only" | "implicit";
171
+ statisticsMode: "none" | "basic" | "full" | "profile";
172
+ tracingLevel: "basic" | "off" | "toplevel" | "detailed" | "diagnostic" | "trace";
173
+ timeout?: number | undefined;
174
+ limitRows?: number | undefined;
175
+ }, {
176
+ timeout?: unknown;
177
+ limitRows?: unknown;
178
+ queryMode?: unknown;
179
+ transactionMode?: unknown;
180
+ statisticsMode?: unknown;
181
+ tracingLevel?: unknown;
182
+ }>>;
54
183
  export {};
@@ -1,3 +1,4 @@
1
+ import { z } from 'zod';
1
2
  import { YQLType } from '../types';
2
3
  import { isAxiosResponse, isNetworkError } from './response';
3
4
  export const TRANSACTION_MODES = {
@@ -121,7 +122,7 @@ const parseExecuteModernResponse = (data) => {
121
122
  const parseExecuteMultiResponse = (data) => {
122
123
  const { result, ...restData } = data;
123
124
  const parsedResult = result === null || result === void 0 ? void 0 : result.map((resultSet) => {
124
- const { rows, columns } = resultSet;
125
+ const { rows, columns, truncated } = resultSet;
125
126
  let parsedRows;
126
127
  if (columns) {
127
128
  // Result shouldn't be null if there are columns
@@ -133,6 +134,7 @@ const parseExecuteMultiResponse = (data) => {
133
134
  return {
134
135
  columns: columns,
135
136
  result: parsedRows,
137
+ truncated,
136
138
  };
137
139
  });
138
140
  return {
@@ -241,4 +243,34 @@ export const parseQueryErrorToString = (error) => {
241
243
  }
242
244
  return (_a = parsedError === null || parsedError === void 0 ? void 0 : parsedError.error) === null || _a === void 0 ? void 0 : _a.message;
243
245
  };
246
+ export const DEFAULT_QUERY_SETTINGS = {
247
+ queryMode: QUERY_MODES.query,
248
+ transactionMode: TRANSACTION_MODES.implicit,
249
+ timeout: 60,
250
+ limitRows: 10000,
251
+ statisticsMode: STATISTICS_MODES.none,
252
+ tracingLevel: TRACING_LEVELS.detailed,
253
+ };
254
+ export const queryModeSchema = z.nativeEnum(QUERY_MODES);
255
+ export const transactionModeSchema = z.nativeEnum(TRANSACTION_MODES);
256
+ export const statisticsModeSchema = z.nativeEnum(STATISTICS_MODES);
257
+ export const tracingLevelSchema = z.nativeEnum(TRACING_LEVELS);
258
+ export const querySettingsValidationSchema = z.object({
259
+ timeout: z.preprocess((val) => (val === '' ? undefined : val), z.coerce.number().positive().or(z.undefined())),
260
+ limitRows: z.preprocess((val) => (val === '' ? undefined : val), z.coerce.number().gt(0).lte(10000).or(z.undefined())),
261
+ queryMode: queryModeSchema,
262
+ transactionMode: transactionModeSchema,
263
+ statisticsMode: statisticsModeSchema,
264
+ tracingLevel: tracingLevelSchema,
265
+ });
266
+ export const querySettingsRestoreSchema = z
267
+ .object({
268
+ timeout: z.preprocess((val) => (val === '' ? undefined : val), z.coerce.number().positive().optional().catch(DEFAULT_QUERY_SETTINGS.timeout)),
269
+ limitRows: z.preprocess((val) => (val === '' ? undefined : val), z.coerce.number().gt(0).lte(10000).optional().catch(DEFAULT_QUERY_SETTINGS.limitRows)),
270
+ queryMode: queryModeSchema.catch(DEFAULT_QUERY_SETTINGS.queryMode),
271
+ transactionMode: transactionModeSchema.catch(DEFAULT_QUERY_SETTINGS.transactionMode),
272
+ statisticsMode: statisticsModeSchema.catch(DEFAULT_QUERY_SETTINGS.statisticsMode),
273
+ tracingLevel: tracingLevelSchema.catch(DEFAULT_QUERY_SETTINGS.tracingLevel),
274
+ })
275
+ .catch(DEFAULT_QUERY_SETTINGS);
244
276
  //# sourceMappingURL=query.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"query.js","sourceRoot":"","sources":["../../src/utils/query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,UAAU,CAAC;AAqBjC,OAAO,EAAC,eAAe,EAAE,cAAc,EAAC,MAAM,YAAY,CAAC;AAE3D,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,YAAY,EAAE,yBAAyB;IACvC,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,kBAAkB;IAC5B,QAAQ,EAAE,oBAAoB;IAC9B,QAAQ,EAAE,UAAU;CACd,CAAC;AAEX,MAAM,CAAC,MAAM,wBAAwB,GAAoC;IACrE,CAAC,iBAAiB,CAAC,YAAY,CAAC,EAA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qBAAqB,CAAC,KAAK,CAAC,sBAAsB,CAAC,eAAe,CAAC;IACpF,cAAc,EAAE,oBAAoB,CAAC,KAAK,CAAC,sBAAsB,CAAC,cAAc,CAAC;IACjF,YAAY,EAAE,kBAAkB,CAAC,KAAK,CAAC,sBAAsB,CAAC,YAAY,CAAC;CAC9E,CAAC;KACD,KAAK,CAAC,sBAAsB,CAAC,CAAC"}
@@ -4,5 +4,5 @@ interface EntityWithUsage {
4
4
  Limit: number;
5
5
  }
6
6
  export declare const getUsage: <T extends EntityWithUsage>(data: T, step?: number) => number;
7
- export declare const isSortableStorageProperty: (value: string) => value is StorageV2SortValue;
7
+ export declare const isSortableStorageProperty: (value: unknown) => value is StorageV2SortValue;
8
8
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"storage.js","sourceRoot":"","sources":["../../src/utils/storage.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,QAAQ,GAAG,CAA4B,IAAO,EAAE,IAAI,GAAG,CAAC,EAAE,EAAE;IACrE,2BAA2B;IAC3B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAE9D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;AAC3C,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAyB;IAC9C,UAAU;IACV,MAAM;IACN,WAAW;IACX,SAAS;IACT,UAAU;IACV,OAAO;IACP,SAAS;IACT,MAAM;IACN,OAAO;IACP,MAAM;IACN,OAAO;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,KAAa,EAA+B,EAAE,CACpF,mBAAmB,CAAC,QAAQ,CAAC,KAA2B,CAAC,CAAC"}
1
+ {"version":3,"file":"storage.js","sourceRoot":"","sources":["../../src/utils/storage.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,QAAQ,GAAG,CAA4B,IAAO,EAAE,IAAI,GAAG,CAAC,EAAE,EAAE;IACrE,2BAA2B;IAC3B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAE9D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;AAC3C,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAyB;IAC9C,UAAU;IACV,MAAM;IACN,WAAW;IACX,SAAS;IACT,UAAU;IACV,OAAO;IACP,SAAS;IACT,MAAM;IACN,OAAO;IACP,MAAM;IACN,OAAO;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,KAAc,EAA+B,EAAE,CACrF,mBAAmB,CAAC,QAAQ,CAAC,KAA2B,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-embedded-ui",
3
- "version": "6.21.0",
3
+ "version": "6.22.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -24,6 +24,7 @@
24
24
  "@gravity-ui/table": "^0.5.0",
25
25
  "@gravity-ui/uikit": "^6.20.1",
26
26
  "@gravity-ui/websql-autocomplete": "^9.1.0",
27
+ "@hookform/resolvers": "^3.9.0",
27
28
  "@reduxjs/toolkit": "^2.2.3",
28
29
  "@tanstack/react-table": "^8.19.3",
29
30
  "axios": "^1.7.3",
@@ -1,7 +0,0 @@
1
- import type { Column } from '@gravity-ui/react-data-table';
2
- import type { TableColumnSetupItem } from '@gravity-ui/uikit';
3
- export declare const useSelectedColumns: <T>(columns: Column<T>[], storageKey: string, columnsTitles: Record<string, string>, defaultColumnsIds: string[], requiredColumnsIds?: string[]) => {
4
- columnsToShow: Column<T>[];
5
- columnsToSelect: TableColumnSetupItem[];
6
- setColumns: (updated: TableColumnSetupItem[]) => void;
7
- };
@@ -1,26 +0,0 @@
1
- import { useSetting } from '../../utils/hooks';
2
- export const useSelectedColumns = (columns, storageKey, columnsTitles, defaultColumnsIds, requiredColumnsIds) => {
3
- const [selectedColumnsIds, setSelectedColumnsIds] = useSetting(storageKey, defaultColumnsIds);
4
- const columnsIds = columns.map((column) => column.name);
5
- const columnsToShow = columns.filter((column) => selectedColumnsIds.find((name) => name === column.name));
6
- const columnsToSelect = columnsIds.map((id) => {
7
- const isRequired = requiredColumnsIds === null || requiredColumnsIds === void 0 ? void 0 : requiredColumnsIds.includes(id);
8
- return {
9
- id,
10
- title: columnsTitles[id],
11
- selected: selectedColumnsIds.includes(id),
12
- required: isRequired,
13
- sticky: isRequired ? 'start' : undefined,
14
- };
15
- });
16
- const setColumns = (value) => {
17
- const selectedColumns = value.filter((el) => el.selected).map((el) => el.id);
18
- setSelectedColumnsIds(selectedColumns);
19
- };
20
- return {
21
- columnsToShow,
22
- columnsToSelect,
23
- setColumns,
24
- };
25
- };
26
- //# sourceMappingURL=useSelectedColumns.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useSelectedColumns.js","sourceRoot":"","sources":["../../../src/containers/Clusters/useSelectedColumns.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAE7C,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAC9B,OAAoB,EACpB,UAAkB,EAClB,aAAqC,EACrC,iBAA2B,EAC3B,kBAA6B,EAC/B,EAAE;IACA,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,UAAU,CAC1D,UAAU,EACV,iBAAiB,CACpB,CAAC;IAEF,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAExD,MAAM,aAAa,GAAG,OAAO,CAAC,MAAM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U,uBAAuB,CACnC,UAA2B;IAE3B,OAAO,CAAC,SAAS,EAAE,YAAY,EAAE,+BAA+B,CAAC,UAAU,CAAC,CAAC,CAAC;AAClF,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,EACvC,QAAQ,EACR,UAAU,GACS;IACnB,OAAO;QACH,YAAY;QACZ,aAAa,CAAC,UAAU,EAAE,QAAQ,CAAC;QACnC,YAAY;QACZ,yBAAyB;QACzB,oBAAoB;QACpB,sBAAsB;QACtB,cAAc;QACd,gBAAgB,CAAC,QAAQ,CAAC;KAC7B,CAAC;AACN,CAAC"}
@@ -1,6 +0,0 @@
1
- interface PDiskGroupsProps {
2
- nodeId: string | number;
3
- pDiskId: string | number;
4
- }
5
- export declare function PDiskGroups({ pDiskId, nodeId }: PDiskGroupsProps): import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1,30 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import React from 'react';
3
- import { ResizeableDataTable } from '../../../components/ResizeableDataTable/ResizeableDataTable';
4
- import { TableSkeleton } from '../../../components/TableSkeleton/TableSkeleton';
5
- import { useCapabilitiesLoaded, useStorageGroupsHandlerAvailable, } from '../../../store/reducers/capabilities/hooks';
6
- import { storageApi } from '../../../store/reducers/storage/storage';
7
- import { DEFAULT_TABLE_SETTINGS } from '../../../utils/constants';
8
- import { useAutoRefreshInterval } from '../../../utils/hooks';
9
- import { STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY } from '../../Storage/StorageGroups/columns/getStorageGroupsColumns';
10
- import { useGetDiskStorageColumns } from '../../Storage/StorageGroups/columns/hooks';
11
- import { preparePDiskStorageResponse } from './utils';
12
- export function PDiskGroups({ pDiskId, nodeId }) {
13
- const capabilitiesLoaded = useCapabilitiesLoaded();
14
- const groupsHandlerAvailable = useStorageGroupsHandlerAvailable();
15
- const [autoRefreshInterval] = useAutoRefreshInterval();
16
- const { currentData, isFetching } = storageApi.useGetStorageGroupsInfoQuery({ pDiskId, nodeId, shouldUseGroupsHandler: groupsHandlerAvailable }, {
17
- pollingInterval: autoRefreshInterval,
18
- skip: !capabilitiesLoaded,
19
- });
20
- const loading = isFetching && currentData === undefined;
21
- const preparedGroups = React.useMemo(() => {
22
- return preparePDiskStorageResponse(currentData, pDiskId, nodeId) || [];
23
- }, [currentData, pDiskId, nodeId]);
24
- const pDiskStorageColumns = useGetDiskStorageColumns();
25
- if (loading || !capabilitiesLoaded) {
26
- return _jsx(TableSkeleton, {});
27
- }
28
- return (_jsx(ResizeableDataTable, { columnsWidthLSKey: STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY, data: preparedGroups, columns: pDiskStorageColumns, settings: DEFAULT_TABLE_SETTINGS }));
29
- }
30
- //# sourceMappingURL=PDiskGroups.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PDiskGroups.js","sourceRoot":"","sources":["../../../../src/containers/PDiskPage/PDiskGroups/PDiskGroups.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,mBAAmB,EAAC,MAAM,6DAA6D,CAAC;AAChG,OAAO,EAAC,aAAa,EAAC,MAAM,iDAAiD,CAAC;AAC9E,OAAO,EACH,qBAAqB,EACrB,gCAAgC,GACnC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAC,UAAU,EAAC,MAAM,yCAAyC,CAAC;AACnE,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAC,sBAAsB,EAAC,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAC,mCAAmC,EAAC,MAAM,6DAA6D,CAAC;AAChH,OAAO,EAAC,wBAAwB,EAAC,MAAM,2CAA2C,CAAC;AAEnF,OAAO,EAAC,2BAA2B,EAAC,MAAM,SAAS,CAAC;AAOpD,MAAM,UAAU,WAAW,CAAC,EAAC,OAAO,EAAE,MAAM,EAAmB;IAC3D,MAAM,kBAAkB,GAAG,qBAAqB,EAAE,CAAC;IACnD,MAAM,sBAAsB,GAAG,gCAAgC,EAAE,CAAC;IAClE,MAAM,CAAC,mBAAmB,CAAC,GAAG,sBAAsB,EAAE,CAAC;IAEvD,MAAM,EAAC,WAAW,EAAE,UAAU,EAAC,GAAG,UAAU,CAAC,4BAA4B,CACrE,EAAC,OAAO,EAAE,MAAM,EAAE,sBAAsB,EAAE,sBAAsB,EAAC,EACjE;QACI,eAAe,EAAE,mBAAmB;QACpC,IAAI,EAAE,CAAC,kBAAkB;KAC5B,CACJ,CAAC;IACF,MAAM,OAAO,GAAG,UAAU,IAAI,WAAW,KAAK,SAAS,CAAC;IAExD,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QACtC,OAAO,2BAA2B,CAAC,WAAW,EAAE,OAAO,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC;IAC3E,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;IAEnC,MAAM,mBAAmB,GAAG,wBAAwB,EAAE,CAAC;IAEvD,IAAI,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC;QACjC,OAAO,KAAC,aAAa,KAAG,CAAC;IAC7B,CAAC;IAED,OAAO,CACH,KAAC,mBAAmB,IAChB,iBAAiB,EAAE,mCAAmC,EACtD,IAAI,EAAE,cAAc,EACpB,OAAO,EAAE,mBAAmB,EAC5B,QAAQ,EAAE,sBAAsB,GAClC,CACL,CAAC;AACN,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { PreparedStorageResponse } from '../../../store/reducers/storage/types';
2
- export declare function preparePDiskStorageResponse(data?: PreparedStorageResponse, pDiskId?: number | string, nodeId?: number | string): import("../../../store/reducers/storage/types").PreparedStorageGroup[] | undefined;
@@ -1,14 +0,0 @@
1
- export function preparePDiskStorageResponse(data, pDiskId, nodeId) {
2
- var _a;
3
- return (_a = data === null || data === void 0 ? void 0 : data.groups) === null || _a === void 0 ? void 0 : _a.filter((group) => {
4
- var _a;
5
- return (_a = group.VDisks) === null || _a === void 0 ? void 0 : _a.some((vdisk) => {
6
- var _a, _b, _c, _d;
7
- // If VDisk has PDisk inside, PDiskId and NodeId fields could be only inside PDisk and vice versa
8
- const groupPDiskId = (_a = vdisk.PDiskId) !== null && _a !== void 0 ? _a : (_b = vdisk.PDisk) === null || _b === void 0 ? void 0 : _b.PDiskId;
9
- const groupNodeId = (_c = vdisk.NodeId) !== null && _c !== void 0 ? _c : (_d = vdisk.PDisk) === null || _d === void 0 ? void 0 : _d.NodeId;
10
- return (Number(groupPDiskId) === Number(pDiskId) && Number(groupNodeId) === Number(nodeId));
11
- });
12
- });
13
- }
14
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/containers/PDiskPage/PDiskGroups/utils.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,2BAA2B,CACvC,IAA8B,EAC9B,OAAyB,EACzB,MAAwB;;IAExB,OAAO,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,0CAAE,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE;;QAClC,OAAO,MAAA,KAAK,CAAC,MAAM,0CAAE,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;;YAChC,iGAAiG;YACjG,MAAM,YAAY,GAAG,MAAA,KAAK,CAAC,OAAO,mCAAI,MAAA,KAAK,CAAC,KAAK,0CAAE,OAAO,CAAC;YAC3D,MAAM,WAAW,GAAG,MAAA,KAAK,CAAC,MAAM,mCAAI,MAAA,KAAK,CAAC,KAAK,0CAAE,MAAM,CAAC;YAExD,OAAO,CACH,MAAM,CAAC,YAAY,CAAC,KAAK,MAAM,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,WAAW,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,CACrF,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -1,21 +0,0 @@
1
- import type { StorageColumnsGetter } from './types';
2
- import './StorageGroupsColumns.scss';
3
- export declare const STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY = "storageGroupsColumnsWidth";
4
- export declare const GROUPS_COLUMNS_IDS: {
5
- readonly PoolName: "PoolName";
6
- readonly MediaType: "MediaType";
7
- readonly Erasure: "Erasure";
8
- readonly GroupId: "GroupId";
9
- readonly Used: "Used";
10
- readonly Limit: "Limit";
11
- readonly Usage: "Usage";
12
- readonly DiskSpace: "DiskSpace";
13
- readonly Read: "Read";
14
- readonly Write: "Write";
15
- readonly VDisks: "VDisks";
16
- readonly Disks: "Disks";
17
- readonly Degraded: "Degraded";
18
- };
19
- export declare const getStorageTopGroupsColumns: StorageColumnsGetter;
20
- export declare const getDiskPageStorageColumns: StorageColumnsGetter;
21
- export declare const getPreparedStorageGroupsColumns: StorageColumnsGetter;
@@ -1 +0,0 @@
1
- {"version":3,"file":"getStorageGroupsColumns.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,SAAS,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAExE,OAAO,EAAC,eAAe,EAAC,MAAM,wDAAwD,CAAC;AACvF,OAAO,EAAC,YAAY,EAAC,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAC,YAAY,EAAC,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAC,UAAU,EAAC,MAAM,8CAA8C,CAAC;AACxE,OAAO,EAAC,oBAAoB,EAAC,MAAM,mDAAmD,CAAC;AACvF,OAAO,EAAC,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAC,gBAAgB,EAAC,MAAM,8CAA8C,CAAC;AAG9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AAC;AACP,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAyB,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;IACnF,MAAM,UAAU,GAAG,uBAAuB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAE1D,MAAM,eAAe,GAAG,0BAA0B,CAAC,UAAU,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,CAAC,CAAC;IAEzF,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QACpC,GAAG,MAAM;QACT,QAAQ,EAAE,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC;KACnD,CAAC,CAAC,CAAC;AACR,CAAC,CAAC"}
@@ -1,50 +0,0 @@
1
- import type { Column as DataTableColumn } from '@gravity-ui/react-data-table';
2
- import type { PreparedStorageNode, VisibleEntities } from '../../../store/reducers/storage/types';
3
- import type { AdditionalNodesProps } from '../../../types/additionalProps';
4
- export declare const STORAGE_NODES_COLUMNS_WIDTH_LS_KEY = "storageNodesColumnsWidth";
5
- export declare const STORAGE_NODES_COLUMNS_IDS: {
6
- readonly NodeId: "NodeId";
7
- readonly Host: "Host";
8
- readonly DC: "DC";
9
- readonly Rack: "Rack";
10
- readonly Uptime: "Uptime";
11
- readonly PDisks: "PDisks";
12
- readonly Missing: "Missing";
13
- };
14
- export declare const getPreparedStorageNodesColumns: (additionalNodesProps: AdditionalNodesProps | undefined, visibleEntities: VisibleEntities, database?: string) => {
15
- sortable: boolean;
16
- name: string;
17
- header?: React.ReactNode;
18
- className?: string;
19
- resizeable?: boolean;
20
- render: ((props: {
21
- row: PreparedStorageNode;
22
- index: number;
23
- }) => React.ReactNode) & ((props: {
24
- value?: unknown;
25
- row: PreparedStorageNode;
26
- index: number;
27
- footer?: boolean;
28
- headerData?: boolean;
29
- }) => import("react").ReactNode);
30
- width?: number;
31
- resizeMaxWidth?: number;
32
- resizeMinWidth?: number;
33
- align: "center" | "left" | "right";
34
- headerTitle?: string;
35
- accessor?: string | ((row: PreparedStorageNode) => any) | undefined;
36
- title?: string | ((row: PreparedStorageNode) => string) | undefined;
37
- customStyle?: ((props: import("@gravity-ui/react-data-table").CustomStyleParams<PreparedStorageNode>) => import("react").CSSProperties) | undefined;
38
- onClick?: ((data: {
39
- row: PreparedStorageNode;
40
- index: number;
41
- footer?: boolean;
42
- headerData?: boolean;
43
- }, column: DataTableColumn<PreparedStorageNode>, event: import("react").MouseEvent<HTMLTableCellElement>) => void) | undefined;
44
- defaultOrder?: import("@gravity-ui/react-data-table").OrderType;
45
- sortAccessor?: string | ((row: PreparedStorageNode) => any) | undefined;
46
- sortAscending?: import("@gravity-ui/react-data-table").Comparator<PreparedStorageNode> | undefined;
47
- sub?: DataTableColumn<PreparedStorageNode>[] | undefined;
48
- group?: boolean;
49
- autogroup?: boolean;
50
- }[];
@@ -1 +0,0 @@
1
- {"version":3,"file":"getStorageNodesColumns.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageNodes/getStorageNodesColumns.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAGrD,OAAO,EAAC,eAAe,EAAC,MAAM,qDAAqD,CAAC;AAEpF,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAG3E,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAC,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAC,KAAK,EAAC,MAAM,gBAAgB,CAAC;AAErC,OAAO,EAAC,CAAC,EAAC,MAAM,UAAU,CAAC;AAE3B,MAAM,CAAC,MAAM,kCAAkC,GAAG,0BAA0B,CAAC;AAE7E,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACrC,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;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D,KAAK,EAAE,SAAS,CAAC,MAAM;YACvB,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,GAAG;YACV,UAAU,EAAE,KAAK;SACpB;KACJ,CAAC;IAEF,OAAO,OAAO,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAC1C,oBAAsD,EACtD,eAAgC,EAChC,QAAiB,EACnB,EAAE;IACA,MAAM,UAAU,GAAG,sBAAsB,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;IAE1E,MAAM,eAAe,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAChD,GAAG,MAAM;QACT,QAAQ,EAAE,uBAAuB,CAAC,MAAM,CAAC,IAAI,CAAC;KACjD,CAAC,CAAC,CAAC;IAEJ,IAAI,eAAe,KAAK,gBAAgB,CAAC,OAAO,EAAE,CAAC;QAC/C,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,yBAAyB,CAAC,OAAO,CAAC,CAAC;IAC3F,CAAC;IAED,OAAO,eAAe,CAAC;AAC3B,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { PreparedStorageResponse } from '../../store/reducers/storage/types';
2
- export declare function prepareVDiskGroupResponse(data?: PreparedStorageResponse, groupId?: string | number): import("../../store/reducers/storage/types").PreparedStorageGroup | undefined;
@@ -1,7 +0,0 @@
1
- export function prepareVDiskGroupResponse(data, groupId) {
2
- var _a;
3
- return (_a = data === null || data === void 0 ? void 0 : data.groups) === null || _a === void 0 ? void 0 : _a.find((group) => {
4
- return Number(group.GroupId) === Number(groupId);
5
- });
6
- }
7
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/containers/VDiskPage/utils.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,yBAAyB,CACrC,IAA8B,EAC9B,OAAyB;;IAEzB,OAAO,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,0CAAE,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;QAChC,OAAO,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,MAAM,CAAC,OAAO,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { NodesApiRequestParams } from '../../nodes/types';
2
- export declare const topNodesApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../api")._NEVER, unknown, {}>, {
3
- getTopNodes: import("@reduxjs/toolkit/query").QueryDefinition<NodesApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("../../nodes/types").NodesPreparedEntity[] | undefined, "api">;
4
- }, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
@@ -1,27 +0,0 @@
1
- import { TENANT_OVERVIEW_TABLES_LIMIT } from '../../../../utils/constants';
2
- import { api } from '../../api';
3
- import { prepareNodesData } from '../../nodes/utils';
4
- export const topNodesApi = api.injectEndpoints({
5
- endpoints: (builder) => ({
6
- getTopNodes: builder.query({
7
- queryFn: async (params, { signal }) => {
8
- try {
9
- const data = await window.api.getNodes({
10
- type: 'any',
11
- sortOrder: -1,
12
- // sortValue: 'CPU',
13
- limit: TENANT_OVERVIEW_TABLES_LIMIT,
14
- ...params,
15
- }, { signal });
16
- return { data: prepareNodesData(data).Nodes };
17
- }
18
- catch (error) {
19
- return { error };
20
- }
21
- },
22
- providesTags: ['All'],
23
- }),
24
- }),
25
- overrideExisting: 'throw',
26
- });
27
- //# sourceMappingURL=topNodes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"topNodes.js","sourceRoot":"","sources":["../../../../../src/store/reducers/tenantOverview/topNodes/topNodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,4BAA4B,EAAC,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAC,GAAG,EAAC,MAAM,WAAW,CAAC;AAE9B,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAEnD,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAC,eAAe,CAAC;IAC3C,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QACrB,WAAW,EAAE,OAAO,CAAC,KAAK,CAAC;YACvB,OAAO,EAAE,KAAK,EAAE,MAA6B,EAAE,EAAC,MAAM,EAAC,EAAE,EAAE;gBACvD,IAAI,CAAC;oBACD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,QAAQ,CAClC;wBACI,IAAI,EAAE,KAAK;wBACX,SAAS,EAAE,CAAC,CAAC;wBACb,oBAAoB;wBACpB,KAAK,EAAE,4BAA4B;wBACnC,GAAG,MAAM;qBACZ,EACD,EAAC,MAAM,EAAC,CACX,CAAC;oBACF,OAAO,EAAC,IAAI,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC,KAAK,EAAC,CAAC;gBAChD,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;YACD,YAAY,EAAE,CAAC,KAAK,CAAC;SACxB,CAAC;KACL,CAAC;IACF,gBAAgB,EAAE,OAAO;CAC5B,CAAC,CAAC"}