ydb-embedded-ui 6.15.1 → 6.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (299) hide show
  1. package/dist/components/ElapsedTime/ElapsedTime.js +2 -1
  2. package/dist/components/ElapsedTime/ElapsedTime.js.map +1 -1
  3. package/dist/components/EmptyState/EmptyState.d.ts +6 -0
  4. package/dist/components/EmptyState/EmptyState.js +6 -0
  5. package/dist/components/EmptyState/EmptyState.js.map +1 -1
  6. package/dist/components/EntitiesCount/EntitiesCount.js +3 -1
  7. package/dist/components/EntitiesCount/EntitiesCount.js.map +1 -1
  8. package/dist/components/EntityPageTitle/EntityPageTitle.d.ts +11 -0
  9. package/dist/components/{DiskPageTitle/DiskPageTitle.js → EntityPageTitle/EntityPageTitle.js} +5 -5
  10. package/dist/components/EntityPageTitle/EntityPageTitle.js.map +1 -0
  11. package/dist/components/{DiskPageTitle/DiskPageTitle.scss → EntityPageTitle/EntityPageTitle.scss} +1 -1
  12. package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.d.ts +2 -1
  13. package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.js +10 -1
  14. package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.js.map +1 -1
  15. package/dist/components/MetricChart/reducer.d.ts +2 -2
  16. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.d.ts +9 -0
  17. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js +9 -0
  18. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js.map +1 -0
  19. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.scss +3 -0
  20. package/dist/components/PageMeta/PageMeta.d.ts +2 -1
  21. package/dist/components/PageMeta/PageMeta.js +9 -4
  22. package/dist/components/PageMeta/PageMeta.js.map +1 -1
  23. package/dist/components/PageMeta/PageMeta.scss +9 -6
  24. package/dist/components/PaginatedTable/PaginatedTable.d.ts +5 -4
  25. package/dist/components/PaginatedTable/PaginatedTable.js +24 -116
  26. package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
  27. package/dist/components/PaginatedTable/ResizeablePaginatedTable.d.ts +2 -2
  28. package/dist/components/PaginatedTable/ResizeablePaginatedTable.js.map +1 -1
  29. package/dist/components/PaginatedTable/TableChunk.d.ts +13 -5
  30. package/dist/components/PaginatedTable/TableChunk.js +51 -21
  31. package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
  32. package/dist/components/PaginatedTable/TableRow.js +1 -1
  33. package/dist/components/PaginatedTable/TableRow.js.map +1 -1
  34. package/dist/components/PaginatedTable/types.d.ts +8 -1
  35. package/dist/components/Skeleton/Skeleton.d.ts +6 -0
  36. package/dist/components/Skeleton/Skeleton.js +11 -0
  37. package/dist/components/Skeleton/Skeleton.js.map +1 -0
  38. package/dist/components/Tablet/Tablet.js +2 -2
  39. package/dist/components/Tablet/Tablet.js.map +1 -1
  40. package/dist/components/TabletState/TabletState.d.ts +6 -0
  41. package/dist/components/TabletState/TabletState.js +7 -0
  42. package/dist/components/TabletState/TabletState.js.map +1 -0
  43. package/dist/containers/Cluster/Cluster.js +10 -10
  44. package/dist/containers/Cluster/Cluster.js.map +1 -1
  45. package/dist/containers/Cluster/Cluster.scss +14 -0
  46. package/dist/containers/Cluster/i18n/index.d.ts +1 -1
  47. package/dist/containers/Heatmap/HeatmapCanvas/HeatmapCanvas.js +2 -2
  48. package/dist/containers/Heatmap/HeatmapCanvas/HeatmapCanvas.js.map +1 -1
  49. package/dist/containers/Nodes/Nodes.d.ts +2 -1
  50. package/dist/containers/Nodes/Nodes.js +2 -2
  51. package/dist/containers/Nodes/Nodes.js.map +1 -1
  52. package/dist/containers/Nodes/NodesWrapper.d.ts +1 -0
  53. package/dist/containers/Nodes/NodesWrapper.js.map +1 -1
  54. package/dist/containers/Nodes/PaginatedNodes.d.ts +2 -1
  55. package/dist/containers/Nodes/PaginatedNodes.js +6 -18
  56. package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
  57. package/dist/containers/Nodes/getNodes.d.ts +3 -6
  58. package/dist/containers/Nodes/getNodes.js +19 -2
  59. package/dist/containers/Nodes/getNodes.js.map +1 -1
  60. package/dist/containers/PDiskPage/PDiskPage.js +4 -5
  61. package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
  62. package/dist/containers/PDiskPage/PDiskPage.scss +0 -7
  63. package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
  64. package/dist/containers/Storage/PaginatedStorage.d.ts +2 -2
  65. package/dist/containers/Storage/PaginatedStorage.js +3 -3
  66. package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
  67. package/dist/containers/Storage/Storage.d.ts +2 -2
  68. package/dist/containers/Storage/Storage.js +3 -3
  69. package/dist/containers/Storage/Storage.js.map +1 -1
  70. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +2 -2
  71. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js +5 -17
  72. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +1 -1
  73. package/dist/containers/Storage/StorageGroups/getGroups.d.ts +3 -6
  74. package/dist/containers/Storage/StorageGroups/getGroups.js +15 -2
  75. package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
  76. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.d.ts +2 -2
  77. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js +6 -18
  78. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js.map +1 -1
  79. package/dist/containers/Storage/StorageNodes/getNodes.d.ts +3 -5
  80. package/dist/containers/Storage/StorageNodes/getNodes.js +17 -2
  81. package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
  82. package/dist/containers/Storage/StorageWrapper.d.ts +1 -1
  83. package/dist/containers/Tablet/Tablet.d.ts +1 -1
  84. package/dist/containers/Tablet/Tablet.js +95 -52
  85. package/dist/containers/Tablet/Tablet.js.map +1 -1
  86. package/dist/containers/Tablet/Tablet.scss +4 -81
  87. package/dist/containers/Tablet/components/TabletControls/TabletControls.d.ts +6 -0
  88. package/dist/containers/Tablet/components/TabletControls/TabletControls.js +27 -0
  89. package/dist/containers/Tablet/components/TabletControls/TabletControls.js.map +1 -0
  90. package/dist/containers/Tablet/components/TabletControls/index.js.map +1 -0
  91. package/dist/containers/Tablet/components/TabletInfo/TabletInfo.d.ts +7 -0
  92. package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js +59 -0
  93. package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js.map +1 -0
  94. package/dist/containers/Tablet/components/TabletInfo/TabletInfo.scss +12 -0
  95. package/dist/containers/Tablet/components/TabletInfo/i18n/en.json +16 -0
  96. package/dist/containers/Tablet/components/TabletInfo/i18n/index.d.ts +1 -0
  97. package/dist/containers/Tablet/components/TabletInfo/i18n/index.js +5 -0
  98. package/dist/containers/Tablet/components/TabletInfo/i18n/index.js.map +1 -0
  99. package/dist/containers/Tablet/components/TabletInfo/index.js.map +1 -0
  100. package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.d.ts +7 -0
  101. package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.js +36 -0
  102. package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.js.map +1 -0
  103. package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.scss +78 -0
  104. package/dist/containers/Tablet/components/TabletStorageInfo/columns.d.ts +3 -0
  105. package/dist/containers/Tablet/components/TabletStorageInfo/columns.js +56 -0
  106. package/dist/containers/Tablet/components/TabletStorageInfo/columns.js.map +1 -0
  107. package/dist/containers/Tablet/components/TabletStorageInfo/i18n/en.json +7 -0
  108. package/dist/containers/Tablet/components/TabletStorageInfo/i18n/index.d.ts +1 -0
  109. package/dist/containers/Tablet/components/TabletStorageInfo/i18n/index.js +5 -0
  110. package/dist/containers/Tablet/components/TabletStorageInfo/i18n/index.js.map +1 -0
  111. package/dist/containers/Tablet/components/TabletStorageInfo/shared.d.ts +1 -0
  112. package/dist/containers/Tablet/components/TabletStorageInfo/shared.js +3 -0
  113. package/dist/containers/Tablet/components/TabletStorageInfo/shared.js.map +1 -0
  114. package/dist/containers/Tablet/components/TabletStorageInfo/types.d.ts +5 -0
  115. package/dist/containers/Tablet/components/TabletStorageInfo/types.js +2 -0
  116. package/dist/containers/Tablet/components/TabletStorageInfo/types.js.map +1 -0
  117. package/dist/containers/Tablet/components/TabletStorageInfo/utils.d.ts +3 -0
  118. package/dist/containers/Tablet/components/TabletStorageInfo/utils.js +29 -0
  119. package/dist/containers/Tablet/components/TabletStorageInfo/utils.js.map +1 -0
  120. package/dist/containers/Tablet/{TabletTable → components/TabletTable}/TabletTable.d.ts +1 -1
  121. package/dist/containers/Tablet/{TabletTable → components/TabletTable}/TabletTable.js +7 -6
  122. package/dist/containers/Tablet/components/TabletTable/TabletTable.js.map +1 -0
  123. package/dist/containers/Tablet/components/TabletTable/index.js.map +1 -0
  124. package/dist/containers/Tablet/i18n/en.json +5 -1
  125. package/dist/containers/Tablet/i18n/index.d.ts +1 -1
  126. package/dist/containers/Tablet/utils.d.ts +1 -0
  127. package/dist/containers/Tablet/utils.js +4 -0
  128. package/dist/containers/Tablet/utils.js.map +1 -0
  129. package/dist/containers/Tablets/Tablets.js +16 -10
  130. package/dist/containers/Tablets/Tablets.js.map +1 -1
  131. package/dist/containers/Tablets/i18n/index.d.ts +1 -1
  132. package/dist/containers/Tenant/Acl/Acl.scss +2 -2
  133. package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +10 -9
  134. package/dist/containers/Tenant/Diagnostics/Describe/Describe.js.map +1 -1
  135. package/dist/containers/Tenant/Diagnostics/Describe/Describe.scss +13 -2
  136. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +2 -2
  137. package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
  138. package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.js +21 -11
  139. package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.js.map +1 -1
  140. package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js +2 -2
  141. package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js.map +1 -1
  142. package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js +3 -8
  143. package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js.map +1 -1
  144. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.js +2 -5
  145. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.js.map +1 -1
  146. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.d.ts +0 -1
  147. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.js +0 -21
  148. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.js.map +1 -1
  149. package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js +19 -1
  150. package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js.map +1 -1
  151. package/dist/containers/Tenant/Query/Query.js +2 -14
  152. package/dist/containers/Tenant/Query/Query.js.map +1 -1
  153. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +4 -4
  154. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
  155. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js +1 -1
  156. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js.map +1 -1
  157. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js +1 -1
  158. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js.map +1 -1
  159. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +3 -3
  160. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js.map +1 -1
  161. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +8 -8
  162. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +6 -6
  163. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js.map +1 -1
  164. package/dist/containers/Tenant/Query/i18n/en.json +4 -1
  165. package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
  166. package/dist/containers/Tenant/Query/utils/useSavedQueries.js +2 -1
  167. package/dist/containers/Tenant/Query/utils/useSavedQueries.js.map +1 -1
  168. package/dist/containers/Tenant/Schema/SchemaViewer/columns.js +1 -1
  169. package/dist/containers/Tenant/Schema/SchemaViewer/columns.js.map +1 -1
  170. package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js +2 -2
  171. package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js.map +1 -1
  172. package/dist/containers/Tenant/Schema/SchemaViewer/types.d.ts +1 -1
  173. package/dist/containers/Tenant/utils/queryTemplates.js +6 -5
  174. package/dist/containers/Tenant/utils/queryTemplates.js.map +1 -1
  175. package/dist/containers/UserSettings/i18n/en.json +0 -2
  176. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  177. package/dist/containers/UserSettings/settings.d.ts +0 -1
  178. package/dist/containers/UserSettings/settings.js +2 -7
  179. package/dist/containers/UserSettings/settings.js.map +1 -1
  180. package/dist/containers/VDiskPage/VDiskPage.js +5 -6
  181. package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
  182. package/dist/containers/VDiskPage/VDiskPage.scss +0 -4
  183. package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
  184. package/dist/routes.d.ts +1 -0
  185. package/dist/routes.js +3 -0
  186. package/dist/routes.js.map +1 -1
  187. package/dist/services/api.d.ts +13 -7
  188. package/dist/services/api.js +27 -6
  189. package/dist/services/api.js.map +1 -1
  190. package/dist/services/settings.d.ts +1 -2
  191. package/dist/services/settings.js +1 -2
  192. package/dist/services/settings.js.map +1 -1
  193. package/dist/store/configureStore.d.ts +4 -8
  194. package/dist/store/defaultStore.d.ts +2 -4
  195. package/dist/store/reducers/api.d.ts +1 -1
  196. package/dist/store/reducers/api.js +1 -1
  197. package/dist/store/reducers/api.js.map +1 -1
  198. package/dist/store/reducers/authentication/authentication.d.ts +4 -4
  199. package/dist/store/reducers/cancelQuery.d.ts +2 -2
  200. package/dist/store/reducers/capabilities/capabilities.d.ts +6 -10
  201. package/dist/store/reducers/capabilities/hooks.d.ts +1 -0
  202. package/dist/store/reducers/capabilities/hooks.js +3 -0
  203. package/dist/store/reducers/capabilities/hooks.js.map +1 -1
  204. package/dist/store/reducers/cluster/cluster.d.ts +2 -2
  205. package/dist/store/reducers/clusterNodes/clusterNodes.d.ts +2 -2
  206. package/dist/store/reducers/clusters/clusters.d.ts +2 -2
  207. package/dist/store/reducers/describe.d.ts +2 -2
  208. package/dist/store/reducers/executeQuery.d.ts +18 -4
  209. package/dist/store/reducers/executeQuery.js +50 -5
  210. package/dist/store/reducers/executeQuery.js.map +1 -1
  211. package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +2 -2
  212. package/dist/store/reducers/explainQuery/explainQuery.d.ts +2 -2
  213. package/dist/store/reducers/header/types.d.ts +1 -1
  214. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +58 -78
  215. package/dist/store/reducers/heatmap.d.ts +2 -2
  216. package/dist/store/reducers/hotKeys/hotKeys.d.ts +2 -2
  217. package/dist/store/reducers/index.d.ts +3 -6
  218. package/dist/store/reducers/index.js +0 -2
  219. package/dist/store/reducers/index.js.map +1 -1
  220. package/dist/store/reducers/network/network.d.ts +2 -2
  221. package/dist/store/reducers/node/node.d.ts +3 -3
  222. package/dist/store/reducers/node/selectors.d.ts +1 -2
  223. package/dist/store/reducers/nodes/nodes.d.ts +3 -3
  224. package/dist/store/reducers/nodes/types.d.ts +11 -1
  225. package/dist/store/reducers/nodesList.d.ts +3 -4
  226. package/dist/store/reducers/overview/overview.d.ts +2 -2
  227. package/dist/store/reducers/partitions/partitions.d.ts +2 -2
  228. package/dist/store/reducers/pdisk/pdisk.d.ts +3 -3
  229. package/dist/store/reducers/preview.d.ts +2 -2
  230. package/dist/store/reducers/schema/schema.d.ts +3 -3
  231. package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +2 -2
  232. package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +2 -2
  233. package/dist/store/reducers/storage/storage.d.ts +3 -3
  234. package/dist/store/reducers/storage/types.d.ts +15 -0
  235. package/dist/store/reducers/storage/types.js.map +1 -1
  236. package/dist/store/reducers/tableData.d.ts +14 -0
  237. package/dist/store/reducers/tableData.js +25 -0
  238. package/dist/store/reducers/tableData.js.map +1 -0
  239. package/dist/store/reducers/tablet.d.ts +19 -3
  240. package/dist/store/reducers/tablet.js +82 -13
  241. package/dist/store/reducers/tablet.js.map +1 -1
  242. package/dist/store/reducers/tablets.d.ts +15 -23
  243. package/dist/store/reducers/tablets.js +2 -20
  244. package/dist/store/reducers/tablets.js.map +1 -1
  245. package/dist/store/reducers/tabletsFilters.d.ts +1 -2
  246. package/dist/store/reducers/tenant/tenant.d.ts +2 -2
  247. package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +2 -2
  248. package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +2 -2
  249. package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +2 -2
  250. package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +2 -2
  251. package/dist/store/reducers/tenants/selectors.d.ts +27 -36
  252. package/dist/store/reducers/tenants/selectors.js +1 -1
  253. package/dist/store/reducers/tenants/selectors.js.map +1 -1
  254. package/dist/store/reducers/tenants/tenants.d.ts +2 -2
  255. package/dist/store/reducers/topic.d.ts +44 -59
  256. package/dist/store/reducers/vdisk/vdisk.d.ts +2 -2
  257. package/dist/store/reducers/viewSchema/viewSchema.d.ts +2 -2
  258. package/dist/styles/mixins.scss +0 -5
  259. package/dist/types/api/capabilities.d.ts +1 -1
  260. package/dist/types/api/schema/shared.d.ts +1 -3
  261. package/dist/types/api/schema/shared.js.map +1 -1
  262. package/dist/types/api/schema/table.d.ts +2 -0
  263. package/dist/types/api/schema/table.js.map +1 -1
  264. package/dist/types/api/tablet.d.ts +22 -0
  265. package/dist/types/store/executeQuery.d.ts +5 -2
  266. package/dist/types/store/tablets.d.ts +1 -0
  267. package/dist/utils/constants.d.ts +1 -2
  268. package/dist/utils/constants.js +1 -2
  269. package/dist/utils/constants.js.map +1 -1
  270. package/dist/utils/dataFormatters/dataFormatters.d.ts +1 -0
  271. package/dist/utils/dataFormatters/dataFormatters.js +5 -0
  272. package/dist/utils/dataFormatters/dataFormatters.js.map +1 -1
  273. package/dist/utils/developerUI/developerUI.d.ts +1 -1
  274. package/dist/utils/developerUI/developerUI.js +3 -2
  275. package/dist/utils/developerUI/developerUI.js.map +1 -1
  276. package/dist/utils/hooks/useQueryExecutionSettings.js +3 -2
  277. package/dist/utils/hooks/useQueryExecutionSettings.js.map +1 -1
  278. package/package.json +2 -1
  279. package/dist/components/DiskPageTitle/DiskPageTitle.d.ts +0 -10
  280. package/dist/components/DiskPageTitle/DiskPageTitle.js.map +0 -1
  281. package/dist/components/PaginatedTable/reducer.d.ts +0 -43
  282. package/dist/components/PaginatedTable/reducer.js +0 -104
  283. package/dist/components/PaginatedTable/reducer.js.map +0 -1
  284. package/dist/containers/Tablet/TabletControls/TabletControls.d.ts +0 -7
  285. package/dist/containers/Tablet/TabletControls/TabletControls.js +0 -29
  286. package/dist/containers/Tablet/TabletControls/TabletControls.js.map +0 -1
  287. package/dist/containers/Tablet/TabletControls/index.js.map +0 -1
  288. package/dist/containers/Tablet/TabletInfo/TabletInfo.d.ts +0 -7
  289. package/dist/containers/Tablet/TabletInfo/TabletInfo.js +0 -40
  290. package/dist/containers/Tablet/TabletInfo/TabletInfo.js.map +0 -1
  291. package/dist/containers/Tablet/TabletInfo/index.js.map +0 -1
  292. package/dist/containers/Tablet/TabletTable/TabletTable.js.map +0 -1
  293. package/dist/containers/Tablet/TabletTable/index.js.map +0 -1
  294. /package/dist/containers/Tablet/{TabletControls → components/TabletControls}/index.d.ts +0 -0
  295. /package/dist/containers/Tablet/{TabletControls → components/TabletControls}/index.js +0 -0
  296. /package/dist/containers/Tablet/{TabletInfo → components/TabletInfo}/index.d.ts +0 -0
  297. /package/dist/containers/Tablet/{TabletInfo → components/TabletInfo}/index.js +0 -0
  298. /package/dist/containers/Tablet/{TabletTable → components/TabletTable}/index.d.ts +0 -0
  299. /package/dist/containers/Tablet/{TabletTable → components/TabletTable}/index.js +0 -0
