ydb-embedded-ui 6.18.0 → 6.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (316) hide show
  1. package/dist/components/ComponentsProvider/ComponentsProvider.d.ts +2 -2
  2. package/dist/components/CriticalActionDialog/CriticalActionDialog.d.ts +2 -1
  3. package/dist/components/CriticalActionDialog/CriticalActionDialog.js +11 -3
  4. package/dist/components/CriticalActionDialog/CriticalActionDialog.js.map +1 -1
  5. package/dist/components/CriticalActionDialog/i18n/en.json +2 -1
  6. package/dist/components/CriticalActionDialog/i18n/index.d.ts +1 -1
  7. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +7 -36
  8. package/dist/components/GroupInfo/GroupInfo.js +3 -3
  9. package/dist/components/MetricChart/reducer.d.ts +2 -2
  10. package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
  11. package/dist/components/PaginatedTable/PaginatedTable.scss +4 -0
  12. package/dist/components/PaginatedTable/TableChunk.js +5 -2
  13. package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
  14. package/dist/components/PaginatedTable/TableRow.js +1 -1
  15. package/dist/components/PaginatedTable/TableRow.js.map +1 -1
  16. package/dist/components/TabletsStatistic/TabletsStatistic.d.ts +2 -4
  17. package/dist/components/TabletsStatistic/TabletsStatistic.js.map +1 -1
  18. package/dist/components/Tag/Tag.d.ts +2 -1
  19. package/dist/components/Tag/Tag.js.map +1 -1
  20. package/dist/components/Tags/Tags.d.ts +2 -1
  21. package/dist/components/Tags/Tags.js.map +1 -1
  22. package/dist/containers/AppWithClusters/ExtendedNode/ExtendedNode.js +4 -2
  23. package/dist/containers/AppWithClusters/ExtendedNode/ExtendedNode.js.map +1 -1
  24. package/dist/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.js +4 -3
  25. package/dist/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.js.map +1 -1
  26. package/dist/containers/AppWithClusters/useClusterData.d.ts +7 -1
  27. package/dist/containers/AppWithClusters/useClusterData.js +8 -8
  28. package/dist/containers/AppWithClusters/useClusterData.js.map +1 -1
  29. package/dist/containers/AsideNavigation/AsideNavigation.d.ts +3 -0
  30. package/dist/containers/AsideNavigation/AsideNavigation.js +6 -10
  31. package/dist/containers/AsideNavigation/AsideNavigation.js.map +1 -1
  32. package/dist/containers/AsideNavigation/Navigation.js +4 -1
  33. package/dist/containers/AsideNavigation/Navigation.js.map +1 -1
  34. package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.d.ts +3 -1
  35. package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.js +2 -4
  36. package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.js.map +1 -1
  37. package/dist/containers/Cluster/Cluster.js +5 -13
  38. package/dist/containers/Cluster/Cluster.js.map +1 -1
  39. package/dist/containers/Cluster/Cluster.scss +1 -0
  40. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +3 -112
  41. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js.map +1 -1
  42. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +7 -14
  43. package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.d.ts +7 -0
  44. package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.js +43 -0
  45. package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.js.map +1 -0
  46. package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.scss +11 -0
  47. package/dist/containers/Cluster/ClusterInfo/components/NodesState/NodesState.d.ts +8 -0
  48. package/dist/containers/Cluster/ClusterInfo/components/NodesState/NodesState.js +8 -0
  49. package/dist/containers/Cluster/ClusterInfo/components/NodesState/NodesState.js.map +1 -0
  50. package/dist/containers/Cluster/ClusterInfo/components/NodesState/NodesState.scss +16 -0
  51. package/dist/containers/Cluster/ClusterInfo/shared.d.ts +1 -0
  52. package/dist/containers/Cluster/ClusterInfo/shared.js +3 -0
  53. package/dist/containers/Cluster/ClusterInfo/shared.js.map +1 -0
  54. package/dist/containers/Cluster/ClusterInfo/utils.d.ts +12 -0
  55. package/dist/containers/Cluster/ClusterInfo/utils.js +145 -0
  56. package/dist/containers/Cluster/ClusterInfo/utils.js.map +1 -1
  57. package/dist/containers/Cluster/i18n/en.json +7 -1
  58. package/dist/containers/Cluster/i18n/index.d.ts +1 -1
  59. package/dist/containers/Cluster/i18n/index.js +1 -2
  60. package/dist/containers/Cluster/i18n/index.js.map +1 -1
  61. package/dist/containers/Header/Header.js +3 -7
  62. package/dist/containers/Header/Header.js.map +1 -1
  63. package/dist/containers/Node/Node.js +1 -5
  64. package/dist/containers/Node/Node.js.map +1 -1
  65. package/dist/containers/Node/NodePages.js +5 -4
  66. package/dist/containers/Node/NodePages.js.map +1 -1
  67. package/dist/containers/Node/NodeStructure/NodeStructure.js +9 -3
  68. package/dist/containers/Node/NodeStructure/NodeStructure.js.map +1 -1
  69. package/dist/containers/Nodes/Nodes.js +3 -13
  70. package/dist/containers/Nodes/Nodes.js.map +1 -1
  71. package/dist/containers/PDiskPage/DecommissionButton/DecommissionButton.js +1 -1
  72. package/dist/containers/PDiskPage/DecommissionButton/DecommissionButton.js.map +1 -1
  73. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +16 -7
  74. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js.map +1 -1
  75. package/dist/containers/PDiskPage/PDiskGroups/utils.d.ts +2 -0
  76. package/dist/containers/PDiskPage/PDiskGroups/utils.js +14 -0
  77. package/dist/containers/PDiskPage/PDiskGroups/utils.js.map +1 -0
  78. package/dist/containers/PDiskPage/PDiskPage.js +1 -1
  79. package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
  80. package/dist/containers/Storage/Storage.js +9 -9
  81. package/dist/containers/Storage/Storage.js.map +1 -1
  82. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js +7 -2
  83. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +1 -1
  84. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.d.ts +1 -1
  85. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js +7 -20
  86. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js.map +1 -1
  87. package/dist/containers/Storage/StorageGroups/getGroups.d.ts +3 -1
  88. package/dist/containers/Storage/StorageGroups/getGroups.js +27 -24
  89. package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
  90. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js +1 -1
  91. package/dist/containers/Storage/utils/index.js +3 -4
  92. package/dist/containers/Storage/utils/index.js.map +1 -1
  93. package/dist/containers/Tablets/i18n/index.d.ts +1 -1
  94. package/dist/containers/Tenant/Diagnostics/Configs/Configs.d.ts +6 -0
  95. package/dist/containers/Tenant/Diagnostics/Configs/Configs.js +79 -0
  96. package/dist/containers/Tenant/Diagnostics/Configs/Configs.js.map +1 -0
  97. package/dist/containers/Tenant/Diagnostics/Configs/Configs.scss +8 -0
  98. package/dist/containers/Tenant/Diagnostics/Configs/i18n/en.json +11 -0
  99. package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.d.ts +2 -0
  100. package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.js +5 -0
  101. package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.js.map +1 -0
  102. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +4 -0
  103. package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
  104. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +3 -0
  105. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +5 -0
  106. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
  107. package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/index.d.ts +1 -1
  108. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +21 -4
  109. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
  110. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.d.ts +2 -0
  111. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.js +7 -0
  112. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.js.map +1 -0
  113. package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js +8 -3
  114. package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js.map +1 -1
  115. package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.d.ts +7 -0
  116. package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.js +17 -0
  117. package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.js.map +1 -0
  118. package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.scss +9 -0
  119. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.d.ts +5 -9
  120. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +7 -7
  121. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
  122. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +0 -12
  123. package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.d.ts +1 -1
  124. package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js +9 -24
  125. package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js.map +1 -1
  126. package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +0 -1
  127. package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
  128. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.d.ts +4 -12
  129. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js +7 -5
  130. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js.map +1 -1
  131. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.scss +0 -6
  132. package/dist/containers/Tenant/Query/ExplainResult/i18n/en.json +1 -2
  133. package/dist/containers/Tenant/Query/ExplainResult/i18n/index.d.ts +1 -1
  134. package/dist/containers/Tenant/Query/Query.js +14 -2
  135. package/dist/containers/Tenant/Query/Query.js.map +1 -1
  136. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.d.ts +3 -2
  137. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +18 -36
  138. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
  139. package/dist/containers/Tenant/Query/i18n/en.json +1 -0
  140. package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
  141. package/dist/containers/Tenant/utils/queryTemplates.js +1 -1
  142. package/dist/containers/Tenant/utils/queryTemplates.js.map +1 -1
  143. package/dist/containers/UserSettings/i18n/en.json +0 -2
  144. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  145. package/dist/containers/UserSettings/settings.d.ts +0 -1
  146. package/dist/containers/UserSettings/settings.js +2 -12
  147. package/dist/containers/UserSettings/settings.js.map +1 -1
  148. package/dist/containers/VDiskPage/VDiskPage.d.ts +3 -4
  149. package/dist/containers/VDiskPage/VDiskPage.js +33 -10
  150. package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
  151. package/dist/containers/VDiskPage/utils.d.ts +2 -0
  152. package/dist/containers/VDiskPage/utils.js +7 -0
  153. package/dist/containers/VDiskPage/utils.js.map +1 -0
  154. package/dist/lib.d.ts +1 -0
  155. package/dist/lib.js +1 -0
  156. package/dist/lib.js.map +1 -1
  157. package/dist/services/api.d.ts +20 -16
  158. package/dist/services/api.js +62 -21
  159. package/dist/services/api.js.map +1 -1
  160. package/dist/services/parsers/parseMetaCluster.d.ts +14 -0
  161. package/dist/services/parsers/parseMetaCluster.js +17 -31
  162. package/dist/services/parsers/parseMetaCluster.js.map +1 -1
  163. package/dist/services/settings.d.ts +0 -1
  164. package/dist/services/settings.js +1 -2
  165. package/dist/services/settings.js.map +1 -1
  166. package/dist/store/configureStore.d.ts +4 -4
  167. package/dist/store/defaultStore.d.ts +2 -2
  168. package/dist/store/getUrlData.js +9 -6
  169. package/dist/store/getUrlData.js.map +1 -1
  170. package/dist/store/reducers/api.d.ts +1 -1
  171. package/dist/store/reducers/api.js +1 -1
  172. package/dist/store/reducers/api.js.map +1 -1
  173. package/dist/store/reducers/authentication/authentication.d.ts +4 -4
  174. package/dist/store/reducers/cancelQuery.d.ts +2 -2
  175. package/dist/store/reducers/cancelQuery.js.map +1 -1
  176. package/dist/store/reducers/capabilities/capabilities.d.ts +6 -6
  177. package/dist/store/reducers/capabilities/hooks.d.ts +2 -0
  178. package/dist/store/reducers/capabilities/hooks.js +8 -1
  179. package/dist/store/reducers/capabilities/hooks.js.map +1 -1
  180. package/dist/store/reducers/cluster/cluster.d.ts +230 -2
  181. package/dist/store/reducers/cluster/cluster.js +45 -3
  182. package/dist/store/reducers/cluster/cluster.js.map +1 -1
  183. package/dist/store/reducers/cluster/utils.d.ts +4 -1
  184. package/dist/store/reducers/cluster/utils.js +16 -3
  185. package/dist/store/reducers/cluster/utils.js.map +1 -1
  186. package/dist/store/reducers/clusters/clusters.d.ts +2 -2
  187. package/dist/store/reducers/describe.d.ts +2 -2
  188. package/dist/store/reducers/executeQuery.d.ts +8 -4
  189. package/dist/store/reducers/executeQuery.js +35 -2
  190. package/dist/store/reducers/executeQuery.js.map +1 -1
  191. package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +2 -2
  192. package/dist/store/reducers/explainQuery/explainQuery.d.ts +2 -3
  193. package/dist/store/reducers/explainQuery/explainQuery.js +23 -2
  194. package/dist/store/reducers/explainQuery/explainQuery.js.map +1 -1
  195. package/dist/store/reducers/explainQuery/types.d.ts +1 -0
  196. package/dist/store/reducers/explainQuery/utils.d.ts +1 -1
  197. package/dist/store/reducers/explainQuery/utils.js.map +1 -1
  198. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +58 -58
  199. package/dist/store/reducers/heatmap.d.ts +2 -2
  200. package/dist/store/reducers/hotKeys/hotKeys.d.ts +2 -2
  201. package/dist/store/reducers/index.d.ts +3 -3
  202. package/dist/store/reducers/network/network.d.ts +2 -2
  203. package/dist/store/reducers/node/node.d.ts +3 -3
  204. package/dist/store/reducers/node/selectors.d.ts +1 -1
  205. package/dist/store/reducers/nodes/nodes.d.ts +3 -4
  206. package/dist/store/reducers/nodes/nodes.js +1 -17
  207. package/dist/store/reducers/nodes/nodes.js.map +1 -1
  208. package/dist/store/reducers/nodes/types.d.ts +1 -6
  209. package/dist/store/reducers/nodes/utils.d.ts +1 -4
  210. package/dist/store/reducers/nodes/utils.js +1 -41
  211. package/dist/store/reducers/nodes/utils.js.map +1 -1
  212. package/dist/store/reducers/nodesList.d.ts +3 -3
  213. package/dist/store/reducers/overview/overview.d.ts +2 -2
  214. package/dist/store/reducers/partitions/partitions.d.ts +2 -2
  215. package/dist/store/reducers/pdisk/pdisk.d.ts +2 -3
  216. package/dist/store/reducers/pdisk/pdisk.js +1 -21
  217. package/dist/store/reducers/pdisk/pdisk.js.map +1 -1
  218. package/dist/store/reducers/pdisk/utils.d.ts +0 -3
  219. package/dist/store/reducers/pdisk/utils.js +0 -22
  220. package/dist/store/reducers/pdisk/utils.js.map +1 -1
  221. package/dist/store/reducers/preview.d.ts +2 -2
  222. package/dist/store/reducers/schema/schema.d.ts +3 -3
  223. package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +2 -2
  224. package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +2 -2
  225. package/dist/store/reducers/storage/requestStorageData.d.ts +5 -0
  226. package/dist/store/reducers/storage/requestStorageData.js +12 -0
  227. package/dist/store/reducers/storage/requestStorageData.js.map +1 -0
  228. package/dist/store/reducers/storage/selectors.js +1 -1
  229. package/dist/store/reducers/storage/storage.d.ts +6 -4
  230. package/dist/store/reducers/storage/storage.js +6 -6
  231. package/dist/store/reducers/storage/storage.js.map +1 -1
  232. package/dist/store/reducers/storage/types.d.ts +11 -23
  233. package/dist/store/reducers/storage/utils.d.ts +3 -2
  234. package/dist/store/reducers/storage/utils.js +52 -26
  235. package/dist/store/reducers/storage/utils.js.map +1 -1
  236. package/dist/store/reducers/tableData.d.ts +1 -1
  237. package/dist/store/reducers/tablet.d.ts +7 -7
  238. package/dist/store/reducers/tablets.d.ts +13 -13
  239. package/dist/store/reducers/tenant/constants.d.ts +1 -0
  240. package/dist/store/reducers/tenant/constants.js +1 -0
  241. package/dist/store/reducers/tenant/constants.js.map +1 -1
  242. package/dist/store/reducers/tenant/tenant.d.ts +5 -2
  243. package/dist/store/reducers/tenant/tenant.js +12 -0
  244. package/dist/store/reducers/tenant/tenant.js.map +1 -1
  245. package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +2 -2
  246. package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +2 -2
  247. package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +2 -2
  248. package/dist/store/reducers/tenants/selectors.d.ts +27 -27
  249. package/dist/store/reducers/tenants/tenants.d.ts +2 -2
  250. package/dist/store/reducers/topic.d.ts +44 -44
  251. package/dist/store/reducers/trace.d.ts +4 -5
  252. package/dist/store/reducers/trace.js +5 -8
  253. package/dist/store/reducers/trace.js.map +1 -1
  254. package/dist/store/reducers/vdisk/utils.d.ts +0 -2
  255. package/dist/store/reducers/vdisk/utils.js +0 -10
  256. package/dist/store/reducers/vdisk/utils.js.map +1 -1
  257. package/dist/store/reducers/vdisk/vdisk.d.ts +8 -5
  258. package/dist/store/reducers/vdisk/vdisk.js +17 -32
  259. package/dist/store/reducers/vdisk/vdisk.js.map +1 -1
  260. package/dist/store/reducers/viewSchema/viewSchema.d.ts +2 -2
  261. package/dist/store/reducers/viewSchema/viewSchema.js +1 -1
  262. package/dist/store/reducers/viewSchema/viewSchema.js.map +1 -1
  263. package/dist/styles/mixins.scss +45 -0
  264. package/dist/types/api/capabilities.d.ts +1 -1
  265. package/dist/types/api/cluster.d.ts +31 -1
  266. package/dist/types/api/cluster.js +3 -1
  267. package/dist/types/api/cluster.js.map +1 -1
  268. package/dist/types/api/featureFlags.d.ts +13 -0
  269. package/dist/types/api/featureFlags.js +2 -0
  270. package/dist/types/api/featureFlags.js.map +1 -0
  271. package/dist/types/api/meta.d.ts +6 -4
  272. package/dist/types/api/pdisk.d.ts +1 -1
  273. package/dist/types/api/storage.d.ts +132 -6
  274. package/dist/types/api/storage.js +1 -5
  275. package/dist/types/api/storage.js.map +1 -1
  276. package/dist/types/api/trace.d.ts +16 -6
  277. package/dist/types/api/trace.js +7 -1
  278. package/dist/types/api/trace.js.map +1 -1
  279. package/dist/types/api/vdisk.d.ts +1 -1
  280. package/dist/types/store/executeQuery.d.ts +25 -3
  281. package/dist/types/store/executeQuery.js +5 -1
  282. package/dist/types/store/executeQuery.js.map +1 -1
  283. package/dist/utils/constants.d.ts +0 -1
  284. package/dist/utils/constants.js +0 -1
  285. package/dist/utils/constants.js.map +1 -1
  286. package/dist/utils/disks/helpers.d.ts +4 -1
  287. package/dist/utils/disks/helpers.js +7 -1
  288. package/dist/utils/disks/helpers.js.map +1 -1
  289. package/dist/utils/monaco/yql/generateSuggestions.js +8 -3
  290. package/dist/utils/monaco/yql/generateSuggestions.js.map +1 -1
  291. package/dist/utils/nodes.d.ts +1 -2
  292. package/dist/utils/nodes.js.map +1 -1
  293. package/dist/utils/storage.d.ts +2 -21
  294. package/dist/utils/storage.js +14 -19
  295. package/dist/utils/storage.js.map +1 -1
  296. package/dist/utils/versions/parseNodesToVersionsValues.d.ts +1 -1
  297. package/dist/utils/versions/parseNodesToVersionsValues.js +3 -2
  298. package/dist/utils/versions/parseNodesToVersionsValues.js.map +1 -1
  299. package/package.json +2 -6
  300. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.d.ts +0 -9
  301. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js +0 -9
  302. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js.map +0 -1
  303. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.scss +0 -3
  304. package/dist/containers/Cluster/i18n/ru.json +0 -16
  305. package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +0 -4
  306. package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.js +0 -29
  307. package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.js.map +0 -1
  308. package/dist/store/reducers/tenantOverview/topStorageGroups/types.d.ts +0 -4
  309. package/dist/store/reducers/tenantOverview/topStorageGroups/types.js +0 -2
  310. package/dist/store/reducers/tenantOverview/topStorageGroups/types.js.map +0 -1
  311. package/dist/store/reducers/tenantOverview/topStorageGroups/utils.d.ts +0 -3
  312. package/dist/store/reducers/tenantOverview/topStorageGroups/utils.js +0 -13
  313. package/dist/store/reducers/tenantOverview/topStorageGroups/utils.js.map +0 -1
  314. package/dist/types/api/compute.d.ts +0 -60
  315. package/dist/types/api/compute.js +0 -6
  316. package/dist/types/api/compute.js.map +0 -1
