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
@@ -25,15 +25,10 @@
25
25
  }
26
26
  }
27
27
 
28
- &__colgroup {
29
- display: table;
30
- }
31
-
32
- &__table-chunk {
33
- display: block;
34
- }
35
-
36
28
  &__row {
29
+ position: relative;
30
+ z-index: 1;
31
+
37
32
  &:hover {
38
33
  background: var(--paginated-table-hover-color);
39
34
  }
@@ -46,12 +41,8 @@
46
41
  }
47
42
 
48
43
  &__head {
49
- z-index: 1;
44
+ z-index: 2;
50
45
  @include sticky-top();
51
-
52
- &-row {
53
- display: table;
54
- }
55
46
  }
56
47
 
57
48
  &__sort-icon-container {
@@ -74,7 +65,7 @@
74
65
  &__head-cell-wrapper {
75
66
  position: relative;
76
67
 
77
- display: flex;
68
+ display: table-cell;
78
69
  overflow-x: hidden;
79
70
 
80
71
  border-bottom: $cell-border;
@@ -177,4 +168,15 @@
177
168
  &__head-cell-wrapper:hover > &__resize-handler {
178
169
  visibility: visible;
179
170
  }
171
+
172
+ &__resizeable-table-container {
173
+ width: max-content;
174
+
175
+ // padding for easier resize of the last column
176
+ padding-right: 20px;
177
+ }
178
+
179
+ &__row-skeleton::after {
180
+ animation-delay: 200ms;
181
+ }
180
182
  }
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useTableResize } from '../../utils/hooks/useTableResize';
3
3
  import { PaginatedTable } from './PaginatedTable';
