ydb-embedded-ui 6.22.0 → 6.23.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (261) hide show
  1. package/dist/components/PDiskPopup/PDiskPopup.d.ts +2 -4
  2. package/dist/components/PDiskPopup/PDiskPopup.js +10 -5
  3. package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
  4. package/dist/components/PaginatedTable/PaginatedTable.d.ts +2 -1
  5. package/dist/components/PaginatedTable/PaginatedTable.js +9 -7
  6. package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
  7. package/dist/components/PaginatedTable/TableChunk.d.ts +2 -1
  8. package/dist/components/PaginatedTable/TableChunk.js +5 -2
  9. package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
  10. package/dist/components/QueryResultTable/QueryResultTable.js +11 -16
  11. package/dist/components/QueryResultTable/QueryResultTable.js.map +1 -1
  12. package/dist/components/QueryResultTable/utils/getColumnWidth.d.ts +7 -0
  13. package/dist/components/QueryResultTable/utils/getColumnWidth.js +16 -0
  14. package/dist/components/QueryResultTable/utils/getColumnWidth.js.map +1 -0
  15. package/dist/components/QueryResultTable/utils/getColumnWidth.test.d.ts +1 -0
  16. package/dist/components/QueryResultTable/utils/getColumnWidth.test.js +32 -0
  17. package/dist/components/QueryResultTable/utils/getColumnWidth.test.js.map +1 -0
  18. package/dist/components/StorageGroupInfo/StorageGroupInfo.js +7 -7
  19. package/dist/components/StorageGroupInfo/StorageGroupInfo.js.map +1 -1
  20. package/dist/components/StorageGroupInfo/i18n/index.d.ts +1 -1
  21. package/dist/components/TableSkeleton/TableSkeleton.d.ts +2 -1
  22. package/dist/components/TableSkeleton/TableSkeleton.js +5 -1
  23. package/dist/components/TableSkeleton/TableSkeleton.js.map +1 -1
  24. package/dist/components/TableSkeleton/TableSkeleton.scss +7 -1
  25. package/dist/components/VDisk/VDisk.d.ts +1 -3
  26. package/dist/components/VDisk/VDisk.js +2 -2
  27. package/dist/components/VDisk/VDisk.js.map +1 -1
  28. package/dist/components/VDiskPopup/VDiskPopup.d.ts +1 -3
  29. package/dist/components/VDiskPopup/VDiskPopup.js +7 -2
  30. package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
  31. package/dist/containers/Cluster/Cluster.scss +2 -2
  32. package/dist/containers/Header/breadcrumbs.js +2 -3
  33. package/dist/containers/Header/breadcrumbs.js.map +1 -1
  34. package/dist/containers/Nodes/columns/columns.js +8 -0
  35. package/dist/containers/Nodes/columns/columns.js.map +1 -1
  36. package/dist/containers/Nodes/columns/constants.d.ts +2 -0
  37. package/dist/containers/Nodes/columns/constants.js +4 -0
  38. package/dist/containers/Nodes/columns/constants.js.map +1 -1
  39. package/dist/containers/Nodes/columns/i18n/en.json +1 -0
  40. package/dist/containers/Nodes/columns/i18n/index.d.ts +1 -1
  41. package/dist/containers/Storage/Disks/Disks.d.ts +3 -3
  42. package/dist/containers/Storage/Disks/Disks.js +6 -7
  43. package/dist/containers/Storage/Disks/Disks.js.map +1 -1
  44. package/dist/containers/Storage/PDisk/PDisk.d.ts +3 -2
  45. package/dist/containers/Storage/PDisk/PDisk.js +3 -2
  46. package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
  47. package/dist/containers/Storage/PDisk/PDisk.scss +1 -1
  48. package/dist/containers/Storage/PaginatedStorage.d.ts +5 -5
  49. package/dist/containers/Storage/PaginatedStorage.js +7 -73
  50. package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
  51. package/dist/containers/Storage/PaginatedStorageGroups.d.ts +3 -0
  52. package/dist/containers/Storage/PaginatedStorageGroups.js +84 -0
  53. package/dist/containers/Storage/PaginatedStorageGroups.js.map +1 -0
  54. package/dist/containers/Storage/PaginatedStorageNodes.d.ts +3 -0
  55. package/dist/containers/Storage/PaginatedStorageNodes.js +98 -0
  56. package/dist/containers/Storage/PaginatedStorageNodes.js.map +1 -0
  57. package/dist/containers/Storage/Storage.js +15 -70
  58. package/dist/containers/Storage/Storage.js.map +1 -1
  59. package/dist/containers/Storage/Storage.scss +4 -0
  60. package/dist/containers/Storage/StorageControls/StorageControls.d.ts +3 -16
  61. package/dist/containers/Storage/StorageControls/StorageControls.js +18 -11
  62. package/dist/containers/Storage/StorageControls/StorageControls.js.map +1 -1
  63. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.d.ts +22 -0
  64. package/dist/containers/Storage/StorageGroups/{PaginatedStorageGroups.js → PaginatedStorageGroupsTable.js} +23 -5
  65. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.js.map +1 -0
  66. package/dist/containers/Storage/StorageGroups/{StorageGroups.d.ts → StorageGroupsTable.d.ts} +3 -4
  67. package/dist/containers/Storage/StorageGroups/{StorageGroups.js → StorageGroupsTable.js} +4 -3
  68. package/dist/containers/Storage/StorageGroups/StorageGroupsTable.js.map +1 -0
  69. package/dist/containers/Storage/StorageGroups/columns/columns.js +35 -10
  70. package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -1
  71. package/dist/containers/Storage/StorageGroups/columns/constants.d.ts +17 -0
  72. package/dist/containers/Storage/StorageGroups/columns/constants.js +46 -1
  73. package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -1
  74. package/dist/containers/Storage/StorageGroups/columns/hooks.d.ts +3 -3
  75. package/dist/containers/Storage/StorageGroups/columns/hooks.js +5 -8
  76. package/dist/containers/Storage/StorageGroups/columns/hooks.js.map +1 -1
  77. package/dist/containers/Storage/StorageGroups/columns/i18n/en.json +6 -0
  78. package/dist/containers/Storage/StorageGroups/columns/i18n/index.d.ts +1 -1
  79. package/dist/containers/Storage/StorageGroups/columns/types.d.ts +7 -5
  80. package/dist/containers/Storage/StorageGroups/getGroups.js +6 -5
  81. package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
  82. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.d.ts +23 -0
  83. package/dist/containers/Storage/StorageNodes/{PaginatedStorageNodes.js → PaginatedStorageNodesTable.js} +23 -5
  84. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.js.map +1 -0
  85. package/dist/containers/Storage/StorageNodes/{StorageNodes.d.ts → StorageNodesTable.d.ts} +3 -4
  86. package/dist/containers/Storage/StorageNodes/{StorageNodes.js → StorageNodesTable.js} +8 -6
  87. package/dist/containers/Storage/StorageNodes/StorageNodesTable.js.map +1 -0
  88. package/dist/containers/Storage/StorageNodes/columns/StorageNodesColumns.scss +1 -0
  89. package/dist/containers/Storage/StorageNodes/columns/columns.d.ts +1 -1
  90. package/dist/containers/Storage/StorageNodes/columns/columns.js +4 -5
  91. package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -1
  92. package/dist/containers/Storage/StorageNodes/columns/constants.d.ts +9 -0
  93. package/dist/containers/Storage/StorageNodes/columns/constants.js +27 -0
  94. package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -1
  95. package/dist/containers/Storage/StorageNodes/columns/i18n/en.json +2 -0
  96. package/dist/containers/Storage/StorageNodes/columns/i18n/index.d.ts +1 -1
  97. package/dist/containers/Storage/StorageNodes/getNodes.js +6 -5
  98. package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
  99. package/dist/containers/Storage/TableGroup/TableGroup.d.ts +12 -0
  100. package/dist/containers/Storage/TableGroup/TableGroup.js +21 -0
  101. package/dist/containers/Storage/TableGroup/TableGroup.js.map +1 -0
  102. package/dist/containers/Storage/TableGroup/TableGroup.scss +49 -0
  103. package/dist/containers/Storage/TableGroup/useExpandedTableGroups.d.ts +5 -0
  104. package/dist/containers/Storage/TableGroup/useExpandedTableGroups.js +28 -0
  105. package/dist/containers/Storage/TableGroup/useExpandedTableGroups.js.map +1 -0
  106. package/dist/containers/Storage/i18n/en.json +4 -1
  107. package/dist/containers/Storage/i18n/index.d.ts +1 -1
  108. package/dist/containers/Storage/i18n/index.js +1 -2
  109. package/dist/containers/Storage/i18n/index.js.map +1 -1
  110. package/dist/containers/Storage/shared.d.ts +2 -0
  111. package/dist/containers/Storage/shared.js +9 -0
  112. package/dist/containers/Storage/shared.js.map +1 -1
  113. package/dist/containers/Storage/useStorageQueryParams.d.ts +18 -0
  114. package/dist/containers/Storage/useStorageQueryParams.js +64 -0
  115. package/dist/containers/Storage/useStorageQueryParams.js.map +1 -0
  116. package/dist/containers/Storage/utils/index.d.ts +6 -2
  117. package/dist/containers/Storage/utils/index.js +11 -6
  118. package/dist/containers/Storage/utils/index.js.map +1 -1
  119. package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +17 -3
  120. package/dist/containers/Tenant/Diagnostics/Describe/Describe.js.map +1 -1
  121. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +1 -1
  122. package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
  123. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +0 -3
  124. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +2 -2
  125. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
  126. package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js +10 -3
  127. package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js.map +1 -1
  128. package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +2 -3
  129. package/dist/containers/Tenant/Diagnostics/Overview/Overview.js.map +1 -1
  130. package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js +4 -4
  131. package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js.map +1 -1
  132. package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.d.ts +2 -2
  133. package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.js +5 -5
  134. package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.js.map +1 -1
  135. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +8 -2
  136. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js.map +1 -1
  137. package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.d.ts +5 -0
  138. package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js +21 -0
  139. package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js.map +1 -0
  140. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.d.ts +1 -3
  141. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +32 -37
  142. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js.map +1 -1
  143. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.d.ts +6 -0
  144. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js +33 -0
  145. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js.map +1 -0
  146. package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.d.ts +2 -0
  147. package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js +26 -0
  148. package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js.map +1 -1
  149. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/en.json +7 -1
  150. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.d.ts +1 -1
  151. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.js +1 -2
  152. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.js.map +1 -1
  153. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +27 -9
  154. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js.map +1 -1
  155. package/dist/containers/Tenant/ObjectSummary/__test__/transformPath.test.js +27 -3
  156. package/dist/containers/Tenant/ObjectSummary/__test__/transformPath.test.js.map +1 -1
  157. package/dist/containers/Tenant/ObjectSummary/transformPath.d.ts +2 -0
  158. package/dist/containers/Tenant/ObjectSummary/transformPath.js +10 -0
  159. package/dist/containers/Tenant/ObjectSummary/transformPath.js.map +1 -1
  160. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +3 -1
  161. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
  162. package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +2 -1
  163. package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
  164. package/dist/containers/Tenant/Query/NewSQL/NewSQL.d.ts +1 -0
  165. package/dist/containers/Tenant/Query/NewSQL/NewSQL.js +135 -0
  166. package/dist/containers/Tenant/Query/NewSQL/NewSQL.js.map +1 -0
  167. package/dist/containers/Tenant/Query/NewSQL/i18n/en.json +32 -0
  168. package/dist/containers/Tenant/Query/NewSQL/i18n/index.d.ts +2 -0
  169. package/dist/containers/Tenant/Query/NewSQL/i18n/index.js +5 -0
  170. package/dist/containers/Tenant/Query/NewSQL/i18n/index.js.map +1 -0
  171. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +2 -1
  172. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js.map +1 -1
  173. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.scss +1 -0
  174. package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +1 -1
  175. package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js.map +1 -1
  176. package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +10 -2
  177. package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js.map +1 -1
  178. package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.d.ts +2 -1
  179. package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js.map +1 -1
  180. package/dist/containers/Tenant/Tenant.js +7 -3
  181. package/dist/containers/Tenant/Tenant.js.map +1 -1
  182. package/dist/containers/Tenant/utils/newSQLQueryActions.d.ts +27 -0
  183. package/dist/containers/Tenant/utils/newSQLQueryActions.js +35 -0
  184. package/dist/containers/Tenant/utils/newSQLQueryActions.js.map +1 -0
  185. package/dist/containers/Tenant/utils/newSQLQueryTemplates.d.ts +24 -0
  186. package/dist/containers/Tenant/utils/newSQLQueryTemplates.js +228 -0
  187. package/dist/containers/Tenant/utils/newSQLQueryTemplates.js.map +1 -0
  188. package/dist/containers/Tenant/utils/schemaActions.d.ts +1 -1
  189. package/dist/containers/Tenant/utils/schemaActions.js +8 -6
  190. package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
  191. package/dist/containers/Tenant/utils/{queryTemplates.js → schemaQueryTemplates.js} +1 -1
  192. package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -0
  193. package/dist/services/api.js +3 -3
  194. package/dist/services/api.js.map +1 -1
  195. package/dist/store/reducers/capabilities/hooks.d.ts +2 -0
  196. package/dist/store/reducers/capabilities/hooks.js +6 -0
  197. package/dist/store/reducers/capabilities/hooks.js.map +1 -1
  198. package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +4 -0
  199. package/dist/store/reducers/executeTopQueries/executeTopQueries.js +27 -1
  200. package/dist/store/reducers/executeTopQueries/executeTopQueries.js.map +1 -1
  201. package/dist/store/reducers/nodes/types.d.ts +1 -0
  202. package/dist/store/reducers/nodesList.d.ts +5 -5
  203. package/dist/store/reducers/nodesList.js +2 -2
  204. package/dist/store/reducers/nodesList.js.map +1 -1
  205. package/dist/store/reducers/overview/overview.js +5 -1
  206. package/dist/store/reducers/overview/overview.js.map +1 -1
  207. package/dist/store/reducers/storage/requestStorageData.d.ts +3 -3
  208. package/dist/store/reducers/storage/requestStorageData.js.map +1 -1
  209. package/dist/store/reducers/storage/selectors.d.ts +2 -3
  210. package/dist/store/reducers/storage/selectors.js +1 -27
  211. package/dist/store/reducers/storage/selectors.js.map +1 -1
  212. package/dist/store/reducers/storage/storage.d.ts +2 -2
  213. package/dist/store/reducers/storage/storage.js.map +1 -1
  214. package/dist/store/reducers/storage/types.d.ts +19 -10
  215. package/dist/store/reducers/storage/utils.js +27 -3
  216. package/dist/store/reducers/storage/utils.js.map +1 -1
  217. package/dist/store/reducers/tablet.js +5 -3
  218. package/dist/store/reducers/tablet.js.map +1 -1
  219. package/dist/store/reducers/tablets.d.ts +3 -3
  220. package/dist/store/reducers/tablets.js +4 -4
  221. package/dist/store/reducers/tablets.js.map +1 -1
  222. package/dist/types/api/capabilities.d.ts +1 -1
  223. package/dist/types/api/nodes.d.ts +3 -2
  224. package/dist/types/api/nodes.js.map +1 -1
  225. package/dist/types/api/storage.d.ts +22 -4
  226. package/dist/types/store/nodesList.d.ts +1 -1
  227. package/dist/utils/hooks/useSelectedColumns.js +7 -2
  228. package/dist/utils/hooks/useSelectedColumns.js.map +1 -1
  229. package/dist/utils/nodes.d.ts +2 -2
  230. package/dist/utils/nodes.js +4 -4
  231. package/dist/utils/nodes.js.map +1 -1
  232. package/dist/utils/storage.js +2 -0
  233. package/dist/utils/storage.js.map +1 -1
  234. package/dist/utils/utils.js +2 -1
  235. package/dist/utils/utils.js.map +1 -1
  236. package/package.json +1 -1
  237. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +0 -16
  238. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +0 -1
  239. package/dist/containers/Storage/StorageGroups/StorageGroups.js.map +0 -1
  240. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.d.ts +0 -17
  241. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js.map +0 -1
  242. package/dist/containers/Storage/StorageNodes/StorageNodes.js.map +0 -1
  243. package/dist/containers/Storage/UsageFilter/UsageFilter.d.ts +0 -14
  244. package/dist/containers/Storage/UsageFilter/UsageFilter.js +0 -39
  245. package/dist/containers/Storage/UsageFilter/UsageFilter.js.map +0 -1
  246. package/dist/containers/Storage/UsageFilter/UsageFilter.scss +0 -38
  247. package/dist/containers/Storage/UsageFilter/i18n/en.json +0 -5
  248. package/dist/containers/Storage/UsageFilter/i18n/index.d.ts +0 -2
  249. package/dist/containers/Storage/UsageFilter/i18n/index.js +0 -6
  250. package/dist/containers/Storage/UsageFilter/i18n/index.js.map +0 -1
  251. package/dist/containers/Storage/UsageFilter/i18n/ru.json +0 -5
  252. package/dist/containers/Storage/UsageFilter/index.d.ts +0 -1
  253. package/dist/containers/Storage/UsageFilter/index.js +0 -2
  254. package/dist/containers/Storage/UsageFilter/index.js.map +0 -1
  255. package/dist/containers/Storage/i18n/ru.json +0 -6
  256. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/ru.json +0 -4
  257. package/dist/containers/Tenant/utils/queryTemplates.js.map +0 -1
  258. package/dist/store/reducers/describe.d.ts +0 -7
  259. package/dist/store/reducers/describe.js +0 -25
  260. package/dist/store/reducers/describe.js.map +0 -1
  261. /package/dist/containers/Tenant/utils/{queryTemplates.d.ts → schemaQueryTemplates.d.ts} +0 -0