@@ -8,13 +8,13 @@ export declare function ComponentsProvider({ children, registry }: ComponentsPro
8
8
  export declare function useComponent<T extends Parameters<ComponentsRegistry['get']>[0]>(id: T): ({
9
9
  StaffCard: typeof import("../User/StaffCard").StaffCard;
10
10
  } & {
11
- AsideNavigation: typeof import("../../containers/AsideNavigation/AsideNavigation").AsideNavigation;
11
+ AsideNavigation: typeof import("../../lib").AsideNavigation;
12
12
  } & {
13
13
  ErrorBoundary: typeof import("../ErrorBoundary/ErrorBoundary").ErrorBoundaryInner;
14
14
  })[T] extends infer T_1 ? T_1 extends ({
15
15
  StaffCard: typeof import("../User/StaffCard").StaffCard;
16
16
  } & {
17
- AsideNavigation: typeof import("../../containers/AsideNavigation/AsideNavigation").AsideNavigation;
17
+ AsideNavigation: typeof import("../../lib").AsideNavigation;
18
18
  } & {
19
19
  ErrorBoundary: typeof import("../ErrorBoundary/ErrorBoundary").ErrorBoundaryInner;
20
20
  })[T] ? T_1 extends React.ComponentType<any> ? React.ComponentType<React.PropsWithoutRef<React.ComponentProps<T_1>>> : never : never : never;
@@ -6,10 +6,11 @@ interface CriticalActionDialogProps<T> {
6
6
  text?: string;
7
7
  withRetry?: boolean;
8
8
  retryButtonText?: string;
9
+ withCheckBox?: boolean;
9
10
  onClose: VoidFunction;
10
11
  onConfirm: (isRetry?: boolean) => Promise<T>;
11
12
  onConfirmActionSuccess: VoidFunction;
12
13
  onConfirmActionError: (error: unknown) => void;
13
14
  }
14
- export declare function CriticalActionDialog<T>({ visible, header, text, withRetry, retryButtonText, onClose, onConfirm, onConfirmActionSuccess, onConfirmActionError, }: CriticalActionDialogProps<T>): import("react/jsx-runtime").JSX.Element;
15
+ export declare function CriticalActionDialog<T>({ visible, header, text, withRetry, retryButtonText, withCheckBox, onClose, onConfirm, onConfirmActionSuccess, onConfirmActionError, }: CriticalActionDialogProps<T>): import("react/jsx-runtime").JSX.Element;
15
16
  export {};
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React from 'react';
3
3
  import { CircleXmarkFill, TriangleExclamationFill } from '@gravity-ui/icons';
4
- import { Dialog, Icon } from '@gravity-ui/uikit';
4
+ import { Checkbox, Dialog, Icon } from '@gravity-ui/uikit';
5
5
  import { cn } from '../../utils/cn';
6
6
  import { criticalActionDialogKeyset } from './i18n';
7
7
  import './CriticalActionDialog.scss';
@@ -15,9 +15,10 @@ const parseError = (error) => {
15
15
  }
16
16
  return criticalActionDialogKeyset('default-error');
17
17
  };
