ydb-embedded-ui 6.20.0 → 6.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (313) hide show
  1. package/dist/components/AutoRefreshControl/i18n/index.d.ts +1 -1
  2. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.d.ts +2 -1
  3. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js +2 -2
  4. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js.map +1 -1
  5. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +4 -0
  6. package/dist/components/GroupInfo/i18n/index.d.ts +1 -1
  7. package/dist/components/PDiskInfo/PDiskInfo.js +3 -4
  8. package/dist/components/PDiskInfo/PDiskInfo.js.map +1 -1
  9. package/dist/components/PDiskInfo/PDiskInfo.scss +0 -14
  10. package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
  11. package/dist/components/QueryResultTable/Cell/Cell.js +1 -4
  12. package/dist/components/QueryResultTable/Cell/Cell.js.map +1 -1
  13. package/dist/components/StorageGroupInfo/StorageGroupInfo.d.ts +8 -0
  14. package/dist/components/StorageGroupInfo/StorageGroupInfo.js +123 -0
  15. package/dist/components/StorageGroupInfo/StorageGroupInfo.js.map +1 -0
  16. package/dist/components/StorageGroupInfo/i18n/en.json +22 -0
  17. package/dist/components/StorageGroupInfo/i18n/index.d.ts +1 -0
  18. package/dist/components/StorageGroupInfo/i18n/index.js +5 -0
  19. package/dist/components/StorageGroupInfo/i18n/index.js.map +1 -0
  20. package/dist/components/VDisk/VDisk.d.ts +2 -1
  21. package/dist/components/VDisk/VDisk.js +2 -2
  22. package/dist/components/VDisk/VDisk.js.map +1 -1
  23. package/dist/components/VDiskInfo/VDiskInfo.js +1 -3
  24. package/dist/components/VDiskInfo/VDiskInfo.js.map +1 -1
  25. package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
  26. package/dist/containers/App/App.scss +1 -1
  27. package/dist/containers/App/Content.js +7 -1
  28. package/dist/containers/App/Content.js.map +1 -1
  29. package/dist/containers/App/appSlots.d.ts +6 -0
  30. package/dist/containers/App/appSlots.js +1 -0
  31. package/dist/containers/App/appSlots.js.map +1 -1
  32. package/dist/containers/Cluster/Cluster.js +1 -1
  33. package/dist/containers/Cluster/Cluster.js.map +1 -1
  34. package/dist/containers/Cluster/i18n/index.d.ts +1 -1
  35. package/dist/containers/Clusters/Clusters.js +3 -3
  36. package/dist/containers/Clusters/Clusters.js.map +1 -1
  37. package/dist/containers/Clusters/columns.js +2 -2
  38. package/dist/containers/Clusters/columns.js.map +1 -1
  39. package/dist/containers/Clusters/constants.d.ts +4 -4
  40. package/dist/containers/Clusters/constants.js +3 -3
  41. package/dist/containers/Clusters/constants.js.map +1 -1
  42. package/dist/containers/Header/breadcrumbs.js +14 -0
  43. package/dist/containers/Header/breadcrumbs.js.map +1 -1
  44. package/dist/containers/Header/i18n/en.json +2 -1
  45. package/dist/containers/Header/i18n/index.d.ts +1 -1
  46. package/dist/containers/Node/Node.js +14 -4
  47. package/dist/containers/Node/Node.js.map +1 -1
  48. package/dist/containers/Node/NodePages.js +4 -5
  49. package/dist/containers/Node/NodePages.js.map +1 -1
  50. package/dist/containers/Nodes/Nodes.js +10 -11
  51. package/dist/containers/Nodes/Nodes.js.map +1 -1
  52. package/dist/containers/Nodes/PaginatedNodes.js +10 -11
  53. package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
  54. package/dist/containers/Nodes/{getNodesColumns.d.ts → columns/columns.d.ts} +3 -10
  55. package/dist/containers/Nodes/{getNodesColumns.js → columns/columns.js} +29 -39
  56. package/dist/containers/Nodes/columns/columns.js.map +1 -0
  57. package/dist/containers/Nodes/columns/constants.d.ts +39 -0
  58. package/dist/containers/Nodes/columns/constants.js +79 -0
  59. package/dist/containers/Nodes/columns/constants.js.map +1 -0
  60. package/dist/containers/Nodes/columns/hooks.d.ts +6 -0
  61. package/dist/containers/Nodes/columns/hooks.js +11 -0
  62. package/dist/containers/Nodes/columns/hooks.js.map +1 -0
  63. package/dist/containers/Nodes/columns/i18n/en.json +16 -0
  64. package/dist/containers/Nodes/columns/i18n/index.d.ts +2 -0
  65. package/dist/containers/Nodes/columns/i18n/index.js +5 -0
  66. package/dist/containers/Nodes/columns/i18n/index.js.map +1 -0
  67. package/dist/containers/Nodes/columns/types.d.ts +9 -0
  68. package/dist/containers/Nodes/columns/types.js +2 -0
  69. package/dist/containers/Nodes/columns/types.js.map +1 -0
  70. package/dist/containers/Nodes/getNodes.d.ts +3 -2
  71. package/dist/containers/Nodes/getNodes.js +6 -3
  72. package/dist/containers/Nodes/getNodes.js.map +1 -1
  73. package/dist/containers/PDiskPage/PDiskPage.js +11 -9
  74. package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
  75. package/dist/containers/PDiskPage/PDiskPage.scss +15 -4
  76. package/dist/containers/PDiskPage/i18n/en.json +1 -1
  77. package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
  78. package/dist/containers/ReduxTooltip/ReduxTooltip.js +7 -7
  79. package/dist/containers/ReduxTooltip/ReduxTooltip.js.map +1 -1
  80. package/dist/containers/Storage/PDisk/PDisk.d.ts +4 -4
  81. package/dist/containers/Storage/PDisk/PDisk.js +2 -2
  82. package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
  83. package/dist/containers/Storage/PaginatedStorage.d.ts +2 -3
  84. package/dist/containers/Storage/PaginatedStorage.js +27 -6
  85. package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
  86. package/dist/containers/Storage/Storage.d.ts +4 -4
  87. package/dist/containers/Storage/Storage.js +45 -11
  88. package/dist/containers/Storage/Storage.js.map +1 -1
  89. package/dist/containers/Storage/StorageControls/StorageControls.d.ts +4 -1
  90. package/dist/containers/Storage/StorageControls/StorageControls.js +4 -2
  91. package/dist/containers/Storage/StorageControls/StorageControls.js.map +1 -1
  92. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +3 -1
  93. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js +2 -4
  94. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +1 -1
  95. package/dist/containers/Storage/StorageGroups/StorageGroups.d.ts +3 -1
  96. package/dist/containers/Storage/StorageGroups/StorageGroups.js +2 -4
  97. package/dist/containers/Storage/StorageGroups/StorageGroups.js.map +1 -1
  98. package/dist/containers/Storage/StorageGroups/columns/columns.d.ts +4 -0
  99. package/dist/containers/Storage/StorageGroups/columns/{getStorageGroupsColumns.js → columns.js} +36 -82
  100. package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -0
  101. package/dist/containers/Storage/StorageGroups/columns/constants.d.ts +37 -0
  102. package/dist/containers/Storage/StorageGroups/columns/constants.js +75 -0
  103. package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -0
  104. package/dist/containers/Storage/StorageGroups/columns/hooks.d.ts +6 -2
  105. package/dist/containers/Storage/StorageGroups/columns/hooks.js +22 -14
  106. package/dist/containers/Storage/StorageGroups/columns/hooks.js.map +1 -1
  107. package/dist/containers/Storage/StorageGroups/columns/i18n/en.json +15 -0
  108. package/dist/containers/Storage/StorageGroups/columns/i18n/index.d.ts +2 -0
  109. package/dist/containers/Storage/StorageGroups/columns/i18n/index.js +5 -0
  110. package/dist/containers/Storage/StorageGroups/columns/i18n/index.js.map +1 -0
  111. package/dist/containers/Storage/StorageGroups/columns/types.d.ts +2 -6
  112. package/dist/containers/Storage/StorageGroups/getGroups.js +4 -1
  113. package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
  114. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.d.ts +3 -3
  115. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js +2 -5
  116. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js.map +1 -1
  117. package/dist/containers/Storage/StorageNodes/StorageNodes.d.ts +4 -6
  118. package/dist/containers/Storage/StorageNodes/StorageNodes.js +2 -4
  119. package/dist/containers/Storage/StorageNodes/StorageNodes.js.map +1 -1
  120. package/dist/containers/Storage/StorageNodes/StorageNodes.scss +1 -27
  121. package/dist/containers/Storage/StorageNodes/columns/StorageNodesColumns.scss +23 -0
  122. package/dist/containers/Storage/StorageNodes/columns/columns.d.ts +39 -0
  123. package/dist/containers/Storage/StorageNodes/{getStorageNodesColumns.js → columns/columns.js} +21 -31
  124. package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -0
  125. package/dist/containers/Storage/StorageNodes/columns/constants.d.ts +25 -0
  126. package/dist/containers/Storage/StorageNodes/columns/constants.js +47 -0
  127. package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -0
  128. package/dist/containers/Storage/StorageNodes/columns/hooks.d.ts +43 -0
  129. package/dist/containers/Storage/StorageNodes/columns/hooks.js +18 -0
  130. package/dist/containers/Storage/StorageNodes/columns/hooks.js.map +1 -0
  131. package/dist/containers/Storage/StorageNodes/columns/i18n/en.json +9 -0
  132. package/dist/containers/Storage/StorageNodes/columns/i18n/index.d.ts +2 -0
  133. package/dist/containers/Storage/StorageNodes/columns/i18n/index.js +5 -0
  134. package/dist/containers/Storage/StorageNodes/columns/i18n/index.js.map +1 -0
  135. package/dist/containers/Storage/StorageNodes/columns/types.d.ts +11 -0
  136. package/dist/containers/Storage/StorageNodes/columns/types.js +2 -0
  137. package/dist/containers/Storage/StorageNodes/columns/types.js.map +1 -0
  138. package/dist/containers/Storage/StorageNodes/getNodes.d.ts +2 -2
  139. package/dist/containers/Storage/StorageNodes/getNodes.js +7 -4
  140. package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
  141. package/dist/containers/Storage/StorageNodes/shared.js +1 -1
  142. package/dist/containers/Storage/StorageNodes/shared.js.map +1 -1
  143. package/dist/containers/Storage/StorageWrapper.d.ts +0 -2
  144. package/dist/containers/Storage/StorageWrapper.js.map +1 -1
  145. package/dist/containers/Storage/utils/index.js +6 -5
  146. package/dist/containers/Storage/utils/index.js.map +1 -1
  147. package/dist/containers/StorageGroupPage/StorageGroupPage.d.ts +2 -0
  148. package/dist/containers/StorageGroupPage/StorageGroupPage.js +74 -0
  149. package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -0
  150. package/dist/containers/StorageGroupPage/StorageGroupPage.scss +37 -0
  151. package/dist/containers/StorageGroupPage/i18n/en.json +5 -0
  152. package/dist/containers/StorageGroupPage/i18n/index.d.ts +1 -0
  153. package/dist/containers/StorageGroupPage/i18n/index.js +5 -0
  154. package/dist/containers/StorageGroupPage/i18n/index.js.map +1 -0
  155. package/dist/containers/Tablets/i18n/index.d.ts +1 -1
  156. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +4 -2
  157. package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
  158. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +36 -0
  159. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +7 -2
  160. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
  161. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +12 -5
  162. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js.map +1 -1
  163. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js +12 -5
  164. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js.map +1 -1
  165. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +13 -5
  166. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js.map +1 -1
  167. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +2 -1
  168. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
  169. package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
  170. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +46 -55
  171. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js.map +1 -1
  172. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.scss +6 -7
  173. package/dist/containers/Tenant/ObjectSummary/ObjectTree.d.ts +6 -0
  174. package/dist/containers/Tenant/ObjectSummary/ObjectTree.js +25 -0
  175. package/dist/containers/Tenant/ObjectSummary/ObjectTree.js.map +1 -0
  176. package/dist/containers/Tenant/ObjectSummary/SchemaActions.d.ts +1 -0
  177. package/dist/containers/Tenant/ObjectSummary/SchemaActions.js +18 -0
  178. package/dist/containers/Tenant/ObjectSummary/SchemaActions.js.map +1 -0
  179. package/dist/containers/Tenant/ObjectSummary/i18n/en.json +21 -0
  180. package/dist/containers/Tenant/ObjectSummary/i18n/index.d.ts +2 -0
  181. package/dist/containers/Tenant/ObjectSummary/i18n/index.js +5 -0
  182. package/dist/containers/Tenant/ObjectSummary/i18n/index.js.map +1 -0
  183. package/dist/containers/Tenant/ObjectSummary/shared.d.ts +1 -0
  184. package/dist/containers/Tenant/ObjectSummary/shared.js +3 -0
  185. package/dist/containers/Tenant/ObjectSummary/shared.js.map +1 -0
  186. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +12 -12
  187. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
  188. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +8 -0
  189. package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +2 -1
  190. package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
  191. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.js +3 -1
  192. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.js.map +1 -1
  193. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js +5 -10
  194. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js.map +1 -1
  195. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.js +5 -3
  196. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.js.map +1 -1
  197. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js +6 -10
  198. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js.map +1 -1
  199. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +11 -2
  200. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js.map +1 -1
  201. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.scss +1 -0
  202. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.d.ts +1 -0
  203. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js +1 -1
  204. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js.map +1 -1
  205. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +3 -0
  206. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +3 -0
  207. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js.map +1 -1
  208. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/en.json +3 -0
  209. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/index.d.ts +1 -1
  210. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/ru.json +3 -0
  211. package/dist/containers/Tenant/utils/schema.js +1 -0
  212. package/dist/containers/Tenant/utils/schema.js.map +1 -1
  213. package/dist/containers/UserSettings/i18n/en.json +0 -2
  214. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  215. package/dist/containers/UserSettings/settings.d.ts +0 -1
  216. package/dist/containers/UserSettings/settings.js +2 -7
  217. package/dist/containers/UserSettings/settings.js.map +1 -1
  218. package/dist/containers/VDiskPage/VDiskPage.d.ts +0 -3
  219. package/dist/containers/VDiskPage/VDiskPage.js +9 -33
  220. package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
  221. package/dist/containers/VDiskPage/VDiskPage.scss +10 -19
  222. package/dist/containers/VDiskPage/i18n/en.json +1 -1
  223. package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
  224. package/dist/routes.d.ts +3 -0
  225. package/dist/routes.js +5 -0
  226. package/dist/routes.js.map +1 -1
  227. package/dist/services/api.d.ts +16 -5
  228. package/dist/services/api.js +51 -12
  229. package/dist/services/api.js.map +1 -1
  230. package/dist/services/settings.d.ts +2 -2
  231. package/dist/services/settings.js +2 -3
  232. package/dist/services/settings.js.map +1 -1
  233. package/dist/store/configureStore.d.ts +2 -2
  234. package/dist/store/defaultStore.d.ts +1 -1
  235. package/dist/store/reducers/capabilities/capabilities.d.ts +8 -1
  236. package/dist/store/reducers/capabilities/capabilities.js +6 -1
  237. package/dist/store/reducers/capabilities/capabilities.js.map +1 -1
  238. package/dist/store/reducers/capabilities/hooks.d.ts +1 -0
  239. package/dist/store/reducers/capabilities/hooks.js +3 -0
  240. package/dist/store/reducers/capabilities/hooks.js.map +1 -1
  241. package/dist/store/reducers/executeQuery.js +3 -0
  242. package/dist/store/reducers/executeQuery.js.map +1 -1
  243. package/dist/store/reducers/header/types.d.ts +5 -2
  244. package/dist/store/reducers/index.d.ts +2 -2
  245. package/dist/store/reducers/nodes/nodes.d.ts +2 -2
  246. package/dist/store/reducers/nodes/nodes.js.map +1 -1
  247. package/dist/store/reducers/nodes/types.d.ts +2 -23
  248. package/dist/store/reducers/pdisk/pdisk.js +29 -2
  249. package/dist/store/reducers/pdisk/pdisk.js.map +1 -1
  250. package/dist/store/reducers/pdisk/utils.js +1 -1
  251. package/dist/store/reducers/pdisk/utils.js.map +1 -1
  252. package/dist/store/reducers/storage/storage.d.ts +2 -2
  253. package/dist/store/reducers/storage/storage.js.map +1 -1
  254. package/dist/store/reducers/storage/types.d.ts +19 -0
  255. package/dist/store/reducers/storage/utils.js +7 -2
  256. package/dist/store/reducers/storage/utils.js.map +1 -1
  257. package/dist/store/reducers/tooltip.d.ts +1 -1
  258. package/dist/styles/mixins.scss +3 -3
  259. package/dist/types/api/capabilities.d.ts +1 -1
  260. package/dist/types/api/common.d.ts +1 -0
  261. package/dist/types/api/meta.d.ts +3 -0
  262. package/dist/types/api/nodes.d.ts +33 -0
  263. package/dist/types/api/nodes.js.map +1 -1
  264. package/dist/types/api/query.d.ts +1 -0
  265. package/dist/types/api/storage.d.ts +8 -5
  266. package/dist/types/store/query.d.ts +5 -8
  267. package/dist/utils/constants.d.ts +0 -8
  268. package/dist/utils/constants.js +0 -9
  269. package/dist/utils/constants.js.map +1 -1
  270. package/dist/utils/filters.d.ts +2 -1
  271. package/dist/utils/filters.js +1 -4
  272. package/dist/utils/filters.js.map +1 -1
  273. package/dist/utils/hooks/useChangedQuerySettings.d.ts +2 -2
  274. package/dist/utils/hooks/useChangedQuerySettings.js +2 -1
  275. package/dist/utils/hooks/useChangedQuerySettings.js.map +1 -1
  276. package/dist/utils/hooks/useLastQueryExecutionSettings.d.ts +15 -2
  277. package/dist/utils/hooks/useLastQueryExecutionSettings.js +8 -9
  278. package/dist/utils/hooks/useLastQueryExecutionSettings.js.map +1 -1
  279. package/dist/utils/hooks/useQueryExecutionSettings.d.ts +15 -2
  280. package/dist/utils/hooks/useQueryExecutionSettings.js +5 -7
  281. package/dist/utils/hooks/useQueryExecutionSettings.js.map +1 -1
  282. package/dist/utils/hooks/useSelectedColumns.d.ts +8 -0
  283. package/dist/utils/hooks/useSelectedColumns.js +35 -0
  284. package/dist/utils/hooks/useSelectedColumns.js.map +1 -0
  285. package/dist/utils/nodes.d.ts +3 -22
  286. package/dist/utils/nodes.js +16 -19
  287. package/dist/utils/nodes.js.map +1 -1
  288. package/dist/utils/query.d.ts +129 -0
  289. package/dist/utils/query.js +33 -1
  290. package/dist/utils/query.js.map +1 -1
  291. package/dist/utils/storage.d.ts +1 -1
  292. package/dist/utils/storage.js.map +1 -1
  293. package/package.json +2 -1
  294. package/dist/containers/Clusters/useSelectedColumns.d.ts +0 -7
  295. package/dist/containers/Clusters/useSelectedColumns.js +0 -26
  296. package/dist/containers/Clusters/useSelectedColumns.js.map +0 -1
  297. package/dist/containers/Nodes/getNodesColumns.js.map +0 -1
  298. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.d.ts +0 -6
  299. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +0 -30
  300. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js.map +0 -1
  301. package/dist/containers/PDiskPage/PDiskGroups/utils.d.ts +0 -2
  302. package/dist/containers/PDiskPage/PDiskGroups/utils.js +0 -14
  303. package/dist/containers/PDiskPage/PDiskGroups/utils.js.map +0 -1
  304. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.d.ts +0 -21
  305. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js.map +0 -1
  306. package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.d.ts +0 -50
  307. package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js.map +0 -1
  308. package/dist/containers/VDiskPage/utils.d.ts +0 -2
  309. package/dist/containers/VDiskPage/utils.js +0 -7
  310. package/dist/containers/VDiskPage/utils.js.map +0 -1
  311. package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +0 -4
  312. package/dist/store/reducers/tenantOverview/topNodes/topNodes.js +0 -27
  313. package/dist/store/reducers/tenantOverview/topNodes/topNodes.js.map +0 -1