@@ -1 +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,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,SAAS,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAExE,OAAO,EAAC,eAAe,EAAC,MAAM,wDAAwD,CAAC;AACvF,OAAO,EAAC,YAAY,EAAC,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAC,YAAY,EAAC,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAC,UAAU,EAAC,MAAM,8CAA8C,CAAC;AACxE,OAAO,EAAC,oBAAoB,EAAC,MAAM,mDAAmD,CAAC;AACvF,OAAO,EAAC,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;AAEvD,OAAO,EAAC,EAAE,EAAC,MAAM,sBAAsB,CAAC;AACxC,OAAO,EAAC,gBAAgB,EAAC,MAAM,iDAAiD,CAAC;AACjF,OAAO,EAAC,yBAAyB,EAAC,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAC,SAAS,EAAE,YAAY,EAAC,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAC,mBAAm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O,KAAC,KAAK,IAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,GAAI,CAAC;IACvD,CAAC;IACD,KAAK,EAAE,SAAS,CAAC,MAAM;IACvB,KAAK,EAAE,GAAG;IACV,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,KAAK;CAClB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAyB,GAAG,EAAE;IACjE,MAAM,OAAO,GAAG;QACZ,aAAa;QACb,UAAU;QACV,aAAa;QACb,WAAW;QACX,UAAU;QACV,WAAW;KACd,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QAC1B,OAAO;YACH,GAAG,MAAM;YACT,QAAQ,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"}
1
+ {"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageGroups/columns/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,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,WAAW;QACX,mBAAmB;QACnB,UAAU;QACV,WAAW;QACX,aAAa;QACb,qBAAqB;QACrB,eAAe,CAAC,IAAI,CAAC;QACrB,cAAc,CAAC,IAAI,CAAC;KACvB,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"}
@@ -1,3 +1,6 @@
1
+ import type { SelectOption } from '@gravity-ui/uikit';
2
+ import { z } from 'zod';
3
+ import type { GroupsGroupByField } from '../../../../types/api/storage';
1
4
  import type { ValueOf } from '../../../../types/common';