4
+ import { b } from './shared';
4
5
  function updateColumnsWidth(columns, columnsWidthSetup) {
5
6
  return columns.map((column) => {
6
7
  var _a;
@@ -10,6 +11,6 @@ function updateColumnsWidth(columns, columnsWidthSetup) {
10
11
  export function ResizeablePaginatedTable({ columnsWidthLSKey, columns, ...props }) {
11
12
  const [tableColumnsWidth, setTableColumnsWidth] = useTableResize(columnsWidthLSKey);
12
13
  const updatedColumns = updateColumnsWidth(columns, tableColumnsWidth);
13
- return (_jsx(PaginatedTable, { columns: updatedColumns, onColumnsResize: setTableColumnsWidth, ...props }));
14
+ return (_jsx(PaginatedTable, { columns: updatedColumns, onColumnsResize: setTableColumnsWidth, containerClassName: b('resizeable-table-container'), ...props }));
14
15
  }
15
16
  //# sourceMappingURL=ResizeablePaginatedTable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ResizeablePaginatedTable.js","sourceRoot":"","sources":["../../../src/components/PaginatedTable/ResizeablePaginatedTable.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,cAAc,EAAC,MAAM,kCAAkC,CAAC;AAGhE,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAGhD,SAAS,kBAAkB,CAAI,OAAoB,EAAE,iBAAoC;IACrF,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;;QAC1B,OAAO,EAAC,GAAG,MAAM,EAAE,KAAK,EAAE,MAAA,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,mCAAI,MAAM,CAAC,KAAK,EAAC,CAAC;IAC9E,CAAC,CAAC,CAAC;AACP,CAAC;AAOD,MAAM,UAAU,wBAAwB,CAAO,EAC3C,iBAAiB,EACjB,OAAO,EACP,GAAG,KAAK,EAC0B;IAClC,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,cAAc,CAAC,iBAAiB,CAAC,CAAC;IAEpF,MAAM,cAAc,GAAG,kBAAkB,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;IAEtE,OAAO,CACH,KAAC,cAAc,IACX,OAAO,EAAE,cAAc,EACvB,eAAe,EAAE,oBAAoB,KACjC,KAAK,GACX,CACL,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"ResizeablePaginatedTable.js","sourceRoot":"","sources":["../../../src/components/PaginatedTable/ResizeablePaginatedTable.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,cAAc,EAAC,MAAM,kCAAkC,CAAC;AAGhE,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAC,CAAC,EAAC,MAAM,UAAU,CAAC;AAG3B,SAAS,kBAAkB,CAAI,OAAoB,EAAE,iBAAoC;IACrF,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;;QAC1B,OAAO,EAAC,GAAG,MAAM,EAAE,KAAK,EAAE,MAAA,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,mCAAI,MAAM,CAAC,KAAK,EAAC,CAAC;IAC9E,CAAC,CAAC,CAAC;AACP,CAAC;AAOD,MAAM,UAAU,wBAAwB,CAAO,EAC3C,iBAAiB,EACjB,OAAO,EACP,GAAG,KAAK,EAC0B;IAClC,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,cAAc,CAAC,iBAAiB,CAAC,CAAC;IAEpF,MAAM,cAAc,GAAG,kBAAkB,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;IAEtE,OAAO,CACH,KAAC,cAAc,IACX,OAAO,EAAE,cAAc,EACvB,eAAe,EAAE,oBAAoB,EACrC,kBAAkB,EAAE,CAAC,CAAC,4BAA4B,CAAC,KAC/C,KAAK,GACX,CACL,CAAC;AACN,CAAC"}
@@ -5,9 +5,11 @@ import { getArray } from '../../utils';
5
5
  import { useAutoRefreshInterval } from '../../utils/hooks';
6
6
  import { ResponseError } from '../Errors/ResponseError';
7
7
  import { EmptyTableRow, LoadingTableRow, TableRow } from './TableRow';
8
- import { b } from './shared';
9
8
  const DEBOUNCE_TIMEOUT = 200;
10
- export const TableChunk = ({ id, limit, rowHeight, columns, fetchData, tableName, filters, sortParams, observer, getRowClassName, renderErrorMessage, onDataFetched, isActive, }) => {
9
+ // With original memo generic types are lost
10
+ const typedMemo = React.memo;
11
+ // Memoisation prevents chunks rerenders that could cause perfomance issues on big tables
12
+ export const TableChunk = typedMemo(function TableChunk({ id, limit, rowHeight, columns, fetchData, tableName, filters, sortParams, observer, getRowClassName, renderErrorMessage, onDataFetched, isActive, }) {
11
13
  var _a;
12
14
  const ref = React.useRef(null);
13
15
  const [isTimeoutActive, setIsTimeoutActive] = React.useState(true);
@@ -70,6 +72,12 @@ export const TableChunk = ({ id, limit, rowHeight, columns, fetchData, tableName
70
72
  return currentData.data.map((rowData, index) => (_jsx(TableRow, { index: index, row: rowData, columns: columns, height: rowHeight, getRowClassName: getRowClassName }, index)));
71
73
  };
72
74
  const chunkHeight = dataLength ? dataLength * rowHeight : limit * rowHeight;
73
- return (_jsx("tbody", { className: b('table-chunk'), ref: ref, id: id.toString(), style: { height: `${chunkHeight}px` }, children: renderContent() }));
74
- };
75
+ return (_jsx("tbody", { ref: ref, id: id.toString(), style: {
76
+ height: `${chunkHeight}px`,
77
+ // Default display: table-row-group doesn't work in Safari and breaks the table
78
+ // display: block works in Safari, but disconnects thead and tbody cell grids
79
+ // Hack to make it work in all cases
80
+ display: isActive ? 'table-row-group' : 'block',
81
+ }, children: renderContent() }));
82
+ });
75
83
  //# sourceMappingURL=TableChunk.js.map
@@ -1 +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AU,CAAC,CAAC,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC,CAAC,KAAK,GAAG,SAAS,CAAC;IAE5E,OAAO,CACH,gBACI,GAAG,EAAE,GAAG,EACR,EAAE,EAAE,EAAE,CAAC,QAAQ,EAAE,EACjB,KAAK,EAAE;YACH,MAAM,EAAE,GAAG,WAAW,IAAI;YAC1B,+EAA+E;YAC/E,6EAA6E;YAC7E,oCAAoC;YACpC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,OAAO;SAClD,YAEA,aAAa,EAAE,GACZ,CACX,CAAC;AACN,CAAC,CAAC,CAAC"}
@@ -37,14 +37,18 @@ export const TableHeadCell = ({ column, resizeable, sortOrder, defaultSortOrder,
37
37
  onColumnsResize === null || onColumnsResize === void 0 ? void 0 : onColumnsResize(column.name, newWidth);
38
38
  }, [onColumnsResize, column.name]);
39
39
  const content = (_a = column.header) !== null && _a !== void 0 ? _a : column.name;
40
- return (_jsx("th", { children: _jsxs("div", { ref: cellWrapperRef, className: b('head-cell-wrapper'), style: {
41
- height: `${rowHeight}px`,
42
- width: `${column.width}px`,
43
- }, children: [_jsxs("div", { className: b('head-cell', { align: column.align, sortable: column.sortable }, column.className), onClick: () => {
44
- if (column.sortable) {
45
- onSort === null || onSort === void 0 ? void 0 : onSort(column.name);
46
- }
47
- }, children: [_jsx("div", { className: b('head-cell-content'), children: content }), _jsx(ColumnSortIcon, { sortOrder: sortOrder, sortable: column.sortable, defaultSortOrder: defaultSortOrder })] }), resizeable ? (_jsx(ResizeHandler, { maxWidth: column.resizeMaxWidth, minWidth: column.resizeMinWidth, getCurrentColumnWidth: getCurrentColumnWidth, onResize: handleResize })) : null] }) }));
40
+ const style = {
41
+ height: `${rowHeight}px`,
42
+ width: `${column.width}px`,
43
+ // Additional minWidth and maxWidth for resizeable columns to ensure proper resize
44
+ minWidth: resizeable ? `${column.width}px` : undefined,
45
+ maxWidth: resizeable ? `${column.width}px` : undefined,
46
+ };
47
+ return (_jsxs("th", { ref: cellWrapperRef, className: b('head-cell-wrapper'), style: style, children: [_jsxs("div", { className: b('head-cell', { align: column.align, sortable: column.sortable }, column.className), onClick: () => {
48
+ if (column.sortable) {
49
+ onSort === null || onSort === void 0 ? void 0 : onSort(column.name);
50
+ }
51
+ }, children: [_jsx("div", { className: b('head-cell-content'), children: content }), _jsx(ColumnSortIcon, { sortOrder: sortOrder, sortable: column.sortable, defaultSortOrder: defaultSortOrder })] }), resizeable ? (_jsx(ResizeHandler, { maxWidth: column.resizeMaxWidth, minWidth: column.resizeMinWidth, getCurrentColumnWidth: getCurrentColumnWidth, onResize: handleResize })) : null] }));
48
52
  };
49
53
  export const TableHead = ({ columns, onSort, onColumnsResize, defaultSortOrder = DEFAULT_SORT_ORDER, rowHeight = DEFAULT_TABLE_ROW_HEIGHT, }) => {
50
54
  const [sortParams, setSortParams] = React.useState({});
@@ -76,12 +80,12 @@ export const TableHead = ({ columns, onSort, onColumnsResize, defaultSortOrder =
76
80
  setSortParams(newSortParams);
77
81
  };
78
82
  const renderTableColGroups = () => {
79
- return (_jsx("colgroup", { className: b('colgroup'), children: columns.map((column) => {
83
+ return (_jsx("colgroup", { children: columns.map((column) => {
80
84
  return _jsx("col", { style: { width: `${column.width}px` } }, column.name);
81
85
  }) }));
82
86
  };
83
87
  const renderTableHead = () => {
84
- return (_jsx("thead", { className: b('head'), children: _jsx("tr", { className: b('head-row'), children: columns.map((column) => {
88
+ return (_jsx("thead", { className: b('head'), children: _jsx("tr", { children: columns.map((column) => {
85
89
  var _a;
86
90
  const sortOrder = sortParams.columnId === column.name ? sortParams.sortOrder : undefined;
87
91
  const resizeable = onColumnsResize && ((_a = column.resizeable) !== null && _a !== void 0 ? _a : DEFAULT_RESIZEABLE);
@@ -1 +1 @@
1
- {"version":3,"file":"TableHead.js","sourceRoot":"","sources":["../../../src/components/PaginatedTable/TableHead.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA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,SAAS,EAAE,SAAS,EACpB,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,UAAU,EAClB,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,eAAe,IAP3B,MAAM,CAAC,IAAI,CAQlB,CACL,CAAC;gBACN,CAAC,CAAC,GACD,GACD,CACX,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,MAAC,KAAK,CAAC,QAAQ,eACV,oBAAoB,EAAE,EACtB,eAAe,EAAE,IACL,CACpB,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"TableHead.js","sourceRoot":"","sources":["../../../src/components/PaginatedTable/TableHead.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EACH,SAAS,EACT,kBAAkB,EAClB,kBAAkB,EAClB,wBAAwB,EACxB,UAAU,GACb,MAAM,aAAa,CAAC;AACrB,OAAO,EAAC,CAAC,EAAC,MAAM,UAAU,CAAC;AAG3B,kGAAkG;AAClG,MAAM,QAAQ,GAAG,CAAC,EAAC,KAAK,EAA0B,EAAE,EAAE;IAClD,OAAO,CACH,cACI,SAAS,EAAE,CAAC,CAAC,WAAW,EAAE,EAAC,IAAI,EAAE,KAAK,KAAK,UAAU,EAAC,CAAC,EACvD,OAAO,EAAC,UAAU,EAClB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,GAAG,YAEV,eAAM,IAAI,EAAC,cAAc,EAAC,CAAC,EAAC,gBAAgB,GAAG,GAC7C,CACT,CAAC;AACN,CAAC,CAAC;AAQF,MAAM,cAAc,GAAG,CAAC,EAAC,SAAS,EAAE,QAAQ,EAAE,gBAAgB,EAAsB,EAAE,EAAE;IACpF,IAAI,QAAQ,EAAE,CAAC;QACX,OAAO,CACH,eAAM,SAAS,EAAE,CAAC,CAAC,qBAAqB,EAAE,EAAC,MAAM,EAAE,CAAC,SAAS,EAAC,CAAC,Y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K,EAAE,GAAG,MAAM,CAAC,KAAK,IAAI,EAAC,IAAhD,MAAM,CAAC,IAAI,CAAyC,CAAC;YAC1E,CAAC,CAAC,GACK,CACd,CAAC;IACN,CAAC,CAAC;IAEF,MAAM,eAAe,GAAG,GAAG,EAAE;QACzB,OAAO,CACH,gBAAO,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,YACvB,uBACK,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;;oBACpB,MAAM,SAAS,GACX,UAAU,CAAC,QAAQ,KAAK,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;oBAE3E,MAAM,UAAU,GACZ,eAAe,IAAI,CAAC,MAAA,MAAM,CAAC,UAAU,mCAAI,kBAAkB,CAAC,CAAC;oBAEjE,OAAO,CACH,KAAC,aAAa,IAEV,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,EACpB,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,UAAU,EAClB,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,eAAe,IAP3B,MAAM,CAAC,IAAI,CAQlB,CACL,CAAC;gBACN,CAAC,CAAC,GACD,GACD,CACX,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,MAAC,KAAK,CAAC,QAAQ,eACV,oBAAoB,EAAE,EACtB,eAAe,EAAE,IACL,CACpB,CAAC;AACN,CAAC,CAAC"}
@@ -1,20 +1,28 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Skeleton } from '@gravity-ui/uikit';
3
- import { DEFAULT_ALIGN } from './constants';
3
+ import { DEFAULT_ALIGN, DEFAULT_RESIZEABLE } from './constants';
4
4
  import { b } from './shared';
5
- const TableRowCell = ({ children, className, height, width, align = DEFAULT_ALIGN, }) => {
6
- // Additional maxWidth to ensure overflow hidden for <td>
7
- return (_jsx("td", { className: b('row-cell', { align: align }, className), style: { height: `${height}px`, width: `${width}px`, maxWidth: `${width}px` }, children: children }));
5
+ const TableRowCell = ({ children, className, height, width, align = DEFAULT_ALIGN, resizeable, }) => {
6
+ return (_jsx("td", { className: b('row-cell', { align: align }, className), style: {
7
+ height: `${height}px`,
8
+ width: `${width}px`,
9
+ // Additional maxWidth for resizeable columns to ensure overflow hidden for <td>
10
+ maxWidth: resizeable ? `${width}px` : undefined,
11
+ }, children: children }));
8
12
  };
9
13
  export const LoadingTableRow = ({ index, columns, height }) => {
10
14
  return (_jsx("tr", { className: b('row', { loading: true }), children: columns.map((column) => {
11
- return (_jsx(TableRowCell, { height: height, width: column.width, align: column.align, className: column.className, children: _jsx(Skeleton, { style: { width: '80%', height: '50%' } }) }, `${column.name}${index}`));
15
+ var _a;
16
+ const resizeable = (_a = column.resizeable) !== null && _a !== void 0 ? _a : DEFAULT_RESIZEABLE;
17
+ return (_jsx(TableRowCell, { height: height, width: column.width, align: column.align, className: column.className, resizeable: resizeable, children: _jsx(Skeleton, { className: b('row-skeleton'), style: { width: '80%', height: '50%' } }) }, `${column.name}${index}`));
12
18
  }) }));
13
19
  };
14
20
  export const TableRow = ({ row, index, columns, getRowClassName, height }) => {
15
21
  const additionalClassName = getRowClassName === null || getRowClassName === void 0 ? void 0 : getRowClassName(row);
16
22
  return (_jsx("tr", { className: b('row', additionalClassName), children: columns.map((column) => {
17
- return (_jsx(TableRowCell, { height: height, width: column.width, align: column.align, className: column.className, children: column.render({ row, index }) }, `${column.name}${index}`));
23
+ var _a;
24
+ const resizeable = (_a = column.resizeable) !== null && _a !== void 0 ? _a : DEFAULT_RESIZEABLE;
25
+ return (_jsx(TableRowCell, { height: height, width: column.width, align: column.align, className: column.className, resizeable: resizeable, children: column.render({ row, index }) }, `${column.name}${index}`));
18
26
  }) }));
19
27
  };
20
28
  export const EmptyTableRow = ({ columns, children }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"TableRow.js","sourceRoot":"","sources":["../../../src/components/Paginat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C,CAAC;AAUF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAK,EAAC,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,EAAmB,EAAE,EAAE;IAC7F,MAAM,mBAAmB,GAAG,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAG,GAAG,CAAC,CAAC;IAEnD,OAAO,CACH,aAAI,SAAS,EAAE,CAAC,CAAC,KAAK,EAAE,mBAAmB,CAAC,YACvC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;;YACpB,MAAM,UAAU,GAAG,MAAA,MAAM,CAAC,UAAU,mCAAI,kBAAkB,CAAC;YAE3D,OAAO,CACH,KAAC,YAAY,IAET,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,SAAS,EAAE,MAAM,CAAC,SAAS,EAC3B,UAAU,EAAE,UAAU,YAErB,MAAM,CAAC,MAAM,CAAC,EAAC,GAAG,EAAE,KAAK,EAAC,CAAC,IAPvB,GAAG,MAAM,CAAC,IAAI,GAAG,KAAK,EAAE,CAQlB,CAClB,CAAC;QACN,CAAC,CAAC,GACD,CACR,CAAC;AACN,CAAC,CAAC;AAOF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAK,EAAC,OAAO,EAAE,QAAQ,EAAwB,EAAE,EAAE;IAC5E,OAAO,CACH,aAAI,SAAS,EAAE,CAAC,CAAC,KAAK,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,YAClC,aAAI,OAAO,EAAE,OAAO,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,YAC1C,QAAQ,GACR,GACJ,CACR,CAAC;AACN,CAAC,CAAC"}
@@ -28,7 +28,7 @@ export interface Column<T> {
28
28
  row: T;
29
29
  index: number;
30
30
  }) => React.ReactNode;
31
- width: number;
31
+ width?: number;
32
32
  resizeMaxWidth?: number;
33
33
  resizeMinWidth?: number;
34
34
  align: AlignType;
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Skeleton as KitSkeleton } from '@gravity-ui/uikit';
3
3
  import { useDelayed } from '../../utils/hooks/useDelayed';
4
4
  export const Skeleton = ({ delay = 600, className }) => {
5
- const show = useDelayed(delay);
5
+ const [show] = useDelayed(delay);
6
6
  if (!show) {
7
7
  return null;
8
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,QAAQ,IAAI,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAE1D,OAAO,EAAC,UAAU,EAAC,MAAM,8BAA8B,CAAC;AAOxD,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAC,KAAK,GAAG,GAAG,EAAE,SAAS,EAAgB,EAAE,EAAE;IAChE,MAAM,IAAI,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;IAC/B,IAAI,CAAC,IAAI,EAAE,CAAC;QACR,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO,KAAC,WAAW,IAAC,SAAS,EAAE,SAAS,GAAI,CAAC;AACjD,CAAC,CAAC"}
1
+ {"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,QAAQ,IAAI,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAE1D,OAAO,EAAC,UAAU,EAAC,MAAM,8BAA8B,CAAC;AAOxD,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAC,KAAK,GAAG,GAAG,EAAE,SAAS,EAAgB,EAAE,EAAE;IAChE,MAAM,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,IAAI,EAAE,CAAC;QACR,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO,KAAC,WAAW,IAAC,SAAS,EAAE,SAAS,GAAI,CAAC;AACjD,CAAC,CAAC"}
@@ -25,6 +25,11 @@
25
25
  @include sticky-top();
26
26
  }
27
27
 
28
+ &__table {
29
+ position: relative;
30
+ z-index: 2;
31
+ }
32
+
28
33
  .ydb-paginated-table__head {
29
34
  top: 62px;
30
35
  }
@@ -1,10 +1,13 @@
1
1
  import type { NodesMap } from '../../types/store/nodesList';
2
2
  import type { PreparedVDisk } from '../../utils/disks/types';
3
3
  import './VDisk.scss';
4
- interface VDiskProps {
4
+ export interface VDiskProps {
5
5
  data?: PreparedVDisk;
6
6
  nodes?: NodesMap;
7
7
  compact?: boolean;
8
+ showPopup?: boolean;
9
+ onShowPopup?: VoidFunction;
10
+ onHidePopup?: VoidFunction;
11
+ progressBarClassName?: string;
8
12
  }
9
- export declare const VDisk: ({ data, nodes, compact }: VDiskProps) => import("react/jsx-runtime").JSX.Element;
10
- export {};
13
+ export declare const VDisk: ({ data, nodes, compact, showPopup, onShowPopup, onHidePopup, progressBarClassName, }: VDiskProps) => import("react/jsx-runtime").JSX.Element;
@@ -12,16 +12,18 @@ import { InternalLink } from '../InternalLink';
12
12
  import { VDiskPopup } from '../VDiskPopup/VDiskPopup';
13
13
  import './VDisk.scss';
14
14
  const b = cn('ydb-vdisk-component');
15
- export const VDisk = ({ data = {}, nodes, compact }) => {
15
+ export const VDisk = ({ data = {}, nodes, compact, showPopup, onShowPopup, onHidePopup, progressBarClassName, }) => {
16
16
  const isFullData = isFullVDiskData(data);
17
17
  const diskPagesAvailable = useDiskPagesAvailable();
18
18
  const [isPopupVisible, setIsPopupVisible] = React.useState(false);
19
19
  const anchor = React.useRef(null);
20
- const showPopup = () => {
20
+ const handleShowPopup = () => {
21
21
  setIsPopupVisible(true);
22
+ onShowPopup === null || onShowPopup === void 0 ? void 0 : onShowPopup();
22
23
  };
23
- const hidePopup = () => {
24
+ const handleHidePopup = () => {
24
25
  setIsPopupVisible(false);
26
+ onHidePopup === null || onHidePopup === void 0 ? void 0 : onHidePopup();
25
27
  };
26
28
  let vDiskPath;
27
29
  if (diskPagesAvailable &&
@@ -36,6 +38,6 @@ export const VDisk = ({ data = {}, nodes, compact }) => {
36
38
  vdiskId: stringifyVdiskId(data.VDiskId),
37
39
  });
38
40
  }
39
- return (_jsxs(React.Fragment, { children: [_jsx(VDiskPopup, { data: data, nodes: nodes, anchorRef: anchor, open: isPopupVisible }), _jsx("div", { className: b(), ref: anchor, onMouseEnter: showPopup, onMouseLeave: hidePopup, children: vDiskPath ? (_jsx(InternalLink, { to: vDiskPath, className: b('content'), children: _jsx(DiskStateProgressBar, { diskAllocatedPercent: data.AllocatedPercent, severity: data.Severity, compact: compact }) })) : (_jsx(DiskStateProgressBar, { diskAllocatedPercent: data.AllocatedPercent, severity: data.Severity, compact: compact })) })] }));
41
+ return (_jsxs(React.Fragment, { children: [_jsx("div", { className: b(), ref: anchor, onMouseEnter: handleShowPopup, onMouseLeave: handleHidePopup, children: _jsx(InternalLink, { to: vDiskPath, className: b('content'), children: _jsx(DiskStateProgressBar, { diskAllocatedPercent: data.AllocatedPercent, severity: data.Severity, compact: compact, className: progressBarClassName }) }) }), _jsx(VDiskPopup, { data: data, nodes: nodes, anchorRef: anchor, open: isPopupVisible || showPopup })] }));
40
42
  };
41
43
  //# sourceMappingURL=VDisk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VDisk.js","sourceRoot":"","sources":["../../../src/components/VDisk/VDisk.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,SAAS,EAAC,MAAM,iCAAiC,CAAC;AAC1D,OAAO,MAAM,EAAE,EAAC,UAAU,EAAE,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAClE,OAAO,EAAC,qBAAqB,EAAC,MAAM,yCAAyC,CAAC;AAE9E,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAC,EAAE,EAAC,MAAM,gB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'../../types/store/nodesList';
2
1
  import type { PreparedVDisk } from '../../utils/disks/types';
3
- interface VDiskWithDonorsStackProps {
2
+ import type { VDiskProps } from './VDisk';
3
+ interface VDiskWithDonorsStackProps extends VDiskProps {
4
4
  data?: PreparedVDisk;
5
- nodes?: NodesMap;
6
- compact?: boolean;
7
5
  className?: string;
8
6
  stackClassName?: string;
9
7
  }
10
- export declare function VDiskWithDonorsStack({ data, nodes, compact, className, stackClassName, }: VDiskWithDonorsStackProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function VDiskWithDonorsStack({ data, className, stackClassName, ...restProps }: VDiskWithDonorsStackProps): import("react/jsx-runtime").JSX.Element;
11
9
  export {};
@@ -3,13 +3,13 @@ import { stringifyVdiskId } from '../../utils/dataFormatters/dataFormatters';
3
3
  import { isFullVDiskData } from '../../utils/disks/helpers';
4
4
  import { Stack } from '../Stack/Stack';
5
5
  import { VDisk } from './VDisk';
6
- export function VDiskWithDonorsStack({ data, nodes, compact, className, stackClassName, }) {
6
+ export function VDiskWithDonorsStack({ data, className, stackClassName, ...restProps }) {
7
7
  const donors = data === null || data === void 0 ? void 0 : data.Donors;
8
- const content = donors && donors.length > 0 ? (_jsxs(Stack, { className: stackClassName, children: [_jsx(VDisk, { data: data, nodes: nodes, compact: compact }), donors.map((donor) => {
8
+ const content = donors && donors.length > 0 ? (_jsxs(Stack, { className: stackClassName, children: [_jsx(VDisk, { data: data, ...restProps }), donors.map((donor) => {
9
9
  const isFullData = isFullVDiskData(donor);
10
10
  // donor and acceptor are always in the same group
11
- return (_jsx(VDisk, { data: donor, nodes: nodes, compact: compact }, stringifyVdiskId(isFullData ? donor.VDiskId : donor)));
12
- })] })) : (_jsx(VDisk, { data: data, nodes: nodes, compact: compact }));
11
+ return (_jsx(VDisk, { data: donor, ...restProps }, stringifyVdiskId(isFullData ? donor.VDiskId : donor)));
12
+ })] })) : (_jsx(VDisk, { data: data, ...restProps }));
13
13
  return _jsx("div", { className: className, children: content });
14
14
  }
15
15
  //# sourceMappingURL=VDiskWithDonorsStack.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VDiskWithDonorsStack.js","sourceRoot":"","sources":["../../../src/components/VDisk/VDiskWithDonorsStack.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAC3E,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAC,KAAK,EAAC,MAAM,gBAAgB,CAAC;AAErC,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAU9B,MAAM,UAAU,oBAAoB,CAAC,EACjC,IAAI,EACJ,KAAK,EACL,OAAO,EACP,SAAS,EACT,cAAc,GACU;IACxB,MAAM,MAAM,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,CAAC;IAE5B,MAAM,OAAO,GACT,MAAM,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAC1B,MAAC,KAAK,IAAC,SAAS,EAAE,cAAc,aAC5B,KAAC,KAAK,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,GAAI,EACpD,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;gBAClB,MAAM,UAAU,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;gBAE1C,kDAAkD;gBAClD,OAAO,CACH,KAAC,KAAK,IAEF,IAAI,EAAE,KAAK,EACX,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,IAHX,gBAAgB,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAI3D,CACL,CAAC;YACN,CAAC,CAAC,IACE,CACX,CAAC,CAAC,CAAC,CACA,KAAC,KAAK,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,GAAI,CACxD,CA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@@ -87,7 +87,7 @@ export const VDiskPopup = ({ data, nodes, ...props }) => {
87
87
  const isFullData = isFullVDiskData(data);
88
88
  const vdiskInfo = React.useMemo(() => (isFullData ? prepareVDiskData(data) : prepareUnavailableVDiskData(data)), [data, isFullData]);
89
89
  const pdiskInfo = React.useMemo(() => isFullData && data.PDisk && preparePDiskData(data.PDisk, nodes), [data, nodes, isFullData]);
90
- return (_jsxs(Popup, { contentClassName: b(), placement: ['top', 'bottom'],
90
+ return (_jsxs(Popup, { contentClassName: b(), placement: ['top', 'bottom'], hasArrow: true,
91
91
  // bigger offset for easier switching to neighbour nodes
92
92
  // matches the default offset for popup with arrow out of a sense of beauty
93
93
  offset: [0, 12], ...props, children: [data.DonorMode && _jsx(Label, { className: b('donor-label'), children: "Donor" }), _jsx(InfoViewer, { title: "VDisk", info: vdiskInfo, size: "s" }), pdiskInfo && _jsx(InfoViewer, { title: "PDisk", info: pdiskInfo, size: "s" })] }));
@@ -1 +1 @@
1
- {"version":3,"file":"VDiskPopup.js","sourceRoot":"","sources":["../../../src/components/VDiskPopup/VDiskPopup.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,KAAK,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAC,KAAK,EAAC,MAAM,uBAAuB,CAAC;AAG5C,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,sBAAsB,EAAC,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAC3E,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAC,SAAS,EAAE,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAE1D,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AACzC,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAE1D,OA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GAAG,IAChE,CACX,CAAC;AACN,CAAC,CAAC"}
@@ -1,7 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useClusterData } from '../useClusterData';
2
+ import { useClusterBaseInfo } from '../../../store/reducers/cluster/cluster';
3
+ import { useAdditionalNodeProps } from '../useClusterData';
3
4
  export function ExtendedNode({ component: NodeComponent }) {
4
- const { additionalNodesProps } = useClusterData();
5
+ const { balancer } = useClusterBaseInfo();
6
+ const { additionalNodesProps } = useAdditionalNodeProps({ balancer });
5
7
  return _jsx(NodeComponent, { additionalNodesProps: additionalNodesProps });
6
8
  }
7
9
  //# sourceMappingURL=ExtendedNode.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExtendedNode.js","sourceRoot":"","sources":["../../../../src/containers/AppWithClusters/ExtendedNode/ExtendedNode.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AAEjD,MAAM,UAAU,YAAY,CAAC,EAAC,SAAS,EAAE,aAAa,EAA2B;IAC7E,MAAM,EAAC,oBAAoB,EAAC,GAAG,cAAc,EAAE,CAAC;IAEhD,OAAO,KAAC,aAAa,IAAC,oBAAoB,EAAE,oBAAoB,GAAI,CAAC;AACzE,CAAC"}
1
+ {"version":3,"file":"ExtendedNode.js","sourceRoot":"","sources":["../../../../src/containers/AppWithClusters/ExtendedNode/ExtendedNode.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,yCAAyC,CAAC;AAE3E,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AAEzD,MAAM,UAAU,YAAY,CAAC,EAAC,SAAS,EAAE,aAAa,EAA2B;IAC7E,MAAM,EAAC,QAAQ,EAAC,GAAG,kBAAkB,EAAE,CAAC;IACxC,MAAM,EAAC,oBAAoB,EAAC,GAAG,sBAAsB,CAAC,EAAC,QAAQ,EAAC,CAAC,CAAC;IAElE,OAAO,KAAC,aAAa,IAAC,oBAAoB,EAAE,oBAAoB,GAAI,CAAC;AACzE,CAAC"}
@@ -1,8 +1,10 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { MonitoringButton } from '../../../components/MonitoringButton/MonitoringButton';
3
- import { useClusterData } from '../useClusterData';
3
+ import { useClusterBaseInfo } from '../../../store/reducers/cluster/cluster';
4
+ import { useAdditionalNodeProps } from '../useClusterData';
4
5
  export function ExtendedTenant({ component: TenantComponent, getMonitoringLink, }) {
5
- const { additionalNodesProps, cluster, monitoring } = useClusterData();
6
+ const { balancer, monitoring } = useClusterBaseInfo();
7
+ const { additionalNodesProps } = useAdditionalNodeProps({ balancer });
6
8
  const additionalTenantProps = {
7
9
  getMonitoringLink: (dbName, dbType) => {
8
10
  if (monitoring && dbName && dbType && getMonitoringLink) {
@@ -10,7 +12,6 @@ export function ExtendedTenant({ component: TenantComponent, getMonitoringLink,
10
12
  monitoring,
11
13
  dbName,
12
14
  dbType,
13
- clusterName: cluster === null || cluster === void 0 ? void 0 : cluster.Name,
14
15
  });
15
16
  return href ? _jsx(MonitoringButton, { href: href, visible: true }) : null;
16
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ExtendedTenant.js","sourceRoot":"","sources":["../../../../src/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,uDAAuD,CAAC;AAIvF,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AAOjD,MAAM,UAAU,cAAc,CAAC,EAC3B,SAAS,EAAE,eAAe,EAC1B,iBAAiB,GACC;IAClB,MAAM,EAAC,oBAAoB,EAAE,OAAO,EAAE,UAAU,EAAC,GAAG,cAAc,EAAE,CAAC;IAErE,MAAM,qBAAqB,GAAG;QAC1B,iBAAiB,EAAE,CAAC,MAAe,EAAE,MAAoB,EAAE,EAAE;YACzD,IAAI,UAAU,IAAI,MAAM,IAAI,MAAM,IAAI,iBAAiB,EAAE,CAAC;gBACtD,MAAM,IAAI,GAAG,iBAAiB,CAAC;oBAC3B,UAAU;oBACV,MAAM;oBACN,MAAM;oBACN,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI;iBAC7B,CAAC,CAAC;gBACH,OAAO,IAAI,CAAC,CAAC,CAAC,KAAC,gBAAgB,IAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC;YACzE,CAAC;YAED,OAAO,IAAI,CAAC;QAChB,CAAC;KACJ,CAAC;IAEF,OAAO,CACH,KAAC,eAAe,IACZ,qBAAqB,EAAE,qBAAqB,EAC5C,oBAAoB,EAAE,oBAAoB,GAC5C,CACL,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"ExtendedTenant.js","sourceRoot":"","sources":["../../../../src/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,uDAAuD,CAAC;AACvF,OAAO,EAAC,kBAAkB,EAAC,MAAM,yCAAyC,CAAC;AAI3E,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AAOzD,MAAM,UAAU,cAAc,CAAC,EAC3B,SAAS,EAAE,eAAe,EAC1B,iBAAiB,GACC;IAClB,MAAM,EAAC,QAAQ,EAAE,UAAU,EAAC,GAAG,kBAAkB,EAAE,CAAC;IACpD,MAAM,EAAC,oBAAoB,EAAC,GAAG,sBAAsB,CAAC,EAAC,QAAQ,EAAC,CAAC,CAAC;IAElE,MAAM,qBAAqB,GAAG;QAC1B,iBAAiB,EAAE,CAAC,MAAe,EAAE,MAAoB,EAAE,EAAE;YACzD,IAAI,UAAU,IAAI,MAAM,IAAI,MAAM,IAAI,iBAAiB,EAAE,CAAC;gBACtD,MAAM,IAAI,GAAG,iBAAiB,CAAC;oBAC3B,UAAU;oBACV,MAAM;oBACN,MAAM;iBACT,CAAC,CAAC;gBACH,OAAO,IAAI,CAAC,CAAC,CAAC,KAAC,gBAAgB,IAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC;YACzE,CAAC;YAED,OAAO,IAAI,CAAC;QAChB,CAAC;KACJ,CAAC;IAEF,OAAO,CACH,KAAC,eAAe,IACZ,qBAAqB,EAAE,qBAAqB,EAC5C,oBAAoB,EAAE,oBAAoB,GAC5C,CACL,CAAC;AACN,CAAC"}
@@ -1,8 +1,14 @@
1
1
  export declare function useClusterData(): {
2
+ additionalNodesProps: import("../../types/additionalProps").AdditionalNodesProps;
3
+ useClusterBalancerAsBackend: boolean;
2
4
  monitoring: string | undefined;
3
5
  balancer: string | undefined;
4
6
  versions: import("../../types/api/meta").MetaClusterVersion[] | undefined;
5
7
  cluster: import("../../types/api/meta").MetaViewerClusterInfo | undefined;
6
- useClusterBalancerAsBackend: boolean;
8
+ };
9
+ export declare function useAdditionalNodeProps({ balancer }: {
10
+ balancer?: string;
11
+ }): {
7
12
  additionalNodesProps: import("../../types/additionalProps").AdditionalNodesProps;
13
+ useClusterBalancerAsBackend: boolean;
8
14
  };
@@ -1,28 +1,28 @@
1
1
  import React from 'react';
2
- import { useLocation } from 'react-router-dom';
3
- import { parseQuery } from '../../routes';
2
+ import { StringParam, useQueryParam } from 'use-query-params';
4
3
  import { clustersApi } from '../../store/reducers/clusters/clusters';
5
4
  import { getAdditionalNodesProps } from '../../utils/additionalProps';
6
5
  import { USE_CLUSTER_BALANCER_AS_BACKEND_KEY } from '../../utils/constants';
7
6
  import { useSetting } from '../../utils/hooks';
8
7
  export function useClusterData() {
9
- const location = useLocation();
10
- const { clusterName } = parseQuery(location);
8
+ const [clusterName] = useQueryParam('clusterName', StringParam);
11
9
  const { data } = clustersApi.useGetClustersListQuery(undefined);
12
10
  const info = React.useMemo(() => {
13
11
  const clusters = data || [];
14
12
  return clusters.find((cluster) => cluster.name === clusterName);
15
13
  }, [data, clusterName]);
16
14
  const { solomon: monitoring, balancer, versions, cluster } = info || {};
17
- const [useClusterBalancerAsBackend] = useSetting(USE_CLUSTER_BALANCER_AS_BACKEND_KEY);
18
- const additionalNodesProps = getAdditionalNodesProps(balancer, useClusterBalancerAsBackend);
19
15
  return {
20
16
  monitoring,
21
17
  balancer,
22
18
  versions,
23
19
  cluster,
24
- useClusterBalancerAsBackend,
25
- additionalNodesProps,
20
+ ...useAdditionalNodeProps({ balancer }),
26
21
  };
27
22
  }
23
+ export function useAdditionalNodeProps({ balancer }) {
24
+ const [useClusterBalancerAsBackend] = useSetting(USE_CLUSTER_BALANCER_AS_BACKEND_KEY);
25
+ const additionalNodesProps = getAdditionalNodesProps(balancer, useClusterBalancerAsBackend);
26
+ return { additionalNodesProps, useClusterBalancerAsBackend };
27
+ }
28
28
  //# sourceMappingURL=useClusterData.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useClusterData.js","sourceRoot":"","sources":["../../../src/containers/AppWithClusters/useClusterData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,WAAW,EAAC,MAAM,wCAAwC,CAAC;AACnE,OAAO,EAAC,uBAAuB,EAAC,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAC,mCAAmC,EAAC,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAE7C,MAAM,UAAU,cAAc;IAC1B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,EAAC,WAAW,EAAC,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC;IAE3C,MAAM,EAAC,IAAI,EAAC,GAAG,WAAW,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;IAE9D,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO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OAAO,CAAC,GAAG,EAAE;QAC5B,MAAM,QAAQ,GAAG,IAAI,IAAI,EAAE,CAAC;QAC5B,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,WAAW,CAAC,CAAC;IACpE,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC;IAExB,MAAM,EAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAC,GAAG,IAAI,IAAI,EAAE,CAAC;IAEtE,OAAO;QACH,UAAU;QACV,QAAQ;QACR,QAAQ;QACR,OAAO;QACP,GAAG,sBAAsB,CAAC,EAAC,QAAQ,EAAC,CAAC;KACxC,CAAC;AACN,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,EAAC,QAAQ,EAAsB;IAClE,MAAM,CAAC,2BAA2B,CAAC,GAAG,UAAU,CAAU,mCAAmC,CAAC,CAAC;IAE/F,MAAM,oBAAoB,GAAG,uBAAuB,CAAC,QAAQ,EAAE,2BAA2B,CAAC,CAAC;IAE5F,OAAO,EAAC,oBAAoB,EAAE,2BAA2B,EAAC,CAAC;AAC/D,CAAC"}
@@ -6,5 +6,8 @@ export interface AsideNavigationProps {
6
6
  ydbInternalUser: JSX.Element;
7
7
  menuItems?: MenuItem[];
8
8
  content: React.ReactNode;
9
+ user?: {
10
+ login: string;
11
+ };
9
12
  }
10
13
  export declare function AsideNavigation(props: AsideNavigationProps): import("react/jsx-runtime").JSX.Element;