18
- export function CriticalActionDialog({ visible, header, text, withRetry, retryButtonText, onClose, onConfirm, onConfirmActionSuccess, onConfirmActionError, }) {
18
+ export function CriticalActionDialog({ visible, header, text, withRetry, retryButtonText, withCheckBox, onClose, onConfirm, onConfirmActionSuccess, onConfirmActionError, }) {
19
19
  const [isLoading, setIsLoading] = React.useState(false);
20
20
  const [error, setError] = React.useState();
21
+ const [checkBoxChecked, setCheckBoxChecked] = React.useState(false);
21
22
  const onApply = async (isRetry) => {
22
23
  setIsLoading(true);
23
24
  return onConfirm(isRetry)
@@ -35,6 +36,13 @@ export function CriticalActionDialog({ visible, header, text, withRetry, retryBu
35
36
  };
36
37
  const handleTransitionExited = () => {
37
38
  setError(undefined);
39
+ setCheckBoxChecked(false);
40
+ };
41
+ const renderCheckBox = () => {
42
+ if (withCheckBox) {
43
+ return (_jsx(Checkbox, { checked: checkBoxChecked, onUpdate: setCheckBoxChecked, children: criticalActionDialogKeyset('checkbox-text') }));
44
+ }
45
+ return null;
38
46
  };
39
47
  const renderDialogContent = () => {
40
48
  if (error) {
@@ -42,7 +50,7 @@ export function CriticalActionDialog({ visible, header, text, withRetry, retryBu
42
50
  ? retryButtonText || criticalActionDialogKeyset('button-retry')
43
51
  : undefined, textButtonCancel: criticalActionDialogKeyset('button-close'), onClickButtonApply: () => onApply(true), onClickButtonCancel: onClose })] }));
44
52
  }
45
- return (_jsxs(React.Fragment, { children: [_jsx(Dialog.Header, { caption: header }), _jsx(Dialog.Body, { className: b('body'), children: _jsxs("div", { className: b('body-message', { warning: true }), children: [_jsx("span", { className: b('warning-icon'), children: _jsx(Icon, { data: TriangleExclamationFill, size: 24 }) }), text] }) }), _jsx(Dialog.Footer, { loading: isLoading, preset: "default", textButtonApply: criticalActionDialogKeyset('button-confirm'), textButtonCancel: criticalActionDialogKeyset('button-cancel'), propsButtonApply: { type: 'submit' }, onClickButtonCancel: onClose, onClickButtonApply: () => onApply() })] }));
53
+ return (_jsxs(React.Fragment, { children: [_jsx(Dialog.Header, { caption: header }), _jsxs(Dialog.Body, { className: b('body'), children: [_jsxs("div", { className: b('body-message', { warning: true }), children: [_jsx("span", { className: b('warning-icon'), children: _jsx(Icon, { data: TriangleExclamationFill, size: 24 }) }), text] }), renderCheckBox()] }), _jsx(Dialog.Footer, { loading: isLoading, preset: "default", textButtonApply: criticalActionDialogKeyset('button-confirm'), textButtonCancel: criticalActionDialogKeyset('button-cancel'), propsButtonApply: { type: 'submit', disabled: withCheckBox && !checkBoxChecked }, onClickButtonCancel: onClose, onClickButtonApply: () => onApply() })] }));
46
54
  };
