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
@@ -5,9 +5,10 @@ import DataTable from '@gravity-ui/react-data-table';
5
5
  import { Icon, Label, Popover, PopoverBehavior } from '@gravity-ui/uikit';
6
6
  import { CellWithPopover } from '../../../../components/CellWithPopover/CellWithPopover';
7
7
  import { EntityStatus } from '../../../../components/EntityStatus/EntityStatus';
8
+ import { InternalLink } from '../../../../components/InternalLink';
8
9
  import { UsageLabel } from '../../../../components/UsageLabel/UsageLabel';
9
10
  import { VDiskWithDonorsStack } from '../../../../components/VDisk/VDiskWithDonorsStack';
10
- import { VISIBLE_ENTITIES } from '../../../../store/reducers/storage/constants';
11
+ import { getStorageGroupPath } from '../../../../routes';
11
12
  import { cn } from '../../../../utils/cn';
12
13
  import { stringifyVdiskId } from '../../../../utils/dataFormatters/dataFormatters';
13
14
  import { isSortableStorageProperty } from '../../../../utils/storage';
@@ -15,27 +16,12 @@ import { bytesToGB, bytesToSpeed } from '../../../../utils/utils';
15
16
  import { Disks } from '../../Disks/Disks';
16
17
  import { getDegradedSeverity, getUsageSeverityForStorageGroup } from '../../utils';
17
18
  import i18n from '../i18n';
19
+ import { STORAGE_GROUPS_COLUMNS_IDS, STORAGE_GROUPS_COLUMNS_TITLES } from './constants';
18
20
  import './StorageGroupsColumns.scss';
19
21
  const b = cn('ydb-storage-groups-columns');
