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
@@ -1,14 +1,12 @@
1
1
  import type { Column as DataTableColumn } from '@gravity-ui/react-data-table';
2
2
  import type { Column as PaginatedTableColumn } from '../../../../components/PaginatedTable';
3
3
  import type { PreparedStorageGroup, VisibleEntities } from '../../../../store/reducers/storage/types';
4
- import type { NodesMap } from '../../../../types/store/nodesList';
5
4
  export type StorageGroupsColumn = PaginatedTableColumn<PreparedStorageGroup> & DataTableColumn<PreparedStorageGroup>;
6
- interface GetStorageColumnsData {
7
- nodes?: NodesMap;
5
+ export interface GetStorageColumnsData {
6
+ nodeId?: string;
8
7
  }
9
- interface GetStorageColumnsOptions {
10
- useAdvancedStorage?: boolean;
8
+ export interface GetStorageGroupsColumnsParams {
11
9
  visibleEntities?: VisibleEntities;
10
+ nodeId?: string;
12
11
  }
13
- export type StorageColumnsGetter = (data?: GetStorageColumnsData, options?: GetStorageColumnsOptions) => StorageGroupsColumn[];
14
- export {};
12
+ export type StorageColumnsGetter = (data?: GetStorageColumnsData) => StorageGroupsColumn[];
@@ -1,15 +1,15 @@
1
1
  import React from 'react';
2
2
  import { requestStorageData } from '../../../store/reducers/storage/requestStorageData';
3
3
  import { prepareSortValue } from '../../../utils/filters';
4
- const getConcurrentId = (limit, offset) => {
5
- return `getStorageGroups|offset${offset}|limit${limit}`;
6
- };
4
+ import { isSortableStorageProperty } from '../../../utils/storage';
7
5
  export function useGroupsGetter(shouldUseGroupsHandler) {
8
6
  const fetchData = React.useCallback(async (params) => {
9
7
  const { limit, offset, sortParams, filters } = params;
10
8
  const { sortOrder, columnId } = sortParams !== null && sortParams !== void 0 ? sortParams : {};
11
- const { searchValue, visibleEntities, database, nodeId } = filters !== null && filters !== void 0 ? filters : {};
12
- const sort = prepareSortValue(columnId, sortOrder);
9
+ const { searchValue, visibleEntities, database, nodeId, groupId, pDiskId, filterGroup, filterGroupBy, } = filters !== null && filters !== void 0 ? filters : {};
10
+ const sort = isSortableStorageProperty(columnId)
11
+ ? prepareSortValue(columnId, sortOrder)
12
+ : undefined;
13
13
  const { groups, found, total } = await requestStorageData({
14
14
  limit,
15
15
  offset,
@@ -18,8 +18,12 @@ export function useGroupsGetter(shouldUseGroupsHandler) {
18
18
  with: visibleEntities,
19
19
  database,
20
20
  nodeId,
21
+ groupId,
22
+ pDiskId,
23
+ filter_group: filterGroup,
24
+ filter_group_by: filterGroupBy,
21
25
  shouldUseGroupsHandler,
22
- }, { concurrentId: getConcurrentId(limit, offset) });
26
+ });
23
27
  return {
24
28
  data: groups || [],
25
29
  found: found || 0,
@@ -1 +1 @@
1
- {"version":3,"file":"getGroups.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageGroups/getGroups.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,kBAAkB,EAAC,MAAM,oDAAoD,CAAC;AAMtF,OAAO,EAAC,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AAExD,MAAM,eAAe,GAAG,CAAC,KAAc,EAAE,MAAe,EAAE,EAAE;IACxD,OAAO,0BAA0B,MAAM,SAAS,KAAK,EAAE,CAAC;AAC5D,CAAC,CAAC;AAIF,MAAM,UAAU,eAAe,CAAC,sBAA+B;IAC3D,MAAM,SAAS,GAAqB,KAAK,CAAC,WAAW,CACjD,KAAK,EAAE,MAAM,EAAE,EAAE;QACb,MAAM,EAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAC,GAAG,MAAM,CAAC;QACpD,MAAM,EAAC,SAAS,EAAE,QAAQ,EAAC,GAAG,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,EAAE,CAAC;QAC/C,MAAM,EAAC,WAAW,EAAE,eAAe,EAAE,QAAQ,EA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AC/C,MAAM,EACF,WAAW,EACX,eAAe,EACf,QAAQ,EACR,MAAM,EACN,OAAO,EACP,OAAO,EACP,WAAW,EACX,aAAa,GAChB,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC;QAElB,MAAM,IAAI,GAAG,yBAAyB,CAAC,QAAQ,CAAC;YAC5C,CAAC,CAAC,gBAAgB,CAAC,QAAQ,EAAE,SAAS,CAAC;YACvC,CAAC,CAAC,SAAS,CAAC;QAEhB,MAAM,EAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAC,GAAG,MAAM,kBAAkB,CAAC;YACpD,KAAK;YACL,MAAM;YACN,IAAI;YACJ,MAAM,EAAE,WAAW;YACnB,IAAI,EAAE,eAAe;YACrB,QAAQ;YACR,MAAM;YACN,OAAO;YACP,OAAO;YACP,YAAY,EAAE,WAAW;YACzB,eAAe,EAAE,aAAa;YAC9B,sBAAsB;SACzB,CAAC,CAAC;QAEH,OAAO;YACH,IAAI,EAAE,MAAM,IAAI,EAAE;YAClB,KAAK,EAAE,KAAK,IAAI,CAAC;YACjB,KAAK,EAAE,KAAK,IAAI,CAAC;SACpB,CAAC;IACN,CAAC,EACD,CAAC,sBAAsB,CAAC,CAC3B,CAAC;IAEF,OAAO,SAAS,CAAC;AACrB,CAAC"}
@@ -0,0 +1,23 @@
1
+ import type { RenderControls, RenderErrorMessage } from '../../../components/PaginatedTable';
2
+ import type { VisibleEntities } from '../../../store/reducers/storage/types';
3
+ import type { NodesGroupByField } from '../../../types/api/nodes';
4
+ import { NodesUptimeFilterValues } from '../../../utils/nodes';
5
+ import type { StorageNodesColumn } from './columns/types';
6
+ interface PaginatedStorageNodesTableProps {
7
+ columns: StorageNodesColumn[];
8
+ database?: string;
9
+ nodeId?: string | number;
10
+ groupId?: string | number;
11
+ filterGroup?: string;
12
+ filterGroupBy?: NodesGroupByField;
13
+ searchValue: string;
14
+ visibleEntities: VisibleEntities;
15
+ nodesUptimeFilter: NodesUptimeFilterValues;
16
+ onShowAll: VoidFunction;
17
+ parentContainer?: Element | null;
18
+ renderControls?: RenderControls;
19
+ renderErrorMessage: RenderErrorMessage;
20
+ initialEntitiesCount?: number;
21
+ }
22
+ export declare const PaginatedStorageNodesTable: ({ columns, database, nodeId, groupId, filterGroup, filterGroupBy, searchValue, visibleEntities, nodesUptimeFilter, onShowAll, parentContainer, renderControls, renderErrorMessage, initialEntitiesCount, }: PaginatedStorageNodesTableProps) => import("react/jsx-runtime").JSX.Element;
23
+ export {};
@@ -4,17 +4,32 @@ import { ResizeablePaginatedTable } from '../../../components/PaginatedTable';
4
4
  import { VISIBLE_ENTITIES } from '../../../store/reducers/storage/constants';
5
5
  import { NodesUptimeFilterValues } from '../../../utils/nodes';
6
6
  import { StorageNodesEmptyDataMessage } from './StorageNodesEmptyDataMessage';
7
+ import { STORAGE_NODES_COLUMNS_WIDTH_LS_KEY } from './columns/constants';
7
8
  import { getStorageNodes } from './getNodes';
8
- import { STORAGE_NODES_COLUMNS_WIDTH_LS_KEY, getPreparedStorageNodesColumns, } from './getStorageNodesColumns';
9
9
  import i18n from './i18n';
10
10
  import { getRowUnavailableClassName } from './shared';
11
- export const PaginatedStorageNodes = ({ searchValue, visibleEntities, nodesUptimeFilter, database, additionalNodesProps, onShowAll, parentContainer, renderControls, renderErrorMessage, }) => {
11
+ export const PaginatedStorageNodesTable = ({ columns, database, nodeId, groupId, filterGroup, filterGroupBy, searchValue, visibleEntities, nodesUptimeFilter, onShowAll, parentContainer, renderControls, renderErrorMessage, initialEntitiesCount, }) => {
12
12
  const tableFilters = React.useMemo(() => {
13
- return { searchValue, visibleEntities, nodesUptimeFilter, database };
14
- }, [searchValue, visibleEntities, nodesUptimeFilter, database]);
15
- const columns = React.useMemo(() => {
16
- return getPreparedStorageNodesColumns(additionalNodesProps, visibleEntities, database);
17
- }, [additionalNodesProps, visibleEntities, database]);
13
+ return {
14
+ searchValue,
15
+ visibleEntities,
16
+ nodesUptimeFilter,
17
+ database,
18
+ nodeId,
19
+ groupId,
20
+ filterGroup,
21
+ filterGroupBy,
22
+ };
23
+ }, [
24
+ searchValue,
25
+ visibleEntities,
26
+ nodesUptimeFilter,
27
+ database,
28
+ nodeId,
29
+ groupId,
30
+ filterGroup,
31
+ filterGroupBy,
32
+ ]);
18
33
  const renderEmptyDataMessage = () => {
19
34
  if (visibleEntities !== VISIBLE_ENTITIES.all ||
20
35
  nodesUptimeFilter !== NodesUptimeFilterValues.All) {
@@ -22,6 +37,6 @@ export const PaginatedStorageNodes = ({ searchValue, visibleEntities, nodesUptim
22
37
  }
23
38
  return i18n('empty.default');
24
39
  };
25
- return (_jsx(ResizeablePaginatedTable, { columnsWidthLSKey: STORAGE_NODES_COLUMNS_WIDTH_LS_KEY, parentContainer: parentContainer, columns: columns, fetchData: getStorageNodes, rowHeight: 51, limit: 50, renderControls: renderControls, renderErrorMessage: renderErrorMessage, renderEmptyDataMessage: renderEmptyDataMessage, getRowClassName: getRowUnavailableClassName, filters: tableFilters, tableName: "storage-nodes" }));
40
+ return (_jsx(ResizeablePaginatedTable, { columnsWidthLSKey: STORAGE_NODES_COLUMNS_WIDTH_LS_KEY, parentContainer: parentContainer, columns: columns, fetchData: getStorageNodes, rowHeight: 51, limit: 50, initialEntitiesCount: initialEntitiesCount, renderControls: renderControls, renderErrorMessage: renderErrorMessage, renderEmptyDataMessage: renderEmptyDataMessage, getRowClassName: getRowUnavailableClassName, filters: tableFilters, tableName: "storage-nodes" }));
26
41
  };
27
- //# sourceMappingURL=PaginatedStorageNodes.js.map
42
+ //# sourceMappingURL=PaginatedStorageNodesTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaginatedStorageNodesTable.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageNodes/PaginatedStorageNodesTable.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,wBAAwB,EAAC,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAC,gBAAgB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,EAAE,kCAAkC,EACrD,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,eAAe,EAC1B,SAAS,EAAE,EAAE,EACb,KAAK,EAAE,EAAE,EACT,oBAAoB,EAAE,oBAAoB,EAC1C,cAAc,EAAE,cAAc,EAC9B,kBAAkB,EAAE,kBAAkB,EACtC,sBAAsB,EAAE,sBAAsB,EAC9C,eAAe,EAAE,0BAA0B,EAC3C,OAAO,EAAE,YAAY,EACrB,SAAS,EAAC,eAAe,GAC3B,CACL,CAAC;AACN,CAAC,CAAC"}
@@ -1,30 +1,4 @@
1
- .global-storage-nodes {
2
- &__pdisks-column {
3
- overflow: visible; // to enable stacked disks overflow the row
4
- }
5
-
6
- &__pdisks-wrapper {
7
- display: flex;
8
- justify-content: left;
9
- align-items: flex-end;
10
-
11
- width: max-content;
12
- }
13
- &__pdisks-item {
14
- flex-grow: 1;
15
-
16
- max-width: 200px;
17
- margin-right: 10px;
18
-
19
- &:last-child {
20
- margin-right: 0px;
21
- }
22
- }
23
-
24
- &__group-id {
25
- font-weight: 500;
26
- }
27
-
1
+ .ydb-storage-nodes {
28
2
  &__node_unavailable {
29
3
  opacity: 0.6;
30
4
  }
@@ -0,0 +1,16 @@
1
+ import type { SortOrder } from '@gravity-ui/react-data-table';
2
+ import type { PreparedStorageNode, VisibleEntities } from '../../../store/reducers/storage/types';
3
+ import type { HandleSort } from '../../../utils/hooks/useTableSort';
4
+ import { NodesUptimeFilterValues } from '../../../utils/nodes';
5
+ import type { StorageNodesColumn } from './columns/types';
6
+ interface StorageNodesTableProps {
7
+ data: PreparedStorageNode[];
8
+ columns: StorageNodesColumn[];
9
+ visibleEntities: VisibleEntities;
10
+ nodesUptimeFilter: NodesUptimeFilterValues;
11
+ sort?: SortOrder;
12
+ onShowAll?: VoidFunction;
13
+ handleSort?: HandleSort;
14
+ }
15
+ export declare function StorageNodesTable({ data, columns, visibleEntities, nodesUptimeFilter, sort, onShowAll, handleSort, }: StorageNodesTableProps): import("react/jsx-runtime").JSX.Element;
16
+ export {};
@@ -1,22 +1,22 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { ResizeableDataTable } from '../../../components/ResizeableDataTable/ResizeableDataTable';
3
3
  import { VISIBLE_ENTITIES } from '../../../store/reducers/storage/constants';
4
+ import { DEFAULT_TABLE_SETTINGS } from '../../../utils/constants';
4
5
  import { NodesUptimeFilterValues } from '../../../utils/nodes';
5
6
  import { StorageNodesEmptyDataMessage } from './StorageNodesEmptyDataMessage';
6
- import { STORAGE_NODES_COLUMNS_WIDTH_LS_KEY, getPreparedStorageNodesColumns, } from './getStorageNodesColumns';
7
+ import { STORAGE_NODES_COLUMNS_WIDTH_LS_KEY } from './columns/constants';
7
8
  import i18n from './i18n';
8
9
  import { getRowUnavailableClassName } from './shared';
9
- import './StorageNodes.scss';
10
- export function StorageNodes({ data, tableSettings, visibleEntities, onShowAll, nodesUptimeFilter, additionalNodesProps, sort, handleSort, database, }) {
11
- const columns = getPreparedStorageNodesColumns(additionalNodesProps, visibleEntities, database);
10
+ const tableSettings = {
11
+ ...DEFAULT_TABLE_SETTINGS,
12
+ dynamicRenderMinSize: 51,
13
+ };
14
+ export function StorageNodesTable({ data, columns, visibleEntities, nodesUptimeFilter, sort, onShowAll, handleSort, }) {
12
15
  if (!data.length &&
13
16
  (visibleEntities !== VISIBLE_ENTITIES.all ||
14
17
  nodesUptimeFilter !== NodesUptimeFilterValues.All)) {
15
18
  return (_jsx(StorageNodesEmptyDataMessage, { visibleEntities: visibleEntities, nodesUptimeFilter: nodesUptimeFilter, onShowAll: onShowAll }));
16
19
  }
17
- return (_jsx(ResizeableDataTable, { columnsWidthLSKey: STORAGE_NODES_COLUMNS_WIDTH_LS_KEY, data: data, columns: columns, settings: {
18
- ...tableSettings,
19
- dynamicRenderType: 'variable',
20
- }, emptyDataMessage: i18n('empty.default'), rowClassName: getRowUnavailableClassName, sortOrder: sort, onSort: handleSort }, visibleEntities));
20
+ return (_jsx(ResizeableDataTable, { columnsWidthLSKey: STORAGE_NODES_COLUMNS_WIDTH_LS_KEY, data: data, columns: columns, settings: tableSettings, emptyDataMessage: i18n('empty.default'), rowClassName: getRowUnavailableClassName, sortOrder: sort, onSort: handleSort }, visibleEntities));
21
21
  }
22
- //# sourceMappingURL=StorageNodes.js.map
22
+ //# sourceMappingURL=StorageNodesTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StorageNodesTable.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageNodes/StorageNodesTable.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,mBAAmB,EAAC,MAAM,6DAA6D,CAAC;AAChG,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAE3E,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAEhE,OAAO,EAAC,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAE7D,OAAO,EAAC,4BAA4B,EAAC,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAC,kCAAkC,EAAC,MAAM,qBAAqB,CAAC;AAEvE,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,EAAC,0BAA0B,EAAC,MAAM,UAAU,CAAC;AAEpD,MAAM,aAAa,GAAG;IAClB,GAAG,sBAAsB;IACzB,oBAAoB,EAAE,EAAE;CAClB,CAAC;AAYX,MAAM,UAAU,iBAAiB,CAAC,EAC9B,IAAI,EACJ,OAAO,EACP,eAAe,EACf,iBAAiB,EACjB,IAAI,EACJ,SAAS,EACT,UAAU,GACW;IACrB,IACI,CAAC,IAAI,CAAC,MAAM;QACZ,CAAC,eAAe,KAAK,gBAAgB,CAAC,GAAG;YACrC,iBAAiB,KAAK,uBAAuB,CAAC,GAAG,CAAC,EACxD,CAAC;QACC,OAAO,CACH,KAAC,4BAA4B,IACzB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,EACpC,SAAS,EAAE,SAAS,GACtB,CACL,CAAC;IACN,CAAC;IAED,OAAO,CACH,KAAC,mBAAmB,IAChB,iBAAiB,EAAE,kCAAkC,EAErD,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,aAAa,EACvB,gBAAgB,EAAE,IAAI,CAAC,eAAe,CAAC,EACvC,YAAY,EAAE,0BAA0B,EACxC,SAAS,EAAE,IAAI,EACf,MAAM,EAAE,UAAU,IAPb,eAAyB,CAQhC,CACL,CAAC;AACN,CAAC"}
@@ -0,0 +1,24 @@
1
+ .ydb-storage-nodes-columns {
2
+ &__pdisks-column {
3
+ overflow: visible; // to enable stacked disks overflow the row
4
+ }
5
+
6
+ &__pdisks-wrapper {
7
+ display: flex;
8
+ justify-content: left;
9
+ align-items: flex-end;
10
+
11
+ width: max-content;
12
+ height: 40px;
13
+ }
14
+ &__pdisks-item {
15
+ flex-grow: 1;
16
+
17
+ max-width: 200px;
18
+ margin-right: 10px;
19
+
20
+ &:last-child {
21
+ margin-right: 0px;
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,39 @@
1
+ import type { GetStorageNodesColumnsParams } from './types';
2
+ import './StorageNodesColumns.scss';
3
+ export declare const getPreparedStorageNodesColumns: (params: GetStorageNodesColumnsParams) => {
4
+ sortable: boolean;
5
+ name: string;
6
+ header?: React.ReactNode;
7
+ className?: string;
8
+ resizeable?: boolean;
9
+ render: ((props: {
10
+ row: import("../../../../store/reducers/storage/types").PreparedStorageNode;
11
+ index: number;
12
+ }) => React.ReactNode) & ((props: {
13
+ value?: unknown;
14
+ row: import("../../../../store/reducers/storage/types").PreparedStorageNode;
15
+ index: number;
16
+ footer?: boolean;
17
+ headerData?: boolean;
18
+ }) => import("react").ReactNode);
19
+ width?: number;
20
+ resizeMaxWidth?: number;
21
+ resizeMinWidth?: number;
22
+ align: "center" | "left" | "right";
23
+ headerTitle?: string;
24
+ accessor?: string | ((row: import("../../../../store/reducers/storage/types").PreparedStorageNode) => any) | undefined;
25
+ title?: string | ((row: import("../../../../store/reducers/storage/types").PreparedStorageNode) => string) | undefined;
26
+ customStyle?: ((props: import("@gravity-ui/react-data-table").CustomStyleParams<import("../../../../store/reducers/storage/types").PreparedStorageNode>) => import("react").CSSProperties) | undefined;
27
+ onClick?: ((data: {
28
+ row: import("../../../../store/reducers/storage/types").PreparedStorageNode;
29
+ index: number;
30
+ footer?: boolean;
31
+ headerData?: boolean;
32
+ }, column: import("@gravity-ui/react-data-table").Column<import("../../../../store/reducers/storage/types").PreparedStorageNode>, event: import("react").MouseEvent<HTMLTableCellElement>) => void) | undefined;
33
+ defaultOrder?: import("@gravity-ui/react-data-table").OrderType;
34
+ sortAccessor?: string | ((row: import("../../../../store/reducers/storage/types").PreparedStorageNode) => any) | undefined;
35
+ sortAscending?: import("@gravity-ui/react-data-table").Comparator<import("../../../../store/reducers/storage/types").PreparedStorageNode> | undefined;
36
+ sub?: import("@gravity-ui/react-data-table").Column<import("../../../../store/reducers/storage/types").PreparedStorageNode>[] | undefined;
37
+ group?: boolean;
38
+ autogroup?: boolean;
39
+ }[];
@@ -1,34 +1,26 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import DataTable from '@gravity-ui/react-data-table';
3
- import { NodeHostWrapper } from '../../../components/NodeHostWrapper/NodeHostWrapper';
4
- import { VISIBLE_ENTITIES } from '../../../store/reducers/storage/constants';
5
- import { EMPTY_DATA_PLACEHOLDER } from '../../../utils/constants';
6
- import { isSortableNodesProperty } from '../../../utils/nodes';
7
- import { PDisk } from '../PDisk/PDisk';
8
- import { b } from './shared';
9
- export const STORAGE_NODES_COLUMNS_WIDTH_LS_KEY = 'storageNodesColumnsWidth';
10
- export const STORAGE_NODES_COLUMNS_IDS = {
11
- NodeId: 'NodeId',
12
- Host: 'Host',
13
- DC: 'DC',
14
- Rack: 'Rack',
15
- Uptime: 'Uptime',
16
- PDisks: 'PDisks',
17
- Missing: 'Missing',
18
- };
19
- const getStorageNodesColumns = (additionalNodesProps, database) => {
3
+ import { NodeHostWrapper } from '../../../../components/NodeHostWrapper/NodeHostWrapper';
4
+ import { cn } from '../../../../utils/cn';
5
+ import { EMPTY_DATA_PLACEHOLDER } from '../../../../utils/constants';
6
+ import { isSortableNodesProperty } from '../../../../utils/nodes';
7
+ import { PDisk } from '../../PDisk/PDisk';
8
+ import { STORAGE_NODES_COLUMNS_IDS, STORAGE_NODES_COLUMNS_TITLES } from './constants';
9
+ import './StorageNodesColumns.scss';
10
+ const b = cn('ydb-storage-nodes-columns');
11
+ const getStorageNodesColumns = ({ additionalNodesProps, database, groupId, }) => {
20
12
  const getNodeRef = additionalNodesProps === null || additionalNodesProps === void 0 ? void 0 : additionalNodesProps.getNodeRef;
21
13
  const columns = [
22
14
  {
23
15
  name: STORAGE_NODES_COLUMNS_IDS.NodeId,
24
- header: 'Node ID',
16
+ header: STORAGE_NODES_COLUMNS_TITLES.NodeId,
25
17
  width: 100,
26
18
  align: DataTable.RIGHT,
27
19
  render: ({ row }) => row.NodeId,
28
20
  },
29
21
  {
30
22
  name: STORAGE_NODES_COLUMNS_IDS.Host,
31
- header: 'Host',
23
+ header: STORAGE_NODES_COLUMNS_TITLES.Host,
32
24
  width: 350,
33
25
  render: ({ row }) => {
34
26
  return _jsx(NodeHostWrapper, { node: row, getNodeRef: getNodeRef, database: database });
@@ -37,21 +29,21 @@ const getStorageNodesColumns = (additionalNodesProps, database) => {
37
29
  },
38
30
  {
39
31
  name: STORAGE_NODES_COLUMNS_IDS.DC,
40
- header: 'DC',
32
+ header: STORAGE_NODES_COLUMNS_TITLES.DC,
41
33
  width: 100,
42
34
  render: ({ row }) => row.DC || EMPTY_DATA_PLACEHOLDER,
43
35
  align: DataTable.LEFT,
44
36
  },
45
37
  {
46
38
  name: STORAGE_NODES_COLUMNS_IDS.Rack,
47
- header: 'Rack',
39
+ header: STORAGE_NODES_COLUMNS_TITLES.Rack,
48
40
  width: 100,
49
41
  render: ({ row }) => row.Rack || '—',
50
42
  align: DataTable.LEFT,
51
43
  },
52
44
  {
53
45
  name: STORAGE_NODES_COLUMNS_IDS.Uptime,
54
- header: 'Uptime',
46
+ header: STORAGE_NODES_COLUMNS_TITLES.Uptime,
55
47
  width: 130,
56
48
  sortAccessor: ({ StartTime }) => (StartTime ? -StartTime : 0),
57
49
  align: DataTable.RIGHT,
@@ -59,7 +51,7 @@ const getStorageNodesColumns = (additionalNodesProps, database) => {
59
51
  },
60
52
  {
61
53
  name: STORAGE_NODES_COLUMNS_IDS.Missing,
62
- header: 'Missing',
54
+ header: STORAGE_NODES_COLUMNS_TITLES.Missing,
63
55
  width: 100,
64
56
  align: DataTable.CENTER,
65
57
  defaultOrder: DataTable.DESCENDING,
@@ -67,14 +59,14 @@ const getStorageNodesColumns = (additionalNodesProps, database) => {
67
59
  },
68
60
  {
69
61
  name: STORAGE_NODES_COLUMNS_IDS.PDisks,
62
+ header: STORAGE_NODES_COLUMNS_TITLES.PDisks,
70
63
  className: b('pdisks-column'),
71
- header: 'PDisks',
72
64
  render: ({ row }) => {
73
65
  var _a;
74
66
  return (_jsx("div", { className: b('pdisks-wrapper'), children: (_a = row.PDisks) === null || _a === void 0 ? void 0 : _a.map((pDisk) => {
75
67
  var _a;
76
68
  const vDisks = (_a = row.VDisks) === null || _a === void 0 ? void 0 : _a.filter((vdisk) => vdisk.PDiskId === pDisk.PDiskId);
77
- return (_jsx("div", { className: b('pdisks-item'), children: _jsx(PDisk, { data: pDisk, vDisks: vDisks }) }, pDisk.PDiskId));
69
+ return (_jsx("div", { className: b('pdisks-item'), children: _jsx(PDisk, { data: pDisk, vDisks: vDisks, viewContext: { groupId } }) }, pDisk.PDiskId));
78
70
  }) }));
79
71
  },
80
72
  align: DataTable.CENTER,
@@ -85,15 +77,12 @@ const getStorageNodesColumns = (additionalNodesProps, database) => {
85
77
  ];
86
78
  return columns;
87
79
  };
88
- export const getPreparedStorageNodesColumns = (additionalNodesProps, visibleEntities, database) => {
89
- const rawColumns = getStorageNodesColumns(additionalNodesProps, database);
80
+ export const getPreparedStorageNodesColumns = (params) => {
81
+ const rawColumns = getStorageNodesColumns(params);
90
82
  const sortableColumns = rawColumns.map((column) => ({
91
83
  ...column,
92
84
  sortable: isSortableNodesProperty(column.name),
93
85
  }));
94
- if (visibleEntities !== VISIBLE_ENTITIES.missing) {
95
- return sortableColumns.filter((col) => col.name !== STORAGE_NODES_COLUMNS_IDS.Missing);
96
- }
97
86
  return sortableColumns;
98
87
  };
99
- //# sourceMappingURL=getStorageNodesColumns.js.map
88
+ //# sourceMappingURL=columns.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageNodes/columns/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAErD,OAAO,EAAC,eAAe,EAAC,MAAM,wDAAwD,CAAC;AACvF,OAAO,EAAC,EAAE,EAAC,MAAM,sBAAsB,CAAC;AACxC,OAAO,EAAC,sBAAsB,EAAC,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAC,uBAAuB,EAAC,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,yBAAyB,EAAE,4BAA4B,EAAC,MAAM,aAAa,CAAC;AAGpF,OAAO,4BAA4B,CAAC;AAEpC,MAAM,CAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC,CAAC;AAE1C,MAAM,sBAAsB,GAAG,CAAC,EAC5B,oBAAoB,EACpB,QAAQ,EACR,OAAO,GACoB,EAAE,EAAE;IAC/B,MAAM,UAAU,GAAG,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAE,UAAU,CAAC;IAEpD,MAAM,OAAO,GAAyB;QAClC;YACI,IAAI,EAAE,yBAAyB,CAAC,MAAM;YACtC,MAAM,EAAE,4BAA4B,CAAC,MAAM;YAC3C,KAAK,EAAE,GAAG;YACV,KAAK,EAAE,SAAS,CAAC,KAAK;YACtB,MAAM,EAAE,C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sBAAsB,CAAC,MAAM,CAAC,CAAC;IAElD,MAAM,eAAe,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAChD,GAAG,MAAM;QACT,QAAQ,EAAE,uBAAuB,CAAC,MAAM,CAAC,IAAI,CAAC;KACjD,CAAC,CAAC,CAAC;IAEJ,OAAO,eAAe,CAAC;AAC3B,CAAC,CAAC"}
@@ -0,0 +1,34 @@
1
+ import type { SelectOption } from '@gravity-ui/uikit';
2
+ import { z } from 'zod';
3
+ import type { NodesGroupByField } from '../../../../types/api/nodes';
4
+ import type { ValueOf } from '../../../../types/common';
5
+ export declare const STORAGE_NODES_COLUMNS_WIDTH_LS_KEY = "storageNodesColumnsWidth";
6
+ export declare const STORAGE_NODES_SELECTED_COLUMNS_LS_KEY = "storageNodesSelectedColumns";
7
+ export declare const STORAGE_NODES_COLUMNS_IDS: {
8
+ readonly NodeId: "NodeId";
9
+ readonly Host: "Host";
10
+ readonly DC: "DC";
11
+ readonly Rack: "Rack";
12
+ readonly Version: "Version";
13
+ readonly Uptime: "Uptime";
14
+ readonly PDisks: "PDisks";
15
+ readonly Missing: "Missing";
16
+ readonly DiskSpaceUsage: "DiskSpaceUsage";
17
+ };
18
+ type StorageNodesColumnId = ValueOf<typeof STORAGE_NODES_COLUMNS_IDS>;
19
+ export declare const DEFAULT_STORAGE_NODES_COLUMNS: StorageNodesColumnId[];
20
+ export declare const REQUIRED_STORAGE_NODES_COLUMNS: StorageNodesColumnId[];
21
+ export declare const STORAGE_NODES_COLUMNS_TITLES: {
22
+ readonly NodeId: string;
23
+ readonly Host: string;
24
+ readonly DC: string;
25
+ readonly Rack: string;
26
+ readonly Version: string;
27
+ readonly Uptime: string;
28
+ readonly PDisks: string;
29
+ readonly Missing: string;
30
+ readonly DiskSpaceUsage: string;
31
+ };
32
+ export declare const STORAGE_NODES_GROUP_BY_OPTIONS: SelectOption[];
33
+ export declare const storageNodesGroupByParamSchema: z.ZodCatch<z.ZodType<NodesGroupByField | undefined, z.ZodTypeDef, NodesGroupByField | undefined>>;
34
+ export {};
@@ -0,0 +1,74 @@
1
+ import { z } from 'zod';
2
+ import i18n from './i18n';
3
+ export const STORAGE_NODES_COLUMNS_WIDTH_LS_KEY = 'storageNodesColumnsWidth';
4
+ export const STORAGE_NODES_SELECTED_COLUMNS_LS_KEY = 'storageNodesSelectedColumns';
5
+ export const STORAGE_NODES_COLUMNS_IDS = {
6
+ NodeId: 'NodeId',
7
+ Host: 'Host',
8
+ DC: 'DC',
9
+ Rack: 'Rack',
10
+ Version: 'Version',
11
+ Uptime: 'Uptime',
12
+ PDisks: 'PDisks',
13
+ Missing: 'Missing',
14
+ DiskSpaceUsage: 'DiskSpaceUsage',
15
+ };
16
+ export const DEFAULT_STORAGE_NODES_COLUMNS = [
17
+ 'NodeId',
18
+ 'Host',
19
+ 'DC',
20
+ 'Rack',
21
+ 'Uptime',
22
+ 'PDisks',
23
+ ];
24
+ export const REQUIRED_STORAGE_NODES_COLUMNS = ['NodeId'];
25
+ // This code is running when module is initialized and correct language may not be set yet
26
+ // get functions guarantee that i18n fields will be inited on render with current render language
27
+ export const STORAGE_NODES_COLUMNS_TITLES = {
28
+ get NodeId() {
29
+ return i18n('nodes-id');
30
+ },
31
+ get Host() {
32
+ return i18n('host');
33
+ },
34
+ get DC() {
35
+ return i18n('dc');
36
+ },
37
+ get Rack() {
38
+ return i18n('rack');
39
+ },
40
+ get Version() {
41
+ return i18n('version');
42
+ },
43
+ get Uptime() {
44
+ return i18n('uptime');
45
+ },
46
+ get PDisks() {
47
+ return i18n('pdisks');
48
+ },
49
+ get Missing() {
50
+ return i18n('missing');
51
+ },
52
+ get DiskSpaceUsage() {
53
+ return i18n('disk-space-usage');
54
+ },
55
+ };
56
+ const STORAGE_NODES_GROUP_BY_PARAMS = [
57
+ 'Host',
58
+ 'DC',
59
+ 'Rack',
60
+ 'Version',
61
+ 'Uptime',
62
+ 'Missing',
63
+ 'DiskSpaceUsage',
64
+ ];
65
+ export const STORAGE_NODES_GROUP_BY_OPTIONS = STORAGE_NODES_GROUP_BY_PARAMS.map((param) => {
66
+ return {
67
+ value: param,
68
+ content: STORAGE_NODES_COLUMNS_TITLES[param],
69
+ };
70
+ });
71
+ export const storageNodesGroupByParamSchema = z
72
+ .custom((value) => STORAGE_NODES_GROUP_BY_PARAMS.includes(value))
73
+ .catch(undefined);
74
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageNodes/columns/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAKtB,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,MAAM,CAAC,MAAM,kCAAkC,GAAG,0BAA0B,CAAC;AAC7E,MAAM,CAAC,MAAM,qCAAqC,GAAG,6BAA6B,CAAC;AAEnF,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACrC,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,cAAc,EAAE,gBAAgB;CAC1B,CAAC;AAIX,MAAM,CAAC,MAAM,6BAA6B,GAA2B;IACjE,QAAQ;IACR,MAAM;IACN,IAAI;IACJ,MAAM;IACN,QAAQ;IACR,QAAQ;CACX,CAAC;AACF,MAAM,CAAC,MAAM,8BAA8B,GAA2B,CAAC,QAAQ,CAAC,CAAC;AAEjF,0FAA0F;AAC1F,iGAAiG;AACjG,MAAM,CAAC,MAAM,4BAA4B,GAAG;IACxC,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC;IAC5B,CAAC;IACD,IAAI,IAAI;QACJ,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC;IACxB,CAAC;IACD,IAAI,EAAE;QACF,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,IAAI,IAAI;QACJ,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC;IACxB,CAAC;IACD,IAAI,OAAO;QACP,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IACD,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC1B,CAAC;IACD,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC1B,CAAC;IACD,IAAI,OAAO;QACP,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IACD,IAAI,cAAc;QACd,OAAO,IAAI,CAAC,kBAAkB,CAAC,CAAC;IACpC,CAAC;CACoD,CAAC;AAE1D,MAAM,6BAA6B,GAAG;IAClC,MAAM;IACN,IAAI;IACJ,MAAM;IACN,SAAS;IACT,QAAQ;IACR,SAAS;IACT,gBAAgB;CACoB,CAAC;AAEzC,MAAM,CAAC,MAAM,8BAA8B,GAAmB,6BAA6B,CAAC,GAAG,CAC3F,CAAC,KAAK,EAAE,EAAE;IACN,OAAO;QACH,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE,4BAA4B,CAAC,KAAK,CAAC;KAC/C,CAAC;AACN,CAAC,CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC;KAC1C,MAAM,CAAgC,CAAC,KAAK,EAAE,EAAE,CAAC,6BAA6B,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;KAC/F,KAAK,CAAC,SAAS,CAAC,CAAC"}
@@ -0,0 +1,43 @@
1
+ import React from 'react';
2
+ import type { GetStorageNodesColumnsParams } from './types';
3
+ export declare function useStorageNodesSelectedColumns({ visibleEntities, database, additionalNodesProps, groupId, }: GetStorageNodesColumnsParams): {
4
+ columnsToShow: {
5
+ sortable: boolean;
6
+ name: string;
7
+ header?: React.ReactNode;
8
+ className?: string;
9
+ resizeable?: boolean;
10
+ render: ((props: {
11
+ row: import("../../../../store/reducers/storage/types").PreparedStorageNode;
12
+ index: number;
13
+ }) => React.ReactNode) & ((props: {
14
+ value?: unknown;
15
+ row: import("../../../../store/reducers/storage/types").PreparedStorageNode;
16
+ index: number;
17
+ footer?: boolean;
18
+ headerData?: boolean;
19
+ }) => React.ReactNode);
20
+ width?: number;
21
+ resizeMaxWidth?: number;
22
+ resizeMinWidth?: number;
23
+ align: "center" | "left" | "right";
24
+ headerTitle?: string;
25
+ accessor?: string | ((row: import("../../../../store/reducers/storage/types").PreparedStorageNode) => any) | undefined;
26
+ title?: string | ((row: import("../../../../store/reducers/storage/types").PreparedStorageNode) => string) | undefined;
27
+ customStyle?: ((props: import("@gravity-ui/react-data-table").CustomStyleParams<import("../../../../store/reducers/storage/types").PreparedStorageNode>) => React.CSSProperties) | undefined;
28
+ onClick?: ((data: {
29
+ row: import("../../../../store/reducers/storage/types").PreparedStorageNode;
30
+ index: number;
31
+ footer?: boolean;
32
+ headerData?: boolean;
33
+ }, column: import("@gravity-ui/react-data-table").Column<import("../../../../store/reducers/storage/types").PreparedStorageNode>, event: React.MouseEvent<HTMLTableCellElement>) => void) | undefined;
34
+ defaultOrder?: import("@gravity-ui/react-data-table").OrderType;
35
+ sortAccessor?: string | ((row: import("../../../../store/reducers/storage/types").PreparedStorageNode) => any) | undefined;
36
+ sortAscending?: import("@gravity-ui/react-data-table").Comparator<import("../../../../store/reducers/storage/types").PreparedStorageNode> | undefined;
37
+ sub?: import("@gravity-ui/react-data-table").Column<import("../../../../store/reducers/storage/types").PreparedStorageNode>[] | undefined;
38
+ group?: boolean;
39
+ autogroup?: boolean;
40
+ }[];
41
+ columnsToSelect: import("@gravity-ui/uikit").TableColumnSetupItem[];
42
+ setColumns: (updated: import("@gravity-ui/uikit").TableColumnSetupItem[]) => void;
43
+ };
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { VISIBLE_ENTITIES } from '../../../../store/reducers/storage/constants';
3
+ import { useSelectedColumns } from '../../../../utils/hooks/useSelectedColumns';
4
+ import { getPreparedStorageNodesColumns } from './columns';
5
+ import { DEFAULT_STORAGE_NODES_COLUMNS, REQUIRED_STORAGE_NODES_COLUMNS, STORAGE_NODES_COLUMNS_IDS, STORAGE_NODES_COLUMNS_TITLES, STORAGE_NODES_SELECTED_COLUMNS_LS_KEY, } from './constants';
6
+ export function useStorageNodesSelectedColumns({ visibleEntities, database, additionalNodesProps, groupId, }) {
7
+ const columns = React.useMemo(() => {
8
+ return getPreparedStorageNodesColumns({ database, additionalNodesProps, groupId });
9
+ }, [database, additionalNodesProps, groupId]);
10
+ const requiredColumns = React.useMemo(() => {
11
+ if (visibleEntities === VISIBLE_ENTITIES.missing) {
12
+ return [...REQUIRED_STORAGE_NODES_COLUMNS, STORAGE_NODES_COLUMNS_IDS.Missing];
13
+ }
14
+ return REQUIRED_STORAGE_NODES_COLUMNS;
15
+ }, [visibleEntities]);
16
+ return useSelectedColumns(columns, STORAGE_NODES_SELECTED_COLUMNS_LS_KEY, STORAGE_NODES_COLUMNS_TITLES, DEFAULT_STORAGE_NODES_COLUMNS, requiredColumns);
17
+ }
18
+ //# sourceMappingURL=hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageNodes/columns/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,8CAA8C,CAAC;AAC9E,OAAO,EAAC,kBAAkB,EAAC,MAAM,4CAA4C,CAAC;AAE9E,OAAO,EAAC,8BAA8B,EAAC,MAAM,WAAW,CAAC;AACzD,OAAO,EACH,6BAA6B,EAC7B,8BAA8B,EAC9B,yBAAyB,EACzB,4BAA4B,EAC5B,qCAAqC,GACxC,MAAM,aAAa,CAAC;AAGrB,MAAM,UAAU,8BAA8B,CAAC,EAC3C,eAAe,EACf,QAAQ,EACR,oBAAoB,EACpB,OAAO,GACoB;IAC3B,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QAC/B,OAAO,8BAA8B,CAAC,EAAC,QAAQ,EAAE,oBAAoB,EAAE,OAAO,EAAC,CAAC,CAAC;IACrF,CAAC,EAAE,CAAC,QAAQ,EAAE,oBAAoB,EAAE,OAAO,CAAC,CAAC,CAAC;IAE9C,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QACvC,IAAI,eAAe,KAAK,gBAAgB,CAAC,OAAO,EAAE,CAAC;YAC/C,OAAO,CAAC,GAAG,8BAA8B,EAAE,yBAAyB,CAAC,OAAO,CAAC,CAAC;QAClF,CAAC;QACD,OAAO,8BAA8B,CAAC;IAC1C,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IAEtB,OAAO,kBAAkB,CACrB,OAAO,EACP,qCAAqC,EACrC,4BAA4B,EAC5B,6BAA6B,EAC7B,eAAe,CAClB,CAAC;AACN,CAAC"}
@@ -0,0 +1,11 @@
1
+ {
2
+ "nodes-id": "Node ID",
3
+ "host": "Host",
4
+ "dc": "DC",
5
+ "rack": "Rack",
6
+ "version": "Version",
7
+ "uptime": "Uptime",
8
+ "missing": "Missing",
9
+ "disk-space-usage": "Disk space usage",
10
+ "pdisks": "PDisks"
11
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: (key: "missing" | "version" | "host" | "uptime" | "dc" | "rack" | "disk-space-usage" | "nodes-id" | "pdisks", params?: import("@gravity-ui/i18n").Params) => string;
2
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { registerKeysets } from '../../../../../utils/i18n';
2
+ import en from './en.json';
3
+ const COMPONENT = 'ydb-storage-nodes-columns';
4
+ export default registerKeysets(COMPONENT, { en });
5
+ //# sourceMappingURL=index.js.map