ydb-embedded-ui 6.15.1 → 6.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (422) hide show
  1. package/dist/components/ContentWithPopup/ContentWithPopup.d.ts +2 -1
  2. package/dist/components/ContentWithPopup/ContentWithPopup.js +9 -2
  3. package/dist/components/ContentWithPopup/ContentWithPopup.js.map +1 -1
  4. package/dist/components/ElapsedTime/ElapsedTime.js +2 -1
  5. package/dist/components/ElapsedTime/ElapsedTime.js.map +1 -1
  6. package/dist/components/EmptyState/EmptyState.d.ts +6 -0
  7. package/dist/components/EmptyState/EmptyState.js +6 -0
  8. package/dist/components/EmptyState/EmptyState.js.map +1 -1
  9. package/dist/components/EntitiesCount/EntitiesCount.js +3 -1
  10. package/dist/components/EntitiesCount/EntitiesCount.js.map +1 -1
  11. package/dist/components/EntityPageTitle/EntityPageTitle.d.ts +11 -0
  12. package/dist/components/{DiskPageTitle/DiskPageTitle.js → EntityPageTitle/EntityPageTitle.js} +5 -5
  13. package/dist/components/EntityPageTitle/EntityPageTitle.js.map +1 -0
  14. package/dist/components/{DiskPageTitle/DiskPageTitle.scss → EntityPageTitle/EntityPageTitle.scss} +1 -1
  15. package/dist/components/ErrorBoundary/ErrorBoundary.scss +2 -0
  16. package/dist/components/FullNodeViewer/FullNodeViewer.js +1 -1
  17. package/dist/components/FullNodeViewer/FullNodeViewer.js.map +1 -1
  18. package/dist/components/InfoViewer/InfoViewer.d.ts +0 -1
  19. package/dist/components/InfoViewer/InfoViewer.js +0 -1
  20. package/dist/components/InfoViewer/InfoViewer.js.map +1 -1
  21. package/dist/components/InfoViewer/index.d.ts +1 -1
  22. package/dist/components/InfoViewer/index.js +1 -1
  23. package/dist/components/InfoViewer/index.js.map +1 -1
  24. package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.d.ts +2 -1
  25. package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.js +10 -1
  26. package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.js.map +1 -1
  27. package/dist/components/MetricChart/reducer.d.ts +2 -2
  28. package/dist/components/NodeHostWrapper/NodeHostWrapper.d.ts +2 -1
  29. package/dist/components/NodeHostWrapper/NodeHostWrapper.js +2 -2
  30. package/dist/components/NodeHostWrapper/NodeHostWrapper.js.map +1 -1
  31. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.d.ts +9 -0
  32. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js +9 -0
  33. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js.map +1 -0
  34. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.scss +3 -0
  35. package/dist/components/PageMeta/PageMeta.d.ts +2 -1
  36. package/dist/components/PageMeta/PageMeta.js +9 -4
  37. package/dist/components/PageMeta/PageMeta.js.map +1 -1
  38. package/dist/components/PageMeta/PageMeta.scss +9 -6
  39. package/dist/components/PaginatedTable/PaginatedTable.d.ts +5 -4
  40. package/dist/components/PaginatedTable/PaginatedTable.js +24 -116
  41. package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
  42. package/dist/components/PaginatedTable/PaginatedTable.scss +8 -0
  43. package/dist/components/PaginatedTable/ResizeablePaginatedTable.d.ts +2 -2
  44. package/dist/components/PaginatedTable/ResizeablePaginatedTable.js.map +1 -1
  45. package/dist/components/PaginatedTable/TableChunk.d.ts +13 -5
  46. package/dist/components/PaginatedTable/TableChunk.js +53 -22
  47. package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
  48. package/dist/components/PaginatedTable/TableHead.js +1 -1
  49. package/dist/components/PaginatedTable/TableHead.js.map +1 -1
  50. package/dist/components/PaginatedTable/TableRow.js +1 -1
  51. package/dist/components/PaginatedTable/TableRow.js.map +1 -1
  52. package/dist/components/PaginatedTable/types.d.ts +8 -1
  53. package/dist/components/Skeleton/Skeleton.d.ts +6 -0
  54. package/dist/components/Skeleton/Skeleton.js +11 -0
  55. package/dist/components/Skeleton/Skeleton.js.map +1 -0
  56. package/dist/components/Tablet/Tablet.js +2 -2
  57. package/dist/components/Tablet/Tablet.js.map +1 -1
  58. package/dist/components/TabletState/TabletState.d.ts +6 -0
  59. package/dist/components/TabletState/TabletState.js +7 -0
  60. package/dist/components/TabletState/TabletState.js.map +1 -0
  61. package/dist/components/TabletsStatistic/TabletsStatistic.d.ts +2 -2
  62. package/dist/components/TabletsStatistic/TabletsStatistic.js +4 -6
  63. package/dist/components/TabletsStatistic/TabletsStatistic.js.map +1 -1
  64. package/dist/components/YDBDefinitionList/YDBDefinitionList.d.ts +9 -0
  65. package/dist/components/YDBDefinitionList/YDBDefinitionList.js +23 -0
  66. package/dist/components/YDBDefinitionList/YDBDefinitionList.js.map +1 -0
  67. package/dist/{containers/Tenant/Info/View/View.scss → components/YDBDefinitionList/YDBDefinitionList.scss} +6 -6
  68. package/dist/components/YDBDefinitionList/i18n/en.json +3 -0
  69. package/dist/components/YDBDefinitionList/i18n/index.d.ts +2 -0
  70. package/dist/components/YDBDefinitionList/i18n/index.js +5 -0
  71. package/dist/components/YDBDefinitionList/i18n/index.js.map +1 -0
  72. package/dist/containers/App/Content.js +1 -7
  73. package/dist/containers/App/Content.js.map +1 -1
  74. package/dist/containers/App/appSlots.d.ts +0 -6
  75. package/dist/containers/App/appSlots.js +0 -1
  76. package/dist/containers/App/appSlots.js.map +1 -1
  77. package/dist/containers/Cluster/Cluster.js +13 -22
  78. package/dist/containers/Cluster/Cluster.js.map +1 -1
  79. package/dist/containers/Cluster/Cluster.scss +14 -0
  80. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.d.ts +3 -3
  81. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +18 -2
  82. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js.map +1 -1
  83. package/dist/containers/Cluster/i18n/index.d.ts +1 -1
  84. package/dist/containers/Header/Header.js +6 -7
  85. package/dist/containers/Header/Header.js.map +1 -1
  86. package/dist/containers/Header/breadcrumbs.js +26 -30
  87. package/dist/containers/Header/breadcrumbs.js.map +1 -1
  88. package/dist/containers/Heatmap/HeatmapCanvas/HeatmapCanvas.js +2 -2
  89. package/dist/containers/Heatmap/HeatmapCanvas/HeatmapCanvas.js.map +1 -1
  90. package/dist/containers/Node/Node.js +12 -6
  91. package/dist/containers/Node/Node.js.map +1 -1
  92. package/dist/containers/Node/NodePages.d.ts +2 -1
  93. package/dist/containers/Node/NodePages.js +2 -2
  94. package/dist/containers/Node/NodePages.js.map +1 -1
  95. package/dist/containers/Nodes/Nodes.d.ts +2 -1
  96. package/dist/containers/Nodes/Nodes.js +3 -2
  97. package/dist/containers/Nodes/Nodes.js.map +1 -1
  98. package/dist/containers/Nodes/NodesWrapper.d.ts +1 -0
  99. package/dist/containers/Nodes/NodesWrapper.js.map +1 -1
  100. package/dist/containers/Nodes/PaginatedNodes.d.ts +2 -1
  101. package/dist/containers/Nodes/PaginatedNodes.js +7 -18
  102. package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
  103. package/dist/containers/Nodes/getNodes.d.ts +3 -6
  104. package/dist/containers/Nodes/getNodes.js +19 -2
  105. package/dist/containers/Nodes/getNodes.js.map +1 -1
  106. package/dist/containers/Nodes/getNodesColumns.d.ts +3 -3
  107. package/dist/containers/Nodes/getNodesColumns.js +9 -9
  108. package/dist/containers/Nodes/getNodesColumns.js.map +1 -1
  109. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +2 -2
  110. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js.map +1 -1
  111. package/dist/containers/PDiskPage/PDiskPage.js +4 -5
  112. package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
  113. package/dist/containers/PDiskPage/PDiskPage.scss +0 -7
  114. package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
  115. package/dist/containers/Storage/PaginatedStorage.d.ts +2 -2
  116. package/dist/containers/Storage/PaginatedStorage.js +3 -3
  117. package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
  118. package/dist/containers/Storage/Storage.d.ts +2 -2
  119. package/dist/containers/Storage/Storage.js +4 -4
  120. package/dist/containers/Storage/Storage.js.map +1 -1
  121. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +2 -2
  122. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js +5 -17
  123. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +1 -1
  124. package/dist/containers/Storage/StorageGroups/getGroups.d.ts +3 -6
  125. package/dist/containers/Storage/StorageGroups/getGroups.js +15 -2
  126. package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
  127. package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.d.ts +1 -1
  128. package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.js +1 -1
  129. package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.js.map +1 -1
  130. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.d.ts +2 -2
  131. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js +8 -20
  132. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js.map +1 -1
  133. package/dist/containers/Storage/StorageNodes/StorageNodes.d.ts +2 -1
  134. package/dist/containers/Storage/StorageNodes/StorageNodes.js +2 -2
  135. package/dist/containers/Storage/StorageNodes/StorageNodes.js.map +1 -1
  136. package/dist/containers/Storage/StorageNodes/getNodes.d.ts +3 -5
  137. package/dist/containers/Storage/StorageNodes/getNodes.js +17 -2
  138. package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
  139. package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.d.ts +1 -1
  140. package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js +4 -4
  141. package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js.map +1 -1
  142. package/dist/containers/Storage/StorageWrapper.d.ts +1 -1
  143. package/dist/containers/Tablet/Tablet.d.ts +1 -1
  144. package/dist/containers/Tablet/Tablet.js +118 -54
  145. package/dist/containers/Tablet/Tablet.js.map +1 -1
  146. package/dist/containers/Tablet/Tablet.scss +4 -81
  147. package/dist/containers/Tablet/components/TabletControls/TabletControls.d.ts +6 -0
  148. package/dist/containers/Tablet/components/TabletControls/TabletControls.js +27 -0
  149. package/dist/containers/Tablet/components/TabletControls/TabletControls.js.map +1 -0
  150. package/dist/containers/Tablet/components/TabletControls/index.js.map +1 -0
  151. package/dist/containers/Tablet/components/TabletInfo/TabletInfo.d.ts +7 -0
  152. package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js +59 -0
  153. package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js.map +1 -0
  154. package/dist/containers/Tablet/components/TabletInfo/TabletInfo.scss +12 -0
  155. package/dist/containers/Tablet/components/TabletInfo/i18n/en.json +16 -0
  156. package/dist/containers/Tablet/components/TabletInfo/i18n/index.d.ts +1 -0
  157. package/dist/containers/Tablet/components/TabletInfo/i18n/index.js +5 -0
  158. package/dist/containers/Tablet/components/TabletInfo/i18n/index.js.map +1 -0
  159. package/dist/containers/Tablet/components/TabletInfo/index.js.map +1 -0
  160. package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.d.ts +7 -0
  161. package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.js +36 -0
  162. package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.js.map +1 -0
  163. package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.scss +78 -0
  164. package/dist/containers/Tablet/components/TabletStorageInfo/columns.d.ts +3 -0
  165. package/dist/containers/Tablet/components/TabletStorageInfo/columns.js +56 -0
  166. package/dist/containers/Tablet/components/TabletStorageInfo/columns.js.map +1 -0
  167. package/dist/containers/Tablet/components/TabletStorageInfo/i18n/en.json +7 -0
  168. package/dist/containers/Tablet/components/TabletStorageInfo/i18n/index.d.ts +1 -0
  169. package/dist/containers/Tablet/components/TabletStorageInfo/i18n/index.js +5 -0
  170. package/dist/containers/Tablet/components/TabletStorageInfo/i18n/index.js.map +1 -0
  171. package/dist/containers/Tablet/components/TabletStorageInfo/shared.d.ts +1 -0
  172. package/dist/containers/Tablet/components/TabletStorageInfo/shared.js +3 -0
  173. package/dist/containers/Tablet/components/TabletStorageInfo/shared.js.map +1 -0
  174. package/dist/containers/Tablet/components/TabletStorageInfo/types.d.ts +5 -0
  175. package/dist/containers/Tablet/components/TabletStorageInfo/types.js +2 -0
  176. package/dist/containers/Tablet/components/TabletStorageInfo/types.js.map +1 -0
  177. package/dist/containers/Tablet/components/TabletStorageInfo/utils.d.ts +3 -0
  178. package/dist/containers/Tablet/components/TabletStorageInfo/utils.js +29 -0
  179. package/dist/containers/Tablet/components/TabletStorageInfo/utils.js.map +1 -0
  180. package/dist/containers/Tablet/{TabletTable → components/TabletTable}/TabletTable.d.ts +1 -1
  181. package/dist/containers/Tablet/{TabletTable → components/TabletTable}/TabletTable.js +7 -6
  182. package/dist/containers/Tablet/components/TabletTable/TabletTable.js.map +1 -0
  183. package/dist/containers/Tablet/components/TabletTable/index.js.map +1 -0
  184. package/dist/containers/Tablet/i18n/en.json +5 -1
  185. package/dist/containers/Tablet/i18n/index.d.ts +1 -1
  186. package/dist/containers/Tablet/utils.d.ts +1 -0
  187. package/dist/containers/Tablet/utils.js +4 -0
  188. package/dist/containers/Tablet/utils.js.map +1 -0
  189. package/dist/containers/Tablets/Tablets.d.ts +2 -1
  190. package/dist/containers/Tablets/Tablets.js +100 -90
  191. package/dist/containers/Tablets/Tablets.js.map +1 -1
  192. package/dist/containers/Tablets/i18n/index.d.ts +1 -1
  193. package/dist/containers/Tenant/Acl/Acl.scss +2 -2
  194. package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +10 -9
  195. package/dist/containers/Tenant/Diagnostics/Describe/Describe.js.map +1 -1
  196. package/dist/containers/Tenant/Diagnostics/Describe/Describe.scss +13 -2
  197. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +3 -3
  198. package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
  199. package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationInfo/AsyncReplicationInfo.js +39 -20
  200. package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationInfo/AsyncReplicationInfo.js.map +1 -1
  201. package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.js +21 -11
  202. package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.js.map +1 -1
  203. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorage.js +1 -1
  204. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorage.js.map +1 -1
  205. package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js +2 -2
  206. package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js.map +1 -1
  207. package/dist/containers/Tenant/Info/View/View.d.ts +0 -1
  208. package/dist/containers/Tenant/Info/View/View.js +3 -5
  209. package/dist/containers/Tenant/Info/View/View.js.map +1 -1
  210. package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js +3 -8
  211. package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js.map +1 -1
  212. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +1 -1
  213. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js.map +1 -1
  214. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.scss +3 -0
  215. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.js +2 -5
  216. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.js.map +1 -1
  217. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.d.ts +0 -1
  218. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.js +0 -21
  219. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.js.map +1 -1
  220. package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js +19 -1
  221. package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js.map +1 -1
  222. package/dist/containers/Tenant/Query/Query.js +2 -14
  223. package/dist/containers/Tenant/Query/Query.js.map +1 -1
  224. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +4 -4
  225. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
  226. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js +1 -1
  227. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js.map +1 -1
  228. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js +1 -1
  229. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js.map +1 -1
  230. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +3 -3
  231. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js.map +1 -1
  232. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +8 -8
  233. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +6 -6
  234. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js.map +1 -1
  235. package/dist/containers/Tenant/Query/i18n/en.json +4 -1
  236. package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
  237. package/dist/containers/Tenant/Query/utils/useSavedQueries.js +2 -1
  238. package/dist/containers/Tenant/Query/utils/useSavedQueries.js.map +1 -1
  239. package/dist/containers/Tenant/Schema/SchemaViewer/KeysView.d.ts +8 -0
  240. package/dist/containers/Tenant/Schema/SchemaViewer/KeysView.js +15 -0
  241. package/dist/containers/Tenant/Schema/SchemaViewer/KeysView.js.map +1 -0
  242. package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +7 -13
  243. package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js.map +1 -1
  244. package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.scss +62 -3
  245. package/dist/containers/Tenant/Schema/SchemaViewer/columns.js +3 -21
  246. package/dist/containers/Tenant/Schema/SchemaViewer/columns.js.map +1 -1
  247. package/dist/containers/Tenant/Schema/SchemaViewer/i18n/en.json +3 -2
  248. package/dist/containers/Tenant/Schema/SchemaViewer/i18n/index.d.ts +1 -1
  249. package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js +13 -23
  250. package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js.map +1 -1
  251. package/dist/containers/Tenant/Schema/SchemaViewer/types.d.ts +2 -3
  252. package/dist/containers/Tenant/Schema/SchemaViewer/utils.d.ts +3 -0
  253. package/dist/containers/Tenant/Schema/SchemaViewer/utils.js +9 -0
  254. package/dist/containers/Tenant/Schema/SchemaViewer/utils.js.map +1 -0
  255. package/dist/containers/Tenant/utils/queryTemplates.js +6 -5
  256. package/dist/containers/Tenant/utils/queryTemplates.js.map +1 -1
  257. package/dist/containers/Tenants/Tenants.js +2 -2
  258. package/dist/containers/Tenants/Tenants.js.map +1 -1
  259. package/dist/containers/UserSettings/i18n/en.json +0 -3
  260. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  261. package/dist/containers/UserSettings/settings.d.ts +0 -1
  262. package/dist/containers/UserSettings/settings.js +2 -10
  263. package/dist/containers/UserSettings/settings.js.map +1 -1
  264. package/dist/containers/VDiskPage/VDiskPage.d.ts +4 -0
  265. package/dist/containers/VDiskPage/VDiskPage.js +17 -14
  266. package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
  267. package/dist/containers/VDiskPage/VDiskPage.scss +9 -4
  268. package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
  269. package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.d.ts +2 -2
  270. package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.js.map +1 -1
  271. package/dist/containers/Versions/NodesTable/NodesTable.d.ts +2 -2
  272. package/dist/containers/Versions/NodesTable/NodesTable.js.map +1 -1
  273. package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.d.ts +2 -2
  274. package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.js.map +1 -1
  275. package/dist/containers/Versions/Versions.js +3 -2
  276. package/dist/containers/Versions/Versions.js.map +1 -1
  277. package/dist/containers/Versions/groupNodes.d.ts +4 -4
  278. package/dist/containers/Versions/groupNodes.js.map +1 -1
  279. package/dist/containers/Versions/types.d.ts +2 -2
  280. package/dist/routes.d.ts +1 -0
  281. package/dist/routes.js +3 -0
  282. package/dist/routes.js.map +1 -1
  283. package/dist/services/api.d.ts +19 -12
  284. package/dist/services/api.js +45 -15
  285. package/dist/services/api.js.map +1 -1
  286. package/dist/services/settings.d.ts +1 -2
  287. package/dist/services/settings.js +1 -2
  288. package/dist/services/settings.js.map +1 -1
  289. package/dist/store/configureStore.d.ts +6 -10
  290. package/dist/store/defaultStore.d.ts +3 -5
  291. package/dist/store/reducers/api.d.ts +1 -1
  292. package/dist/store/reducers/api.js +1 -1
  293. package/dist/store/reducers/api.js.map +1 -1
  294. package/dist/store/reducers/authentication/authentication.d.ts +4 -4
  295. package/dist/store/reducers/cancelQuery.d.ts +2 -2
  296. package/dist/store/reducers/capabilities/capabilities.d.ts +6 -10
  297. package/dist/store/reducers/capabilities/hooks.d.ts +1 -0
  298. package/dist/store/reducers/capabilities/hooks.js +3 -0
  299. package/dist/store/reducers/capabilities/hooks.js.map +1 -1
  300. package/dist/store/reducers/cluster/cluster.d.ts +2 -2
  301. package/dist/store/reducers/clusters/clusters.d.ts +2 -2
  302. package/dist/store/reducers/describe.d.ts +2 -2
  303. package/dist/store/reducers/executeQuery.d.ts +18 -4
  304. package/dist/store/reducers/executeQuery.js +50 -5
  305. package/dist/store/reducers/executeQuery.js.map +1 -1
  306. package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +2 -2
  307. package/dist/store/reducers/explainQuery/explainQuery.d.ts +2 -2
  308. package/dist/store/reducers/header/types.d.ts +7 -7
  309. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +58 -78
  310. package/dist/store/reducers/heatmap.d.ts +2 -2
  311. package/dist/store/reducers/heatmap.js +2 -2
  312. package/dist/store/reducers/heatmap.js.map +1 -1
  313. package/dist/store/reducers/hotKeys/hotKeys.d.ts +2 -2
  314. package/dist/store/reducers/index.d.ts +5 -8
  315. package/dist/store/reducers/index.js +0 -2
  316. package/dist/store/reducers/index.js.map +1 -1
  317. package/dist/store/reducers/network/network.d.ts +2 -2
  318. package/dist/store/reducers/node/node.d.ts +3 -3
  319. package/dist/store/reducers/node/selectors.d.ts +1 -2
  320. package/dist/store/reducers/nodes/nodes.d.ts +3 -3
  321. package/dist/store/reducers/nodes/types.d.ts +17 -1
  322. package/dist/store/reducers/nodes/utils.js +6 -0
  323. package/dist/store/reducers/nodes/utils.js.map +1 -1
  324. package/dist/store/reducers/nodesList.d.ts +3 -4
  325. package/dist/store/reducers/overview/overview.d.ts +2 -2
  326. package/dist/store/reducers/partitions/partitions.d.ts +2 -2
  327. package/dist/store/reducers/pdisk/pdisk.d.ts +3 -3
  328. package/dist/store/reducers/preview.d.ts +2 -2
  329. package/dist/store/reducers/schema/schema.d.ts +3 -3
  330. package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +2 -2
  331. package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +2 -2
  332. package/dist/store/reducers/storage/storage.d.ts +3 -3
  333. package/dist/store/reducers/storage/types.d.ts +15 -0
  334. package/dist/store/reducers/storage/types.js.map +1 -1
  335. package/dist/store/reducers/tableData.d.ts +14 -0
  336. package/dist/store/reducers/tableData.js +25 -0
  337. package/dist/store/reducers/tableData.js.map +1 -0
  338. package/dist/store/reducers/tablet.d.ts +20 -3
  339. package/dist/store/reducers/tablet.js +82 -13
  340. package/dist/store/reducers/tablet.js.map +1 -1
  341. package/dist/store/reducers/tablets.d.ts +15 -23
  342. package/dist/store/reducers/tablets.js +2 -20
  343. package/dist/store/reducers/tablets.js.map +1 -1
  344. package/dist/store/reducers/tenant/tenant.d.ts +2 -2
  345. package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +2 -2
  346. package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +2 -2
  347. package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +2 -2
  348. package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +2 -2
  349. package/dist/store/reducers/tenants/selectors.d.ts +30 -40
  350. package/dist/store/reducers/tenants/selectors.js +9 -8
  351. package/dist/store/reducers/tenants/selectors.js.map +1 -1
  352. package/dist/store/reducers/tenants/tenants.d.ts +2 -2
  353. package/dist/store/reducers/topic.d.ts +44 -59
  354. package/dist/store/reducers/vdisk/types.d.ts +1 -1
  355. package/dist/store/reducers/vdisk/vdisk.d.ts +3 -3
  356. package/dist/store/reducers/viewSchema/viewSchema.d.ts +2 -2
  357. package/dist/store/state-url-mapping.d.ts +0 -8
  358. package/dist/store/state-url-mapping.js +0 -8
  359. package/dist/store/state-url-mapping.js.map +1 -1
  360. package/dist/styles/mixins.scss +3 -3
  361. package/dist/types/api/capabilities.d.ts +1 -1
  362. package/dist/types/api/nodes.d.ts +5 -0
  363. package/dist/types/api/nodes.js.map +1 -1
  364. package/dist/types/api/schema/shared.d.ts +1 -3
  365. package/dist/types/api/schema/shared.js.map +1 -1
  366. package/dist/types/api/schema/table.d.ts +2 -0
  367. package/dist/types/api/schema/table.js.map +1 -1
  368. package/dist/types/api/tablet.d.ts +22 -0
  369. package/dist/types/store/executeQuery.d.ts +5 -2
  370. package/dist/types/store/heatmap.d.ts +0 -1
  371. package/dist/types/store/tablets.d.ts +2 -1
  372. package/dist/utils/constants.d.ts +2 -2
  373. package/dist/utils/constants.js +2 -2
  374. package/dist/utils/constants.js.map +1 -1
  375. package/dist/utils/dataFormatters/dataFormatters.d.ts +1 -0
  376. package/dist/utils/dataFormatters/dataFormatters.js +5 -0
  377. package/dist/utils/dataFormatters/dataFormatters.js.map +1 -1
  378. package/dist/utils/developerUI/developerUI.d.ts +1 -1
  379. package/dist/utils/developerUI/developerUI.js +3 -2
  380. package/dist/utils/developerUI/developerUI.js.map +1 -1
  381. package/dist/utils/hooks/useQueryExecutionSettings.js +3 -2
  382. package/dist/utils/hooks/useQueryExecutionSettings.js.map +1 -1
  383. package/dist/utils/versions/parseNodesToVersionsValues.d.ts +7 -0
  384. package/dist/utils/versions/parseNodesToVersionsValues.js +10 -0
  385. package/dist/utils/versions/parseNodesToVersionsValues.js.map +1 -1
  386. package/package.json +2 -1
  387. package/dist/components/DiskPageTitle/DiskPageTitle.d.ts +0 -10
  388. package/dist/components/DiskPageTitle/DiskPageTitle.js.map +0 -1
  389. package/dist/components/PaginatedTable/reducer.d.ts +0 -43
  390. package/dist/components/PaginatedTable/reducer.js +0 -104
  391. package/dist/components/PaginatedTable/reducer.js.map +0 -1
  392. package/dist/containers/Tablet/TabletControls/TabletControls.d.ts +0 -7
  393. package/dist/containers/Tablet/TabletControls/TabletControls.js +0 -29
  394. package/dist/containers/Tablet/TabletControls/TabletControls.js.map +0 -1
  395. package/dist/containers/Tablet/TabletControls/index.js.map +0 -1
  396. package/dist/containers/Tablet/TabletInfo/TabletInfo.d.ts +0 -7
  397. package/dist/containers/Tablet/TabletInfo/TabletInfo.js +0 -40
  398. package/dist/containers/Tablet/TabletInfo/TabletInfo.js.map +0 -1
  399. package/dist/containers/Tablet/TabletInfo/index.js.map +0 -1
  400. package/dist/containers/Tablet/TabletTable/TabletTable.js.map +0 -1
  401. package/dist/containers/Tablet/TabletTable/index.js.map +0 -1
  402. package/dist/containers/TabletsFilters/TabletsFilters.d.ts +0 -2
  403. package/dist/containers/TabletsFilters/TabletsFilters.js +0 -91
  404. package/dist/containers/TabletsFilters/TabletsFilters.js.map +0 -1
  405. package/dist/containers/TabletsFilters/TabletsFilters.scss +0 -80
  406. package/dist/containers/TabletsFilters/i18n/en.json +0 -3
  407. package/dist/containers/TabletsFilters/i18n/index.d.ts +0 -2
  408. package/dist/containers/TabletsFilters/i18n/index.js +0 -6
  409. package/dist/containers/TabletsFilters/i18n/index.js.map +0 -1
  410. package/dist/containers/TabletsFilters/i18n/ru.json +0 -3
  411. package/dist/store/reducers/clusterNodes/clusterNodes.d.ts +0 -5
  412. package/dist/store/reducers/clusterNodes/clusterNodes.js +0 -22
  413. package/dist/store/reducers/clusterNodes/clusterNodes.js.map +0 -1
  414. package/dist/store/reducers/tabletsFilters.d.ts +0 -45
  415. package/dist/store/reducers/tabletsFilters.js +0 -20
  416. package/dist/store/reducers/tabletsFilters.js.map +0 -1
  417. /package/dist/containers/Tablet/{TabletControls → components/TabletControls}/index.d.ts +0 -0
  418. /package/dist/containers/Tablet/{TabletControls → components/TabletControls}/index.js +0 -0
  419. /package/dist/containers/Tablet/{TabletInfo → components/TabletInfo}/index.d.ts +0 -0
  420. /package/dist/containers/Tablet/{TabletInfo → components/TabletInfo}/index.js +0 -0
  421. /package/dist/containers/Tablet/{TabletTable → components/TabletTable}/index.d.ts +0 -0
  422. /package/dist/containers/Tablet/{TabletTable → components/TabletTable}/index.js +0 -0
