ydb-embedded-ui 6.20.0 → 6.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (313) 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 +3 -4
  8. package/dist/components/PDiskInfo/PDiskInfo.js.map +1 -1
  9. package/dist/components/PDiskInfo/PDiskInfo.scss +0 -14
  10. package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
  11. package/dist/components/QueryResultTable/Cell/Cell.js +1 -4
  12. package/dist/components/QueryResultTable/Cell/Cell.js.map +1 -1
  13. package/dist/components/StorageGroupInfo/StorageGroupInfo.d.ts +8 -0
  14. package/dist/components/StorageGroupInfo/StorageGroupInfo.js +123 -0
  15. package/dist/components/StorageGroupInfo/StorageGroupInfo.js.map +1 -0
  16. package/dist/components/StorageGroupInfo/i18n/en.json +22 -0
  17. package/dist/components/StorageGroupInfo/i18n/index.d.ts +1 -0
  18. package/dist/components/StorageGroupInfo/i18n/index.js +5 -0
  19. package/dist/components/StorageGroupInfo/i18n/index.js.map +1 -0
  20. package/dist/components/VDisk/VDisk.d.ts +2 -1
  21. package/dist/components/VDisk/VDisk.js +2 -2
  22. package/dist/components/VDisk/VDisk.js.map +1 -1
  23. package/dist/components/VDiskInfo/VDiskInfo.js +1 -3
  24. package/dist/components/VDiskInfo/VDiskInfo.js.map +1 -1
  25. package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
  26. package/dist/containers/App/App.scss +1 -1
  27. package/dist/containers/App/Content.js +7 -1
  28. package/dist/containers/App/Content.js.map +1 -1
  29. package/dist/containers/App/appSlots.d.ts +6 -0
  30. package/dist/containers/App/appSlots.js +1 -0
  31. package/dist/containers/App/appSlots.js.map +1 -1
  32. package/dist/containers/Cluster/Cluster.js +1 -1
  33. package/dist/containers/Cluster/Cluster.js.map +1 -1
  34. package/dist/containers/Cluster/i18n/index.d.ts +1 -1
  35. package/dist/containers/Clusters/Clusters.js +3 -3
  36. package/dist/containers/Clusters/Clusters.js.map +1 -1
  37. package/dist/containers/Clusters/columns.js +2 -2
  38. package/dist/containers/Clusters/columns.js.map +1 -1
  39. package/dist/containers/Clusters/constants.d.ts +4 -4
  40. package/dist/containers/Clusters/constants.js +3 -3
  41. package/dist/containers/Clusters/constants.js.map +1 -1
  42. package/dist/containers/Header/breadcrumbs.js +14 -0
  43. package/dist/containers/Header/breadcrumbs.js.map +1 -1
  44. package/dist/containers/Header/i18n/en.json +2 -1
  45. package/dist/containers/Header/i18n/index.d.ts +1 -1
  46. package/dist/containers/Node/Node.js +14 -4
  47. package/dist/containers/Node/Node.js.map +1 -1
  48. package/dist/containers/Node/NodePages.js +4 -5
  49. package/dist/containers/Node/NodePages.js.map +1 -1
  50. package/dist/containers/Nodes/Nodes.js +10 -11
  51. package/dist/containers/Nodes/Nodes.js.map +1 -1
  52. package/dist/containers/Nodes/PaginatedNodes.js +10 -11
  53. package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
  54. package/dist/containers/Nodes/{getNodesColumns.d.ts → columns/columns.d.ts} +3 -10
  55. package/dist/containers/Nodes/{getNodesColumns.js → columns/columns.js} +29 -39
  56. package/dist/containers/Nodes/columns/columns.js.map +1 -0
  57. package/dist/containers/Nodes/columns/constants.d.ts +39 -0
  58. package/dist/containers/Nodes/columns/constants.js +79 -0
  59. package/dist/containers/Nodes/columns/constants.js.map +1 -0
  60. package/dist/containers/Nodes/columns/hooks.d.ts +6 -0
  61. package/dist/containers/Nodes/columns/hooks.js +11 -0
  62. package/dist/containers/Nodes/columns/hooks.js.map +1 -0
  63. package/dist/containers/Nodes/columns/i18n/en.json +16 -0
  64. package/dist/containers/Nodes/columns/i18n/index.d.ts +2 -0
  65. package/dist/containers/Nodes/columns/i18n/index.js +5 -0
  66. package/dist/containers/Nodes/columns/i18n/index.js.map +1 -0
  67. package/dist/containers/Nodes/columns/types.d.ts +9 -0
  68. package/dist/containers/Nodes/columns/types.js +2 -0
  69. package/dist/containers/Nodes/columns/types.js.map +1 -0
  70. package/dist/containers/Nodes/getNodes.d.ts +3 -2
  71. package/dist/containers/Nodes/getNodes.js +6 -3
  72. package/dist/containers/Nodes/getNodes.js.map +1 -1
  73. package/dist/containers/PDiskPage/PDiskPage.js +11 -9
  74. package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
  75. package/dist/containers/PDiskPage/PDiskPage.scss +15 -4
  76. package/dist/containers/PDiskPage/i18n/en.json +1 -1
  77. package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
  78. package/dist/containers/ReduxTooltip/ReduxTooltip.js +7 -7
  79. package/dist/containers/ReduxTooltip/ReduxTooltip.js.map +1 -1
  80. package/dist/containers/Storage/PDisk/PDisk.d.ts +4 -4
  81. package/dist/containers/Storage/PDisk/PDisk.js +2 -2
  82. package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
  83. package/dist/containers/Storage/PaginatedStorage.d.ts +2 -3
  84. package/dist/containers/Storage/PaginatedStorage.js +27 -6
  85. package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
  86. package/dist/containers/Storage/Storage.d.ts +4 -4
  87. package/dist/containers/Storage/Storage.js +45 -11
  88. package/dist/containers/Storage/Storage.js.map +1 -1
  89. package/dist/containers/Storage/StorageControls/StorageControls.d.ts +4 -1
  90. package/dist/containers/Storage/StorageControls/StorageControls.js +4 -2
  91. package/dist/containers/Storage/StorageControls/StorageControls.js.map +1 -1
  92. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +3 -1
  93. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js +2 -4
  94. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +1 -1
  95. package/dist/containers/Storage/StorageGroups/StorageGroups.d.ts +3 -1
  96. package/dist/containers/Storage/StorageGroups/StorageGroups.js +2 -4
  97. package/dist/containers/Storage/StorageGroups/StorageGroups.js.map +1 -1
  98. package/dist/containers/Storage/StorageGroups/columns/columns.d.ts +4 -0
  99. package/dist/containers/Storage/StorageGroups/columns/{getStorageGroupsColumns.js → columns.js} +36 -82
  100. package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -0
  101. package/dist/containers/Storage/StorageGroups/columns/constants.d.ts +37 -0
  102. package/dist/containers/Storage/StorageGroups/columns/constants.js +75 -0
  103. package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -0
  104. package/dist/containers/Storage/StorageGroups/columns/hooks.d.ts +6 -2
  105. package/dist/containers/Storage/StorageGroups/columns/hooks.js +22 -14
  106. package/dist/containers/Storage/StorageGroups/columns/hooks.js.map +1 -1
  107. package/dist/containers/Storage/StorageGroups/columns/i18n/en.json +15 -0
  108. package/dist/containers/Storage/StorageGroups/columns/i18n/index.d.ts +2 -0
  109. package/dist/containers/Storage/StorageGroups/columns/i18n/index.js +5 -0
  110. package/dist/containers/Storage/StorageGroups/columns/i18n/index.js.map +1 -0
  111. package/dist/containers/Storage/StorageGroups/columns/types.d.ts +2 -6
  112. package/dist/containers/Storage/StorageGroups/getGroups.js +4 -1
  113. package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
  114. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.d.ts +3 -3
  115. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js +2 -5
  116. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js.map +1 -1
  117. package/dist/containers/Storage/StorageNodes/StorageNodes.d.ts +4 -6
  118. package/dist/containers/Storage/StorageNodes/StorageNodes.js +2 -4
  119. package/dist/containers/Storage/StorageNodes/StorageNodes.js.map +1 -1
  120. package/dist/containers/Storage/StorageNodes/StorageNodes.scss +1 -27
  121. package/dist/containers/Storage/StorageNodes/columns/StorageNodesColumns.scss +23 -0
  122. package/dist/containers/Storage/StorageNodes/columns/columns.d.ts +39 -0
  123. package/dist/containers/Storage/StorageNodes/{getStorageNodesColumns.js → columns/columns.js} +21 -31
  124. package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -0
  125. package/dist/containers/Storage/StorageNodes/columns/constants.d.ts +25 -0
  126. package/dist/containers/Storage/StorageNodes/columns/constants.js +47 -0
  127. package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -0
  128. package/dist/containers/Storage/StorageNodes/columns/hooks.d.ts +43 -0
  129. package/dist/containers/Storage/StorageNodes/columns/hooks.js +18 -0
  130. package/dist/containers/Storage/StorageNodes/columns/hooks.js.map +1 -0
  131. package/dist/containers/Storage/StorageNodes/columns/i18n/en.json +9 -0
  132. package/dist/containers/Storage/StorageNodes/columns/i18n/index.d.ts +2 -0
  133. package/dist/containers/Storage/StorageNodes/columns/i18n/index.js +5 -0
  134. package/dist/containers/Storage/StorageNodes/columns/i18n/index.js.map +1 -0
  135. package/dist/containers/Storage/StorageNodes/columns/types.d.ts +11 -0
  136. package/dist/containers/Storage/StorageNodes/columns/types.js +2 -0
  137. package/dist/containers/Storage/StorageNodes/columns/types.js.map +1 -0
  138. package/dist/containers/Storage/StorageNodes/getNodes.d.ts +2 -2
  139. package/dist/containers/Storage/StorageNodes/getNodes.js +7 -4
  140. package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
  141. package/dist/containers/Storage/StorageNodes/shared.js +1 -1
  142. package/dist/containers/Storage/StorageNodes/shared.js.map +1 -1
  143. package/dist/containers/Storage/StorageWrapper.d.ts +0 -2
  144. package/dist/containers/Storage/StorageWrapper.js.map +1 -1
  145. package/dist/containers/Storage/utils/index.js +6 -5
  146. package/dist/containers/Storage/utils/index.js.map +1 -1
  147. package/dist/containers/StorageGroupPage/StorageGroupPage.d.ts +2 -0
  148. package/dist/containers/StorageGroupPage/StorageGroupPage.js +74 -0
  149. package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -0
  150. package/dist/containers/StorageGroupPage/StorageGroupPage.scss +37 -0
  151. package/dist/containers/StorageGroupPage/i18n/en.json +5 -0
  152. package/dist/containers/StorageGroupPage/i18n/index.d.ts +1 -0
  153. package/dist/containers/StorageGroupPage/i18n/index.js +5 -0
  154. package/dist/containers/StorageGroupPage/i18n/index.js.map +1 -0
  155. package/dist/containers/Tablets/i18n/index.d.ts +1 -1
  156. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +4 -2
  157. package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
  158. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +36 -0
  159. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +7 -2
  160. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
  161. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +12 -5
  162. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js.map +1 -1
  163. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js +12 -5
  164. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js.map +1 -1
  165. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +13 -5
  166. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js.map +1 -1
  167. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +2 -1
  168. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
  169. package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
  170. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +46 -55
  171. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js.map +1 -1
  172. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.scss +6 -7
  173. package/dist/containers/Tenant/ObjectSummary/ObjectTree.d.ts +6 -0
  174. package/dist/containers/Tenant/ObjectSummary/ObjectTree.js +25 -0
  175. package/dist/containers/Tenant/ObjectSummary/ObjectTree.js.map +1 -0
  176. package/dist/containers/Tenant/ObjectSummary/SchemaActions.d.ts +1 -0
  177. package/dist/containers/Tenant/ObjectSummary/SchemaActions.js +18 -0
  178. package/dist/containers/Tenant/ObjectSummary/SchemaActions.js.map +1 -0
  179. package/dist/containers/Tenant/ObjectSummary/i18n/en.json +21 -0
  180. package/dist/containers/Tenant/ObjectSummary/i18n/index.d.ts +2 -0
  181. package/dist/containers/Tenant/ObjectSummary/i18n/index.js +5 -0
  182. package/dist/containers/Tenant/ObjectSummary/i18n/index.js.map +1 -0
  183. package/dist/containers/Tenant/ObjectSummary/shared.d.ts +1 -0
  184. package/dist/containers/Tenant/ObjectSummary/shared.js +3 -0
  185. package/dist/containers/Tenant/ObjectSummary/shared.js.map +1 -0
  186. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +12 -12
  187. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
  188. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +8 -0
  189. package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +2 -1
  190. package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
  191. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.js +3 -1
  192. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.js.map +1 -1
  193. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js +5 -10
  194. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js.map +1 -1
  195. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.js +5 -3
  196. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.js.map +1 -1
  197. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js +6 -10
  198. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js.map +1 -1
  199. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +11 -2
  200. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js.map +1 -1
  201. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.scss +1 -0
  202. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.d.ts +1 -0
  203. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js +1 -1
  204. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js.map +1 -1
  205. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +3 -0
  206. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +3 -0
  207. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js.map +1 -1
  208. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/en.json +3 -0
  209. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/index.d.ts +1 -1
  210. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/ru.json +3 -0
  211. package/dist/containers/Tenant/utils/schema.js +1 -0
  212. package/dist/containers/Tenant/utils/schema.js.map +1 -1
  213. package/dist/containers/UserSettings/i18n/en.json +0 -2
  214. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  215. package/dist/containers/UserSettings/settings.d.ts +0 -1
  216. package/dist/containers/UserSettings/settings.js +2 -7
  217. package/dist/containers/UserSettings/settings.js.map +1 -1
  218. package/dist/containers/VDiskPage/VDiskPage.d.ts +0 -3
  219. package/dist/containers/VDiskPage/VDiskPage.js +9 -33
  220. package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
  221. package/dist/containers/VDiskPage/VDiskPage.scss +10 -19
  222. package/dist/containers/VDiskPage/i18n/en.json +1 -1
  223. package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
  224. package/dist/routes.d.ts +3 -0
  225. package/dist/routes.js +5 -0
  226. package/dist/routes.js.map +1 -1
  227. package/dist/services/api.d.ts +16 -5
  228. package/dist/services/api.js +51 -12
  229. package/dist/services/api.js.map +1 -1
  230. package/dist/services/settings.d.ts +2 -2
  231. package/dist/services/settings.js +2 -3
  232. package/dist/services/settings.js.map +1 -1
  233. package/dist/store/configureStore.d.ts +2 -2
  234. package/dist/store/defaultStore.d.ts +1 -1
  235. package/dist/store/reducers/capabilities/capabilities.d.ts +8 -1
  236. package/dist/store/reducers/capabilities/capabilities.js +6 -1
  237. package/dist/store/reducers/capabilities/capabilities.js.map +1 -1
  238. package/dist/store/reducers/capabilities/hooks.d.ts +1 -0
  239. package/dist/store/reducers/capabilities/hooks.js +3 -0
  240. package/dist/store/reducers/capabilities/hooks.js.map +1 -1
  241. package/dist/store/reducers/executeQuery.js +3 -0
  242. package/dist/store/reducers/executeQuery.js.map +1 -1
  243. package/dist/store/reducers/header/types.d.ts +5 -2
  244. package/dist/store/reducers/index.d.ts +2 -2
  245. package/dist/store/reducers/nodes/nodes.d.ts +2 -2
  246. package/dist/store/reducers/nodes/nodes.js.map +1 -1
  247. package/dist/store/reducers/nodes/types.d.ts +2 -23
  248. package/dist/store/reducers/pdisk/pdisk.js +29 -2
  249. package/dist/store/reducers/pdisk/pdisk.js.map +1 -1
  250. package/dist/store/reducers/pdisk/utils.js +1 -1
  251. package/dist/store/reducers/pdisk/utils.js.map +1 -1
  252. package/dist/store/reducers/storage/storage.d.ts +2 -2
  253. package/dist/store/reducers/storage/storage.js.map +1 -1
  254. package/dist/store/reducers/storage/types.d.ts +19 -0
  255. package/dist/store/reducers/storage/utils.js +7 -2
  256. package/dist/store/reducers/storage/utils.js.map +1 -1
  257. package/dist/store/reducers/tooltip.d.ts +1 -1
  258. package/dist/styles/mixins.scss +3 -3
  259. package/dist/types/api/capabilities.d.ts +1 -1
  260. package/dist/types/api/common.d.ts +1 -0
  261. package/dist/types/api/meta.d.ts +3 -0
  262. package/dist/types/api/nodes.d.ts +33 -0
  263. package/dist/types/api/nodes.js.map +1 -1
  264. package/dist/types/api/query.d.ts +1 -0
  265. package/dist/types/api/storage.d.ts +8 -5
  266. package/dist/types/store/query.d.ts +5 -8
  267. package/dist/utils/constants.d.ts +0 -8
  268. package/dist/utils/constants.js +0 -9
  269. package/dist/utils/constants.js.map +1 -1
  270. package/dist/utils/filters.d.ts +2 -1
  271. package/dist/utils/filters.js +1 -4
  272. package/dist/utils/filters.js.map +1 -1
  273. package/dist/utils/hooks/useChangedQuerySettings.d.ts +2 -2
  274. package/dist/utils/hooks/useChangedQuerySettings.js +2 -1
  275. package/dist/utils/hooks/useChangedQuerySettings.js.map +1 -1
  276. package/dist/utils/hooks/useLastQueryExecutionSettings.d.ts +15 -2
  277. package/dist/utils/hooks/useLastQueryExecutionSettings.js +8 -9
  278. package/dist/utils/hooks/useLastQueryExecutionSettings.js.map +1 -1
  279. package/dist/utils/hooks/useQueryExecutionSettings.d.ts +15 -2
  280. package/dist/utils/hooks/useQueryExecutionSettings.js +5 -7
  281. package/dist/utils/hooks/useQueryExecutionSettings.js.map +1 -1
  282. package/dist/utils/hooks/useSelectedColumns.d.ts +8 -0
  283. package/dist/utils/hooks/useSelectedColumns.js +35 -0
  284. package/dist/utils/hooks/useSelectedColumns.js.map +1 -0
  285. package/dist/utils/nodes.d.ts +3 -22
  286. package/dist/utils/nodes.js +16 -19
  287. package/dist/utils/nodes.js.map +1 -1
  288. package/dist/utils/query.d.ts +129 -0
  289. package/dist/utils/query.js +33 -1
  290. package/dist/utils/query.js.map +1 -1
  291. package/dist/utils/storage.d.ts +1 -1
  292. package/dist/utils/storage.js.map +1 -1
  293. package/package.json +2 -1
  294. package/dist/containers/Clusters/useSelectedColumns.d.ts +0 -7
  295. package/dist/containers/Clusters/useSelectedColumns.js +0 -26
  296. package/dist/containers/Clusters/useSelectedColumns.js.map +0 -1
  297. package/dist/containers/Nodes/getNodesColumns.js.map +0 -1
  298. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.d.ts +0 -6
  299. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +0 -30
  300. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js.map +0 -1
  301. package/dist/containers/PDiskPage/PDiskGroups/utils.d.ts +0 -2
  302. package/dist/containers/PDiskPage/PDiskGroups/utils.js +0 -14
  303. package/dist/containers/PDiskPage/PDiskGroups/utils.js.map +0 -1
  304. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.d.ts +0 -21
  305. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js.map +0 -1
  306. package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.d.ts +0 -50
  307. package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js.map +0 -1
  308. package/dist/containers/VDiskPage/utils.d.ts +0 -2
  309. package/dist/containers/VDiskPage/utils.js +0 -7
  310. package/dist/containers/VDiskPage/utils.js.map +0 -1
  311. package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +0 -4
  312. package/dist/store/reducers/tenantOverview/topNodes/topNodes.js +0 -27
  313. package/dist/store/reducers/tenantOverview/topNodes/topNodes.js.map +0 -1
