ydb-embedded-ui 6.17.2 → 6.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (377) hide show
  1. package/dist/assets/icons/decommission.svg +6 -0
  2. package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.d.ts +3 -2
  3. package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.js +10 -16
  4. package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.js.map +1 -1
  5. package/dist/components/ComponentsProvider/ComponentsProvider.d.ts +2 -2
  6. package/dist/components/CriticalActionDialog/CriticalActionDialog.d.ts +4 -2
  7. package/dist/components/CriticalActionDialog/CriticalActionDialog.js +7 -4
  8. package/dist/components/CriticalActionDialog/CriticalActionDialog.js.map +1 -1
  9. package/dist/components/CriticalActionDialog/CriticalActionDialog.scss +23 -1
  10. package/dist/components/CriticalActionDialog/utils.d.ts +5 -0
  11. package/dist/components/CriticalActionDialog/utils.js +4 -0
  12. package/dist/components/CriticalActionDialog/utils.js.map +1 -0
  13. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +5 -3
  14. package/dist/components/EntityPageTitle/EntityPageTitle.d.ts +1 -2
  15. package/dist/components/EntityPageTitle/EntityPageTitle.js +2 -2
  16. package/dist/components/EntityPageTitle/EntityPageTitle.js.map +1 -1
  17. package/dist/components/GroupInfo/GroupInfo.js +3 -3
  18. package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.js +1 -1
  19. package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.js.map +1 -1
  20. package/dist/components/LinkWithIcon/LinkWithIcon.d.ts +2 -1
  21. package/dist/components/LinkWithIcon/LinkWithIcon.js +3 -3
  22. package/dist/components/LinkWithIcon/LinkWithIcon.js.map +1 -1
  23. package/dist/components/Loader/Loader.js +1 -1
  24. package/dist/components/Loader/Loader.js.map +1 -1
  25. package/dist/components/MetricChart/reducer.d.ts +2 -2
  26. package/dist/components/PDiskInfo/PDiskInfo.js +1 -7
  27. package/dist/components/PDiskInfo/PDiskInfo.js.map +1 -1
  28. package/dist/components/PDiskInfo/i18n/en.json +0 -1
  29. package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
  30. package/dist/components/PDiskPopup/PDiskPopup.js +3 -5
  31. package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
  32. package/dist/components/PaginatedTable/PaginatedTable.d.ts +2 -1
  33. package/dist/components/PaginatedTable/PaginatedTable.js +2 -2
  34. package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
  35. package/dist/components/PaginatedTable/PaginatedTable.scss +16 -14
  36. package/dist/components/PaginatedTable/ResizeablePaginatedTable.js +2 -1
  37. package/dist/components/PaginatedTable/ResizeablePaginatedTable.js.map +1 -1
  38. package/dist/components/PaginatedTable/TableChunk.js +12 -4
  39. package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
  40. package/dist/components/PaginatedTable/TableHead.js +14 -10
  41. package/dist/components/PaginatedTable/TableHead.js.map +1 -1
  42. package/dist/components/PaginatedTable/TableRow.js +14 -6
  43. package/dist/components/PaginatedTable/TableRow.js.map +1 -1
  44. package/dist/components/PaginatedTable/types.d.ts +1 -1
  45. package/dist/components/Skeleton/Skeleton.js +1 -1
  46. package/dist/components/Skeleton/Skeleton.js.map +1 -1
  47. package/dist/components/TableWithControlsLayout/TableWithControlsLayout.scss +5 -0
  48. package/dist/components/VDisk/VDisk.d.ts +6 -3
  49. package/dist/components/VDisk/VDisk.js +6 -4
  50. package/dist/components/VDisk/VDisk.js.map +1 -1
  51. package/dist/components/VDisk/VDiskWithDonorsStack.d.ts +3 -5
  52. package/dist/components/VDisk/VDiskWithDonorsStack.js +4 -4
  53. package/dist/components/VDisk/VDiskWithDonorsStack.js.map +1 -1
  54. package/dist/components/VDiskPopup/VDiskPopup.js +1 -1
  55. package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
  56. package/dist/containers/AppWithClusters/ExtendedNode/ExtendedNode.js +4 -2
  57. package/dist/containers/AppWithClusters/ExtendedNode/ExtendedNode.js.map +1 -1
  58. package/dist/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.js +4 -3
  59. package/dist/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.js.map +1 -1
  60. package/dist/containers/AppWithClusters/useClusterData.d.ts +7 -1
  61. package/dist/containers/AppWithClusters/useClusterData.js +8 -8
  62. package/dist/containers/AppWithClusters/useClusterData.js.map +1 -1
  63. package/dist/containers/AsideNavigation/AsideNavigation.d.ts +3 -0
  64. package/dist/containers/AsideNavigation/AsideNavigation.js +6 -10
  65. package/dist/containers/AsideNavigation/AsideNavigation.js.map +1 -1
  66. package/dist/containers/AsideNavigation/Navigation.js +4 -1
  67. package/dist/containers/AsideNavigation/Navigation.js.map +1 -1
  68. package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.d.ts +3 -1
  69. package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.js +2 -4
  70. package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.js.map +1 -1
  71. package/dist/containers/Cluster/Cluster.js +5 -13
  72. package/dist/containers/Cluster/Cluster.js.map +1 -1
  73. package/dist/containers/Cluster/Cluster.scss +1 -0
  74. package/dist/containers/Header/Header.js +3 -7
  75. package/dist/containers/Header/Header.js.map +1 -1
  76. package/dist/containers/Node/Node.js +1 -5
  77. package/dist/containers/Node/Node.js.map +1 -1
  78. package/dist/containers/Node/NodePages.js +5 -4
  79. package/dist/containers/Node/NodePages.js.map +1 -1
  80. package/dist/containers/Node/NodeStructure/NodeStructure.js +9 -3
  81. package/dist/containers/Node/NodeStructure/NodeStructure.js.map +1 -1
  82. package/dist/containers/PDiskPage/DecommissionButton/DecommissionButton.d.ts +11 -0
  83. package/dist/containers/PDiskPage/DecommissionButton/DecommissionButton.js +91 -0
  84. package/dist/containers/PDiskPage/DecommissionButton/DecommissionButton.js.map +1 -0
  85. package/dist/containers/PDiskPage/DecommissionButton/DecommissionButton.scss +6 -0
  86. package/dist/containers/PDiskPage/DecommissionLabel/DecommissionLabel.d.ts +6 -0
  87. package/dist/containers/PDiskPage/DecommissionLabel/DecommissionLabel.js +20 -0
  88. package/dist/containers/PDiskPage/DecommissionLabel/DecommissionLabel.js.map +1 -0
  89. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +19 -14
  90. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js.map +1 -1
  91. package/dist/containers/PDiskPage/PDiskGroups/utils.d.ts +2 -0
  92. package/dist/containers/PDiskPage/PDiskGroups/utils.js +14 -0
  93. package/dist/containers/PDiskPage/PDiskGroups/utils.js.map +1 -0
  94. package/dist/containers/PDiskPage/PDiskPage.js +33 -15
  95. package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
  96. package/dist/containers/PDiskPage/PDiskPage.scss +7 -0
  97. package/dist/containers/PDiskPage/i18n/en.json +16 -2
  98. package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
  99. package/dist/containers/Storage/Disks/Disks.d.ts +9 -0
  100. package/dist/containers/Storage/Disks/Disks.js +37 -0
  101. package/dist/containers/Storage/Disks/Disks.js.map +1 -0
  102. package/dist/containers/Storage/Disks/Disks.scss +46 -0
  103. package/dist/containers/Storage/PDisk/PDisk.d.ts +6 -2
  104. package/dist/containers/Storage/PDisk/PDisk.js +14 -7
  105. package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
  106. package/dist/containers/Storage/PDisk/PDisk.scss +4 -2
  107. package/dist/containers/Storage/PaginatedStorage.js +1 -4
  108. package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
  109. package/dist/containers/Storage/Storage.js +11 -13
  110. package/dist/containers/Storage/Storage.js.map +1 -1
  111. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +1 -3
  112. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js +11 -7
  113. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +1 -1
  114. package/dist/containers/Storage/StorageGroups/StorageGroups.d.ts +1 -4
  115. package/dist/containers/Storage/StorageGroups/StorageGroups.js +4 -7
  116. package/dist/containers/Storage/StorageGroups/StorageGroups.js.map +1 -1
  117. package/dist/containers/Storage/StorageGroups/{StorageGroups.scss → columns/StorageGroupsColumns.scss} +3 -2
  118. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.d.ts +21 -0
  119. package/dist/containers/Storage/StorageGroups/{getStorageGroupsColumns.js → columns/getStorageGroupsColumns.js} +47 -40
  120. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js.map +1 -0
  121. package/dist/containers/Storage/StorageGroups/columns/hooks.d.ts +3 -0
  122. package/dist/containers/Storage/StorageGroups/columns/hooks.js +19 -0
  123. package/dist/containers/Storage/StorageGroups/columns/hooks.js.map +1 -0
  124. package/dist/containers/Storage/StorageGroups/columns/types.d.ts +14 -0
  125. package/dist/containers/Storage/StorageGroups/columns/types.js.map +1 -0
  126. package/dist/containers/Storage/StorageGroups/getGroups.d.ts +3 -1
  127. package/dist/containers/Storage/StorageGroups/getGroups.js +27 -24
  128. package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
  129. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js +1 -1
  130. package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.d.ts +1 -1
  131. package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js +1 -1
  132. package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js.map +1 -1
  133. package/dist/containers/Storage/utils/index.js +3 -4
  134. package/dist/containers/Storage/utils/index.js.map +1 -1
  135. package/dist/containers/Tablet/Tablet.js +13 -11
  136. package/dist/containers/Tablet/Tablet.js.map +1 -1
  137. package/dist/containers/Tablet/components/TabletControls/TabletControls.js +1 -1
  138. package/dist/containers/Tablet/components/TabletControls/TabletControls.js.map +1 -1
  139. package/dist/containers/Tablet/i18n/en.json +6 -3
  140. package/dist/containers/Tablet/i18n/index.d.ts +1 -1
  141. package/dist/containers/Tablets/Tablets.js +1 -1
  142. package/dist/containers/Tablets/Tablets.js.map +1 -1
  143. package/dist/containers/Tablets/i18n/en.json +2 -1
  144. package/dist/containers/Tablets/i18n/index.d.ts +1 -1
  145. package/dist/containers/Tenant/Diagnostics/Configs/Configs.d.ts +6 -0
  146. package/dist/containers/Tenant/Diagnostics/Configs/Configs.js +79 -0
  147. package/dist/containers/Tenant/Diagnostics/Configs/Configs.js.map +1 -0
  148. package/dist/containers/Tenant/Diagnostics/Configs/Configs.scss +8 -0
  149. package/dist/containers/Tenant/Diagnostics/Configs/i18n/en.json +11 -0
  150. package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.d.ts +2 -0
  151. package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.js +5 -0
  152. package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.js.map +1 -0
  153. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +4 -0
  154. package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
  155. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +3 -0
  156. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +5 -0
  157. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
  158. package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/index.d.ts +1 -1
  159. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +22 -5
  160. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
  161. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.d.ts +2 -0
  162. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.js +7 -0
  163. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.js.map +1 -0
  164. package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js +1 -1
  165. package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js.map +1 -1
  166. package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js +8 -3
  167. package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js.map +1 -1
  168. package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.d.ts +7 -0
  169. package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.js +17 -0
  170. package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.js.map +1 -0
  171. package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.scss +9 -0
  172. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.d.ts +5 -9
  173. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +8 -6
  174. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
  175. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +0 -6
  176. package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.d.ts +5 -0
  177. package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js +28 -0
  178. package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js.map +1 -0
  179. package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +2 -2
  180. package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
  181. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.d.ts +4 -12
  182. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js +7 -5
  183. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js.map +1 -1
  184. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.scss +0 -6
  185. package/dist/containers/Tenant/Query/ExplainResult/i18n/en.json +1 -2
  186. package/dist/containers/Tenant/Query/ExplainResult/i18n/index.d.ts +1 -1
  187. package/dist/containers/Tenant/Query/Query.js +14 -2
  188. package/dist/containers/Tenant/Query/Query.js.map +1 -1
  189. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.d.ts +3 -2
  190. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +18 -36
  191. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
  192. package/dist/containers/Tenant/Query/i18n/en.json +1 -0
  193. package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
  194. package/dist/containers/Tenant/Query/utils/__test__/replaceParams.test.d.ts +1 -0
  195. package/dist/containers/Tenant/Query/utils/__test__/replaceParams.test.js +50 -0
  196. package/dist/containers/Tenant/Query/utils/__test__/replaceParams.test.js.map +1 -0
  197. package/dist/containers/Tenant/Query/utils/replaceParams.d.ts +1 -0
  198. package/dist/containers/Tenant/Query/utils/replaceParams.js +6 -0
  199. package/dist/containers/Tenant/Query/utils/replaceParams.js.map +1 -0
  200. package/dist/containers/Tenant/utils/queryTemplates.js +1 -1
  201. package/dist/containers/Tenant/utils/queryTemplates.js.map +1 -1
  202. package/dist/containers/UserSettings/i18n/en.json +2 -0
  203. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  204. package/dist/containers/UserSettings/settings.d.ts +1 -0
  205. package/dist/containers/UserSettings/settings.js +12 -2
  206. package/dist/containers/UserSettings/settings.js.map +1 -1
  207. package/dist/containers/VDiskPage/VDiskPage.d.ts +3 -4
  208. package/dist/containers/VDiskPage/VDiskPage.js +37 -17
  209. package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
  210. package/dist/containers/VDiskPage/i18n/en.json +2 -1
  211. package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
  212. package/dist/containers/VDiskPage/utils.d.ts +2 -0
  213. package/dist/containers/VDiskPage/utils.js +7 -0
  214. package/dist/containers/VDiskPage/utils.js.map +1 -0
  215. package/dist/lib.d.ts +1 -0
  216. package/dist/lib.js +1 -0
  217. package/dist/lib.js.map +1 -1
  218. package/dist/services/api.d.ts +27 -11
  219. package/dist/services/api.js +110 -21
  220. package/dist/services/api.js.map +1 -1
  221. package/dist/services/parsers/parseMetaCluster.d.ts +14 -0
  222. package/dist/services/parsers/parseMetaCluster.js +20 -1
  223. package/dist/services/parsers/parseMetaCluster.js.map +1 -1
  224. package/dist/services/settings.d.ts +1 -0
  225. package/dist/services/settings.js +2 -1
  226. package/dist/services/settings.js.map +1 -1
  227. package/dist/store/configureStore.d.ts +4 -4
  228. package/dist/store/defaultStore.d.ts +2 -2
  229. package/dist/store/getUrlData.js +9 -6
  230. package/dist/store/getUrlData.js.map +1 -1
  231. package/dist/store/reducers/api.d.ts +1 -1
  232. package/dist/store/reducers/api.js +1 -1
  233. package/dist/store/reducers/api.js.map +1 -1
  234. package/dist/store/reducers/authentication/authentication.d.ts +4 -4
  235. package/dist/store/reducers/cancelQuery.d.ts +2 -2
  236. package/dist/store/reducers/cancelQuery.js.map +1 -1
  237. package/dist/store/reducers/capabilities/capabilities.d.ts +6 -6
  238. package/dist/store/reducers/capabilities/hooks.d.ts +2 -0
  239. package/dist/store/reducers/capabilities/hooks.js +8 -1
  240. package/dist/store/reducers/capabilities/hooks.js.map +1 -1
  241. package/dist/store/reducers/cluster/cluster.d.ts +230 -2
  242. package/dist/store/reducers/cluster/cluster.js +36 -3
  243. package/dist/store/reducers/cluster/cluster.js.map +1 -1
  244. package/dist/store/reducers/cluster/utils.d.ts +1 -0
  245. package/dist/store/reducers/cluster/utils.js +7 -0
  246. package/dist/store/reducers/cluster/utils.js.map +1 -1
  247. package/dist/store/reducers/clusters/clusters.d.ts +2 -2
  248. package/dist/store/reducers/describe.d.ts +2 -2
  249. package/dist/store/reducers/executeQuery.d.ts +8 -4
  250. package/dist/store/reducers/executeQuery.js +36 -1
  251. package/dist/store/reducers/executeQuery.js.map +1 -1
  252. package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +2 -2
  253. package/dist/store/reducers/explainQuery/explainQuery.d.ts +2 -3
  254. package/dist/store/reducers/explainQuery/explainQuery.js +23 -2
  255. package/dist/store/reducers/explainQuery/explainQuery.js.map +1 -1
  256. package/dist/store/reducers/explainQuery/types.d.ts +1 -0
  257. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +58 -58
  258. package/dist/store/reducers/heatmap.d.ts +2 -2
  259. package/dist/store/reducers/hotKeys/hotKeys.d.ts +2 -2
  260. package/dist/store/reducers/index.d.ts +3 -3
  261. package/dist/store/reducers/network/network.d.ts +2 -2
  262. package/dist/store/reducers/node/node.d.ts +3 -3
  263. package/dist/store/reducers/node/selectors.d.ts +1 -1
  264. package/dist/store/reducers/nodes/nodes.d.ts +3 -3
  265. package/dist/store/reducers/nodes/nodes.js +1 -2
  266. package/dist/store/reducers/nodes/nodes.js.map +1 -1
  267. package/dist/store/reducers/nodesList.d.ts +3 -3
  268. package/dist/store/reducers/overview/overview.d.ts +2 -2
  269. package/dist/store/reducers/partitions/partitions.d.ts +2 -2
  270. package/dist/store/reducers/pdisk/pdisk.d.ts +2 -3
  271. package/dist/store/reducers/pdisk/pdisk.js +1 -21
  272. package/dist/store/reducers/pdisk/pdisk.js.map +1 -1
  273. package/dist/store/reducers/pdisk/utils.d.ts +0 -3
  274. package/dist/store/reducers/pdisk/utils.js +0 -22
  275. package/dist/store/reducers/pdisk/utils.js.map +1 -1
  276. package/dist/store/reducers/preview.d.ts +2 -2
  277. package/dist/store/reducers/schema/schema.d.ts +3 -3
  278. package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +2 -2
  279. package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +2 -2
  280. package/dist/store/reducers/storage/requestStorageData.d.ts +5 -0
  281. package/dist/store/reducers/storage/requestStorageData.js +12 -0
  282. package/dist/store/reducers/storage/requestStorageData.js.map +1 -0
  283. package/dist/store/reducers/storage/selectors.js +1 -1
  284. package/dist/store/reducers/storage/storage.d.ts +6 -4
  285. package/dist/store/reducers/storage/storage.js +6 -6
  286. package/dist/store/reducers/storage/storage.js.map +1 -1
  287. package/dist/store/reducers/storage/types.d.ts +11 -23
  288. package/dist/store/reducers/storage/utils.d.ts +3 -2
  289. package/dist/store/reducers/storage/utils.js +52 -26
  290. package/dist/store/reducers/storage/utils.js.map +1 -1
  291. package/dist/store/reducers/tableData.d.ts +1 -1
  292. package/dist/store/reducers/tablet.d.ts +7 -7
  293. package/dist/store/reducers/tablets.d.ts +13 -13
  294. package/dist/store/reducers/tenant/constants.d.ts +1 -0
  295. package/dist/store/reducers/tenant/constants.js +1 -0
  296. package/dist/store/reducers/tenant/constants.js.map +1 -1
  297. package/dist/store/reducers/tenant/tenant.d.ts +5 -2
  298. package/dist/store/reducers/tenant/tenant.js +12 -0
  299. package/dist/store/reducers/tenant/tenant.js.map +1 -1
  300. package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +2 -2
  301. package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +2 -2
  302. package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +2 -2
  303. package/dist/store/reducers/tenants/selectors.d.ts +27 -27
  304. package/dist/store/reducers/tenants/tenants.d.ts +2 -2
  305. package/dist/store/reducers/topic.d.ts +44 -44
  306. package/dist/store/reducers/trace.d.ts +7 -0
  307. package/dist/store/reducers/trace.js +18 -0
  308. package/dist/store/reducers/trace.js.map +1 -0
  309. package/dist/store/reducers/vdisk/utils.d.ts +0 -2
  310. package/dist/store/reducers/vdisk/utils.js +0 -10
  311. package/dist/store/reducers/vdisk/utils.js.map +1 -1
  312. package/dist/store/reducers/vdisk/vdisk.d.ts +8 -5
  313. package/dist/store/reducers/vdisk/vdisk.js +17 -32
  314. package/dist/store/reducers/vdisk/vdisk.js.map +1 -1
  315. package/dist/store/reducers/viewSchema/viewSchema.d.ts +2 -2
  316. package/dist/types/api/capabilities.d.ts +1 -1
  317. package/dist/types/api/cluster.d.ts +3 -0
  318. package/dist/types/api/compute.d.ts +1 -4
  319. package/dist/types/api/compute.js +1 -5
  320. package/dist/types/api/compute.js.map +1 -1
  321. package/dist/types/api/featureFlags.d.ts +13 -0
  322. package/dist/types/api/featureFlags.js +2 -0
  323. package/dist/types/api/featureFlags.js.map +1 -0
  324. package/dist/types/api/meta.d.ts +5 -1
  325. package/dist/types/api/modifyDisk.d.ts +1 -0
  326. package/dist/types/api/pdisk.d.ts +2 -2
  327. package/dist/types/api/query.d.ts +7 -1
  328. package/dist/types/api/storage.d.ts +132 -6
  329. package/dist/types/api/storage.js +1 -5
  330. package/dist/types/api/storage.js.map +1 -1
  331. package/dist/types/api/trace.d.ts +17 -0
  332. package/dist/types/api/trace.js +8 -0
  333. package/dist/types/api/trace.js.map +1 -0
  334. package/dist/types/api/vdisk.d.ts +1 -1
  335. package/dist/types/store/executeQuery.d.ts +25 -3
  336. package/dist/types/store/executeQuery.js +5 -1
  337. package/dist/types/store/executeQuery.js.map +1 -1
  338. package/dist/types/store/query.d.ts +1 -0
  339. package/dist/utils/constants.d.ts +1 -0
  340. package/dist/utils/constants.js +1 -0
  341. package/dist/utils/constants.js.map +1 -1
  342. package/dist/utils/disks/helpers.d.ts +5 -2
  343. package/dist/utils/disks/helpers.js +12 -2
  344. package/dist/utils/disks/helpers.js.map +1 -1
  345. package/dist/utils/disks/prepareDisks.js +10 -5
  346. package/dist/utils/disks/prepareDisks.js.map +1 -1
  347. package/dist/utils/hooks/useDelayed.d.ts +1 -1
  348. package/dist/utils/hooks/useDelayed.js +6 -1
  349. package/dist/utils/hooks/useDelayed.js.map +1 -1
  350. package/dist/utils/index.d.ts +1 -0
  351. package/dist/utils/index.js +5 -0
  352. package/dist/utils/index.js.map +1 -1
  353. package/dist/utils/monaco/yql/generateSuggestions.js +8 -3
  354. package/dist/utils/monaco/yql/generateSuggestions.js.map +1 -1
  355. package/dist/utils/query.js.map +1 -1
  356. package/dist/utils/storage.d.ts +2 -21
  357. package/dist/utils/storage.js +14 -19
  358. package/dist/utils/storage.js.map +1 -1
  359. package/package.json +1 -6
  360. package/dist/components/CriticalActionDialog/index.d.ts +0 -1
  361. package/dist/components/CriticalActionDialog/index.js +0 -2
  362. package/dist/components/CriticalActionDialog/index.js.map +0 -1
  363. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.d.ts +0 -9
  364. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js +0 -9
  365. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js.map +0 -1
  366. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.scss +0 -3
  367. package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.d.ts +0 -62
  368. package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.js.map +0 -1
  369. package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +0 -4
  370. package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.js +0 -29
  371. package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.js.map +0 -1
  372. package/dist/store/reducers/tenantOverview/topStorageGroups/types.d.ts +0 -4
  373. package/dist/store/reducers/tenantOverview/topStorageGroups/types.js.map +0 -1
  374. package/dist/store/reducers/tenantOverview/topStorageGroups/utils.d.ts +0 -3
  375. package/dist/store/reducers/tenantOverview/topStorageGroups/utils.js +0 -13
  376. package/dist/store/reducers/tenantOverview/topStorageGroups/utils.js.map +0 -1
  377. /package/dist/{store/reducers/tenantOverview/topStorageGroups → containers/Storage/StorageGroups/columns}/types.js +0 -0