@@ -1,6 +1,65 @@
1
+ @import '../../../../styles/mixins.scss';
2
+
1
3
  .schema-viewer {
2
- &__key-icon {
3
- display: flex;
4
- align-items: center;
4
+ &__keys {
5
+ display: inline-block;
6
+
7
+ padding-bottom: var(--g-spacing-4);
8
+ padding-left: 10px;
9
+
10
+ &-values {
11
+ display: inline;
12
+
13
+ color: var(--g-color-text-complementary);
14
+ @include body-1-typography();
15
+ }
16
+
17
+ &-header {
18
+ display: inline;
19
+
20
+ font-weight: bold;
21
+ white-space: nowrap;
22
+
23
+ color: var(--g-color-text-primary);
24
+ @include subheader-1-typography();
25
+ }
26
+
27
+ &-label {
28
+ cursor: pointer;
29
+ }
30
+
31
+ &-wrapper {
32
+ position: sticky;
33
+ z-index: 1;
34
+ left: 0;
35
+
36
+ width: 100%;
37
+ }
38
+
39
+ & + & {
40
+ margin-left: var(--g-spacing-8);
41
+ }
42
+
43
+ &_summary {
44
+ & + & {
45
+ margin-left: 0;
46
+ }
47
+ }
48
+ }
49
+
50
+ &__popup-content {
51
+ padding: var(--g-spacing-2) var(--g-spacing-4);
52
+ }
53
+
54
+ &__popup-item {
55
+ padding-bottom: var(--g-spacing-2);
56
+
57
+ &:last-child {
58
+ padding-bottom: 0;
59
+ }
60
+ }
61
+
62
+ &__more-badge {
63
+ margin-left: var(--g-spacing-1);
5
64
  }
6
65
  }
@@ -1,9 +1,5 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
1
  import DataTable from '@gravity-ui/react-data-table';
3
- import { Icon } from '@gravity-ui/uikit';
4
2
  import i18n from './i18n';
5
- import { b } from './shared';
6
- import keyIcon from '../../../../assets/icons/key.svg';
7
3
  export const SCHEMA_COLUMNS_WIDTH_LS_KEY = 'schemaTableColumnsWidth';
8
4
  export const SCHEMA_TABLE_COLUMS_IDS = {
9
5
  id: 'id',
@@ -33,20 +29,6 @@ const nameColumn = {
33
29
  width: 100,
34
30
  render: ({ row }) => row.name,
35
31
  };
36
- const keyColumn = {
37
- name: SCHEMA_TABLE_COLUMS_IDS.isKeyColumn,
38
- get header() {
39
- return i18n('column-title.key');
40
- },
41
- width: 70,
42
- resizeMinWidth: 70,
43
- // Table should start with key columns on sort click
44
- defaultOrder: DataTable.ASCENDING,
45
- sortAccessor: (row) => row.keyAccessor,
46
- render: ({ row }) => {
47
- return row.isKeyColumn ? (_jsx("div", { className: b('key-icon'), children: _jsx(Icon, { data: keyIcon, width: 12, height: 7 }) })) : null;
48
- },
49
- };
50
32
  const typeColumn = {
51
33
  name: SCHEMA_TABLE_COLUMS_IDS.type,
52
34
  get header() {
@@ -91,7 +73,7 @@ const defaultValueColumn = {
91
73
  return i18n('column-title.defaultValue');
92
74
  },
93
75
  width: 100,
94
- render: ({ row }) => row.defaultValue,
76
+ render: ({ row }) => String(row.defaultValue),
95
77
  };
96
78
  const familyColumn = {
97
79
  name: SCHEMA_TABLE_COLUMS_IDS.familyName,
@@ -124,10 +106,10 @@ export function getExternalTableColumns() {
124
106
  return [idColumn, nameColumn, typeColumn, notNullColumn];
125
107
  }
126
108
  export function getColumnTableColumns() {
127
- return [idColumn, keyColumn, nameColumn, typeColumn, notNullColumn];
109
+ return [idColumn, nameColumn, typeColumn, notNullColumn];
128
110
  }
129
111
  export function getRowTableColumns(extended, hasAutoIncrement, hasDefaultValue) {
130
- const rowTableColumns = [idColumn, keyColumn, nameColumn, typeColumn, notNullColumn];
112
+ const rowTableColumns = [idColumn, nameColumn, typeColumn, notNullColumn];
131
113
  if (hasDefaultValue) {
132
114
  rowTableColumns.push(defaultValueColumn);
133
115
  }
@@ -1 +1 @@
1
- {"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Schema/SchemaViewer/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAEvC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,EAAC,CAAC,EAAC,MAAM,UAAU,CAAC;AAG3B,OAAO,OAAO,MAAM,kCAAkC,CAAC;AAEvD,MAAM,CAAC,MAAM,2BAA2B,GAAG,yBAAyB,CAAC;AAErE,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,aAAa,EAAE,eAAe;IAC9B,YAAY,EAAE,cAAc;IAC5B,UAAU,EAAE,YAAY;IACxB,iBAAiB,EAAE,mBAAmB;IACtC,WAAW,EAAE,aAAa;CACc,CAAC;AAE7C,MAAM,QAAQ,GAAiB;IAC3B,IAAI,EAAE,uBAAuB,CAAC,EAAE;IAChC,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,iBAAiB,CAAC,CAAC;IACnC,CAAC;IACD,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,CAAC,EAAC,GAAG,EAAC,EAAE,EAAE,CAAC,GAAG,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AAC;IAC9C,CAAC;IAED,OAAO,eAAe,CAAC;AAC3B,CAAC"}
1
+ {"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Schema/SchemaViewer/columns.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAErD,OAAO,IAAI,MAAM,QAAQ,CAAC;AAG1B,MAAM,CAAC,MAAM,2BAA2B,GAAG,yBAAyB,CAAC;AAErE,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,aAAa,EAAE,eAAe;IAC9B,YAAY,EAAE,cAAc;IAC5B,UAAU,EAAE,YAAY;IACxB,iBAAiB,EAAE,mBAAmB;IACtC,WAAW,EAAE,aAAa;CACc,CAAC;AAE7C,MAAM,QAAQ,GAAiB;IAC3B,IAAI,EAAE,uBAAuB,CAAC,EAAE;IAChC,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,iBAAiB,CAAC,CAAC;IACnC,CAAC;IACD,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,CAAC,EAAC,GAAG,EAAC,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE;CAC5B,CAAC;AACF,MAAM,UAAU,GAAiB;IAC7B,IAAI,EAAE,uBAAuB,CAAC,IAAI;IAClC,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,mBAAmB,CAAC,CAAC;IACrC,CAAC;IACD,KAAK,EAAE,GAAG;IACV,MAAM,EAAE,CAAC,EAAC,GAAG,EAAC,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI;CAC9B,CAAC;AACF,MAAM,UAAU,GAAiB;IAC7B,IAAI,EAAE,uBAAuB,CAAC,IAAI;IAClC,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,mBAAmB,CAAC,CAAC;IACrC,CAAC;IACD,KAAK,EA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;IAED,IAAI,QAAQ,EAAE,CAAC;QACX,eAAe,CAAC,IAAI,CAAC,YAAY,EAAE,WAAW,EAAE,iBAAiB,CAAC,CAAC;IACvE,CAAC;IAED,IAAI,gBAAgB,EAAE,CAAC;QACnB,eAAe,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IAC9C,CAAC;IAED,OAAO,eAAe,CAAC;AAC3B,CAAC"}
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "column-title.id": "Id",
3
3
  "column-title.name": "Name",
4
- "column-title.key": "Key",
5
4
  "column-title.type": "Type",
6
5
  "column-title.notNull": "NotNull",
7
6
  "column-title.autoIncrement": "AutoIncrement",
8
7
  "column-title.defaultValue": "Default",
9
8
  "column-title.family": "Family",
10
9
  "column-title.media": "Media",
11
- "column-title.compression": "Compression"
10
+ "column-title.compression": "Compression",
11
+ "primary-key.title": "Primary key:",
12
+ "partitioning-key.title": "Partitioning key:"
12
13
  }
@@ -1,2 +1,2 @@
1
- declare const _default: (key: "column-title.id" | "column-title.name" | "column-title.key" | "column-title.type" | "column-title.notNull" | "column-title.autoIncrement" | "column-title.defaultValue" | "column-title.family" | "column-title.media" | "column-title.compression", params?: import("@gravity-ui/i18n").Params) => string;
1
+ declare const _default: (key: "column-title.id" | "column-title.name" | "column-title.type" | "column-title.notNull" | "column-title.autoIncrement" | "column-title.defaultValue" | "column-title.family" | "column-title.media" | "column-title.compression" | "primary-key.title" | "partitioning-key.title", params?: import("@gravity-ui/i18n").Params) => string;
2
2
  export default _default;
@@ -1,15 +1,5 @@
1
1
  import { EColumnCodec } from '../../../../types/api/schema';
2
2
  import { isColumnEntityType, isExternalTableType, isRowTableType } from '../../utils/schema';
3
- function getKeyColumnsSortAccessorMap(ids = []) {
4
- return ids.reduce((result, keyColumnId, index) => {
5
- // Put columns with negative values, so they will be the first with ascending sort
6
- // Minus keyColumnIds.length for the first key, -1 for the last
7
- return {
8
- ...result,
9
- [keyColumnId]: index - ids.length,
10
- };
11
- }, {});
12
- }
13
3
  function formatColumnCodec(codec) {
14
4
  if (!codec) {
15
5
  return undefined;
@@ -34,13 +24,10 @@ export function prepareFamilies(data) {
34
24
  function prepareRowTableSchema(data = {}) {
35
25
  const families = prepareFamilies(data);
36
26
  const { Columns, KeyColumnIds } = data;
37
- const keyAccessorsMap = getKeyColumnsSortAccessorMap(KeyColumnIds);
38
27
  const preparedColumns = Columns === null || Columns === void 0 ? void 0 : Columns.map((column) => {
39
- var _a, _b, _c;
28
+ var _a, _b;
40
29
  const { Id, Name, NotNull, Type, Family, DefaultFromSequence, DefaultFromLiteral } = column;
41
30
  const isKeyColumn = Boolean(KeyColumnIds === null || KeyColumnIds === void 0 ? void 0 : KeyColumnIds.find((keyColumnId) => keyColumnId === Id));
42
- // Values in keyAccessorsMap are always negative, so it will be 1 for not key columns
43
- const keyAccessor = Id && keyAccessorsMap[Id] ? keyAccessorsMap[Id] : 1;
44
31
  const familyName = Family ? families[Family].Name : undefined;
45
32
  const prefferedPoolKind = Family
46
33
  ? (_b = (_a = families[Family].StorageConfig) === null || _a === void 0 ? void 0 : _a.Data) === null || _b === void 0 ? void 0 : _b.PreferredPoolKind
@@ -50,17 +37,18 @@ function prepareRowTableSchema(data = {}) {
50
37
  id: Id,
51
38
  name: Name,
52
39
  isKeyColumn,
53
- keyAccessor,
54
40
  type: Type,
55
41
  notNull: NotNull,
56
42
  autoIncrement: Boolean(DefaultFromSequence),
57
- defaultValue: (_c = DefaultFromLiteral === null || DefaultFromLiteral === void 0 ? void 0 : DefaultFromLiteral.value) === null || _c === void 0 ? void 0 : _c.text_value,
43
+ defaultValue: Object.values((DefaultFromLiteral === null || DefaultFromLiteral === void 0 ? void 0 : DefaultFromLiteral.value) || {})[0] || '-',
58
44
  familyName,
59
45
  prefferedPoolKind,
60
46
  columnCodec,
61
47
  };
62
48
  });
63
- return preparedColumns || [];
49
+ const keyColumns = (preparedColumns === null || preparedColumns === void 0 ? void 0 : preparedColumns.filter((column) => column.isKeyColumn)) || [];
50
+ const otherColumns = (preparedColumns === null || preparedColumns === void 0 ? void 0 : preparedColumns.filter((column) => !column.isKeyColumn)) || [];
51
+ return [...keyColumns, ...otherColumns];
64
52
  }
65
53
  function prepareExternalTableSchema(data = {}) {
66
54
  const { Columns } = data;
@@ -76,24 +64,26 @@ function prepareExternalTableSchema(data = {}) {
76
64
  return preparedColumns || [];
77
65
  }
78
66
  function prepareColumnTableSchema(data = {}) {
79
- const { Schema = {} } = data;
67
+ const { Schema = {}, Sharding = {} } = data;
80
68
  const { Columns, KeyColumnNames } = Schema;
81
- const keyAccessorsMap = getKeyColumnsSortAccessorMap(KeyColumnNames);
69
+ const { HashSharding = {} } = Sharding;
70
+ const { Columns: HashColumns = [] } = HashSharding;
82
71
  const preparedColumns = Columns === null || Columns === void 0 ? void 0 : Columns.map((column) => {
83
72
  const { Id, Name, Type, NotNull } = column;
84
73
  const isKeyColumn = Boolean(KeyColumnNames === null || KeyColumnNames === void 0 ? void 0 : KeyColumnNames.find((keyColumnName) => keyColumnName === Name));
85
- // Values in keyAccessorsMap are always negative, so it will be 1 for not key columns
86
- const keyAccessor = Name && keyAccessorsMap[Name] ? keyAccessorsMap[Name] : 1;
74
+ const isPartitioningKeyColumn = Boolean(HashColumns === null || HashColumns === void 0 ? void 0 : HashColumns.find((hashColumnName) => hashColumnName === Name));
87
75
  return {
88
76
  id: Id,
89
77
  name: Name,
90
78
  isKeyColumn,
91
- keyAccessor,
79
+ isPartitioningKeyColumn,
92
80
  type: Type,
93
81
  notNull: NotNull,
94
82
  };
95
83
  });
96
- return preparedColumns || [];
84
+ const keyColumns = (preparedColumns === null || preparedColumns === void 0 ? void 0 : preparedColumns.filter((column) => column.isKeyColumn)) || [];
85
+ const otherColumns = (preparedColumns === null || preparedColumns === void 0 ? void 0 : preparedColumns.filter((column) => !column.isKeyColumn)) || [];
86
+ return [...keyColumns, ...otherColumns];
97
87
  }
98
88
  export function prepareSchemaData(type, schema) {
99
89
  const { Table, ColumnTableDescription, ExternalTableDescription } = (schema === null || schema === void 0 ? void 0 : schema.PathDescription) || {};
@@ -1 +1 @@
1
- {"version":3,"file":"prepareData.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Schema/SchemaViewer/prepareData.ts"],"names":[],"mappings":"AASA,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAC,kBAAkB,EAAE,mBAAmB,EAAE,cAAc,EAAC,MAAM,oBAAoB,CAAC;AAI3F,SAAS,4BAA4B,CAA4B,MAAW,EAAE;IAC1E,OAAO,GAAG,CAAC,MAAM,CACb,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE;QAC3B,kFAAkF;QAClF,+DAA+D;QAC/D,OAAO;YACH,GAAG,MAAM;YACT,CAAC,WAAW,CAAC,EAAE,KAAK,GAAG,GAAG,CAAC,MAAM;SACpC,CAAC;IACN,CAAC,EACD,EAAuB,CAC1B,CAAC;AACN,CAAC;AAED,SAAS,iBAAiB,CAAC,KAAoB;IAC3C,IAAI,CAAC,KAAK,EAAE,CAAC;QACT,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,IAAI,KAAK,KAAK,YAAY,CAAC,gBAAgB,EAAE,CAAC;QAC1C,OAAO,MAAM,CAAC;IAClB,CAAC;IACD,OAAO,KAAK,CAAC,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC,iBAAiB,EAAE,CAAC;AAChE,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,IAAwB;;IACpD,OAAO,CACH,MAAA,MAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,eAAe,0CAAE,cAAc,0CAAE,MAAM,CACzC,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE;QACZ,IAAI,MAAM,CAAC,EAAE,EAAE,CAAC;YACZ,OAAO;gBACH,GAAG,GAAG;gBACN,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,MAAM;aACtB,CAAC;QACN,CAAC;QACD,OAAO,GAAG,CAAC;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,MAAM,CAAC,IAAI,0CAAE,QAAQ,CAAC,GAAG,CAAC,EAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC;QAEjF,OAAO;YACH,IAAI;YACJ,IAAI,EAAE,MAAM,CAAC,IAAI;SACpB,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,IAAI,EAAE,CAAC;AACjC,CAAC"}
1
+ {"version":3,"file":"prepareData.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Schema/SchemaViewer/prepareData.ts"],"names":[],"mappings":"AASA,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAC,kBAAkB,EAAE,mBAAmB,EAAE,cAAc,EAAC,MAAM,oBAAoB,CAAC;AAI3F,SAAS,iBAAiB,CAAC,KAAoB;IAC3C,IAAI,CAAC,KAAK,EAAE,CAAC;QACT,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,IAAI,KAAK,KAAK,YAAY,CAAC,gBAAgB,EAAE,CAAC;QAC1C,OAAO,MAAM,CAAC;IAClB,CAAC;IACD,OAAO,KAAK,CAAC,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC,iBAAiB,EAAE,CAAC;AAChE,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,IAAwB;;IACpD,OAAO,CACH,MAAA,MAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,eAAe,0CAAE,cAAc,0CAAE,MAAM,CACzC,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE;QACZ,IAAI,MAAM,CAAC,EAAE,EAAE,CAAC;YACZ,OAAO;gBACH,GAAG,GAAG;gBACN,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,MAAM;aACtB,CAAC;QACN,CAAC;QACD,OAAO,GAAG,CAAC;IACf,CAAC,EACD,EAAE,CACL,mCAA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,uBAAN,MAAM,CAAE,eAAe,KAAI,EAAE,CAAC;IAEhG,IAAI,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;QACvB,OAAO,qBAAqB,CAAC,KAAK,CAAC,CAAC;IACxC,CAAC;SAAM,IAAI,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC;QAClC,OAAO,wBAAwB,CAAC,sBAAsB,CAAC,CAAC;IAC5D,CAAC;SAAM,IAAI,mBAAmB,CAAC,IAAI,CAAC,EAAE,CAAC;QACnC,OAAO,0BAA0B,CAAC,wBAAwB,CAAC,CAAC;IAChE,CAAC;IAED,OAAO,EAAE,CAAC;AACd,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,OAAsB;IACpD,MAAM,eAAe,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;;QAC5C,8CAA8C;QAC9C,MAAM,IAAI,GAAG,CAAA,MAAA,MAAM,CAAC,IAAI,0CAAE,QAAQ,CAAC,GAAG,CAAC,EAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC;QAEjF,OAAO;YACH,IAAI;YACJ,IAAI,EAAE,MAAM,CAAC,IAAI;SACpB,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,IAAI,EAAE,CAAC;AACjC,CAAC"}
@@ -3,15 +3,14 @@ export interface SchemaData {
3
3
  id?: number;
4
4
  name?: string;
5
5
  isKeyColumn?: boolean;
6
- /** value to sort keys, needed to ensure that key columns will be the first */
7
- keyAccessor?: number;
6
+ isPartitioningKeyColumn?: boolean;
8
7
  type?: string;
9
8
  notNull?: boolean;
10
9
  autoIncrement?: boolean;
11
10
  familyName?: string;
12
11
  prefferedPoolKind?: string;
13
12
  columnCodec?: string;
14
- defaultValue?: string;
13
+ defaultValue?: string | number | boolean;
15
14
  }
16
15
  export interface SchemaColumn extends Column<SchemaData> {
17
16
  name: keyof SchemaData;
@@ -0,0 +1,3 @@
1
+ import type { SchemaData } from './types';
2
+ export declare function getPartitioningKeys(tableData: SchemaData[]): string[];
3
+ export declare function getPrimaryKeys(tableData: SchemaData[]): string[];
@@ -0,0 +1,9 @@
1
+ export function getPartitioningKeys(tableData) {
2
+ return tableData
3
+ .filter((row) => row.isPartitioningKeyColumn && row.name)
4
+ .map((row) => row.name);
5
+ }
6
+ export function getPrimaryKeys(tableData) {
7
+ return tableData.filter((row) => row.isKeyColumn && row.name).map((row) => row.name);
8
+ }
9
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Schema/SchemaViewer/utils.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,mBAAmB,CAAC,SAAuB;IACvD,OAAO,SAAS;SACX,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,uBAAuB,IAAI,GAAG,CAAC,IAAI,CAAC;SACxD,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAK,CAAC,CAAC;AACjC,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,SAAuB;IAClD,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,WAAW,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAK,CAAC,CAAC;AAC1F,CAAC"}
@@ -17,16 +17,17 @@ WITH (
17
17
  AUTO_PARTITIONING_PARTITION_SIZE_MB = 2048,
18
18
  AUTO_PARTITIONING_BY_LOAD = ENABLED,
19
19
  AUTO_PARTITIONING_MIN_PARTITIONS_COUNT = 4,
20
- AUTO_PARTITIONING_MAX_PARTITIONS_COUNT = 1024,
20
+ AUTO_PARTITIONING_MAX_PARTITIONS_COUNT = 1024
21
21
  -- uncomment to create a table with predefined partitions
22
- -- UNIFORM_PARTITIONS = 4, -- The number of partitions for uniform initial table partitioning.
22
+ -- , UNIFORM_PARTITIONS = 4 -- The number of partitions for uniform initial table partitioning.
23
23
  -- The primary key's first column must have type Uint64 or Uint32.
24
24
  -- A created table is immediately divided into the specified number of partitions
25
25
  -- uncomment to launch read only replicas in every AZ
26
- -- READ_REPLICAS_SETTINGS = 'PER_AZ:1', -- Enable read replicas for stale read, launch one replica in every availability zone
26
+ -- , READ_REPLICAS_SETTINGS = 'PER_AZ:1' -- Enable read replicas for stale read, launch one replica in every availability zone
27
27
  -- uncomment to enable ttl
28
- -- TTL = Interval("PT1H") ON expire_at, -- Enable background deletion of expired rows https://ydb.tech/en/docs/concepts/ttl
29
- KEY_BLOOM_FILTER = ENABLED -- With a Bloom filter, you can more efficiently determine
28
+ -- , TTL = Interval("PT1H") ON expire_at -- Enable background deletion of expired rows https://ydb.tech/en/docs/concepts/ttl
29
+ -- uncomment to create a table with a bloom filter
30
+ -- , KEY_BLOOM_FILTER = ENABLED -- With a Bloom filter, you can more efficiently determine
30
31
  -- if some keys are missing in a table when making multiple single queries by the primary key.
31
32
  )`;
32
33
  };
@@ -1 +1 @@
1
- {"version":3,"file":"queryTemplates.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/utils/queryTemplates.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAY,EAAE,EAAE;IAChD,OAAO;iBACM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BnB,CAAC;AACH,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,IAAY,EAAE,EAAE;IACtD,OAAO;iBACM,IAAI;;;;;;;;sBAQC,CAAC;AACvB,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,8BAA8B,GAAG,GAAG,EAAE;IAC/C,OAAO;;;;;;;;;;;GAWR,CAAC;AACJ,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CAAC,IAAY,EAAE,EAAE;IAC/C,OAAO,iBAAiB,IAAI,wDAAwD,CAAC;AACzF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,IAAY,EAAE,EAAE;IAC7C,OAAO,eAAe,IAAI,KAAK,CAAC;AACpC,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,IAAY,EAAE,EAAE;IACzD,OAAO,4BAA4B,IAAI,KAAK,CAAC;AACjD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,IAAY,EAAE,EAAE;IAC1D,OAAO,6BAA6B,IAAI,mDAAmD,CAAC;AAChG,CAAC,CAAC"}
1
+ {"version":3,"file":"queryTemplates.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/utils/queryTemplates.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAY,EAAE,EAAE;IAChD,OAAO;iBACM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BnB,CAAC;AACH,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,IAAY,EAAE,EAAE;IACtD,OAAO;iBACM,IAAI;;;;;;;;sBAQC,CAAC;AACvB,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,8BAA8B,GAAG,GAAG,EAAE;IAC/C,OAAO;;;;;;;;;;;GAWR,CAAC;AACJ,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAY,EAAE,EAAE;IAC/C,OAAO,iBAAiB,IAAI;gCACA,CAAC;AACjC,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAY,EAAE,EAAE;IAChD,OAAO;aACE,IAAI;cACH,CAAC;AACf,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAY,EAAE,EAAE;IAChD,OAAO,iBAAiB,IA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AAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,IAAY,EAAE,EAAE;IAC1D,OAAO,6BAA6B,IAAI,mDAAmD,CAAC;AAChG,CAAC,CAAC"}
@@ -13,7 +13,7 @@ import { Search } from '../../components/Search';
13
13
  import { TableWithControlsLayout } from '../../components/TableWithControlsLayout/TableWithControlsLayout';
14
14
  import { clusterName } from '../../store';
15
15
  import { ProblemFilterValues, changeFilter, selectProblemFilter, } from '../../store/reducers/settings/settings';
16
- import { selectFilteredTenants, selectTenantsSearchValue, } from '../../store/reducers/tenants/selectors';
16
+ import { selectFilteredTenants, selectTenants, selectTenantsSearchValue, } from '../../store/reducers/tenants/selectors';
17
17
  import { setSearchValue, tenantsApi } from '../../store/reducers/tenants/tenants';
18
18
  import { cn } from '../../utils/cn';
19
19
  import { DEFAULT_TABLE_SETTINGS } from '../../utils/constants';
@@ -28,7 +28,7 @@ export const Tenants = ({ additionalTenantsProps }) => {
28
28
  const [autoRefreshInterval] = useAutoRefreshInterval();
29
29
  const { currentData, isFetching, error } = tenantsApi.useGetTenantsInfoQuery({ clusterName }, { pollingInterval: autoRefreshInterval });
30
30
  const loading = isFetching && currentData === undefined;
31
- const tenants = currentData !== null && currentData !== void 0 ? currentData : [];
31
+ const tenants = useTypedSelector((state) => selectTenants(state, clusterName));
32
32
  const searchValue = useTypedSelector(selectTenantsSearchValue);
33
33
  const filteredTenants = useTypedSelector((state) => selectFilteredTenants(state, clusterName));
34
34
  const problemFilter = useTypedSelector(selectProblemFilter);
@@ -1 +1 @@
1
- {"version":3,"file":"Tenants.js","sourceRoot":"","sources":["../../../src/containers/Tenants/Tenants.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,SAAS,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAC,YAAY,E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aryDataInPlainTextDisplay.title": "Display binary data in plain text",
22
- "settings.binaryDataInPlainTextDisplay.description": "Available starting from version 24.1",
23
22
  "settings.invertedDisks.title": "Inverted disks space indicators",
24
23
  "settings.useNodesEndpoint.title": "Break the Nodes tab in Diagnostics",
25
24
  "settings.useNodesEndpoint.description": "Use /viewer/json/nodes endpoint for Nodes tab in diagnostics. It could return incorrect data on versions before 24-1",
26
25
  "settings.usePaginatedTables.title": "Use paginated tables",
27
26
  "settings.usePaginatedTables.description": " Use table with data load on scroll for Nodes and Storage tabs. It will increase performance, but could work unstable",
28
27
  "settings.showDomainDatabase.title": "Show domain database",
29
- "settings.enableTracingLevel.title": "Enable tracing level select",
30
- "settings.enableTracingLevel.description": "Caution: Enabling this setting may break running of queries",
31
28
  "settings.queryUseMultiSchema.title": "Allow queries with multiple result sets",
32
29
  "settings.queryUseMultiSchema.description": "Use 'multi' schema for queries. It enables queries with multiple result sets. It returns nothing on versions 23-3 and older",
33
30
  "settings.useClusterBalancerAsBackend.title": "Use cluster balancer as backend",
@@ -1,2 +1,2 @@
1
- declare const _default: (key: "page.general" | "section.appearance" | "page.experiments" | "section.experiments" | "page.editor" | "section.dev-setting" | "page.about" | "section.about" | "settings.editor.autocomplete.title" | "settings.editor.autocomplete.description" | "settings.editor.autocomplete-on-enter.title" | "settings.editor.autocomplete-on-enter.description" | "settings.theme.title" | "settings.theme.option-dark" | "settings.theme.option-light" | "settings.theme.option-system" | "settings.language.title" | "settings.language.option-russian" | "settings.language.option-english" | "settings.binaryDataInPlainTextDisplay.title" | "settings.binaryDataInPlainTextDisplay.description" | "settings.invertedDisks.title" | "settings.useNodesEndpoint.title" | "settings.useNodesEndpoint.description" | "settings.usePaginatedTables.title" | "settings.usePaginatedTables.description" | "settings.showDomainDatabase.title" | "settings.enableTracingLevel.title" | "settings.enableTracingLevel.description" | "settings.queryUseMultiSchema.title" | "settings.queryUseMultiSchema.description" | "settings.useClusterBalancerAsBackend.title" | "settings.useClusterBalancerAsBackend.description" | "settings.about.interfaceVersionInfoField.title", params?: import("@gravity-ui/i18n").Params) => string;
1
+ declare const _default: (key: "page.general" | "section.appearance" | "page.experiments" | "section.experiments" | "page.editor" | "section.dev-setting" | "page.about" | "section.about" | "settings.editor.autocomplete.title" | "settings.editor.autocomplete.description" | "settings.editor.autocomplete-on-enter.title" | "settings.editor.autocomplete-on-enter.description" | "settings.theme.title" | "settings.theme.option-dark" | "settings.theme.option-light" | "settings.theme.option-system" | "settings.language.title" | "settings.language.option-russian" | "settings.language.option-english" | "settings.binaryDataInPlainTextDisplay.title" | "settings.invertedDisks.title" | "settings.useNodesEndpoint.title" | "settings.useNodesEndpoint.description" | "settings.usePaginatedTables.title" | "settings.usePaginatedTables.description" | "settings.showDomainDatabase.title" | "settings.queryUseMultiSchema.title" | "settings.queryUseMultiSchema.description" | "settings.useClusterBalancerAsBackend.title" | "settings.useClusterBalancerAsBackend.description" | "settings.about.interfaceVersionInfoField.title", params?: import("@gravity-ui/i18n").Params) => string;
2
2
  export default _default;
@@ -19,7 +19,6 @@ export declare const invertedDisksSetting: SettingProps;
19
19
  export declare const useNodesEndpointSetting: SettingProps;
20
20
  export declare const usePaginatedTables: SettingProps;
21
21
  export declare const showDomainDatabase: SettingProps;
22
- export declare const enableTracingLevel: SettingProps;
23
22
  export declare const queryUseMultiSchemaSetting: SettingProps;
24
23
  export declare const useClusterBalancerAsBackendSetting: SettingProps;
25
24
  export declare const enableAutocompleteSetting: SettingProps;
@@ -1,9 +1,7 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
1
  import { CircleInfo, Flask, PencilToSquare, StarFill } from '@gravity-ui/icons';
3
2
  import { createNextState } from '@reduxjs/toolkit';
4
- import { AUTOCOMPLETE_ON_ENTER, BINARY_DATA_IN_PLAIN_TEXT_DISPLAY, ENABLE_AUTOCOMPLETE, ENABLE_TRACING_LEVEL_KEY, INVERTED_DISKS_KEY, LANGUAGE_KEY, QUERY_USE_MULTI_SCHEMA_KEY, SHOW_DOMAIN_DATABASE_KEY, THEME_KEY, USE_CLUSTER_BALANCER_AS_BACKEND_KEY, USE_NODES_ENDPOINT_IN_DIAGNOSTICS_KEY, USE_PAGINATED_TABLES_KEY, } from '../../utils/constants';
3
+ import { AUTOCOMPLETE_ON_ENTER, BINARY_DATA_IN_PLAIN_TEXT_DISPLAY, ENABLE_AUTOCOMPLETE, INVERTED_DISKS_KEY, LANGUAGE_KEY, QUERY_USE_MULTI_SCHEMA_KEY, SHOW_DOMAIN_DATABASE_KEY, THEME_KEY, USE_CLUSTER_BALANCER_AS_BACKEND_KEY, USE_NODES_ENDPOINT_IN_DIAGNOSTICS_KEY, USE_PAGINATED_TABLES_KEY, } from '../../utils/constants';
5
4
  import { Lang, defaultLang } from '../../utils/i18n';
6
- import { ClusterModeGuard } from '../ClusterModeGuard';
7
5
  import i18n from './i18n';
8
6
  import packageJson from '../../../package.json';
9
7
  const themeOptions = [
@@ -49,7 +47,6 @@ export const languageSetting = {
49
47
  export const binaryDataInPlainTextDisplay = {
50
48
  settingKey: BINARY_DATA_IN_PLAIN_TEXT_DISPLAY,
51
49
  title: i18n('settings.binaryDataInPlainTextDisplay.title'),
52
- description: (_jsx(ClusterModeGuard, { mode: "multi", children: i18n('settings.binaryDataInPlainTextDisplay.description') })),
53
50
  };
54
51
  export const invertedDisksSetting = {
55
52
  settingKey: INVERTED_DISKS_KEY,
@@ -69,11 +66,6 @@ export const showDomainDatabase = {
69
66
  settingKey: SHOW_DOMAIN_DATABASE_KEY,
70
67
  title: i18n('settings.showDomainDatabase.title'),
71
68
  };
72
- export const enableTracingLevel = {
73
- settingKey: ENABLE_TRACING_LEVEL_KEY,
74
- title: i18n('settings.enableTracingLevel.title'),
75
- description: i18n('settings.enableTracingLevel.description'),
76
- };
77
69
  export const queryUseMultiSchemaSetting = {
78
70
  settingKey: QUERY_USE_MULTI_SCHEMA_KEY,
79
71
  title: i18n('settings.queryUseMultiSchema.title'),
@@ -117,7 +109,7 @@ export const experimentsSection = {
117
109
  export const devSettingsSection = {
118
110
  id: 'devSettingsSection',
119
111
  title: i18n('section.dev-setting'),
120
- settings: [enableAutocompleteSetting, autocompleteOnEnterSetting, enableTracingLevel],
112
+ settings: [enableAutocompleteSetting, autocompleteOnEnterSetting],
121
113
  };
122
114
  export const aboutSettingsSection = {
123
115
  id: 'aboutSettingsSection',
@@ -1 +1 @@
1
- {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../src/containers/UserSettings/settings.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,UAAU,EAAE,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE9E,OAAO,EAAC,eAAe,EAAC,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EACH,qBAAqB,EACrB,iCAAiC,EACjC,mBAAmB,EACnB,wBAAwB,EACxB,kBAAkB,EAClB,YAAY,EACZ,0BAA0B,EAC1B,wBAAwB,EACxB,SAAS,EACT,mCAAmC,EACnC,qCAAqC,EACrC,wBAAwB,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,IAAI,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AAGrD,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAiBhD,MAAM,YAAY,GAAG;IACjB;QACI,KAAK,EAAE,QAAQ;QACf,OAAO,EAAE,IAAI,CAAC,8BAA8B,CAAC;KAChD;IACD;QACI,KAAK,EAAE,OAAO;QACd,OAAO,EAAE,IAAI,CAAC,6BAA6B,CAAC;KAC/C;IACD;QACI,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,IAAI,CAAC,4BAA4B,CAAC;KAC9C;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAiB;IACtC,UAAU,EAAE,SAAS;IACrB,KAAK,EAAE,IAAI,CAAC,sBAAsB,CAAC;IACnC,IA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B,CAAC;CACjC,CAAC;AACF,MAAM,CAAC,MAAM,UAAU,GAAiB;IACpC,EAAE,EAAE,YAAY;IAChB,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC;IAC1B,IAAI,EAAE,EAAC,IAAI,EAAE,cAAc,EAAC;IAC5B,QAAQ,EAAE,CAAC,kBAAkB,CAAC;CACjC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAiB;IACnC,EAAE,EAAE,WAAW;IACf,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC;IACzB,IAAI,EAAE,EAAC,IAAI,EAAE,UAAU,EAAC;IACxB,QAAQ,EAAE,CAAC,oBAAoB,CAAC;CACnC,CAAC;AAEF,MAAM,UAAU,eAAe,CAAC,EAAC,iBAAiB,EAA+B;IAC7E,MAAM,WAAW,GAAG,iBAAiB;QACjC,CAAC,CAAC,eAAe;QACjB,CAAC,CAAC,eAAe,CAAC,eAAe,EAAE,CAAC,KAAK,EAAE,EAAE;YACvC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,kCAAkC,CAAC,CAAC;QACxE,CAAC,CAAC,CAAC;IAET,MAAM,QAAQ,GAA0B,CAAC,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;IAE1F,OAAO,QAAQ,CAAC;AACpB,CAAC"}
@@ -1,2 +1,6 @@
1
+ import type { PreparedStorageGroup } from '../../store/reducers/storage/types';
1
2
  import './VDiskPage.scss';
2
3
  export declare function VDiskPage(): import("react/jsx-runtime").JSX.Element;
4
+ export declare function VDiskGroup({ data }: {
5
+ data: PreparedStorageGroup;
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -5,14 +5,12 @@ import { Icon } from '@gravity-ui/uikit';
5
5
  import { skipToken } from '@reduxjs/toolkit/query';
6
6
  import { Helmet } from 'react-helmet-async';
7
7
  import { StringParam, useQueryParams } from 'use-query-params';
8
- import { AutoRefreshControl } from '../../components/AutoRefreshControl/AutoRefreshControl';
9
8
  import { ButtonWithConfirmDialog } from '../../components/ButtonWithConfirmDialog/ButtonWithConfirmDialog';
10
- import { DiskPageTitle } from '../../components/DiskPageTitle/DiskPageTitle';
9
+ import { EntityPageTitle } from '../../components/EntityPageTitle/EntityPageTitle';
11
10
  import { ResponseError } from '../../components/Errors/ResponseError';
12
- import { GroupInfo } from '../../components/GroupInfo/GroupInfo';
13
11
  import { InfoViewerSkeleton } from '../../components/InfoViewerSkeleton/InfoViewerSkeleton';
14
- import { PageMeta } from '../../components/PageMeta/PageMeta';
15
- import { VDiskWithDonorsStack } from '../../components/VDisk/VDiskWithDonorsStack';
12
+ import { PageMetaWithAutorefresh } from '../../components/PageMeta/PageMeta';
13
+ import { ResizeableDataTable } from '../../components/ResizeableDataTable/ResizeableDataTable';
16
14
  import { VDiskInfo } from '../../components/VDiskInfo/VDiskInfo';
17
15
  import { selectIsUserAllowedToMakeChanges } from '../../store/reducers/authentication/authentication';
18
16
  import { setHeaderBreadcrumbs } from '../../store/reducers/header/header';
@@ -20,15 +18,16 @@ import { selectNodesMap } from '../../store/reducers/nodesList';
20
18
  import { vDiskApi } from '../../store/reducers/vdisk/vdisk';
21
19
  import { valueIsDefined } from '../../utils';
22
20
  import { cn } from '../../utils/cn';
21
+ import { DEFAULT_TABLE_SETTINGS } from '../../utils/constants';
23
22
  import { stringifyVdiskId } from '../../utils/dataFormatters/dataFormatters';
24
23
  import { getSeverityColor } from '../../utils/disks/helpers';
25
24
  import { useAutoRefreshInterval, useTypedDispatch, useTypedSelector } from '../../utils/hooks';
25
+ import { STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY, getDiskPageStorageColumns, } from '../Storage/StorageGroups/getStorageGroupsColumns';
26
26
  import { vDiskPageKeyset } from './i18n';
27
27
  import './VDiskPage.scss';
28
28
  const vDiskPageCn = cn('ydb-vdisk-page');
29
29
  export function VDiskPage() {
30
30
  const dispatch = useTypedDispatch();
31
- const nodesMap = useTypedSelector(selectNodesMap);
32
31
  const isUserAllowedToMakeChanges = useTypedSelector(selectIsUserAllowedToMakeChanges);
33
32
  const [{ nodeId, pDiskId, vDiskSlotId }] = useQueryParams({
34
33
  nodeId: StringParam,
@@ -94,23 +93,20 @@ export function VDiskPage() {
94
93
  const hostItem = NodeHost ? `${vDiskPageKeyset('fqdn')}: ${NodeHost}` : undefined;
95
94
  const nodeIdItem = NodeId ? `${vDiskPageKeyset('node')}: ${NodeId}` : undefined;
96
95
  const pDiskIdItem = NodeId ? `${vDiskPageKeyset('pdisk')}: ${PDiskId}` : undefined;
97
- return (_jsx(PageMeta, { loading: loading, items: [hostItem, nodeIdItem, NodeType, NodeDC, pDiskIdItem, PDiskType] }));
96
+ return (_jsx(PageMetaWithAutorefresh, { className: vDiskPageCn('meta'), loading: loading, items: [hostItem, nodeIdItem, NodeType, NodeDC, pDiskIdItem, PDiskType] }));
98
97
  };
99
98
  const renderPageTitle = () => {
100
- return (_jsx(DiskPageTitle, { entityName: vDiskPageKeyset('vdisk'), status: getSeverityColor(Severity), id: stringifyVdiskId(vDiskData === null || vDiskData === void 0 ? void 0 : vDiskData.VDiskId) }));
99
+ return (_jsx(EntityPageTitle, { className: vDiskPageCn('title'), entityName: vDiskPageKeyset('vdisk'), status: getSeverityColor(Severity), id: stringifyVdiskId(vDiskData === null || vDiskData === void 0 ? void 0 : vDiskData.VDiskId) }));
101
100
  };
102
101
  const renderControls = () => {
103
- return (_jsxs("div", { className: vDiskPageCn('controls'), children: [_jsxs(ButtonWithConfirmDialog, { onConfirmAction: handleEvictVDisk, onConfirmActionSuccess: handleAfterEvictVDisk, buttonDisabled: !vDiskIdParamsDefined || !isUserAllowedToMakeChanges, buttonView: "normal", dialogContent: vDiskPageKeyset('evict-vdisk-dialog'), retryButtonText: vDiskPageKeyset('force-evict-vdisk-button'), withPopover: true, popoverContent: vDiskPageKeyset('evict-vdisk-not-allowed'), popoverDisabled: isUserAllowedToMakeChanges, children: [_jsx(Icon, { data: ArrowsOppositeToDots }), vDiskPageKeyset('evict-vdisk-button')] }), _jsx(AutoRefreshControl, { className: vDiskPageCn('auto-refresh-control') })] }));
102
+ return (_jsx("div", { className: vDiskPageCn('controls'), children: _jsxs(ButtonWithConfirmDialog, { onConfirmAction: handleEvictVDisk, onConfirmActionSuccess: handleAfterEvictVDisk, buttonDisabled: !vDiskIdParamsDefined || !isUserAllowedToMakeChanges, buttonView: "normal", dialogContent: vDiskPageKeyset('evict-vdisk-dialog'), retryButtonText: vDiskPageKeyset('force-evict-vdisk-button'), withPopover: true, popoverContent: vDiskPageKeyset('evict-vdisk-not-allowed'), popoverDisabled: isUserAllowedToMakeChanges, children: [_jsx(Icon, { data: ArrowsOppositeToDots }), vDiskPageKeyset('evict-vdisk-button')] }) }));
104
103
  };
105
104
  const renderInfo = () => {
106
- return _jsx(VDiskInfo, { data: vDiskData });
105
+ return _jsx(VDiskInfo, { data: vDiskData, className: vDiskPageCn('info') });
107
106
  };
108
107
  const renderGroupInfo = () => {
109
- var _a;
110
108
  if (groupData) {
111
- return (_jsxs(React.Fragment, { children: [_jsx("div", { className: vDiskPageCn('group-title'), children: vDiskPageKeyset('group') }), _jsx(GroupInfo, { data: groupData }), _jsx("div", { className: vDiskPageCn('group-disks'), children: (_a = groupData.VDisks) === null || _a === void 0 ? void 0 : _a.map((vDisk) => {
112
- return (_jsx(VDiskWithDonorsStack, { data: vDisk, nodes: nodesMap, className: vDiskPageCn('group-disk') }, stringifyVdiskId(vDisk.VDiskId)));
113
- }) })] }));
109
+ return (_jsxs(React.Fragment, { children: [_jsx("div", { className: vDiskPageCn('group-title'), children: vDiskPageKeyset('group') }), _jsx(VDiskGroup, { data: groupData })] }));
114
110
  }
115
111
  return null;
116
112
  };
@@ -122,4 +118,11 @@ export function VDiskPage() {
122
118
  };
123
119
  return (_jsxs("div", { className: vDiskPageCn(null), children: [renderHelmet(), renderPageMeta(), renderPageTitle(), renderControls(), renderContent()] }));
124
120
  }
121
+ export function VDiskGroup({ data }) {
122
+ const nodesMap = useTypedSelector(selectNodesMap);
123
+ const pDiskStorageColumns = React.useMemo(() => {
124
+ return getDiskPageStorageColumns(nodesMap);
125
+ }, [nodesMap]);
126
+ return (_jsx(ResizeableDataTable, { columnsWidthLSKey: STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY, data: [data], columns: pDiskStorageColumns, settings: DEFAULT_TABLE_SETTINGS }));
127
+ }
125
128
  //# sourceMappingURL=VDiskPage.js.map