@@ -1,30 +1,4 @@
1
- .global-storage-nodes {
2
- &__pdisks-column {
3
- overflow: visible; // to enable stacked disks overflow the row
4
- }
5
-
6
- &__pdisks-wrapper {
7
- display: flex;
8
- justify-content: left;
9
- align-items: flex-end;
10
-
11
- width: max-content;
12
- }
13
- &__pdisks-item {
14
- flex-grow: 1;
15
-
16
- max-width: 200px;
17
- margin-right: 10px;
18
-
19
- &:last-child {
20
- margin-right: 0px;
21
- }
22
- }
23
-
24
- &__group-id {
25
- font-weight: 500;
26
- }
27
-
1
+ .ydb-storage-nodes {
28
2
  &__node_unavailable {
29
3
  opacity: 0.6;
30
4
  }
@@ -0,0 +1,23 @@
1
+ .ydb-storage-nodes-columns {
2
+ &__pdisks-column {
3
+ overflow: visible; // to enable stacked disks overflow the row
4
+ }
5
+
6
+ &__pdisks-wrapper {
7
+ display: flex;
8
+ justify-content: left;
9
+ align-items: flex-end;
10
+
11
+ width: max-content;
12
+ }
13
+ &__pdisks-item {
14
+ flex-grow: 1;
15
+
16
+ max-width: 200px;
17
+ margin-right: 10px;
18
+
19
+ &:last-child {
20
+ margin-right: 0px;
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,39 @@
1
+ import type { GetStorageNodesColumnsParams } from './types';
2
+ import './StorageNodesColumns.scss';
3
+ export declare const getPreparedStorageNodesColumns: ({ additionalNodesProps, database, groupId, }: GetStorageNodesColumnsParams) => {
4
+ sortable: boolean;
5
+ name: string;
6
+ header?: React.ReactNode;
7
+ className?: string;
8
+ resizeable?: boolean;
9
+ render: ((props: {
10
+ row: import("../../../../store/reducers/storage/types").PreparedStorageNode;
11
+ index: number;
12
+ }) => React.ReactNode) & ((props: {
13
+ value?: unknown;
14
+ row: import("../../../../store/reducers/storage/types").PreparedStorageNode;
15
+ index: number;
16
+ footer?: boolean;
17
+ headerData?: boolean;
18
+ }) => import("react").ReactNode);
19
+ width?: number;
20
+ resizeMaxWidth?: number;
21
+ resizeMinWidth?: number;
22
+ align: "center" | "left" | "right";
23
+ headerTitle?: string;
24
+ accessor?: string | ((row: import("../../../../store/reducers/storage/types").PreparedStorageNode) => any) | undefined;
25
+ title?: string | ((row: import("../../../../store/reducers/storage/types").PreparedStorageNode) => string) | undefined;
26
+ customStyle?: ((props: import("@gravity-ui/react-data-table").CustomStyleParams<import("../../../../store/reducers/storage/types").PreparedStorageNode>) => import("react").CSSProperties) | undefined;
27
+ onClick?: ((data: {
28
+ row: import("../../../../store/reducers/storage/types").PreparedStorageNode;
29
+ index: number;
30
+ footer?: boolean;
31
+ headerData?: boolean;
32
+ }, column: import("@gravity-ui/react-data-table").Column<import("../../../../store/reducers/storage/types").PreparedStorageNode>, event: import("react").MouseEvent<HTMLTableCellElement>) => void) | undefined;
33
+ defaultOrder?: import("@gravity-ui/react-data-table").OrderType;
34
+ sortAccessor?: string | ((row: import("../../../../store/reducers/storage/types").PreparedStorageNode) => any) | undefined;
35
+ sortAscending?: import("@gravity-ui/react-data-table").Comparator<import("../../../../store/reducers/storage/types").PreparedStorageNode> | undefined;
36
+ sub?: import("@gravity-ui/react-data-table").Column<import("../../../../store/reducers/storage/types").PreparedStorageNode>[] | undefined;
37
+ group?: boolean;
38
+ autogroup?: boolean;
39
+ }[];
@@ -1,34 +1,26 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import DataTable from '@gravity-ui/react-data-table';
3
- import { NodeHostWrapper } from '../../../components/NodeHostWrapper/NodeHostWrapper';
4
- import { VISIBLE_ENTITIES } from '../../../store/reducers/storage/constants';
5
- import { EMPTY_DATA_PLACEHOLDER } from '../../../utils/constants';
6
- import { isSortableNodesProperty } from '../../../utils/nodes';
7
- import { PDisk } from '../PDisk/PDisk';
8
- import { b } from './shared';
9
- export const STORAGE_NODES_COLUMNS_WIDTH_LS_KEY = 'storageNodesColumnsWidth';
10
- export const STORAGE_NODES_COLUMNS_IDS = {
11
- NodeId: 'NodeId',
12
- Host: 'Host',
13
- DC: 'DC',
14
- Rack: 'Rack',
15
- Uptime: 'Uptime',
16
- PDisks: 'PDisks',
17
- Missing: 'Missing',
18
- };
19
- const getStorageNodesColumns = (additionalNodesProps, database) => {
3
+ import { NodeHostWrapper } from '../../../../components/NodeHostWrapper/NodeHostWrapper';
4
+ import { cn } from '../../../../utils/cn';
5
+ import { EMPTY_DATA_PLACEHOLDER } from '../../../../utils/constants';
6
+ import { isSortableNodesProperty } from '../../../../utils/nodes';
7
+ import { PDisk } from '../../PDisk/PDisk';
8
+ import { STORAGE_NODES_COLUMNS_IDS, STORAGE_NODES_COLUMNS_TITLES } from './constants';
9
+ import './StorageNodesColumns.scss';
10
+ const b = cn('ydb-storage-nodes-columns');
11
+ const getStorageNodesColumns = (additionalNodesProps, database, groupId) => {
20
12
  const getNodeRef = additionalNodesProps === null || additionalNodesProps === void 0 ? void 0 : additionalNodesProps.getNodeRef;
21
13
  const columns = [
22
14
  {
23
15
  name: STORAGE_NODES_COLUMNS_IDS.NodeId,
24
- header: 'Node ID',
16
+ header: STORAGE_NODES_COLUMNS_TITLES.NodeId,
25
17
  width: 100,
26
18
  align: DataTable.RIGHT,
27
19
  render: ({ row }) => row.NodeId,
28
20
  },
29
21
  {
30
22
  name: STORAGE_NODES_COLUMNS_IDS.Host,
31
- header: 'Host',
23
+ header: STORAGE_NODES_COLUMNS_TITLES.Host,
32
24
  width: 350,
33
25
  render: ({ row }) => {
34
26
  return _jsx(NodeHostWrapper, { node: row, getNodeRef: getNodeRef, database: database });
@@ -37,21 +29,21 @@ const getStorageNodesColumns = (additionalNodesProps, database) => {
37
29
  },
38
30
  {
39
31
  name: STORAGE_NODES_COLUMNS_IDS.DC,
40
- header: 'DC',
32
+ header: STORAGE_NODES_COLUMNS_TITLES.DC,
41
33
  width: 100,
42
34
  render: ({ row }) => row.DC || EMPTY_DATA_PLACEHOLDER,
43
35
  align: DataTable.LEFT,
44
36
  },
45
37
  {
46
38
  name: STORAGE_NODES_COLUMNS_IDS.Rack,
47
- header: 'Rack',
39
+ header: STORAGE_NODES_COLUMNS_TITLES.Rack,
48
40
  width: 100,
49
41
  render: ({ row }) => row.Rack || '—',
50
42
  align: DataTable.LEFT,
51
43
  },
52
44
  {
53
45
  name: STORAGE_NODES_COLUMNS_IDS.Uptime,
54
- header: 'Uptime',
46
+ header: STORAGE_NODES_COLUMNS_TITLES.Uptime,
55
47
  width: 130,
56
48
  sortAccessor: ({ StartTime }) => (StartTime ? -StartTime : 0),
57
49
  align: DataTable.RIGHT,
@@ -59,7 +51,7 @@ const getStorageNodesColumns = (additionalNodesProps, database) => {
59
51
  },
60
52
  {
61
53
  name: STORAGE_NODES_COLUMNS_IDS.Missing,
62
- header: 'Missing',
54
+ header: STORAGE_NODES_COLUMNS_TITLES.Missing,
63
55
  width: 100,
64
56
  align: DataTable.CENTER,
65
57
  defaultOrder: DataTable.DESCENDING,
@@ -67,14 +59,15 @@ const getStorageNodesColumns = (additionalNodesProps, database) => {
67
59
  },
68
60
  {
69
61
  name: STORAGE_NODES_COLUMNS_IDS.PDisks,
62
+ header: STORAGE_NODES_COLUMNS_TITLES.PDisks,
70
63
  className: b('pdisks-column'),
71
- header: 'PDisks',
72
64
  render: ({ row }) => {
73
65
  var _a;
74
66
  return (_jsx("div", { className: b('pdisks-wrapper'), children: (_a = row.PDisks) === null || _a === void 0 ? void 0 : _a.map((pDisk) => {
75
67
  var _a;
76
68
  const vDisks = (_a = row.VDisks) === null || _a === void 0 ? void 0 : _a.filter((vdisk) => vdisk.PDiskId === pDisk.PDiskId);
77
- return (_jsx("div", { className: b('pdisks-item'), children: _jsx(PDisk, { data: pDisk, vDisks: vDisks }) }, pDisk.PDiskId));
69
+ const inactiveVdisks = vDisks === null || vDisks === void 0 ? void 0 : vDisks.filter((vdisk) => { var _a; return groupId && ((_a = vdisk.VDiskId) === null || _a === void 0 ? void 0 : _a.GroupID) !== Number(groupId); });
70
+ return (_jsx("div", { className: b('pdisks-item'), children: _jsx(PDisk, { data: pDisk, vDisks: vDisks, inactiveVdisks: inactiveVdisks }) }, pDisk.PDiskId));
78
71
  }) }));
79
72
  },
80
73
  align: DataTable.CENTER,
@@ -85,15 +78,12 @@ const getStorageNodesColumns = (additionalNodesProps, database) => {
85
78
  ];
86
79
  return columns;
87
80
  };
88
- export const getPreparedStorageNodesColumns = (additionalNodesProps, visibleEntities, database) => {
89
- const rawColumns = getStorageNodesColumns(additionalNodesProps, database);
81
+ export const getPreparedStorageNodesColumns = ({ additionalNodesProps, database, groupId, }) => {
82
+ const rawColumns = getStorageNodesColumns(additionalNodesProps, database, groupId);
90
83
  const sortableColumns = rawColumns.map((column) => ({
91
84
  ...column,
92
85
  sortable: isSortableNodesProperty(column.name),
93
86
  }));
94
- if (visibleEntities !== VISIBLE_ENTITIES.missing) {
95
- return sortableColumns.filter((col) => col.name !== STORAGE_NODES_COLUMNS_IDS.Missing);
96
- }
97
87
  return sortableColumns;
98
88
  };
99
- //# sourceMappingURL=getStorageNodesColumns.js.map
89
+ //# sourceMappingURL=columns.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageNodes/columns/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAErD,OAAO,EAAC,eAAe,EAAC,MAAM,wDAAwD,CAAC;AAEvF,OAAO,EAAC,EAAE,EAAC,MAAM,sBAAsB,CAAC;AACxC,OAAO,EAAC,sBAAsB,EAAC,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAC,uBAAuB,EAAC,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,yBAAyB,EAAE,4BAA4B,EAAC,MAAM,aAAa,CAAC;AAGpF,OAAO,4BAA4B,CAAC;AAEpC,MAAM,CAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC,CAAC;AAE1C,MAAM,sBAAsB,GAAG,CAC3B,oBAAsD,EACtD,QAAiB,EACjB,OAAgB,EAClB,EAAE;IACA,MAAM,UAAU,GAAG,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAE,UAAU,CAAC;IAEpD,MAAM,OAAO,GAAyB;QAClC;YACI,IAAI,EAAE,yBAAyB,CAAC,MAAM;YACtC,MAAM,EAAE,4BAA4B,CAAC,MAAM;YAC3C,KAAK,EAAE,GAAG;YACV,KAAK,EAAE,SAAS,CAAC,KAAK;YACtB,MAAM,EAAE,CAAC,EAAC,GAAG,EAAC,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM;SAChC;QACD;YACI,IAAI,EAAE,yBAAyB,CAAC,IAAI;YACpC,MAAM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EF,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,EAC3C,oBAAoB,EACpB,QAAQ,EACR,OAAO,GACoB,EAAE,EAAE;IAC/B,MAAM,UAAU,GAAG,sBAAsB,CAAC,oBAAoB,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IAEnF,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,OAAO,eAAe,CAAC;AAC3B,CAAC,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { ValueOf } from '../../../../types/common';
2
+ export declare const STORAGE_NODES_COLUMNS_WIDTH_LS_KEY = "storageNodesColumnsWidth";
3
+ export declare const STORAGE_NODES_SELECTED_COLUMNS_LS_KEY = "storageNodesSelectedColumns";
4
+ export declare const STORAGE_NODES_COLUMNS_IDS: {
5
+ readonly NodeId: "NodeId";
6
+ readonly Host: "Host";
7
+ readonly DC: "DC";
8
+ readonly Rack: "Rack";
9
+ readonly Uptime: "Uptime";
10
+ readonly PDisks: "PDisks";
11
+ readonly Missing: "Missing";
12
+ };
13
+ type StorageNodesColumnId = ValueOf<typeof STORAGE_NODES_COLUMNS_IDS>;
14
+ export declare const DEFAULT_STORAGE_NODES_COLUMNS: StorageNodesColumnId[];
15
+ export declare const REQUIRED_STORAGE_NODES_COLUMNS: StorageNodesColumnId[];
16
+ export declare const STORAGE_NODES_COLUMNS_TITLES: {
17
+ readonly NodeId: string;
18
+ readonly Host: string;
19
+ readonly DC: string;
20
+ readonly Rack: string;
21
+ readonly Uptime: string;
22
+ readonly PDisks: string;
23
+ readonly Missing: string;
24
+ };
25
+ export {};
@@ -0,0 +1,47 @@
1
+ import i18n from './i18n';
2
+ export const STORAGE_NODES_COLUMNS_WIDTH_LS_KEY = 'storageNodesColumnsWidth';
3
+ export const STORAGE_NODES_SELECTED_COLUMNS_LS_KEY = 'storageNodesSelectedColumns';
4
+ export const STORAGE_NODES_COLUMNS_IDS = {
5
+ NodeId: 'NodeId',
6
+ Host: 'Host',
7
+ DC: 'DC',
8
+ Rack: 'Rack',
9
+ Uptime: 'Uptime',
10
+ PDisks: 'PDisks',
11
+ Missing: 'Missing',
12
+ };
13
+ export const DEFAULT_STORAGE_NODES_COLUMNS = [
14
+ 'NodeId',
15
+ 'Host',
16
+ 'DC',
17
+ 'Rack',
18
+ 'Uptime',
19
+ 'PDisks',
20
+ ];
21
+ export const REQUIRED_STORAGE_NODES_COLUMNS = ['NodeId'];
22
+ // This code is running when module is initialized and correct language may not be set yet
23
+ // get functions guarantee that i18n fields will be inited on render with current render language
24
+ export const STORAGE_NODES_COLUMNS_TITLES = {
25
+ get NodeId() {
26
+ return i18n('nodes-id');
27
+ },
28
+ get Host() {
29
+ return i18n('host');
30
+ },
31
+ get DC() {
32
+ return i18n('dc');
33
+ },
34
+ get Rack() {
35
+ return i18n('rack');
36
+ },
37
+ get Uptime() {
38
+ return i18n('uptime');
39
+ },
40
+ get PDisks() {
41
+ return i18n('pdisks');
42
+ },
43
+ get Missing() {
44
+ return i18n('missing');
45
+ },
46
+ };
47
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageNodes/columns/constants.ts"],"names":[],"mappings":"AAEA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,MAAM,CAAC,MAAM,kCAAkC,GAAG,0BAA0B,CAAC;AAC7E,MAAM,CAAC,MAAM,qCAAqC,GAAG,6BAA6B,CAAC;AAEnF,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;IAChB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACZ,CAAC;AAIX,MAAM,CAAC,MAAM,6BAA6B,GAA2B;IACjE,QAAQ;IACR,MAAM;IACN,IAAI;IACJ,MAAM;IACN,QAAQ;IACR,QAAQ;CACX,CAAC;AACF,MAAM,CAAC,MAAM,8BAA8B,GAA2B,CAAC,QAAQ,CAAC,CAAC;AAEjF,0FAA0F;AAC1F,iGAAiG;AACjG,MAAM,CAAC,MAAM,4BAA4B,GAAG;IACxC,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC;IAC5B,CAAC;IACD,IAAI,IAAI;QACJ,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC;IACxB,CAAC;IACD,IAAI,EAAE;QACF,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,IAAI,IAAI;QACJ,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC;IACxB,CAAC;IACD,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC1B,CAAC;IACD,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC1B,CAAC;IACD,IAAI,OAAO;QACP,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;CACoD,CAAC"}
@@ -0,0 +1,43 @@
1
+ import React from 'react';
2
+ import type { GetStorageNodesColumnsParams } from './types';
3
+ export declare function useStorageNodesSelectedColumns({ visibleEntities, database, additionalNodesProps, groupId, }: GetStorageNodesColumnsParams): {
4
+ columnsToShow: {
5
+ sortable: boolean;
6
+ name: string;
7
+ header?: React.ReactNode;
8
+ className?: string;
9
+ resizeable?: boolean;
10
+ render: ((props: {
11
+ row: import("../../../../store/reducers/storage/types").PreparedStorageNode;
12
+ index: number;
13
+ }) => React.ReactNode) & ((props: {
14
+ value?: unknown;
15
+ row: import("../../../../store/reducers/storage/types").PreparedStorageNode;
16
+ index: number;
17
+ footer?: boolean;
18
+ headerData?: boolean;
19
+ }) => React.ReactNode);
20
+ width?: number;
21
+ resizeMaxWidth?: number;
22
+ resizeMinWidth?: number;
23
+ align: "center" | "left" | "right";
24
+ headerTitle?: string;
25
+ accessor?: string | ((row: import("../../../../store/reducers/storage/types").PreparedStorageNode) => any) | undefined;
26
+ title?: string | ((row: import("../../../../store/reducers/storage/types").PreparedStorageNode) => string) | undefined;
27
+ customStyle?: ((props: import("@gravity-ui/react-data-table").CustomStyleParams<import("../../../../store/reducers/storage/types").PreparedStorageNode>) => React.CSSProperties) | undefined;
28
+ onClick?: ((data: {
29
+ row: import("../../../../store/reducers/storage/types").PreparedStorageNode;
30
+ index: number;
31
+ footer?: boolean;
32
+ headerData?: boolean;
33
+ }, column: import("@gravity-ui/react-data-table").Column<import("../../../../store/reducers/storage/types").PreparedStorageNode>, event: React.MouseEvent<HTMLTableCellElement>) => void) | undefined;
34
+ defaultOrder?: import("@gravity-ui/react-data-table").OrderType;
35
+ sortAccessor?: string | ((row: import("../../../../store/reducers/storage/types").PreparedStorageNode) => any) | undefined;
36
+ sortAscending?: import("@gravity-ui/react-data-table").Comparator<import("../../../../store/reducers/storage/types").PreparedStorageNode> | undefined;
37
+ sub?: import("@gravity-ui/react-data-table").Column<import("../../../../store/reducers/storage/types").PreparedStorageNode>[] | undefined;
38
+ group?: boolean;
39
+ autogroup?: boolean;
40
+ }[];
41
+ columnsToSelect: import("@gravity-ui/uikit").TableColumnSetupItem[];
42
+ setColumns: (updated: import("@gravity-ui/uikit").TableColumnSetupItem[]) => void;
43
+ };
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { VISIBLE_ENTITIES } from '../../../../store/reducers/storage/constants';
3
+ import { useSelectedColumns } from '../../../../utils/hooks/useSelectedColumns';
4
+ import { getPreparedStorageNodesColumns } from './columns';
5
+ import { DEFAULT_STORAGE_NODES_COLUMNS, REQUIRED_STORAGE_NODES_COLUMNS, STORAGE_NODES_COLUMNS_IDS, STORAGE_NODES_COLUMNS_TITLES, STORAGE_NODES_SELECTED_COLUMNS_LS_KEY, } from './constants';
6
+ export function useStorageNodesSelectedColumns({ visibleEntities, database, additionalNodesProps, groupId, }) {
7
+ const columns = React.useMemo(() => {
8
+ return getPreparedStorageNodesColumns({ database, additionalNodesProps, groupId });
9
+ }, [database, additionalNodesProps, groupId]);
10
+ const requiredColumns = React.useMemo(() => {
11
+ if (visibleEntities === VISIBLE_ENTITIES.missing) {
12
+ return [...REQUIRED_STORAGE_NODES_COLUMNS, STORAGE_NODES_COLUMNS_IDS.Missing];
13
+ }
14
+ return REQUIRED_STORAGE_NODES_COLUMNS;
15
+ }, [visibleEntities]);
16
+ return useSelectedColumns(columns, STORAGE_NODES_SELECTED_COLUMNS_LS_KEY, STORAGE_NODES_COLUMNS_TITLES, DEFAULT_STORAGE_NODES_COLUMNS, requiredColumns);
17
+ }
18
+ //# sourceMappingURL=hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageNodes/columns/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,8CAA8C,CAAC;AAC9E,OAAO,EAAC,kBAAkB,EAAC,MAAM,4CAA4C,CAAC;AAE9E,OAAO,EAAC,8BAA8B,EAAC,MAAM,WAAW,CAAC;AACzD,OAAO,EACH,6BAA6B,EAC7B,8BAA8B,EAC9B,yBAAyB,EACzB,4BAA4B,EAC5B,qCAAqC,GACxC,MAAM,aAAa,CAAC;AAGrB,MAAM,UAAU,8BAA8B,CAAC,EAC3C,eAAe,EACf,QAAQ,EACR,oBAAoB,EACpB,OAAO,GACoB;IAC3B,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QAC/B,OAAO,8BAA8B,CAAC,EAAC,QAAQ,EAAE,oBAAoB,EAAE,OAAO,EAAC,CAAC,CAAC;IACrF,CAAC,EAAE,CAAC,QAAQ,EAAE,oBAAoB,EAAE,OAAO,CAAC,CAAC,CAAC;IAE9C,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QACvC,IAAI,eAAe,KAAK,gBAAgB,CAAC,OAAO,EAAE,CAAC;YAC/C,OAAO,CAAC,GAAG,8BAA8B,EAAE,yBAAyB,CAAC,OAAO,CAAC,CAAC;QAClF,CAAC;QACD,OAAO,8BAA8B,CAAC;IAC1C,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IAEtB,OAAO,kBAAkB,CACrB,OAAO,EACP,qCAAqC,EACrC,4BAA4B,EAC5B,6BAA6B,EAC7B,eAAe,CAClB,CAAC;AACN,CAAC"}
@@ -0,0 +1,9 @@
1
+ {
2
+ "nodes-id": "Node ID",
3
+ "host": "Host",
4
+ "dc": "DC",
5
+ "rack": "Rack",
6
+ "uptime": "Uptime",
7
+ "missing": "Missing",
8
+ "pdisks": "PDisks"
9
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: (key: "missing" | "host" | "uptime" | "dc" | "rack" | "nodes-id" | "pdisks", params?: import("@gravity-ui/i18n").Params) => string;
2
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { registerKeysets } from '../../../../../utils/i18n';
2
+ import en from './en.json';
3
+ const COMPONENT = 'ydb-storage-nodes-columns';
4
+ export default registerKeysets(COMPONENT, { en });
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/containers/Storage/StorageNodes/columns/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,2BAA2B,CAAC;AAE9C,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { Column as DataTableColumn } from '@gravity-ui/react-data-table';
2
+ import type { Column as PaginatedTableColumn } from '../../../../components/PaginatedTable';
3
+ import type { PreparedStorageNode, VisibleEntities } from '../../../../store/reducers/storage/types';
4
+ import type { AdditionalNodesProps } from '../../../../types/additionalProps';
5
+ export type StorageNodesColumn = PaginatedTableColumn<PreparedStorageNode> & DataTableColumn<PreparedStorageNode>;
6
+ export interface GetStorageNodesColumnsParams {
7
+ additionalNodesProps: AdditionalNodesProps | undefined;
8
+ visibleEntities?: VisibleEntities;
9
+ database?: string;
10
+ groupId?: string;
11
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageNodes/columns/types.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
1
  import type { FetchData } from '../../../components/PaginatedTable';
2
- import type { NodesApiRequestParams } from '../../../store/reducers/nodes/types';
3
2
  import type { PreparedStorageNode, PreparedStorageNodeFilters } from '../../../store/reducers/storage/types';
4
- export declare const getStorageNodes: FetchData<PreparedStorageNode, PreparedStorageNodeFilters, Pick<NodesApiRequestParams, 'type' | 'storage'>>;
3
+ import type { NodesRequestParams } from '../../../types/api/nodes';
4
+ export declare const getStorageNodes: FetchData<PreparedStorageNode, PreparedStorageNodeFilters, Pick<NodesRequestParams, 'type' | 'storage'>>;
@@ -1,5 +1,6 @@
1
1
  import { prepareStorageNodesResponse } from '../../../store/reducers/storage/utils';
2
- import { getUptimeParamValue } from '../../../utils/nodes';
2
+ import { prepareSortValue } from '../../../utils/filters';
3
+ import { getUptimeParamValue, isSortableNodesProperty } from '../../../utils/nodes';
3
4
  const getConcurrentId = (limit, offset) => {
4
5
  return `getStorageNodes|offset${offset}|limit${limit}`;
5
6
  };
@@ -7,16 +8,18 @@ export const getStorageNodes = async (params) => {
7
8
  const { type = 'static', storage = true, limit, offset, sortParams, filters } = params;
8
9
  const { searchValue, nodesUptimeFilter, visibleEntities, database } = filters !== null && filters !== void 0 ? filters : {};
9
10
  const { sortOrder, columnId } = sortParams !== null && sortParams !== void 0 ? sortParams : {};
11
+ const sort = isSortableNodesProperty(columnId)
12
+ ? prepareSortValue(columnId, sortOrder)
13
+ : undefined;
10
14
  const response = await window.api.getNodes({
11
15
  type,
12
16
  storage,
13
17
  limit,
14
18
  offset,
15
- sortOrder,
16
- sortValue: columnId,
19
+ sort,
17
20
  filter: searchValue,
18
21
  uptime: getUptimeParamValue(nodesUptimeFilter),
19
- visibleEntities,
22
+ with: visibleEntities,
20
23
  database,
21
24
  }, { concurrentId: getConcurrentId(limit, offset) });
22
25
  const preparedResponse = prepareStorageNodesResponse(response);
@@ -1 +1 @@
1
- {"version":3,"file":"getNodes.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageNodes/getNodes.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,2BAA2B,EAAC,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAC,mBAAmB,EAAC,MAAM,sBAAsB,CAAC;AAGzD,MAAM,eAAe,GAAG,CAAC,KAAc,EAAE,MAAe,EAAE,EAAE;IACxD,OAAO,yBAAyB,MAAM,SAAS,KAAK,EAAE,CAAC;AAC3D,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAIxB,KAAK,EAAE,MAAM,EAAE,EAAE;IACjB,MAAM,EAAC,IAAI,GAAG,QAAQ,EAAE,OAAO,GAAG,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAC,GAAG,MAAM,CAAC;IACrF,MAAM,EAAC,WAAW,EAAE,iBAAiB,EAAE,eAAe,EAAE,QAAQ,EAAC,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC;IAClF,MAAM,EAAC,SAAS,EAAE,QAAQ,EAAC,GAAG,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,EAAE,CAAC;IAE/C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GA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,GAAI,EAAE,CAAC;IAClF,MAAM,EAAC,SAAS,EAAE,QAAQ,EAAC,GAAG,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,EAAE,CAAC;IAE/C,MAAM,IAAI,GAAG,uBAAuB,CAAC,QAAQ,CAAC;QAC1C,CAAC,CAAC,gBAAgB,CAAC,QAAQ,EAAE,SAAS,CAAC;QACvC,CAAC,CAAC,SAAS,CAAC;IAEhB,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,QAAQ,CACtC;QACI,IAAI;QACJ,OAAO;QACP,KAAK;QACL,MAAM;QACN,IAAI;QACJ,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,mBAAmB,CAAC,iBAAiB,CAAC;QAC9C,IAAI,EAAE,eAAe;QACrB,QAAQ;KACX,EACD,EAAC,YAAY,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,EAAC,CACjD,CAAC;IACF,MAAM,gBAAgB,GAAG,2BAA2B,CAAC,QAAQ,CAAC,CAAC;IAC/D,OAAO;QACH,IAAI,EAAE,gBAAgB,CAAC,KAAK,IAAI,EAAE;QAClC,KAAK,EAAE,gBAAgB,CAAC,KAAK,IAAI,CAAC;QAClC,KAAK,EAAE,gBAAgB,CAAC,KAAK,IAAI,CAAC;KACrC,CAAC;AACN,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { cn } from '../../../utils/cn';
2
2
  import { isUnavailableNode } from '../../../utils/nodes';
3
- export const b = cn('global-storage-nodes');
3
+ export const b = cn('ydb-storage-nodes');
4
4
  export const getRowUnavailableClassName = (row) => b('node', { unavailable: isUnavailableNode(row) });
5
5
  //# sourceMappingURL=shared.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageNodes/shared.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AACrC,OAAO,EAAC,iBAAiB,EAAC,MAAM,sBAAsB,CAAC;AAEvD,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC,CAAC;AAE5C,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,GAAwB,EAAE,EAAE,CACnE,CAAC,CAAC,MAAM,EAAE,EAAC,WAAW,EAAE,iBAAiB,CAAC,GAAG,CAAC,EAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageNodes/shared.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AACrC,OAAO,EAAC,iBAAiB,EAAC,MAAM,sBAAsB,CAAC;AAEvD,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC;AAEzC,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,GAAwB,EAAE,EAAE,CACnE,CAAC,CAAC,MAAM,EAAE,EAAC,WAAW,EAAE,iBAAiB,CAAC,GAAG,CAAC,EAAC,CAAC,CAAC"}
@@ -1,9 +1,7 @@
1
- import type { AdditionalNodesProps } from '../../types/additionalProps';
2
1
  interface StorageWrapperProps {
3
2
  database?: string;
4
3
  nodeId?: string;
5
4
  parentContainer?: Element | null;
6
- additionalNodesProps?: AdditionalNodesProps;
7
5
  }
8
6
  export declare const StorageWrapper: ({ parentContainer, ...props }: StorageWrapperProps) => import("react/jsx-runtime").JSX.Element;
9
7
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"StorageWrapper.js","sourceRoot":"","sources":["../../../src/containers/Storage/StorageWrapper.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,wBAAwB,EAAC,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AASlC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAC,eAAe,EAAE,GAAG,KAAK,EAAsB,EAAE,EAAE;IAC/E,MAAM,CAAC,kBAAkB,CAAC,GAAG,UAAU,CAAU,wBAAwB,CAAC,CAAC;IAE3E,IAAI,kBAAkB,EAAE,CAAC;QACrB,OAAO,KAAC,gBAAgB,IAAC,eAAe,EAAE,eAAe,KAAM,KAAK,GAAI,CAAC;IAC7E,CAAC;IAED,OAAO,KAAC,OAAO,OAAK,KAAK,GAAI,CAAC;AAClC,CAAC,CAAC"}
1
+ {"version":3,"file":"StorageWrapper.js","sourceRoot":"","sources":["../../../src/containers/Storage/StorageWrapper.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,wBAAwB,EAAC,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAQlC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAC,eAAe,EAAE,GAAG,KAAK,EAAsB,EAAE,EAAE;IAC/E,MAAM,CAAC,kBAAkB,CAAC,GAAG,UAAU,CAAU,wBAAwB,CAAC,CAAC;IAE3E,IAAI,kBAAkB,EAAE,CAAC;QACrB,OAAO,KAAC,gBAAgB,IAAC,eAAe,EAAE,eAAe,KAAM,KAAK,GAAI,CAAC;IAC7E,CAAC;IAED,OAAO,KAAC,OAAO,OAAK,KAAK,GAAI,CAAC;AAClC,CAAC,CAAC"}
@@ -2,7 +2,8 @@ import { ASCENDING, DESCENDING } from '@gravity-ui/react-data-table/build/esm/li
2
2
  import { VISIBLE_ENTITIES } from '../../../store/reducers/storage/constants';
3
3
  import { EFlag } from '../../../types/api/enums';
4
4
  import { generateEvaluator } from '../../../utils/generateEvaluator';
5
- import { NODES_SORT_VALUES } from '../../../utils/nodes';
5
+ import { NODES_COLUMNS_IDS } from '../../Nodes/columns/constants';
6
+ import { STORAGE_GROUPS_COLUMNS_IDS } from '../StorageGroups/columns/constants';
6
7
  const defaultDegradationEvaluator = generateEvaluator(1, 2, ['success', 'warning', 'danger']);
7
8
  const degradationEvaluators = {
8
9
  'block-4-2': generateEvaluator(1, 2, ['success', 'warning', 'danger']),
@@ -26,19 +27,19 @@ export const getUsageSeverityForEntityStatus = generateEvaluator(80, 85, [
26
27
  EFlag.Red,
27
28
  ]);
28
29
  export const defaultSortNode = {
29
- sortValue: NODES_SORT_VALUES.NodeId,
30
+ sortValue: NODES_COLUMNS_IDS.NodeId,
30
31
  sortOrder: ASCENDING,
31
32
  };
32
33
  const defaultSortGroup = {
33
- sortValue: 'PoolName',
34
+ sortValue: STORAGE_GROUPS_COLUMNS_IDS.PoolName,
34
35
  sortOrder: ASCENDING,
35
36
  };
36
37
  const defaultSortGroupMissing = {
37
- sortValue: 'Degraded',
38
+ sortValue: STORAGE_GROUPS_COLUMNS_IDS.Degraded,
38
39
  sortOrder: DESCENDING,
39
40
  };
40
41
  const defaultSortGroupSpace = {
41
- sortValue: 'Usage',
42
+ sortValue: STORAGE_GROUPS_COLUMNS_IDS.Usage,
42
43
  sortOrder: DESCENDING,
43
44
  };
44
45
  export function getDefaultSortGroup(visibleEntities) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/containers/Storage/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAC,MAAM,sDAAsD,CAAC;AAG3F,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAM3E,OAAO,EAAC,KAAK,EAAC,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EAAC,iBAAiB,EAAC,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAC,iBAAiB,EAAC,MAAM,sBAAsB,CAAC;AAEvD,MAAM,2BAA2B,GAAG,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC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C;IACD,IAAI,eAAe,KAAK,gBAAgB,CAAC,KAAK,EAAE,CAAC;QAC7C,OAAO,qBAAqB,CAAC;IACjC,CAAC;IACD,OAAO,gBAAgB,CAAC;AAC5B,CAAC"}
@@ -0,0 +1,2 @@
1
+ import './StorageGroupPage.scss';
2
+ export declare function StorageGroupPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,74 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React from 'react';
3
+ import { skipToken } from '@reduxjs/toolkit/query';
4
+ import { Helmet } from 'react-helmet-async';
5
+ import { StringParam, useQueryParams } from 'use-query-params';
6
+ import { EntityPageTitle } from '../../components/EntityPageTitle/EntityPageTitle';
7
+ import { ResponseError } from '../../components/Errors/ResponseError';
8
+ import { InfoViewerSkeleton } from '../../components/InfoViewerSkeleton/InfoViewerSkeleton';
9
+ import { PageMetaWithAutorefresh } from '../../components/PageMeta/PageMeta';
10
+ import { StorageGroupInfo } from '../../components/StorageGroupInfo/StorageGroupInfo';
11
+ import { useCapabilitiesLoaded, useStorageGroupsHandlerAvailable, } from '../../store/reducers/capabilities/hooks';
12
+ import { setHeaderBreadcrumbs } from '../../store/reducers/header/header';
13
+ import { storageApi } from '../../store/reducers/storage/storage';
14
+ import { EFlag } from '../../types/api/enums';
15
+ import { valueIsDefined } from '../../utils';
16
+ import { cn } from '../../utils/cn';
17
+ import { useAutoRefreshInterval, useTypedDispatch } from '../../utils/hooks';
18
+ import { Storage } from '../Storage/Storage';
19
+ import { storageGroupPageKeyset } from './i18n';
20
+ import './StorageGroupPage.scss';
21
+ const storageGroupPageCn = cn('ydb-storage-group-page');
22
+ export function StorageGroupPage() {
23
+ var _a, _b;
24
+ const dispatch = useTypedDispatch();
25
+ const [{ groupId }] = useQueryParams({ groupId: StringParam });
26
+ React.useEffect(() => {
27
+ dispatch(setHeaderBreadcrumbs('storageGroup', { groupId }));
28
+ }, [dispatch, groupId]);
29
+ const [autoRefreshInterval] = useAutoRefreshInterval();
30
+ const shouldUseGroupsHandler = useStorageGroupsHandlerAvailable();
31
+ const capabilitiesLoaded = useCapabilitiesLoaded();
32
+ const groupQuery = storageApi.useGetStorageGroupsInfoQuery(valueIsDefined(groupId) ? { groupId, shouldUseGroupsHandler, with: 'all' } : skipToken, {
33
+ pollingInterval: autoRefreshInterval,
34
+ skip: !capabilitiesLoaded,
35
+ });
36
+ const storageGroupData = (_b = (_a = groupQuery.data) === null || _a === void 0 ? void 0 : _a.groups) === null || _b === void 0 ? void 0 : _b[0];
37
+ const loading = groupQuery.isFetching && storageGroupData === undefined;
38
+ const renderHelmet = () => {
39
+ const pageTitle = groupId
40
+ ? `${storageGroupPageKeyset('storage-group')} ${groupId}`
41
+ : storageGroupPageKeyset('storage-group');
42
+ return (_jsx(Helmet, { titleTemplate: `%s - ${pageTitle} — YDB Monitoring`, defaultTitle: `${pageTitle} — YDB Monitoring` }));
43
+ };
44
+ const renderPageMeta = () => {
45
+ if (!groupId) {
46
+ return null;
47
+ }
48
+ const items = [`${storageGroupPageKeyset('pool-name')}: ${storageGroupData === null || storageGroupData === void 0 ? void 0 : storageGroupData.PoolName}`];
49
+ return (_jsx(PageMetaWithAutorefresh, { className: storageGroupPageCn('meta'), loading: loading, items: items }));
50
+ };
51
+ const renderPageTitle = () => {
52
+ return (_jsx(EntityPageTitle, { className: storageGroupPageCn('title'), entityName: storageGroupPageKeyset('storage-group'), status: (storageGroupData === null || storageGroupData === void 0 ? void 0 : storageGroupData.Overall) || EFlag.Grey, id: groupId }));
53
+ };
54
+ const renderInfo = () => {
55
+ if (loading) {
56
+ return _jsx(InfoViewerSkeleton, { className: storageGroupPageCn('info'), rows: 10 });
57
+ }
58
+ return _jsx(StorageGroupInfo, { data: storageGroupData, className: storageGroupPageCn('info') });
59
+ };
60
+ const renderStorage = () => {
61
+ if (!groupId) {
62
+ return null;
63
+ }
64
+ return (_jsxs(React.Fragment, { children: [_jsx("div", { className: storageGroupPageCn('storage-title'), children: storageGroupPageKeyset('storage') }), _jsx(Storage, { groupId: groupId })] }));
65
+ };
66
+ const renderError = () => {
67
+ if (!groupQuery.error) {
68
+ return null;
69
+ }
70
+ return _jsx(ResponseError, { error: groupQuery.error });
71
+ };
72
+ return (_jsxs("div", { className: storageGroupPageCn(null), children: [renderHelmet(), renderPageMeta(), renderPageTitle(), renderError(), renderInfo(), renderStorage()] }));
73
+ }
74
+ //# sourceMappingURL=StorageGroupPage.js.map