ydb-embedded-ui 6.33.0 → 6.35.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (221) hide show
  1. package/dist/components/ConfirmationDialog/ConfirmationDialog.d.ts +21 -0
  2. package/dist/components/ConfirmationDialog/ConfirmationDialog.js +31 -0
  3. package/dist/components/ConfirmationDialog/ConfirmationDialog.js.map +1 -0
  4. package/dist/components/ConfirmationDialog/ConfirmationDialog.scss +6 -0
  5. package/dist/components/ConfirmationDialog/i18n/en.json +3 -0
  6. package/dist/components/ConfirmationDialog/i18n/index.d.ts +1 -0
  7. package/dist/components/ConfirmationDialog/i18n/index.js +5 -0
  8. package/dist/components/ConfirmationDialog/i18n/index.js.map +1 -0
  9. package/dist/components/EntityStatus/EntityStatus.js +1 -1
  10. package/dist/components/EntityStatus/EntityStatus.js.map +1 -1
  11. package/dist/components/MemoryViewer/MemoryViewer.d.ts +14 -0
  12. package/dist/components/MemoryViewer/MemoryViewer.js +84 -0
  13. package/dist/components/MemoryViewer/MemoryViewer.js.map +1 -0
  14. package/dist/components/MemoryViewer/MemoryViewer.scss +104 -0
  15. package/dist/components/MemoryViewer/i18n/en.json +11 -0
  16. package/dist/components/MemoryViewer/i18n/index.d.ts +2 -0
  17. package/dist/components/MemoryViewer/i18n/index.js +5 -0
  18. package/dist/components/MemoryViewer/i18n/index.js.map +1 -0
  19. package/dist/components/MemoryViewer/utils.d.ts +10 -0
  20. package/dist/components/MemoryViewer/utils.js +71 -0
  21. package/dist/components/MemoryViewer/utils.js.map +1 -0
  22. package/dist/components/NodeHostWrapper/NodeHostWrapper.d.ts +5 -3
  23. package/dist/components/NodeHostWrapper/NodeHostWrapper.js +3 -2
  24. package/dist/components/NodeHostWrapper/NodeHostWrapper.js.map +1 -1
  25. package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
  26. package/dist/components/ProgressViewer/ProgressViewer.d.ts +1 -1
  27. package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
  28. package/dist/components/nodesColumns/__test__/utils.test.d.ts +1 -0
  29. package/dist/components/nodesColumns/__test__/utils.test.js +28 -0
  30. package/dist/components/nodesColumns/__test__/utils.test.js.map +1 -0
  31. package/dist/components/nodesColumns/columns.d.ts +32 -9
  32. package/dist/components/nodesColumns/columns.js +91 -21
  33. package/dist/components/nodesColumns/columns.js.map +1 -1
  34. package/dist/components/nodesColumns/constants.d.ts +16 -5
  35. package/dist/components/nodesColumns/constants.js +114 -11
  36. package/dist/components/nodesColumns/constants.js.map +1 -1
  37. package/dist/components/nodesColumns/i18n/en.json +18 -5
  38. package/dist/components/nodesColumns/i18n/index.d.ts +1 -1
  39. package/dist/components/nodesColumns/utils.d.ts +2 -0
  40. package/dist/components/nodesColumns/utils.js +11 -0
  41. package/dist/components/nodesColumns/utils.js.map +1 -0
  42. package/dist/containers/App/App.d.ts +1 -1
  43. package/dist/containers/App/Providers.js +2 -1
  44. package/dist/containers/App/Providers.js.map +1 -1
  45. package/dist/containers/AsideNavigation/AsideNavigation.d.ts +2 -0
  46. package/dist/containers/AsideNavigation/AsideNavigation.js +2 -1
  47. package/dist/containers/AsideNavigation/AsideNavigation.js.map +1 -1
  48. package/dist/containers/Clusters/constants.d.ts +1 -1
  49. package/dist/containers/Nodes/Nodes.js +2 -2
  50. package/dist/containers/Nodes/Nodes.js.map +1 -1
  51. package/dist/containers/Nodes/NodesControls/NodesControls.d.ts +3 -1
  52. package/dist/containers/Nodes/NodesControls/NodesControls.js +3 -3
  53. package/dist/containers/Nodes/NodesControls/NodesControls.js.map +1 -1
  54. package/dist/containers/Nodes/PaginatedNodes.d.ts +11 -3
  55. package/dist/containers/Nodes/PaginatedNodes.js +16 -19
  56. package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
  57. package/dist/containers/Nodes/columns/columns.js +2 -2
  58. package/dist/containers/Nodes/columns/columns.js.map +1 -1
  59. package/dist/containers/Nodes/columns/constants.d.ts +3 -2
  60. package/dist/containers/Nodes/columns/constants.js +10 -10
  61. package/dist/containers/Nodes/columns/constants.js.map +1 -1
  62. package/dist/containers/Nodes/getNodes.js +4 -5
  63. package/dist/containers/Nodes/getNodes.js.map +1 -1
  64. package/dist/containers/Nodes/useNodesPageQueryParams.d.ts +3 -2
  65. package/dist/containers/Nodes/useNodesPageQueryParams.js +2 -2
  66. package/dist/containers/Nodes/useNodesPageQueryParams.js.map +1 -1
  67. package/dist/containers/Storage/StorageGroups/columns/columns.js +3 -3
  68. package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -1
  69. package/dist/containers/Storage/StorageGroups/columns/constants.d.ts +3 -7
  70. package/dist/containers/Storage/StorageGroups/columns/constants.js +54 -10
  71. package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -1
  72. package/dist/containers/Storage/StorageGroups/getGroups.js +3 -5
  73. package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
  74. package/dist/containers/Storage/StorageNodes/columns/columns.js +2 -3
  75. package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -1
  76. package/dist/containers/Storage/StorageNodes/columns/constants.js +2 -2
  77. package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -1
  78. package/dist/containers/Storage/StorageNodes/getNodes.js +4 -5
  79. package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
  80. package/dist/containers/Storage/utils/index.d.ts +1 -1
  81. package/dist/containers/Tablets/i18n/index.d.ts +1 -1
  82. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +2 -2
  83. package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
  84. package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/columns.d.ts +4 -0
  85. package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/columns.js +23 -0
  86. package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/columns.js.map +1 -0
  87. package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/constants.d.ts +5 -0
  88. package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/constants.js +23 -0
  89. package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/constants.js.map +1 -0
  90. package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.d.ts +6 -0
  91. package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.js +26 -0
  92. package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.js.map +1 -0
  93. package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js +1 -1
  94. package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js.map +1 -1
  95. package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.d.ts +2 -2
  96. package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.js +3 -2
  97. package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.js.map +1 -1
  98. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +3 -1
  99. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js.map +1 -1
  100. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +2 -7
  101. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js.map +1 -1
  102. package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
  103. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +3 -1
  104. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js.map +1 -1
  105. package/dist/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.js +5 -1
  106. package/dist/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.js.map +1 -1
  107. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +5 -2
  108. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
  109. package/dist/containers/Tenant/Query/ExecuteResult/PlanToSvgButton.d.ts +7 -0
  110. package/dist/containers/Tenant/Query/ExecuteResult/PlanToSvgButton.js +40 -0
  111. package/dist/containers/Tenant/Query/ExecuteResult/PlanToSvgButton.js.map +1 -0
  112. package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js +1 -1
  113. package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js.map +1 -1
  114. package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +4 -1
  115. package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
  116. package/dist/containers/Tenant/Query/NewSQL/NewSQL.js +8 -7
  117. package/dist/containers/Tenant/Query/NewSQL/NewSQL.js.map +1 -1
  118. package/dist/containers/Tenant/Query/NewSQL/i18n/en.json +1 -2
  119. package/dist/containers/Tenant/Query/NewSQL/i18n/index.d.ts +1 -1
  120. package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js +3 -1
  121. package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js.map +1 -1
  122. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.d.ts +2 -27
  123. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +47 -52
  124. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
  125. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +1 -1
  126. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js.map +1 -1
  127. package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.d.ts +18 -3
  128. package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js +41 -15
  129. package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js.map +1 -1
  130. package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.js +8 -3
  131. package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.js.map +1 -1
  132. package/dist/containers/Tenant/utils/newSQLQueryActions.d.ts +1 -2
  133. package/dist/containers/Tenant/utils/newSQLQueryActions.js +2 -4
  134. package/dist/containers/Tenant/utils/newSQLQueryActions.js.map +1 -1
  135. package/dist/containers/Tenant/utils/schemaActions.d.ts +1 -0
  136. package/dist/containers/Tenant/utils/schemaActions.js +61 -41
  137. package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
  138. package/dist/containers/Tenant/utils/schemaQueryTemplates.js +87 -54
  139. package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -1
  140. package/dist/containers/UserSettings/i18n/en.json +3 -0
  141. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  142. package/dist/containers/UserSettings/settings.d.ts +2 -0
  143. package/dist/containers/UserSettings/settings.js +11 -2
  144. package/dist/containers/UserSettings/settings.js.map +1 -1
  145. package/dist/services/api.d.ts +4 -0
  146. package/dist/services/api.js +11 -0
  147. package/dist/services/api.js.map +1 -1
  148. package/dist/services/settings.d.ts +2 -0
  149. package/dist/services/settings.js +3 -1
  150. package/dist/services/settings.js.map +1 -1
  151. package/dist/store/configureStore.d.ts +37 -15
  152. package/dist/store/defaultStore.d.ts +18 -7
  153. package/dist/store/reducers/capabilities/capabilities.d.ts +72 -16
  154. package/dist/store/reducers/capabilities/hooks.d.ts +1 -0
  155. package/dist/store/reducers/capabilities/hooks.js +3 -0
  156. package/dist/store/reducers/capabilities/hooks.js.map +1 -1
  157. package/dist/store/reducers/cluster/cluster.d.ts +54 -12
  158. package/dist/store/reducers/executeQuery.d.ts +41 -51
  159. package/dist/store/reducers/executeQuery.js +64 -160
  160. package/dist/store/reducers/executeQuery.js.map +1 -1
  161. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +180 -40
  162. package/dist/store/reducers/index.d.ts +28 -13
  163. package/dist/store/reducers/node/selectors.d.ts +9 -2
  164. package/dist/store/reducers/nodes/types.d.ts +13 -0
  165. package/dist/store/reducers/nodes/utils.d.ts +1 -1
  166. package/dist/store/reducers/nodes/utils.js +3 -3
  167. package/dist/store/reducers/nodes/utils.js.map +1 -1
  168. package/dist/store/reducers/nodesList.d.ts +9 -2
  169. package/dist/store/reducers/partitions/partitions.d.ts +4 -3
  170. package/dist/store/reducers/partitions/partitions.js +1 -3
  171. package/dist/store/reducers/partitions/partitions.js.map +1 -1
  172. package/dist/store/reducers/partitions/types.d.ts +0 -3
  173. package/dist/store/reducers/planToSvg.d.ts +8 -0
  174. package/dist/store/reducers/planToSvg.js +21 -0
  175. package/dist/store/reducers/planToSvg.js.map +1 -0
  176. package/dist/store/reducers/queryActions/queryActions.d.ts +0 -27
  177. package/dist/store/reducers/queryActions/queryActions.js +1 -1
  178. package/dist/store/reducers/queryActions/queryActions.js.map +1 -1
  179. package/dist/store/reducers/queryActions/types.d.ts +1 -1
  180. package/dist/store/reducers/schema/schema.d.ts +22 -7
  181. package/dist/store/reducers/schema/schema.js +16 -20
  182. package/dist/store/reducers/schema/schema.js.map +1 -1
  183. package/dist/store/reducers/tablets.d.ts +45 -10
  184. package/dist/store/reducers/tenantOverview/topShards/utils.d.ts +1 -1
  185. package/dist/store/reducers/tenants/selectors.d.ts +81 -18
  186. package/dist/store/reducers/tooltip.d.ts +1 -1
  187. package/dist/store/reducers/topic.d.ts +135 -30
  188. package/dist/store/reducers/trace.d.ts +1 -1
  189. package/dist/store/reducers/trace.js +1 -1
  190. package/dist/store/reducers/trace.js.map +1 -1
  191. package/dist/types/api/nodes.d.ts +74 -4
  192. package/dist/types/api/nodes.js.map +1 -1
  193. package/dist/types/store/executeQuery.d.ts +3 -6
  194. package/dist/types/store/executeQuery.js.map +1 -1
  195. package/dist/utils/constants.d.ts +2 -0
  196. package/dist/utils/constants.js +2 -0
  197. package/dist/utils/constants.js.map +1 -1
  198. package/dist/utils/dataFormatters/dataFormatters.d.ts +1 -1
  199. package/dist/utils/dataFormatters/dataFormatters.js +12 -6
  200. package/dist/utils/dataFormatters/dataFormatters.js.map +1 -1
  201. package/dist/utils/hooks/withConfirmation/i18n/en.json +4 -0
  202. package/dist/utils/hooks/withConfirmation/i18n/index.d.ts +2 -0
  203. package/dist/utils/hooks/withConfirmation/i18n/index.js +5 -0
  204. package/dist/utils/hooks/withConfirmation/i18n/index.js.map +1 -0
  205. package/dist/utils/hooks/withConfirmation/useChangeInputWithConfirmation.d.ts +3 -0
  206. package/dist/utils/hooks/withConfirmation/useChangeInputWithConfirmation.js +57 -0
  207. package/dist/utils/hooks/withConfirmation/useChangeInputWithConfirmation.js.map +1 -0
  208. package/dist/utils/monaco/insertSnippet.d.ts +1 -0
  209. package/dist/utils/monaco/insertSnippet.js +8 -0
  210. package/dist/utils/monaco/insertSnippet.js.map +1 -0
  211. package/dist/utils/nodes.d.ts +1 -4
  212. package/dist/utils/nodes.js +0 -36
  213. package/dist/utils/nodes.js.map +1 -1
  214. package/dist/utils/query.d.ts +1 -1
  215. package/dist/utils/storage.d.ts +1 -3
  216. package/dist/utils/storage.js +0 -17
  217. package/dist/utils/storage.js.map +1 -1
  218. package/dist/utils/timeParsers/parsers.d.ts +1 -1
  219. package/dist/utils/timeParsers/parsers.js +3 -2
  220. package/dist/utils/timeParsers/parsers.js.map +1 -1
  221. package/package.json +2 -1
