ydb-embedded-ui 6.21.0 → 6.23.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (459) hide show
  1. package/dist/components/AutoRefreshControl/i18n/index.d.ts +1 -1
  2. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.d.ts +2 -1
  3. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js +2 -2
  4. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js.map +1 -1
  5. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +4 -0
  6. package/dist/components/GroupInfo/i18n/index.d.ts +1 -1
  7. package/dist/components/PDiskInfo/PDiskInfo.js +1 -3
  8. package/dist/components/PDiskInfo/PDiskInfo.js.map +1 -1
  9. package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
  10. package/dist/components/PDiskPopup/PDiskPopup.d.ts +2 -4
  11. package/dist/components/PDiskPopup/PDiskPopup.js +10 -5
  12. package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
  13. package/dist/components/PaginatedTable/PaginatedTable.d.ts +2 -1
  14. package/dist/components/PaginatedTable/PaginatedTable.js +9 -7
  15. package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
  16. package/dist/components/PaginatedTable/TableChunk.d.ts +2 -1
  17. package/dist/components/PaginatedTable/TableChunk.js +5 -2
  18. package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
  19. package/dist/components/QueryResultTable/Cell/Cell.js +1 -4
  20. package/dist/components/QueryResultTable/Cell/Cell.js.map +1 -1
  21. package/dist/components/QueryResultTable/QueryResultTable.js +11 -16
  22. package/dist/components/QueryResultTable/QueryResultTable.js.map +1 -1
  23. package/dist/components/QueryResultTable/utils/getColumnWidth.d.ts +7 -0
  24. package/dist/components/QueryResultTable/utils/getColumnWidth.js +16 -0
  25. package/dist/components/QueryResultTable/utils/getColumnWidth.js.map +1 -0
  26. package/dist/components/QueryResultTable/utils/getColumnWidth.test.d.ts +1 -0
  27. package/dist/components/QueryResultTable/utils/getColumnWidth.test.js +32 -0
  28. package/dist/components/QueryResultTable/utils/getColumnWidth.test.js.map +1 -0
  29. package/dist/components/StorageGroupInfo/StorageGroupInfo.js +7 -7
  30. package/dist/components/StorageGroupInfo/StorageGroupInfo.js.map +1 -1
  31. package/dist/components/StorageGroupInfo/i18n/index.d.ts +1 -1
  32. package/dist/components/TableSkeleton/TableSkeleton.d.ts +2 -1
  33. package/dist/components/TableSkeleton/TableSkeleton.js +5 -1
  34. package/dist/components/TableSkeleton/TableSkeleton.js.map +1 -1
  35. package/dist/components/TableSkeleton/TableSkeleton.scss +7 -1
  36. package/dist/components/VDisk/VDisk.d.ts +2 -3
  37. package/dist/components/VDisk/VDisk.js +2 -2
  38. package/dist/components/VDisk/VDisk.js.map +1 -1
  39. package/dist/components/VDiskInfo/VDiskInfo.js +1 -3
  40. package/dist/components/VDiskInfo/VDiskInfo.js.map +1 -1
  41. package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
  42. package/dist/components/VDiskPopup/VDiskPopup.d.ts +1 -3
  43. package/dist/components/VDiskPopup/VDiskPopup.js +7 -2
  44. package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
  45. package/dist/containers/App/App.scss +1 -1
  46. package/dist/containers/Cluster/Cluster.js +1 -1
  47. package/dist/containers/Cluster/Cluster.js.map +1 -1
  48. package/dist/containers/Cluster/Cluster.scss +2 -3
  49. package/dist/containers/Cluster/i18n/index.d.ts +1 -1
  50. package/dist/containers/Clusters/Clusters.js +3 -3
  51. package/dist/containers/Clusters/Clusters.js.map +1 -1
  52. package/dist/containers/Clusters/columns.js +2 -2
  53. package/dist/containers/Clusters/columns.js.map +1 -1
  54. package/dist/containers/Clusters/constants.d.ts +4 -4
  55. package/dist/containers/Clusters/constants.js +3 -3
  56. package/dist/containers/Clusters/constants.js.map +1 -1
  57. package/dist/containers/Header/breadcrumbs.js +2 -3
  58. package/dist/containers/Header/breadcrumbs.js.map +1 -1
  59. package/dist/containers/Node/Node.js +14 -4
  60. package/dist/containers/Node/Node.js.map +1 -1
  61. package/dist/containers/Node/NodePages.js +4 -5
  62. package/dist/containers/Node/NodePages.js.map +1 -1
  63. package/dist/containers/Nodes/Nodes.js +10 -11
  64. package/dist/containers/Nodes/Nodes.js.map +1 -1
  65. package/dist/containers/Nodes/PaginatedNodes.js +10 -11
  66. package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
  67. package/dist/containers/Nodes/{getNodesColumns.d.ts → columns/columns.d.ts} +3 -10
  68. package/dist/containers/Nodes/{getNodesColumns.js → columns/columns.js} +37 -39
  69. package/dist/containers/Nodes/columns/columns.js.map +1 -0
  70. package/dist/containers/Nodes/columns/constants.d.ts +41 -0
  71. package/dist/containers/Nodes/columns/constants.js +83 -0
  72. package/dist/containers/Nodes/columns/constants.js.map +1 -0
  73. package/dist/containers/Nodes/columns/hooks.d.ts +6 -0
  74. package/dist/containers/Nodes/columns/hooks.js +11 -0
  75. package/dist/containers/Nodes/columns/hooks.js.map +1 -0
  76. package/dist/containers/Nodes/columns/i18n/en.json +17 -0
  77. package/dist/containers/Nodes/columns/i18n/index.d.ts +2 -0
  78. package/dist/containers/Nodes/columns/i18n/index.js +5 -0
  79. package/dist/containers/Nodes/columns/i18n/index.js.map +1 -0
  80. package/dist/containers/Nodes/columns/types.d.ts +9 -0
  81. package/dist/containers/Nodes/columns/types.js +2 -0
  82. package/dist/containers/Nodes/columns/types.js.map +1 -0
  83. package/dist/containers/Nodes/getNodes.d.ts +3 -2
  84. package/dist/containers/Nodes/getNodes.js +6 -3
  85. package/dist/containers/Nodes/getNodes.js.map +1 -1
  86. package/dist/containers/PDiskPage/PDiskPage.js +12 -10
  87. package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
  88. package/dist/containers/PDiskPage/PDiskPage.scss +14 -14
  89. package/dist/containers/PDiskPage/i18n/en.json +1 -1
  90. package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
  91. package/dist/containers/ReduxTooltip/ReduxTooltip.js +7 -7
  92. package/dist/containers/ReduxTooltip/ReduxTooltip.js.map +1 -1
  93. package/dist/containers/Storage/Disks/Disks.d.ts +3 -3
  94. package/dist/containers/Storage/Disks/Disks.js +6 -7
  95. package/dist/containers/Storage/Disks/Disks.js.map +1 -1
  96. package/dist/containers/Storage/PDisk/PDisk.d.ts +5 -4
  97. package/dist/containers/Storage/PDisk/PDisk.js +3 -2
  98. package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
  99. package/dist/containers/Storage/PDisk/PDisk.scss +1 -1
  100. package/dist/containers/Storage/PaginatedStorage.d.ts +5 -6
  101. package/dist/containers/Storage/PaginatedStorage.js +9 -54
  102. package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
  103. package/dist/containers/Storage/PaginatedStorageGroups.d.ts +3 -0
  104. package/dist/containers/Storage/PaginatedStorageGroups.js +84 -0
  105. package/dist/containers/Storage/PaginatedStorageGroups.js.map +1 -0
  106. package/dist/containers/Storage/PaginatedStorageNodes.d.ts +3 -0
  107. package/dist/containers/Storage/PaginatedStorageNodes.js +98 -0
  108. package/dist/containers/Storage/PaginatedStorageNodes.js.map +1 -0
  109. package/dist/containers/Storage/Storage.d.ts +4 -4
  110. package/dist/containers/Storage/Storage.js +46 -67
  111. package/dist/containers/Storage/Storage.js.map +1 -1
  112. package/dist/containers/Storage/Storage.scss +4 -0
  113. package/dist/containers/Storage/StorageControls/StorageControls.d.ts +6 -16
  114. package/dist/containers/Storage/StorageControls/StorageControls.js +18 -9
  115. package/dist/containers/Storage/StorageControls/StorageControls.js.map +1 -1
  116. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.d.ts +22 -0
  117. package/dist/containers/Storage/StorageGroups/{PaginatedStorageGroups.js → PaginatedStorageGroupsTable.js} +24 -8
  118. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.js.map +1 -0
  119. package/dist/containers/Storage/StorageGroups/StorageGroupsTable.d.ts +14 -0
  120. package/dist/containers/Storage/StorageGroups/{StorageGroups.js → StorageGroupsTable.js} +5 -6
  121. package/dist/containers/Storage/StorageGroups/StorageGroupsTable.js.map +1 -0
  122. package/dist/containers/Storage/StorageGroups/columns/columns.d.ts +4 -0
  123. package/dist/containers/Storage/StorageGroups/columns/{getStorageGroupsColumns.js → columns.js} +66 -89
  124. package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -0
  125. package/dist/containers/Storage/StorageGroups/columns/constants.d.ts +54 -0
  126. package/dist/containers/Storage/StorageGroups/columns/constants.js +120 -0
  127. package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -0
  128. package/dist/containers/Storage/StorageGroups/columns/hooks.d.ts +7 -3
  129. package/dist/containers/Storage/StorageGroups/columns/hooks.js +21 -16
  130. package/dist/containers/Storage/StorageGroups/columns/hooks.js.map +1 -1
  131. package/dist/containers/Storage/StorageGroups/columns/i18n/en.json +21 -0
  132. package/dist/containers/Storage/StorageGroups/columns/i18n/index.d.ts +2 -0
  133. package/dist/containers/Storage/StorageGroups/columns/i18n/index.js +5 -0
  134. package/dist/containers/Storage/StorageGroups/columns/i18n/index.js.map +1 -0
  135. package/dist/containers/Storage/StorageGroups/columns/types.d.ts +5 -7
  136. package/dist/containers/Storage/StorageGroups/getGroups.js +10 -6
  137. package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
  138. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.d.ts +23 -0
  139. package/dist/containers/Storage/StorageNodes/{PaginatedStorageNodes.js → PaginatedStorageNodesTable.js} +24 -9
  140. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.js.map +1 -0
  141. package/dist/containers/Storage/StorageNodes/StorageNodes.scss +1 -27
  142. package/dist/containers/Storage/StorageNodes/StorageNodesTable.d.ts +16 -0
  143. package/dist/containers/Storage/StorageNodes/{StorageNodes.js → StorageNodesTable.js} +9 -9
  144. package/dist/containers/Storage/StorageNodes/StorageNodesTable.js.map +1 -0
  145. package/dist/containers/Storage/StorageNodes/columns/StorageNodesColumns.scss +24 -0
  146. package/dist/containers/Storage/StorageNodes/columns/columns.d.ts +39 -0
  147. package/dist/containers/Storage/StorageNodes/{getStorageNodesColumns.js → columns/columns.js} +20 -31
  148. package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -0
  149. package/dist/containers/Storage/StorageNodes/columns/constants.d.ts +34 -0
  150. package/dist/containers/Storage/StorageNodes/columns/constants.js +74 -0
  151. package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -0
  152. package/dist/containers/Storage/StorageNodes/columns/hooks.d.ts +43 -0
  153. package/dist/containers/Storage/StorageNodes/columns/hooks.js +18 -0
  154. package/dist/containers/Storage/StorageNodes/columns/hooks.js.map +1 -0
  155. package/dist/containers/Storage/StorageNodes/columns/i18n/en.json +11 -0
  156. package/dist/containers/Storage/StorageNodes/columns/i18n/index.d.ts +2 -0
  157. package/dist/containers/Storage/StorageNodes/columns/i18n/index.js +5 -0
  158. package/dist/containers/Storage/StorageNodes/columns/i18n/index.js.map +1 -0
  159. package/dist/containers/Storage/StorageNodes/columns/types.d.ts +11 -0
  160. package/dist/containers/Storage/StorageNodes/columns/types.js +2 -0
  161. package/dist/containers/Storage/StorageNodes/columns/types.js.map +1 -0
  162. package/dist/containers/Storage/StorageNodes/getNodes.d.ts +2 -2
  163. package/dist/containers/Storage/StorageNodes/getNodes.js +13 -9
  164. package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
  165. package/dist/containers/Storage/StorageNodes/shared.js +1 -1
  166. package/dist/containers/Storage/StorageNodes/shared.js.map +1 -1
  167. package/dist/containers/Storage/StorageWrapper.d.ts +0 -2
  168. package/dist/containers/Storage/StorageWrapper.js.map +1 -1
  169. package/dist/containers/Storage/TableGroup/TableGroup.d.ts +12 -0
  170. package/dist/containers/Storage/TableGroup/TableGroup.js +21 -0
  171. package/dist/containers/Storage/TableGroup/TableGroup.js.map +1 -0
  172. package/dist/containers/Storage/TableGroup/TableGroup.scss +49 -0
  173. package/dist/containers/Storage/TableGroup/useExpandedTableGroups.d.ts +5 -0
  174. package/dist/containers/Storage/TableGroup/useExpandedTableGroups.js +28 -0
  175. package/dist/containers/Storage/TableGroup/useExpandedTableGroups.js.map +1 -0
  176. package/dist/containers/Storage/i18n/en.json +4 -1
  177. package/dist/containers/Storage/i18n/index.d.ts +1 -1
  178. package/dist/containers/Storage/i18n/index.js +1 -2
  179. package/dist/containers/Storage/i18n/index.js.map +1 -1
  180. package/dist/containers/Storage/shared.d.ts +2 -0
  181. package/dist/containers/Storage/shared.js +9 -0
  182. package/dist/containers/Storage/shared.js.map +1 -1
  183. package/dist/containers/Storage/useStorageQueryParams.d.ts +18 -0
  184. package/dist/containers/Storage/useStorageQueryParams.js +64 -0
  185. package/dist/containers/Storage/useStorageQueryParams.js.map +1 -0
  186. package/dist/containers/Storage/utils/index.d.ts +6 -2
  187. package/dist/containers/Storage/utils/index.js +17 -11
  188. package/dist/containers/Storage/utils/index.js.map +1 -1
  189. package/dist/containers/StorageGroupPage/StorageGroupPage.js +14 -57
  190. package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -1
  191. package/dist/containers/StorageGroupPage/StorageGroupPage.scss +14 -17
  192. package/dist/containers/StorageGroupPage/i18n/en.json +1 -2
  193. package/dist/containers/StorageGroupPage/i18n/index.d.ts +1 -1
  194. package/dist/containers/Tablets/i18n/index.d.ts +1 -1
  195. package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +17 -3
  196. package/dist/containers/Tenant/Diagnostics/Describe/Describe.js.map +1 -1
  197. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +1 -1
  198. package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
  199. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +6 -3
  200. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +4 -4
  201. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
  202. package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js +10 -3
  203. package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js.map +1 -1
  204. package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +2 -3
  205. package/dist/containers/Tenant/Diagnostics/Overview/Overview.js.map +1 -1
  206. package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js +4 -4
  207. package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js.map +1 -1
  208. package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.d.ts +2 -2
  209. package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.js +5 -5
  210. package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.js.map +1 -1
  211. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +12 -5
  212. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js.map +1 -1
  213. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js +12 -5
  214. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js.map +1 -1
  215. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +13 -5
  216. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js.map +1 -1
  217. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +8 -2
  218. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js.map +1 -1
  219. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +2 -1
  220. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
  221. package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
  222. package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.d.ts +5 -0
  223. package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js +21 -0
  224. package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js.map +1 -0
  225. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.d.ts +1 -3
  226. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +32 -37
  227. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js.map +1 -1
  228. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.d.ts +6 -0
  229. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js +33 -0
  230. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js.map +1 -0
  231. package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.d.ts +2 -0
  232. package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js +26 -0
  233. package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js.map +1 -1
  234. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/en.json +7 -1
  235. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.d.ts +1 -1
  236. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.js +1 -2
  237. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.js.map +1 -1
  238. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +71 -62
  239. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js.map +1 -1
  240. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.scss +6 -7
  241. package/dist/containers/Tenant/ObjectSummary/ObjectTree.d.ts +6 -0
  242. package/dist/containers/Tenant/ObjectSummary/ObjectTree.js +25 -0
  243. package/dist/containers/Tenant/ObjectSummary/ObjectTree.js.map +1 -0
  244. package/dist/containers/Tenant/ObjectSummary/SchemaActions.d.ts +1 -0
  245. package/dist/containers/Tenant/ObjectSummary/SchemaActions.js +18 -0
  246. package/dist/containers/Tenant/ObjectSummary/SchemaActions.js.map +1 -0
  247. package/dist/containers/Tenant/ObjectSummary/__test__/transformPath.test.js +27 -3
  248. package/dist/containers/Tenant/ObjectSummary/__test__/transformPath.test.js.map +1 -1
  249. package/dist/containers/Tenant/ObjectSummary/i18n/en.json +21 -0
  250. package/dist/containers/Tenant/ObjectSummary/i18n/index.d.ts +2 -0
  251. package/dist/containers/Tenant/ObjectSummary/i18n/index.js +5 -0
  252. package/dist/containers/Tenant/ObjectSummary/i18n/index.js.map +1 -0
  253. package/dist/containers/Tenant/ObjectSummary/shared.d.ts +1 -0
  254. package/dist/containers/Tenant/ObjectSummary/shared.js +3 -0
  255. package/dist/containers/Tenant/ObjectSummary/shared.js.map +1 -0
  256. package/dist/containers/Tenant/ObjectSummary/transformPath.d.ts +2 -0
  257. package/dist/containers/Tenant/ObjectSummary/transformPath.js +10 -0
  258. package/dist/containers/Tenant/ObjectSummary/transformPath.js.map +1 -1
  259. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +14 -12
  260. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
  261. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +8 -0
  262. package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +3 -1
  263. package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
  264. package/dist/containers/Tenant/Query/NewSQL/NewSQL.d.ts +1 -0
  265. package/dist/containers/Tenant/Query/NewSQL/NewSQL.js +135 -0
  266. package/dist/containers/Tenant/Query/NewSQL/NewSQL.js.map +1 -0
  267. package/dist/containers/Tenant/Query/NewSQL/i18n/en.json +32 -0
  268. package/dist/containers/Tenant/Query/NewSQL/i18n/index.d.ts +2 -0
  269. package/dist/containers/Tenant/Query/NewSQL/i18n/index.js +5 -0
  270. package/dist/containers/Tenant/Query/NewSQL/i18n/index.js.map +1 -0
  271. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +2 -1
  272. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js.map +1 -1
  273. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.scss +1 -0
  274. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.js +3 -1
  275. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.js.map +1 -1
  276. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js +5 -10
  277. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js.map +1 -1
  278. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.js +5 -3
  279. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.js.map +1 -1
  280. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js +6 -10
  281. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js.map +1 -1
  282. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +11 -2
  283. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js.map +1 -1
  284. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.scss +1 -0
  285. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.d.ts +1 -0
  286. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js +1 -1
  287. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js.map +1 -1
  288. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +3 -0
  289. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +3 -0
  290. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js.map +1 -1
  291. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/en.json +3 -0
  292. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/index.d.ts +1 -1
  293. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/ru.json +3 -0
  294. package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +1 -1
  295. package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js.map +1 -1
  296. package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +10 -2
  297. package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js.map +1 -1
  298. package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.d.ts +2 -1
  299. package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js.map +1 -1
  300. package/dist/containers/Tenant/Tenant.js +7 -3
  301. package/dist/containers/Tenant/Tenant.js.map +1 -1
  302. package/dist/containers/Tenant/utils/newSQLQueryActions.d.ts +27 -0
  303. package/dist/containers/Tenant/utils/newSQLQueryActions.js +35 -0
  304. package/dist/containers/Tenant/utils/newSQLQueryActions.js.map +1 -0
  305. package/dist/containers/Tenant/utils/newSQLQueryTemplates.d.ts +24 -0
  306. package/dist/containers/Tenant/utils/newSQLQueryTemplates.js +228 -0
  307. package/dist/containers/Tenant/utils/newSQLQueryTemplates.js.map +1 -0
  308. package/dist/containers/Tenant/utils/schema.js +1 -0
  309. package/dist/containers/Tenant/utils/schema.js.map +1 -1
  310. package/dist/containers/Tenant/utils/schemaActions.d.ts +1 -1
  311. package/dist/containers/Tenant/utils/schemaActions.js +8 -6
  312. package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
  313. package/dist/containers/Tenant/utils/{queryTemplates.js → schemaQueryTemplates.js} +1 -1
  314. package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -0
  315. package/dist/containers/UserSettings/i18n/en.json +0 -2
  316. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  317. package/dist/containers/UserSettings/settings.d.ts +0 -1
  318. package/dist/containers/UserSettings/settings.js +2 -7
  319. package/dist/containers/UserSettings/settings.js.map +1 -1
  320. package/dist/containers/VDiskPage/VDiskPage.d.ts +0 -3
  321. package/dist/containers/VDiskPage/VDiskPage.js +9 -33
  322. package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
  323. package/dist/containers/VDiskPage/VDiskPage.scss +10 -19
  324. package/dist/containers/VDiskPage/i18n/en.json +1 -1
  325. package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
  326. package/dist/services/api.d.ts +16 -5
  327. package/dist/services/api.js +53 -14
  328. package/dist/services/api.js.map +1 -1
  329. package/dist/services/settings.d.ts +2 -2
  330. package/dist/services/settings.js +2 -3
  331. package/dist/services/settings.js.map +1 -1
  332. package/dist/store/configureStore.d.ts +2 -2
  333. package/dist/store/defaultStore.d.ts +1 -1
  334. package/dist/store/reducers/capabilities/capabilities.d.ts +8 -1
  335. package/dist/store/reducers/capabilities/capabilities.js +6 -1
  336. package/dist/store/reducers/capabilities/capabilities.js.map +1 -1
  337. package/dist/store/reducers/capabilities/hooks.d.ts +2 -0
  338. package/dist/store/reducers/capabilities/hooks.js +6 -0
  339. package/dist/store/reducers/capabilities/hooks.js.map +1 -1
  340. package/dist/store/reducers/executeQuery.js +3 -0
  341. package/dist/store/reducers/executeQuery.js.map +1 -1
  342. package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +4 -0
  343. package/dist/store/reducers/executeTopQueries/executeTopQueries.js +27 -1
  344. package/dist/store/reducers/executeTopQueries/executeTopQueries.js.map +1 -1
  345. package/dist/store/reducers/index.d.ts +2 -2
  346. package/dist/store/reducers/nodes/nodes.d.ts +2 -2
  347. package/dist/store/reducers/nodes/nodes.js.map +1 -1
  348. package/dist/store/reducers/nodes/types.d.ts +3 -24
  349. package/dist/store/reducers/nodesList.d.ts +5 -5
  350. package/dist/store/reducers/nodesList.js +2 -2
  351. package/dist/store/reducers/nodesList.js.map +1 -1
  352. package/dist/store/reducers/overview/overview.js +5 -1
  353. package/dist/store/reducers/overview/overview.js.map +1 -1
  354. package/dist/store/reducers/pdisk/pdisk.js +29 -2
  355. package/dist/store/reducers/pdisk/pdisk.js.map +1 -1
  356. package/dist/store/reducers/pdisk/utils.js +1 -1
  357. package/dist/store/reducers/pdisk/utils.js.map +1 -1
  358. package/dist/store/reducers/storage/requestStorageData.d.ts +3 -3
  359. package/dist/store/reducers/storage/requestStorageData.js.map +1 -1
  360. package/dist/store/reducers/storage/selectors.d.ts +2 -3
  361. package/dist/store/reducers/storage/selectors.js +1 -27
  362. package/dist/store/reducers/storage/selectors.js.map +1 -1
  363. package/dist/store/reducers/storage/storage.d.ts +4 -4
  364. package/dist/store/reducers/storage/storage.js.map +1 -1
  365. package/dist/store/reducers/storage/types.d.ts +19 -10
  366. package/dist/store/reducers/storage/utils.js +27 -3
  367. package/dist/store/reducers/storage/utils.js.map +1 -1
  368. package/dist/store/reducers/tablet.js +5 -3
  369. package/dist/store/reducers/tablet.js.map +1 -1
  370. package/dist/store/reducers/tablets.d.ts +3 -3
  371. package/dist/store/reducers/tablets.js +4 -4
  372. package/dist/store/reducers/tablets.js.map +1 -1
  373. package/dist/store/reducers/tooltip.d.ts +1 -1
  374. package/dist/styles/mixins.scss +3 -3
  375. package/dist/types/api/capabilities.d.ts +1 -1
  376. package/dist/types/api/common.d.ts +1 -0
  377. package/dist/types/api/nodes.d.ts +34 -0
  378. package/dist/types/api/nodes.js.map +1 -1
  379. package/dist/types/api/query.d.ts +1 -0
  380. package/dist/types/api/storage.d.ts +29 -8
  381. package/dist/types/store/nodesList.d.ts +1 -1
  382. package/dist/types/store/query.d.ts +5 -8
  383. package/dist/utils/constants.d.ts +0 -8
  384. package/dist/utils/constants.js +0 -9
  385. package/dist/utils/constants.js.map +1 -1
  386. package/dist/utils/filters.d.ts +2 -1
  387. package/dist/utils/filters.js +1 -4
  388. package/dist/utils/filters.js.map +1 -1
  389. package/dist/utils/hooks/useChangedQuerySettings.d.ts +2 -2
  390. package/dist/utils/hooks/useChangedQuerySettings.js +2 -1
  391. package/dist/utils/hooks/useChangedQuerySettings.js.map +1 -1
  392. package/dist/utils/hooks/useLastQueryExecutionSettings.d.ts +15 -2
  393. package/dist/utils/hooks/useLastQueryExecutionSettings.js +8 -9
  394. package/dist/utils/hooks/useLastQueryExecutionSettings.js.map +1 -1
  395. package/dist/utils/hooks/useQueryExecutionSettings.d.ts +15 -2
  396. package/dist/utils/hooks/useQueryExecutionSettings.js +5 -7
  397. package/dist/utils/hooks/useQueryExecutionSettings.js.map +1 -1
  398. package/dist/utils/hooks/useSelectedColumns.d.ts +8 -0
  399. package/dist/utils/hooks/useSelectedColumns.js +40 -0
  400. package/dist/utils/hooks/useSelectedColumns.js.map +1 -0
  401. package/dist/utils/nodes.d.ts +5 -24
  402. package/dist/utils/nodes.js +20 -23
  403. package/dist/utils/nodes.js.map +1 -1
  404. package/dist/utils/query.d.ts +129 -0
  405. package/dist/utils/query.js +33 -1
  406. package/dist/utils/query.js.map +1 -1
  407. package/dist/utils/storage.d.ts +1 -1
  408. package/dist/utils/storage.js +2 -0
  409. package/dist/utils/storage.js.map +1 -1
  410. package/dist/utils/utils.js +2 -1
  411. package/dist/utils/utils.js.map +1 -1
  412. package/package.json +2 -1
  413. package/dist/containers/Clusters/useSelectedColumns.d.ts +0 -7
  414. package/dist/containers/Clusters/useSelectedColumns.js +0 -26
  415. package/dist/containers/Clusters/useSelectedColumns.js.map +0 -1
  416. package/dist/containers/Nodes/getNodesColumns.js.map +0 -1
  417. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.d.ts +0 -6
  418. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +0 -30
  419. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js.map +0 -1
  420. package/dist/containers/PDiskPage/PDiskGroups/utils.d.ts +0 -2
  421. package/dist/containers/PDiskPage/PDiskGroups/utils.js +0 -14
  422. package/dist/containers/PDiskPage/PDiskGroups/utils.js.map +0 -1
  423. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +0 -14
  424. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +0 -1
  425. package/dist/containers/Storage/StorageGroups/StorageGroups.d.ts +0 -13
  426. package/dist/containers/Storage/StorageGroups/StorageGroups.js.map +0 -1
  427. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.d.ts +0 -21
  428. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js.map +0 -1
  429. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.d.ts +0 -17
  430. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js.map +0 -1
  431. package/dist/containers/Storage/StorageNodes/StorageNodes.d.ts +0 -19
  432. package/dist/containers/Storage/StorageNodes/StorageNodes.js.map +0 -1
  433. package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.d.ts +0 -50
  434. package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js.map +0 -1
  435. package/dist/containers/Storage/UsageFilter/UsageFilter.d.ts +0 -14
  436. package/dist/containers/Storage/UsageFilter/UsageFilter.js +0 -39
  437. package/dist/containers/Storage/UsageFilter/UsageFilter.js.map +0 -1
  438. package/dist/containers/Storage/UsageFilter/UsageFilter.scss +0 -38
  439. package/dist/containers/Storage/UsageFilter/i18n/en.json +0 -5
  440. package/dist/containers/Storage/UsageFilter/i18n/index.d.ts +0 -2
  441. package/dist/containers/Storage/UsageFilter/i18n/index.js +0 -6
  442. package/dist/containers/Storage/UsageFilter/i18n/index.js.map +0 -1
  443. package/dist/containers/Storage/UsageFilter/i18n/ru.json +0 -5
  444. package/dist/containers/Storage/UsageFilter/index.d.ts +0 -1
  445. package/dist/containers/Storage/UsageFilter/index.js +0 -2
  446. package/dist/containers/Storage/UsageFilter/index.js.map +0 -1
  447. package/dist/containers/Storage/i18n/ru.json +0 -6
  448. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/ru.json +0 -4
  449. package/dist/containers/Tenant/utils/queryTemplates.js.map +0 -1
  450. package/dist/containers/VDiskPage/utils.d.ts +0 -2
  451. package/dist/containers/VDiskPage/utils.js +0 -7
  452. package/dist/containers/VDiskPage/utils.js.map +0 -1
  453. package/dist/store/reducers/describe.d.ts +0 -7
  454. package/dist/store/reducers/describe.js +0 -25
  455. package/dist/store/reducers/describe.js.map +0 -1
  456. package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +0 -4
  457. package/dist/store/reducers/tenantOverview/topNodes/topNodes.js +0 -27
  458. package/dist/store/reducers/tenantOverview/topNodes/topNodes.js.map +0 -1
  459. /package/dist/containers/Tenant/utils/{queryTemplates.d.ts → schemaQueryTemplates.d.ts} +0 -0