20
- export const STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY = 'storageGroupsColumnsWidth';
21
- export const GROUPS_COLUMNS_IDS = {
22
- PoolName: 'PoolName',
23
- MediaType: 'MediaType',
24
- Erasure: 'Erasure',
25
- GroupId: 'GroupId',
26
- Used: 'Used',
27
- Limit: 'Limit',
28
- Usage: 'Usage',
29
- DiskSpace: 'DiskSpace',
30
- Read: 'Read',
31
- Write: 'Write',
32
- VDisks: 'VDisks',
33
- Disks: 'Disks',
34
- Degraded: 'Degraded',
35
- };
36
22
  const poolNameColumn = {
37
- name: GROUPS_COLUMNS_IDS.PoolName,
38
- header: 'Pool Name',
23
+ name: STORAGE_GROUPS_COLUMNS_IDS.PoolName,
24
+ header: STORAGE_GROUPS_COLUMNS_TITLES.PoolName,
39
25
  width: 250,
40
26
  render: ({ row }) => {
41
27
  var _a;
@@ -45,8 +31,8 @@ const poolNameColumn = {
45
31
  align: DataTable.LEFT,
46
32
  };
47
33
  const typeColumn = {
48
- name: GROUPS_COLUMNS_IDS.MediaType,
49
- header: 'Type',
34
+ name: STORAGE_GROUPS_COLUMNS_IDS.MediaType,
35
+ header: STORAGE_GROUPS_COLUMNS_TITLES.MediaType,
50
36
  width: 100,
51
37
  resizeMinWidth: 100,
52
38
  align: DataTable.LEFT,
@@ -54,16 +40,16 @@ const typeColumn = {
54
40
  sortable: false,
55
41
  };
56
42
  const erasureColumn = {
57
- name: GROUPS_COLUMNS_IDS.Erasure,
58
- header: 'Erasure',
43
+ name: STORAGE_GROUPS_COLUMNS_IDS.Erasure,
44
+ header: STORAGE_GROUPS_COLUMNS_TITLES.Erasure,
59
45
  width: 100,
60
46
  sortAccessor: (row) => row.ErasureSpecies,
61
47
  render: ({ row }) => (row.ErasureSpecies ? row.ErasureSpecies : '-'),
62
48
  align: DataTable.LEFT,
63
49
  };
64
50
  const degradedColumn = {
65
- name: GROUPS_COLUMNS_IDS.Degraded,
66
- header: 'Degraded',
51
+ name: STORAGE_GROUPS_COLUMNS_IDS.Degraded,
52
+ header: STORAGE_GROUPS_COLUMNS_TITLES.Degraded,
67
53
  width: 110,
68
54
  resizeMinWidth: 110,
69
55
  render: ({ row }) => row.Degraded ? (_jsxs(Label, { theme: getDegradedSeverity(row), children: ["Degraded: ", row.Degraded] })) : ('-'),
@@ -71,8 +57,8 @@ const degradedColumn = {
71
57
  defaultOrder: DataTable.DESCENDING,
72
58
  };
73
59
  const usageColumn = {
74
- name: GROUPS_COLUMNS_IDS.Usage,
75
- header: 'Usage',
60
+ name: STORAGE_GROUPS_COLUMNS_IDS.Usage,
61
+ header: STORAGE_GROUPS_COLUMNS_TITLES.Usage,
76
62
  width: 75,
77
63
  resizeMinWidth: 75,
78
64
  render: ({ row }) => {
@@ -85,18 +71,18 @@ const usageColumn = {
85
71
  align: DataTable.LEFT,
86
72
  };
87
73
  const groupIdColumn = {
88
- name: GROUPS_COLUMNS_IDS.GroupId,
89
- header: 'Group ID',
74
+ name: STORAGE_GROUPS_COLUMNS_IDS.GroupId,
75
+ header: STORAGE_GROUPS_COLUMNS_TITLES.GroupId,
90
76
  width: 130,
91
77
  render: ({ row }) => {
92
- return _jsx("span", { className: b('group-id'), children: row.GroupId });
78
+ return row.GroupId ? (_jsx(InternalLink, { className: b('group-id'), to: getStorageGroupPath(row.GroupId), children: row.GroupId })) : ('-');
93
79
  },
94
80
  sortAccessor: (row) => Number(row.GroupId),
95
81
  align: DataTable.RIGHT,
96
82
  };
97
83
  const usedColumn = {
98
- name: GROUPS_COLUMNS_IDS.Used,
99
- header: 'Used',
84
+ name: STORAGE_GROUPS_COLUMNS_IDS.Used,
85
+ header: STORAGE_GROUPS_COLUMNS_TITLES.Used,
100
86
  width: 100,
101
87
  render: ({ row }) => {
102
88
  return bytesToGB(row.Used, true);
@@ -104,8 +90,8 @@ const usedColumn = {
104
90
  align: DataTable.RIGHT,
105
91
  };
106
92
  const limitColumn = {
107
- name: GROUPS_COLUMNS_IDS.Limit,
108
- header: 'Limit',
93
+ name: STORAGE_GROUPS_COLUMNS_IDS.Limit,
94
+ header: STORAGE_GROUPS_COLUMNS_TITLES.Limit,
109
95
  width: 100,
110
96
  render: ({ row }) => {
111
97
  return bytesToGB(row.Limit);
@@ -113,8 +99,8 @@ const limitColumn = {
113
99
  align: DataTable.RIGHT,
114
100
  };
115
101
  const usedSpaceFlagColumn = {
116
- name: GROUPS_COLUMNS_IDS.DiskSpace,
117
- header: 'Space',
102
+ name: STORAGE_GROUPS_COLUMNS_IDS.DiskSpace,
103
+ header: STORAGE_GROUPS_COLUMNS_TITLES.DiskSpace,
118
104
  width: 110,
119
105
  render: ({ row }) => {
120
106
  return _jsx(EntityStatus, { status: row.DiskSpace });
@@ -122,8 +108,8 @@ const usedSpaceFlagColumn = {
122
108
  align: DataTable.CENTER,
123
109
  };
124
110
  const readColumn = {
125
- name: GROUPS_COLUMNS_IDS.Read,
126
- header: 'Read',
111
+ name: STORAGE_GROUPS_COLUMNS_IDS.Read,
112
+ header: STORAGE_GROUPS_COLUMNS_TITLES.Read,
127
113
  width: 100,
128
114
  render: ({ row }) => {
129
115
  return row.Read ? bytesToSpeed(row.Read) : '-';
@@ -131,8 +117,8 @@ const readColumn = {
131
117
  align: DataTable.RIGHT,
132
118
  };
133
119
  const writeColumn = {
134
- name: GROUPS_COLUMNS_IDS.Write,
135
- header: 'Write',
120
+ name: STORAGE_GROUPS_COLUMNS_IDS.Write,
121
+ header: STORAGE_GROUPS_COLUMNS_TITLES.Write,
136
122
  width: 100,
137
123
  render: ({ row }) => {
138
124
  return row.Write ? bytesToSpeed(row.Write) : '-';
@@ -140,9 +126,9 @@ const writeColumn = {
140
126
  align: DataTable.RIGHT,
141
127
  };
142
128
  const getVDisksColumn = (nodes) => ({
143
- name: GROUPS_COLUMNS_IDS.VDisks,
129
+ name: STORAGE_GROUPS_COLUMNS_IDS.VDisks,
130
+ header: STORAGE_GROUPS_COLUMNS_TITLES.VDisks,
144
131
  className: b('vdisks-column'),
145
- header: 'VDisks',
146
132
  render: ({ row }) => {
147
133
  var _a;
148
134
  return (_jsx("div", { className: b('vdisks-wrapper'), children: (_a = row.VDisks) === null || _a === void 0 ? void 0 : _a.map((vDisk) => {
@@ -155,9 +141,9 @@ const getVDisksColumn = (nodes) => ({
155
141
  sortable: false,
156
142
  });
157
143
  const getDisksColumn = (nodes) => ({
158
- name: GROUPS_COLUMNS_IDS.Disks,
144
+ name: STORAGE_GROUPS_COLUMNS_IDS.VDisksPDisks,
145
+ header: STORAGE_GROUPS_COLUMNS_TITLES.VDisksPDisks,
159
146
  className: b('disks-column'),
160
- header: 'Disks',
161
147
  render: ({ row }) => {
162
148
  return _jsx(Disks, { vDisks: row.VDisks, nodes: nodes });
163
149
  },
@@ -182,57 +168,25 @@ export const getStorageTopGroupsColumns = () => {
182
168
  };
183
169
  });
184
170
  };
185
- export const getDiskPageStorageColumns = (data, options) => {
186
- const disksColumn = (options === null || options === void 0 ? void 0 : options.useAdvancedStorage)
187
- ? getDisksColumn()
188
- : getVDisksColumn(data === null || data === void 0 ? void 0 : data.nodes);
189
- return [
190
- poolNameColumn,
191
- typeColumn,
192
- erasureColumn,
193
- degradedColumn,
171
+ export const getStorageGroupsColumns = (data) => {
172
+ const columns = [
194
173
  groupIdColumn,
195
- usageColumn,
196
- usedColumn,
197
- disksColumn,
198
- ];
199
- };
200
- const getStorageGroupsColumns = (data, options) => {
201
- const disksColumn = (options === null || options === void 0 ? void 0 : options.useAdvancedStorage)
202
- ? getDisksColumn()
203
- : getVDisksColumn(data === null || data === void 0 ? void 0 : data.nodes);
204
- return [
205
174
  poolNameColumn,
206
175
  typeColumn,
207
176
  erasureColumn,
208
177
  degradedColumn,
209
178
  usageColumn,
210
- groupIdColumn,
211
179
  usedColumn,
212
180
  limitColumn,
213
181
  usedSpaceFlagColumn,
214
182
  readColumn,
215
183
  writeColumn,
216
- disksColumn,
184
+ getVDisksColumn(data === null || data === void 0 ? void 0 : data.nodes),
185
+ getDisksColumn(data === null || data === void 0 ? void 0 : data.nodes),
217
186
  ];
218
- };
219
- const filterStorageGroupsColumns = (columns, visibleEntities) => {
220
- if (visibleEntities === VISIBLE_ENTITIES.space) {
221
- return columns.filter((col) => col.name !== GROUPS_COLUMNS_IDS.Degraded);
222
- }
223
- if (visibleEntities === VISIBLE_ENTITIES.missing) {
224
- return columns.filter((col) => col.name !== GROUPS_COLUMNS_IDS.DiskSpace);
225
- }
226
- return columns.filter((col) => {
227
- return (col.name !== GROUPS_COLUMNS_IDS.Degraded && col.name !== GROUPS_COLUMNS_IDS.DiskSpace);
228
- });
229
- };
230
- export const getPreparedStorageGroupsColumns = (data, options) => {
231
- const rawColumns = getStorageGroupsColumns(data, options);
232
- const filteredColumns = filterStorageGroupsColumns(rawColumns, options === null || options === void 0 ? void 0 : options.visibleEntities);
233
- return filteredColumns.map((column) => ({
187
+ return columns.map((column) => ({
234
188
  ...column,
235
189
  sortable: isSortableStorageProperty(column.name),
236
190
  }));
237
191
  };
238
- //# sourceMappingURL=getStorageGroupsColumns.js.map
192
+ //# sourceMappingURL=columns.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageGroups/columns/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAA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AQ,EAAE,KAAK;SAClB,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAyB,CAAC,IAAI,EAAE,EAAE;IAClE,MAAM,OAAO,GAAG;QACZ,aAAa;QACb,cAAc;QACd,UAAU;QACV,aAAa;QACb,cAAc;QACd,WAAW;QACX,UAAU;QACV,WAAW;QACX,mBAAmB;QACnB,UAAU;QACV,WAAW;QACX,eAAe,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,CAAC;QAC5B,cAAc,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,CAAC;KAC9B,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAC5B,GAAG,MAAM;QACT,QAAQ,EAAE,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC;KACnD,CAAC,CAAC,CAAC;AACR,CAAC,CAAC"}
@@ -0,0 +1,37 @@
1
+ import type { ValueOf } from '../../../../types/common';
2
+ export declare const STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY = "storageGroupsColumnsWidth";
3
+ export declare const STORAGE_GROUPS_SELECTED_COLUMNS_LS_KEY = "storageGroupsSelectedColumns";
4
+ export declare const STORAGE_GROUPS_COLUMNS_IDS: {
5
+ readonly GroupId: "GroupId";
6
+ readonly PoolName: "PoolName";
7
+ readonly MediaType: "MediaType";
8
+ readonly Erasure: "Erasure";
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 VDisksPDisks: "VDisksPDisks";
17
+ readonly Degraded: "Degraded";
18
+ };
19
+ type StorageGroupsColumnId = ValueOf<typeof STORAGE_GROUPS_COLUMNS_IDS>;
20
+ export declare const DEFAULT_STORAGE_GROUPS_COLUMNS: StorageGroupsColumnId[];
21
+ export declare const REQUIRED_STORAGE_GROUPS_COLUMNS: StorageGroupsColumnId[];
22
+ export declare const STORAGE_GROUPS_COLUMNS_TITLES: {
23
+ readonly PoolName: string;
24
+ readonly MediaType: string;
25
+ readonly Erasure: string;
26
+ readonly GroupId: string;
27
+ readonly Used: string;
28
+ readonly Limit: string;
29
+ readonly Usage: string;
30
+ readonly DiskSpace: string;
31
+ readonly Read: string;
32
+ readonly Write: string;
33
+ readonly VDisks: string;
34
+ readonly VDisksPDisks: string;
35
+ readonly Degraded: string;
36
+ };
37
+ export {};
@@ -0,0 +1,75 @@
1
+ import i18n from './i18n';
2
+ export const STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY = 'storageGroupsColumnsWidth';
3
+ export const STORAGE_GROUPS_SELECTED_COLUMNS_LS_KEY = 'storageGroupsSelectedColumns';
4
+ export const STORAGE_GROUPS_COLUMNS_IDS = {
5
+ GroupId: 'GroupId',
6
+ PoolName: 'PoolName',
7
+ MediaType: 'MediaType',
8
+ Erasure: 'Erasure',
9
+ Used: 'Used',
10
+ Limit: 'Limit',
11
+ Usage: 'Usage',
12
+ DiskSpace: 'DiskSpace',
13
+ Read: 'Read',
14
+ Write: 'Write',
15
+ VDisks: 'VDisks',
16
+ VDisksPDisks: 'VDisksPDisks',
17
+ Degraded: 'Degraded',
18
+ };
19
+ export const DEFAULT_STORAGE_GROUPS_COLUMNS = [
20
+ 'GroupId',
21
+ 'PoolName',
22
+ 'MediaType',
23
+ 'Erasure',
24
+ 'Used',
25
+ 'Limit',
26
+ 'Usage',
27
+ 'Read',
28
+ 'Write',
29
+ 'VDisks',
30
+ ];
31
+ export const REQUIRED_STORAGE_GROUPS_COLUMNS = ['GroupId'];
32
+ // This code is running when module is initialized and correct language may not be set yet
33
+ // get functions guarantee that i18n fields will be inited on render with current render language
34
+ export const STORAGE_GROUPS_COLUMNS_TITLES = {
35
+ get PoolName() {
36
+ return i18n('pool-name');
37
+ },
38
+ get MediaType() {
39
+ return i18n('type');
40
+ },
41
+ get Erasure() {
42
+ return i18n('erasure');
43
+ },
44
+ get GroupId() {
45
+ return i18n('group-id');
46
+ },
47
+ get Used() {
48
+ return i18n('used');
49
+ },
50
+ get Limit() {
51
+ return i18n('limit');
52
+ },
53
+ get Usage() {
54
+ return i18n('usage');
55
+ },
56
+ get DiskSpace() {
57
+ return i18n('space');
58
+ },
59
+ get Read() {
60
+ return i18n('read');
61
+ },
62
+ get Write() {
63
+ return i18n('write');
64
+ },
65
+ get VDisks() {
66
+ return i18n('vdisks');
67
+ },
68
+ get VDisksPDisks() {
69
+ return i18n('vdisks-pdisks');
70
+ },
71
+ get Degraded() {
72
+ return i18n('degraded');
73
+ },
74
+ };
75
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageGroups/columns/constants.ts"],"names":[],"mappings":"AAEA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,MAAM,CAAC,MAAM,mCAAmC,GAAG,2BAA2B,CAAC;AAC/E,MAAM,CAAC,MAAM,sCAAsC,GAAG,8BAA8B,CAAC;AAErF,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACtC,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,cAAc;IAC5B,QAAQ,EAAE,UAAU;CACd,CAAC;AAIX,MAAM,CAAC,MAAM,8BAA8B,GAA4B;IACnE,SAAS;IACT,UAAU;IACV,WAAW;IACX,SAAS;IACT,MAAM;IACN,OAAO;IACP,OAAO;IACP,MAAM;IACN,OAAO;IACP,QAAQ;CACX,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAA4B,CAAC,SAAS,CAAC,CAAC;AAEpF,0FAA0F;AAC1F,iGAAiG;AACjG,MAAM,CAAC,MAAM,6BAA6B,GAAG;IACzC,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC;IAC7B,CAAC;IACD,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC;IACxB,CAAC;IACD,IAAI,OAAO;QACP,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IACD,IAAI,OAAO;QACP,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC;IAC5B,CAAC;IACD,IAAI,IAAI;QACJ,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC;IACxB,CAAC;IACD,IAAI,KAAK;QACL,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;IACzB,CAAC;IACD,IAAI,KAAK;QACL,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;IACzB,CAAC;IACD,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;IACzB,CAAC;IACD,IAAI,IAAI;QACJ,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC;IACxB,CAAC;IACD,IAAI,KAAK;QACL,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;IACzB,CAAC;IACD,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC1B,CAAC;IACD,IAAI,YAAY;QACZ,OAAO,IAAI,CAAC,eAAe,CAAC,CAAC;IACjC,CAAC;IACD,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC;IAC5B,CAAC;CACqD,CAAC"}
@@ -1,3 +1,7 @@
1
1
  import type { VisibleEntities } from '../../../../store/reducers/storage/types';
2
- export declare const useGetStorageGroupsColumns: (visibleEntities: VisibleEntities) => import("./types").StorageGroupsColumn[];
3
- export declare const useGetDiskStorageColumns: () => import("./types").StorageGroupsColumn[];
2
+ export declare function useGetStorageGroupsColumns(): import("./types").StorageGroupsColumn[];
3
+ export declare function useStorageGroupsSelectedColumns(visibleEntities?: VisibleEntities): {
4
+ columnsToShow: import("./types").StorageGroupsColumn[];
5
+ columnsToSelect: import("@gravity-ui/uikit").TableColumnSetupItem[];
6
+ setColumns: (updated: import("@gravity-ui/uikit").TableColumnSetupItem[]) => void;
7
+ };
@@ -1,19 +1,27 @@
1
1
  import React from 'react';
2
2
  import { selectNodesMap } from '../../../../store/reducers/nodesList';
3
- import { USE_ADVANCED_STORAGE_KEY } from '../../../../utils/constants';
4
- import { useSetting, useTypedSelector } from '../../../../utils/hooks';
5
- import { getDiskPageStorageColumns, getPreparedStorageGroupsColumns, } from './getStorageGroupsColumns';
6
- const useGetStorageColumns = (columnsGetter, visibleEntities) => {
7
- const [useAdvancedStorage] = useSetting(USE_ADVANCED_STORAGE_KEY, false);
3
+ import { VISIBLE_ENTITIES } from '../../../../store/reducers/storage/constants';
4
+ import { useTypedSelector } from '../../../../utils/hooks';
5
+ import { useSelectedColumns } from '../../../../utils/hooks/useSelectedColumns';
6
+ import { getStorageGroupsColumns } from './columns';
7
+ import { DEFAULT_STORAGE_GROUPS_COLUMNS, REQUIRED_STORAGE_GROUPS_COLUMNS, STORAGE_GROUPS_COLUMNS_IDS, STORAGE_GROUPS_COLUMNS_TITLES, STORAGE_GROUPS_SELECTED_COLUMNS_LS_KEY, } from './constants';
8
+ export function useGetStorageGroupsColumns() {
8
9
  const nodes = useTypedSelector(selectNodesMap);
9
10
  return React.useMemo(() => {
10
- return columnsGetter({ nodes }, { useAdvancedStorage, visibleEntities });
11
- }, [columnsGetter, nodes, useAdvancedStorage, visibleEntities]);
12
- };
13
- export const useGetStorageGroupsColumns = (visibleEntities) => {
14
- return useGetStorageColumns(getPreparedStorageGroupsColumns, visibleEntities);
15
- };
16
- export const useGetDiskStorageColumns = () => {
17
- return useGetStorageColumns(getDiskPageStorageColumns);
18
- };
11
+ return getStorageGroupsColumns({ nodes });
12
+ }, [nodes]);
13
+ }
14
+ export function useStorageGroupsSelectedColumns(visibleEntities) {
15
+ const columns = useGetStorageGroupsColumns();
16
+ const requiredColumns = React.useMemo(() => {
17
+ if (visibleEntities === VISIBLE_ENTITIES.missing) {
18
+ return [...REQUIRED_STORAGE_GROUPS_COLUMNS, STORAGE_GROUPS_COLUMNS_IDS.Degraded];
19
+ }
20
+ if (visibleEntities === VISIBLE_ENTITIES.space) {
21
+ return [...REQUIRED_STORAGE_GROUPS_COLUMNS, STORAGE_GROUPS_COLUMNS_IDS.DiskSpace];
22
+ }
23
+ return REQUIRED_STORAGE_GROUPS_COLUMNS;
24
+ }, [visibleEntities]);
25
+ return useSelectedColumns(columns, STORAGE_GROUPS_SELECTED_COLUMNS_LS_KEY, STORAGE_GROUPS_COLUMNS_TITLES, DEFAULT_STORAGE_GROUPS_COLUMNS, requiredColumns);
26
+ }
19
27
  //# sourceMappingURL=hooks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageGroups/columns/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,cAAc,EAAC,MAAM,sCAAsC,CAAC;AAEpE,OAAO,EAAC,wBAAwB,EAAC,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAC,UAAU,EAAE,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AAErE,OAAO,EACH,yBAAyB,EACzB,+BAA+B,GAClC,MAAM,2BAA2B,CAAC;AAGnC,MAAM,oBAAoB,GAAG,CACzB,aAAmC,EACnC,eAAiC,EACnC,EAAE;IACA,MAAM,CAAC,kBAAkB,CAAC,GAAG,UAAU,CAAC,wBAAwB,EAAE,KAAK,CAAC,CAAC;IACzE,MAAM,KAAK,GAAG,gBAAgB,CAAC,cAAc,CAAC,CAAC;IAE/C,OAAO,KAAK,C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B,CAAC;AAED,MAAM,UAAU,+BAA+B,CAAC,eAAiC;IAC7E,MAAM,OAAO,GAAG,0BAA0B,EAAE,CAAC;IAE7C,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QACvC,IAAI,eAAe,KAAK,gBAAgB,CAAC,OAAO,EAAE,CAAC;YAC/C,OAAO,CAAC,GAAG,+BAA+B,EAAE,0BAA0B,CAAC,QAAQ,CAAC,CAAC;QACrF,CAAC;QAED,IAAI,eAAe,KAAK,gBAAgB,CAAC,KAAK,EAAE,CAAC;YAC7C,OAAO,CAAC,GAAG,+BAA+B,EAAE,0BAA0B,CAAC,SAAS,CAAC,CAAC;QACtF,CAAC;QAED,OAAO,+BAA+B,CAAC;IAC3C,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IAEtB,OAAO,kBAAkB,CACrB,OAAO,EACP,sCAAsC,EACtC,6BAA6B,EAC7B,8BAA8B,EAC9B,eAAe,CAClB,CAAC;AACN,CAAC"}
@@ -0,0 +1,15 @@
1
+ {
2
+ "pool-name": "Pool Name",
3
+ "type": "Type",
4
+ "erasure": "Erasure",
5
+ "degraded": "Degraded",
6
+ "usage": "Usage",
7
+ "group-id": "Group ID",
8
+ "used": "Used",
9
+ "limit": "Limit",
10
+ "space": "Space",
11
+ "read": "Read",
12
+ "write": "Write",
13
+ "vdisks": "VDisks",
14
+ "vdisks-pdisks": "VDisks with PDisks"
15
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: (key: "type" | "space" | "limit" | "used" | "pool-name" | "erasure" | "degraded" | "usage" | "group-id" | "read" | "write" | "vdisks" | "vdisks-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-groups-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/StorageGroups/columns/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,4BAA4B,CAAC;AAE/C,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}
@@ -1,14 +1,10 @@
1
1
  import type { Column as DataTableColumn } from '@gravity-ui/react-data-table';
2
2
  import type { Column as PaginatedTableColumn } from '../../../../components/PaginatedTable';
3
- import type { PreparedStorageGroup, VisibleEntities } from '../../../../store/reducers/storage/types';
3
+ import type { PreparedStorageGroup } from '../../../../store/reducers/storage/types';
4
4
  import type { NodesMap } from '../../../../types/store/nodesList';
5
5
  export type StorageGroupsColumn = PaginatedTableColumn<PreparedStorageGroup> & DataTableColumn<PreparedStorageGroup>;
6
6
  interface GetStorageColumnsData {
7
7
  nodes?: NodesMap;
8
8
  }
9
- interface GetStorageColumnsOptions {
10
- useAdvancedStorage?: boolean;
11
- visibleEntities?: VisibleEntities;
12
- }
13
- export type StorageColumnsGetter = (data?: GetStorageColumnsData, options?: GetStorageColumnsOptions) => StorageGroupsColumn[];
9
+ export type StorageColumnsGetter = (data?: GetStorageColumnsData) => StorageGroupsColumn[];
14
10
  export {};
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { requestStorageData } from '../../../store/reducers/storage/requestStorageData';
3
3
  import { prepareSortValue } from '../../../utils/filters';
4
+ import { isSortableStorageProperty } from '../../../utils/storage';
4
5
  const getConcurrentId = (limit, offset) => {
5
6
  return `getStorageGroups|offset${offset}|limit${limit}`;
6
7
  };
@@ -9,7 +10,9 @@ export function useGroupsGetter(shouldUseGroupsHandler) {
9
10
  const { limit, offset, sortParams, filters } = params;
10
11
  const { sortOrder, columnId } = sortParams !== null && sortParams !== void 0 ? sortParams : {};
11
12
  const { searchValue, visibleEntities, database, nodeId } = filters !== null && filters !== void 0 ? filters : {};
12
- const sort = prepareSortValue(columnId, sortOrder);
13
+ const sort = isSortableStorageProperty(columnId)
14
+ ? prepareSortValue(columnId, sortOrder)
15
+ : undefined;
13
16
  const { groups, found, total } = await requestStorageData({
14
17
  limit,
15
18
  offset,
@@ -1 +1 @@
1
- {"version":3,"file":"getGroups.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageGroups/getGroups.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,kBAAkB,EAAC,MAAM,oDAAoD,CAAC;AAMtF,OAAO,EAAC,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AAExD,MAAM,eAAe,GAAG,CAAC,KAAc,EAAE,MAAe,EAAE,EAAE;IACxD,OAAO,0BAA0B,MAAM,SAAS,KAAK,EAAE,CAAC;AAC5D,CAAC,CAAC;AAIF,MAAM,UAAU,eAAe,CAAC,sBAA+B;IAC3D,MAAM,SAAS,GAAqB,KAAK,CAAC,WAAW,CACjD,KAAK,EAAE,MAAM,EAAE,EAAE;QACb,MAAM,EAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAC,GAAG,MAAM,CAAC;QACpD,MAAM,EAAC,SAAS,EAAE,QAAQ,EAAC,GAAG,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,EAAE,CAAC;QAC/C,MAAM,EAAC,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,EAAC,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC;QAEvE,MAAM,IAAI,GAAG,gBAAgB,CAAC,QAAQ,EAAE,SAAS,CAAkB,CAAC;QAEpE,MAAM,EAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAC,GAAG,MAAM,kBAAkB,CACnD;YACI,KAAK;YACL,MAAM;YACN,IAAI;YACJ,MAAM,EAAE,WAAW;YACnB,IAAI,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AAQ,CAAC;YAC5C,CAAC,CAAC,gBAAgB,CAAC,QAAQ,EAAE,SAAS,CAAC;YACvC,CAAC,CAAC,SAAS,CAAC;QAEhB,MAAM,EAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAC,GAAG,MAAM,kBAAkB,CACnD;YACI,KAAK;YACL,MAAM;YACN,IAAI;YACJ,MAAM,EAAE,WAAW;YACnB,IAAI,EAAE,eAAe;YACrB,QAAQ;YACR,MAAM;YACN,sBAAsB;SACzB,EACD,EAAC,YAAY,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,EAAC,CACjD,CAAC;QAEF,OAAO;YACH,IAAI,EAAE,MAAM,IAAI,EAAE;YAClB,KAAK,EAAE,KAAK,IAAI,CAAC;YACjB,KAAK,EAAE,KAAK,IAAI,CAAC;SACpB,CAAC;IACN,CAAC,EACD,CAAC,sBAAsB,CAAC,CAC3B,CAAC;IAEF,OAAO,SAAS,CAAC;AACrB,CAAC"}
@@ -1,17 +1,17 @@
1
1
  import type { RenderControls, RenderErrorMessage } from '../../../components/PaginatedTable';
2
2
  import type { VisibleEntities } from '../../../store/reducers/storage/types';
3
- import type { AdditionalNodesProps } from '../../../types/additionalProps';
4
3
  import { NodesUptimeFilterValues } from '../../../utils/nodes';
4
+ import type { StorageNodesColumn } from './columns/types';
5
5
  interface PaginatedStorageNodesProps {
6
+ columns: StorageNodesColumn[];
6
7
  searchValue: string;
7
8
  visibleEntities: VisibleEntities;
8
9
  nodesUptimeFilter: NodesUptimeFilterValues;
9
10
  database?: string;
10
- additionalNodesProps?: AdditionalNodesProps;
11
11
  onShowAll: VoidFunction;
12
12
  parentContainer?: Element | null;
13
13
  renderControls: RenderControls;
14
14
  renderErrorMessage: RenderErrorMessage;
15
15
  }
16
- export declare const PaginatedStorageNodes: ({ searchValue, visibleEntities, nodesUptimeFilter, database, additionalNodesProps, onShowAll, parentContainer, renderControls, renderErrorMessage, }: PaginatedStorageNodesProps) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const PaginatedStorageNodes: ({ columns, searchValue, visibleEntities, nodesUptimeFilter, database, onShowAll, parentContainer, renderControls, renderErrorMessage, }: PaginatedStorageNodesProps) => import("react/jsx-runtime").JSX.Element;
17
17
  export {};
@@ -4,17 +4,14 @@ import { ResizeablePaginatedTable } from '../../../components/PaginatedTable';
4
4
  import { VISIBLE_ENTITIES } from '../../../store/reducers/storage/constants';
5
5
  import { NodesUptimeFilterValues } from '../../../utils/nodes';
6
6
  import { StorageNodesEmptyDataMessage } from './StorageNodesEmptyDataMessage';
7
+ import { STORAGE_NODES_COLUMNS_WIDTH_LS_KEY } from './columns/constants';
7
8
  import { getStorageNodes } from './getNodes';
8
- import { STORAGE_NODES_COLUMNS_WIDTH_LS_KEY, getPreparedStorageNodesColumns, } from './getStorageNodesColumns';
9
9
  import i18n from './i18n';
10
10
  import { getRowUnavailableClassName } from './shared';
11
- export const PaginatedStorageNodes = ({ searchValue, visibleEntities, nodesUptimeFilter, database, additionalNodesProps, onShowAll, parentContainer, renderControls, renderErrorMessage, }) => {
11
+ export const PaginatedStorageNodes = ({ columns, searchValue, visibleEntities, nodesUptimeFilter, database, onShowAll, parentContainer, renderControls, renderErrorMessage, }) => {
12
12
  const tableFilters = React.useMemo(() => {
13
13
  return { searchValue, visibleEntities, nodesUptimeFilter, database };
14
14
  }, [searchValue, visibleEntities, nodesUptimeFilter, database]);
15
- const columns = React.useMemo(() => {
16
- return getPreparedStorageNodesColumns(additionalNodesProps, visibleEntities, database);
17
- }, [additionalNodesProps, visibleEntities, database]);
18
15
  const renderEmptyDataMessage = () => {
19
16
  if (visibleEntities !== VISIBLE_ENTITIES.all ||
20
17
  nodesUptimeFilter !== NodesUptimeFilterValues.All) {
@@ -1 +1 @@
1
- {"version":3,"file":"PaginatedStorageNodes.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageNodes/PaginatedStorageNodes.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OA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,iBAAiB,EACpC,eAAe,EAAE,eAAe,GAClC,CACL,CAAC;QACN,CAAC;QAED,OAAO,IAAI,CAAC,eAAe,CAAC,CAAC;IACjC,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,wBAAwB,IACrB,iBAAiB,EAAE,kCAAkC,EACrD,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,eAAe,EAC1B,SAAS,EAAE,EAAE,EACb,KAAK,EAAE,EAAE,EACT,cAAc,EAAE,cAAc,EAC9B,kBAAkB,EAAE,kBAAkB,EACtC,sBAAsB,EAAE,sBAAsB,EAC9C,eAAe,EAAE,0BAA0B,EAC3C,OAAO,EAAE,YAAY,EACrB,SAAS,EAAC,eAAe,GAC3B,CACL,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"PaginatedStorageNodes.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageNodes/PaginatedStorageNodes.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,wBAAwB,EAAC,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAE3E,OAAO,EAAC,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAE7D,OAAO,EAAC,4BAA4B,EAAC,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAC,kCAAkC,EAAC,MAAM,qBAAqB,CAAC;AAEvE,OAAO,EAAC,eAAe,EAAC,MAAM,YAAY,CAAC;AAC3C,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,EAAC,0BAA0B,EAAC,MAAM,UAAU,CAAC;AAiBpD,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,EAClC,OAAO,EACP,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,QAAQ,EACR,SAAS,EACT,eAAe,EACf,cAAc,EACd,kBAAkB,GACO,EAAE,EAAE;IAC7B,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QACpC,OAAO,EAAC,WAAW,EAAE,eAAe,EAAE,iBAAiB,EAAE,QAAQ,EAAC,CAAC;IACvE,CAAC,EAAE,CAAC,WAAW,EAAE,eAAe,EAAE,iBAAiB,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEhE,MAAM,sBAAsB,GAAG,GAAG,EAAE;QAChC,IACI,eAAe,KAAK,gBAAgB,CAAC,GAAG;YACxC,iBAAiB,KAAK,uBAAuB,CAAC,GAAG,EACnD,CAAC;YACC,OAAO,CACH,KAAC,4BAA4B,IACzB,SAAS,EAAE,SAAS,EACpB,iBAAiB,EAAE,iBAAiB,EACpC,eAAe,EAAE,eAAe,GAClC,CACL,CAAC;QACN,CAAC;QAED,OAAO,IAAI,CAAC,eAAe,CAAC,CAAC;IACjC,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,wBAAwB,IACrB,iBAAiB,EAAE,kCAAkC,EACrD,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,eAAe,EAC1B,SAAS,EAAE,EAAE,EACb,KAAK,EAAE,EAAE,EACT,cAAc,EAAE,cAAc,EAC9B,kBAAkB,EAAE,kBAAkB,EACtC,sBAAsB,EAAE,sBAAsB,EAC9C,eAAe,EAAE,0BAA0B,EAC3C,OAAO,EAAE,YAAY,EACrB,SAAS,EAAC,eAAe,GAC3B,CACL,CAAC;AACN,CAAC,CAAC"}
@@ -1,19 +1,17 @@
1
1
  import type { Settings, SortOrder } from '@gravity-ui/react-data-table';
2
2
  import type { PreparedStorageNode, VisibleEntities } from '../../../store/reducers/storage/types';
3
- import type { AdditionalNodesProps } from '../../../types/additionalProps';
4
3
  import type { HandleSort } from '../../../utils/hooks/useTableSort';
5
4
  import { NodesUptimeFilterValues } from '../../../utils/nodes';
6
- import './StorageNodes.scss';
5
+ import type { StorageNodesColumn } from './columns/types';
7
6
  interface StorageNodesProps {
8
7
  data: PreparedStorageNode[];
8
+ columns: StorageNodesColumn[];
9
9
  tableSettings: Settings;
10
10
  visibleEntities: VisibleEntities;
11
11
  nodesUptimeFilter: NodesUptimeFilterValues;
12
- onShowAll?: VoidFunction;
13
- additionalNodesProps?: AdditionalNodesProps;
14
12
  sort?: SortOrder;
13
+ onShowAll?: VoidFunction;
15
14
  handleSort?: HandleSort;
16
- database?: string;
17
15
  }
18
- export declare function StorageNodes({ data, tableSettings, visibleEntities, onShowAll, nodesUptimeFilter, additionalNodesProps, sort, handleSort, database, }: StorageNodesProps): import("react/jsx-runtime").JSX.Element;
16
+ export declare function StorageNodes({ data, columns, tableSettings, visibleEntities, nodesUptimeFilter, sort, onShowAll, handleSort, }: StorageNodesProps): import("react/jsx-runtime").JSX.Element;
19
17
  export {};
@@ -3,12 +3,10 @@ import { ResizeableDataTable } from '../../../components/ResizeableDataTable/Res
3
3
  import { VISIBLE_ENTITIES } from '../../../store/reducers/storage/constants';
4
4
  import { NodesUptimeFilterValues } from '../../../utils/nodes';
5
5
  import { StorageNodesEmptyDataMessage } from './StorageNodesEmptyDataMessage';
6
- import { STORAGE_NODES_COLUMNS_WIDTH_LS_KEY, getPreparedStorageNodesColumns, } from './getStorageNodesColumns';
6
+ import { STORAGE_NODES_COLUMNS_WIDTH_LS_KEY } from './columns/constants';
7
7
  import i18n from './i18n';
8
8
  import { getRowUnavailableClassName } from './shared';
9
- import './StorageNodes.scss';
10
- export function StorageNodes({ data, tableSettings, visibleEntities, onShowAll, nodesUptimeFilter, additionalNodesProps, sort, handleSort, database, }) {
11
- const columns = getPreparedStorageNodesColumns(additionalNodesProps, visibleEntities, database);
9
+ export function StorageNodes({ data, columns, tableSettings, visibleEntities, nodesUptimeFilter, sort, onShowAll, handleSort, }) {
12
10
  if (!data.length &&
13
11
  (visibleEntities !== VISIBLE_ENTITIES.all ||
14
12
  nodesUptimeFilter !== NodesUptimeFilterValues.All)) {
@@ -1 +1 @@
1
- {"version":3,"file":"StorageNodes.js","sourceRoot":"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f,MAAM,EAAE,UAAU,IAVb,eAAyB,CAWhC,CACL,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"StorageNodes.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageNodes/StorageNodes.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,mBAAmB,EAAC,MAAM,6DAA6D,CAAC;AAChG,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAG3E,OAAO,EAAC,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAE7D,OAAO,EAAC,4BAA4B,EAAC,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAC,kCAAkC,EAAC,MAAM,qBAAqB,CAAC;AAEvE,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,EAAC,0BAA0B,EAAC,MAAM,UAAU,CAAC;AAapD,MAAM,UAAU,YAAY,CAAC,EACzB,IAAI,EACJ,OAAO,EACP,aAAa,EACb,eAAe,EACf,iBAAiB,EACjB,IAAI,EACJ,SAAS,EACT,UAAU,GACM;IAChB,IACI,CAAC,IAAI,CAAC,MAAM;QACZ,CAAC,eAAe,KAAK,gBAAgB,CAAC,GAAG;YACrC,iBAAiB,KAAK,uBAAuB,CAAC,GAAG,CAAC,EACxD,CAAC;QACC,OAAO,CACH,KAAC,4BAA4B,IACzB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,EACpC,SAAS,EAAE,SAAS,GACtB,CACL,CAAC;IACN,CAAC;IAED,OAAO,CACH,KAAC,mBAAmB,IAChB,iBAAiB,EAAE,kCAAkC,EAErD,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE;YACN,GAAG,aAAa;YAChB,iBAAiB,EAAE,UAAU;SAChC,EACD,gBAAgB,EAAE,IAAI,CAAC,eAAe,CAAC,EACvC,YAAY,EAAE,0BAA0B,EACxC,SAAS,EAAE,IAAI,EACf,MAAM,EAAE,UAAU,IAVb,eAAyB,CAWhC,CACL,CAAC;AACN,CAAC"}