2
5
  export declare const STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY = "storageGroupsColumnsWidth";
3
6
  export declare const STORAGE_GROUPS_SELECTED_COLUMNS_LS_KEY = "storageGroupsSelectedColumns";
@@ -5,16 +8,22 @@ export declare const STORAGE_GROUPS_COLUMNS_IDS: {
5
8
  readonly GroupId: "GroupId";
6
9
  readonly PoolName: "PoolName";
7
10
  readonly MediaType: "MediaType";
11
+ readonly Encryption: "Encryption";
8
12
  readonly Erasure: "Erasure";
9
13
  readonly Used: "Used";
10
14
  readonly Limit: "Limit";
11
15
  readonly Usage: "Usage";
16
+ readonly DiskSpaceUsage: "DiskSpaceUsage";
12
17
  readonly DiskSpace: "DiskSpace";
13
18
  readonly Read: "Read";
14
19
  readonly Write: "Write";
20
+ readonly Latency: "Latency";
21
+ readonly AllocationUnits: "AllocationUnits";
15
22
  readonly VDisks: "VDisks";
16
23
  readonly VDisksPDisks: "VDisksPDisks";
24
+ readonly MissingDisks: "MissingDisks";
17
25
  readonly Degraded: "Degraded";
26
+ readonly State: "State";
18
27
  };
