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,7 +8,6 @@ import { EntityStatus } from '../../../../components/EntityStatus/EntityStatus';
8
8
  import { UsageLabel } from '../../../../components/UsageLabel/UsageLabel';
9
9
  import { VDiskWithDonorsStack } from '../../../../components/VDisk/VDiskWithDonorsStack';
10
10
  import { VISIBLE_ENTITIES } from '../../../../store/reducers/storage/constants';
11
- import { EFlag } from '../../../../types/api/enums';
12
11
  import { cn } from '../../../../utils/cn';
13
12
  import { stringifyVdiskId } from '../../../../utils/dataFormatters/dataFormatters';
14
13
  import { isSortableStorageProperty } from '../../../../utils/storage';
@@ -27,7 +26,7 @@ export const GROUPS_COLUMNS_IDS = {
27
26
  Used: 'Used',
28
27
  Limit: 'Limit',
29
28
  Usage: 'Usage',
30
- UsedSpaceFlag: 'UsedSpaceFlag',
29
+ DiskSpace: 'DiskSpace',
31
30
  Read: 'Read',
32
31
  Write: 'Write',
33
32
  VDisks: 'VDisks',
@@ -90,9 +89,9 @@ const groupIdColumn = {
90
89
  header: 'Group ID',
91
90
  width: 130,
92
91
  render: ({ row }) => {
93
- return _jsx("span", { className: b('group-id'), children: row.GroupID });
92
+ return _jsx("span", { className: b('group-id'), children: row.GroupId });
94
93
  },
95
- sortAccessor: (row) => Number(row.GroupID),
94
+ sortAccessor: (row) => Number(row.GroupId),
96
95
  align: DataTable.RIGHT,
97
96
  };
98
97
  const usedColumn = {
@@ -114,22 +113,11 @@ const limitColumn = {
114
113
  align: DataTable.RIGHT,
115
114
  };
116
115
  const usedSpaceFlagColumn = {
117
- name: GROUPS_COLUMNS_IDS.UsedSpaceFlag,
116
+ name: GROUPS_COLUMNS_IDS.DiskSpace,
118
117
  header: 'Space',
119
118
  width: 110,
120
119
  render: ({ row }) => {
121
- const value = row.UsedSpaceFlag;
122
- let color = EFlag.Red;
123
- if (value < 100) {
124
- color = EFlag.Green;
125
- }
126
- else if (value < 10000) {
127
- color = EFlag.Yellow;
128
- }
129
- else if (value < 1000000) {
130
- color = EFlag.Orange;
131
- }
132
- return _jsx(EntityStatus, { status: color });
120
+ return _jsx(EntityStatus, { status: row.DiskSpace });
133
121
  },
134
122
  align: DataTable.CENTER,
135
123
  };
@@ -233,11 +221,10 @@ const filterStorageGroupsColumns = (columns, visibleEntities) => {
233
221
  return columns.filter((col) => col.name !== GROUPS_COLUMNS_IDS.Degraded);
234
222
  }
235
223
  if (visibleEntities === VISIBLE_ENTITIES.missing) {
236
- return columns.filter((col) => col.name !== GROUPS_COLUMNS_IDS.UsedSpaceFlag);
224
+ return columns.filter((col) => col.name !== GROUPS_COLUMNS_IDS.DiskSpace);
237
225
  }
238
226
  return columns.filter((col) => {
239
- return (col.name !== GROUPS_COLUMNS_IDS.Degraded &&
240
- col.name !== GROUPS_COLUMNS_IDS.UsedSpaceFlag);
227
+ return (col.name !== GROUPS_COLUMNS_IDS.Degraded && col.name !== GROUPS_COLUMNS_IDS.DiskSpace);
241
228
  });
242
229
  };
243
230
  export const getPreparedStorageGroupsColumns = (data, options) => {
@@ -1 +1 @@
1
- {"version":3,"file":"getStorageGroupsColumns.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MAAM,CAAC,IAAI,CAAC;KACnD,CAAC,CAAC,CAAC;AACR,CAAC,CAAC"}
1
+ {"version":3,"file":"getStorageGroupsColumns.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,SAAS,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAExE,OAAO,EAAC,eAAe,EAAC,MAAM,wDAAwD,CAAC;AACvF,OAAO,EAAC,YAAY,EAAC,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAC,UAAU,EAAC,MAAM,8CAA8C,CAAC;AACxE,OAAO,EAAC,oBAAoB,EAAC,MAAM,mDAAmD,CAAC;AACvF,OAAO,EAAC,gBAAgB,EAAC,MAAM,8CAA8C,CAAC;AAG9E,OAAO,EAAC,EAAE,EAAC,MAAM,sBAAsB,CAAC;AACxC,OAAO,EAAC,gBAAgB,EAAC,MAAM,iDAAiD,CAAC;AACjF,OAAO,EAAC,yBAAyB,EAAC,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAC,SAAS,EAAE,YAAY,EAAC,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAC,mBAAmB,EAAE,+BAA+B,EAAC,MAAM,aAAa,CAAC;AACjF,OAAO,IAAI,MAAM,SAAS,CAAC;AAI3B,OAAO,6BAA6B,CAAC;AAErC,MAAM,CAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,mCAAmC,GAAG,2BAA2B,CAAC;AAE/E,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,QAAQ,EAAE,UAAU;IACpB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MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,kBAAkB,CAAC,QAAQ,CAAC,CAAC;IAC7E,CAAC;IAED,IAAI,eAAe,KAAK,gBAAgB,CAAC,OAAO,EAAE,CAAC;QAC/C,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,kBAAkB,CAAC,SAAS,CAAC,CAAC;IAC9E,CAAC;IAED,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE;QAC1B,OAAO,CACH,GAAG,CAAC,IAAI,KAAK,kBAAkB,CAAC,QAAQ,IAAI,GAAG,CAAC,IAAI,KAAK,kBAAkB,CAAC,SAAS,CACxF,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAyB,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;IACnF,MAAM,UAAU,GAAG,uBAAuB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAE1D,MAAM,eAAe,GAAG,0BAA0B,CAAC,UAAU,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,CAAC,CAAC;IAEzF,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QACpC,GAAG,MAAM;QACT,QAAQ,EAAE,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC;KACnD,CAAC,CAAC,CAAC;AACR,CAAC,CAAC"}
@@ -1,3 +1,5 @@
1
1
  import type { FetchData } from '../../../components/PaginatedTable';
2
2
  import type { PreparedStorageGroup, PreparedStorageGroupFilters } from '../../../store/reducers/storage/types';
3
- export declare const getStorageGroups: FetchData<PreparedStorageGroup, PreparedStorageGroupFilters>;
3
+ type GetStorageGroups = FetchData<PreparedStorageGroup, PreparedStorageGroupFilters>;
4
+ export declare function useGroupsGetter(shouldUseGroupsHandler: boolean): GetStorageGroups;
5
+ export {};
@@ -1,28 +1,31 @@
1
- import { prepareStorageGroupsResponse } from '../../../store/reducers/storage/utils';
2
- import { EVersion } from '../../../types/api/storage';
1
+ import React from 'react';
2
+ import { requestStorageData } from '../../../store/reducers/storage/requestStorageData';
3
+ import { prepareSortValue } from '../../../utils/filters';
3
4
  const getConcurrentId = (limit, offset) => {
4
5
  return `getStorageGroups|offset${offset}|limit${limit}`;
5
6
  };
6
- export const getStorageGroups = async (params) => {
7
- const { limit, offset, sortParams, filters } = params;
8
- const { sortOrder, columnId } = sortParams !== null && sortParams !== void 0 ? sortParams : {};
9
- const { searchValue, visibleEntities, database, nodeId } = filters !== null && filters !== void 0 ? filters : {};
10
- const response = await window.api.getStorageInfo({
11
- version: EVersion.v2,
12
- limit,
13
- offset,
14
- sortOrder,
15
- sortValue: columnId,
16
- filter: searchValue,
17
- visibleEntities,
18
- database,
19
- nodeId,
20
- }, { concurrentId: getConcurrentId(limit, offset) });
21
- const preparedResponse = prepareStorageGroupsResponse(response);
22
- return {
23
- data: preparedResponse.groups || [],
24
- found: preparedResponse.found || 0,
25
- total: preparedResponse.total || 0,
26
- };
27
- };
7
+ export function useGroupsGetter(shouldUseGroupsHandler) {
8
+ const fetchData = React.useCallback(async (params) => {
9
+ const { limit, offset, sortParams, filters } = params;
10
+ const { sortOrder, columnId } = sortParams !== null && sortParams !== void 0 ? sortParams : {};
11
+ const { searchValue, visibleEntities, database, nodeId } = filters !== null && filters !== void 0 ? filters : {};
12
+ const sort = prepareSortValue(columnId, sortOrder);
13
+ const { groups, found, total } = await requestStorageData({
14
+ limit,
15
+ offset,
16
+ sort,
17
+ filter: searchValue,
18
+ with: visibleEntities,
19
+ database,
20
+ nodeId,
21
+ shouldUseGroupsHandler,
22
+ }, { concurrentId: getConcurrentId(limit, offset) });
23
+ return {
24
+ data: groups || [],
25
+ found: found || 0,
26
+ total: total || 0,
27
+ };
28
+ }, [shouldUseGroupsHandler]);
29
+ return fetchData;
30
+ }
28
31
  //# sourceMappingURL=getGroups.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getGroups.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageGroups/getGroups.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,4BAA4B,EAAC,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAC,QAAQ,EAAC,MAAM,4BAA4B,CAAC;AAGpD,MAAM,eAAe,GAAG,CAAC,KAAc,EAAE,MAAe,EAAE,EAAE;IACxD,OAAO,0BAA0B,MAAM,SAAS,KAAK,EAAE,CAAC;AAC5D,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAGzB,KAAK,EAAE,MAAM,EAAE,EAAE;IACjB,MAAM,EAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAC,GAAG,MAAM,CAAC;IACpD,MAAM,EAAC,SAAS,EAAE,QAAQ,EAAC,GAAG,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,EAAE,CAAC;IAC/C,MAAM,EAAC,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,EAAC,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC;IAEvE,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,cAAc,CAC5C;QACI,OAAO,EAAE,QAAQ,CAAC,EAAE;QACpB,KAAK;QACL,MAAM;QACN,SAAS;QACT,SAAS,EAAE,QAA4B;QACvC,MAAM,EAAE,WAAW;QACnB,eAAe;QACf,QAAQ;QACR,MAAM;KACT,EACD,EAAC,YAAY,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,EAAC,CACjD,CAAC;IACF,MAAM,gBAAgB,GAAG,4BAA4B,CAAC,QAAQ,CAAC,CAAC;IAEhE,OAAO;QACH,IAAI,EAAE,gBAAgB,CAAC,MAAM,IAAI,EAAE;QACnC,KAAK,EAAE,gBAAgB,CAAC,KAAK,IAAI,CAAC;QAClC,K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IAAI,EAAE,MAAM,IAAI,EAAE;YAClB,KAAK,EAAE,KAAK,IAAI,CAAC;YACjB,KAAK,EAAE,KAAK,IAAI,CAAC;SACpB,CAAC;IACN,CAAC,EACD,CAAC,sBAAsB,CAAC,CAC3B,CAAC;IAEF,OAAO,SAAS,CAAC;AACrB,CAAC"}
@@ -22,6 +22,6 @@ export const PaginatedStorageNodes = ({ searchValue, visibleEntities, nodesUptim
22
22
  }
23
23
  return i18n('empty.default');
24
24
  };
25
- return (_jsx(ResizeablePaginatedTable, { columnsWidthLSKey: STORAGE_NODES_COLUMNS_WIDTH_LS_KEY, parentContainer: parentContainer, columns: columns, fetchData: getStorageNodes, rowHeight: 50, limit: 50, renderControls: renderControls, renderErrorMessage: renderErrorMessage, renderEmptyDataMessage: renderEmptyDataMessage, getRowClassName: getRowUnavailableClassName, filters: tableFilters, tableName: "storage-nodes" }));
25
+ return (_jsx(ResizeablePaginatedTable, { columnsWidthLSKey: STORAGE_NODES_COLUMNS_WIDTH_LS_KEY, parentContainer: parentContainer, columns: columns, fetchData: getStorageNodes, rowHeight: 51, limit: 50, renderControls: renderControls, renderErrorMessage: renderErrorMessage, renderEmptyDataMessage: renderEmptyDataMessage, getRowClassName: getRowUnavailableClassName, filters: tableFilters, tableName: "storage-nodes" }));
26
26
  };
27
27
  //# sourceMappingURL=PaginatedStorageNodes.js.map
@@ -3,7 +3,6 @@ import { VISIBLE_ENTITIES } from '../../../store/reducers/storage/constants';
3
3
  import { EFlag } from '../../../types/api/enums';
4
4
  import { generateEvaluator } from '../../../utils/generateEvaluator';
5
5
  import { NODES_SORT_VALUES } from '../../../utils/nodes';
6
- import { STORAGE_SORT_VALUES } from '../../../utils/storage';
7
6
  const defaultDegradationEvaluator = generateEvaluator(1, 2, ['success', 'warning', 'danger']);
8
7
  const degradationEvaluators = {
9
8
  'block-4-2': generateEvaluator(1, 2, ['success', 'warning', 'danger']),
@@ -31,15 +30,15 @@ export const defaultSortNode = {
31
30
  sortOrder: ASCENDING,
32
31
  };
33
32
  const defaultSortGroup = {
34
- sortValue: STORAGE_SORT_VALUES.PoolName,
33
+ sortValue: 'PoolName',
35
34
  sortOrder: ASCENDING,
36
35
  };
37
36
  const defaultSortGroupMissing = {
38
- sortValue: STORAGE_SORT_VALUES.Degraded,
37
+ sortValue: 'Degraded',
39
38
  sortOrder: DESCENDING,
40
39
  };
41
40
  const defaultSortGroupSpace = {
42
- sortValue: STORAGE_SORT_VALUES.Usage,
41
+ sortValue: 'Usage',
43
42
  sortOrder: DESCENDING,
44
43
  };
45
44
  export function getDefaultSortGroup(visibleEntities) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/containers/Storage/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAC,MAAM,sDAAsD,CAAC;AAG3F,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAM3E,OAAO,EAAC,KAAK,EAAC,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EAAC,iBAAiB,EAAC,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAC,iBAAiB,EAAC,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAC,mBAAmB,EAAC,MAAM,wBAAwB,CAAC;AAE3D,MAAM,2BAA2B,GAAG,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC;AAE9F,MAAM,qBAAqB,GAAG;IAC1B,WAAW,EAAE,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IACtE,aAAa,EAAE,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;CAC3E,CAAC;AAEF,MAAM,yBAAyB,GAAG,CAAC,KAAc,EAA+C,EAAE,CAC9F,KAAK,KA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EF,MAAM,CAAC,MAAM,+BAA+B,GAAG,iBAAiB,CAAC,EAAE,EAAE,EAAE,EAAE;IACrE,SAAS;IACT,SAAS;IACT,QAAQ;CACX,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,iBAAiB,CAAC,EAAE,EAAE,EAAE,EAAE;IACrE,KAAK,CAAC,KAAK;IACX,KAAK,CAAC,MAAM;IACZ,KAAK,CAAC,GAAG;CACZ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,eAAe,GAAoB;IAC5C,SAAS,EAAE,iBAAiB,CAAC,MAAM;IACnC,SAAS,EAAE,SAAS;CACvB,CAAC;AAEF,MAAM,gBAAgB,GAAsB;IACxC,SAAS,EAAE,UAAU;IACrB,SAAS,EAAE,SAAS;CACvB,CAAC;AAEF,MAAM,uBAAuB,GAAsB;IAC/C,SAAS,EAAE,UAAU;IACrB,SAAS,EAAE,UAAU;CACxB,CAAC;AAEF,MAAM,qBAAqB,GAAsB;IAC7C,SAAS,EAAE,OAAO;IAClB,SAAS,EAAE,UAAU;CACxB,CAAC;AAEF,MAAM,UAAU,mBAAmB,CAAC,eAAgC;IAChE,IAAI,eAAe,KAAK,gBAAgB,CAAC,OAAO,EAAE,CAAC;QAC/C,OAAO,uBAAuB,CAAC;IACnC,CAAC;IACD,IAAI,eAAe,KAAK,gBAAgB,CAAC,KAAK,EAAE,CAAC;QAC7C,OAAO,qBAAqB,CAAC;IACjC,CAAC;IACD,OAAO,gBAAgB,CAAC;AAC5B,CAAC"}
@@ -1,2 +1,2 @@
1
- declare const _default: (key: "Tablet" | "Uptime" | "Type" | "State" | "Generation" | "Node ID" | "Node FQDN" | "noTabletsData" | "dialog.kill-header" | "dialog.kill-text" | "controls.kill-not-allowed", params?: import("@gravity-ui/i18n").Params) => string;
1
+ declare const _default: (key: "Tablet" | "State" | "Uptime" | "Type" | "Generation" | "Node ID" | "Node FQDN" | "noTabletsData" | "dialog.kill-header" | "dialog.kill-text" | "controls.kill-not-allowed", params?: import("@gravity-ui/i18n").Params) => string;
2
2
  export default _default;
@@ -0,0 +1,6 @@
1
+ import './Configs.scss';
2
+ interface ConfigsProps {
3
+ database: string;
4
+ }
5
+ export declare const Configs: ({ database }: ConfigsProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,79 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { PersonPencil } from '@gravity-ui/icons';
3
+ import { Icon, Popover, Switch } from '@gravity-ui/uikit';
4
+ import { StringParam, useQueryParam } from 'use-query-params';
5
+ import { ResponseError } from '../../../../components/Errors/ResponseError';
6
+ import { ResizeableDataTable } from '../../../../components/ResizeableDataTable/ResizeableDataTable';
7
+ import { Search } from '../../../../components/Search';
8
+ import { TableWithControlsLayout } from '../../../../components/TableWithControlsLayout/TableWithControlsLayout';
9
+ import { tenantApi } from '../../../../store/reducers/tenant/tenant';
10
+ import { cn } from '../../../../utils/cn';
11
+ import { DEFAULT_TABLE_SETTINGS } from '../../../../utils/constants';
12
+ import i18n from './i18n';
13
+ import './Configs.scss';
14
+ const FEATURE_FLAGS_COLUMNS_WIDTH_LS_KEY = 'featureFlagsColumnsWidth';
15
+ const b = cn('ydb-diagnostics-configs');
16
+ const columns = [
17
+ {
18
+ name: 'Touched',
19
+ header: '',
20
+ render: ({ row }) => row.Current ? (_jsx(Popover, { content: i18n('flag-touched'), className: b('icon-touched'), placement: "left", children: _jsx(Icon, { data: PersonPencil }) })) : null,
21
+ width: 36,
22
+ sortable: false,
23
+ resizeable: false,
24
+ },
25
+ {
26
+ name: 'Name',
27
+ get header() {
28
+ return i18n('td-feature-flag');
29
+ },
30
+ render: ({ row }) => (row.Current ? _jsx("b", { children: row.Name }) : row.Name),
31
+ width: 400,
32
+ sortable: true,
33
+ sortAccessor: ({ Current, Name }) => {
34
+ return Number(!Current) + Name.toLowerCase();
35
+ },
36
+ },
37
+ {
38
+ name: 'Default',
39
+ get header() {
40
+ return i18n('td-default');
41
+ },
42
+ render: ({ row }) => {
43
+ switch (row.Default) {
44
+ case true:
45
+ return i18n('enabled');
46
+ case false:
47
+ return i18n('disabled');
48
+ default:
49
+ return '-';
50
+ }
51
+ },
52
+ width: 100,
53
+ sortable: false,
54
+ resizeable: false,
55
+ },
56
+ {
57
+ name: 'Current',
58
+ get header() {
59
+ return i18n('td-current');
60
+ },
61
+ render: ({ row }) => { var _a; return _jsx(Switch, { disabled: true, checked: ((_a = row.Current) !== null && _a !== void 0 ? _a : row.Default) || false }); },
62
+ width: 100,
63
+ sortable: false,
64
+ resizeable: false,
65
+ },
66
+ ];
67
+ export const Configs = ({ database }) => {
68
+ const [search, setSearch] = useQueryParam('search', StringParam);
69
+ const { currentData = [], isFetching, error } = tenantApi.useGetClusterConfigQuery({ database });
70
+ const onChange = (value) => {
71
+ setSearch(value || undefined, 'replaceIn');
72
+ };
73
+ const featureFlagsFilter = search === null || search === void 0 ? void 0 : search.toLocaleLowerCase();
74
+ const featureFlags = featureFlagsFilter
75
+ ? currentData.filter((item) => item.Name.toLocaleLowerCase().includes(featureFlagsFilter))
76
+ : currentData;
77
+ return (_jsxs(TableWithControlsLayout, { children: [_jsx(TableWithControlsLayout.Controls, { children: _jsx(Search, { value: featureFlagsFilter, onChange: onChange, placeholder: i18n('search-placeholder') }) }), _jsx(TableWithControlsLayout.Table, { loading: isFetching, children: error ? (_jsx(ResponseError, { error: error })) : (_jsx(ResizeableDataTable, { emptyDataMessage: i18n(featureFlagsFilter ? 'search-empty' : 'no-data'), columnsWidthLSKey: FEATURE_FLAGS_COLUMNS_WIDTH_LS_KEY, columns: columns, data: featureFlags, settings: DEFAULT_TABLE_SETTINGS })) })] }));
78
+ };
79
+ //# sourceMappingURL=Configs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Configs.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/Configs/Configs.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CA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AO,EAChB,IAAI,EAAE,YAAY,EAClB,QAAQ,EAAE,sBAAsB,GAClC,CACL,GAC2B,IACV,CAC7B,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ .ydb-diagnostics-configs {
2
+ &__icon-touched {
3
+ line-height: 1;
4
+ cursor: default !important;
5
+
6
+ color: var(--g-color-text-secondary);
7
+ }
8
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "td-feature-flag": "Feature flag",
3
+ "td-default": "Default",
4
+ "td-current": "Current",
5
+ "enabled": "Enabled",
6
+ "disabled": "Disabled",
7
+ "flag-touched": "Flag is changed",
8
+ "search-placeholder": "Search by feature flag",
9
+ "search-empty": "Empty search result",
10
+ "no-data": "No data"
11
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: (key: "no-data" | "disabled" | "td-feature-flag" | "td-default" | "td-current" | "enabled" | "flag-touched" | "search-placeholder" | "search-empty", params?: import("@gravity-ui/i18n").Params) => string;
2
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { registerKeysets } from '../../../../../utils/i18n';
2
+ import en from './en.json';
3
+ const COMPONENT = 'ydb-diagnostics-configs';
4
+ export default registerKeysets(COMPONENT, { en });
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/Configs/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,yBAAyB,CAAC;AAE5C,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}
@@ -17,6 +17,7 @@ import { Tablets } from '../../Tablets';
17
17
  import { SchemaViewer } from '../Schema/SchemaViewer/SchemaViewer';
18
18
  import { TenantTabsGroups } from '../TenantPages';
19
19
  import { isDatabaseEntityType } from '../utils/schema';
20
+ import { Configs } from './Configs/Configs';
20
21
  import { Consumers } from './Consumers';
21
22
  import Describe from './Describe/Describe';
22
23
  import DetailedOverview from './DetailedOverview/DetailedOverview';
@@ -92,6 +93,9 @@ function Diagnostics(props) {
92
93
  case TENANT_DIAGNOSTICS_TABS_IDS.partitions: {
93
94
  return _jsx(Partitions, { path: path, database: tenantName });
94
95
  }
96
+ case TENANT_DIAGNOSTICS_TABS_IDS.configs: {
97
+ return _jsx(Configs, { database: tenantName });
98
+ }
95
99
  default: {
96
100
  return _jsx("div", { children: "No data..." });
97
101
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Diagnostics.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/Diagnostics/Diagnostics.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAC;AACtC,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,kBAAkB,EAAC,MAAM,2DAA2D,CAAC;AAC7F,OAAO,MAAM,EAAE,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAC,2BAA2B,EAAC,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAC,iBAAiB,EAAC,MAAM,uCAAuC,CAAC;AAGxE,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AACrC,OAAO,EAAC,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAC;AACtC,OAAO,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAC,cAAc,EAAC,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAC,OAA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: string;
41
44
  })[];
42
45
  export declare const TABLE_PAGES: ({
43
46
  id: "overview";
@@ -52,6 +52,10 @@ const partitions = {
52
52
  id: TENANT_DIAGNOSTICS_TABS_IDS.partitions,
53
53
  title: 'Partitions',
54
54
  };
55
+ const configs = {
56
+ id: TENANT_DIAGNOSTICS_TABS_IDS.configs,
57
+ title: 'Configs',
58
+ };
55
59
  export const ASYNC_REPLICATION_PAGES = [overview, tablets, describe];
56
60
  export const DATABASE_PAGES = [
57
61
  overview,
@@ -62,6 +66,7 @@ export const DATABASE_PAGES = [
62
66
  storage,
63
67
  network,
64
68
  describe,
69
+ configs,
65
70
  ];
66
71
  export const TABLE_PAGES = [overview, schema, topShards, nodes, graph, tablets, hotKeys, describe];
67
72
  export const COLUMN_TABLE_PAGES = [overview, schema, topShards, nodes, graph, tablets, describe];
@@ -1 +1 @@
1
- {"version":3,"file":"DiagnosticsPages.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/Diagnostics/DiagnosticsPages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,2BAA2B,EAAC,MAAM,0CAA0C,CAAC;AAErF,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAOpD,MAAM,QAAQ,GAAG;IACb,EAAE,EAAE,2BAA2B,CAAC,QAAQ;IACxC,KAAK,EAAE,MAAM;CAChB,CAAC;AAEF,MAAM,MAAM,GAAG;IACX,EAAE,EAAE,2BAA2B,CAAC,MAAM;IACtC,KAAK,EAAE,QAAQ;CAClB,CAAC;AAEF,MAAM,UAAU,GAAG;IACf,EAAE,EAAE,2BAA2B,CAAC,UAAU;IAC1C,KAAK,EAAE,aAAa;CACvB,CAAC;AAEF,MAAM,SAAS,GAAG;IACd,EAAE,EAAE,2BAA2B,CAAC,SAAS;IACzC,KAAK,EAAE,YAAY;CACtB,CAAC;AAEF,MAAM,KAAK,GAAG;IACV,EAAE,EAAE,2BAA2B,CAAC,KAAK;IACrC,KAAK,EAAE,OAAO;CACjB,CAAC;AAEF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,oBAAoB;IAExD,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,UAAU;IAErC,CAAC,SAAS,CAAC,oBAAoB,CAAC,EAAE,uBAAuB;CAC5D,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,IAAgB,EAAE,EAAE,CAAC,CAAC,IAAI,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC,IAAI,SAAS,CAAC"}
@@ -1,2 +1,2 @@
1
- declare const _default: (key: "disabled" | "tableStats" | "tabletMetrics" | "partitionConfig" | "label.ttl" | "value.ttl" | "label.standalone" | "label.partitioning" | "label.partitioning-by-size" | "value.partitioning-by-size.enabled" | "label.partitioning-by-load" | "label.partitions-min" | "label.partitions-max" | "label.read-replicas" | "label.bloom-filter" | "enabled", params?: import("@gravity-ui/i18n").Params) => string;
1
+ declare const _default: (key: "disabled" | "enabled" | "tableStats" | "tabletMetrics" | "partitionConfig" | "label.ttl" | "value.ttl" | "label.standalone" | "label.partitioning" | "label.partitioning-by-size" | "value.partitioning-by-size.enabled" | "label.partitioning-by-load" | "label.partitions-min" | "label.partitions-max" | "label.read-replicas" | "label.bloom-filter", params?: import("@gravity-ui/i18n").Params) => string;
2
2
  export default _default;
@@ -1,19 +1,36 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import React from 'react';
3
+ import { useCapabilitiesLoaded, useStorageGroupsHandlerAvailable, } from '../../../../../store/reducers/capabilities/hooks';
4
+ import { storageApi } from '../../../../../store/reducers/storage/storage';
2
5
  import { TENANT_DIAGNOSTICS_TABS_IDS } from '../../../../../store/reducers/tenant/constants';
3
- import { topStorageGroupsApi } from '../../../../../store/reducers/tenantOverview/topStorageGroups/topStorageGroups';
6
+ import { TENANT_OVERVIEW_TABLES_LIMIT } from '../../../../../utils/constants';
4
7
  import { useAutoRefreshInterval, useSearchQuery } from '../../../../../utils/hooks';
5
8
  import { STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY, getStorageTopGroupsColumns, } from '../../../../Storage/StorageGroups/columns/getStorageGroupsColumns';
6
9
  import { TenantTabsGroups, getTenantPath } from '../../../TenantPages';
7
10
  import { TenantOverviewTableLayout } from '../TenantOverviewTableLayout';
8
11
  import { getSectionTitle } from '../getSectionTitle';
9
12
  import i18n from '../i18n';
13
+ import { prepareTopStorageGroups } from './utils';
10
14
  export function TopGroups({ tenant }) {
11
15
  const query = useSearchQuery();
16
+ const capabilitiesLoaded = useCapabilitiesLoaded();
17
+ const groupsHandlerAvailable = useStorageGroupsHandlerAvailable();
12
18
  const [autoRefreshInterval] = useAutoRefreshInterval();
13
19
  const columns = getStorageTopGroupsColumns();
14
- const { currentData, isFetching, error } = topStorageGroupsApi.useGetTopStorageGroupsQuery({ tenant }, { pollingInterval: autoRefreshInterval });
20
+ const { currentData, isFetching, error } = storageApi.useGetStorageGroupsInfoQuery({
21
+ tenant,
22
+ sort: '-Usage',
23
+ with: 'all',
24
+ limit: TENANT_OVERVIEW_TABLES_LIMIT,
25
+ shouldUseGroupsHandler: groupsHandlerAvailable,
26
+ }, {
27
+ pollingInterval: autoRefreshInterval,
28
+ skip: !capabilitiesLoaded,
29
+ });
15
30
  const loading = isFetching && currentData === undefined;
16
- const topGroups = currentData;
31
+ const preparedGroups = React.useMemo(() => {
32
+ return prepareTopStorageGroups(currentData);
33
+ }, [currentData]);
17
34
  const title = getSectionTitle({
18
35
  entity: i18n('groups'),
19
36
  postfix: i18n('by-usage'),
@@ -22,6 +39,6 @@ export function TopGroups({ tenant }) {
22
39
  [TenantTabsGroups.diagnosticsTab]: TENANT_DIAGNOSTICS_TABS_IDS.storage,
23
40
  }),
24
41
  });
25
- return (_jsx(TenantOverviewTableLayout, { columnsWidthLSKey: STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY, data: topGroups || [], columns: columns, title: title, loading: loading, error: error }));
42
+ return (_jsx(TenantOverviewTableLayout, { columnsWidthLSKey: STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY, data: preparedGroups, columns: columns, title: title, loading: loading || !capabilitiesLoaded, error: error }));
26
43
  }
27
44
  //# sourceMappingURL=TopGroups.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TopGroups.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,2BAA2B,EAAC,MAAM,gDAAgD,CAAC;AAC3F,OAAO,EAAC,mBAAmB,EAAC,MAAM,gFAAgF,CAAC;AACnH,OAAO,EAAC,sBAAsB,EAAE,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAClF,OAAO,EACH,mCAAmC,EACnC,0BAA0B,GAC7B,MAAM,mEAAmE,CAAC;AAC3E,OAAO,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAC,yBAAyB,EAAC,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AACnD,OAAO,IAAI,MAAM,SAAS,CAAC;AAM3B,MAAM,UAAU,SAAS,CAAC,EAAC,MAAM,EAAiB;IAC9C,MAAM,KAAK,GAAG,cAAc,EAAE,CAAC;IAE/B,MAAM,CAAC,mBAAmB,CAAC,GAAG,sBAAsB,EAAE,CAAC;IAEvD,MAAM,OAAO,GAAG,0BAA0B,EAAE,CAAC;IAE7C,MAAM,EAAC,WAAW,EAAE,UAAU,EAAE,KAAK,EAAC,GAAG,mBAAmB,CAAC,2BAA2B,CACpF,EAAC,MAAM,EAAC,EACR,EAAC,eAAe,EAAE,mBAAmB,EAAC,CACzC,CAAC;IACF,MAAM,OAAO,GAAG,UAAU,IAAI,WAAW,KAAK,SAAS,CAAC;IACxD,MAAM,SAAS,GAAG,WAAW,CAAC;IAE9B,MAAM,KAAK,GAAG,eAAe,CAAC;QAC1B,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;QACtB,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC;QACzB,IAAI,EAAE,aAAa,CAAC;YAChB,GAAG,KAAK;YACR,CAAC,gBAAgB,CAAC,cAAc,CAAC,EAAE,2BAA2B,CAAC,OAAO;SACzE,CAAC;KACL,CAAC,CAAC;IAEH,OAAO,CACH,KAAC,yBAAyB,IACtB,iBAAiB,EAAE,mCAAmC,EACtD,IAAI,EAAE,SAAS,IAAI,EAAE,EACrB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,GACd,CACL,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"TopGroups.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACH,qBAAqB,EACrB,gCAAgC,GACnC,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAC,UAAU,EAAC,MAAM,+CAA+C,CAAC;AACzE,OAAO,EAAC,2BAA2B,EAAC,MAAM,gDAAgD,CAAC;AAC3F,OAAO,EAAC,4BAA4B,EAAC,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAC,sBAAsB,EAAE,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAClF,OAAO,EACH,mCAAmC,EACnC,0BAA0B,GAC7B,MAAM,mEAAmE,CAAC;AAC3E,OAAO,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAC,yBAAyB,EAAC,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AACnD,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,EAAC,uBAAuB,EAAC,MAAM,SAAS,CAAC;AAMhD,MAAM,UAAU,SAAS,CAAC,EAAC,MAAM,EAAiB;IAC9C,MAAM,KAAK,GAAG,cAAc,EAAE,CAAC;IAE/B,MAAM,kBAAkB,GAAG,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
+ export declare const prepareTopStorageGroups: (data?: PreparedStorageResponse) => import("../../../../../store/reducers/storage/types").PreparedStorageGroup[];
@@ -0,0 +1,7 @@
1
+ import { TENANT_OVERVIEW_TABLES_LIMIT } from '../../../../../utils/constants';
2
+ export const prepareTopStorageGroups = (data) => {
3
+ const { groups = [] } = data || {};
4
+ const sortedGroups = [...groups].sort((a, b) => b.Usage - a.Usage);
5
+ return sortedGroups.slice(0, TENANT_OVERVIEW_TABLES_LIMIT);
6
+ };
7
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,4BAA4B,EAAC,MAAM,gCAAgC,CAAC;AAE5E,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,IAA8B,EAAE,EAAE;IACtE,MAAM,EAAC,MAAM,GAAG,EAAE,EAAC,GAAG,IAAI,IAAI,EAAE,CAAC;IAEjC,MAAM,YAAY,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;IAEnE,OAAO,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,4BAA4B,CAAC,CAAC;AAC/D,CAAC,CAAC"}
@@ -1,7 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import React from 'react';
3
2
  import { useThemeValue } from '@gravity-ui/uikit';
4
- import NotRenderUntilFirstVisible from '../../../components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible';
5
3
  import { TENANT_PAGES_IDS } from '../../../store/reducers/tenant/constants';
6
4
  import { cn } from '../../../utils/cn';
7
5
  import { useTypedSelector } from '../../../utils/hooks';
@@ -15,7 +13,14 @@ function ObjectGeneral(props) {
15
13
  const { tenantPage } = useTypedSelector((state) => state.tenant);
16
14
  const renderPageContent = () => {
17
15
  const { type, additionalTenantProps, additionalNodesProps, tenantName, path } = props;
18
- return (_jsxs(React.Fragment, { children: [_jsx(NotRenderUntilFirstVisible, { show: tenantPage === TENANT_PAGES_IDS.query, children: _jsx(Query, { tenantName: tenantName, path: path, theme: theme, type: type }) }), _jsx(NotRenderUntilFirstVisible, { show: tenantPage === TENANT_PAGES_IDS.diagnostics, children: _jsx(Diagnostics, { type: type, tenantName: tenantName, path: path, additionalTenantProps: additionalTenantProps, additionalNodesProps: additionalNodesProps }) })] }));
16
+ switch (tenantPage) {
17
+ case TENANT_PAGES_IDS.query: {
18
+ return _jsx(Query, { tenantName: tenantName, path: path, theme: theme, type: type });
19
+ }
20
+ default: {
21
+ return (_jsx(Diagnostics, { type: type, tenantName: tenantName, path: path, additionalTenantProps: additionalTenantProps, additionalNodesProps: additionalNodesProps }));
22
+ }
23
+ }
19
24
  };
20
25
  return (_jsxs("div", { className: b(), children: [_jsx(TenantNavigation, {}), renderPageContent()] }));
21
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ObjectGeneral.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/ObjectGeneral/ObjectGeneral.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,0BAA0B,MAAM,2EAA2E,CAAC;AACnH,OAAO,EAAC,gBAAgB,EAAC,MAAM,0CAA0C,CAAC;AAG1E,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AACrC,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AACtD,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAC,KAAK,EAAC,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAC,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;AAEtE,OAAO,sBAAsB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,iBAAiB,EAAE,IAClB,CACT,CAAC;AACN,CAAC;AAED,eAAe,aAAa,CAAC"}
@@ -0,0 +1,7 @@
1
+ import './CancelQueryButton.scss';
2
+ interface CancelQueryButtonProps {
3
+ queryId: string;
4
+ tenantName: string;
5
+ }
6
+ export declare function CancelQueryButton({ queryId, tenantName }: CancelQueryButtonProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};