@@ -1,13 +1,40 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React from 'react';
3
+ import { tableDataApi } from '../../store/reducers/tableData';
3
4
  import { getArray } from '../../utils';
4
- import { LoadingTableRow, TableRow } from './TableRow';
5
- // With original memo generic types are lost
6
- const typedMemo = React.memo;
7
- // Memoisation prevents chunks rerenders that could cause perfomance issues on big tables
8
- export const TableChunk = typedMemo(function TableChunk({ id, chunkSize, rowHeight, columns, chunkData, observer, getRowClassName, }) {
5
+ import { useAutoRefreshInterval } from '../../utils/hooks';
6
+ import { ResponseError } from '../Errors/ResponseError';
7
+ import { EmptyTableRow, LoadingTableRow, TableRow } from './TableRow';
8
+ const DEBOUNCE_TIMEOUT = 200;
9
+ export const TableChunk = ({ id, limit, rowHeight, columns, fetchData, tableName, filters, sortParams, observer, getRowClassName, renderErrorMessage, onDataFetched, isActive, }) => {
9
10
  var _a;
10
11
  const ref = React.useRef(null);
12
+ const [isTimeoutActive, setIsTimeoutActive] = React.useState(true);
13
+ const [autoRefreshInterval] = useAutoRefreshInterval();
14
+ const queryParams = {
15
+ offset: id * limit,
16
+ limit,
17
+ fetchData: fetchData,
18
+ filters,
19
+ sortParams,
20
+ tableName,
21
+ };
22
+ tableDataApi.useFetchTableChunkQuery(queryParams, {
23
+ skip: isTimeoutActive || !isActive,
24
+ pollingInterval: autoRefreshInterval,
25
+ });
26
+ const { currentData, error } = tableDataApi.endpoints.fetchTableChunk.useQueryState(queryParams);
27
+ React.useEffect(() => {
28
+ let timeout = 0;
29
+ if (isActive && isTimeoutActive) {
30
+ timeout = window.setTimeout(() => {
31
+ setIsTimeoutActive(false);
32
+ }, DEBOUNCE_TIMEOUT);
33
+ }
34
+ return () => {
35
+ window.clearTimeout(timeout);
36
+ };
37
+ }, [isActive, isTimeoutActive]);
11
38
  React.useEffect(() => {
12
39
  const el = ref.current;
13
40
  if (el) {
@@ -19,26 +46,29 @@ export const TableChunk = typedMemo(function TableChunk({ id, chunkSize, rowHeig
19
46
  }
20
47
  };
21
48
  }, [observer]);
22
- const dataLength = (_a = chunkData === null || chunkData === void 0 ? void 0 : chunkData.data) === null || _a === void 0 ? void 0 : _a.length;
23
- const chunkHeight = dataLength ? dataLength * rowHeight : chunkSize * rowHeight;
24
- const getLoadingRows = () => {
25
- return getArray(chunkSize).map((value) => {
26
- return (_jsx(LoadingTableRow, { columns: columns, height: rowHeight, index: value }, value));
27
- });
28
- };
49
+ React.useEffect(() => {
50
+ if (currentData && isActive) {
51
+ const { total = 0, found = 0 } = currentData;
52
+ onDataFetched(total, found);
53
+ }
54
+ }, [currentData, isActive, onDataFetched]);
55
+ const dataLength = ((_a = currentData === null || currentData === void 0 ? void 0 : currentData.data) === null || _a === void 0 ? void 0 : _a.length) || limit;
29
56
  const renderContent = () => {
30
- var _a;
31
- if (!chunkData || !chunkData.active) {
57
+ if (!isActive) {
32
58
  return null;
33
59
  }
34
- // Display skeletons in case of error
35
- if (chunkData.loading || chunkData.error) {
36
- return getLoadingRows();
60
+ if (!currentData) {
61
+ if (error) {
62
+ const errorData = error;
63
+ return (_jsx(EmptyTableRow, { columns: columns, children: renderErrorMessage ? (renderErrorMessage(errorData)) : (_jsx(ResponseError, { error: errorData })) }));
64
+ }
65
+ else {
66
+ return getArray(dataLength).map((value) => (_jsx(LoadingTableRow, { columns: columns, height: rowHeight, index: value }, value)));
67
+ }
37
68
  }
38
- return (_a = chunkData.data) === null || _a === void 0 ? void 0 : _a.map((data, index) => {
39
- return (_jsx(TableRow, { index: index, row: data, columns: columns, height: rowHeight, getRowClassName: getRowClassName }, index));
40
- });
69
+ return currentData.data.map((rowData, index) => (_jsx(TableRow, { index: index, row: rowData, columns: columns, height: rowHeight, getRowClassName: getRowClassName }, index)));
41
70
  };
71
+ const chunkHeight = dataLength ? dataLength * rowHeight : limit * rowHeight;
42
72
  return (_jsx("tbody", { ref: ref, id: id.toString(), style: { height: `${chunkHeight}px` }, children: renderContent() }));
43
- });
73
+ };
44
74
  //# sourceMappingURL=TableChunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableChunk.js","sourceRoot":"","sources":["../../../src/components/PaginatedTable/TableChunk.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAC;AAErC,OAAO,EAAC,eAAe,EAAE,QAAQ,EAAC,MAAM,YAAY,CAAC;AAGrD,4CAA4C;AAC5C,MAAM,SAAS,GAA2B,KAAK,CAAC,IAAI,CAAC;AAYrD,yFAAyF;AACzF,MAAM,CAAC,MAAM,UAAU,GAAG,SAAS,CAAC,SAAS,UAAU,CAAI,EACvD,EAAE,EACF,SAAS,EACT,SAAS,EACT,OAAO,EACP,SAAS,EACT,QAAQ,EACR,eAAe,GACE;;IACjB,MAAM,GAAG,GAAG,KAAK,CAAC,MAAM,CAA0B,IAAI,CAAC,CAAC;IAExD,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACjB,MAAM,EAAE,GAAG,GAAG,CAAC,OAAO,CAAC;QACvB,IAAI,EAAE,EAAE,CAAC;YACL,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QACzB,CAAC;QACD,OAAO,GAAG,EAAE;YACR,IAAI,EAAE,EAAE,CAAC;gBACL,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;YAC3B,CAAC;QACL,CAAC,CAAC;IACN,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAA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AAM,EAAE,GAAG,WAAW,IAAI,EAAC,YAClE,aAAa,EAAE,GACZ,CACX,CAAC;AACN,CAAC,CAAC"}
@@ -7,7 +7,7 @@ const TableRowCell = ({ children, className, height, width, align = DEFAULT_ALIG
7
7
  return (_jsx("td", { className: b('row-cell', { align: align }, className), style: { height: `${height}px`, width: `${width}px`, maxWidth: `${width}px` }, children: children }));
8
8
  };
9
9
  export const LoadingTableRow = ({ index, columns, height }) => {
10
- return (_jsx("tr", { className: b('row'), children: columns.map((column) => {
10
+ return (_jsx("tr", { className: b('row', { loading: true }), children: columns.map((column) => {
11
11
  return (_jsx(TableRowCell, { height: height, width: column.width, align: column.align, className: column.className, children: _jsx(Skeleton, { style: { width: '80%', height: '50%' } }) }, `${column.name}${index}`));
12
12
  }) }));
13
13
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TableRow.js","sourceRoot":"","sources":["../../../src/components/PaginatedTable/TableRow.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAC,aAAa,EAAC,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAC,CAAC,EAAC,MAAM,UAAU,CAAC;AAW3B,MAAM,YAAY,GAAG,CAAC,EAClB,QAAQ,EACR,SAAS,EACT,MAAM,EACN,KAAK,EACL,KAAK,GAAG,aAAa,GACR,EAAE,EAAE;IACjB,yDAAyD;IACzD,OAAO,CACH,aACI,SAAS,EAAE,CAAC,CAAC,UAAU,EAAE,EAAC,KAAK,EAAE,KAAK,EAAC,EAAE,SAAS,CAAC,EACnD,KAAK,EAAE,EAAC,MAAM,EAAE,GAAG,MAAM,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,EAAE,QAAQ,EAAE,GAAG,KAAK,IAAI,EAAC,YAE1E,QAAQ,GACR,CACR,CAAC;AACN,CAAC,CAAC;AAQF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAK,EAAC,KAAK,EAAE,OAAO,EAAE,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SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,YAC1C,QAAQ,GACR,GACJ,CACR,CAAC;AACN,CAAC,CAAC"}
@@ -38,7 +38,14 @@ export interface PaginatedTableData<T> {
38
38
  total: number;
39
39
  found: number;
40
40
  }
41
- export type FetchData<T> = (limit: number, offset: number, sortParams?: SortParams) => Promise<PaginatedTableData<T>>;
41
+ type FetchDataParams<F, E = {}> = {
42
+ limit: number;
43
+ offset: number;
44
+ filters?: F;
45
+ sortParams?: SortParams;
46
+ signal?: AbortSignal;
47
+ } & E;
48
+ export type FetchData<T, F = undefined, E = {}> = (params: FetchDataParams<F, E>) => Promise<PaginatedTableData<T>>;
42
49
  export type OnError = (error?: IResponseError) => void;
43
50
  interface ControlsParams {
44
51
  totalEntities: number;
@@ -0,0 +1,6 @@
1
+ interface SkeletonProps {
2
+ delay?: number;
3
+ className?: string;
4
+ }
5
+ export declare const Skeleton: ({ delay, className }: SkeletonProps) => import("react/jsx-runtime").JSX.Element | null;
6
+ export {};
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Skeleton as KitSkeleton } from '@gravity-ui/uikit';
3
+ import { useDelayed } from '../../utils/hooks/useDelayed';
4
+ export const Skeleton = ({ delay = 600, className }) => {
5
+ const show = useDelayed(delay);
6
+ if (!show) {
7
+ return null;
8
+ }
9
+ return _jsx(KitSkeleton, { className: className });
10
+ };
11
+ //# sourceMappingURL=Skeleton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,QAAQ,IAAI,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAE1D,OAAO,EAAC,UAAU,EAAC,MAAM,8BAA8B,CAAC;AAOxD,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAC,KAAK,GAAG,GAAG,EAAE,SAAS,EAAgB,EAAE,EAAE;IAChE,MAAM,IAAI,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;IAC/B,IAAI,CAAC,IAAI,EAAE,CAAC;QACR,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO,KAAC,WAAW,IAAC,SAAS,EAAE,SAAS,GAAI,CAAC;AACjD,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import routes, { createHref } from '../../routes';
2
+ import { getTabletPagePath } from '../../routes';
3
3
  import { cn } from '../../utils/cn';
4
4
  import { getTabletLabel } from '../../utils/constants';
5
5
  import { ContentWithPopup } from '../ContentWithPopup/ContentWithPopup';
@@ -12,7 +12,7 @@ export const Tablet = ({ tablet = {}, tenantName }) => {
12
12
  var _a;
13
13
  const { TabletId: id, NodeId, Type } = tablet;
14
14
  const status = (_a = tablet.Overall) === null || _a === void 0 ? void 0 : _a.toLowerCase();
15
- const tabletPath = id && createHref(routes.tablet, { id }, { nodeId: NodeId, tenantName, type: Type });
15
+ const tabletPath = id && getTabletPagePath(id, { nodeId: NodeId, tenantName, type: Type });
16
16
  return (_jsx(ContentWithPopup, { className: b('wrapper'), content: _jsx(TabletTooltipContent, { data: tablet, className: b('popup-content') }), children: _jsx(InternalLink, { to: tabletPath, children: _jsx(TabletIcon, { className: b({ status }), text: getTabletLabel(tablet.Type) }) }) }));
17
17
  };
18
18
  //# sourceMappingURL=Tablet.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tablet.js","sourceRoot":"","sources":["../../../src/components/Tablet/Tablet.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,EAAE,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAEhD,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,cAAc,EAAC,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAC,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;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AAM,uBAAuB,CAAC;AACrD,OAAO,EAAC,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAC,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAExD,OAAO,eAAe,CAAC;AAEvB,MAAM,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC;AAOvB,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EAAC,MAAM,GAAG,EAAE,EAAE,UAAU,EAAc,EAAE,EAAE;;IAC7D,MAAM,EAAC,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAC,GAAG,MAAM,CAAC;IAC5C,MAAM,MAAM,GAAG,MAAA,MAAM,CAAC,OAAO,0CAAE,WAAW,EAAE,CAAC;IAE7C,MAAM,UAAU,GAAG,EAAE,IAAI,iBAAiB,CAAC,EAAE,EAAE,EAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAC,CAAC,CAAC;IAEzF,OAAO,CACH,KAAC,gBAAgB,IACb,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,EACvB,OAAO,EAAE,KAAC,oBAAoB,IAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC,eAAe,CAAC,GAAI,YAE9E,KAAC,YAAY,IAAC,EAAE,EAAE,UAAU,YACxB,KAAC,UAAU,IAAC,SAAS,EAAE,CAAC,CAAC,EAAC,MAAM,EAAC,CAAC,EAAE,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,GAAI,GAC9D,GACA,CACtB,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { ETabletState } from '../../types/api/tablet';
2
+ interface TabletStateProps {
3
+ state?: ETabletState;
4
+ }
5
+ export declare function TabletState({ state }: TabletStateProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Label } from '@gravity-ui/uikit';
3
+ import { mapTabletStateToLabelTheme } from '../../utils/tablet';
4
+ export function TabletState({ state }) {
5
+ return _jsx(Label, { theme: mapTabletStateToLabelTheme(state), children: state });
6
+ }
7
+ //# sourceMappingURL=TabletState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabletState.js","sourceRoot":"","sources":["../../../src/components/TabletState/TabletState.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAC,0BAA0B,EAAC,MAAM,oBAAoB,CAAC;AAM9D,MAAM,UAAU,WAAW,CAAC,EAAC,KAAK,EAAmB;IACjD,OAAO,KAAC,KAAK,IAAC,KAAK,EAAE,0BAA0B,CAAC,KAAK,CAAC,YAAG,KAAK,GAAS,CAAC;AAC5E,CAAC"}
@@ -61,16 +61,16 @@ export function Cluster({ additionalClusterProps, additionalTenantsProps, additi
61
61
  };
62
62
  const clusterTitle = (_b = (_a = cluster === null || cluster === void 0 ? void 0 : cluster.Name) !== null && _a !== void 0 ? _a : clusterName) !== null && _b !== void 0 ? _b : CLUSTER_DEFAULT_TITLE;
63
63
  const activeTab = React.useMemo(() => clusterTabs.find(({ id }) => id === activeTabId), [activeTabId]);
64
- return (_jsxs("div", { className: b(), ref: container, children: [_jsx(Helmet, { defaultTitle: `${clusterTitle} — YDB Monitoring`, titleTemplate: `%s — ${clusterTitle} — YDB Monitoring`, children: activeTab ? _jsx("title", { children: activeTab.title }) : null }), _jsx("div", { className: b('header'), children: getClusterTitle() }), _jsxs("div", { className: b('tabs'), children: [_jsx(Tabs, { size: "l", allowNotSelected: true, activeTab: activeTabId, items: clusterTabs, wrapTo: ({ id }, node) => {
65
- const path = getClusterPath(id, { clusterName, backend });
66
- return (_jsx(InternalLink, { to: path, onClick: () => {
67
- dispatch(updateDefaultClusterTab(id));
68
- }, children: node }, id));
69
- } }), _jsx(AutoRefreshControl, {})] }), _jsx("div", { children: _jsxs(Switch, { children: [_jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.overview))
70
- .pathname, children: _jsx(ClusterInfo, { cluster: cluster, groupsStats: groupsStats, versionsValues: versionsValues, loading: infoLoading, error: clusterError, additionalClusterProps: additionalClusterProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.tenants))
71
- .pathname, children: _jsx(Tenants, { additionalTenantsProps: additionalTenantsProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.nodes)).pathname, children: _jsx(NodesWrapper, { parentContainer: container.current, additionalNodesProps: additionalNodesProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.storage))
72
- .pathname, children: _jsx(StorageWrapper, { parentContainer: container.current, additionalNodesProps: additionalNodesProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.versions))
73
- .pathname, children: _jsx(Versions, { versionToColor: versionToColor }) }), _jsx(Route, { render: () => (_jsx(Redirect, { to: getLocationObjectFromHref(getClusterPath(activeTabId)) })) })] }) })] }));
64
+ return (_jsxs("div", { className: b(), ref: container, children: [_jsx(Helmet, { defaultTitle: `${clusterTitle} — YDB Monitoring`, titleTemplate: `%s — ${clusterTitle} — YDB Monitoring`, children: activeTab ? _jsx("title", { children: activeTab.title }) : null }), _jsx("div", { className: b('header'), children: getClusterTitle() }), _jsx("div", { className: b('tabs'), children: _jsx(Tabs, { size: "l", allowNotSelected: true, activeTab: activeTabId, items: clusterTabs, wrapTo: ({ id }, node) => {
65
+ const path = getClusterPath(id, { clusterName, backend });
66
+ return (_jsx(InternalLink, { to: path, onClick: () => {
67
+ dispatch(updateDefaultClusterTab(id));
68
+ }, children: node }, id));
69
+ } }) }), _jsxs("div", { children: [_jsx("div", { className: b('sticky-wrapper'), children: _jsx(AutoRefreshControl, { className: b('auto-refresh-control') }) }), _jsxs(Switch, { children: [_jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.overview))
70
+ .pathname, children: _jsx(ClusterInfo, { cluster: cluster, groupsStats: groupsStats, versionsValues: versionsValues, loading: infoLoading, error: clusterError, additionalClusterProps: additionalClusterProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.tenants))
71
+ .pathname, children: _jsx(Tenants, { additionalTenantsProps: additionalTenantsProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.nodes)).pathname, children: _jsx(NodesWrapper, { parentContainer: container.current, additionalNodesProps: additionalNodesProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.storage))
72
+ .pathname, children: _jsx(StorageWrapper, { parentContainer: container.current, additionalNodesProps: additionalNodesProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.versions))
73
+ .pathname, children: _jsx(Versions, { versionToColor: versionToColor }) }), _jsx(Route, { render: () => (_jsx(Redirect, { to: getLocationObjectFromHref(getClusterPath(activeTabId)) })) })] })] })] }));
74
74
  }
75
75
  function useClusterTab() {
76
76
  const dispatch = useTypedDispatch();
@@ -1 +1 @@
1
- {"version":3,"file":"Cluster.js","sourceRoot":"","sources":["../../../src/containers/Cluster/Cluster.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,QAAQ,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAC,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,kBAAkB,EAAC,MAAM,wDAAwD,CAAC;AAC1F,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38
38
  }
39
+
40
+ &__sticky-wrapper {
41
+ position: sticky;
42
+ z-index: 4;
43
+ top: 56px;
44
+ }
45
+
46
+ &__auto-refresh-control {
47
+ float: right;
48
+
49
+ margin-top: -40px;
50
+
51
+ background-color: var(--g-color-base-background);
52
+ }
39
53
  }
@@ -1,2 +1,2 @@
1
- declare const _default: (key: "nodes" | "tablets" | "versions" | "load" | "links" | "disk-type" | "erasure" | "allocated" | "available" | "usage" | "dc" | "databases" | "storage-size" | "storage-groups", params?: import("@gravity-ui/i18n").Params) => string;
1
+ declare const _default: (key: "nodes" | "tablets" | "versions" | "load" | "links" | "storage-groups" | "disk-type" | "erasure" | "allocated" | "available" | "usage" | "dc" | "databases" | "storage-size", params?: import("@gravity-ui/i18n").Params) => string;
2
2
  export default _default;
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React from 'react';
3
3
  import throttle from 'lodash/throttle';
4
4
  import PropTypes from 'prop-types';
5
- import routes, { createHref } from '../../../routes';
5
+ import { getTabletPagePath } from '../../../routes';
6
6
  import { basename as appBasename } from '../../../store/index';
7
7
  import { cn } from '../../../utils/cn';
8
8
  const b = cn('heatmap');
@@ -74,7 +74,7 @@ export const HeatmapCanvas = (props) => {
74
74
  const generateTabletExternalLink = (tablet) => {
75
75
  const { TabletId: id } = tablet;
76
76
  const hostname = window.location.hostname;
77
- const path = createHref(routes.tablet, { id });
77
+ const path = getTabletPagePath(id);
78
78
  const protocol = 'https://';
79
79
  const href = [hostname, appBasename, path]
80
80
  .map((item) => (item.startsWith('/') ? item.slice(1) : item))
@@ -1 +1 @@
1
- {"version":3,"file":"HeatmapCanvas.js","sourceRoot":"","sources":["../../../../src/containers/Heatmap/HeatmapCanvas/HeatmapCanvas.js"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AACvC,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,MAA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,CAAC,OAAO,CAAC,GAC9D,GACA,CACT,CAAC;AACN,CAAC,CAAC;AAEF,aAAa,CAAC,SAAS,GAAG;IACtB,OAAO,EAAE,SAAS,CAAC,KAAK;IACxB,SAAS,EAAE,SAAS,CAAC,MAAM;IAC3B,WAAW,EAAE,SAAS,CAAC,IAAI;IAC3B,WAAW,EAAE,SAAS,CAAC,IAAI;CAC9B,CAAC"}
@@ -2,7 +2,8 @@ import type { AdditionalNodesProps } from '../../types/additionalProps';
2
2
  import './Nodes.scss';
3
3
  interface NodesProps {
4
4
  path?: string;
5
+ database?: string;
5
6
  additionalNodesProps?: AdditionalNodesProps;
6
7
  }
7
- export declare const Nodes: ({ path, additionalNodesProps }: NodesProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const Nodes: ({ path, database, additionalNodesProps }: NodesProps) => import("react/jsx-runtime").JSX.Element;
8
9
  export {};
@@ -24,7 +24,7 @@ import { NODES_COLUMNS_WIDTH_LS_KEY, getNodesColumns } from './getNodesColumns';
24
24
  import i18n from './i18n';
25
25
  import './Nodes.scss';
26
26
  const b = cn('ydb-nodes');
27
- export const Nodes = ({ path, additionalNodesProps = {} }) => {
27
+ export const Nodes = ({ path, database, additionalNodesProps = {} }) => {
28
28
  var _a;
29
29
  const [queryParams, setQueryParams] = useQueryParams({
30
30
  uptimeFilter: StringParam,
@@ -38,7 +38,7 @@ export const Nodes = ({ path, additionalNodesProps = {} }) => {
38
38
  const [useNodesEndpoint] = useSetting(USE_NODES_ENDPOINT_IN_DIAGNOSTICS_KEY);
39
39
  // If there is no path, it's cluster Nodes tab
40
40
  const useGetComputeNodes = path && !useNodesEndpoint;
41
- const nodesQuery = nodesApi.useGetNodesQuery(useGetComputeNodes ? skipToken : { path }, {
41
+ const nodesQuery = nodesApi.useGetNodesQuery(useGetComputeNodes ? skipToken : { path, database }, {
42
42
  pollingInterval: autoRefreshInterval,
43
43
  });
44
44
  const computeQuery = nodesApi.useGetComputeNodesQuery(useGetComputeNodes ? { path } :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CAAC;QACvB,OAAO,KAAC,YAAY,KAAG,CAAC;IAC5B,CAAC;IAED,OAAO,CACH,MAAC,uBAAuB,eACpB,KAAC,uBAAuB,CAAC,QAAQ,cAAE,cAAc,EAAE,GAAoC,EACtF,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC/C,KAAC,uBAAuB,CAAC,KAAK,IAAC,OAAO,EAAE,SAAS,YAC5C,IAAI,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,IAAI,GACA,IACV,CAC7B,CAAC;AACN,CAAC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import type { AdditionalNodesProps } from '../../types/additionalProps';
2
2
  interface NodesWrapperProps {
3
3
  path?: string;
4
+ database?: string;
4
5
  parentContainer?: Element | null;
5
6
  additionalNodesProps?: AdditionalNodesProps;
6
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"NodesWrapper.js","sourceRoot":"","sources":["../../../src/containers/Nodes/NodesWrapper.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,wBAAwB,EAAC,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAQhD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAC,eAAe,EAAE,GAAG,KAAK,EAAoB,EAAE,EAAE;IAC3E,MAAM,CAAC,kBAAkB,CAAC,GAAG,UAAU,CAAU,wBAAwB,CAAC,CAAC;IAE3E,IAAI,kBAAkB,EAAE,CAAC;QACrB,OAAO,KAAC,cAAc,IAAC,eAAe,EAAE,eAAe,KAAM,KAAK,GAAI,CAAC;IAC3E,CAAC;IAED,OAAO,KAAC,KAAK,OAAK,KAAK,GAAI,CAAC;AAChC,CAAC,CAAC"}
1
+ {"version":3,"file":"NodesWrapper.js","sourceRoot":"","sources":["../../../src/containers/Nodes/NodesWrapper.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,wBAAwB,EAAC,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAShD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAC,eAAe,EAAE,GAAG,KAAK,EAAoB,EAAE,EAAE;IAC3E,MAAM,CAAC,kBAAkB,CAAC,GAAG,UAAU,CAAU,wBAAwB,CAAC,CAAC;IAE3E,IAAI,kBAAkB,EAAE,CAAC;QACrB,OAAO,KAAC,cAAc,IAAC,eAAe,EAAE,eAAe,KAAM,KAAK,GAAI,CAAC;IAC3E,CAAC;IAED,OAAO,KAAC,KAAK,OAAK,KAAK,GAAI,CAAC;AAChC,CAAC,CAAC"}
@@ -2,8 +2,9 @@ import type { AdditionalNodesProps } from '../../types/additionalProps';
2
2
  import './Nodes.scss';
3
3
  interface NodesProps {
4
4
  path?: string;
5
+ database?: string;
5
6
  parentContainer?: Element | null;
6
7
  additionalNodesProps?: AdditionalNodesProps;
7
8
  }
8
- export declare const PaginatedNodes: ({ path, parentContainer, additionalNodesProps }: NodesProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const PaginatedNodes: ({ path, database, parentContainer, additionalNodesProps, }: NodesProps) => import("react/jsx-runtime").JSX.Element;
9
10
  export {};
@@ -12,13 +12,13 @@ import { UptimeFilter } from '../../components/UptimeFIlter';
12
12
  import { ProblemFilterValues, changeFilter, selectProblemFilter, } from '../../store/reducers/settings/settings';
13
13
  import { cn } from '../../utils/cn';
14
14
  import { useTypedDispatch, useTypedSelector } from '../../utils/hooks';
15
- import { NodesUptimeFilterValues, getProblemParamValue, getUptimeParamValue, isSortableNodesProperty, isUnavailableNode, nodesUptimeFilterValuesSchema, } from '../../utils/nodes';
15
+ import { NodesUptimeFilterValues, isSortableNodesProperty, isUnavailableNode, nodesUptimeFilterValuesSchema, } from '../../utils/nodes';
16
16
  import { getNodes } from './getNodes';
17
17
  import { NODES_COLUMNS_WIDTH_LS_KEY, getNodesColumns } from './getNodesColumns';
18
18
  import i18n from './i18n';
19
19
  import './Nodes.scss';
20
20
  const b = cn('ydb-nodes');
21
- export const PaginatedNodes = ({ path, parentContainer, additionalNodesProps }) => {
21
+ export const PaginatedNodes = ({ path, database, parentContainer, additionalNodesProps, }) => {
22
22
  var _a;
23
23
  const [queryParams, setQueryParams] = useQueryParams({
24
24
  uptimeFilter: StringParam,
@@ -28,21 +28,9 @@ export const PaginatedNodes = ({ path, parentContainer, additionalNodesProps })
28
28
  const searchValue = (_a = queryParams.search) !== null && _a !== void 0 ? _a : '';
29
29
  const dispatch = useTypedDispatch();
30
30
  const problemFilter = useTypedSelector(selectProblemFilter);
31
- const filters = React.useMemo(() => {
32
- return [path, searchValue, problemFilter, uptimeFilter];
33
- }, [path, searchValue, problemFilter, uptimeFilter]);
34
- const fetchData = React.useCallback(async (limit, offset, { sortOrder, columnId } = {}) => {
35
- return await getNodes({
36
- limit,
37
- offset,
38
- path,
39
- filter: searchValue,
40
- problems_only: getProblemParamValue(problemFilter),
41
- uptime: getUptimeParamValue(uptimeFilter),
42
- sortOrder,
43
- sortValue: columnId,
44
- });
45
- }, [path, problemFilter, searchValue, uptimeFilter]);
31
+ const tableFilters = React.useMemo(() => {
32
+ return { path, database, searchValue, problemFilter, uptimeFilter };
33
+ }, [path, database, searchValue, problemFilter, uptimeFilter]);
46
34
  const getRowClassName = (row) => {
47
35
  return b('node', { unavailable: isUnavailableNode(row) });
48
36
  };
@@ -77,6 +65,6 @@ export const PaginatedNodes = ({ path, parentContainer, additionalNodesProps })
77
65
  const columns = rawColumns.map((column) => {
78
66
  return { ...column, sortable: isSortableNodesProperty(column.name) };
79
67
  });
80
- return (_jsx(ResizeablePaginatedTable, { columnsWidthLSKey: NODES_COLUMNS_WIDTH_LS_KEY, parentContainer: parentContainer, columns: columns, fetchData: fetchData, limit: 50, renderControls: renderControls, renderErrorMessage: renderErrorMessage, renderEmptyDataMessage: renderEmptyDataMessage, dependencyArray: filters, getRowClassName: getRowClassName }));
68
+ return (_jsx(ResizeablePaginatedTable, { columnsWidthLSKey: NODES_COLUMNS_WIDTH_LS_KEY, parentContainer: parentContainer, columns: columns, fetchData: getNodes, limit: 50, renderControls: renderControls, renderErrorMessage: renderErrorMessage, renderEmptyDataMessage: renderEmptyDataMessage, getRowClassName: getRowClassName, filters: tableFilters, tableName: "nodes" }));
81
69
  };
82
70
  //# sourceMappingURL=PaginatedNodes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PaginatedNodes.js","sourceRoot":"","sources":["../../../src/containers/Nodes/PaginatedNodes.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAC,wBAAwB,EAAC,MAAM,iCAAiC,CAAC;AAOzE,OAAO,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAC,MAAM,EAAC,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAE3D,OAAO,EACH,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,GACtB,MAAM,wCAAwC,CAAC;AAGhD,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,gBAA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AAC,YAAY,IAAC,QAAQ,EAAC,MAAM,GAAG,CAAC;QAC5C,CAAC;QAED,OAAO,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC;IAC3C,CAAC,CAAC;IAEF,MAAM,UAAU,GAAG,eAAe,CAAC;QAC/B,UAAU,EAAE,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAE,UAAU;KAC/C,CAAC,CAAC;IAEH,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QACtC,OAAO,EAAC,GAAG,MAAM,EAAE,QAAQ,EAAE,uBAAuB,CAAC,MAAM,CAAC,IAAI,CAAC,EAAC,CAAC;IACvE,CAAC,CAAC,CAAC;IAEH,OAAO,CACH,KAAC,wBAAwB,IACrB,iBAAiB,EAAE,0BAA0B,EAC7C,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,QAAQ,EACnB,KAAK,EAAE,EAAE,EACT,cAAc,EAAE,cAAc,EAC9B,kBAAkB,EAAE,kBAAkB,EACtC,sBAAsB,EAAE,sBAAsB,EAC9C,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,YAAY,EACrB,SAAS,EAAC,OAAO,GACnB,CACL,CAAC;AACN,CAAC,CAAC"}
@@ -1,6 +1,3 @@
1
- import type { NodesApiRequestParams } from '../../store/reducers/nodes/types';
2
- export declare const getNodes: ({ type, storage, tablets, limit, offset, ...params }: NodesApiRequestParams) => Promise<{
3
- data: import("../../store/reducers/nodes/types").NodesPreparedEntity[];
4
- found: number;
5
- total: number;
6
- }>;
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'>>;
@@ -1,9 +1,26 @@
1
1
  import { prepareNodesData } from '../../store/reducers/nodes/utils';
2
+ import { getProblemParamValue, getUptimeParamValue } from '../../utils/nodes';
2
3
  const getConcurrentId = (limit, offset) => {
3
4
  return `getNodes|offset${offset}|limit${limit}`;
4
5
  };
5
- export const getNodes = async ({ type = 'any', storage = false, tablets = true, limit, offset, ...params }) => {
6
- const response = await window.api.getNodes({ type, storage, tablets, limit, offset, ...params }, { concurrentId: getConcurrentId(limit, offset) });
6
+ export const getNodes = async (params) => {
7
+ const { type = 'any', storage = false, tablets = true, limit, offset, sortParams, filters, } = params;
8
+ const { sortOrder, columnId } = sortParams !== null && sortParams !== void 0 ? sortParams : {};
9
+ const { path, database, searchValue, problemFilter, uptimeFilter } = filters !== null && filters !== void 0 ? filters : {};
10
+ const response = await window.api.getNodes({
11
+ type,
12
+ storage,
13
+ tablets,
14
+ limit,
15
+ offset,
16
+ sortOrder,
17
+ sortValue: columnId,
18
+ path,
19
+ database,
20
+ filter: searchValue,
21
+ problems_only: getProblemParamValue(problemFilter),
22
+ uptime: getUptimeParamValue(uptimeFilter),
23
+ }, { concurrentId: getConcurrentId(limit, offset), signal: params.signal });
7
24
  const preparedResponse = prepareNodesData(response);
8
25
  return {
9
26
  data: preparedResponse.Nodes || [],
@@ -1 +1 @@
1
- {"version":3,"file":"getNodes.js","sourceRoot":"","sources":["../../../src/containers/Nodes/getNodes.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,gBAAgB,EAAC,MAAM,kCAAkC,CAAC;AAElE,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,GAAG,KAAK,EAAE,EAC3B,IAAI,GAAG,KAAK,EACZ,OAAO,GAAG,KAAK,EACf,OAAO,GAAG,IAAI,EACd,KAAK,EACL,MAAM,EACN,GAAG,MAAM,EACW,EAAE,EAAE;IACxB,MAAM,QAAQ,GAAG,MAAM,MA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