@@ -3,23 +3,18 @@ export const getUsage = (data, step = 1) => {
3
3
  const usage = data.Limit ? (data.Used * 100) / data.Limit : 0;
4
4
  return Math.floor(usage / step) * step;
5
5
  };
6
- /**
7
- * Values to sort /storage v2 response
8
- *
9
- * Source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/viewer/json_storage.h
10
- */
11
- export const STORAGE_SORT_VALUES = {
12
- PoolName: 'PoolName',
13
- Kind: 'Kind',
14
- MediaType: 'MediaType',
15
- Erasure: 'Erasure',
16
- Degraded: 'Degraded',
17
- Usage: 'Usage',
18
- GroupId: 'GroupId',
19
- Used: 'Used',
20
- Limit: 'Limit',
21
- Read: 'Read',
22
- Write: 'Write',
23
- };
24
- export const isSortableStorageProperty = (value) => Object.values(STORAGE_SORT_VALUES).includes(value);
6
+ const STORAGE_SORT_VALUES = [
7
+ 'PoolName',
8
+ 'Kind',
9
+ 'MediaType',
10
+ 'Erasure',
11
+ 'Degraded',
12
+ 'Usage',
13
+ 'GroupId',
14
+ 'Used',
15
+ 'Limit',
16
+ 'Read',
17
+ 'Write',
18
+ ];
19
+ export const isSortableStorageProperty = (value) => STORAGE_SORT_VALUES.includes(value);
25
20
  //# sourceMappingURL=storage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"storage.js","sourceRoot":"","sources":["../../src/utils/storage.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,QAAQ,GAAG,CAA4B,IAAO,EAAE,IAAI,GAAG,CAAC,EAAE,EAAE;IACrE,2BAA2B;IAC3B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAE9D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;AAC3C,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACR,CAAC;AAIX,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,KAAa,EAA6B,EAAE,CAClF,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC,QAAQ,CAAC,KAAyB,CAAC,CAAC"}