@@ -1,6 +1,7 @@
1
1
  import getChangedQueryExecutionSettings from '../../containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings';
2
2
  import getChangedQueryExecutionSettingsDescription from '../../containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription';
3
- import { DEFAULT_QUERY_SETTINGS, QUERY_SETTINGS_BANNER_LAST_CLOSED_KEY, WEEK_IN_SECONDS, } from '../constants';
3
+ import { QUERY_SETTINGS_BANNER_LAST_CLOSED_KEY, WEEK_IN_SECONDS } from '../constants';
4
+ import { DEFAULT_QUERY_SETTINGS } from '../query';
4
5
  import { useLastQueryExecutionSettings } from './useLastQueryExecutionSettings';
5
6
  import { useQueryExecutionSettings } from './useQueryExecutionSettings';
6
7
  import { useSetting } from './useSetting';
@@ -1 +1 @@
1
- {"version":3,"file":"useChangedQuerySettings.js","sourceRoot":"","sources":["../../../src/utils/hooks/useChangedQuerySettings.ts"],"names":[],"mappings":"AAAA,OAAO,gCAAgC,MAAM,0FAA0F,CAAC;AACxI,OAAO,2CAA2C,MAAM,qGAAqG,CAAC;AAC9J,OAAO,EACH,sBAAsB,EACtB,qCAAqC,EACrC,eAAe,GAClB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAC,6BAA6B,EAAC,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAC,yBAAyB,EAAC,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,EAAE;IACxC,MAAM,CAAC,yBAAyB,EAAE,4BAA4B,CAAC,GAAG,UAAU,CAE1E,qCAAqC,CAAC,CAAC;IACzC,MAAM,CAAC,iBAAiB,CAAC,GAAG,6BAA6B,EAAE,CAAC;IAC5D,MAAM,CAAC,oBAAoB,CAAC,GAAG,yBAAyB,EAAE,CAAC;IAE3D,MAAM,4BAA4B,GAAG,iBAAiB;QAClD,CAAC,CAAC,gCAAgC,CAAC,iBAAiB,EAAE,sBAAsB,CAAC;QAC7E,CAAC,CAAC,EAAE,CAAC;IAET,MAAM,sBAAsB,GAAG,oBAAoB;QAC/C,CAAC,CAAC,gCAAgC,CAAC,oBAAoB,EAAE,sBAAsB,CAAC;QAChF,CAAC,CAAC,EAAE,CAAC;IAET,MAAM,+BAA+B,GAAG,4BAA4B,CAAC,MAAM,GAAG,CAAC,CAAC;IAEhF,MAAM,wCAAwC,GAAG,iBAAiB;QAC9D,CAAC,CAAC,2CAA2C,CAAC;YACxC,eAAe,EAAE,iBAAiB;YAClC,eAAe,EAAE,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AE,CAAC,4BAA4B,CAAC,SAAS,CAAC,CAAC;IAElE,OAAO;QACH,aAAa;QACb,gBAAgB;QAChB,WAAW;QACX,WAAW;QAEX,sBAAsB;QACtB,kCAAkC;QAElC,4BAA4B;QAC5B,wCAAwC;KAC3C,CAAC;AACN,CAAC,CAAC"}
@@ -1,2 +1,15 @@
1
- import type { QuerySettings } from '../../types/store/query';
2
- export declare const useLastQueryExecutionSettings: () => readonly [QuerySettings | undefined, (value: QuerySettings | undefined) => void];
1
+ export declare const useLastQueryExecutionSettings: () => readonly [{
2
+ queryMode: "scan" | "script" | "data" | "query" | "pg";
3
+ transactionMode: "serializable-read-write" | "stale-read-only" | "online-read-only" | "snapshot-read-only" | "implicit";
4
+ statisticsMode: "none" | "basic" | "full" | "profile";
5
+ tracingLevel: "basic" | "off" | "toplevel" | "detailed" | "diagnostic" | "trace";
6
+ timeout?: number | undefined;
7
+ limitRows?: number | undefined;
8
+ } | undefined, (value: {
9
+ queryMode: "scan" | "script" | "data" | "query" | "pg";
10
+ transactionMode: "serializable-read-write" | "stale-read-only" | "online-read-only" | "snapshot-read-only" | "implicit";
11
+ statisticsMode: "none" | "basic" | "full" | "profile";
12
+ tracingLevel: "basic" | "off" | "toplevel" | "detailed" | "diagnostic" | "trace";
13
+ timeout?: number | undefined;
14
+ limitRows?: number | undefined;
15
+ } | undefined) => void];
@@ -1,16 +1,15 @@
1
1
  import { LAST_QUERY_EXECUTION_SETTINGS_KEY } from '../constants';