@@ -0,0 +1,9 @@
1
+ import type { Column as DataTableColumn } from '@gravity-ui/react-data-table';
2
+ import type { Column as PaginatedTableColumn } from '../../../components/PaginatedTable';
3
+ import type { NodesPreparedEntity } from '../../../store/reducers/nodes/types';
4
+ import type { GetNodeRefFunc } from '../../../types/additionalProps';
5
+ export interface GetNodesColumnsProps {
6
+ database?: string;
7
+ getNodeRef?: GetNodeRefFunc;
8
+ }
9
+ export type NodesColumn = PaginatedTableColumn<NodesPreparedEntity> & DataTableColumn<NodesPreparedEntity>;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/containers/Nodes/columns/types.ts"],"names":[],"mappings":""}
@@ -1,3 +1,4 @@
1
1
  import type { FetchData } from '../../components/PaginatedTable';
2
- import type { NodesApiRequestParams, NodesFilters, NodesPreparedEntity } from '../../store/reducers/nodes/types';
3
- export declare const getNodes: FetchData<NodesPreparedEntity, NodesFilters, Pick<NodesApiRequestParams, 'type' | 'storage' | 'tablets'>>;
2
+ import type { NodesFilters, NodesPreparedEntity } from '../../store/reducers/nodes/types';
3
+ import type { NodesRequestParams } from '../../types/api/nodes';
4
+ export declare const getNodes: FetchData<NodesPreparedEntity, NodesFilters, Pick<NodesRequestParams, 'type' | 'storage' | 'tablets'>>;
@@ -1,5 +1,6 @@
1
1
  import { prepareNodesData } from '../../store/reducers/nodes/utils';