1
+ {"version":3,"file":"storage.js","sourceRoot":"","sources":["../../src/utils/storage.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,QAAQ,GAAG,CAA4B,IAAO,EAAE,IAAI,GAAG,CAAC,EAAE,EAAE;IACrE,2BAA2B;IAC3B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAE9D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;AAC3C,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAyB;IAC9C,UAAU;IACV,MAAM;IACN,WAAW;IACX,SAAS;IACT,UAAU;IACV,OAAO;IACP,SAAS;IACT,MAAM;IACN,OAAO;IACP,MAAM;IACN,OAAO;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,KAAa,EAA+B,EAAE,CACpF,mBAAmB,CAAC,QAAQ,CAAC,KAA2B,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-embedded-ui",
3
- "version": "6.17.2",
3
+ "version": "6.19.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -38,20 +38,16 @@
38
38
  "path-to-regexp": "^3.0.0",
39
39
  "qs": "^6.12.0",
40
40
  "react-error-boundary": "^4.0.13",
41
- "react-freeze": "^1.0.4",
42
41
  "react-helmet-async": "^2.0.5",
43
42
  "react-hook-form": "^7.52.1",
44
43
  "react-json-inspector": "^7.1.1",
45
- "react-list": "^0.8.17",
46
44
  "react-monaco-editor": "^0.55.0",
47
45
  "react-redux": "^9.1.2",
48
- "react-router": "^5.3.4",
49
46
  "react-router-dom": "^5.3.4",
50
47
  "react-split": "^2.0.14",
51
48
  "redux": "^5.0.1",
52
49
  "redux-location-state": "^2.8.2",
53
50
  "tslib": "^2.6.3",
54
- "url": "^0.11.3",
55
51
  "use-query-params": "^2.2.1",
56
52
  "uuid": "^10.0.0",
57
53
  "web-vitals": "^1.1.2",
@@ -144,7 +140,6 @@
144
140
  "@types/qs": "^6.9.15",
145
141
  "@types/react": "^18.3.3",
146
142
  "@types/react-dom": "^18.3.0",
147
- "@types/react-router": "^5.1.20",
148
143
  "@types/react-router-dom": "^5.3.3",
149
144
  "@types/uuid": "^10.0.0",
150
145
  "copyfiles": "^2.4.1",
@@ -1 +0,0 @@
1
- export * from './CriticalActionDialog';
@@ -1,2 +0,0 @@
1
- export * from './CriticalActionDialog';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CriticalActionDialog/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import './NotRenderUntilFirstVisible.scss';
3
- interface Props {
4
- show?: boolean;
5
- className?: string;
6
- children: React.ReactNode;
7
- }
8
- export default function NotRenderUntilFirstVisible({ show, className, children }: Props): import("react/jsx-runtime").JSX.Element;
9
- export {};
@@ -1,9 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Freeze } from 'react-freeze';
3
- import { cn } from '../../utils/cn';
4
- import './NotRenderUntilFirstVisible.scss';
5
- const block = cn('ydb-not-render-until-first-visible');
6
- export default function NotRenderUntilFirstVisible({ show, className, children }) {
7
- return (_jsx("div", { style: show ? undefined : { display: 'none' }, className: block(null, className), children: _jsx(Freeze, { freeze: !show, children: children }) }));
8
- }
9
- //# sourceMappingURL=NotRenderUntilFirstVisible.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NotRenderUntilFirstVisible.js","sourceRoot":"","sources":["../../../src/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,MAAM,EAAC,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,OAAO,mCAAmC,CAAC;AAE3C,MAAM,KAAK,GAAG,EAAE,CAAC,oCAAoC,CAAC,CAAC;AAQvD,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAAC,EAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAQ;IACjF,OAAO,CACH,cAAK,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAC,OAAO,EAAE,MAAM,EAAC,EAAE,SAAS,EAAE,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,YAC/E,KAAC,MAAM,IAAC,MAAM,EAAE,CAAC,IAAI,YAAG,QAAQ,GAAU,GACxC,CACT,CAAC;AACN,CAAC"}
@@ -1,3 +0,0 @@
1
- .ydb-not-render-until-first-visible {
2
- display: contents;
3
- }
@@ -1,62 +0,0 @@
1
- import React from 'react';
2
- import type { Column as DataTableColumn } from '@gravity-ui/react-data-table';
3
- import type { Column as PaginatedTableColumn } from '../../../components/PaginatedTable';
4
- import type { PreparedStorageGroup, VisibleEntities } from '../../../store/reducers/storage/types';
5
- import type { NodesMap } from '../../../types/store/nodesList';
6
- import './StorageGroups.scss';
7
- export declare const STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY = "storageGroupsColumnsWidth";
8
- type StorageGroupsColumn = PaginatedTableColumn<PreparedStorageGroup> & DataTableColumn<PreparedStorageGroup>;
9
- export declare const GROUPS_COLUMNS_IDS: {
10
- readonly PoolName: "PoolName";
11
- readonly MediaType: "MediaType";
12
- readonly Erasure: "Erasure";
13
- readonly GroupId: "GroupId";
14
- readonly Used: "Used";
15
- readonly Limit: "Limit";
16
- readonly Usage: "Usage";
17
- readonly UsedSpaceFlag: "UsedSpaceFlag";
18
- readonly Read: "Read";
19
- readonly Write: "Write";
20
- readonly VDisks: "VDisks";
21
- readonly Degraded: "Degraded";
22
- };
23
- export declare const getStorageTopGroupsColumns: () => StorageGroupsColumn[];
24
- export declare const getDiskPageStorageColumns: (nodes?: NodesMap) => StorageGroupsColumn[];
25
- export declare const getPreparedStorageGroupsColumns: (nodesMap: NodesMap | undefined, visibleEntities: VisibleEntities) => {
26
- sortable: boolean;
27
- name: string;
28
- header?: React.ReactNode;
29
- className?: string;
30
- resizeable?: boolean;
31
- render: ((props: {
32
- row: PreparedStorageGroup;
33
- index: number;
34
- }) => React.ReactNode) & ((props: {
35
- value?: unknown;
36
- row: PreparedStorageGroup;
37
- index: number;
38
- footer?: boolean;
39
- headerData?: boolean;
40
- }) => React.ReactNode);
41
- width: number;
42
- resizeMaxWidth?: number;
43
- resizeMinWidth?: number;
44
- align: "center" | "left" | "right";
45
- headerTitle?: string;
46
- accessor?: string | ((row: PreparedStorageGroup) => any) | undefined;
47
- title?: string | ((row: PreparedStorageGroup) => string) | undefined;
48
- customStyle?: ((props: import("@gravity-ui/react-data-table").CustomStyleParams<PreparedStorageGroup>) => React.CSSProperties) | undefined;
49
- onClick?: ((data: {
50
- row: PreparedStorageGroup;
51
- index: number;
52
- footer?: boolean;
53
- headerData?: boolean;
54
- }, column: DataTableColumn<PreparedStorageGroup>, event: React.MouseEvent<HTMLTableCellElement>) => void) | undefined;
55
- defaultOrder?: import("@gravity-ui/react-data-table").OrderType;
56
- sortAccessor?: string | ((row: PreparedStorageGroup) => any) | undefined;
57
- sortAscending?: import("@gravity-ui/react-data-table").Comparator<PreparedStorageGroup> | undefined;
58
- sub?: DataTableColumn<PreparedStorageGroup>[] | undefined;
59
- group?: boolean;
60
- autogroup?: boolean;
61
- }[];
62
- export {};
@@ -1 +0,0 @@
1
- {"version":3,"file":"getStorageGroupsColumns.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageGroups/getStorageGroupsColumns.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAErD,OAAO,EAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAExE,OAAO,EA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C;KACnD,CAAC,CAAC,CAAC;AACR,CAAC,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { StorageApiRequestParams } from '../../storage/types';
2
- export declare const topStorageGroupsApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../api")._NEVER, unknown, {}>, {
3
- getTopStorageGroups: import("@reduxjs/toolkit/query").QueryDefinition<StorageApiRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", import("../../storage/types").PreparedStorageGroup[] | undefined, "api">;
4
- }, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
@@ -1,29 +0,0 @@
1
- import { EVersion } from '../../../../types/api/storage';
2
- import { TENANT_OVERVIEW_TABLES_LIMIT } from '../../../../utils/constants';
3
- import { api } from '../../api';
4
- import { prepareTopStorageGroupsResponse } from './utils';
5
- export const topStorageGroupsApi = api.injectEndpoints({
6
- endpoints: (builder) => ({
7
- getTopStorageGroups: builder.query({
8
- queryFn: async (params, { signal }) => {
9
- try {
10
- const data = await window.api.getStorageInfo({
11
- visibleEntities: 'all',
12
- sortOrder: -1,
13
- sortValue: 'Usage',
14
- limit: TENANT_OVERVIEW_TABLES_LIMIT,
15
- version: EVersion.v2,
16
- ...params,
17
- }, { signal });
18
- return { data: prepareTopStorageGroupsResponse(data).groups || [] };
19
- }
20
- catch (error) {
21
- return { error };
22
- }
23
- },
24
- providesTags: ['All'],
25
- }),
26
- }),
27
- overrideExisting: 'throw',
28
- });
29
- //# sourceMappingURL=topStorageGroups.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"topStorageGroups.js","sourceRoot":"","sources":["../../../../../src/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAC,4BAA4B,EAAC,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAC,GAAG,EAAC,MAAM,WAAW,CAAC;AAG9B,OAAO,EAAC,+BAA+B,EAAC,MAAM,SAAS,CAAC;AAExD,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAC,eAAe,CAAC;IACnD,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QACrB,mBAAmB,EAAE,OAAO,CAAC,KAAK,CAAC;YAC/B,OAAO,EAAE,KAAK,EAAE,MAA+B,EAAE,EAAC,MAAM,EAAC,EAAE,EAAE;gBACzD,IAAI,CAAC;oBACD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,cAAc,CACxC;wBACI,eAAe,EAAE,KAAK;wBACtB,SAAS,EAAE,CAAC,CAAC;wBACb,SAAS,EAAE,OAAO;wBAClB,KAAK,EAAE,4BAA4B;wBACnC,OAAO,EAAE,QAAQ,CAAC,EAAE;wBACpB,GAAG,MAAM;qBACZ,EACD,EAAC,MAAM,EAAC,CACX,CAAC;oBACF,OAAO,EAAC,IAAI,EAAE,+BAA+B,CAAC,IAAI,CAAC,CAAC,MAAM,IAAI,EAAE,EAAC,CAAC;gBACtE,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;YACD,YAAY,EAAE,CAAC,KAAK,CAAC;SACxB,CAAC;KACL,CAAC;IACF,gBAAgB,EAAE,OAAO;CAC5B,CAAC,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { PreparedStorageGroup } from '../../storage/types';
2
- export interface PreparedTopStorageGroupsResponse {
3
- groups?: PreparedStorageGroup[];
4
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/store/reducers/tenantOverview/topStorageGroups/types.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import type { TStorageInfo } from '../../../../types/api/storage';
2
- import type { PreparedTopStorageGroupsResponse } from './types';
3
- export declare const prepareTopStorageGroupsResponse: (data: TStorageInfo) => PreparedTopStorageGroupsResponse;
@@ -1,13 +0,0 @@
1
- import { TENANT_OVERVIEW_TABLES_LIMIT } from '../../../../utils/constants';
2
- import { prepareStorageGroups } from '../../storage/utils';
3
- export const prepareTopStorageGroupsResponse = (data) => {
4
- const { StoragePools, StorageGroups } = data;
5
- const preparedGroups = prepareStorageGroups(StorageGroups, StoragePools);
6
- if (StoragePools) {
7
- preparedGroups.sort((a, b) => b.Usage - a.Usage);
8
- }
9
- return {
10
- groups: preparedGroups.slice(0, TENANT_OVERVIEW_TABLES_LIMIT),
11
- };
12
- };
13
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/store/reducers/tenantOverview/topStorageGroups/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,4BAA4B,EAAC,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAC,oBAAoB,EAAC,MAAM,qBAAqB,CAAC;AAIzD,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAC3C,IAAkB,EACc,EAAE;IAClC,MAAM,EAAC,YAAY,EAAE,aAAa,EAAC,GAAG,IAAI,CAAC;IAE3C,MAAM,cAAc,GAAG,oBAAoB,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC;IAEzE,IAAI,YAAY,EAAE,CAAC;QACf,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;IACrD,CAAC;IAED,OAAO;QACH,MAAM,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC,EAAE,4BAA4B,CAAC;KAChE,CAAC;AACN,CAAC,CAAC"}