47
55
  return (_jsx(Dialog, { open: visible, hasCloseButton: false, className: b(), size: "s", onClose: onClose, onTransitionExited: handleTransitionExited, children: renderDialogContent() }));
48
56
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CriticalActionDialog.js","sourceRoot":"","sources":["../../../src/components/CriticalActionDialog/CriticalActionDialog.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,eAAe,EAAE,uBAAuB,EAAC,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAC,MAAM,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAG/C,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,OAAO,EAAC,0BAA0B,EAAC,MAAM,QAAQ,CAAC;AAElD,OAAO,6BAA6B,CAAC;AAErC,MAAM,CAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC,CAAC;AAEpC,MAAM,UAAU,GAAG,CAAC,KAAqB,EAAE,EAAE;IACzC,IAAI,KAAK,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;QACvB,OAAO,0BAA0B,CAAC,iBAAiB,CAAC,CAAC;IACzD,CAAC;IACD,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC;QACnB,OAAO,KAAK,CAAC,UAAU,CAAC;IAC5B,CAAC;IAED,OAAO,0BAA0B,CAAC,eAAe,CAAC,CAAC;AACvD,CAAC,CAAC;AAcF,MAAM,UAAU,oBAAoB,CAAI,EACpC,OAAO,EACP,MAAM,EACN,IAAI,EACJ,SAAS,EACT,eAAe,EACf,OAAO,EACP,SAAS,EACT,sBAAsB,EACtB,oBAAoB,GACO;IAC3B,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAkB,CA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AE,OAAO,EACb,cAAc,EAAE,KAAK,EACrB,SAAS,EAAE,CAAC,EAAE,EACd,IAAI,EAAC,GAAG,EACR,OAAO,EAAE,OAAO,EAChB,kBAAkB,EAAE,sBAAsB,YAEzC,mBAAmB,EAAE,GACjB,CACZ,CAAC;AACN,CAAC"}
@@ -4,5 +4,6 @@
4
4
  "button-confirm": "Confirm",
5
5
  "button-retry": "Retry",
6
6
  "button-cancel": "Cancel",
7
- "button-close": "Close"
7
+ "button-close": "Close",
8
+ "checkbox-text": "I understand what I'm doing"
8
9
  }