19
28
  type StorageGroupsColumnId = ValueOf<typeof STORAGE_GROUPS_COLUMNS_IDS>;
20
29
  export declare const DEFAULT_STORAGE_GROUPS_COLUMNS: StorageGroupsColumnId[];
@@ -22,16 +31,24 @@ export declare const REQUIRED_STORAGE_GROUPS_COLUMNS: StorageGroupsColumnId[];
22
31
  export declare const STORAGE_GROUPS_COLUMNS_TITLES: {
23
32
  readonly PoolName: string;
24
33
  readonly MediaType: string;
34
+ readonly Encryption: string;
25
35
  readonly Erasure: string;
26
36
  readonly GroupId: string;
27
37
  readonly Used: string;
28
38
  readonly Limit: string;
29
39
  readonly Usage: string;
40
+ readonly DiskSpaceUsage: string;
30
41
  readonly DiskSpace: string;
31
42
  readonly Read: string;
32
43
  readonly Write: string;
44
+ readonly Latency: string;
45
+ readonly AllocationUnits: string;
33
46
  readonly VDisks: string;
34
47
  readonly VDisksPDisks: string;
35
48
  readonly Degraded: string;
49
+ readonly MissingDisks: string;
50
+ readonly State: string;
36
51
  };
52
+ export declare const STORAGE_GROUPS_GROUP_BY_OPTIONS: SelectOption[];
53
+ export declare const storageGroupsGroupByParamSchema: z.ZodCatch<z.ZodType<GroupsGroupByField | undefined, z.ZodTypeDef, GroupsGroupByField | undefined>>;
37
54
  export {};
@@ -1,3 +1,4 @@
1
+ import { z } from 'zod';
1
2
  import i18n from './i18n';
2
3
  export const STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY = 'storageGroupsColumnsWidth';
3
4
  export const STORAGE_GROUPS_SELECTED_COLUMNS_LS_KEY = 'storageGroupsSelectedColumns';
@@ -5,16 +6,22 @@ export const STORAGE_GROUPS_COLUMNS_IDS = {
5
6
  GroupId: 'GroupId',
6
7
  PoolName: 'PoolName',
7
8
  MediaType: 'MediaType',
9
+ Encryption: 'Encryption',
8
10
  Erasure: 'Erasure',
9
11
  Used: 'Used',
10
12
  Limit: 'Limit',
11
13
  Usage: 'Usage',
14
+ DiskSpaceUsage: 'DiskSpaceUsage',
12
15
  DiskSpace: 'DiskSpace',
13
16
  Read: 'Read',
14
17
  Write: 'Write',
18
+ Latency: 'Latency',
19
+ AllocationUnits: 'AllocationUnits',
15
20
  VDisks: 'VDisks',
16
21
  VDisksPDisks: 'VDisksPDisks',
22
+ MissingDisks: 'MissingDisks',
17
23
  Degraded: 'Degraded',
24
+ State: 'State',
18
25
  };
