ydb-embedded-ui 6.21.0 → 6.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (280) hide show
  1. package/dist/components/AutoRefreshControl/i18n/index.d.ts +1 -1
  2. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.d.ts +2 -1
  3. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js +2 -2
  4. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js.map +1 -1
  5. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +4 -0
  6. package/dist/components/GroupInfo/i18n/index.d.ts +1 -1
  7. package/dist/components/PDiskInfo/PDiskInfo.js +1 -3
  8. package/dist/components/PDiskInfo/PDiskInfo.js.map +1 -1
  9. package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
  10. package/dist/components/QueryResultTable/Cell/Cell.js +1 -4
  11. package/dist/components/QueryResultTable/Cell/Cell.js.map +1 -1
  12. package/dist/components/StorageGroupInfo/i18n/index.d.ts +1 -1
  13. package/dist/components/VDisk/VDisk.d.ts +2 -1
  14. package/dist/components/VDisk/VDisk.js +2 -2
  15. package/dist/components/VDisk/VDisk.js.map +1 -1
  16. package/dist/components/VDiskInfo/VDiskInfo.js +1 -3
  17. package/dist/components/VDiskInfo/VDiskInfo.js.map +1 -1
  18. package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
  19. package/dist/containers/App/App.scss +1 -1
  20. package/dist/containers/Cluster/Cluster.js +1 -1
  21. package/dist/containers/Cluster/Cluster.js.map +1 -1
  22. package/dist/containers/Cluster/i18n/index.d.ts +1 -1
  23. package/dist/containers/Clusters/Clusters.js +3 -3
  24. package/dist/containers/Clusters/Clusters.js.map +1 -1
  25. package/dist/containers/Clusters/columns.js +2 -2
  26. package/dist/containers/Clusters/columns.js.map +1 -1
  27. package/dist/containers/Clusters/constants.d.ts +4 -4
  28. package/dist/containers/Clusters/constants.js +3 -3
  29. package/dist/containers/Clusters/constants.js.map +1 -1
  30. package/dist/containers/Node/Node.js +14 -4
  31. package/dist/containers/Node/Node.js.map +1 -1
  32. package/dist/containers/Node/NodePages.js +4 -5
  33. package/dist/containers/Node/NodePages.js.map +1 -1
  34. package/dist/containers/Nodes/Nodes.js +10 -11
  35. package/dist/containers/Nodes/Nodes.js.map +1 -1
  36. package/dist/containers/Nodes/PaginatedNodes.js +10 -11
  37. package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
  38. package/dist/containers/Nodes/{getNodesColumns.d.ts → columns/columns.d.ts} +3 -10
  39. package/dist/containers/Nodes/{getNodesColumns.js → columns/columns.js} +29 -39
  40. package/dist/containers/Nodes/columns/columns.js.map +1 -0
  41. package/dist/containers/Nodes/columns/constants.d.ts +39 -0
  42. package/dist/containers/Nodes/columns/constants.js +79 -0
  43. package/dist/containers/Nodes/columns/constants.js.map +1 -0
  44. package/dist/containers/Nodes/columns/hooks.d.ts +6 -0
  45. package/dist/containers/Nodes/columns/hooks.js +11 -0
  46. package/dist/containers/Nodes/columns/hooks.js.map +1 -0
  47. package/dist/containers/Nodes/columns/i18n/en.json +16 -0
  48. package/dist/containers/Nodes/columns/i18n/index.d.ts +2 -0
  49. package/dist/containers/Nodes/columns/i18n/index.js +5 -0
  50. package/dist/containers/Nodes/columns/i18n/index.js.map +1 -0
  51. package/dist/containers/Nodes/columns/types.d.ts +9 -0
  52. package/dist/containers/Nodes/columns/types.js +2 -0
  53. package/dist/containers/Nodes/columns/types.js.map +1 -0
  54. package/dist/containers/Nodes/getNodes.d.ts +3 -2
  55. package/dist/containers/Nodes/getNodes.js +6 -3
  56. package/dist/containers/Nodes/getNodes.js.map +1 -1
  57. package/dist/containers/PDiskPage/PDiskPage.js +12 -10
  58. package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
  59. package/dist/containers/PDiskPage/PDiskPage.scss +14 -14
  60. package/dist/containers/PDiskPage/i18n/en.json +1 -1
  61. package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
  62. package/dist/containers/ReduxTooltip/ReduxTooltip.js +7 -7
  63. package/dist/containers/ReduxTooltip/ReduxTooltip.js.map +1 -1
  64. package/dist/containers/Storage/PDisk/PDisk.d.ts +4 -4
  65. package/dist/containers/Storage/PDisk/PDisk.js +2 -2
  66. package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
  67. package/dist/containers/Storage/PaginatedStorage.d.ts +2 -3
  68. package/dist/containers/Storage/PaginatedStorage.js +27 -6
  69. package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
  70. package/dist/containers/Storage/Storage.d.ts +4 -4
  71. package/dist/containers/Storage/Storage.js +45 -11
  72. package/dist/containers/Storage/Storage.js.map +1 -1
  73. package/dist/containers/Storage/StorageControls/StorageControls.d.ts +4 -1
  74. package/dist/containers/Storage/StorageControls/StorageControls.js +4 -2
  75. package/dist/containers/Storage/StorageControls/StorageControls.js.map +1 -1
  76. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +3 -1
  77. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js +2 -4
  78. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +1 -1
  79. package/dist/containers/Storage/StorageGroups/StorageGroups.d.ts +3 -1
  80. package/dist/containers/Storage/StorageGroups/StorageGroups.js +2 -4
  81. package/dist/containers/Storage/StorageGroups/StorageGroups.js.map +1 -1
  82. package/dist/containers/Storage/StorageGroups/columns/columns.d.ts +4 -0
  83. package/dist/containers/Storage/StorageGroups/columns/{getStorageGroupsColumns.js → columns.js} +33 -81
  84. package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -0
  85. package/dist/containers/Storage/StorageGroups/columns/constants.d.ts +37 -0
  86. package/dist/containers/Storage/StorageGroups/columns/constants.js +75 -0
  87. package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -0
  88. package/dist/containers/Storage/StorageGroups/columns/hooks.d.ts +6 -2
  89. package/dist/containers/Storage/StorageGroups/columns/hooks.js +22 -14
  90. package/dist/containers/Storage/StorageGroups/columns/hooks.js.map +1 -1
  91. package/dist/containers/Storage/StorageGroups/columns/i18n/en.json +15 -0
  92. package/dist/containers/Storage/StorageGroups/columns/i18n/index.d.ts +2 -0
  93. package/dist/containers/Storage/StorageGroups/columns/i18n/index.js +5 -0
  94. package/dist/containers/Storage/StorageGroups/columns/i18n/index.js.map +1 -0
  95. package/dist/containers/Storage/StorageGroups/columns/types.d.ts +2 -6
  96. package/dist/containers/Storage/StorageGroups/getGroups.js +4 -1
  97. package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
  98. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.d.ts +3 -3
  99. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js +2 -5
  100. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js.map +1 -1
  101. package/dist/containers/Storage/StorageNodes/StorageNodes.d.ts +4 -6
  102. package/dist/containers/Storage/StorageNodes/StorageNodes.js +2 -4
  103. package/dist/containers/Storage/StorageNodes/StorageNodes.js.map +1 -1
  104. package/dist/containers/Storage/StorageNodes/StorageNodes.scss +1 -27
  105. package/dist/containers/Storage/StorageNodes/columns/StorageNodesColumns.scss +23 -0
  106. package/dist/containers/Storage/StorageNodes/columns/columns.d.ts +39 -0
  107. package/dist/containers/Storage/StorageNodes/{getStorageNodesColumns.js → columns/columns.js} +21 -31
  108. package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -0
  109. package/dist/containers/Storage/StorageNodes/columns/constants.d.ts +25 -0
  110. package/dist/containers/Storage/StorageNodes/columns/constants.js +47 -0
  111. package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -0
  112. package/dist/containers/Storage/StorageNodes/columns/hooks.d.ts +43 -0
  113. package/dist/containers/Storage/StorageNodes/columns/hooks.js +18 -0
  114. package/dist/containers/Storage/StorageNodes/columns/hooks.js.map +1 -0
  115. package/dist/containers/Storage/StorageNodes/columns/i18n/en.json +9 -0
  116. package/dist/containers/Storage/StorageNodes/columns/i18n/index.d.ts +2 -0
  117. package/dist/containers/Storage/StorageNodes/columns/i18n/index.js +5 -0
  118. package/dist/containers/Storage/StorageNodes/columns/i18n/index.js.map +1 -0
  119. package/dist/containers/Storage/StorageNodes/columns/types.d.ts +11 -0
  120. package/dist/containers/Storage/StorageNodes/columns/types.js +2 -0
  121. package/dist/containers/Storage/StorageNodes/columns/types.js.map +1 -0
  122. package/dist/containers/Storage/StorageNodes/getNodes.d.ts +2 -2
  123. package/dist/containers/Storage/StorageNodes/getNodes.js +7 -4
  124. package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
  125. package/dist/containers/Storage/StorageNodes/shared.js +1 -1
  126. package/dist/containers/Storage/StorageNodes/shared.js.map +1 -1
  127. package/dist/containers/Storage/StorageWrapper.d.ts +0 -2
  128. package/dist/containers/Storage/StorageWrapper.js.map +1 -1
  129. package/dist/containers/Storage/utils/index.js +6 -5
  130. package/dist/containers/Storage/utils/index.js.map +1 -1
  131. package/dist/containers/StorageGroupPage/StorageGroupPage.js +14 -57
  132. package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -1
  133. package/dist/containers/StorageGroupPage/StorageGroupPage.scss +14 -17
  134. package/dist/containers/StorageGroupPage/i18n/en.json +1 -2
  135. package/dist/containers/StorageGroupPage/i18n/index.d.ts +1 -1
  136. package/dist/containers/Tablets/i18n/index.d.ts +1 -1
  137. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +6 -0
  138. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +2 -2
  139. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
  140. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +12 -5
  141. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js.map +1 -1
  142. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js +12 -5
  143. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js.map +1 -1
  144. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +13 -5
  145. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js.map +1 -1
  146. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +2 -1
  147. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
  148. package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
  149. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +46 -55
  150. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js.map +1 -1
  151. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.scss +6 -7
  152. package/dist/containers/Tenant/ObjectSummary/ObjectTree.d.ts +6 -0
  153. package/dist/containers/Tenant/ObjectSummary/ObjectTree.js +25 -0
  154. package/dist/containers/Tenant/ObjectSummary/ObjectTree.js.map +1 -0
  155. package/dist/containers/Tenant/ObjectSummary/SchemaActions.d.ts +1 -0
  156. package/dist/containers/Tenant/ObjectSummary/SchemaActions.js +18 -0
  157. package/dist/containers/Tenant/ObjectSummary/SchemaActions.js.map +1 -0
  158. package/dist/containers/Tenant/ObjectSummary/i18n/en.json +21 -0
  159. package/dist/containers/Tenant/ObjectSummary/i18n/index.d.ts +2 -0
  160. package/dist/containers/Tenant/ObjectSummary/i18n/index.js +5 -0
  161. package/dist/containers/Tenant/ObjectSummary/i18n/index.js.map +1 -0
  162. package/dist/containers/Tenant/ObjectSummary/shared.d.ts +1 -0
  163. package/dist/containers/Tenant/ObjectSummary/shared.js +3 -0
  164. package/dist/containers/Tenant/ObjectSummary/shared.js.map +1 -0
  165. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +12 -12
  166. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
  167. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +8 -0
  168. package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +2 -1
  169. package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
  170. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.js +3 -1
  171. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.js.map +1 -1
  172. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js +5 -10
  173. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js.map +1 -1
  174. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.js +5 -3
  175. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.js.map +1 -1
  176. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js +6 -10
  177. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js.map +1 -1
  178. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +11 -2
  179. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js.map +1 -1
  180. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.scss +1 -0
  181. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.d.ts +1 -0
  182. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js +1 -1
  183. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js.map +1 -1
  184. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +3 -0
  185. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +3 -0
  186. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js.map +1 -1
  187. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/en.json +3 -0
  188. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/index.d.ts +1 -1
  189. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/ru.json +3 -0
  190. package/dist/containers/Tenant/utils/schema.js +1 -0
  191. package/dist/containers/Tenant/utils/schema.js.map +1 -1
  192. package/dist/containers/UserSettings/i18n/en.json +0 -2
  193. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  194. package/dist/containers/UserSettings/settings.d.ts +0 -1
  195. package/dist/containers/UserSettings/settings.js +2 -7
  196. package/dist/containers/UserSettings/settings.js.map +1 -1
  197. package/dist/containers/VDiskPage/VDiskPage.d.ts +0 -3
  198. package/dist/containers/VDiskPage/VDiskPage.js +9 -33
  199. package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
  200. package/dist/containers/VDiskPage/VDiskPage.scss +10 -19
  201. package/dist/containers/VDiskPage/i18n/en.json +1 -1
  202. package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
  203. package/dist/services/api.d.ts +16 -5
  204. package/dist/services/api.js +50 -11
  205. package/dist/services/api.js.map +1 -1
  206. package/dist/services/settings.d.ts +2 -2
  207. package/dist/services/settings.js +2 -3
  208. package/dist/services/settings.js.map +1 -1
  209. package/dist/store/configureStore.d.ts +2 -2
  210. package/dist/store/defaultStore.d.ts +1 -1
  211. package/dist/store/reducers/capabilities/capabilities.d.ts +8 -1
  212. package/dist/store/reducers/capabilities/capabilities.js +6 -1
  213. package/dist/store/reducers/capabilities/capabilities.js.map +1 -1
  214. package/dist/store/reducers/executeQuery.js +3 -0
  215. package/dist/store/reducers/executeQuery.js.map +1 -1
  216. package/dist/store/reducers/index.d.ts +2 -2
  217. package/dist/store/reducers/nodes/nodes.d.ts +2 -2
  218. package/dist/store/reducers/nodes/nodes.js.map +1 -1
  219. package/dist/store/reducers/nodes/types.d.ts +2 -24
  220. package/dist/store/reducers/pdisk/pdisk.js +29 -2
  221. package/dist/store/reducers/pdisk/pdisk.js.map +1 -1
  222. package/dist/store/reducers/pdisk/utils.js +1 -1
  223. package/dist/store/reducers/pdisk/utils.js.map +1 -1
  224. package/dist/store/reducers/storage/storage.d.ts +2 -2
  225. package/dist/store/reducers/storage/storage.js.map +1 -1
  226. package/dist/store/reducers/tooltip.d.ts +1 -1
  227. package/dist/styles/mixins.scss +3 -3
  228. package/dist/types/api/common.d.ts +1 -0
  229. package/dist/types/api/nodes.d.ts +33 -0
  230. package/dist/types/api/nodes.js.map +1 -1
  231. package/dist/types/api/query.d.ts +1 -0
  232. package/dist/types/api/storage.d.ts +8 -5
  233. package/dist/types/store/query.d.ts +5 -8
  234. package/dist/utils/constants.d.ts +0 -8
  235. package/dist/utils/constants.js +0 -9
  236. package/dist/utils/constants.js.map +1 -1
  237. package/dist/utils/filters.d.ts +2 -1
  238. package/dist/utils/filters.js +1 -4
  239. package/dist/utils/filters.js.map +1 -1
  240. package/dist/utils/hooks/useChangedQuerySettings.d.ts +2 -2
  241. package/dist/utils/hooks/useChangedQuerySettings.js +2 -1
  242. package/dist/utils/hooks/useChangedQuerySettings.js.map +1 -1
  243. package/dist/utils/hooks/useLastQueryExecutionSettings.d.ts +15 -2
  244. package/dist/utils/hooks/useLastQueryExecutionSettings.js +8 -9
  245. package/dist/utils/hooks/useLastQueryExecutionSettings.js.map +1 -1
  246. package/dist/utils/hooks/useQueryExecutionSettings.d.ts +15 -2
  247. package/dist/utils/hooks/useQueryExecutionSettings.js +5 -7
  248. package/dist/utils/hooks/useQueryExecutionSettings.js.map +1 -1
  249. package/dist/utils/hooks/useSelectedColumns.d.ts +8 -0
  250. package/dist/utils/hooks/useSelectedColumns.js +35 -0
  251. package/dist/utils/hooks/useSelectedColumns.js.map +1 -0
  252. package/dist/utils/nodes.d.ts +3 -22
  253. package/dist/utils/nodes.js +16 -19
  254. package/dist/utils/nodes.js.map +1 -1
  255. package/dist/utils/query.d.ts +129 -0
  256. package/dist/utils/query.js +33 -1
  257. package/dist/utils/query.js.map +1 -1
  258. package/dist/utils/storage.d.ts +1 -1
  259. package/dist/utils/storage.js.map +1 -1
  260. package/package.json +2 -1
  261. package/dist/containers/Clusters/useSelectedColumns.d.ts +0 -7
  262. package/dist/containers/Clusters/useSelectedColumns.js +0 -26
  263. package/dist/containers/Clusters/useSelectedColumns.js.map +0 -1
  264. package/dist/containers/Nodes/getNodesColumns.js.map +0 -1
  265. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.d.ts +0 -6
  266. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +0 -30
  267. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js.map +0 -1
  268. package/dist/containers/PDiskPage/PDiskGroups/utils.d.ts +0 -2
  269. package/dist/containers/PDiskPage/PDiskGroups/utils.js +0 -14
  270. package/dist/containers/PDiskPage/PDiskGroups/utils.js.map +0 -1
  271. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.d.ts +0 -21
  272. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js.map +0 -1
  273. package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.d.ts +0 -50
  274. package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js.map +0 -1
  275. package/dist/containers/VDiskPage/utils.d.ts +0 -2
  276. package/dist/containers/VDiskPage/utils.js +0 -7
  277. package/dist/containers/VDiskPage/utils.js.map +0 -1
  278. package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +0 -4
  279. package/dist/store/reducers/tenantOverview/topNodes/topNodes.js +0 -27
  280. package/dist/store/reducers/tenantOverview/topNodes/topNodes.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"StorageControls.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageControls/StorageControls.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,iDAAiD,CAAC;AAC9E,OAAO,EAAC,MAAM,EAAC,MAAM,mCAAmC,CAAC;AACzD,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAC,aAAa,EAAC,MAAM,2CAA2C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AAiB,EAAE,QAAQ,EAAE,6BAA6B,GAAI,CACtF,EACA,CAAC,OAAO,IAAI,qBAAqB,IAAI,CAClC,KAAC,WAAW,IACR,KAAK,EAAE,iBAAiB,EACxB,QAAQ,EAAE,6BAA6B,EACvC,MAAM,EAAE,wBAAwB,GAClC,CACL,EAED,KAAC,aAAa,IACV,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,kBAAkB,EACzB,OAAO,EAAE,oBAAoB,GAC/B,IACW,CACpB,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"StorageControls.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageControls/StorageControls.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAEnD,OAAO,EAAC,aAAa,EAAC,MAAM,iDAAiD,CAAC;AAC9E,OAAO,EAAC,MAAM,EAAC,MAAM,mCAAmC,CAAC;AACzD,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAC,aAAa,EAAC,MAAM,2CAA2C,CAAC;AAGxE,OAAO,EAAC,iBAAiB,EAAC,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAC,4BAA4B,EAAC,MAAM,8DAA8D,CAAC;AAC1G,OAAO,EAAC,WAAW,EAAC,MAAM,4BAA4B,CAAC;AAEvD,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,EAAC,CAAC,EAAC,MAAM,WAAW,CAAC;AA6B5B,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAC5B,WAAW,EACX,uBAAuB,EAEvB,gBAAgB,EAChB,WAAW,EACX,uBAAuB,EAEvB,eAAe,EACf,2BAA2B,EAE3B,iBAAiB,EACjB,6BAA6B,EAE7B,qBAAqB,EACrB,iBAAiB,EACjB,wBAAwB,EACxB,6BAA6B,EAE7B,oBAAoB,EACpB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EACrC,QAAQ,EAAE,KAAK,GACjB,IACW,CACpB,CAAC;AACN,CAAC,CAAC"}