@@ -1 +1 @@
1
- export declare const criticalActionDialogKeyset: (key: "default-error" | "no-rights-error" | "button-confirm" | "button-retry" | "button-cancel" | "button-close", params?: import("@gravity-ui/i18n").Params) => string;
1
+ export declare const criticalActionDialogKeyset: (key: "default-error" | "no-rights-error" | "button-confirm" | "button-retry" | "button-cancel" | "button-close" | "checkbox-text", params?: import("@gravity-ui/i18n").Params) => string;
@@ -1,3 +1,5 @@
1
+ @import '../../styles/mixins';
2
+
1
3
  .storage-disk-progress-bar {
2
4
  $block: &;
3
5
 
@@ -5,9 +7,6 @@
5
7
  $outer-border-radius: 4px;
6
8
  $inner-border-radius: $outer-border-radius - $border-width;
7
9
 
8
- --progress-bar-border-color: var(--g-color-base-misc-heavy);
9
- --progress-bar-background-color: var(--g-color-base-misc-light);
10
- --progress-bar-fill-color: var(--g-color-base-misc-medium);
11
10
  --progress-bar-full-height: var(--g-text-body-3-line-height);
12
11
  --progress-bar-compact-height: 12px;
13
12
 
@@ -20,9 +19,10 @@
20
19
  text-align: center;
21
20
 
22
21
  color: var(--g-color-text-primary);
23
- border: $border-width solid var(--progress-bar-border-color);
22
+ border: $border-width solid var(--entity-state-border-color);
24
23
  border-radius: $outer-border-radius;
25
- background-color: var(--progress-bar-background-color);
24
+ background-color: var(--entity-state-background-color);
25
+ @include entity-state-colors();
26
26
 
27
27
  &_compact {
28
28
  min-width: 0;
@@ -31,35 +31,6 @@
31
31
  border-radius: 2px;
32
32
  }
33
33
 
34
- &_green {
35
- --progress-bar-border-color: var(--g-color-base-positive-heavy);
36
- --progress-bar-background-color: var(--g-color-base-positive-light);
37
- --progress-bar-fill-color: var(--g-color-base-positive-medium);
38
- }
39
-
40
- &_blue {
41
- --progress-bar-border-color: var(--g-color-base-info-heavy);
42
- --progress-bar-background-color: var(--g-color-base-info-light);
43
- --progress-bar-fill-color: var(--g-color-base-info-medium);
44
- }
45
-
46
- &_yellow {
47
- --progress-bar-border-color: var(--g-color-base-warning-heavy);
48
- --progress-bar-background-color: var(--g-color-base-yellow-light);
49
- --progress-bar-fill-color: var(--g-color-base-yellow-medium);
50
- }
51
-
52
- &_orange {
53
- --progress-bar-border-color: var(--ydb-color-status-orange);
54
- --progress-bar-background-color: var(--g-color-base-warning-light);
55
- --progress-bar-fill-color: var(--g-color-base-warning-medium);
56
- }
57
- &_red {
58
- --progress-bar-border-color: var(--g-color-base-danger-heavy);
59
- --progress-bar-background-color: var(--g-color-base-danger-light);
60
- --progress-bar-fill-color: var(--g-color-base-danger-medium);
61
- }
62
-
63
34
  &_faded {
64
35
  background-color: unset;
65
36
  }
@@ -78,11 +49,11 @@
78
49
  height: 100%;
79
50
 
80
51
  border-radius: $inner-border-radius 0 0 $inner-border-radius;
81
- background-color: var(--progress-bar-fill-color);
52
+ background-color: var(--entity-state-fill-color);
82
53
 
83
54
  &_faded {
84
55
  // Bg color is light variant, use it to make bar less bright
85
- background-color: var(--progress-bar-background-color);
56
+ background-color: var(--entity-state-background-color);
86
57
  }
87
58
 
88
59
  &_compact {
@@ -5,10 +5,10 @@ import { InfoViewer } from '../InfoViewer';
5
5
  import { ProgressViewer } from '../ProgressViewer/ProgressViewer';
6
6
  import { groupInfoKeyset } from './i18n';
7
7
  export function GroupInfo({ data, ...infoViewerProps }) {
8
- const { GroupID, PoolName, Used, Limit, ErasureSpecies } = data;
8
+ const { GroupId, PoolName, Used, Limit, ErasureSpecies } = data;
9
9
  const groupInfo = [];
10
- if (valueIsDefined(GroupID)) {
11
- groupInfo.push({ label: groupInfoKeyset('group-id'), value: GroupID });
10
+ if (valueIsDefined(GroupId)) {
11
+ groupInfo.push({ label: groupInfoKeyset('group-id'), value: GroupId });
12
12
  }
13
13
  if (valueIsDefined(PoolName)) {
14
14
  groupInfo.push({ label: groupInfoKeyset('pool-name'), value: PoolName });
@@ -1,4 +1,4 @@
1
1
  import type { GetChartDataParams } from './getChartData';
2
2
  export declare const chartApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../store/reducers/api")._NEVER, unknown, {}>, {
3
- getChartData: import("@reduxjs/toolkit/query").QueryDefinition<GetChartDataParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../store/reducers/api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", import("./types").PreparedMetricsData | undefined, "api">;
4
- }, "api", "All" | "PDiskData" | "UserData" | "PreviewData" | "Tablet", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
3
+ getChartData: import("@reduxjs/toolkit/query").QueryDefinition<GetChartDataParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../store/reducers/api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("./types").PreparedMetricsData | undefined, "api">;
4
+ }, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
@@ -1 +1 @@
1
- export declare const pDiskInfoKeyset: (key: "type" | "path" | "space" | "state" | "yes" | "links" | "guid" | "serial-number" | "shared-with-os" | "drive-status" | "device" | "realtime" | "slots" | "log-size" | "system-size" | "developer-ui" | "pdisk-page", params?: import("@gravity-ui/i18n").Params) => string;
1
+ export declare const pDiskInfoKeyset: (key: "path" | "space" | "type" | "state" | "yes" | "links" | "guid" | "serial-number" | "shared-with-os" | "drive-status" | "device" | "realtime" | "slots" | "log-size" | "system-size" | "developer-ui" | "pdisk-page", params?: import("@gravity-ui/i18n").Params) => string;
@@ -175,4 +175,8 @@
175
175
  // padding for easier resize of the last column
176
176
  padding-right: 20px;
177
177
  }
178
+
179
+ &__row-skeleton::after {
180
+ animation-delay: 200ms;
181
+ }
178
182
  }
@@ -6,7 +6,10 @@ import { useAutoRefreshInterval } from '../../utils/hooks';
6
6
  import { ResponseError } from '../Errors/ResponseError';
7
7
  import { EmptyTableRow, LoadingTableRow, TableRow } from './TableRow';
8
8
  const DEBOUNCE_TIMEOUT = 200;
9
- export const TableChunk = ({ id, limit, rowHeight, columns, fetchData, tableName, filters, sortParams, observer, getRowClassName, renderErrorMessage, onDataFetched, isActive, }) => {
9
+ // With original memo generic types are lost
10
+ const typedMemo = React.memo;
11
+ // Memoisation prevents chunks rerenders that could cause perfomance issues on big tables
12
+ export const TableChunk = typedMemo(function TableChunk({ id, limit, rowHeight, columns, fetchData, tableName, filters, sortParams, observer, getRowClassName, renderErrorMessage, onDataFetched, isActive, }) {
10
13
  var _a;
11
14
  const ref = React.useRef(null);
12
15
  const [isTimeoutActive, setIsTimeoutActive] = React.useState(true);
@@ -76,5 +79,5 @@ export const TableChunk = ({ id, limit, rowHeight, columns, fetchData, tableName
76
79
  // Hack to make it work in all cases
77
80
  display: isActive ? 'table-row-group' : 'block',
78
81
  }, children: renderContent() }));
79
- };
82
+ });
80
83
  //# 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,YAAY,EAAC,MAAM,gCAAgC,CAAC;AAE5D,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAC;AACrC,OAAO,EAAC,sBAA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1B,+EAA+E;YAC/E,6EAA6E;YAC7E,oCAAoC;YACpC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,OAAO;SAClD,YAEA,aAAa,EAAE,GACZ,CACX,CAAC;AACN,CAAC,CAAC,CAAC"}
@@ -14,7 +14,7 @@ export const LoadingTableRow = ({ index, columns, height }) => {
14
14
  return (_jsx("tr", { className: b('row', { loading: true }), children: columns.map((column) => {
15
15
  var _a;
16
16
  const resizeable = (_a = column.resizeable) !== null && _a !== void 0 ? _a : DEFAULT_RESIZEABLE;
17
- return (_jsx(TableRowCell, { height: height, width: column.width, align: column.align, className: column.className, resizeable: resizeable, children: _jsx(Skeleton, { style: { width: '80%', height: '50%' } }) }, `${column.name}${index}`));
17
+ return (_jsx(TableRowCell, { height: height, width: column.width, align: column.align, className: column.className, resizeable: resizeable, children: _jsx(Skeleton, { className: b('row-skeleton'), style: { width: '80%', height: '50%' } }) }, `${column.name}${index}`));
18
18
  }) }));
19
19
  };