2
+ import { querySettingsValidationSchema } from '../query';
2
3
  import { useSetting } from './useSetting';
3
4
  export const useLastQueryExecutionSettings = () => {
4
5
  const [lastStorageSettings, setLastSettings] = useSetting(LAST_QUERY_EXECUTION_SETTINGS_KEY);
5
- const lastSettings = lastStorageSettings
6
- ? {
7
- transactionMode: lastStorageSettings.transactionMode,
8
- queryMode: lastStorageSettings.queryMode,
9
- statisticsMode: lastStorageSettings.statisticsMode,
10
- tracingLevel: lastStorageSettings.tracingLevel,
11
- timeout: lastStorageSettings.timeout,
12
- }
13
- : undefined;
6
+ let lastSettings;
7
+ try {
8
+ lastSettings = querySettingsValidationSchema.parse(lastStorageSettings);
9
+ }
10
+ catch (error) {
11
+ lastSettings = undefined;
12
+ }
14
13
  return [lastSettings, setLastSettings];
15
14
  };
16
15
  //# sourceMappingURL=useLastQueryExecutionSettings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLastQueryExecutionSettings.js","sourceRoot":"","sources":["../../../src/utils/hooks/useLastQueryExecutionSettings.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,iCAAiC,EAAC,MAAM,cAAc,CAAC;AAE/D,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAAG,EAAE;IAC9C,MAAM,CAAC,mBAAmB,EAAE,eAAe,CAAC,GAAG,UAAU,CACrD,iCAAiC,CACpC,CAAC;IAEF,MAAM,YAAY,GAA8B,mBAAmB;QAC/D,CAAC,CAAC;YACI,eAAe,EAAE,mBAAmB,CAAC,eAAe;YACpD,SAAS,EAAE,mBAAmB,CAAC,SAAS;YACxC,cAAc,EAAE,mBAAmB,CAAC,cAAc;YAClD,YAAY,EAAE,mBAAmB,CAAC,YAAY;YAC9C,OAAO,EAAE,mBAAmB,CAAC,OAAO;SACvC;QACH,CAAC,CAAC,SAAS,CAAC;IAEhB,OAAO,CAAC,YAAY,EAAE,eAAe,CAAU,CAAC;AACpD,CAAC,CAAC"}