@@ -1,6 +1,8 @@
1
1
  import type { RenderControls, RenderErrorMessage } from '../../../components/PaginatedTable';
2
2
  import type { VisibleEntities } from '../../../store/reducers/storage/types';
3
+ import type { StorageGroupsColumn } from './columns/types';
3
4
  interface PaginatedStorageGroupsProps {
5
+ columns: StorageGroupsColumn[];
4
6
  searchValue: string;
5
7
  visibleEntities: VisibleEntities;
6
8
  database?: string;
@@ -10,5 +12,5 @@ interface PaginatedStorageGroupsProps {
10
12
  renderControls: RenderControls;
11
13
  renderErrorMessage: RenderErrorMessage;
12
14
  }
13
- export declare const PaginatedStorageGroups: ({ searchValue, visibleEntities, database, nodeId, onShowAll, parentContainer, renderControls, renderErrorMessage, }: PaginatedStorageGroupsProps) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const PaginatedStorageGroups: ({ columns, searchValue, visibleEntities, database, nodeId, onShowAll, parentContainer, renderControls, renderErrorMessage, }: PaginatedStorageGroupsProps) => import("react/jsx-runtime").JSX.Element;
14
16
  export {};
@@ -5,12 +5,10 @@ import { ResizeablePaginatedTable } from '../../../components/PaginatedTable';
5
5
  import { useCapabilitiesLoaded, useStorageGroupsHandlerAvailable, } from '../../../store/reducers/capabilities/hooks';
6
6
  import { VISIBLE_ENTITIES } from '../../../store/reducers/storage/constants';
7
7
  import { StorageGroupsEmptyDataMessage } from './StorageGroupsEmptyDataMessage';
8
- import { STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY } from './columns/getStorageGroupsColumns';
9
- import { useGetStorageGroupsColumns } from './columns/hooks';
8
+ import { STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY } from './columns/constants';
10
9
  import { useGroupsGetter } from './getGroups';
11
10
  import i18n from './i18n';
12
- export const PaginatedStorageGroups = ({ searchValue, visibleEntities, database, nodeId, onShowAll, parentContainer, renderControls, renderErrorMessage, }) => {
13
- const columns = useGetStorageGroupsColumns(visibleEntities);
11
+ export const PaginatedStorageGroups = ({ columns, searchValue, visibleEntities, database, nodeId, onShowAll, parentContainer, renderControls, renderErrorMessage, }) => {
14
12
  const capabilitiesLoaded = useCapabilitiesLoaded();
15
13
  const groupsHandlerAvailable = useStorageGroupsHandlerAvailable();
16
14
  const fetchData = useGroupsGetter(groupsHandlerAvailable);
@@ -1 +1 @@
1
- {"version":3,"file":"PaginatedStorageGroups.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageGroups/PaginatedStorageGroups.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,iDAAiD,CAAC;AAE9E,OAAO,EAAC,wBAAwB,EAAC,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EACH,qBAAqB,EACrB,gCAAgC,GACnC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAG3E,OAAO,EAAC,6BAA6B,EAAC,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAC,mCAAmC,EAAC,MAAM,mCAAmC,CAAC;AACtF,OAAO,EAAC,0BAA0B,EAAC,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,IAAI,MAAM,QAAQ,CAAC;AAe1B,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,EACnC,WAAW,EACX,eAAe,EACf,QAAQ,EACR,MAAM,EACN,SAAS,EACT,eAAe,EACf,cAAc,EACd,kBAAkB,GACQ,EAAE,EAAE;IAC9B,MAAM,OAAO,GAAG,0BAA0B,CAAC,eAAe,CAAC,CAAC;IAE5D,MAAM,kBAAkB,GAAG,qBAAqB,EAAE,CAAC;IACnD,MAAM,sBAAsB,GAAG,gCAAgC,EAAE,CAAC;IAElE,MAAM,SAAS,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;IAE1D,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QACpC,OAAO,EAAC,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,EAAC,CAAC;IAC5D,CAAC,EAAE,CAAC,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;IAErD,MAAM,sBAAsB,GAAG,GAAG,EAAE;QAChC,IAAI,eAAe,KAAK,gBAAgB,CAAC,GAAG,EAAE,CAAC;YAC3C,OAAO,CACH,KAAC,6BAA6B,IAC1B,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,eAAe,GAClC,CACL,CAAC;QACN,CAAC;QAED,OAAO,IAAI,CAAC,eAAe,CAAC,CAAC;IACjC,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,aAAa,IAAC,OAAO,EAAE,CAAC,kBAAkB,YACvC,KAAC,wBAAwB,IACrB,iBAAiB,EAAE,mCAAmC,EACtD,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,EAAE,EACT,cAAc,EAAE,cAAc,EAC9B,kBAAkB,EAAE,kBAAkB,EACtC,sBAAsB,EAAE,sBAAsB,EAC9C,OAAO,EAAE,YAAY,EACrB,SAAS,EAAC,gBAAgB,GAC5B,GACU,CACnB,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"PaginatedStorageGroups.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageGroups/PaginatedStorageGroups.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,iDAAiD,CAAC;AAE9E,OAAO,EAAC,wBAAwB,EAAC,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EACH,qBAAqB,EACrB,gCAAgC,GACnC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAG3E,OAAO,EAAC,6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AAkB,EACtC,sBAAsB,EAAE,sBAAsB,EAC9C,OAAO,EAAE,YAAY,EACrB,SAAS,EAAC,gBAAgB,GAC5B,GACU,CACnB,CAAC;AACN,CAAC,CAAC"}
@@ -1,13 +1,15 @@
1
1
  import type { Settings, SortOrder } from '@gravity-ui/react-data-table';
2
2
  import type { PreparedStorageGroup, VisibleEntities } from '../../../store/reducers/storage/types';
3
3
  import type { HandleSort } from '../../../utils/hooks/useTableSort';
4
+ import type { StorageGroupsColumn } from './columns/types';
4
5
  interface StorageGroupsProps {
5
6
  data: PreparedStorageGroup[];
7
+ columns: StorageGroupsColumn[];
6
8
  tableSettings: Settings;
7
9
  visibleEntities: VisibleEntities;
8
10
  onShowAll?: VoidFunction;
9
11
  sort?: SortOrder;
10
12
  handleSort?: HandleSort;
11
13
  }
12
- export declare function StorageGroups({ data, tableSettings, visibleEntities, onShowAll, sort, handleSort, }: StorageGroupsProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function StorageGroups({ data, columns, tableSettings, visibleEntities, onShowAll, sort, handleSort, }: StorageGroupsProps): import("react/jsx-runtime").JSX.Element;
13
15
  export {};
@@ -2,11 +2,9 @@ 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
4
  import { StorageGroupsEmptyDataMessage } from './StorageGroupsEmptyDataMessage';
5
- import { STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY } from './columns/getStorageGroupsColumns';
6
- import { useGetStorageGroupsColumns } from './columns/hooks';
5
+ import { STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY } from './columns/constants';
7
6
  import i18n from './i18n';
8
- export function StorageGroups({ data, tableSettings, visibleEntities, onShowAll, sort, handleSort, }) {
9
- const columns = useGetStorageGroupsColumns(visibleEntities);
7
+ export function StorageGroups({ data, columns, tableSettings, visibleEntities, onShowAll, sort, handleSort, }) {
10
8
  if (!data.length && visibleEntities !== VISIBLE_ENTITIES.all) {
11
9
  return (_jsx(StorageGroupsEmptyDataMessage, { onShowAll: onShowAll, visibleEntities: visibleEntities }));
12
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"StorageGroups.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageGroups/StorageGroups.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,mBAAmB,EAAC,MAAM,6DAA6D,CAAC;AAChG,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAI3E,OAAO,EAAC,6BAA6B,EAAC,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAC,mCAAmC,EAAC,MAAM,mCAAmC,CAAC;AACtF,OAAO,EAAC,0BAA0B,EAAC,MAAM,iBAAiB,CAAC;AAC3D,OAAO,IAAI,MAAM,QAAQ,CAAC;AAW1B,MAAM,UAAU,aAAa,CAAC,EAC1B,IAAI,EACJ,aAAa,EACb,eAAe,EACf,SAAS,EACT,IAAI,EACJ,UAAU,GACO;IACjB,MAAM,OAAO,GAAG,0BAA0B,CAAC,eAAe,CAAC,CAAC;IAE5D,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,eAAe,KAAK,gBAAgB,CAAC,GAAG,EAAE,CAAC;QAC3D,OAAO,CACH,KAAC,6BAA6B,IAC1B,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,eAAe,GAClC,CACL,CAAC;IACN,CAAC;IAED,OAAO,CACH,KAAC,mBAAmB,IAChB,iBAAiB,EAAE,mCAAmC,EAEtD,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,aAAa,EACvB,gBAAgB,EAAE,IAAI,CAAC,eAAe,CAAC,EACvC,SAAS,EAAE,IAAI,EACf,MAAM,EAAE,UAAU,IANb,eAAe,CAOtB,CACL,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"StorageGroups.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageGroups/StorageGroups.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,mBAAmB,EAAC,MAAM,6DAA6D,CAAC;AAChG,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAI3E,OAAO,EAAC,6BAA6B,EAAC,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAC,mCAAmC,EAAC,MAAM,qBAAqB,CAAC;AAExE,OAAO,IAAI,MAAM,QAAQ,CAAC;AAY1B,MAAM,UAAU,aAAa,CAAC,EAC1B,IAAI,EACJ,OAAO,EACP,aAAa,EACb,eAAe,EACf,SAAS,EACT,IAAI,EACJ,UAAU,GACO;IACjB,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,eAAe,KAAK,gBAAgB,CAAC,GAAG,EAAE,CAAC;QAC3D,OAAO,CACH,KAAC,6BAA6B,IAC1B,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,eAAe,GAClC,CACL,CAAC;IACN,CAAC;IAED,OAAO,CACH,KAAC,mBAAmB,IAChB,iBAAiB,EAAE,mCAAmC,EAEtD,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,aAAa,EACvB,gBAAgB,EAAE,IAAI,CAAC,eAAe,CAAC,EACvC,SAAS,EAAE,IAAI,EACf,MAAM,EAAE,UAAU,IANb,eAAe,CAOtB,CACL,CAAC;AACN,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { StorageColumnsGetter } from './types';
2
+ import './StorageGroupsColumns.scss';
3
+ export declare const getStorageTopGroupsColumns: StorageColumnsGetter;
4
+ export declare const getStorageGroupsColumns: StorageColumnsGetter;
@@ -9,7 +9,6 @@ import { InternalLink } from '../../../../components/InternalLink';
9
9
  import { UsageLabel } from '../../../../components/UsageLabel/UsageLabel';
10
10
  import { VDiskWithDonorsStack } from '../../../../components/VDisk/VDiskWithDonorsStack';
11
11
  import { getStorageGroupPath } from '../../../../routes';
12
- import { VISIBLE_ENTITIES } from '../../../../store/reducers/storage/constants';
13
12
  import { cn } from '../../../../utils/cn';
14
13
  import { stringifyVdiskId } from '../../../../utils/dataFormatters/dataFormatters';
15
14
  import { isSortableStorageProperty } from '../../../../utils/storage';
@@ -17,27 +16,12 @@ import { bytesToGB, bytesToSpeed } from '../../../../utils/utils';
17
16
  import { Disks } from '../../Disks/Disks';
18
17
  import { getDegradedSeverity, getUsageSeverityForStorageGroup } from '../../utils';
19
18
  import i18n from '../i18n';
19
+ import { STORAGE_GROUPS_COLUMNS_IDS, STORAGE_GROUPS_COLUMNS_TITLES } from './constants';
20
20
  import './StorageGroupsColumns.scss';
21
21
  const b = cn('ydb-storage-groups-columns');
22
- export const STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY = 'storageGroupsColumnsWidth';
23
- export const GROUPS_COLUMNS_IDS = {
24
- PoolName: 'PoolName',
25
- MediaType: 'MediaType',
26
- Erasure: 'Erasure',
27
- GroupId: 'GroupId',
28
- Used: 'Used',
29
- Limit: 'Limit',
30
- Usage: 'Usage',
31
- DiskSpace: 'DiskSpace',
32
- Read: 'Read',
33
- Write: 'Write',
34
- VDisks: 'VDisks',
35
- Disks: 'Disks',
36
- Degraded: 'Degraded',
37
- };
38
22
  const poolNameColumn = {
39
- name: GROUPS_COLUMNS_IDS.PoolName,
40
- header: 'Pool Name',
23
+ name: STORAGE_GROUPS_COLUMNS_IDS.PoolName,
24
+ header: STORAGE_GROUPS_COLUMNS_TITLES.PoolName,
41
25
  width: 250,
42
26
  render: ({ row }) => {
43
27
  var _a;
@@ -47,8 +31,8 @@ const poolNameColumn = {
47
31
  align: DataTable.LEFT,
48
32
  };
49
33
  const typeColumn = {
50
- name: GROUPS_COLUMNS_IDS.MediaType,
51
- header: 'Type',
34
+ name: STORAGE_GROUPS_COLUMNS_IDS.MediaType,
35
+ header: STORAGE_GROUPS_COLUMNS_TITLES.MediaType,
52
36
  width: 100,
53
37
  resizeMinWidth: 100,
54
38
  align: DataTable.LEFT,
@@ -56,16 +40,16 @@ const typeColumn = {
56
40
  sortable: false,
57
41
  };
58
42
  const erasureColumn = {
59
- name: GROUPS_COLUMNS_IDS.Erasure,
60
- header: 'Erasure',
43
+ name: STORAGE_GROUPS_COLUMNS_IDS.Erasure,
44
+ header: STORAGE_GROUPS_COLUMNS_TITLES.Erasure,
61
45
  width: 100,
62
46
  sortAccessor: (row) => row.ErasureSpecies,
63
47
  render: ({ row }) => (row.ErasureSpecies ? row.ErasureSpecies : '-'),
64
48
  align: DataTable.LEFT,
65
49
  };
66
50
  const degradedColumn = {
67
- name: GROUPS_COLUMNS_IDS.Degraded,
68
- header: 'Degraded',
51
+ name: STORAGE_GROUPS_COLUMNS_IDS.Degraded,
52
+ header: STORAGE_GROUPS_COLUMNS_TITLES.Degraded,
69
53
  width: 110,
70
54
  resizeMinWidth: 110,
71
55
  render: ({ row }) => row.Degraded ? (_jsxs(Label, { theme: getDegradedSeverity(row), children: ["Degraded: ", row.Degraded] })) : ('-'),
@@ -73,8 +57,8 @@ const degradedColumn = {
73
57
  defaultOrder: DataTable.DESCENDING,
74
58
  };
75
59
  const usageColumn = {
76
- name: GROUPS_COLUMNS_IDS.Usage,
77
- header: 'Usage',
60
+ name: STORAGE_GROUPS_COLUMNS_IDS.Usage,
61
+ header: STORAGE_GROUPS_COLUMNS_TITLES.Usage,
78
62
  width: 75,
79
63
  resizeMinWidth: 75,
80
64
  render: ({ row }) => {
@@ -87,8 +71,8 @@ const usageColumn = {
87
71
  align: DataTable.LEFT,
88
72
  };
89
73
  const groupIdColumn = {
90
- name: GROUPS_COLUMNS_IDS.GroupId,
91
- header: 'Group ID',
74
+ name: STORAGE_GROUPS_COLUMNS_IDS.GroupId,
75
+ header: STORAGE_GROUPS_COLUMNS_TITLES.GroupId,
92
76
  width: 130,
93
77
  render: ({ row }) => {
94
78
  return row.GroupId ? (_jsx(InternalLink, { className: b('group-id'), to: getStorageGroupPath(row.GroupId), children: row.GroupId })) : ('-');
@@ -97,8 +81,8 @@ const groupIdColumn = {
97
81
  align: DataTable.RIGHT,
98
82
  };
99
83
  const usedColumn = {
100
- name: GROUPS_COLUMNS_IDS.Used,
101
- header: 'Used',
84
+ name: STORAGE_GROUPS_COLUMNS_IDS.Used,
85
+ header: STORAGE_GROUPS_COLUMNS_TITLES.Used,
102
86
  width: 100,
103
87
  render: ({ row }) => {
104
88
  return bytesToGB(row.Used, true);
@@ -106,8 +90,8 @@ const usedColumn = {
106
90
  align: DataTable.RIGHT,
107
91
  };
108
92
  const limitColumn = {
109
- name: GROUPS_COLUMNS_IDS.Limit,
110
- header: 'Limit',
93
+ name: STORAGE_GROUPS_COLUMNS_IDS.Limit,
94
+ header: STORAGE_GROUPS_COLUMNS_TITLES.Limit,
111
95
  width: 100,
112
96
  render: ({ row }) => {
113
97
  return bytesToGB(row.Limit);
@@ -115,8 +99,8 @@ const limitColumn = {
115
99
  align: DataTable.RIGHT,
116
100
  };
117
101
  const usedSpaceFlagColumn = {
118
- name: GROUPS_COLUMNS_IDS.DiskSpace,
119
- header: 'Space',
102
+ name: STORAGE_GROUPS_COLUMNS_IDS.DiskSpace,
103
+ header: STORAGE_GROUPS_COLUMNS_TITLES.DiskSpace,
120
104
  width: 110,
121
105
  render: ({ row }) => {
122
106
  return _jsx(EntityStatus, { status: row.DiskSpace });
@@ -124,8 +108,8 @@ const usedSpaceFlagColumn = {
124
108
  align: DataTable.CENTER,
125
109
  };
126
110
  const readColumn = {
127
- name: GROUPS_COLUMNS_IDS.Read,
128
- header: 'Read',
111
+ name: STORAGE_GROUPS_COLUMNS_IDS.Read,
112
+ header: STORAGE_GROUPS_COLUMNS_TITLES.Read,
129
113
  width: 100,
130
114
  render: ({ row }) => {
131
115
  return row.Read ? bytesToSpeed(row.Read) : '-';
@@ -133,8 +117,8 @@ const readColumn = {
133
117
  align: DataTable.RIGHT,
134
118
  };
135
119
  const writeColumn = {
136
- name: GROUPS_COLUMNS_IDS.Write,
137
- header: 'Write',
120
+ name: STORAGE_GROUPS_COLUMNS_IDS.Write,
121
+ header: STORAGE_GROUPS_COLUMNS_TITLES.Write,
138
122
  width: 100,
139
123
  render: ({ row }) => {
140
124
  return row.Write ? bytesToSpeed(row.Write) : '-';
@@ -142,9 +126,9 @@ const writeColumn = {
142
126
  align: DataTable.RIGHT,
143
127
  };
144
128
  const getVDisksColumn = (nodes) => ({
145
- name: GROUPS_COLUMNS_IDS.VDisks,
129
+ name: STORAGE_GROUPS_COLUMNS_IDS.VDisks,
130
+ header: STORAGE_GROUPS_COLUMNS_TITLES.VDisks,
146
131
  className: b('vdisks-column'),
147
- header: 'VDisks',
148
132
  render: ({ row }) => {
149
133
  var _a;
150
134
  return (_jsx("div", { className: b('vdisks-wrapper'), children: (_a = row.VDisks) === null || _a === void 0 ? void 0 : _a.map((vDisk) => {
@@ -157,9 +141,9 @@ const getVDisksColumn = (nodes) => ({
157
141
  sortable: false,
158
142
  });
159
143
  const getDisksColumn = (nodes) => ({
160
- name: GROUPS_COLUMNS_IDS.Disks,
144
+ name: STORAGE_GROUPS_COLUMNS_IDS.VDisksPDisks,
145
+ header: STORAGE_GROUPS_COLUMNS_TITLES.VDisksPDisks,
161
146
  className: b('disks-column'),
162
- header: 'Disks',
163
147
  render: ({ row }) => {
164
148
  return _jsx(Disks, { vDisks: row.VDisks, nodes: nodes });
165
149
  },
@@ -184,57 +168,25 @@ export const getStorageTopGroupsColumns = () => {
184
168
  };
185
169
  });
186
170
  };
187
- export const getDiskPageStorageColumns = (data, options) => {
188
- const disksColumn = (options === null || options === void 0 ? void 0 : options.useAdvancedStorage)
189
- ? getDisksColumn()
190
- : getVDisksColumn(data === null || data === void 0 ? void 0 : data.nodes);
191
- return [
192
- poolNameColumn,
193
- typeColumn,
194
- erasureColumn,
195
- degradedColumn,
171
+ export const getStorageGroupsColumns = (data) => {
172
+ const columns = [
196
173
  groupIdColumn,
197
- usageColumn,
198
- usedColumn,
199
- disksColumn,
200
- ];
201
- };
202
- const getStorageGroupsColumns = (data, options) => {
203
- const disksColumn = (options === null || options === void 0 ? void 0 : options.useAdvancedStorage)
204
- ? getDisksColumn()
205
- : getVDisksColumn(data === null || data === void 0 ? void 0 : data.nodes);
206
- return [
207
174
  poolNameColumn,
208
175
  typeColumn,
209
176
  erasureColumn,
210
177
  degradedColumn,
211
178
  usageColumn,
212
- groupIdColumn,
213
179
  usedColumn,
214
180
  limitColumn,
215
181
  usedSpaceFlagColumn,
216
182
  readColumn,
217
183
  writeColumn,
218
- disksColumn,
184
+ getVDisksColumn(data === null || data === void 0 ? void 0 : data.nodes),
185
+ getDisksColumn(data === null || data === void 0 ? void 0 : data.nodes),
219
186
  ];
220
- };
221
- const filterStorageGroupsColumns = (columns, visibleEntities) => {
222
- if (visibleEntities === VISIBLE_ENTITIES.space) {
223
- return columns.filter((col) => col.name !== GROUPS_COLUMNS_IDS.Degraded);
224
- }
225
- if (visibleEntities === VISIBLE_ENTITIES.missing) {
226
- return columns.filter((col) => col.name !== GROUPS_COLUMNS_IDS.DiskSpace);
227
- }
228
- return columns.filter((col) => {
229
- return (col.name !== GROUPS_COLUMNS_IDS.Degraded && col.name !== GROUPS_COLUMNS_IDS.DiskSpace);
230
- });
231
- };
232
- export const getPreparedStorageGroupsColumns = (data, options) => {
233
- const rawColumns = getStorageGroupsColumns(data, options);
234
- const filteredColumns = filterStorageGroupsColumns(rawColumns, options === null || options === void 0 ? void 0 : options.visibleEntities);
235
- return filteredColumns.map((column) => ({
187
+ return columns.map((column) => ({
236
188
  ...column,
237
189
  sortable: isSortableStorageProperty(column.name),
238
190
  }));
239
191
  };
240
- //# 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,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,SAAS,MAAM,8BAA8B,CAAC;AACrD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F,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,CAAC,OAAO,CAAC,GAAG,EAAE;QACtB,OAAO,aAAa,CAAC,EAAC,KAAK,EAAC,E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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,EAAE,eAAe;YACrB,QAAQ;YACR,MAAM;YACN,sBAAsB;SACzB,EACD,EAAC,YAAY,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