20
20
  export const TableRow = ({ row, index, columns, getRowClassName, height }) => {
@@ -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,EAAE,kBAAkB,EAAC,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAC,CAAC,EAAC,MAAM,UAAU,CAAC;AAY3B,MAAM,YAAY,GAAG,CAAC,EAClB,QAAQ,EACR,SAAS,EACT,MAAM,EACN,KAAK,EACL,KAAK,GAAG,aAAa,EACrB,UAAU,GACG,EAAE,EAAE;IACjB,OAAO,CACH,aACI,SAAS,EAAE,CAAC,CAAC,UAAU,EAAE,EAAC,KAAK,EAAE,KAAK,EAAC,EAAE,SAAS,CAAC,EACnD,KAAK,EAAE;YACH,MAAM,EAAE,GAAG,MAAM,IAAI;YACrB,KAA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O,CACH,aAAI,SAAS,EAAE,CAAC,CAAC,KAAK,EAAE,mBAAmB,CAAC,YACvC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;;YACpB,MAAM,UAAU,GAAG,MAAA,MAAM,CAAC,UAAU,mCAAI,kBAAkB,CAAC;YAE3D,OAAO,CACH,KAAC,YAAY,IAET,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,SAAS,EAAE,MAAM,CAAC,SAAS,EAC3B,UAAU,EAAE,UAAU,YAErB,MAAM,CAAC,MAAM,CAAC,EAAC,GAAG,EAAE,KAAK,EAAC,CAAC,IAPvB,GAAG,MAAM,CAAC,IAAI,GAAG,KAAK,EAAE,CAQlB,CAClB,CAAC;QACN,CAAC,CAAC,GACD,CACR,CAAC;AACN,CAAC,CAAC;AAOF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAK,EAAC,OAAO,EAAE,QAAQ,EAAwB,EAAE,EAAE;IAC5E,OAAO,CACH,aAAI,SAAS,EAAE,CAAC,CAAC,KAAK,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,YAClC,aAAI,OAAO,EAAE,OAAO,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,YAC1C,QAAQ,GACR,GACJ,CACR,CAAC;AACN,CAAC,CAAC"}
@@ -1,9 +1,7 @@
1
- import type { TTabletStateInfo as TComputeTabletStateInfo } from '../../types/api/compute';
2
- import type { TTabletStateInfo as TFullTabletStateInfo } from '../../types/api/tablet';
1
+ import type { TTabletStateInfo } from '../../types/api/tablet';
3
2
  import './TabletsStatistic.scss';
4
- type Tablets = TFullTabletStateInfo[] | TComputeTabletStateInfo[];
5
3
  interface TabletsStatisticProps {
6
- tablets: Tablets;
4
+ tablets: TTabletStateInfo[];
7
5
  path: string | undefined;
8
6
  nodeId: string | number;
9
7
  backend?: string;
@@ -1 +1 @@
1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AAC;QAElE,OAAO,OAAO,CAAC,CAAC,CAAC,CACb,YAAG,IAAI,EAAE,WAAW,EAAc,SAAS,EAAE,SAAS,YACjD,KAAK,IADiB,KAAK,CAE5B,CACP,CAAC,CAAC,CAAC,CACA,KAAC,IAAI,IAAC,EAAE,EAAE,WAAW,EAAc,SAAS,EAAE,SAAS,YAClD,KAAK,IADkB,KAAK,CAE1B,CACV,CAAC;IACN,CAAC,CAAC;IACF,MAAM,eAAe,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;IAEhD,OAAO,cAAK,SAAS,EAAE,CAAC,EAAE,YAAG,eAAe,CAAC,GAAG,CAAC,gBAAgB,CAAC,GAAO,CAAC;AAC9E,CAAC,CAAC"}
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import './Tag.scss';
2
3
  export type TagType = 'blue';
3
4
  interface TagProps {
4
- text: string;
5
+ text: React.ReactNode;
5
6
  type?: TagType;
6
7
  }
7
8
  export declare const Tag: ({ text, type }: TagProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.js","sourceRoot":"","sources":["../../../src/components/Tag/Tag.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,OAAO,YAAY,CAAC;AAEpB,MAAM,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;AASpB,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,EAAC,IAAI,EAAE,IAAI,EAAW,EAAE,EAAE;IAC1C,OAAO,cAAK,SAAS,EAAE,CAAC,CAAC,EAAC,IAAI,EAAC,CAAC,YAAG,IAAI,GAAO,CAAC;AACnD,CAAC,CAAC"}
1
+ {"version":3,"file":"Tag.js","sourceRoot":"","sources":["../../../src/components/Tag/Tag.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,OAAO,YAAY,CAAC;AAEpB,MAAM,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;AASpB,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,EAAC,IAAI,EAAE,IAAI,EAAW,EAAE,EAAE;IAC1C,OAAO,cAAK,SAAS,EAAE,CAAC,CAAC,EAAC,IAAI,EAAC,CAAC,YAAG,IAAI,GAAO,CAAC;AACnD,CAAC,CAAC"}
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import type { TagType } from '../Tag';
2
3
  import './Tags.scss';
3
4
  interface TagsProps {
4
- tags: string[];
5
+ tags: React.ReactNode[];
5
6
  tagsType?: TagType;
6
7
  className?: string;
7
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Tags.js","sourceRoot":"","sources":["../../../src/components/Tags/Tags.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAE3B,OAAO,aAAa,CAAC;AAErB,MAAM,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC;AAQrB,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,GAAG,EAAE,EAAY,EAAE,EAAE;IAChE,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,SAAS,CAAC,YAC7B,IAAI;YACD,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE,CAAC,KAAC,GAAG,IAAC,IAAI,EAAE,GAAG,EAAiB,IAAI,EAAE,QAAQ,IAAxB,QAAQ,CAAwB,CAAC,GACpF,CACT,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"Tags.js","sourceRoot":"","sources":["../../../src/components/Tags/Tags.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAE3B,OAAO,aAAa,CAAC;AAErB,MAAM,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC;AAQrB,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,GAAG,EAAE,EAAY,EAAE,EAAE;IAChE,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,SAAS,CAAC,YAC7B,IAAI;YACD,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE,CAAC,KAAC,GAAG,IAAC,IAAI,EAAE,GAAG,EAAiB,IAAI,EAAE,QAAQ,IAAxB,QAAQ,CAAwB,CAAC,GACpF,CACT,CAAC;AACN,CAAC,CAAC"}
@@ -1,7 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useClusterData } from '../useClusterData';
2
+ import { useClusterBaseInfo } from '../../../store/reducers/cluster/cluster';
3
+ import { useAdditionalNodeProps } from '../useClusterData';
3
4
  export function ExtendedNode({ component: NodeComponent }) {
4
- const { additionalNodesProps } = useClusterData();
5
+ const { balancer } = useClusterBaseInfo();
6
+ const { additionalNodesProps } = useAdditionalNodeProps({ balancer });
5
7
  return _jsx(NodeComponent, { additionalNodesProps: additionalNodesProps });
6
8
  }
7
9
  //# sourceMappingURL=ExtendedNode.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExtendedNode.js","sourceRoot":"","sources":["../../../../src/containers/AppWithClusters/ExtendedNode/ExtendedNode.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AAEjD,MAAM,UAAU,YAAY,CAAC,EAAC,SAAS,EAAE,aAAa,EAA2B;IAC7E,MAAM,EAAC,oBAAoB,EAAC,GAAG,cAAc,EAAE,CAAC;IAEhD,OAAO,KAAC,aAAa,IAAC,oBAAoB,EAAE,oBAAoB,GAAI,CAAC;AACzE,CAAC"}
1
+ {"version":3,"file":"ExtendedNode.js","sourceRoot":"","sources":["../../../../src/containers/AppWithClusters/ExtendedNode/ExtendedNode.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,yCAAyC,CAAC;AAE3E,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AAEzD,MAAM,UAAU,YAAY,CAAC,EAAC,SAAS,EAAE,aAAa,EAA2B;IAC7E,MAAM,EAAC,QAAQ,EAAC,GAAG,kBAAkB,EAAE,CAAC;IACxC,MAAM,EAAC,oBAAoB,EAAC,GAAG,sBAAsB,CAAC,EAAC,QAAQ,EAAC,CAAC,CAAC;IAElE,OAAO,KAAC,aAAa,IAAC,oBAAoB,EAAE,oBAAoB,GAAI,CAAC;AACzE,CAAC"}
@@ -1,8 +1,10 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { MonitoringButton } from '../../../components/MonitoringButton/MonitoringButton';
3
- import { useClusterData } from '../useClusterData';
3
+ import { useClusterBaseInfo } from '../../../store/reducers/cluster/cluster';
4
+ import { useAdditionalNodeProps } from '../useClusterData';
4
5
  export function ExtendedTenant({ component: TenantComponent, getMonitoringLink, }) {
5
- const { additionalNodesProps, cluster, monitoring } = useClusterData();
6
+ const { balancer, monitoring } = useClusterBaseInfo();
7
+ const { additionalNodesProps } = useAdditionalNodeProps({ balancer });
6
8
  const additionalTenantProps = {
7
9
  getMonitoringLink: (dbName, dbType) => {
8
10
  if (monitoring && dbName && dbType && getMonitoringLink) {
@@ -10,7 +12,6 @@ export function ExtendedTenant({ component: TenantComponent, getMonitoringLink,
10
12
  monitoring,
11
13
  dbName,
12
14
  dbType,
13
- clusterName: cluster === null || cluster === void 0 ? void 0 : cluster.Name,
14
15
  });
15
16
  return href ? _jsx(MonitoringButton, { href: href, visible: true }) : null;
16
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ExtendedTenant.js","sourceRoot":"","sources":["../../../../src/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,uDAAuD,CAAC;AAIvF,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AAOjD,MAAM,UAAU,cAAc,CAAC,EAC3B,SAAS,EAAE,eAAe,EAC1B,iBAAiB,GACC;IAClB,MAAM,EAAC,oBAAoB,EAAE,OAAO,EAAE,UAAU,EAAC,GAAG,cAAc,EAAE,CAAC;IAErE,MAAM,qBAAqB,GAAG;QAC1B,iBAAiB,EAAE,CAAC,MAAe,EAAE,MAAoB,EAAE,EAAE;YACzD,IAAI,UAAU,IAAI,MAAM,IAAI,MAAM,IAAI,iBAAiB,EAAE,CAAC;gBACtD,MAAM,IAAI,GAAG,iBAAiB,CAAC;oBAC3B,UAAU;oBACV,MAAM;oBACN,MAAM;oBACN,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI;iBAC7B,CAAC,CAAC;gBACH,OAAO,IAAI,CAAC,CAAC,CAAC,KAAC,gBAAgB,IAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC;YACzE,CAAC;YAED,OAAO,IAAI,CAAC;QAChB,CAAC;KACJ,CAAC;IAEF,OAAO,CACH,KAAC,eAAe,IACZ,qBAAqB,EAAE,qBAAqB,EAC5C,oBAAoB,EAAE,oBAAoB,GAC5C,CACL,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"ExtendedTenant.js","sourceRoot":"","sources":["../../../../src/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,uDAAuD,CAAC;AACvF,OAAO,EAAC,kBAAkB,EAAC,MAAM,yCAAyC,CAAC;AAI3E,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AAOzD,MAAM,UAAU,cAAc,CAAC,EAC3B,SAAS,EAAE,eAAe,EAC1B,iBAAiB,GACC;IAClB,MAAM,EAAC,QAAQ,EAAE,UAAU,EAAC,GAAG,kBAAkB,EAAE,CAAC;IACpD,MAAM,EAAC,oBAAoB,EAAC,GAAG,sBAAsB,CAAC,EAAC,QAAQ,EAAC,CAAC,CAAC;IAElE,MAAM,qBAAqB,GAAG;QAC1B,iBAAiB,EAAE,CAAC,MAAe,EAAE,MAAoB,EAAE,EAAE;YACzD,IAAI,UAAU,IAAI,MAAM,IAAI,MAAM,IAAI,iBAAiB,EAAE,CAAC;gBACtD,MAAM,IAAI,GAAG,iBAAiB,CAAC;oBAC3B,UAAU;oBACV,MAAM;oBACN,MAAM;iBACT,CAAC,CAAC;gBACH,OAAO,IAAI,CAAC,CAAC,CAAC,KAAC,gBAAgB,IAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC;YACzE,CAAC;YAED,OAAO,IAAI,CAAC;QAChB,CAAC;KACJ,CAAC;IAEF,OAAO,CACH,KAAC,eAAe,IACZ,qBAAqB,EAAE,qBAAqB,EAC5C,oBAAoB,EAAE,oBAAoB,GAC5C,CACL,CAAC;AACN,CAAC"}
@@ -1,8 +1,14 @@
1
1
  export declare function useClusterData(): {
2
+ additionalNodesProps: import("../../types/additionalProps").AdditionalNodesProps;
3
+ useClusterBalancerAsBackend: boolean;
2
4
  monitoring: string | undefined;
3
5
  balancer: string | undefined;
4
6
  versions: import("../../types/api/meta").MetaClusterVersion[] | undefined;
5
7
  cluster: import("../../types/api/meta").MetaViewerClusterInfo | undefined;
6
- useClusterBalancerAsBackend: boolean;
8
+ };
9
+ export declare function useAdditionalNodeProps({ balancer }: {
10
+ balancer?: string;
11
+ }): {
7
12
  additionalNodesProps: import("../../types/additionalProps").AdditionalNodesProps;
13
+ useClusterBalancerAsBackend: boolean;
8
14
  };
@@ -1,28 +1,28 @@
1
1
  import React from 'react';
2
- import { useLocation } from 'react-router-dom';
3
- import { parseQuery } from '../../routes';
2
+ import { StringParam, useQueryParam } from 'use-query-params';
4
3
  import { clustersApi } from '../../store/reducers/clusters/clusters';
5
4
  import { getAdditionalNodesProps } from '../../utils/additionalProps';
6
5
  import { USE_CLUSTER_BALANCER_AS_BACKEND_KEY } from '../../utils/constants';
7
6
  import { useSetting } from '../../utils/hooks';
8
7
  export function useClusterData() {
9
- const location = useLocation();
10
- const { clusterName } = parseQuery(location);
8
+ const [clusterName] = useQueryParam('clusterName', StringParam);
11
9
  const { data } = clustersApi.useGetClustersListQuery(undefined);
12
10
  const info = React.useMemo(() => {
13
11
  const clusters = data || [];
14
12
  return clusters.find((cluster) => cluster.name === clusterName);
15
13
  }, [data, clusterName]);
16
14
  const { solomon: monitoring, balancer, versions, cluster } = info || {};
17
- const [useClusterBalancerAsBackend] = useSetting(USE_CLUSTER_BALANCER_AS_BACKEND_KEY);
18
- const additionalNodesProps = getAdditionalNodesProps(balancer, useClusterBalancerAsBackend);
19
15
  return {
20
16
  monitoring,
21
17
  balancer,
22
18
  versions,
23
19
  cluster,
24
- useClusterBalancerAsBackend,
25
- additionalNodesProps,
20
+ ...useAdditionalNodeProps({ balancer }),
26
21
  };
27
22
  }
23
+ export function useAdditionalNodeProps({ balancer }) {
24
+ const [useClusterBalancerAsBackend] = useSetting(USE_CLUSTER_BALANCER_AS_BACKEND_KEY);
25
+ const additionalNodesProps = getAdditionalNodesProps(balancer, useClusterBalancerAsBackend);
26
+ return { additionalNodesProps, useClusterBalancerAsBackend };
27
+ }
28
28
  //# sourceMappingURL=useClusterData.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useClusterData.js","sourceRoot":"","sources":["../../../src/containers/AppWithClusters/useClusterData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,WAAW,EAAC,MAAM,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  ydbInternalUser: JSX.Element;
7
7
  menuItems?: MenuItem[];
8
8
  content: React.ReactNode;
9
+ user?: {
10
+ login: string;
11
+ };
9
12
  }
10
13
  export declare function AsideNavigation(props: AsideNavigationProps): import("react/jsx-runtime").JSX.Element;
@@ -3,24 +3,23 @@ import React from 'react';
3
3
  import { CircleQuestion, Gear, Person } from '@gravity-ui/icons';
4
4
  import { AsideHeader, FooterItem } from '@gravity-ui/navigation';
5
5
  import { useHistory } from 'react-router-dom';
6
- import { selectUser } from '../../store/reducers/authentication/authentication';
7
6
  import { cn } from '../../utils/cn';
8
7
  import { ASIDE_HEADER_COMPACT_KEY } from '../../utils/constants';
9
- import { useSetting, useTypedSelector } from '../../utils/hooks';
8
+ import { useSetting } from '../../utils/hooks';
10
9
  import i18n from './i18n';
11
10
  import userSecret from '../../assets/icons/user-secret.svg';
12
11
  import ydbLogoIcon from '../../assets/icons/ydb.svg';
13
12
  import './AsideNavigation.scss';
14
13
  const b = cn('kv-navigation');
15
- function YdbUserDropdown({ isCompact, popupAnchor, ydbUser, children }) {
14
+ function UserDropdown({ isCompact, popupAnchor, user, children }) {
16
15
  const [isUserDropdownVisible, setIsUserDropdownVisible] = React.useState(false);
17
- const iconData = ydbUser.login ? Person : userSecret;
16
+ const iconData = user ? Person : userSecret;
18
17
  return (_jsx(FooterItem, { compact: isCompact, item: {
19
18
  id: 'user-popup',
20
- title: ydbUser.login ? ydbUser.login : i18n('navigation-item.account'),
19
+ title: (user === null || user === void 0 ? void 0 : user.login) ? user.login : i18n('navigation-item.account'),
21
20
  current: isUserDropdownVisible,
22
21
  icon: iconData,
23
- onItemClick: () => setIsUserDropdownVisible(true),
22
+ onItemClick: () => setIsUserDropdownVisible((v) => !v),
24
23
  }, enableTooltip: !isUserDropdownVisible, popupAnchor: popupAnchor, popupVisible: isUserDropdownVisible, onClosePopup: () => setIsUserDropdownVisible(false), renderPopupContent: () => _jsx("div", { className: b('ydb-user-wrapper'), children: children }) }));
25
24
  }
26
25
  var Panel;
@@ -30,7 +29,6 @@ var Panel;
30
29
  export function AsideNavigation(props) {
31
30
  const history = useHistory();
32
31
  const [visiblePanel, setVisiblePanel] = React.useState();
33
- const ydbUser = useTypedSelector(selectUser);
34
32
  const [compact, setIsCompact] = useSetting(ASIDE_HEADER_COMPACT_KEY);
35
33
  return (_jsx(React.Fragment, { children: _jsx(AsideHeader, { logo: {
36
34
  text: 'YDB',
@@ -53,9 +51,7 @@ export function AsideNavigation(props) {
53
51
  ? undefined
54
52
  : Panel.UserSettings);
55
53
  },
56
- }, compact: compact }), _jsx(YdbUserDropdown, { isCompact: compact, popupAnchor: asideRef, ydbUser: {
57
- login: ydbUser,
58
- }, children: props.ydbInternalUser })] })), panelItems: [
54
+ }, compact: compact }), _jsx(UserDropdown, { isCompact: compact, popupAnchor: asideRef, user: props.user, children: props.ydbInternalUser })] })), panelItems: [
59
55
  {
60
56
  id: 'user-settings',
61
57
  visible: visiblePanel === Panel.UserSettings,
@@ -1 +1 @@
1
- {"version":3,"file":"AsideNavigation.js","sourceRoot":"","sources":["../../../src/containers/AsideNavigation/AsideNavigation.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,cAAc,EAAE,IAAI,EAAE,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAC,UAAU,EAAC,MAAM,oDAAoD,CAAC;AAC9E,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,wBAAwB,EAAC,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAC,UAAU,EAAE,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAE/D,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,OAAO,UAAU,MAAM,oCAAoC,CAAC;A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,YACpE,KAAK,CAAC,eAAe,GACX,IACF,CACpB,EACD,UAAU,EAAE;gBACR;oBACI,EAAE,EAAE,eAAe;oBACnB,OAAO,EAAE,YAAY,KAAK,KAAK,CAAC,YAAY;oBAC5C,OAAO,EAAE,KAAK,CAAC,QAAQ;iBAC1B;aACJ,EACD,YAAY,EAAE,GAAG,EAAE;gBACf,eAAe,CAAC,SAAS,CAAC,CAAC;YAC/B,CAAC,GACH,GACW,CACpB,CAAC;AACN,CAAC"}
@@ -1,9 +1,12 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useComponent } from '../../components/ComponentsProvider/ComponentsProvider';
3
+ import { selectUser } from '../../store/reducers/authentication/authentication';
4
+ import { useTypedSelector } from '../../utils/hooks';
3
5
  import { UserSettings } from '../UserSettings/UserSettings';
4
6
  import { YdbInternalUser } from './YdbInternalUser/YdbInternalUser';
5
7
  export function Navigation({ children, userSettings }) {
6
8
  const AsideNavigation = useComponent('AsideNavigation');
7
- return (_jsx(AsideNavigation, { settings: _jsx(UserSettings, { settings: userSettings }), ydbInternalUser: _jsx(YdbInternalUser, {}), content: children }));
9
+ const ydbUser = useTypedSelector(selectUser);
10
+ return (_jsx(AsideNavigation, { settings: _jsx(UserSettings, { settings: userSettings }), ydbInternalUser: _jsx(YdbInternalUser, { login: ydbUser }), user: ydbUser ? { login: ydbUser } : undefined, content: children }));
8
11
  }
9
12
  //# sourceMappingURL=Navigation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Navigation.js","sourceRoot":"","sources":["../../../src/containers/AsideNavigation/Navigation.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,wDAAwD,CAAC;AACpF,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAG1D,OAAO,EAAC,eAAe,EAAC,MAAM,mCAAmC,CAAC;AAMlE,MAAM,UAAU,UAAU,CAAC,EAAC,QAAQ,EAAE,YAAY,EAAkB;IAChE,MAAM,eAAe,GAAG,YAAY,CAAC,iBAAiB,CAAC,CAAC;IAExD,OAAO,CACH,KAAC,eAAe,IACZ,QAAQ,EAAE,KAAC,YAAY,IAAC,QAAQ,EAAE,YAAY,GAAI,EAClD,eAAe,EAAE,KAAC,eAAe,KAAG,EACpC,OAAO,EAAE,QAAQ,GACnB,CACL,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"Navigation.js","sourceRoot":"","sources":["../../../src/containers/AsideNavigation/Navigation.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,wDAAwD,CAAC;AACpF,OAAO,EAAC,UAAU,EAAC,MAAM,oDAAoD,CAAC;AAC9E,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAG1D,OAAO,EAAC,eAAe,EAAC,MAAM,mCAAmC,CAAC;AAMlE,MAAM,UAAU,UAAU,CAAC,EAAC,QAAQ,EAAE,YAAY,EAAkB;IAChE,MAAM,eAAe,GAAG,YAAY,CAAC,iBAAiB,CAAC,CAAC;IAExD,MAAM,OAAO,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC;IAE7C,OAAO,CACH,KAAC,eAAe,IACZ,QAAQ,EAAE,KAAC,YAAY,IAAC,QAAQ,EAAE,YAAY,GAAI,EAClD,eAAe,EAAE,KAAC,eAAe,IAAC,KAAK,EAAE,OAAO,GAAI,EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAAC,KAAK,EAAE,OAAO,EAAC,CAAC,CAAC,CAAC,SAAS,EAC5C,OAAO,EAAE,QAAQ,GACnB,CACL,CAAC;AACN,CAAC"}
@@ -1,2 +1,4 @@
1
1
  import './YdbInternalUser.scss';
2
- export declare function YdbInternalUser(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function YdbInternalUser({ login }: {
3
+ login?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -5,12 +5,10 @@ import { useHistory } from 'react-router-dom';
5
5
  import routes, { createHref } from '../../../routes';
6
6
  import { authenticationApi } from '../../../store/reducers/authentication/authentication';
7
7
  import { cn } from '../../../utils/cn';
8
- import { useTypedSelector } from '../../../utils/hooks';
9
8
  import i18n from '../i18n';
10
9
  import './YdbInternalUser.scss';
11
10
  const b = cn('kv-ydb-internal-user');
12
- export function YdbInternalUser() {
13
- const { user: ydbUser } = useTypedSelector((state) => state.authentication);
11
+ export function YdbInternalUser({ login }) {
14
12
  const [logout] = authenticationApi.useLogoutMutation();
15
13
  const history = useHistory();
16
14
  const handleLoginClick = () => {
@@ -19,6 +17,6 @@ export function YdbInternalUser() {
19
17
  const handleLogout = () => {
20
18
  logout(undefined);
21
19
  };
22
- return (_jsxs("div", { className: b(), children: [_jsxs("div", { className: b('user-info-wrapper'), children: [_jsx("div", { className: b('ydb-internal-user-title'), children: i18n('account.user') }), ydbUser && _jsx("div", { className: b('username'), children: ydbUser })] }), ydbUser ? (_jsx(Button, { view: "flat-secondary", title: i18n('account.logout'), onClick: handleLogout, children: _jsx(Icon, { data: ArrowRightFromSquare }) })) : (_jsx(Button, { view: "flat-secondary", title: i18n('account.login'), onClick: handleLoginClick, children: _jsx(Icon, { data: ArrowRightToSquare }) }))] }));
20
+ return (_jsxs("div", { className: b(), children: [_jsxs("div", { className: b('user-info-wrapper'), children: [_jsx("div", { className: b('ydb-internal-user-title'), children: i18n('account.user') }), login && _jsx("div", { className: b('username'), children: login })] }), login ? (_jsx(Button, { view: "flat-secondary", title: i18n('account.logout'), onClick: handleLogout, children: _jsx(Icon, { data: ArrowRightFromSquare }) })) : (_jsx(Button, { view: "flat-secondary", title: i18n('account.login'), onClick: handleLoginClick, children: _jsx(Icon, { data: ArrowRightToSquare }) }))] }));
23
21
  }
24
22
  //# sourceMappingURL=YdbInternalUser.js.map