19
26
  export const DEFAULT_STORAGE_GROUPS_COLUMNS = [
20
27
  'GroupId',
@@ -38,6 +45,9 @@ export const STORAGE_GROUPS_COLUMNS_TITLES = {
38
45
  get MediaType() {
39
46
  return i18n('type');
40
47
  },
48
+ get Encryption() {
49
+ return i18n('encryption');
50
+ },
41
51
  get Erasure() {
42
52
  return i18n('erasure');
43
53
  },
@@ -53,6 +63,9 @@ export const STORAGE_GROUPS_COLUMNS_TITLES = {
53
63
  get Usage() {
54
64
  return i18n('usage');
55
65
  },
66
+ get DiskSpaceUsage() {
67
+ return i18n('disk-space-usage');
68
+ },
56
69
  get DiskSpace() {
57
70
  return i18n('space');
58
71
  },
@@ -62,6 +75,12 @@ export const STORAGE_GROUPS_COLUMNS_TITLES = {
62
75
  get Write() {
63
76
  return i18n('write');
64
77
  },
78
+ get Latency() {
79
+ return i18n('latency');
80
+ },
81
+ get AllocationUnits() {
82
+ return i18n('allocation-units');
83
+ },
65
84
  get VDisks() {
66
85
  return i18n('vdisks');
67
86
  },
@@ -69,7 +88,33 @@ export const STORAGE_GROUPS_COLUMNS_TITLES = {
69
88
  return i18n('vdisks-pdisks');
70
89
  },
71
90
  get Degraded() {
72
- return i18n('degraded');
91
+ return i18n('missing-disks');
92
+ },
93
+ get MissingDisks() {
94
+ return i18n('missing-disks');
95
+ },
96
+ get State() {
97
+ return i18n('state');
73
98
  },
74
99
  };
100
+ const STORAGE_GROUPS_GROUP_BY_PARAMS = [
101
+ 'PoolName',
102
+ 'MediaType',
103
+ 'Encryption',
104
+ 'Erasure',
105
+ 'Usage',
106
+ 'DiskSpaceUsage',
107
+ 'State',
108
+ 'MissingDisks',
109
+ 'Latency',
110
+ ];
111
+ export const STORAGE_GROUPS_GROUP_BY_OPTIONS = STORAGE_GROUPS_GROUP_BY_PARAMS.map((param) => {
112
+ return {
113
+ value: param,
114
+ content: STORAGE_GROUPS_COLUMNS_TITLES[param],
115
+ };
116
+ });
117
+ export const storageGroupsGroupByParamSchema = z
118
+ .custom((value) => STORAGE_GROUPS_GROUP_BY_PARAMS.includes(value))
119
+ .catch(undefined);
75
120
  //# sourceMappingURL=constants.js.map
@@ -1 +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
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageGroups/columns/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAKtB,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,UAAU,EAAE,YAAY;IACxB,OAAO,E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BAA8B,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;KAC3D,KAAK,CAAC,SAAS,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
- import type { VisibleEntities } from '../../../../store/reducers/storage/types';
2
- export declare function useGetStorageGroupsColumns(): import("./types").StorageGroupsColumn[];
3
- export declare function useStorageGroupsSelectedColumns(visibleEntities?: VisibleEntities): {
1
+ import type { GetStorageGroupsColumnsParams } from './types';
2
+ export declare function useGetStorageGroupsColumns(nodeId?: string): import("./types").StorageGroupsColumn[];
3
+ export declare function useStorageGroupsSelectedColumns({ visibleEntities, nodeId, }: GetStorageGroupsColumnsParams): {
4
4
  columnsToShow: import("./types").StorageGroupsColumn[];
5
5
  columnsToSelect: import("@gravity-ui/uikit").TableColumnSetupItem[];
6
6
  setColumns: (updated: import("@gravity-ui/uikit").TableColumnSetupItem[]) => void;
@@ -1,18 +1,15 @@
1
1
  import React from 'react';
2
- import { selectNodesMap } from '../../../../store/reducers/nodesList';
3
2
  import { VISIBLE_ENTITIES } from '../../../../store/reducers/storage/constants';
4
- import { useTypedSelector } from '../../../../utils/hooks';
5
3
  import { useSelectedColumns } from '../../../../utils/hooks/useSelectedColumns';
6
4
  import { getStorageGroupsColumns } from './columns';
7
5
  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() {
9
- const nodes = useTypedSelector(selectNodesMap);
6
+ export function useGetStorageGroupsColumns(nodeId) {
10
7
  return React.useMemo(() => {
11
- return getStorageGroupsColumns({ nodes });
12
- }, [nodes]);
8
+ return getStorageGroupsColumns({ nodeId });
9
+ }, [nodeId]);
13
10
  }
14
- export function useStorageGroupsSelectedColumns(visibleEntities) {
15
- const columns = useGetStorageGroupsColumns();
11
+ export function useStorageGroupsSelectedColumns({ visibleEntities, nodeId, }) {
12
+ const columns = useGetStorageGroupsColumns(nodeId);
16
13
  const requiredColumns = React.useMemo(() => {
17
14
  if (visibleEntities === VISIBLE_ENTITIES.missing) {
18
15
  return [...REQUIRED_STORAGE_GROUPS_COLUMNS, STORAGE_GROUPS_COLUMNS_IDS.Degraded];
@@ -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;AACpE,OAAO,EAAC,gBAAgB,EAAC,MAAM,8CAA8C,CAAC;AAE9E,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAC,kBAAkB,EAAC,MAAM,4CAA4C,CAAC;AAE9E,OAAO,EAAC,uBAAuB,EAAC,MAAM,WAAW,CAAC;AAClD,OAAO,EACH,8BAA8B,EAC9B,+BAA+B,EAC/B,0BAA0B,EAC1B,6BAA6B,EAC7B,sCAAsC,GACzC,MAAM,aAAa,CAAC;AAErB,MAAM,UAAU,0BAA0B;IACtC,MAAM,KAAK,GAAG,gBAAgB,CAAC,cAAc,CAAC,CAAC;IAE/C,OAAO,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QACtB,OAAO,uBAAuB,CAAC,EAAC,KAAK,EAAC,CAAC,CAAC;IAC5C,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;AAChB,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,C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E,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"}
@@ -1,15 +1,21 @@
1
1
  {
2
2
  "pool-name": "Pool Name",
3
3
  "type": "Type",
4
+ "encryption": "Encryption",
4
5
  "erasure": "Erasure",
5
6
  "degraded": "Degraded",
7
+ "missing-disks": "Missing Disks",
8
+ "state": "State",
6
9
  "usage": "Usage",
10
+ "disk-space-usage": "Disk space usage",
7
11
  "group-id": "Group ID",
8
12
  "used": "Used",
9
13
  "limit": "Limit",
10
14
  "space": "Space",
11
15
  "read": "Read",
12
16
  "write": "Write",
17
+ "latency": "Latency",
18
+ "allocation-units": "Allocation Units",
13
19
  "vdisks": "VDisks",
14
20
  "vdisks-pdisks": "VDisks with PDisks"
15
21
  }
@@ -1,2 +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;
1
+ declare const _default: (key: "type" | "space" | "limit" | "used" | "state" | "pool-name" | "encryption" | "erasure" | "degraded" | "missing-disks" | "usage" | "disk-space-usage" | "group-id" | "read" | "write" | "latency" | "allocation-units" | "vdisks" | "vdisks-pdisks", params?: import("@gravity-ui/i18n").Params) => string;
2
2
  export default _default;
@@ -1,10 +1,12 @@
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 } from '../../../../store/reducers/storage/types';
4
- import type { NodesMap } from '../../../../types/store/nodesList';
3
+ import type { PreparedStorageGroup, VisibleEntities } from '../../../../store/reducers/storage/types';
5
4
  export type StorageGroupsColumn = PaginatedTableColumn<PreparedStorageGroup> & DataTableColumn<PreparedStorageGroup>;
6
- interface GetStorageColumnsData {
7
- nodes?: NodesMap;
5
+ export interface GetStorageColumnsData {
6
+ nodeId?: string;
7
+ }
8
+ export interface GetStorageGroupsColumnsParams {
9
+ visibleEntities?: VisibleEntities;
10
+ nodeId?: string;
8
11
  }
9
12
  export type StorageColumnsGetter = (data?: GetStorageColumnsData) => StorageGroupsColumn[];
10
- export {};
@@ -2,14 +2,11 @@ import React from 'react';
2
2
  import { requestStorageData } from '../../../store/reducers/storage/requestStorageData';
3
3
  import { prepareSortValue } from '../../../utils/filters';
4
4
  import { isSortableStorageProperty } from '../../../utils/storage';
5
- const getConcurrentId = (limit, offset) => {
6
- return `getStorageGroups|offset${offset}|limit${limit}`;
7
- };
8
5
  export function useGroupsGetter(shouldUseGroupsHandler) {
9
6
  const fetchData = React.useCallback(async (params) => {
10
7
  const { limit, offset, sortParams, filters } = params;
11
8
  const { sortOrder, columnId } = sortParams !== null && sortParams !== void 0 ? sortParams : {};
12
- const { searchValue, visibleEntities, database, nodeId } = filters !== null && filters !== void 0 ? filters : {};
9
+ const { searchValue, visibleEntities, database, nodeId, groupId, pDiskId, filterGroup, filterGroupBy, } = filters !== null && filters !== void 0 ? filters : {};
13
10
  const sort = isSortableStorageProperty(columnId)
14
11
  ? prepareSortValue(columnId, sortOrder)
15
12
  : undefined;
@@ -21,8 +18,12 @@ export function useGroupsGetter(shouldUseGroupsHandler) {
21
18
  with: visibleEntities,
22
19
  database,
23
20
  nodeId,
21
+ groupId,
22
+ pDiskId,
23
+ filter_group: filterGroup,
24
+ filter_group_by: filterGroupBy,
24
25
  shouldUseGroupsHandler,
25
- }, { concurrentId: getConcurrentId(limit, offset) });
26
+ });
26
27
  return {
27
28
  data: groups || [],
28
29
  found: found || 0,
@@ -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;AAKtF,OAAO,EAAC,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAC,yBAAyB,EAAC,MAAM,wBAAwB,CAAC;AAEjE,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,yBAAyB,CAAC,QAAQ,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,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AM,EAAE,KAAK,EAAE,KAAK,EAAC,GAAG,MAAM,kBAAkB,CAAC;YACpD,KAAK;YACL,MAAM;YACN,IAAI;YACJ,MAAM,EAAE,WAAW;YACnB,IAAI,EAAE,eAAe;YACrB,QAAQ;YACR,MAAM;YACN,OAAO;YACP,OAAO;YACP,YAAY,EAAE,WAAW;YACzB,eAAe,EAAE,aAAa;YAC9B,sBAAsB;SACzB,CAAC,CAAC;QAEH,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"}
@@ -0,0 +1,23 @@
1
+ import type { RenderControls, RenderErrorMessage } from '../../../components/PaginatedTable';
2
+ import type { VisibleEntities } from '../../../store/reducers/storage/types';
3
+ import type { NodesGroupByField } from '../../../types/api/nodes';
4
+ import { NodesUptimeFilterValues } from '../../../utils/nodes';
5
+ import type { StorageNodesColumn } from './columns/types';
6
+ interface PaginatedStorageNodesTableProps {
7
+ columns: StorageNodesColumn[];
8
+ database?: string;
9
+ nodeId?: string | number;
10
+ groupId?: string | number;
11
+ filterGroup?: string;
12
+ filterGroupBy?: NodesGroupByField;
13
+ searchValue: string;
14
+ visibleEntities: VisibleEntities;
15
+ nodesUptimeFilter: NodesUptimeFilterValues;
16
+ onShowAll: VoidFunction;
17
+ parentContainer?: Element | null;
18
+ renderControls?: RenderControls;
19
+ renderErrorMessage: RenderErrorMessage;
20
+ initialEntitiesCount?: number;
21
+ }
22
+ export declare const PaginatedStorageNodesTable: ({ columns, database, nodeId, groupId, filterGroup, filterGroupBy, searchValue, visibleEntities, nodesUptimeFilter, onShowAll, parentContainer, renderControls, renderErrorMessage, initialEntitiesCount, }: PaginatedStorageNodesTableProps) => import("react/jsx-runtime").JSX.Element;
23
+ export {};
@@ -8,10 +8,28 @@ import { STORAGE_NODES_COLUMNS_WIDTH_LS_KEY } from './columns/constants';
8
8
  import { getStorageNodes } from './getNodes';
9
9
  import i18n from './i18n';
10
10
  import { getRowUnavailableClassName } from './shared';
11
- export const PaginatedStorageNodes = ({ columns, searchValue, visibleEntities, nodesUptimeFilter, database, onShowAll, parentContainer, renderControls, renderErrorMessage, }) => {
11
+ export const PaginatedStorageNodesTable = ({ columns, database, nodeId, groupId, filterGroup, filterGroupBy, searchValue, visibleEntities, nodesUptimeFilter, onShowAll, parentContainer, renderControls, renderErrorMessage, initialEntitiesCount, }) => {
12
12
  const tableFilters = React.useMemo(() => {
13
- return { searchValue, visibleEntities, nodesUptimeFilter, database };
14
- }, [searchValue, visibleEntities, nodesUptimeFilter, database]);
13
+ return {
14
+ searchValue,
15
+ visibleEntities,
16
+ nodesUptimeFilter,
17
+ database,
18
+ nodeId,
19
+ groupId,
20
+ filterGroup,
21
+ filterGroupBy,
22
+ };
23
+ }, [
24
+ searchValue,
25
+ visibleEntities,
26
+ nodesUptimeFilter,
27
+ database,
28
+ nodeId,
29
+ groupId,
30
+ filterGroup,
31
+ filterGroupBy,
32
+ ]);
15
33
  const renderEmptyDataMessage = () => {
16
34
  if (visibleEntities !== VISIBLE_ENTITIES.all ||
17
35
  nodesUptimeFilter !== NodesUptimeFilterValues.All) {
@@ -19,6 +37,6 @@ export const PaginatedStorageNodes = ({ columns, searchValue, visibleEntities, n
19
37
  }
20
38
  return i18n('empty.default');
21
39
  };
22
- return (_jsx(ResizeablePaginatedTable, { columnsWidthLSKey: STORAGE_NODES_COLUMNS_WIDTH_LS_KEY, parentContainer: parentContainer, columns: columns, fetchData: getStorageNodes, rowHeight: 51, limit: 50, renderControls: renderControls, renderErrorMessage: renderErrorMessage, renderEmptyDataMessage: renderEmptyDataMessage, getRowClassName: getRowUnavailableClassName, filters: tableFilters, tableName: "storage-nodes" }));
40
+ return (_jsx(ResizeablePaginatedTable, { columnsWidthLSKey: STORAGE_NODES_COLUMNS_WIDTH_LS_KEY, parentContainer: parentContainer, columns: columns, fetchData: getStorageNodes, rowHeight: 51, limit: 50, initialEntitiesCount: initialEntitiesCount, renderControls: renderControls, renderErrorMessage: renderErrorMessage, renderEmptyDataMessage: renderEmptyDataMessage, getRowClassName: getRowUnavailableClassName, filters: tableFilters, tableName: "storage-nodes" }));
23
41
  };
24
- //# sourceMappingURL=PaginatedStorageNodes.js.map
42
+ //# sourceMappingURL=PaginatedStorageNodesTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaginatedStorageNodesTable.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageNodes/PaginatedStorageNodesTable.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;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,EAAC,eAAe,EAAC,MAAM,YAAY,CAAC;AAC3C,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,EAAC,0BAA0B,EAAC,MAAM,UAAU,CAAC;AAuBpD,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,EACvC,OAAO,EACP,QAAQ,EACR,MAAM,EACN,OAAO,EACP,WAAW,EACX,aAAa,EACb,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,oBAAoB,GACU,EAAE,EAAE;IAClC,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QACpC,OAAO;YACH,WAAW;YACX,eAAe;YACf,iBAAiB;YACjB,QAAQ;YACR,MAAM;YACN,OAAO;YACP,WAAW;YACX,aAAa;SAChB,CAAC;IACN,CAAC,EAAE;QACC,WAAW;QACX,eAAe;QACf,iBAAiB;QACjB,QAAQ;QACR,MAAM;QACN,OAAO;QACP,WAAW;QACX,aAAa;KAChB,CAAC,CAAC;IAEH,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,oBAAoB,EAAE,oBAAoB,EAC1C,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,17 +1,16 @@
1
- import type { Settings, SortOrder } from '@gravity-ui/react-data-table';
1
+ import type { SortOrder } from '@gravity-ui/react-data-table';
2
2
  import type { PreparedStorageNode, VisibleEntities } from '../../../store/reducers/storage/types';
3
3
  import type { HandleSort } from '../../../utils/hooks/useTableSort';
4
4
  import { NodesUptimeFilterValues } from '../../../utils/nodes';
5
5
  import type { StorageNodesColumn } from './columns/types';
6
- interface StorageNodesProps {
6
+ interface StorageNodesTableProps {
7
7
  data: PreparedStorageNode[];
8
8
  columns: StorageNodesColumn[];
9
- tableSettings: Settings;
10
9
  visibleEntities: VisibleEntities;
11
10
  nodesUptimeFilter: NodesUptimeFilterValues;
12
11
  sort?: SortOrder;
13
12
  onShowAll?: VoidFunction;
14
13
  handleSort?: HandleSort;
15
14
  }
16
- export declare function StorageNodes({ data, columns, tableSettings, visibleEntities, nodesUptimeFilter, sort, onShowAll, handleSort, }: StorageNodesProps): import("react/jsx-runtime").JSX.Element;
15
+ export declare function StorageNodesTable({ data, columns, visibleEntities, nodesUptimeFilter, sort, onShowAll, handleSort, }: StorageNodesTableProps): import("react/jsx-runtime").JSX.Element;
17
16
  export {};
@@ -1,20 +1,22 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { ResizeableDataTable } from '../../../components/ResizeableDataTable/ResizeableDataTable';
3
3
  import { VISIBLE_ENTITIES } from '../../../store/reducers/storage/constants';
4
+ import { DEFAULT_TABLE_SETTINGS } from '../../../utils/constants';
4
5
  import { NodesUptimeFilterValues } from '../../../utils/nodes';
5
6
  import { StorageNodesEmptyDataMessage } from './StorageNodesEmptyDataMessage';
6
7
  import { STORAGE_NODES_COLUMNS_WIDTH_LS_KEY } from './columns/constants';
7
8
  import i18n from './i18n';
8
9
  import { getRowUnavailableClassName } from './shared';
9
- export function StorageNodes({ data, columns, tableSettings, visibleEntities, nodesUptimeFilter, sort, onShowAll, handleSort, }) {
10
+ const tableSettings = {
11
+ ...DEFAULT_TABLE_SETTINGS,
12
+ dynamicRenderMinSize: 51,
13
+ };
14
+ export function StorageNodesTable({ data, columns, visibleEntities, nodesUptimeFilter, sort, onShowAll, handleSort, }) {
10
15
  if (!data.length &&
11
16
  (visibleEntities !== VISIBLE_ENTITIES.all ||
12
17
  nodesUptimeFilter !== NodesUptimeFilterValues.All)) {
13
18
  return (_jsx(StorageNodesEmptyDataMessage, { visibleEntities: visibleEntities, nodesUptimeFilter: nodesUptimeFilter, onShowAll: onShowAll }));
14
19
  }
15
- return (_jsx(ResizeableDataTable, { columnsWidthLSKey: STORAGE_NODES_COLUMNS_WIDTH_LS_KEY, data: data, columns: columns, settings: {
16
- ...tableSettings,
17
- dynamicRenderType: 'variable',
18
- }, emptyDataMessage: i18n('empty.default'), rowClassName: getRowUnavailableClassName, sortOrder: sort, onSort: handleSort }, visibleEntities));
20
+ return (_jsx(ResizeableDataTable, { columnsWidthLSKey: STORAGE_NODES_COLUMNS_WIDTH_LS_KEY, data: data, columns: columns, settings: tableSettings, emptyDataMessage: i18n('empty.default'), rowClassName: getRowUnavailableClassName, sortOrder: sort, onSort: handleSort }, visibleEntities));
19
21
  }
20
- //# sourceMappingURL=StorageNodes.js.map
22
+ //# sourceMappingURL=StorageNodesTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StorageNodesTable.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageNodes/StorageNodesTable.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,mBAAmB,EAAC,MAAM,6DAA6D,CAAC;AAChG,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAE3E,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAEhE,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;AAEpD,MAAM,aAAa,GAAG;IAClB,GAAG,sBAAsB;IACzB,oBAAoB,EAAE,EAAE;CAClB,CAAC;AAYX,MAAM,UAAU,iBAAiB,CAAC,EAC9B,IAAI,EACJ,OAAO,EACP,eAAe,EACf,iBAAiB,EACjB,IAAI,EACJ,SAAS,EACT,UAAU,GACW;IACrB,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,aAAa,EACvB,gBAAgB,EAAE,IAAI,CAAC,eAAe,CAAC,EACvC,YAAY,EAAE,0BAA0B,EACxC,SAAS,EAAE,IAAI,EACf,MAAM,EAAE,UAAU,IAPb,eAAyB,CAQhC,CACL,CAAC;AACN,CAAC"}
@@ -9,6 +9,7 @@
9
9
  align-items: flex-end;
10
10
 
11
11
  width: max-content;
12
+ height: 40px;
12
13
  }
13
14
  &__pdisks-item {
14
15
  flex-grow: 1;
@@ -1,6 +1,6 @@
1
1
  import type { GetStorageNodesColumnsParams } from './types';
2
2
  import './StorageNodesColumns.scss';
3
- export declare const getPreparedStorageNodesColumns: ({ additionalNodesProps, database, groupId, }: GetStorageNodesColumnsParams) => {
3
+ export declare const getPreparedStorageNodesColumns: (params: GetStorageNodesColumnsParams) => {
4
4
  sortable: boolean;
5
5
  name: string;
6
6
  header?: React.ReactNode;
@@ -8,7 +8,7 @@ import { PDisk } from '../../PDisk/PDisk';
8
8
  import { STORAGE_NODES_COLUMNS_IDS, STORAGE_NODES_COLUMNS_TITLES } from './constants';
9
9
  import './StorageNodesColumns.scss';
10
10
  const b = cn('ydb-storage-nodes-columns');
11
- const getStorageNodesColumns = (additionalNodesProps, database, groupId) => {
11
+ const getStorageNodesColumns = ({ additionalNodesProps, database, groupId, }) => {
12
12
  const getNodeRef = additionalNodesProps === null || additionalNodesProps === void 0 ? void 0 : additionalNodesProps.getNodeRef;
13
13
  const columns = [
14
14
  {
@@ -66,8 +66,7 @@ const getStorageNodesColumns = (additionalNodesProps, database, groupId) => {
66
66
  return (_jsx("div", { className: b('pdisks-wrapper'), children: (_a = row.PDisks) === null || _a === void 0 ? void 0 : _a.map((pDisk) => {
67
67
  var _a;
68
68
  const vDisks = (_a = row.VDisks) === null || _a === void 0 ? void 0 : _a.filter((vdisk) => vdisk.PDiskId === 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));
69
+ return (_jsx("div", { className: b('pdisks-item'), children: _jsx(PDisk, { data: pDisk, vDisks: vDisks, viewContext: { groupId } }) }, pDisk.PDiskId));
71
70
  }) }));
72
71
  },
73
72
  align: DataTable.CENTER,
@@ -78,8 +77,8 @@ const getStorageNodesColumns = (additionalNodesProps, database, groupId) => {
78
77
  ];
79
78
  return columns;
80
79
  };
81
- export const getPreparedStorageNodesColumns = ({ additionalNodesProps, database, groupId, }) => {
82
- const rawColumns = getStorageNodesColumns(additionalNodesProps, database, groupId);
80
+ export const getPreparedStorageNodesColumns = (params) => {
81
+ const rawColumns = getStorageNodesColumns(params);
83
82
  const sortableColumns = rawColumns.map((column) => ({
84
83
  ...column,
85
84
  sortable: isSortableNodesProperty(column.name),
@@ -1 +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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MAAM,CAC7B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,KAAK,KAAK,CAAC,OAAO,CAC7C,CAAC;wBAEF,MAAM,cAAc,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,CACjC,CAAC,KAAK,EAAE,EAAE,WAAC,OAAA,OAAO,IAAI,CAAA,MAAA,KAAK,CAAC,OAAO,0CAAE,OAAO,MAAK,MAAM,CAAC,OAAO,CAAC,CAAA,EAAA,CACnE,CAAC;wBAEF,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,aAAa,CAAC,YAC5B,KAAC,KAAK,IACF,IAAI,EAAE,KAAK,EACX,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,cAAc,GAChC,IALiC,KAAK,CAAC,OAAO,CAM9C,CACT,CAAC;oBACN,CAAC,CAAC,GACA,CACT,CAAC;YACN,CAAC;YACD,KAAK,EAAE,SAAS,CAAC,MAAM;YACvB,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,GAAG;YACV,UAAU,EAAE,KAAK;SACpB;KACJ,CAAC;IAEF,OAAO,OAAO,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAG,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"}
1
+ {"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageNodes/columns/columns.tsx"],"names":[],"mappings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AAE;;gBACd,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,gBAAgB,CAAC,YAC9B,MAAA,GAAG,CAAC,MAAM,0CAAE,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;;wBACvB,MAAM,MAAM,GAAG,MAAA,GAAG,CAAC,MAAM,0CAAE,MAAM,CAC7B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,KAAK,KAAK,CAAC,OAAO,CAC7C,CAAC;wBAEF,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,aAAa,CAAC,YAC5B,KAAC,KAAK,IAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,EAAC,OAAO,EAAC,GAAI,IAD3B,KAAK,CAAC,OAAO,CAE9C,CACT,CAAC;oBACN,CAAC,CAAC,GACA,CACT,CAAC;YACN,CAAC;YACD,KAAK,EAAE,SAAS,CAAC,MAAM;YACvB,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,GAAG;YACV,UAAU,EAAE,KAAK;SACpB;KACJ,CAAC;IAEF,OAAO,OAAO,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,MAAoC,EAAE,EAAE;IACnF,MAAM,UAAU,GAAG,sBAAsB,CAAC,MAAM,CAAC,CAAC;IAElD,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"}
@@ -1,3 +1,6 @@
1
+ import type { SelectOption } from '@gravity-ui/uikit';
2
+ import { z } from 'zod';
3
+ import type { NodesGroupByField } from '../../../../types/api/nodes';
1
4
  import type { ValueOf } from '../../../../types/common';
2
5
  export declare const STORAGE_NODES_COLUMNS_WIDTH_LS_KEY = "storageNodesColumnsWidth";
3
6
  export declare const STORAGE_NODES_SELECTED_COLUMNS_LS_KEY = "storageNodesSelectedColumns";
@@ -6,9 +9,11 @@ export declare const STORAGE_NODES_COLUMNS_IDS: {
6
9
  readonly Host: "Host";
7
10
  readonly DC: "DC";
8
11
  readonly Rack: "Rack";
12
+ readonly Version: "Version";
9
13
  readonly Uptime: "Uptime";
10
14
  readonly PDisks: "PDisks";
11
15
  readonly Missing: "Missing";
16
+ readonly DiskSpaceUsage: "DiskSpaceUsage";
12
17
  };
13
18
  type StorageNodesColumnId = ValueOf<typeof STORAGE_NODES_COLUMNS_IDS>;
14
19
  export declare const DEFAULT_STORAGE_NODES_COLUMNS: StorageNodesColumnId[];
@@ -18,8 +23,12 @@ export declare const STORAGE_NODES_COLUMNS_TITLES: {
18
23
  readonly Host: string;
19
24
  readonly DC: string;
20
25
  readonly Rack: string;
26
+ readonly Version: string;
21
27
  readonly Uptime: string;
22
28
  readonly PDisks: string;
23
29
  readonly Missing: string;
30
+ readonly DiskSpaceUsage: string;
24
31
  };
32
+ export declare const STORAGE_NODES_GROUP_BY_OPTIONS: SelectOption[];
33
+ export declare const storageNodesGroupByParamSchema: z.ZodCatch<z.ZodType<NodesGroupByField | undefined, z.ZodTypeDef, NodesGroupByField | undefined>>;
25
34
  export {};
@@ -1,3 +1,4 @@
1
+ import { z } from 'zod';
1
2
  import i18n from './i18n';
2
3
  export const STORAGE_NODES_COLUMNS_WIDTH_LS_KEY = 'storageNodesColumnsWidth';
3
4
  export const STORAGE_NODES_SELECTED_COLUMNS_LS_KEY = 'storageNodesSelectedColumns';
@@ -6,9 +7,11 @@ export const STORAGE_NODES_COLUMNS_IDS = {
6
7
  Host: 'Host',
7
8
  DC: 'DC',
8
9
  Rack: 'Rack',
10
+ Version: 'Version',
9
11
  Uptime: 'Uptime',
10
12
  PDisks: 'PDisks',
11
13
  Missing: 'Missing',
14
+ DiskSpaceUsage: 'DiskSpaceUsage',
12
15
  };
13
16
  export const DEFAULT_STORAGE_NODES_COLUMNS = [
14
17
  'NodeId',
@@ -34,6 +37,9 @@ export const STORAGE_NODES_COLUMNS_TITLES = {
34
37
  get Rack() {
35
38
  return i18n('rack');
36
39
  },
40
+ get Version() {
41
+ return i18n('version');
42
+ },
37
43
  get Uptime() {
38
44
  return i18n('uptime');
39
45
  },
@@ -43,5 +49,26 @@ export const STORAGE_NODES_COLUMNS_TITLES = {
43
49
  get Missing() {
44
50
  return i18n('missing');
45
51
  },
52
+ get DiskSpaceUsage() {
53
+ return i18n('disk-space-usage');
54
+ },
46
55
  };
56
+ const STORAGE_NODES_GROUP_BY_PARAMS = [
57
+ 'Host',
58
+ 'DC',
59
+ 'Rack',
60
+ 'Version',
61
+ 'Uptime',
62
+ 'Missing',
63
+ 'DiskSpaceUsage',
64
+ ];
65
+ export const STORAGE_NODES_GROUP_BY_OPTIONS = STORAGE_NODES_GROUP_BY_PARAMS.map((param) => {
66
+ return {
67
+ value: param,
68
+ content: STORAGE_NODES_COLUMNS_TITLES[param],
69
+ };
70
+ });
71
+ export const storageNodesGroupByParamSchema = z
72
+ .custom((value) => STORAGE_NODES_GROUP_BY_PARAMS.includes(value))
73
+ .catch(undefined);
47
74
  //# sourceMappingURL=constants.js.map