1
+ {"version":3,"file":"useLastQueryExecutionSettings.js","sourceRoot":"","sources":["../../../src/utils/hooks/useLastQueryExecutionSettings.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,iCAAiC,EAAC,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAC,6BAA6B,EAAC,MAAM,UAAU,CAAC;AAEvD,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAAG,EAAE;IAC9C,MAAM,CAAC,mBAAmB,EAAE,eAAe,CAAC,GAAG,UAAU,CACrD,iCAAiC,CACpC,CAAC;IACF,IAAI,YAAuC,CAAC;IAE5C,IAAI,CAAC;QACD,YAAY,GAAG,6BAA6B,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;IAC5E,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,YAAY,GAAG,SAAS,CAAC;IAC7B,CAAC;IAED,OAAO,CAAC,YAAY,EAAE,eAAe,CAAU,CAAC;AACpD,CAAC,CAAC"}
@@ -1,2 +1,15 @@
1
- import type { QuerySettings } from '../../types/store/query';
2
- export declare const useQueryExecutionSettings: () => readonly [QuerySettings, (value: QuerySettings) => void];
1
+ export declare const useQueryExecutionSettings: () => readonly [{
2
+ queryMode: "scan" | "script" | "data" | "query" | "pg";
3
+ transactionMode: "serializable-read-write" | "stale-read-only" | "online-read-only" | "snapshot-read-only" | "implicit";
4
+ statisticsMode: "none" | "basic" | "full" | "profile";
5
+ tracingLevel: "basic" | "off" | "toplevel" | "detailed" | "diagnostic" | "trace";
6
+ timeout?: number | undefined;
7
+ limitRows?: number | undefined;
8
+ }, (value: {
9
+ queryMode: "scan" | "script" | "data" | "query" | "pg";
10
+ transactionMode: "serializable-read-write" | "stale-read-only" | "online-read-only" | "snapshot-read-only" | "implicit";
11
+ statisticsMode: "none" | "basic" | "full" | "profile";
12
+ tracingLevel: "basic" | "off" | "toplevel" | "detailed" | "diagnostic" | "trace";
13
+ timeout?: number | undefined;
14
+ limitRows?: number | undefined;
15
+ }) => void];
@@ -1,17 +1,15 @@
1
1
  import { useTracingLevelOptionAvailable } from '../../store/reducers/capabilities/hooks';
2
- import { DEFAULT_QUERY_SETTINGS, QUERY_EXECUTION_SETTINGS_KEY } from '../constants';
2
+ import { QUERY_EXECUTION_SETTINGS_KEY } from '../constants';
3
+ import { DEFAULT_QUERY_SETTINGS, querySettingsRestoreSchema } from '../query';
3
4
  import { useSetting } from './useSetting';
4
5
  export const useQueryExecutionSettings = () => {
5
- var _a, _b, _c, _d;
6
6
  const enableTracingLevel = useTracingLevelOptionAvailable();
7
7
  const [storageSettings, setSettings] = useSetting(QUERY_EXECUTION_SETTINGS_KEY);
8
+ const validatedSettings = querySettingsRestoreSchema.parse(storageSettings);
8
9
  const settings = {
9
- queryMode: (_a = storageSettings.queryMode) !== null && _a !== void 0 ? _a : DEFAULT_QUERY_SETTINGS.queryMode,
10
- timeout: (_b = storageSettings.timeout) !== null && _b !== void 0 ? _b : DEFAULT_QUERY_SETTINGS.timeout,
11
- statisticsMode: (_c = storageSettings.statisticsMode) !== null && _c !== void 0 ? _c : DEFAULT_QUERY_SETTINGS.statisticsMode,
12
- transactionMode: (_d = storageSettings.transactionMode) !== null && _d !== void 0 ? _d : DEFAULT_QUERY_SETTINGS.transactionMode,
10
+ ...validatedSettings,
13
11
  tracingLevel: enableTracingLevel
14
- ? storageSettings.tracingLevel
12
+ ? validatedSettings.tracingLevel
15
13
  : DEFAULT_QUERY_SETTINGS.tracingLevel,
16
14
  };
17
15
  return [settings, setSettings];
@@ -1 +1 @@
1
- {"version":3,"file":"useQueryExecutionSettings.js","sourceRoot":"","sources":["../../../src/utils/hooks/useQueryExecutionSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,8BAA8B,EAAC,MAAM,yCAAyC,CAAC;AAEvF,OAAO,EAAC,sBAAsB,EAAE,4BAA4B,EAAC,MAAM,cAAc,CAAC;AAElF,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,EAAE;;IAC1C,MAAM,kBAAkB,GAAG,8BAA8B,EAAE,CAAC;IAC5D,MAAM,CAAC,eAAe,EAAE,WAAW,CAAC,GAAG,UAAU,CAAgB,4BAA4B,CAAC,CAAC;IAE/F,MAAM,QAAQ,GAAkB;QAC5B,SAAS,EAAE,MAAA,eAAe,CAAC,SAAS,mCAAI,sBAAsB,CAAC,SAAS;QACxE,OAAO,EAAE,MAAA,eAAe,CAAC,OAAO,mCAAI,sBAAsB,CAAC,OAAO;QAClE,cAAc,EAAE,MAAA,eAAe,CAAC,cAAc,mCAAI,sBAAsB,CAAC,cAAc;QACvF,eAAe,EAAE,MAAA,eAAe,CAAC,eAAe,mCAAI,sBAAsB,CAAC,eAAe;QAC1F,YAAY,EAAE,kBAAkB;YAC5B,CAAC,CAAC,eAAe,CAAC,YAAY;YAC9B,CAAC,CAAC,sBAAsB,CAAC,YAAY;KAC5C,CAAC;IAEF,OAAO,CAAC,QAAQ,EAAE,WAAW,CAAU,CAAC;AAC5C,CAAC,CAAC"}
1
+ {"version":3,"file":"useQueryExecutionSettings.js","sourceRoot":"","sources":["../../../src/utils/hooks/useQueryExecutionSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,8BAA8B,EAAC,MAAM,yCAAyC,CAAC;AAEvF,OAAO,EAAC,4BAA4B,EAAC,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAC,sBAAsB,EAAE,0BAA0B,EAAC,MAAM,UAAU,CAAC;AAE5E,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAC1C,MAAM,kBAAkB,GAAG,8BAA8B,EAAE,CAAC;IAC5D,MAAM,CAAC,eAAe,EAAE,WAAW,CAAC,GAAG,UAAU,CAAgB,4BAA4B,CAAC,CAAC;IAE/F,MAAM,iBAAiB,GAAG,0BAA0B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;IAE5E,MAAM,QAAQ,GAAkB;QAC5B,GAAG,iBAAiB;QACpB,YAAY,EAAE,kBAAkB;YAC5B,CAAC,CAAC,iBAAiB,CAAC,YAAY;YAChC,CAAC,CAAC,sBAAsB,CAAC,YAAY;KAC5C,CAAC;IAEF,OAAO,CAAC,QAAQ,EAAE,WAAW,CAAU,CAAC;AAC5C,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { TableColumnSetupItem } from '@gravity-ui/uikit';
2
+ export declare const useSelectedColumns: <T extends {
3
+ name: string;
4
+ }>(columns: T[], storageKey: string, columnsTitles: Record<string, string>, defaultColumnsIds: string[], requiredColumnsIds?: string[]) => {
5
+ columnsToShow: T[];
6
+ columnsToSelect: TableColumnSetupItem[];
7
+ setColumns: (updated: TableColumnSetupItem[]) => void;
8
+ };
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ import { settingsManager } from '../../services/settings';
3
+ export const useSelectedColumns = (columns, storageKey, columnsTitles, defaultColumnsIds, requiredColumnsIds) => {
4
+ const [selectedColumnsIds, setSelectedColumnsIds] = React.useState(() => {
5
+ return settingsManager.readUserSettingsValue(storageKey, defaultColumnsIds);
6
+ });
7
+ const columnsToShow = React.useMemo(() => {
8
+ return columns.filter((column) => selectedColumnsIds.find((name) => name === column.name));
9
+ }, [columns, selectedColumnsIds]);
10
+ const columnsToSelect = React.useMemo(() => {
11
+ const columnsIds = columns.map((column) => column.name);
12
+ return columnsIds.map((id) => {
13
+ const isRequired = requiredColumnsIds === null || requiredColumnsIds === void 0 ? void 0 : requiredColumnsIds.includes(id);
14
+ const isSelected = selectedColumnsIds.includes(id);
15
+ return {
16
+ id,
17
+ title: columnsTitles[id],
18
+ selected: isRequired || isSelected,
19
+ required: isRequired,
20
+ sticky: isRequired ? 'start' : undefined,
21
+ };
22
+ });
23
+ }, [columns, columnsTitles, requiredColumnsIds, selectedColumnsIds]);
24
+ const setColumns = React.useCallback((value) => {
25
+ const selectedColumns = value.filter((el) => el.selected).map((el) => el.id);
26
+ settingsManager.setUserSettingsValue(storageKey, selectedColumns);
27
+ setSelectedColumnsIds(selectedColumns);
28
+ }, [storageKey]);
29
+ return {
30
+ columnsToShow,
31
+ columnsToSelect,
32
+ setColumns,
33
+ };
34
+ };
35
+ //# sourceMappingURL=useSelectedColumns.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSelectedColumns.js","sourceRoot":"","sources":["../../../src/utils/hooks/useSelectedColumns.ts"],"names":[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U;gBACpB,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS;aAC3C,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,kBAAkB,CAAC,CAAC,CAAC;IAErE,MAAM,UAAU,GAAsC,KAAK,CAAC,WAAW,CACnE,CAAC,KAAK,EAAE,EAAE;QACN,MAAM,eAAe,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QAE7E,eAAe,CAAC,oBAAoB,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;QAClE,qBAAqB,CAAC,eAAe,CAAC,CAAC;IAC3C,CAAC,EACD,CAAC,UAAU,CAAC,CACf,CAAC;IAEF,OAAO;QACH,aAAa;QACb,eAAe;QACf,UAAU;KACb,CAAC;AACN,CAAC,CAAC"}
@@ -1,9 +1,8 @@
1
1
  import { z } from 'zod';
2
2
  import type { NodesPreparedEntity } from '../store/reducers/nodes/types';
3
3
  import type { ProblemFilterValue } from '../store/reducers/settings/types';
4
- import type { TSystemStateInfo } from '../types/api/nodes';
4
+ import type { NodesSortValue, TSystemStateInfo } from '../types/api/nodes';
5
5
  import type { TNodeInfo } from '../types/api/nodesList';
6
- import type { ValueOf } from '../types/common';
7
6
  import type { NodesMap } from '../types/store/nodesList';
8
7
  export declare enum NodesUptimeFilterValues {
9
8
  'All' = "All",
@@ -26,23 +25,5 @@ export interface PreparedNodeSystemState extends TSystemStateInfo {
26
25
  export declare const prepareNodeSystemState: (systemState?: TSystemStateInfo) => PreparedNodeSystemState;
27
26
  export declare const getProblemParamValue: (problemFilter: ProblemFilterValue | undefined) => problemFilter is "With problems";
28
27
  export declare const getUptimeParamValue: (nodesUptimeFilter: NodesUptimeFilterValues | undefined) => number | undefined;
29
- /**
30
- * Values to sort /compute v2 and /nodes responses
31
- *
32
- * For actual values go to:\
33
- * /nodes: https://github.com/ydb-platform/ydb/blob/main/ydb/core/viewer/json_nodes.h\
34
- * /compute: https://github.com/ydb-platform/ydb/blob/main/ydb/core/viewer/json_compute.h
35
- */
36
- export declare const NODES_SORT_VALUES: {
37
- readonly NodeId: "NodeId";
38
- readonly Host: "Host";
39
- readonly DC: "DC";
40
- readonly Rack: "Rack";
41
- readonly Version: "Version";
42
- readonly Uptime: "Uptime";
43
- readonly Memory: "Memory";
44
- readonly CPU: "CPU";
45
- readonly LoadAverage: "LoadAverage";
46
- };
47
- export type NodesSortValue = ValueOf<typeof NODES_SORT_VALUES>;
48
- export declare const isSortableNodesProperty: (value: string) => value is NodesSortValue;
28
+ export declare const NODES_SORT_VALUES: NodesSortValue[];
29
+ export declare const isSortableNodesProperty: (value: unknown) => value is NodesSortValue;
@@ -55,23 +55,20 @@ export const getProblemParamValue = (problemFilter) => {
55
55
  export const getUptimeParamValue = (nodesUptimeFilter) => {
56
56
  return nodesUptimeFilter === NodesUptimeFilterValues.SmallUptime ? HOUR_IN_SECONDS : undefined;
57
57
  };
58
- /**
59
- * Values to sort /compute v2 and /nodes responses
60
- *
61
- * For actual values go to:\
62
- * /nodes: https://github.com/ydb-platform/ydb/blob/main/ydb/core/viewer/json_nodes.h\
63
- * /compute: https://github.com/ydb-platform/ydb/blob/main/ydb/core/viewer/json_compute.h
64
- */
65
- export const NODES_SORT_VALUES = {
66
- NodeId: 'NodeId',
67
- Host: 'Host',
68
- DC: 'DC',
69
- Rack: 'Rack',
70
- Version: 'Version',
71
- Uptime: 'Uptime',
72
- Memory: 'Memory',
73
- CPU: 'CPU',
74
- LoadAverage: 'LoadAverage',
75
- };
76
- export const isSortableNodesProperty = (value) => Object.values(NODES_SORT_VALUES).includes(value);
58
+ export const NODES_SORT_VALUES = [
59
+ 'NodeId',
60
+ 'Host',
61
+ 'NodeName',
62
+ 'DC',
63
+ 'Rack',
64
+ 'Version',
65
+ 'Uptime',
66
+ 'CPU',
67
+ 'LoadAverage',
68
+ 'Memory',
69
+ `Missing`,
70
+ `DiskSpaceUsage`,
71
+ `Database`,
72
+ ];
73
+ export const isSortableNodesProperty = (value) => NODES_SORT_VALUES.includes(value);
77
74
  //# sourceMappingURL=nodes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../src/utils/nodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,OAAO,EAAC,mBAAmB,EAAC,MAAM,qCAAqC,CAAC;AAExE,OAAO,EAAC,KAAK,EAAC,MAAM,oBAAoB,CAAC;AAMzC,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAC,UAAU,EAAC,MAAM,iCAAiC,CAAC;AAE3D,OAAO,EAAC,cAAc,EAAC,MAAM,GAAG,CAAC;AAEjC,MAAM,CAAN,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAC/B,sCAAa,CAAA;IACb,sDAA6B,CAAA;AACjC,CAAC,EAHW,uBAAuB,KAAvB,uBAAuB,QAGlC;AAED,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC;KACzC,UAAU,CAAC,uBAAuB,CAAC;KACnC,KAAK,CAAC,uBAAuB,CAAC,GAAG,CAAC,CAAC;AAExC,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,CAAC,uBAAuB,CAAC,GAAG,CAAC,EAAE,KAAK;IACpC,CAAC,uBAAuB,CAAC,WAAW,CAAC,EAAE,aAAa;CACvD,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,IAA4C,EAAE,EAAE,CAC9E,CAAC,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,KAAK,KAAK,CAAC,IAAI,CAAC;AAEzD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,SAAuB,EAA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,QAAQ,CAAC,KAAuB,CAAC,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { z } from 'zod';
1
2
  import type { AnyExecuteResponse, AnyExplainResponse, ErrorResponse, KeyValueRow, QueryPlan, ScriptPlan } from '../types/api/query';
2
3
  import type { IQueryResult, QueryMode, StatisticsMode, TracingLevel, TransactionMode } from '../types/store/query';
3
4
  export declare const TRANSACTION_MODES: {
@@ -51,4 +52,132 @@ export declare const parseQueryExplainPlan: (plan: ScriptPlan | QueryPlan) => Qu
51
52
  export declare const prepareQueryResponse: (data?: KeyValueRow[]) => KeyValueRow[];
52
53
  export declare const parseQueryError: (error: unknown) => ErrorResponse | string | undefined;
53
54
  export declare const parseQueryErrorToString: (error: unknown) => string | undefined;
55
+ export declare const DEFAULT_QUERY_SETTINGS: {
56
+ queryMode: "query";
57
+ transactionMode: "implicit";
58
+ timeout: number;
59
+ limitRows: number;
60
+ statisticsMode: "none";
61
+ tracingLevel: "detailed";
62
+ };
63
+ export declare const queryModeSchema: z.ZodNativeEnum<{
64
+ readonly scan: "scan";
65
+ readonly script: "script";
66
+ readonly data: "data";
67
+ readonly query: "query";
68
+ readonly pg: "pg";
69
+ }>;
70
+ export declare const transactionModeSchema: z.ZodNativeEnum<{
71
+ readonly serializable: "serializable-read-write";
72
+ readonly stalero: "stale-read-only";
73
+ readonly onlinero: "online-read-only";
74
+ readonly snapshot: "snapshot-read-only";
75
+ readonly implicit: "implicit";
76
+ }>;
77
+ export declare const statisticsModeSchema: z.ZodNativeEnum<{
78
+ readonly none: "none";
79
+ readonly basic: "basic";
80
+ readonly full: "full";
81
+ readonly profile: "profile";
82
+ }>;
83
+ export declare const tracingLevelSchema: z.ZodNativeEnum<{
84
+ readonly off: "off";
85
+ readonly toplevel: "toplevel";
86
+ readonly basic: "basic";
87
+ readonly detailed: "detailed";
88
+ readonly diagnostic: "diagnostic";
89
+ readonly trace: "trace";
90
+ }>;
91
+ export declare const querySettingsValidationSchema: z.ZodObject<{
92
+ timeout: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodUndefined]>, number | undefined, unknown>;
93
+ limitRows: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodUndefined]>, number | undefined, unknown>;
94
+ queryMode: z.ZodNativeEnum<{
95
+ readonly scan: "scan";
96
+ readonly script: "script";
97
+ readonly data: "data";
98
+ readonly query: "query";
99
+ readonly pg: "pg";
100
+ }>;
101
+ transactionMode: z.ZodNativeEnum<{
102
+ readonly serializable: "serializable-read-write";
103
+ readonly stalero: "stale-read-only";
104
+ readonly onlinero: "online-read-only";
105
+ readonly snapshot: "snapshot-read-only";
106
+ readonly implicit: "implicit";
107
+ }>;
108
+ statisticsMode: z.ZodNativeEnum<{
109
+ readonly none: "none";
110
+ readonly basic: "basic";
111
+ readonly full: "full";
112
+ readonly profile: "profile";
113
+ }>;
114
+ tracingLevel: z.ZodNativeEnum<{
115
+ readonly off: "off";
116
+ readonly toplevel: "toplevel";
117
+ readonly basic: "basic";
118
+ readonly detailed: "detailed";
119
+ readonly diagnostic: "diagnostic";
120
+ readonly trace: "trace";
121
+ }>;
122
+ }, "strip", z.ZodTypeAny, {
123
+ queryMode: "scan" | "script" | "data" | "query" | "pg";
124
+ transactionMode: "serializable-read-write" | "stale-read-only" | "online-read-only" | "snapshot-read-only" | "implicit";
125
+ statisticsMode: "none" | "basic" | "full" | "profile";
126
+ tracingLevel: "basic" | "off" | "toplevel" | "detailed" | "diagnostic" | "trace";
127
+ timeout?: number | undefined;
128
+ limitRows?: number | undefined;
129
+ }, {
130
+ queryMode: "scan" | "script" | "data" | "query" | "pg";
131
+ transactionMode: "serializable-read-write" | "stale-read-only" | "online-read-only" | "snapshot-read-only" | "implicit";
132
+ statisticsMode: "none" | "basic" | "full" | "profile";
133
+ tracingLevel: "basic" | "off" | "toplevel" | "detailed" | "diagnostic" | "trace";
134
+ timeout?: unknown;
135
+ limitRows?: unknown;
136
+ }>;
137
+ export declare const querySettingsRestoreSchema: z.ZodCatch<z.ZodObject<{
138
+ timeout: z.ZodEffects<z.ZodCatch<z.ZodOptional<z.ZodNumber>>, number | undefined, unknown>;
139
+ limitRows: z.ZodEffects<z.ZodCatch<z.ZodOptional<z.ZodNumber>>, number | undefined, unknown>;
140
+ queryMode: z.ZodCatch<z.ZodNativeEnum<{
141
+ readonly scan: "scan";
142
+ readonly script: "script";
143
+ readonly data: "data";
144
+ readonly query: "query";
145
+ readonly pg: "pg";
146
+ }>>;
147
+ transactionMode: z.ZodCatch<z.ZodNativeEnum<{
148
+ readonly serializable: "serializable-read-write";
149
+ readonly stalero: "stale-read-only";
150
+ readonly onlinero: "online-read-only";
151
+ readonly snapshot: "snapshot-read-only";
152
+ readonly implicit: "implicit";
153
+ }>>;
154
+ statisticsMode: z.ZodCatch<z.ZodNativeEnum<{
155
+ readonly none: "none";
156
+ readonly basic: "basic";
157
+ readonly full: "full";
158
+ readonly profile: "profile";
159
+ }>>;
160
+ tracingLevel: z.ZodCatch<z.ZodNativeEnum<{
161
+ readonly off: "off";
162
+ readonly toplevel: "toplevel";
163
+ readonly basic: "basic";
164
+ readonly detailed: "detailed";
165
+ readonly diagnostic: "diagnostic";
166
+ readonly trace: "trace";
167
+ }>>;
168
+ }, "strip", z.ZodTypeAny, {
169
+ queryMode: "scan" | "script" | "data" | "query" | "pg";
170
+ transactionMode: "serializable-read-write" | "stale-read-only" | "online-read-only" | "snapshot-read-only" | "implicit";
171
+ statisticsMode: "none" | "basic" | "full" | "profile";
172
+ tracingLevel: "basic" | "off" | "toplevel" | "detailed" | "diagnostic" | "trace";
173
+ timeout?: number | undefined;
174
+ limitRows?: number | undefined;
175
+ }, {
176
+ timeout?: unknown;
177
+ limitRows?: unknown;
178
+ queryMode?: unknown;
179
+ transactionMode?: unknown;
180
+ statisticsMode?: unknown;
181
+ tracingLevel?: unknown;
182
+ }>>;
54
183
  export {};
@@ -1,3 +1,4 @@
1
+ import { z } from 'zod';
1
2
  import { YQLType } from '../types';
2
3
  import { isAxiosResponse, isNetworkError } from './response';
3
4
  export const TRANSACTION_MODES = {
@@ -121,7 +122,7 @@ const parseExecuteModernResponse = (data) => {
121
122
  const parseExecuteMultiResponse = (data) => {
122
123
  const { result, ...restData } = data;
123
124
  const parsedResult = result === null || result === void 0 ? void 0 : result.map((resultSet) => {
124
- const { rows, columns } = resultSet;
125
+ const { rows, columns, truncated } = resultSet;
125
126
  let parsedRows;
126
127
  if (columns) {
127
128
  // Result shouldn't be null if there are columns
@@ -133,6 +134,7 @@ const parseExecuteMultiResponse = (data) => {
133
134
  return {
134
135
  columns: columns,
135
136
  result: parsedRows,
137
+ truncated,
136
138
  };
137
139
  });
138
140
  return {
@@ -241,4 +243,34 @@ export const parseQueryErrorToString = (error) => {
241
243
  }
242
244
  return (_a = parsedError === null || parsedError === void 0 ? void 0 : parsedError.error) === null || _a === void 0 ? void 0 : _a.message;
243
245
  };
246
+ export const DEFAULT_QUERY_SETTINGS = {
247
+ queryMode: QUERY_MODES.query,
248
+ transactionMode: TRANSACTION_MODES.implicit,
249
+ timeout: 60,
250
+ limitRows: 10000,
251
+ statisticsMode: STATISTICS_MODES.none,
252
+ tracingLevel: TRACING_LEVELS.detailed,
253
+ };
254
+ export const queryModeSchema = z.nativeEnum(QUERY_MODES);
255
+ export const transactionModeSchema = z.nativeEnum(TRANSACTION_MODES);
256
+ export const statisticsModeSchema = z.nativeEnum(STATISTICS_MODES);
257
+ export const tracingLevelSchema = z.nativeEnum(TRACING_LEVELS);
258
+ export const querySettingsValidationSchema = z.object({
259
+ timeout: z.preprocess((val) => (val === '' ? undefined : val), z.coerce.number().positive().or(z.undefined())),
260
+ limitRows: z.preprocess((val) => (val === '' ? undefined : val), z.coerce.number().gt(0).lte(10000).or(z.undefined())),
261
+ queryMode: queryModeSchema,
262
+ transactionMode: transactionModeSchema,
263
+ statisticsMode: statisticsModeSchema,
264
+ tracingLevel: tracingLevelSchema,
265
+ });
266
+ export const querySettingsRestoreSchema = z
267
+ .object({
268
+ timeout: z.preprocess((val) => (val === '' ? undefined : val), z.coerce.number().positive().optional().catch(DEFAULT_QUERY_SETTINGS.timeout)),
269
+ limitRows: z.preprocess((val) => (val === '' ? undefined : val), z.coerce.number().gt(0).lte(10000).optional().catch(DEFAULT_QUERY_SETTINGS.limitRows)),
270
+ queryMode: queryModeSchema.catch(DEFAULT_QUERY_SETTINGS.queryMode),
271
+ transactionMode: transactionModeSchema.catch(DEFAULT_QUERY_SETTINGS.transactionMode),
272
+ statisticsMode: statisticsModeSchema.catch(DEFAULT_QUERY_SETTINGS.statisticsMode),
273
+ tracingLevel: tracingLevelSchema.catch(DEFAULT_QUERY_SETTINGS.tracingLevel),
274
+ })
275
+ .catch(DEFAULT_QUERY_SETTINGS);
244
276
  //# sourceMappingURL=query.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"query.js","sourceRoot":"","sources":["../../src/utils/query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,UAAU,CAAC;AAqBjC,OAAO,EAAC,eAAe,EAAE,cAAc,EAAC,MAAM,YAAY,CAAC;AAE3D,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,YAAY,EAAE,yBAAyB;IACvC,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,kBAAkB;IAC5B,QAAQ,EAAE,oBAAoB;IAC9B,QAAQ,EAAE,UAAU;CACd,CAAC;AAEX,MAAM,CAAC,MAAM,wBAAwB,GAAoC;IACrE,CAAC,iBAAiB,CAAC,YAAY,CAAC,EAAE,cAAc;IAChD,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAAE,iBAAiB;IAC9C,CAAC,iBAAiB,CAAC,QAAQ,CAAC,EAAE,kBAAkB;IAChD,CAAC,iBAAiB,CAAC,QAAQ,CAAC,EAAE,oBAAoB;IAClD,CAAC,iBAAiB,CAAC,QAAQ,CAAC,EAAE,UAAU;CAClC,CAAC;AAEX,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,IAAI,EAAE,MAAM;IACZ,KAAK,E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declare const getUsage: <T extends EntityWithUsage>(data: T, step?: number) => number;
7
- export declare const isSortableStorageProperty: (value: string) => value is StorageV2SortValue;
7
+ export declare const isSortableStorageProperty: (value: unknown) => value is StorageV2SortValue;
8
8
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"storage.js","sourceRoot":"","sources":["../../src/utils/storage.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,QAAQ,GAAG,CAA4B,IAAO,EAAE,IAAI,GAAG,CAAC,EAAE,EAAE;IACrE,2BAA2B;IAC3B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAE9D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;AAC3C,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAyB;IAC9C,UAAU;IACV,MAAM;IACN,WAAW;IACX,SAAS;IACT,UAAU;IACV,OAAO;IACP,SAAS;IACT,MAAM;IACN,OAAO;IACP,MAAM;IACN,OAAO;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,KAAa,EAA+B,EAAE,CACpF,mBAAmB,CAAC,QAAQ,CAAC,KAA2B,CAAC,CAAC"}
1
+ {"version":3,"file":"storage.js","sourceRoot":"","sources":["../../src/utils/storage.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,QAAQ,GAAG,CAA4B,IAAO,EAAE,IAAI,GAAG,CAAC,EAAE,EAAE;IACrE,2BAA2B;IAC3B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAE9D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;AAC3C,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAyB;IAC9C,UAAU;IACV,MAAM;IACN,WAAW;IACX,SAAS;IACT,UAAU;IACV,OAAO;IACP,SAAS;IACT,MAAM;IACN,OAAO;IACP,MAAM;IACN,OAAO;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,KAAc,EAA+B,EAAE,CACrF,mBAAmB,CAAC,QAAQ,CAAC,KAA2B,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-embedded-ui",
3
- "version": "6.20.0",
3
+ "version": "6.22.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -24,6 +24,7 @@
24
24
  "@gravity-ui/table": "^0.5.0",
25
25
  "@gravity-ui/uikit": "^6.20.1",
26
26
  "@gravity-ui/websql-autocomplete": "^9.1.0",
27
+ "@hookform/resolvers": "^3.9.0",
27
28
  "@reduxjs/toolkit": "^2.2.3",
28
29
  "@tanstack/react-table": "^8.19.3",
29
30
  "axios": "^1.7.3",
@@ -1,7 +0,0 @@
1
- import type { Column } from '@gravity-ui/react-data-table';
2
- import type { TableColumnSetupItem } from '@gravity-ui/uikit';
3
- export declare const useSelectedColumns: <T>(columns: Column<T>[], storageKey: string, columnsTitles: Record<string, string>, defaultColumnsIds: string[], requiredColumnsIds?: string[]) => {
4
- columnsToShow: Column<T>[];
5
- columnsToSelect: TableColumnSetupItem[];
6
- setColumns: (updated: TableColumnSetupItem[]) => void;
7
- };
@@ -1,26 +0,0 @@
1
- import { useSetting } from '../../utils/hooks';
2
- export const useSelectedColumns = (columns, storageKey, columnsTitles, defaultColumnsIds, requiredColumnsIds) => {
3
- const [selectedColumnsIds, setSelectedColumnsIds] = useSetting(storageKey, defaultColumnsIds);
4
- const columnsIds = columns.map((column) => column.name);
5
- const columnsToShow = columns.filter((column) => selectedColumnsIds.find((name) => name === column.name));
6
- const columnsToSelect = columnsIds.map((id) => {
7
- const isRequired = requiredColumnsIds === null || requiredColumnsIds === void 0 ? void 0 : requiredColumnsIds.includes(id);
8
- return {
9
- id,
10
- title: columnsTitles[id],
11
- selected: selectedColumnsIds.includes(id),
12
- required: isRequired,
13
- sticky: isRequired ? 'start' : undefined,
14
- };
15
- });
16
- const setColumns = (value) => {
17
- const selectedColumns = value.filter((el) => el.selected).map((el) => el.id);
18
- setSelectedColumnsIds(selectedColumns);
19
- };
20
- return {
21
- columnsToShow,
22
- columnsToSelect,
23
- setColumns,
24
- };
25
- };
26
- //# sourceMappingURL=useSelectedColumns.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useSelectedColumns.js","sourceRoot":"","sources":["../../../src/containers/Clusters/useSelectedColumns.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAE7C,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAC9B,OAAoB,EACpB,UAAkB,EAClB,aAAqC,EACrC,iBAA2B,EAC3B,kBAA6B,EAC/B,EAAE;IACA,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,UAAU,CAC1D,UAAU,EACV,iBAAiB,CACpB,CAAC;IAEF,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAExD,MAAM,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAC5C,kBAAkB,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI,CAAC,CAC1D,CAAC;IAEF,MAAM,eAAe,GAA2B,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE;QAClE,MAAM,UAAU,GAAG,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,QAAQ,CAAC,EAAE,CAA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QACd,gBAAgB,CAAC,QAAQ,CAAC;KAC7B,CAAC;AACN,CAAC"}
@@ -1,6 +0,0 @@
1
- interface PDiskGroupsProps {
2
- nodeId: string | number;
3
- pDiskId: string | number;
4
- }
5
- export declare function PDiskGroups({ pDiskId, nodeId }: PDiskGroupsProps): import("react/jsx-runtime").JSX.Element;
6
- export {};