2
- import { getProblemParamValue, getUptimeParamValue } from '../../utils/nodes';
2
+ import { prepareSortValue } from '../../utils/filters';
3
+ import { getProblemParamValue, getUptimeParamValue, isSortableNodesProperty, } from '../../utils/nodes';
3
4
  const getConcurrentId = (limit, offset) => {
4
5
  return `getNodes|offset${offset}|limit${limit}`;
5
6
  };
@@ -7,14 +8,16 @@ export const getNodes = async (params) => {
7
8
  const { type = 'any', storage = false, tablets = true, limit, offset, sortParams, filters, } = params;
8
9
  const { sortOrder, columnId } = sortParams !== null && sortParams !== void 0 ? sortParams : {};
9
10
  const { path, database, searchValue, problemFilter, uptimeFilter } = filters !== null && filters !== void 0 ? filters : {};
11
+ const sort = isSortableNodesProperty(columnId)
12
+ ? prepareSortValue(columnId, sortOrder)
13
+ : undefined;
10
14
  const response = await window.api.getNodes({
11
15
  type,
12
16
  storage,
13
17
  tablets,
14
18
  limit,
15
19
  offset,
16
- sortOrder,
17
- sortValue: columnId,
20
+ sort,
18
21
  path,
19
22
  database,
20
23
  filter: searchValue,
@@ -1 +1 @@
1
- {"version":3,"file":"getNodes.js","sourceRoot":"","sources":["../../../src/containers/Nodes/getNodes.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,gBAAgB,EAAC,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAC,oBAAoB,EAAE,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AAG5E,MAAM,eAAe,GAAG,CAAC,KAAc,EAAE,MAAe,EAAE,EAAE;IACxD,OAAO,kBAAkB,MAAM,SAAS,KAAK,EAAE,CAAC;AACpD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAIjB,KAAK,EAAE,MAAM,EAAE,EAAE;IACjB,MAAM,EACF,IAAI,GAAG,KAAK,EACZ,OAAO,GAAG,KAAK,EACf,OAAO,GAAG,IAAI,EACd,KAAK,EACL,MAAM,EACN,UAAU,EACV,OAAO,GACV,GAAG,MAAM,CAAC;IAEX,MAAM,EAAC,SAAS,EAAE,QAAQ,EAAC,GAAG,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,EAAE,CAAC;IAC/C,MAAM,EAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,E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
  import { api } from '../../store/reducers/api';
18
18
  import { selectIsUserAllowedToMakeChanges } from '../../store/reducers/authentication/authentication';
19
+ import { useDiskPagesAvailable } from '../../store/reducers/capabilities/hooks';
19
20
  import { setHeaderBreadcrumbs } from '../../store/reducers/header/header';
20
21
  import { pDiskApi } from '../../store/reducers/pdisk/pdisk';
21
22
  import { valueIsDefined } from '../../utils';
22
23
  import { cn } from '../../utils/cn';
23
24
  import { getPDiskId, getSeverityColor } from '../../utils/disks/helpers';
24
25
  import { useAutoRefreshInterval, useTypedDispatch, useTypedSelector } from '../../utils/hooks';
26
+ import { Storage } from '../Storage/Storage';
25
27
  import { DecommissionButton } from './DecommissionButton/DecommissionButton';
26
28
  import { DecommissionLabel } from './DecommissionLabel/DecommissionLabel';
27
- import { PDiskGroups } from './PDiskGroups/PDiskGroups';
28
29
  import { PDiskSpaceDistribution } from './PDiskSpaceDistribution/PDiskSpaceDistribution';
29
30
  import { pDiskPageKeyset } from './i18n';
30
31
  import './PDiskPage.scss';
31
32
  const pdiskPageCn = cn('ydb-pdisk-page');
32
33
  const PDISK_TABS_IDS = {
33
34
  diskDistribution: 'diskDistribution',
34
- groups: 'groups',
35
+ storage: 'storage',
35
36
  };
36
37
  const PDISK_PAGE_TABS = [
37
38
  {
@@ -41,9 +42,9 @@ const PDISK_PAGE_TABS = [
41
42
  },
42
43
  },
43
44
  {
44
- id: PDISK_TABS_IDS.groups,
45
+ id: PDISK_TABS_IDS.storage,
45
46
  get title() {
46
- return pDiskPageKeyset('groups');
47
+ return pDiskPageKeyset('storage');
47
48
  },
48
49
  },
49
50
  ];
@@ -51,6 +52,7 @@ const pDiskTabSchema = z.nativeEnum(PDISK_TABS_IDS).catch(PDISK_TABS_IDS.diskDis
51
52
  export function PDiskPage() {
52
53
  const dispatch = useTypedDispatch();
53
54
  const isUserAllowedToMakeChanges = useTypedSelector(selectIsUserAllowedToMakeChanges);
55
+ const newDiskApiAvailable = useDiskPagesAvailable();
54
56
  const [{ nodeId, pDiskId, activeTab }] = useQueryParams({
55
57
  activeTab: StringParam,
56
58
  nodeId: StringParam,
@@ -71,7 +73,7 @@ export function PDiskPage() {
71
73
  const { NodeHost, NodeId, NodeType, NodeDC, Severity, DecommitStatus } = pDiskData || {};
72
74
  const handleRestart = async (isRetry) => {
73
75
  if (pDiskParamsDefined) {
74
- const response = await window.api.restartPDisk({ nodeId, pDiskId, force: isRetry });
76
+ const response = await window.api[newDiskApiAvailable ? 'restartPDisk' : 'restartPDiskOld']({ nodeId, pDiskId, force: isRetry });
75
77
  if ((response === null || response === void 0 ? void 0 : response.result) === false) {
76
78
  const err = {
77
79
  statusText: response.error,
@@ -119,7 +121,7 @@ export function PDiskPage() {
119
121
  return (_jsxs("div", { className: pdiskPageCn('title'), children: [_jsx(EntityPageTitle, { entityName: pDiskPageKeyset('pdisk'), status: getSeverityColor(Severity), id: getPDiskId(nodeId, pDiskId) }), _jsx(DecommissionLabel, { decommission: DecommitStatus })] }));
120
122
  };
121
123
  const renderControls = () => {
122
- return (_jsxs("div", { className: pdiskPageCn('controls'), children: [_jsxs(ButtonWithConfirmDialog, { onConfirmAction: handleRestart, onConfirmActionSuccess: handleAfterAction, buttonDisabled: !pDiskParamsDefined || !isUserAllowedToMakeChanges, buttonView: "normal", dialogHeader: pDiskPageKeyset('restart-pdisk-dialog-header'), dialogText: pDiskPageKeyset('restart-pdisk-dialog-text'), retryButtonText: pDiskPageKeyset('force-restart-pdisk-button'), withPopover: true, popoverContent: pDiskPageKeyset('restart-pdisk-not-allowed'), popoverDisabled: isUserAllowedToMakeChanges, children: [_jsx(Icon, { data: ArrowRotateLeft }), pDiskPageKeyset('restart-pdisk-button')] }), _jsx(DecommissionButton, { decommission: DecommitStatus, onConfirmAction: handleDecommissionChange, onConfirmActionSuccess: handleAfterAction, buttonDisabled: !pDiskParamsDefined || !isUserAllowedToMakeChanges, popoverDisabled: isUserAllowedToMakeChanges })] }));
124
+ return (_jsxs("div", { className: pdiskPageCn('controls'), children: [_jsxs(ButtonWithConfirmDialog, { onConfirmAction: handleRestart, onConfirmActionSuccess: handleAfterAction, buttonDisabled: !pDiskParamsDefined || !isUserAllowedToMakeChanges, buttonView: "normal", dialogHeader: pDiskPageKeyset('restart-pdisk-dialog-header'), dialogText: pDiskPageKeyset('restart-pdisk-dialog-text'), retryButtonText: pDiskPageKeyset('force-restart-pdisk-button'), withPopover: true, popoverContent: pDiskPageKeyset('restart-pdisk-not-allowed'), popoverDisabled: isUserAllowedToMakeChanges, children: [_jsx(Icon, { data: ArrowRotateLeft }), pDiskPageKeyset('restart-pdisk-button')] }), newDiskApiAvailable ? (_jsx(DecommissionButton, { decommission: DecommitStatus, onConfirmAction: handleDecommissionChange, onConfirmActionSuccess: handleAfterAction, buttonDisabled: !pDiskParamsDefined || !isUserAllowedToMakeChanges, popoverDisabled: isUserAllowedToMakeChanges })) : null] }));
123
125
  };
124
126
  const renderInfo = () => {
125
127
  if (pDiskLoading) {
@@ -138,10 +140,10 @@ export function PDiskPage() {
138
140
  const renderTabsContent = () => {
139
141
  switch (pDiskTab) {
140
142
  case 'diskDistribution': {
141
- return pDiskData ? _jsx(PDiskSpaceDistribution, { data: pDiskData }) : null;
143
+ return pDiskData ? (_jsx("div", { className: pdiskPageCn('disk-distribution'), children: _jsx(PDiskSpaceDistribution, { data: pDiskData }) })) : null;
142
144
  }
143
- case 'groups': {
144
- return pDiskParamsDefined ? (_jsx(PDiskGroups, { nodeId: nodeId, pDiskId: pDiskId })) : null;
145
+ case 'storage': {
146
+ return pDiskParamsDefined ? _jsx(Storage, { nodeId: nodeId, pDiskId: pDiskId }) : null;
145
147
  }
146
148
  default:
147
149
  return null;
@@ -153,6 +155,6 @@ export function PDiskPage() {
153
155
  }
154
156
  return _jsx(ResponseError, { error: pdiskDataQuery.error });
155
157
  };
156
- return (_jsxs("div", { className: pdiskPageCn(null), children: [_jsxs("div", { className: pdiskPageCn('info-content'), children: [renderHelmet(), renderPageMeta(), renderPageTitle(), renderControls(), renderError(), renderInfo(), renderTabs()] }), _jsx("div", { className: pdiskPageCn('tabs-content'), children: renderTabsContent() })] }));
158
+ return (_jsxs("div", { className: pdiskPageCn(null), children: [renderHelmet(), renderPageMeta(), renderPageTitle(), renderControls(), renderError(), renderInfo(), renderTabs(), renderTabsContent()] }));
157
159
  }
158
160
  //# sourceMappingURL=PDiskPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PDiskPage.js","sourceRoot":"","sources":["../../../src/containers/PDiskPage/PDiskPage.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EAAC,eAAe,EAAC,MAAM,kDAAkD,CAAC;AACjF,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAC,kBAAkB,EAAC,MAAM,wDAAwD,CAAC;AAC1F,OAAO,EAAC,YAAY,EAAC,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAC,SAAS,EAAC,MAAM,sCAAsC,CAAC;AAC/D,OAAO,EAAC,uBAAuB,EAAC,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,GAAG,EAAC,MAAM,0BAA0B,CAAC;AAC7C,OAAO,EAAC,gCAAgC,EAAC,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAC,oBAAoB,EA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ACrF,CAAC;YACD;gBACI,OAAO,IAAI,CAAC;QACpB,CAAC;IACL,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,GAAG,EAAE;QACrB,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC;YACxB,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,OAAO,KAAC,aAAa,IAAC,KAAK,EAAE,cAAc,CAAC,KAAK,GAAI,CAAC;IAC1D,CAAC,CAAC;IAEF,OAAO,CACH,eAAK,SAAS,EAAE,WAAW,CAAC,IAAI,CAAC,aAC5B,YAAY,EAAE,EACd,cAAc,EAAE,EAChB,eAAe,EAAE,EACjB,cAAc,EAAE,EAChB,WAAW,EAAE,EACb,UAAU,EAAE,EACZ,UAAU,EAAE,EACZ,iBAAiB,EAAE,IAClB,CACT,CAAC;AACN,CAAC"}
@@ -6,29 +6,29 @@
6
6
  overflow: auto;
7
7
 
8
8
  height: 100%;
9
+ padding: 0 20px;
9
10
 
10
- &__info-content {
11
+ &__meta,
12
+ &__title,
13
+ &__info,
14
+ &__controls,
15
+ &__tabs {
11
16
  position: sticky;
12
17
  left: 0;
13
18
 
14
- display: flex;
15
- flex-direction: column;
16
- gap: 20px;
17
-
18
- padding: 20px;
19
+ margin-bottom: 20px;
19
20
  }
20
21
 
21
- &__tabs-content {
22
- padding-left: 20px;
22
+ &__meta {
23
+ margin-top: 20px;
23
24
  }
24
25
 
25
- &__meta,
26
- &__title,
27
- &__info,
28
- &__controls,
29
26
  &__tabs {
30
- position: sticky;
31
- left: 0;
27
+ margin-bottom: 0;
28
+ }
29
+
30
+ &__disk-distribution {
31
+ padding: 20px 0;
32
32
  }
33
33
 
34
34
  &__title {
@@ -2,7 +2,7 @@
2
2
  "fqdn": "FQDN",
3
3
  "pdisk": "PDisk",
4
4
  "node": "Node",
5
- "groups": "Groups",
5
+ "storage": "Storage",
6
6
  "disk-distribution": "Disk distribution",
7
7
  "empty-slot": "Empty slot",
8
8
  "log": "Log",
@@ -1 +1 @@
1
- export declare const pDiskPageKeyset: (key: "node" | "groups" | "log" | "fqdn" | "pdisk" | "disk-distribution" | "empty-slot" | "label.log-size" | "label.system-size" | "label.slot-size" | "no-slots-data" | "restart-pdisk-button" | "force-restart-pdisk-button" | "restart-pdisk-not-allowed" | "restart-pdisk-dialog-header" | "restart-pdisk-dialog-text" | "decommission-none" | "decommission-imminent" | "decommission-pending" | "decommission-rejected" | "decommission-label" | "decommission-button" | "decommission-change-not-allowed" | "decommission-dialog-title" | "decommission-dialog-force-change" | "decommission-dialog-imminent-warning" | "decommission-dialog-pending-warning" | "decommission-dialog-rejected-warning" | "decommission-dialog-none-warning", params?: import("@gravity-ui/i18n").Params) => string;
1
+ export declare const pDiskPageKeyset: (key: "storage" | "node" | "log" | "fqdn" | "pdisk" | "disk-distribution" | "empty-slot" | "label.log-size" | "label.system-size" | "label.slot-size" | "no-slots-data" | "restart-pdisk-button" | "force-restart-pdisk-button" | "restart-pdisk-not-allowed" | "restart-pdisk-dialog-header" | "restart-pdisk-dialog-text" | "decommission-none" | "decommission-imminent" | "decommission-pending" | "decommission-rejected" | "decommission-label" | "decommission-button" | "decommission-change-not-allowed" | "decommission-dialog-title" | "decommission-dialog-force-change" | "decommission-dialog-imminent-warning" | "decommission-dialog-pending-warning" | "decommission-dialog-rejected-warning" | "decommission-dialog-none-warning", params?: import("@gravity-ui/i18n").Params) => string;
@@ -19,18 +19,18 @@ function ReduxTooltip(props) {
19
19
  const fakeAnchor = useVirtualElementRef({
20
20
  rect: { top: (_a = props.positions) === null || _a === void 0 ? void 0 : _a.top, left: (_b = props.positions) === null || _b === void 0 ? void 0 : _b.left },
21
21
  });
22
+ const handleScroll = React.useCallback(() => {
23
+ const { hideTooltip, toolTipVisible } = props;
24
+ if (toolTipVisible) {
25
+ setTimeout(() => hideTooltip(), 500);
26
+ }
27
+ }, [props]);
22
28
  React.useEffect(() => {
23
29
  window.addEventListener('scroll', handleScroll, true);
24
30
  return () => {
25
31
  window.removeEventListener('scroll', handleScroll);
26
32
  };
27
- }, []);
28
- const handleScroll = () => {
29
- const { hideTooltip, toolTipVisible } = props;
30
- if (toolTipVisible) {
31
- setTimeout(() => hideTooltip(), 500);
32
- }
33
- };
33
+ }, [handleScroll]);
34
34
  const renderPositionPopup = (visible, positions, data, additionalData) => {
35
35
  const { template, popupClassName, hideTooltip } = props;
36
36
  return (_jsx(React.Fragment, { children: _jsx(Popup, { open: visible, placement: ['top', 'bottom', 'left', 'right'], contentClassName: popupClassName, anchorRef: fakeAnchor, onOutsideClick: hideTooltip, children: data && template(data, additionalData) }) }));
@@ -1 +1 @@
1
- {"version":3,"file":"ReduxTooltip.js","sourceRoot":"","sources":["../../../src/containers/ReduxTooltip/ReduxTooltip.js"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,KAAK,EAAE,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAC9D,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AAErD,OAAO,qBAAqB,CAAC;AAE7B,MAAM,SAAS,GAAG;IACd,SAAS,EAAE,SAAS,CAAC,MAAM;IAC3B,cAAc,EAAE,SAAS,CAAC,IAAI;IAC9B,iBAAiB,EAAE,SAAS,CAAC,MAAM;IACnC,IAAI,EAAE,SAAS,CAAC,GAAG;IACnB,QAAQ,EAAE,SAAS,CAAC,IAAI;IACxB,WAAW,EAAE,SAAS,CAAC,IAAI;CAC9B,CAAC;AAEF,SAAS,YAAY,CAAC,KAAK;;IACvB,MAAM,UAAU,GAAG,oBAAoB,CAAC;QACpC,IAAI,EAAE,EAAC,GAAG,EAAE,MAAA,KAAK,CAAC,SAAS,0CAAE,GAAG,EAAE,IAAI,EAAE,MAAA,KAAK,CAAC,SAAS,0CAAE,IA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,CACH,cAAK,SAAS,EAAE,iBAAiB,SAAS,EAAE,YACvC,SAAS;YACN,CAAC,CAAC,mBAAmB,CAAC,cAAc,EAAE,SAAS,EAAE,IAAI,EAAE,cAAc,CAAC;YACtE,CAAC,CAAC,iBAAiB,CAAC,cAAc,EAAE,iBAAiB,EAAE,IAAI,EAAE,cAAc,CAAC,GAC9E,CACT,CAAC;AACN,CAAC;AAED,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE,EAAE;IAC9B,MAAM,EAAC,cAAc,EAAE,iBAAiB,EAAE,IAAI,EAAE,YAAY,EAAE,cAAc,EAAE,SAAS,EAAC,GACpF,KAAK,CAAC,OAAO,CAAC;IAElB,MAAM,EAAC,cAAc,EAAC,GAAG,cAAc,IAAI,EAAE,CAAC;IAE9C,OAAO;QACH,cAAc;QACd,iBAAiB;QACjB,IAAI;QACJ,QAAQ,EAAE,gBAAgB,CAAC,YAAY,CAAC;QACxC,cAAc;QACd,SAAS;QACT,cAAc;KACjB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC,eAAe,EAAE,EAAC,WAAW,EAAC,CAAC,CAAC,YAAY,CAAC,CAAC;AAErE,YAAY,CAAC,SAAS,GAAG,SAAS,CAAC"}
@@ -1,9 +1,9 @@
1
- import type { NodesMap } from '../../../types/store/nodesList';
2
1
  import type { PreparedVDisk } from '../../../utils/disks/types';
2
+ import type { VDiskViewContext } from '../utils';
3
3
  import './Disks.scss';
4
4
  interface DisksProps {
5
5
  vDisks?: PreparedVDisk[];
6
- nodes?: NodesMap;
6
+ viewContext?: VDiskViewContext;
7
7
  }
8
- export declare function Disks({ vDisks, nodes }: DisksProps): import("react/jsx-runtime").JSX.Element | null;
8
+ export declare function Disks({ vDisks, viewContext }: DisksProps): import("react/jsx-runtime").JSX.Element | null;
9
9
  export {};
@@ -5,27 +5,26 @@ import { cn } from '../../../utils/cn';
5
5
  import { stringifyVdiskId } from '../../../utils/dataFormatters/dataFormatters';
6
6
  import { getPDiskId } from '../../../utils/disks/helpers';
7
7
  import { PDisk } from '../PDisk';
8
+ import { isVdiskActive } from '../utils';
8
9
  import './Disks.scss';
9
10
  const b = cn('ydb-storage-disks');
10
- export function Disks({ vDisks = [], nodes }) {
11
+ export function Disks({ vDisks = [], viewContext }) {
11
12
  const [highlightedVDisk, setHighlightedVDisk] = React.useState();
12
13
  if (!vDisks.length) {
13
14
  return null;
14
15
  }
15
- return (_jsxs("div", { className: b(null), children: [_jsx("div", { className: b('vdisks-wrapper'), children: vDisks === null || vDisks === void 0 ? void 0 : vDisks.map((vDisk) => {
16
- return (_jsx(VDiskItem, { vDisk: vDisk, nodes: nodes, highlightedVDisk: highlightedVDisk, setHighlightedVDisk: setHighlightedVDisk }, stringifyVdiskId(vDisk.VDiskId)));
17
- }) }), _jsx("div", { className: b('pdisks-wrapper'), children: vDisks === null || vDisks === void 0 ? void 0 : vDisks.map((vDisk) => {
16
+ return (_jsxs("div", { className: b(null), children: [_jsx("div", { className: b('vdisks-wrapper'), children: vDisks === null || vDisks === void 0 ? void 0 : vDisks.map((vDisk) => (_jsx(VDiskItem, { vDisk: vDisk, inactive: !isVdiskActive(vDisk, viewContext), highlightedVDisk: highlightedVDisk, setHighlightedVDisk: setHighlightedVDisk }, stringifyVdiskId(vDisk.VDiskId)))) }), _jsx("div", { className: b('pdisks-wrapper'), children: vDisks === null || vDisks === void 0 ? void 0 : vDisks.map((vDisk) => {
18
17
  var _a;
19
- return (_jsx(PDiskItem, { vDisk: vDisk, nodes: nodes, highlightedVDisk: highlightedVDisk, setHighlightedVDisk: setHighlightedVDisk }, getPDiskId(vDisk.NodeId, (_a = vDisk === null || vDisk === void 0 ? void 0 : vDisk.PDisk) === null || _a === void 0 ? void 0 : _a.PDiskId)));
18
+ return (_jsx(PDiskItem, { vDisk: vDisk, highlightedVDisk: highlightedVDisk, setHighlightedVDisk: setHighlightedVDisk }, getPDiskId(vDisk.NodeId, (_a = vDisk === null || vDisk === void 0 ? void 0 : vDisk.PDisk) === null || _a === void 0 ? void 0 : _a.PDiskId)));
20
19
  }) })] }));
21
20
  }
22
- function VDiskItem({ nodes, vDisk, highlightedVDisk, setHighlightedVDisk }) {
21
+ function VDiskItem({ vDisk, highlightedVDisk, inactive, setHighlightedVDisk }) {
23
22
  // Do not show PDisk popup for VDisk
24
23
  const vDiskToShow = { ...vDisk, PDisk: undefined };
25
24
  const vDiskId = stringifyVdiskId(vDisk.VDiskId);
26
25
  return (_jsx("div", { style: {
27
26
  flexGrow: Number(vDisk.AllocatedSize) || 1,
28
- }, className: b('vdisk-item'), children: _jsx(VDiskWithDonorsStack, { data: vDiskToShow, nodes: nodes, compact: true, showPopup: highlightedVDisk === vDiskId, onShowPopup: () => setHighlightedVDisk(vDiskId), onHidePopup: () => setHighlightedVDisk(undefined), progressBarClassName: b('vdisk-progress-bar') }) }));
27
+ }, className: b('vdisk-item'), children: _jsx(VDiskWithDonorsStack, { data: vDiskToShow, compact: true, inactive: inactive, showPopup: highlightedVDisk === vDiskId, onShowPopup: () => setHighlightedVDisk(vDiskId), onHidePopup: () => setHighlightedVDisk(undefined), progressBarClassName: b('vdisk-progress-bar') }) }));
29
28
  }
30
29
  function PDiskItem({ vDisk, highlightedVDisk, setHighlightedVDisk }) {
31
30
  const vDiskId = stringifyVdiskId(vDisk.VDiskId);
@@ -1 +1 @@
1
- {"version":3,"file":"Disks.js","sourceRoot":"","sources":["../../../../src/containers/Storage/Disks/Disks.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,oBAAoB,EAAC,MAAM,gDAAgD,CAAC;AAEpF,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AACrC,OAAO,EAAC,gBAAgB,EAAC,MAAM,8CAA8C,CAAC;AAC9E,OAAO,EAAC,UAAU,EAAC,MAAM,8BAA8B,CAAC;AAExD,OAAO,EAAC,KAAK,EAAC,MAAM,UAAU,CAAC;AAE/B,OAAO,cAAc,CAAC;AAEtB,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AC,KAAK,CAAC,KAAK,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,CACH,KAAC,KAAK,IACF,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,EAC1B,oBAAoB,EAAE,CAAC,CAAC,oBAAoB,CAAC,EAC7C,IAAI,EAAE,KAAK,CAAC,KAAK,EACjB,SAAS,EAAE,gBAAgB,KAAK,OAAO,EACvC,WAAW,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,OAAO,CAAC,EAC/C,WAAW,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,SAAS,CAAC,GACnD,CACL,CAAC;AACN,CAAC"}
@@ -1,14 +1,15 @@
1
- import type { TVDiskStateInfo } from '../../../types/api/vdisk';
2
- import type { PreparedPDisk } from '../../../utils/disks/types';
1
+ import type { PreparedPDisk, PreparedVDisk } from '../../../utils/disks/types';
2
+ import type { VDiskViewContext } from '../utils';
3
3
  import './PDisk.scss';
4
4
  interface PDiskProps {
5
5
  data?: PreparedPDisk;
6
- vDisks?: TVDiskStateInfo[];
6
+ vDisks?: PreparedVDisk[];
7
7
  showPopup?: boolean;
8
8
  onShowPopup?: VoidFunction;
9
9
  onHidePopup?: VoidFunction;
10
10
  className?: string;
11
11
  progressBarClassName?: string;
12
+ viewContext?: VDiskViewContext;
12
13
  }
13
- export declare const PDisk: ({ data, vDisks, showPopup, onShowPopup, onHidePopup, className, progressBarClassName, }: PDiskProps) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const PDisk: ({ data, vDisks, showPopup, onShowPopup, onHidePopup, className, progressBarClassName, viewContext, }: PDiskProps) => import("react/jsx-runtime").JSX.Element;
14
15
  export {};
@@ -10,9 +10,10 @@ import { valueIsDefined } from '../../../utils';
10
10
  import { cn } from '../../../utils/cn';
11
11
  import { stringifyVdiskId } from '../../../utils/dataFormatters/dataFormatters';
12
12
  import { STRUCTURE } from '../../Node/NodePages';
13
+ import { isVdiskActive } from '../utils';
13
14
  import './PDisk.scss';
14
15
  const b = cn('pdisk-storage');
15
- export const PDisk = ({ data = {}, vDisks, showPopup, onShowPopup, onHidePopup, className, progressBarClassName, }) => {
16
+ export const PDisk = ({ data = {}, vDisks, showPopup, onShowPopup, onHidePopup, className, progressBarClassName, viewContext, }) => {
16
17
  const [isPopupVisible, setIsPopupVisible] = React.useState(false);
17
18
  const diskPagesAvailable = useDiskPagesAvailable();
18
19
  const anchor = React.useRef(null);
@@ -35,7 +36,7 @@ export const PDisk = ({ data = {}, vDisks, showPopup, onShowPopup, onHidePopup,
35
36
  // 1 is small enough for empty disks to be of the minimum width
36
37
  // but if all of them are empty, `flex-grow: 1` would size them evenly
37
38
  flexGrow: Number(vdisk.AllocatedSize) || 1,
38
- }, children: _jsx(VDiskWithDonorsStack, { data: vdisk, compact: true, stackClassName: b('donors-stack') }) }, stringifyVdiskId(vdisk.VDiskId)));
39
+ }, children: _jsx(VDiskWithDonorsStack, { data: vdisk, inactive: !isVdiskActive(vdisk, viewContext), stackClassName: b('donors-stack'), compact: true }) }, stringifyVdiskId(vdisk.VDiskId)));
39
40
  }) }));
40
41
  };
41
42
  let pDiskPath;
@@ -1 +1 @@
1
- {"version":3,"file":"PDisk.js","sourceRoot":"","sources":["../../../../src/containers/Storage/PDisk/PDisk.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,oBAAoB,EAAC,MAAM,+DAA+D,CAAC;AACnG,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAC,UAAU,EAAC,MAAM,2CAA2C,CAAC;AACrE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gDAAgD,CAAC;AACpF,OAAO,MAAM,EAAE,EAAC,UAAU,EAAE,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAC,qBAAqB,EAAC,MAAM,4CAA4C,CAAC;AAEjF,OAAO,EAAC,cAAc,EAAC,MAAM,gBAAgB,CA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
- import type { AdditionalNodesProps } from '../../types/additionalProps';
2
- interface PaginatedStorageProps {
1
+ export interface PaginatedStorageProps {
3
2
  database?: string;
4
- nodeId?: string;
3
+ nodeId?: string | number;
4
+ groupId?: string | number;
5
+ pDiskId?: string | number;
5
6
  parentContainer?: Element | null;
6
- additionalNodesProps?: AdditionalNodesProps;
7
7
  }
8
- export declare const PaginatedStorage: ({ database, nodeId, parentContainer, additionalNodesProps, }: PaginatedStorageProps) => import("react/jsx-runtime").JSX.Element;
9
- export {};
8
+ export declare const PaginatedStorage: (props: PaginatedStorageProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,58 +1,13 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { StringParam, useQueryParams } from 'use-query-params';
3
- import { AccessDenied } from '../../components/Errors/403/AccessDenied';
4
- import { ResponseError } from '../../components/Errors/ResponseError/ResponseError';
5
- import { STORAGE_TYPES, VISIBLE_ENTITIES } from '../../store/reducers/storage/constants';
6
- import { storageTypeSchema, visibleEntitiesSchema } from '../../store/reducers/storage/types';
7
- import { NodesUptimeFilterValues, nodesUptimeFilterValuesSchema } from '../../utils/nodes';
8
- import { StorageControls } from './StorageControls/StorageControls';
9
- import { PaginatedStorageGroups } from './StorageGroups/PaginatedStorageGroups';
10
- import { PaginatedStorageNodes } from './StorageNodes/PaginatedStorageNodes';
11
- export const PaginatedStorage = ({ database, nodeId, parentContainer, additionalNodesProps, }) => {
12
- var _a;
13
- const [queryParams, setQueryParams] = useQueryParams({
14
- type: StringParam,
15
- visible: StringParam,
16
- search: StringParam,
17
- uptimeFilter: StringParam,
18
- });
19
- const storageType = storageTypeSchema.parse(queryParams.type);
20
- const visibleEntities = visibleEntitiesSchema.parse(queryParams.visible);
21
- const searchValue = (_a = queryParams.search) !== null && _a !== void 0 ? _a : '';
22
- const nodesUptimeFilter = nodesUptimeFilterValuesSchema.parse(queryParams.uptimeFilter);
23
- const handleTextFilterChange = (value) => {
24
- setQueryParams({ search: value || undefined }, 'replaceIn');
25
- };
26
- const handleGroupVisibilityChange = (value) => {
27
- setQueryParams({ visible: value }, 'replaceIn');
28
- };
29
- const handleStorageTypeChange = (value) => {
30
- setQueryParams({ type: value }, 'replaceIn');
31
- };
32
- const handleUptimeFilterChange = (value) => {
33
- setQueryParams({ uptimeFilter: value }, 'replaceIn');
34
- };
35
- const handleShowAllGroups = () => {
36
- handleGroupVisibilityChange(VISIBLE_ENTITIES.all);
37
- };
38
- const handleShowAllNodes = () => {
39
- setQueryParams({
40
- visible: VISIBLE_ENTITIES.all,
41
- uptimeFilter: NodesUptimeFilterValues.All,
42
- }, 'replaceIn');
43
- };
44
- const renderControls = ({ totalEntities, foundEntities, inited }) => {
45
- return (_jsx(StorageControls, { searchValue: searchValue, handleSearchValueChange: handleTextFilterChange, withTypeSelector: !nodeId, storageType: storageType, handleStorageTypeChange: handleStorageTypeChange, visibleEntities: visibleEntities, handleVisibleEntitiesChange: handleGroupVisibilityChange, nodesUptimeFilter: nodesUptimeFilter, handleNodesUptimeFilterChange: handleUptimeFilterChange, withGroupsUsageFilter: false, entitiesCountCurrent: foundEntities, entitiesCountTotal: totalEntities, entitiesLoading: !inited }));
46
- };
47
- const renderErrorMessage = (error) => {
48
- if (error.status === 403) {
49
- return _jsx(AccessDenied, { position: "left" });
50
- }
51
- return _jsx(ResponseError, { error: error });
52
- };
53
- if (storageType === STORAGE_TYPES.nodes) {
54
- return (_jsx(PaginatedStorageNodes, { searchValue: searchValue, visibleEntities: visibleEntities, nodesUptimeFilter: nodesUptimeFilter, database: database, additionalNodesProps: additionalNodesProps, onShowAll: handleShowAllNodes, parentContainer: parentContainer, renderControls: renderControls, renderErrorMessage: renderErrorMessage }));
2
+ import { PaginatedStorageGroups } from './PaginatedStorageGroups';
3
+ import { PaginatedStorageNodes } from './PaginatedStorageNodes';
4
+ import { useStorageQueryParams } from './useStorageQueryParams';
5
+ export const PaginatedStorage = (props) => {
6
+ const { storageType } = useStorageQueryParams();
7
+ const isNodes = storageType === 'nodes';
8
+ if (isNodes) {
9
+ return _jsx(PaginatedStorageNodes, { ...props });
55
10
  }
56
- return (_jsx(PaginatedStorageGroups, { searchValue: searchValue, visibleEntities: visibleEntities, database: database, nodeId: nodeId, onShowAll: handleShowAllGroups, parentContainer: parentContainer, renderControls: renderControls, renderErrorMessage: renderErrorMessage }));
11
+ return _jsx(PaginatedStorageGroups, { ...props });
57
12
  };
58
13
  //# sourceMappingURL=PaginatedStorage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PaginatedStorage.js","sourceRoot":"","sources":["../../../src/containers/Storage/PaginatedStorage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,YAAY,EAAC,MAAM,0CAA0C,CAAC;AACtE,OAAO,EAAC,aAAa,EAAC,MAAM,qDAAqD,CAAC;AAElF,OAAO,EAAC,aAAa,EAAE,gBAAgB,EAAC,MAAM,wCAAwC,CAAC;AACvF,OAAO,EAAC,iBAAiB,EAAE,qBAAqB,EAAC,MAAM,oCAAoC,CAAC;AAG5F,OAAO,EAAC,uBAAuB,EAAE,6BAA6B,EAAC,MAAM,mBAAmB,CAAC;AAEzF,OAAO,EAAC,eAAe,EAAC,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAC,sBAAsB,EAAC,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAC,qBAAqB,EAAC,MAAM,sCAAsC,CAAC;AAS3E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAC7B,QAAQ,EACR,MAAM,EACN,eAAe,EACf,oBAAoB,GACA,EAAE,EAAE;;IACxB,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,cAAc,CAAC;QACjD,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,WAAW;QACpB,MAAM,EAAE,WAAW;QACnB,YAAY,EAAE,WAAW;KAC5B,CAAC,CAAC;IACH,MAAM,WAAW,GAAG,iBAAiB,C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Ac,EAAE,cAAc,EAC9B,kBAAkB,EAAE,kBAAkB,GACxC,CACL,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"PaginatedStorage.js","sourceRoot":"","sources":["../../../src/containers/Storage/PaginatedStorage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAW9D,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,KAA4B,EAAE,EAAE;IAC7D,MAAM,EAAC,WAAW,EAAC,GAAG,qBAAqB,EAAE,CAAC;IAE9C,MAAM,OAAO,GAAG,WAAW,KAAK,OAAO,CAAC;IAExC,IAAI,OAAO,EAAE,CAAC;QACV,OAAO,KAAC,qBAAqB,OAAK,KAAK,GAAI,CAAC;IAChD,CAAC;IAED,OAAO,KAAC,sBAAsB,OAAK,KAAK,GAAI,CAAC;AACjD,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PaginatedStorageProps } from './PaginatedStorage';
2
+ import './Storage.scss';
3
+ export declare function PaginatedStorageGroups(props: PaginatedStorageProps): import("react/jsx-runtime").JSX.Element;