@@ -11,9 +11,16 @@ export declare const selectConsumersNames: ((state: {
11
11
  cluster: import("./cluster/types").ClusterState;
12
12
  tenant: import("./tenant/types").TenantState;
13
13
  tooltip: import("../../types/store/tooltip").ITooltipState;
14
- schema: import("./schema/types").SchemaState;
14
+ schema: {
15
+ loading: boolean;
16
+ data: {};
17
+ currentSchemaPath: undefined;
18
+ showPreview: boolean;
19
+ };
15
20
  tenants: import("./tenants/types").TenantsState;
16
- partitions: import("./partitions/types").PartitionsState;
21
+ partitions: {
22
+ selectedConsumer?: string;
23
+ };
17
24
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
18
25
  heatmap: import("../../types/store/heatmap").IHeatmapState;
19
26
  settings: import("./settings/types").SettingsState;
@@ -42,9 +49,16 @@ export declare const selectConsumersNames: ((state: {
42
49
  cluster: import("./cluster/types").ClusterState;
43
50
  tenant: import("./tenant/types").TenantState;
44
51
  tooltip: import("../../types/store/tooltip").ITooltipState;
45
- schema: import("./schema/types").SchemaState;
52
+ schema: {
53
+ loading: boolean;
54
+ data: {};
55
+ currentSchemaPath: undefined;
56
+ showPreview: boolean;
57
+ };
46
58
  tenants: import("./tenants/types").TenantsState;
47
- partitions: import("./partitions/types").PartitionsState;
59
+ partitions: {
60
+ selectedConsumer?: string;
61
+ };
48
62
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
49
63
  heatmap: import("../../types/store/heatmap").IHeatmapState;
50
64
  settings: import("./settings/types").SettingsState;
@@ -66,9 +80,16 @@ export declare const selectConsumersNames: ((state: {
66
80
  cluster: import("./cluster/types").ClusterState;
67
81
  tenant: import("./tenant/types").TenantState;
68
82
  tooltip: import("../../types/store/tooltip").ITooltipState;
69
- schema: import("./schema/types").SchemaState;
83
+ schema: {
84
+ loading: boolean;
85
+ data: {};
86
+ currentSchemaPath: undefined;
87
+ showPreview: boolean;
88
+ };
70
89
  tenants: import("./tenants/types").TenantsState;
71
- partitions: import("./partitions/types").PartitionsState;
90
+ partitions: {
91
+ selectedConsumer?: string;
92
+ };
72
93
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
73
94
  heatmap: import("../../types/store/heatmap").IHeatmapState;
74
95
  settings: import("./settings/types").SettingsState;
@@ -94,9 +115,16 @@ export declare const selectConsumersNames: ((state: {
94
115
  cluster: import("./cluster/types").ClusterState;
95
116
  tenant: import("./tenant/types").TenantState;
96
117
  tooltip: import("../../types/store/tooltip").ITooltipState;
97
- schema: import("./schema/types").SchemaState;
118
+ schema: {
119
+ loading: boolean;
120
+ data: {};
121
+ currentSchemaPath: undefined;
122
+ showPreview: boolean;
123
+ };
98
124
  tenants: import("./tenants/types").TenantsState;
99
- partitions: import("./partitions/types").PartitionsState;
125
+ partitions: {
126
+ selectedConsumer?: string;
127
+ };
100
128
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
101
129
  heatmap: import("../../types/store/heatmap").IHeatmapState;
102
130
  settings: import("./settings/types").SettingsState;
@@ -127,9 +155,16 @@ export declare const selectConsumersNames: ((state: {
127
155
  cluster: import("./cluster/types").ClusterState;
128
156
  tenant: import("./tenant/types").TenantState;
129
157
  tooltip: import("../../types/store/tooltip").ITooltipState;
130
- schema: import("./schema/types").SchemaState;
158
+ schema: {
159
+ loading: boolean;
160
+ data: {};
161
+ currentSchemaPath: undefined;
162
+ showPreview: boolean;
163
+ };
131
164
  tenants: import("./tenants/types").TenantsState;
132
- partitions: import("./partitions/types").PartitionsState;
165
+ partitions: {
166
+ selectedConsumer?: string;
167
+ };
133
168
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
134
169
  heatmap: import("../../types/store/heatmap").IHeatmapState;
135
170
  settings: import("./settings/types").SettingsState;
@@ -171,9 +206,16 @@ export declare const selectPreparedTopicStats: ((state: {
171
206
  cluster: import("./cluster/types").ClusterState;
172
207
  tenant: import("./tenant/types").TenantState;
173
208
  tooltip: import("../../types/store/tooltip").ITooltipState;
174
- schema: import("./schema/types").SchemaState;
209
+ schema: {
210
+ loading: boolean;
211
+ data: {};
212
+ currentSchemaPath: undefined;
213
+ showPreview: boolean;
214
+ };
175
215
  tenants: import("./tenants/types").TenantsState;
176
- partitions: import("./partitions/types").PartitionsState;
216
+ partitions: {
217
+ selectedConsumer?: string;
218
+ };
177
219
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
178
220
  heatmap: import("../../types/store/heatmap").IHeatmapState;
179
221
  settings: import("./settings/types").SettingsState;
@@ -222,9 +264,16 @@ export declare const selectPreparedTopicStats: ((state: {
222
264
  cluster: import("./cluster/types").ClusterState;
223
265
  tenant: import("./tenant/types").TenantState;
224
266
  tooltip: import("../../types/store/tooltip").ITooltipState;
225
- schema: import("./schema/types").SchemaState;
267
+ schema: {
268
+ loading: boolean;
269
+ data: {};
270
+ currentSchemaPath: undefined;
271
+ showPreview: boolean;
272
+ };
226
273
  tenants: import("./tenants/types").TenantsState;
227
- partitions: import("./partitions/types").PartitionsState;
274
+ partitions: {
275
+ selectedConsumer?: string;
276
+ };
228
277
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
229
278
  heatmap: import("../../types/store/heatmap").IHeatmapState;
230
279
  settings: import("./settings/types").SettingsState;
@@ -246,9 +295,16 @@ export declare const selectPreparedTopicStats: ((state: {
246
295
  cluster: import("./cluster/types").ClusterState;
247
296
  tenant: import("./tenant/types").TenantState;
248
297
  tooltip: import("../../types/store/tooltip").ITooltipState;
249
- schema: import("./schema/types").SchemaState;
298
+ schema: {
299
+ loading: boolean;
300
+ data: {};
301
+ currentSchemaPath: undefined;
302
+ showPreview: boolean;
303
+ };
250
304
  tenants: import("./tenants/types").TenantsState;
251
- partitions: import("./partitions/types").PartitionsState;
305
+ partitions: {
306
+ selectedConsumer?: string;
307
+ };
252
308
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
253
309
  heatmap: import("../../types/store/heatmap").IHeatmapState;
254
310
  settings: import("./settings/types").SettingsState;
@@ -274,9 +330,16 @@ export declare const selectPreparedTopicStats: ((state: {
274
330
  cluster: import("./cluster/types").ClusterState;
275
331
  tenant: import("./tenant/types").TenantState;
276
332
  tooltip: import("../../types/store/tooltip").ITooltipState;
277
- schema: import("./schema/types").SchemaState;
333
+ schema: {
334
+ loading: boolean;
335
+ data: {};
336
+ currentSchemaPath: undefined;
337
+ showPreview: boolean;
338
+ };
278
339
  tenants: import("./tenants/types").TenantsState;
279
- partitions: import("./partitions/types").PartitionsState;
340
+ partitions: {
341
+ selectedConsumer?: string;
342
+ };
280
343
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
281
344
  heatmap: import("../../types/store/heatmap").IHeatmapState;
282
345
  settings: import("./settings/types").SettingsState;
@@ -307,9 +370,16 @@ export declare const selectPreparedTopicStats: ((state: {
307
370
  cluster: import("./cluster/types").ClusterState;
308
371
  tenant: import("./tenant/types").TenantState;
309
372
  tooltip: import("../../types/store/tooltip").ITooltipState;
310
- schema: import("./schema/types").SchemaState;
373
+ schema: {
374
+ loading: boolean;
375
+ data: {};
376
+ currentSchemaPath: undefined;
377
+ showPreview: boolean;
378
+ };
311
379
  tenants: import("./tenants/types").TenantsState;
312
- partitions: import("./partitions/types").PartitionsState;
380
+ partitions: {
381
+ selectedConsumer?: string;
382
+ };
313
383
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
314
384
  heatmap: import("../../types/store/heatmap").IHeatmapState;
315
385
  settings: import("./settings/types").SettingsState;
@@ -351,9 +421,16 @@ export declare const selectPreparedConsumersData: ((state: {
351
421
  cluster: import("./cluster/types").ClusterState;
352
422
  tenant: import("./tenant/types").TenantState;
353
423
  tooltip: import("../../types/store/tooltip").ITooltipState;
354
- schema: import("./schema/types").SchemaState;
424
+ schema: {
425
+ loading: boolean;
426
+ data: {};
427
+ currentSchemaPath: undefined;
428
+ showPreview: boolean;
429
+ };
355
430
  tenants: import("./tenants/types").TenantsState;
356
- partitions: import("./partitions/types").PartitionsState;
431
+ partitions: {
432
+ selectedConsumer?: string;
433
+ };
357
434
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
358
435
  heatmap: import("../../types/store/heatmap").IHeatmapState;
359
436
  settings: import("./settings/types").SettingsState;
@@ -406,9 +483,16 @@ export declare const selectPreparedConsumersData: ((state: {
406
483
  cluster: import("./cluster/types").ClusterState;
407
484
  tenant: import("./tenant/types").TenantState;
408
485
  tooltip: import("../../types/store/tooltip").ITooltipState;
409
- schema: import("./schema/types").SchemaState;
486
+ schema: {
487
+ loading: boolean;
488
+ data: {};
489
+ currentSchemaPath: undefined;
490
+ showPreview: boolean;
491
+ };
410
492
  tenants: import("./tenants/types").TenantsState;
411
- partitions: import("./partitions/types").PartitionsState;
493
+ partitions: {
494
+ selectedConsumer?: string;
495
+ };
412
496
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
413
497
  heatmap: import("../../types/store/heatmap").IHeatmapState;
414
498
  settings: import("./settings/types").SettingsState;
@@ -430,9 +514,16 @@ export declare const selectPreparedConsumersData: ((state: {
430
514
  cluster: import("./cluster/types").ClusterState;
431
515
  tenant: import("./tenant/types").TenantState;
432
516
  tooltip: import("../../types/store/tooltip").ITooltipState;
433
- schema: import("./schema/types").SchemaState;
517
+ schema: {
518
+ loading: boolean;
519
+ data: {};
520
+ currentSchemaPath: undefined;
521
+ showPreview: boolean;
522
+ };
434
523
  tenants: import("./tenants/types").TenantsState;
435
- partitions: import("./partitions/types").PartitionsState;
524
+ partitions: {
525
+ selectedConsumer?: string;
526
+ };
436
527
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
437
528
  heatmap: import("../../types/store/heatmap").IHeatmapState;
438
529
  settings: import("./settings/types").SettingsState;
@@ -458,9 +549,16 @@ export declare const selectPreparedConsumersData: ((state: {
458
549
  cluster: import("./cluster/types").ClusterState;
459
550
  tenant: import("./tenant/types").TenantState;
460
551
  tooltip: import("../../types/store/tooltip").ITooltipState;
461
- schema: import("./schema/types").SchemaState;
552
+ schema: {
553
+ loading: boolean;
554
+ data: {};
555
+ currentSchemaPath: undefined;
556
+ showPreview: boolean;
557
+ };
462
558
  tenants: import("./tenants/types").TenantsState;
463
- partitions: import("./partitions/types").PartitionsState;
559
+ partitions: {
560
+ selectedConsumer?: string;
561
+ };
464
562
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
465
563
  heatmap: import("../../types/store/heatmap").IHeatmapState;
466
564
  settings: import("./settings/types").SettingsState;
@@ -491,9 +589,16 @@ export declare const selectPreparedConsumersData: ((state: {
491
589
  cluster: import("./cluster/types").ClusterState;
492
590
  tenant: import("./tenant/types").TenantState;
493
591
  tooltip: import("../../types/store/tooltip").ITooltipState;
494
- schema: import("./schema/types").SchemaState;
592
+ schema: {
593
+ loading: boolean;
594
+ data: {};
595
+ currentSchemaPath: undefined;
596
+ showPreview: boolean;
597
+ };
495
598
  tenants: import("./tenants/types").TenantsState;
496
- partitions: import("./partitions/types").PartitionsState;
599
+ partitions: {
600
+ selectedConsumer?: string;
601
+ };
497
602
  executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
498
603
  heatmap: import("../../types/store/heatmap").IHeatmapState;
499
604
  settings: import("./settings/types").SettingsState;
@@ -2,6 +2,6 @@ interface CheckTraceParams {
2
2
  url: string;
3
3
  }
4
4
  export declare const traceApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, {
5
- checkTrace: import("@reduxjs/toolkit/query").MutationDefinition<CheckTraceParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", any, "api">;
5
+ checkTrace: import("@reduxjs/toolkit/query").QueryDefinition<CheckTraceParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", any, "api">;
6
6
  }, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
7
7
  export {};
@@ -2,7 +2,7 @@ import { api } from './api';
2
2
  import { setQueryTraceReady } from './executeQuery';
3
3
  export const traceApi = api.injectEndpoints({
4
4
  endpoints: (build) => ({
5
- checkTrace: build.mutation({
5
+ checkTrace: build.query({
6
6
  queryFn: async ({ url }, { signal, dispatch }) => {
7
7
  try {
8
8
  const response = await window.api.checkTrace({ url }, { signal });
@@ -1 +1 @@
1
- {"version":3,"file":"trace.js","sourceRoot":"","sources":["../../../src/store/reducers/trace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,kBAAkB,EAAC,MAAM,gBAAgB,CAAC;AAMlD,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAC,eAAe,CAAC;IACxC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACnB,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC;YACvB,OAAO,EAAE,KAAK,E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AAO,EAAC,KAAK,EAAE,KAAK,EAAC,CAAC;gBAC1B,CAAC;YACL,CAAC;SACJ,CAAC;KACL,CAAC;IACF,gBAAgB,EAAE,OAAO;CAC5B,CAAC,CAAC"}
@@ -19,18 +19,60 @@ export interface TNodesInfo {
19
19
  }
20
20
  export interface TNodeInfo {
21
21
  NodeId: number;
22
+ Database?: string;
22
23
  CpuUsage?: number;
23
24
  DiskSpaceUsage?: number;
24
25
  UptimeSeconds?: number;
26
+ Disconnected?: boolean;
25
27
  SystemState: TSystemStateInfo;
26
28
  PDisks?: TPDiskStateInfo[];
27
29
  VDisks?: TVDiskStateInfo[];
28
30
  Tablets?: TTabletStateInfo[];
31
+ Connections?: number;
32
+ ConnectStatus?: EFlag;
33
+ /** uint64 */
34
+ ReceiveThroughput?: string;
35
+ /** uint64 */
36
+ SendThroughput?: string;
37
+ NetworkUtilization?: number;
38
+ NetworkUtilizationMin?: number;
39
+ NetworkUtilizationMax?: number;
40
+ /** int64 */
41
+ ClockSkewUs?: string;
42
+ /** int64 */
43
+ ClockSkewMinUs?: string;
44
+ /** int64 */
45
+ ClockSkewMaxUs?: string;
46
+ /** int64 */
47
+ ReverseClockSkewUs?: string;
48
+ /** uint64 */
49
+ PingTimeUs?: string;
50
+ /** uint64 */
51
+ PingTimeMinUs?: string;
52
+ /** uint64 */
53
+ PingTimeMaxUs?: string;
54
+ /** uint64 */
55
+ ReversePingTimeUs?: string;
56
+ Peers?: TNodeStateInfo[];
57
+ ReversePeers?: TNodeStateInfo[];
29
58
  }
30
59
  export interface TNodesGroup {
31
60
  GroupName: string;
32
61
  NodeCount: number;
33
62
  }
63
+ export interface TMemoryStats {
64
+ AnonRss: string;
65
+ ExternalConsumption?: string;
66
+ AllocatorCachesMemory?: string;
67
+ SharedCacheConsumption?: string;
68
+ SharedCacheLimit?: string;
69
+ MemTableConsumption?: string;
70
+ MemTableLimit?: string;
71
+ QueryExecutionConsumption?: string;
72
+ QueryExecutionLimit?: string;
73
+ HardLimit?: string;
74
+ SoftLimit?: string;
75
+ }
34
76
  /**
35
77
  * source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/protos/node_whiteboard.proto
36
78
  */
@@ -72,6 +114,7 @@ export interface TSystemStateInfo {
72
114
  Location?: TNodeLocation;
73
115
  CoresUsed?: number;
74
116
  CoresTotal?: number;
117
+ MemoryStats?: TMemoryStats;
75
118
  /**
76
119
  * int64
77
120
  *
@@ -85,6 +128,33 @@ export interface TSystemStateInfo {
85
128
  TotalSessions?: number;
86
129
  NodeName?: string;
87
130
  }
131
+ interface TNodeStateInfo {
132
+ PeerName?: string;
133
+ Connected?: boolean;
134
+ NodeId?: number;
135
+ /** uint64 */
136
+ ChangeTime?: string;
137
+ /** uint32 */
138
+ OutputQueueSize?: string;
139
+ ConnectStatus?: EFlag;
140
+ /** uint64 */
141
+ ConnectTime?: string;
142
+ PeerNodeId?: number;
143
+ /** int64 */
144
+ ClockSkewUs?: string;
145
+ /** uint32 */
146
+ PingTimeUs?: string;
147
+ Utilization?: number;
148
+ ScopeId?: unknown;
149
+ /** uint32 */
150
+ Count?: string;
151
+ /** uint64 */
152
+ BytesWritten?: string;
153
+ /** uint64 */
154
+ WriteThroughput?: string;
155
+ SessionState?: ESessionState;
156
+ }
157
+ type ESessionState = 'CLOSED' | 'PENDING_CONNECTION' | 'CONNECTED';
88
158
  export type PoolName = 'System' | 'User' | 'Batch' | 'IO' | 'IC';
89
159
  export interface TPoolStats {
90
160
  Name?: PoolName;
@@ -123,11 +193,11 @@ declare enum EConfigState {
123
193
  'Consistent' = "Consistent",
124
194
  'Outdated' = "Outdated"
125
195
  }
126
- type NodesType = 'static' | 'dynamic' | 'any';
196
+ type NodesType = 'static' | 'dynamic' | 'storage' | 'any';
127
197
  type NodesWithFilter = 'space' | 'missing' | 'all';
128
- export type NodesGroupByField = 'NodeId' | 'SystemState' | 'Host' | 'NodeName' | 'Database' | 'DiskSpaceUsage' | 'DC' | 'Rack' | 'Missing' | 'Uptime' | 'Version';
129
- export type NodesRequiredField = 'NodeId' | 'SystemState' | 'PDisks' | 'VDisks' | 'Tablets' | 'Host' | 'NodeName' | 'DC' | 'Rack' | 'Version' | 'Uptime' | 'Memory' | 'CPU' | 'LoadAverage' | 'Missing' | 'DiskSpaceUsage' | 'SubDomainKey' | 'DisconnectTime' | 'Database';
130
- export type NodesSortValue = 'NodeId' | 'Host' | 'NodeName' | 'DC' | 'Rack' | 'Version' | 'Uptime' | 'CPU' | 'LoadAverage' | 'Memory' | `Missing` | `DiskSpaceUsage` | `Database` | 'Pools' | 'RAM';
198
+ export type NodesGroupByField = 'NodeId' | 'Host' | 'NodeName' | 'Database' | 'DiskSpaceUsage' | 'DC' | 'Rack' | 'Missing' | 'Uptime' | 'Version' | 'SystemState' | 'ConnectStatus' | 'NetworkUtilization' | 'ClockSkew' | 'PingTime';
199
+ export type NodesRequiredField = 'NodeId' | 'SystemState' | 'PDisks' | 'VDisks' | 'Tablets' | 'Peers' | 'Host' | 'NodeName' | 'DC' | 'Rack' | 'Version' | 'Uptime' | 'Memory' | 'MemoryDetailed' | 'CPU' | 'LoadAverage' | 'Missing' | 'DiskSpaceUsage' | 'SubDomainKey' | 'DisconnectTime' | 'Database' | `Connections` | `ConnectStatus` | `NetworkUtilization` | `ClockSkew` | `PingTime` | `SendThroughput` | `ReceiveThroughput`;
200
+ export type NodesSortValue = 'NodeId' | 'Host' | 'NodeName' | 'DC' | 'Rack' | 'Version' | 'Uptime' | 'CPU' | 'LoadAverage' | 'Memory' | 'MemoryDetailed' | `Missing` | `DiskSpaceUsage` | `Database` | 'SystemState' | `Connections` | `ConnectStatus` | `NetworkUtilization` | `ClockSkew` | `PingTime` | `SendThroughput` | `ReceiveThroughput`;
131
201
  export type NodesSort = BackendSortParam<NodesSortValue>;
132
202
  export interface NodesRequestParams {
133
203
  /** @deprecated use database instead */
@@ -1 +1 @@
1
- {"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../../src/types/api/nodes.ts"],"names":[],"mappings":"AA4IA,IAAK,YAGJ;AAHD,WAAK,YAAY;IACb,yCAA2B,CAAA;IAC3B,qCAAuB,CAAA;AAC3B,CAAC,EAHI,YAAY,KAAZ,YAAY,QAGhB"}
1
+ {"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../../src/types/api/nodes.ts"],"names":[],"mappings":"AA6NA,IAAK,YAGJ;AAHD,WAAK,YAAY;IACb,yCAA2B,CAAA;IAC3B,qCAAuB,CAAA;AAC3B,CAAC,EAHI,YAAY,KAAZ,YAAY,QAGhB"}
@@ -1,4 +1,3 @@
1
- import type { changeUserInput, goToNextQuery, goToPreviousQuery, saveQueryToHistory, setQueryHistoryFilter, setQueryResult, setQueryTraceReady, setTenantPath, updateQueryInHistory } from '../../store/reducers/executeQuery';
2
1
  import type { PreparedExplainResponse } from '../../store/reducers/explainQuery/types';
3
2
  import type { IQueryResult } from './query';
4
3
  export interface QueryInHistory {
@@ -30,7 +29,9 @@ export type ExplainQueryResult = {
30
29
  export type QueryResult = ExecuteQueryResult | ExplainQueryResult;
31
30
  export interface ExecuteQueryState {
32
31
  input: string;
33
- result?: QueryResult;
32
+ result?: QueryResult & {
33
+ isTraceReady?: boolean;
34
+ };
34
35
  history: {
35
36
  queries: QueryInHistory[];
36
37
  currentIndex: number;
@@ -38,8 +39,4 @@ export interface ExecuteQueryState {
38
39
  };
39
40
  tenantPath?: string;
40
41
  }
41
- export type ExecuteQueryAction = ReturnType<typeof goToNextQuery> | ReturnType<typeof goToPreviousQuery> | ReturnType<typeof changeUserInput> | ReturnType<typeof setQueryResult> | ReturnType<typeof saveQueryToHistory> | ReturnType<typeof updateQueryInHistory> | ReturnType<typeof setTenantPath> | ReturnType<typeof setQueryHistoryFilter> | ReturnType<typeof setQueryTraceReady>;
42
- export interface ExecuteQueryStateSlice {
43
- executeQuery: ExecuteQueryState;
44
- }
45
42
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"executeQuery.js","sourceRoot":"","sources":["../../../src/types/store/executeQuery.ts"],"names":[],"mappings":"AAuBA,MAAM,CAAN,IAAY,UAGX;AAHD,WAAY,UAAU;IAClB,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;AACvB,CAAC,EAHW,UAAU,KAAV,UAAU,QAGrB"}
1
+ {"version":3,"file":"executeQuery.js","sourceRoot":"","sources":["../../../src/types/store/executeQuery.ts"],"names":[],"mappings":"AAYA,MAAM,CAAN,IAAY,UAGX;AAHD,WAAY,UAAU;IAClB,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;AACvB,CAAC,EAHW,UAAU,KAAV,UAAU,QAGrB"}
@@ -102,6 +102,8 @@ export declare const LAST_USED_QUERY_ACTION_KEY = "last_used_query_action";
102
102
  export declare const PARTITIONS_HIDDEN_COLUMNS_KEY = "partitionsHiddenColumns";
103
103
  export declare const TENANT_INITIAL_PAGE_KEY = "saved_tenant_initial_tab";
104
104
  export declare const USE_PAGINATED_TABLES_KEY = "useBackendParamsForTables";
105
+ export declare const ENABLE_NETWORK_TABLE_KEY = "enableNetworkTable";
106
+ export declare const USE_SHOW_PLAN_SVG_KEY = "useShowPlanToSvg";
105
107
  export declare const SHOW_DOMAIN_DATABASE_KEY = "showDomainDatabase";
106
108
  export declare const USE_CLUSTER_BALANCER_AS_BACKEND_KEY = "useClusterBalancerAsBacked";
107
109
  export declare const ENABLE_AUTOCOMPLETE = "enableAutocomplete";
@@ -105,6 +105,8 @@ export const TENANT_INITIAL_PAGE_KEY = 'saved_tenant_initial_tab';
105
105
  // Setting to use paginated tables
106
106
  // Old key value for backward compatibility
107
107
  export const USE_PAGINATED_TABLES_KEY = 'useBackendParamsForTables';
108
+ export const ENABLE_NETWORK_TABLE_KEY = 'enableNetworkTable';
109
+ export const USE_SHOW_PLAN_SVG_KEY = 'useShowPlanToSvg';
108
110
  // Setting to hide domain in database list
109
111
  export const SHOW_DOMAIN_DATABASE_KEY = 'showDomainDatabase';
110
112
  export const USE_CLUSTER_BALANCER_AS_BACKEND_KEY = 'useClusterBalancerAsBacked';
@@ -1 +1 @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b,CAAC;AAEX,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC3C,GAAG,sBAAsB;IACzB,UAAU,EAAE,OAAO;IACnB,aAAa,EAAE,KAAK;CACd,CAAC;AAEX,MAAM,CAAC,MAAM,4BAA4B,GAAG,wBAAwB,CAAC;AACrE,MAAM,CAAC,MAAM,iCAAiC,GAAG,+BAA+B,CAAC;AACjF,MAAM,CAAC,MAAM,qCAAqC,GAAG,+BAA+B,CAAC;AAErF,MAAM,CAAC,MAAM,0BAA0B,GAAG,wBAAwB,CAAC;AAEnE,MAAM,CAAC,MAAM,6BAA6B,GAAG,yBAAyB,CAAC;AAEvE,sDAAsD;AACtD,MAAM,CAAC,MAAM,uBAAuB,GAAG,0BAA0B,CAAC;AAElE,kCAAkC;AAClC,2CAA2C;AAC3C,MAAM,CAAC,MAAM,wBAAwB,GAAG,2BAA2B,CAAC;AAEpE,MAAM,CAAC,MAAM,wBAAwB,GAAG,oBAAoB,CAAC;AAE7D,MAAM,CAAC,MAAM,qBAAqB,GAAG,kBAAkB,CAAC;AAExD,0CAA0C;AAC1C,MAAM,CAAC,MAAM,wBAAwB,GAAG,oBAAoB,CAAC;AAE7D,MAAM,CAAC,MAAM,mCAAmC,GAAG,4BAA4B,CAAC;AAEhF,MAAM,CAAC,MAAM,mBAAmB,GAAG,oBAAoB,CAAC;AAExD,MAAM,CAAC,MAAM,qBAAqB,GAAG,qBAAqB,CAAC;AAE3D,MAAM,CAAC,MAAM,0BAA0B,GAAG,qBAAqB,CAAC;AAEhE,MAAM,CAAC,MAAM,mCAAmC,GAAG,iCAAiC,CAAC"}
@@ -11,7 +11,7 @@ export declare function formatNumericValues(value?: number, total?: number, size
11
11
  export declare const formatStorageValuesToGb: (value?: number, total?: number) => string[];
12
12
  export declare const formatStorageValuesToTb: (value?: number, total?: number) => string[];
13
13
  export declare const formatNumber: (number?: unknown) => string;
14
- export declare const formatPercent: (number?: unknown) => string;
14
+ export declare const formatPercent: (number?: unknown, precision?: number) => string;
15
15
  export declare const formatSecondsToHours: (seconds: number) => string;
16
16
  export declare const roundToPrecision: (value: number | string, precision?: number) => number;
17
17
  export declare const formatCPU: (value?: number | string) => string | undefined;
@@ -55,12 +55,16 @@ export const formatNumber = (number) => {
55
55
  // "," in format is delimiter sign, not delimiter itself
56
56
  return configuredNumeral(number).format('0,0.[00000]');
57
57
  };
58
- export const formatPercent = (number) => {
58
+ export const formatPercent = (number, precision = 2) => {
59
59
  if (!isNumeric(number)) {
60
60
  return '';
61
61
  }
62
- const configuredNumber = configuredNumeral(number);
63
- const format = '0%';
62
+ // Numeral doesn't work well with very low numbers (for example 2e-27)
63
+ // We can receive such numbers from backend in float fields
64
+ // So we need apply toFixed before configuration
65
+ const preparedNumber = Number(number).toFixed(precision);
66
+ const configuredNumber = configuredNumeral(preparedNumber);
67
+ const format = '0.[00]%';
64
68
  return configuredNumber.format(format);
65
69
  };
66
70
  export const formatSecondsToHours = (seconds) => {
@@ -68,12 +72,14 @@ export const formatSecondsToHours = (seconds) => {
68
72
  return `${formatNumber(hours)} hours`;
69
73
  };
70
74
  export const roundToPrecision = (value, precision = 0) => {
71
- let [digits] = String(value).split('.');
72
- if (Number(value) < 1) {
75
+ // Prevent "-" counting as digit in negative values
76
+ const valueAbs = Math.abs(Number(value));
77
+ let [digits] = String(valueAbs).split('.');
78
+ if (Number(valueAbs) < 1) {
73
79
  digits = '';
74
80
  }
75
81
  if (digits.length >= precision) {
76
- return Math.round(Number(value));
82
+ return Number(Number(value).toFixed(0));
77
83
  }
78
84
  return Number(Number(value).toFixed(precision - digits.length));
79
85
  };
@@ -1 +1 @@
1
- {"version":3,"file":"dataFormatters.js","sourceRoot":"","sources":["../../../src/utils/dataFormatters/dataFormatters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,wBAAwB,CAAC;AAGrD,OAAO,EACH,WAAW,IAAI,iBAAiB,EAChC,4BAA4B,GAC/B,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAC,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4 @@
1
+ {
2
+ "action_apply": "Don't save",
3
+ "context_unsaved-changes-warning": "You have unsaved changes in query editor.\nDo you want to proceed?"
4
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: (key: "action_apply" | "context_unsaved-changes-warning", params?: import("@gravity-ui/i18n").Params) => string;
2
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { registerKeysets } from '../../../i18n';
2
+ import en from './en.json';
3
+ const COMPONENT = 'ydb-change-input-confirmation';
4
+ export default registerKeysets(COMPONENT, { en });
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/utils/hooks/withConfirmation/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,eAAe,CAAC;AAE9C,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,+BAA+B,CAAC;AAElD,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare function getConfirmation(): Promise<boolean>;
2
+ export declare function changeInputWithConfirmation<T>(callback: (args: T) => void): (args: T) => Promise<void>;
3
+ export declare function useChangeInputWithConfirmation<T>(callback: (args: T) => void): (args: T) => void;