ydb-embedded-ui 6.9.2 → 6.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. package/README.md +7 -10
  2. package/dist/components/NodeHostWrapper/NodeHostWrapper.scss +1 -1
  3. package/dist/components/{VirtualTable/VirtualTable.d.ts → PaginatedTable/PaginatedTable.d.ts} +3 -3
  4. package/dist/components/{VirtualTable/VirtualTable.js → PaginatedTable/PaginatedTable.js} +4 -4
  5. package/dist/components/{VirtualTable/VirtualTable.scss → PaginatedTable/PaginatedTable.scss} +11 -11
  6. package/dist/components/PaginatedTable/ResizeablePaginatedTable.d.ts +6 -0
  7. package/dist/components/{VirtualTable/ResizeableVirtualTable.js → PaginatedTable/ResizeablePaginatedTable.js} +3 -3
  8. package/dist/components/{VirtualTable → PaginatedTable}/i18n/index.js +1 -1
  9. package/dist/components/PaginatedTable/index.d.ts +4 -0
  10. package/dist/components/PaginatedTable/index.js +4 -0
  11. package/dist/components/{VirtualTable → PaginatedTable}/reducer.d.ts +3 -3
  12. package/dist/components/{VirtualTable → PaginatedTable}/reducer.js +1 -1
  13. package/dist/components/PaginatedTable/shared.js +2 -0
  14. package/dist/components/{VirtualTable → PaginatedTable}/types.d.ts +2 -2
  15. package/dist/components/TableWithControlsLayout/TableWithControlsLayout.scss +1 -1
  16. package/dist/components/VDisk/VDisk.js +19 -6
  17. package/dist/containers/App/App.d.ts +1 -1
  18. package/dist/containers/App/App.js +2 -2
  19. package/dist/containers/App/App.scss +1 -1
  20. package/dist/containers/AppWithClusters/AppWithClusters.js +1 -10
  21. package/dist/containers/AsideNavigation/Navigation.d.ts +1 -1
  22. package/dist/containers/Heatmap/Histogram/Histogram.js +3 -3
  23. package/dist/containers/Heatmap/util.js +2 -1
  24. package/dist/containers/Nodes/NodesWrapper.js +5 -5
  25. package/dist/containers/Nodes/{VirtualNodes.d.ts → PaginatedNodes.d.ts} +1 -1
  26. package/dist/containers/Nodes/{VirtualNodes.js → PaginatedNodes.js} +3 -3
  27. package/dist/containers/Nodes/getNodesColumns.d.ts +2 -2
  28. package/dist/containers/Storage/PDisk/PDisk.js +10 -2
  29. package/dist/containers/Storage/{VirtualStorage.d.ts → PaginatedStorage.d.ts} +2 -2
  30. package/dist/containers/Storage/{VirtualStorage.js → PaginatedStorage.js} +5 -5
  31. package/dist/containers/Storage/Storage.js +3 -12
  32. package/dist/containers/Storage/StorageGroups/{VirtualStorageGroups.d.ts → PaginatedStorageGroups.d.ts} +3 -3
  33. package/dist/containers/Storage/StorageGroups/{VirtualStorageGroups.js → PaginatedStorageGroups.js} +3 -3
  34. package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.d.ts +2 -2
  35. package/dist/containers/Storage/StorageNodes/{VirtualStorageNodes.d.ts → PaginatedStorageNodes.d.ts} +3 -3
  36. package/dist/containers/Storage/StorageNodes/{VirtualStorageNodes.js → PaginatedStorageNodes.js} +3 -3
  37. package/dist/containers/Storage/StorageWrapper.js +5 -5
  38. package/dist/containers/Tenant/Diagnostics/Diagnostics.scss +1 -1
  39. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.scss +0 -5
  40. package/dist/containers/Tenant/Query/Query.js +2 -8
  41. package/dist/containers/Tenant/Query/Query.scss +1 -1
  42. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.d.ts +2 -0
  43. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +23 -36
  44. package/dist/containers/Tenant/Query/QueryEditor/keybindings.d.ts +9 -0
  45. package/dist/containers/Tenant/Query/QueryEditor/keybindings.js +13 -0
  46. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.d.ts +1 -3
  47. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +3 -3
  48. package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.d.ts +7 -6
  49. package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js +55 -47
  50. package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.scss +2 -32
  51. package/dist/containers/Tenant/Query/SaveQuery/i18n/en.json +13 -0
  52. package/dist/containers/Tenant/Query/SaveQuery/i18n/index.d.ts +2 -0
  53. package/dist/containers/Tenant/Query/SaveQuery/i18n/index.js +4 -0
  54. package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.d.ts +1 -4
  55. package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.js +5 -3
  56. package/dist/containers/Tenant/Query/i18n/en.json +2 -1
  57. package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
  58. package/dist/containers/Tenant/Query/utils/useSavedQueries.d.ts +2 -0
  59. package/dist/containers/Tenant/Query/utils/useSavedQueries.js +5 -0
  60. package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +6 -2
  61. package/dist/containers/Tenant/utils/schemaActions.d.ts +1 -1
  62. package/dist/containers/Tenant/utils/schemaActions.js +10 -4
  63. package/dist/containers/UserSettings/UserSettings.d.ts +1 -1
  64. package/dist/containers/UserSettings/UserSettings.js +1 -2
  65. package/dist/containers/UserSettings/i18n/en.json +9 -4
  66. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  67. package/dist/containers/UserSettings/settings.d.ts +7 -2
  68. package/dist/containers/UserSettings/settings.js +38 -14
  69. package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.scss +1 -2
  70. package/dist/lib.d.ts +1 -1
  71. package/dist/lib.js +1 -1
  72. package/dist/services/settings.d.ts +2 -0
  73. package/dist/services/settings.js +4 -2
  74. package/dist/store/configureStore.d.ts +4 -14
  75. package/dist/store/defaultStore.d.ts +2 -7
  76. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +20 -20
  77. package/dist/store/reducers/index.d.ts +3 -13
  78. package/dist/store/reducers/index.js +2 -2
  79. package/dist/store/reducers/node/selectors.d.ts +1 -1
  80. package/dist/store/reducers/nodesList.d.ts +1 -1
  81. package/dist/store/reducers/queryActions/queryActions.d.ts +34 -0
  82. package/dist/store/reducers/queryActions/queryActions.js +58 -0
  83. package/dist/store/reducers/queryActions/types.d.ts +5 -0
  84. package/dist/store/reducers/queryActions/types.js +1 -0
  85. package/dist/store/reducers/storage/storage.js +1 -1
  86. package/dist/store/reducers/tablets.d.ts +5 -5
  87. package/dist/store/reducers/tabletsFilters.d.ts +1 -1
  88. package/dist/store/reducers/tenants/selectors.d.ts +9 -9
  89. package/dist/store/reducers/topic.d.ts +15 -15
  90. package/dist/styles/mixins.scss +8 -0
  91. package/dist/utils/constants.d.ts +3 -1
  92. package/dist/utils/constants.js +5 -2
  93. package/dist/utils/disks/prepareDisks.js +4 -2
  94. package/dist/utils/hooks/index.d.ts +0 -2
  95. package/dist/utils/hooks/index.js +0 -2
  96. package/package.json +1 -1
  97. package/dist/components/VirtualTable/ResizeableVirtualTable.d.ts +0 -6
  98. package/dist/components/VirtualTable/index.d.ts +0 -3
  99. package/dist/components/VirtualTable/index.js +0 -3
  100. package/dist/components/VirtualTable/shared.js +0 -2
  101. package/dist/containers/AppWithClusters/i18n/en.json +0 -4
  102. package/dist/containers/AppWithClusters/i18n/index.d.ts +0 -2
  103. package/dist/containers/AppWithClusters/i18n/index.js +0 -5
  104. package/dist/containers/AppWithClusters/i18n/ru.json +0 -4
  105. package/dist/store/reducers/saveQuery.d.ts +0 -12
  106. package/dist/store/reducers/saveQuery.js +0 -25
  107. package/dist/utils/hooks/useNodesRequestParams.d.ts +0 -15
  108. package/dist/utils/hooks/useNodesRequestParams.js +0 -23
  109. package/dist/utils/hooks/useStorageRequestParams.d.ts +0 -8
  110. package/dist/utils/hooks/useStorageRequestParams.js +0 -20
  111. /package/dist/components/{VirtualTable → PaginatedTable}/ResizeHandler.d.ts +0 -0
  112. /package/dist/components/{VirtualTable → PaginatedTable}/ResizeHandler.js +0 -0
  113. /package/dist/components/{VirtualTable → PaginatedTable}/TableChunk.d.ts +0 -0
  114. /package/dist/components/{VirtualTable → PaginatedTable}/TableChunk.js +0 -0
  115. /package/dist/components/{VirtualTable → PaginatedTable}/TableHead.d.ts +0 -0
  116. /package/dist/components/{VirtualTable → PaginatedTable}/TableHead.js +0 -0
  117. /package/dist/components/{VirtualTable → PaginatedTable}/TableRow.d.ts +0 -0
  118. /package/dist/components/{VirtualTable → PaginatedTable}/TableRow.js +0 -0
  119. /package/dist/components/{VirtualTable → PaginatedTable}/constants.d.ts +0 -0
  120. /package/dist/components/{VirtualTable → PaginatedTable}/constants.js +0 -0
  121. /package/dist/components/{VirtualTable → PaginatedTable}/i18n/en.json +0 -0
  122. /package/dist/components/{VirtualTable → PaginatedTable}/i18n/index.d.ts +0 -0
  123. /package/dist/components/{VirtualTable → PaginatedTable}/i18n/ru.json +0 -0
  124. /package/dist/components/{VirtualTable → PaginatedTable}/shared.d.ts +0 -0
  125. /package/dist/components/{VirtualTable → PaginatedTable}/types.js +0 -0
  126. /package/dist/components/{VirtualTable → PaginatedTable}/useIntersectionObserver.d.ts +0 -0
  127. /package/dist/components/{VirtualTable → PaginatedTable}/useIntersectionObserver.js +0 -0
  128. /package/dist/components/{VirtualTable → PaginatedTable}/utils.d.ts +0 -0
  129. /package/dist/components/{VirtualTable → PaginatedTable}/utils.js +0 -0
@@ -24,7 +24,7 @@ export declare const selectIssuesTreesRoots: ((state: {
24
24
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
25
25
  authentication: import("../authentication/types").AuthenticationState;
26
26
  header: import("../header/types").HeaderState;
27
- saveQuery: string | null;
27
+ queryActions: import("../queryActions/types").QueryActionsState;
28
28
  fullscreen: boolean;
29
29
  clusters: import("../clusters/types").ClustersFilters;
30
30
  }, database: string) => IssueLog[]) & {
@@ -56,7 +56,7 @@ export declare const selectIssuesTreesRoots: ((state: {
56
56
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
57
57
  authentication: import("../authentication/types").AuthenticationState;
58
58
  header: import("../header/types").HeaderState;
59
- saveQuery: string | null;
59
+ queryActions: import("../queryActions/types").QueryActionsState;
60
60
  fullscreen: boolean;
61
61
  clusters: import("../clusters/types").ClustersFilters;
62
62
  }, database: string) => IssueLog[]) & {
@@ -81,7 +81,7 @@ export declare const selectIssuesTreesRoots: ((state: {
81
81
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
82
82
  authentication: import("../authentication/types").AuthenticationState;
83
83
  header: import("../header/types").HeaderState;
84
- saveQuery: string | null;
84
+ queryActions: import("../queryActions/types").QueryActionsState;
85
85
  fullscreen: boolean;
86
86
  clusters: import("../clusters/types").ClustersFilters;
87
87
  }, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
@@ -110,7 +110,7 @@ export declare const selectIssuesTreesRoots: ((state: {
110
110
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
111
111
  authentication: import("../authentication/types").AuthenticationState;
112
112
  header: import("../header/types").HeaderState;
113
- saveQuery: string | null;
113
+ queryActions: import("../queryActions/types").QueryActionsState;
114
114
  fullscreen: boolean;
115
115
  clusters: import("../clusters/types").ClustersFilters;
116
116
  }, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
@@ -144,7 +144,7 @@ export declare const selectIssuesTreesRoots: ((state: {
144
144
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
145
145
  authentication: import("../authentication/types").AuthenticationState;
146
146
  header: import("../header/types").HeaderState;
147
- saveQuery: string | null;
147
+ queryActions: import("../queryActions/types").QueryActionsState;
148
148
  fullscreen: boolean;
149
149
  clusters: import("../clusters/types").ClustersFilters;
150
150
  }, (_state: RootState, database: string) => (state: import("@reduxjs/toolkit/query").RootState<{
@@ -189,7 +189,7 @@ export declare const selectIssuesTrees: ((state: {
189
189
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
190
190
  authentication: import("../authentication/types").AuthenticationState;
191
191
  header: import("../header/types").HeaderState;
192
- saveQuery: string | null;
192
+ queryActions: import("../queryActions/types").QueryActionsState;
193
193
  fullscreen: boolean;
194
194
  clusters: import("../clusters/types").ClustersFilters;
195
195
  }, database: string) => IssuesTree[]) & {
@@ -221,7 +221,7 @@ export declare const selectIssuesTrees: ((state: {
221
221
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
222
222
  authentication: import("../authentication/types").AuthenticationState;
223
223
  header: import("../header/types").HeaderState;
224
- saveQuery: string | null;
224
+ queryActions: import("../queryActions/types").QueryActionsState;
225
225
  fullscreen: boolean;
226
226
  clusters: import("../clusters/types").ClustersFilters;
227
227
  }, database: string) => IssueLog[]) & {
@@ -246,7 +246,7 @@ export declare const selectIssuesTrees: ((state: {
246
246
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
247
247
  authentication: import("../authentication/types").AuthenticationState;
248
248
  header: import("../header/types").HeaderState;
249
- saveQuery: string | null;
249
+ queryActions: import("../queryActions/types").QueryActionsState;
250
250
  fullscreen: boolean;
251
251
  clusters: import("../clusters/types").ClustersFilters;
252
252
  }, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
@@ -275,7 +275,7 @@ export declare const selectIssuesTrees: ((state: {
275
275
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
276
276
  authentication: import("../authentication/types").AuthenticationState;
277
277
  header: import("../header/types").HeaderState;
278
- saveQuery: string | null;
278
+ queryActions: import("../queryActions/types").QueryActionsState;
279
279
  fullscreen: boolean;
280
280
  clusters: import("../clusters/types").ClustersFilters;
281
281
  }, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
@@ -309,7 +309,7 @@ export declare const selectIssuesTrees: ((state: {
309
309
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
310
310
  authentication: import("../authentication/types").AuthenticationState;
311
311
  header: import("../header/types").HeaderState;
312
- saveQuery: string | null;
312
+ queryActions: import("../queryActions/types").QueryActionsState;
313
313
  fullscreen: boolean;
314
314
  clusters: import("../clusters/types").ClustersFilters;
315
315
  }, (_state: RootState, database: string) => (state: import("@reduxjs/toolkit/query").RootState<{
@@ -345,7 +345,7 @@ export declare const selectIssuesTrees: ((state: {
345
345
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
346
346
  authentication: import("../authentication/types").AuthenticationState;
347
347
  header: import("../header/types").HeaderState;
348
- saveQuery: string | null;
348
+ queryActions: import("../queryActions/types").QueryActionsState;
349
349
  fullscreen: boolean;
350
350
  clusters: import("../clusters/types").ClustersFilters;
351
351
  }, database: string) => IssueLog[]) & {
@@ -377,7 +377,7 @@ export declare const selectIssuesTrees: ((state: {
377
377
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
378
378
  authentication: import("../authentication/types").AuthenticationState;
379
379
  header: import("../header/types").HeaderState;
380
- saveQuery: string | null;
380
+ queryActions: import("../queryActions/types").QueryActionsState;
381
381
  fullscreen: boolean;
382
382
  clusters: import("../clusters/types").ClustersFilters;
383
383
  }, database: string) => IssueLog[]) & {
@@ -402,7 +402,7 @@ export declare const selectIssuesTrees: ((state: {
402
402
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
403
403
  authentication: import("../authentication/types").AuthenticationState;
404
404
  header: import("../header/types").HeaderState;
405
- saveQuery: string | null;
405
+ queryActions: import("../queryActions/types").QueryActionsState;
406
406
  fullscreen: boolean;
407
407
  clusters: import("../clusters/types").ClustersFilters;
408
408
  }, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
@@ -431,7 +431,7 @@ export declare const selectIssuesTrees: ((state: {
431
431
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
432
432
  authentication: import("../authentication/types").AuthenticationState;
433
433
  header: import("../header/types").HeaderState;
434
- saveQuery: string | null;
434
+ queryActions: import("../queryActions/types").QueryActionsState;
435
435
  fullscreen: boolean;
436
436
  clusters: import("../clusters/types").ClustersFilters;
437
437
  }, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
@@ -465,7 +465,7 @@ export declare const selectIssuesTrees: ((state: {
465
465
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
466
466
  authentication: import("../authentication/types").AuthenticationState;
467
467
  header: import("../header/types").HeaderState;
468
- saveQuery: string | null;
468
+ queryActions: import("../queryActions/types").QueryActionsState;
469
469
  fullscreen: boolean;
470
470
  clusters: import("../clusters/types").ClustersFilters;
471
471
  }, (_state: RootState, database: string) => (state: import("@reduxjs/toolkit/query").RootState<{
@@ -518,7 +518,7 @@ export declare const selectIssuesStatistics: ((state: {
518
518
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
519
519
  authentication: import("../authentication/types").AuthenticationState;
520
520
  header: import("../header/types").HeaderState;
521
- saveQuery: string | null;
521
+ queryActions: import("../queryActions/types").QueryActionsState;
522
522
  fullscreen: boolean;
523
523
  clusters: import("../clusters/types").ClustersFilters;
524
524
  }, database: string) => [StatusFlag, number][]) & {
@@ -550,7 +550,7 @@ export declare const selectIssuesStatistics: ((state: {
550
550
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
551
551
  authentication: import("../authentication/types").AuthenticationState;
552
552
  header: import("../header/types").HeaderState;
553
- saveQuery: string | null;
553
+ queryActions: import("../queryActions/types").QueryActionsState;
554
554
  fullscreen: boolean;
555
555
  clusters: import("../clusters/types").ClustersFilters;
556
556
  }, database: string) => IssueLog[]) & {
@@ -575,7 +575,7 @@ export declare const selectIssuesStatistics: ((state: {
575
575
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
576
576
  authentication: import("../authentication/types").AuthenticationState;
577
577
  header: import("../header/types").HeaderState;
578
- saveQuery: string | null;
578
+ queryActions: import("../queryActions/types").QueryActionsState;
579
579
  fullscreen: boolean;
580
580
  clusters: import("../clusters/types").ClustersFilters;
581
581
  }, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
@@ -604,7 +604,7 @@ export declare const selectIssuesStatistics: ((state: {
604
604
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
605
605
  authentication: import("../authentication/types").AuthenticationState;
606
606
  header: import("../header/types").HeaderState;
607
- saveQuery: string | null;
607
+ queryActions: import("../queryActions/types").QueryActionsState;
608
608
  fullscreen: boolean;
609
609
  clusters: import("../clusters/types").ClustersFilters;
610
610
  }, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
@@ -638,7 +638,7 @@ export declare const selectIssuesStatistics: ((state: {
638
638
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
639
639
  authentication: import("../authentication/types").AuthenticationState;
640
640
  header: import("../header/types").HeaderState;
641
- saveQuery: string | null;
641
+ queryActions: import("../queryActions/types").QueryActionsState;
642
642
  fullscreen: boolean;
643
643
  clusters: import("../clusters/types").ClustersFilters;
644
644
  }, (_state: RootState, database: string) => (state: import("@reduxjs/toolkit/query").RootState<{
@@ -23,12 +23,7 @@ export declare const rootReducer: {
23
23
  readonly page: import("./header/types").Page;
24
24
  readonly options: {} | import("./header/types").TabletsBreadcrumbsOptions | import("./header/types").TenantBreadcrumbsOptions | import("./header/types").ClusterBreadcrumbsOptions | import("./header/types").TabletBreadcrumbsOptions | import("./header/types").NodeBreadcrumbsOptions;
25
25
  }>;
26
- saveQuery: import("redux").Reducer<string | null, {
27
- readonly type: "SET_QUERY_NAME_TO_EDIT";
28
- readonly data: string;
29
- } | {
30
- readonly type: "CLEAR_QUERY_NAME_TO_EDIT";
31
- }>;
26
+ queryActions: import("redux").Reducer<import("./queryActions/types").QueryActionsState>;
32
27
  fullscreen: (state: boolean | undefined, action: ReturnType<typeof import("./fullscreen").enableFullscreen> | ReturnType<typeof import("./fullscreen").disableFullscreen>) => boolean;
33
28
  clusters: import("redux").Reducer<import("./clusters/types").ClustersFilters>;
34
29
  };
@@ -49,7 +44,7 @@ declare const combinedReducer: import("redux").Reducer<{
49
44
  shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
50
45
  authentication: import("./authentication/types").AuthenticationState;
51
46
  header: import("./header/types").HeaderState;
52
- saveQuery: string | null;
47
+ queryActions: import("./queryActions/types").QueryActionsState;
53
48
  fullscreen: boolean;
54
49
  clusters: import("./clusters/types").ClustersFilters;
55
50
  }, import("redux").UnknownAction | import("../../types/store/tooltip").ITooltipAction | {
@@ -59,12 +54,7 @@ declare const combinedReducer: import("redux").Reducer<{
59
54
  readonly type: "header/SET_HEADER_BREADCRUMBS";
60
55
  readonly page: import("./header/types").Page;
61
56
  readonly options: {} | import("./header/types").TabletsBreadcrumbsOptions | import("./header/types").TenantBreadcrumbsOptions | import("./header/types").ClusterBreadcrumbsOptions | import("./header/types").TabletBreadcrumbsOptions | import("./header/types").NodeBreadcrumbsOptions;
62
- } | ({
63
- readonly type: "SET_QUERY_NAME_TO_EDIT";
64
- readonly data: string;
65
57
  } | {
66
- readonly type: "CLEAR_QUERY_NAME_TO_EDIT";
67
- }) | {
68
58
  readonly type: "ENABLE_FULLSCREEN_MODE";
69
59
  } | {
70
60
  readonly type: "DISABLE_FULLSCREEN_MODE";
@@ -85,7 +75,7 @@ declare const combinedReducer: import("redux").Reducer<{
85
75
  shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters | undefined;
86
76
  authentication: never;
87
77
  header: never;
88
- saveQuery: never;
78
+ queryActions: import("./queryActions/types").QueryActionsState | undefined;
89
79
  fullscreen: never;
90
80
  clusters: import("./clusters/types").ClustersFilters | undefined;
91
81
  }>>;
@@ -9,7 +9,7 @@ import fullscreen from './fullscreen';
9
9
  import header from './header/header';
10
10
  import heatmap from './heatmap';
11
11
  import partitions from './partitions/partitions';
12
- import saveQuery from './saveQuery';
12
+ import queryActions from './queryActions/queryActions';
13
13
  import schema from './schema/schema';
14
14
  import settings from './settings/settings';
15
15
  import shardsWorkload from './shardsWorkload/shardsWorkload';
@@ -35,7 +35,7 @@ export const rootReducer = {
35
35
  shardsWorkload,
36
36
  authentication,
37
37
  header,
38
- saveQuery,
38
+ queryActions,
39
39
  fullscreen,
40
40
  clusters,
41
41
  };
@@ -17,7 +17,7 @@ export declare const selectNodeStructure: ((state: {
17
17
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
18
18
  authentication: import("../authentication/types").AuthenticationState;
19
19
  header: import("../header/types").HeaderState;
20
- saveQuery: string | null;
20
+ queryActions: import("../queryActions/types").QueryActionsState;
21
21
  fullscreen: boolean;
22
22
  clusters: import("../clusters/types").ClustersFilters;
23
23
  }, nodeId: string) => PreparedNodeStructure) & {
@@ -19,7 +19,7 @@ export declare const selectNodesMap: ((state: {
19
19
  shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
20
20
  authentication: import("./authentication/types").AuthenticationState;
21
21
  header: import("./header/types").HeaderState;
22
- saveQuery: string | null;
22
+ queryActions: import("./queryActions/types").QueryActionsState;
23
23
  fullscreen: boolean;
24
24
  clusters: import("./clusters/types").ClustersFilters;
25
25
  }) => import("../../types/store/nodesList").NodesMap | undefined) & {
@@ -0,0 +1,34 @@
1
+ import type { PayloadAction } from '@reduxjs/toolkit';
2
+ import type { AppDispatch, GetState } from '../../defaultStore';
3
+ import type { QueryActions, QueryActionsState } from './types';
4
+ export declare const slice: import("@reduxjs/toolkit").Slice<QueryActionsState, {
5
+ setQueryNameToEdit: (state: {
6
+ queryName: string | null;
7
+ queryAction: QueryActions;
8
+ }, action: PayloadAction<string>) => void;
9
+ clearQueryNameToEdit: (state: {
10
+ queryName: string | null;
11
+ queryAction: QueryActions;
12
+ }) => void;
13
+ setQueryAction: (state: {
14
+ queryName: string | null;
15
+ queryAction: QueryActions;
16
+ }, action: PayloadAction<QueryActions>) => void;
17
+ }, "queryActions", "queryActions", {
18
+ selectQueryName: (state: QueryActionsState) => string | null;
19
+ selectQueryAction: (state: QueryActionsState) => QueryActions;
20
+ }>;
21
+ declare const _default: import("redux").Reducer<QueryActionsState>;
22
+ export default _default;
23
+ export declare const setQueryNameToEdit: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "queryActions/setQueryNameToEdit">, clearQueryNameToEdit: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"queryActions/clearQueryNameToEdit">, setQueryAction: import("@reduxjs/toolkit").ActionCreatorWithPayload<QueryActions, "queryActions/setQueryAction">;
24
+ export declare const selectQueryName: import("reselect").Selector<{
25
+ queryActions: QueryActionsState;
26
+ }, string | null, []> & {
27
+ unwrapped: (state: QueryActionsState) => string | null;
28
+ }, selectQueryAction: import("reselect").Selector<{
29
+ queryActions: QueryActionsState;
30
+ }, QueryActions, []> & {
31
+ unwrapped: (state: QueryActionsState) => QueryActions;
32
+ };
33
+ export declare function deleteSavedQuery(queryName: string): (dispatch: AppDispatch, getState: GetState) => void;
34
+ export declare function saveQuery(queryName: string | null): (dispatch: AppDispatch, getState: GetState) => void;
@@ -0,0 +1,58 @@
1
+ import { createSlice } from '@reduxjs/toolkit';
2
+ import { SAVED_QUERIES_KEY } from '../../../utils/constants';
3
+ import { getSettingValue, setSettingValue } from '../settings/settings';
4
+ const initialState = {
5
+ queryName: null,
6
+ queryAction: 'idle',
7
+ };
8
+ export const slice = createSlice({
9
+ name: 'queryActions',
10
+ initialState,
11
+ reducers: {
12
+ setQueryNameToEdit: (state, action) => {
13
+ state.queryName = action.payload;
14
+ },
15
+ clearQueryNameToEdit: (state) => {
16
+ state.queryName = null;
17
+ },
18
+ setQueryAction: (state, action) => {
19
+ state.queryAction = action.payload;
20
+ },
21
+ },
22
+ selectors: {
23
+ selectQueryName: (state) => state.queryName,
24
+ selectQueryAction: (state) => state.queryAction,
25
+ },
26
+ });
27
+ export default slice.reducer;
28
+ export const { setQueryNameToEdit, clearQueryNameToEdit, setQueryAction } = slice.actions;
29
+ export const { selectQueryName, selectQueryAction } = slice.selectors;
30
+ export function deleteSavedQuery(queryName) {
31
+ return function deleteSavedQueryThunk(dispatch, getState) {
32
+ var _a;
33
+ const state = getState();
34
+ const savedQueries = (_a = getSettingValue(state, SAVED_QUERIES_KEY)) !== null && _a !== void 0 ? _a : [];
35
+ const newSavedQueries = savedQueries.filter((el) => el.name.toLowerCase() !== queryName.toLowerCase());
36
+ dispatch(setSettingValue(SAVED_QUERIES_KEY, newSavedQueries));
37
+ };
38
+ }
39
+ export function saveQuery(queryName) {
40
+ return function saveQueryThunk(dispatch, getState) {
41
+ var _a;
42
+ const state = getState();
43
+ const savedQueries = (_a = getSettingValue(state, SAVED_QUERIES_KEY)) !== null && _a !== void 0 ? _a : [];
44
+ const queryBody = state.executeQuery.input;
45
+ if (queryName === null) {
46
+ return;
47
+ }
48
+ const nextSavedQueries = [...savedQueries];
49
+ const query = nextSavedQueries.find((el) => el.name.toLowerCase() === queryName.toLowerCase());
50
+ if (query) {
51
+ query.body = queryBody;
52
+ }
53
+ else {
54
+ nextSavedQueries.push({ name: queryName, body: queryBody });
55
+ }
56
+ dispatch(setSettingValue(SAVED_QUERIES_KEY, nextSavedQueries));
57
+ };
58
+ }
@@ -0,0 +1,5 @@
1
+ export type QueryActions = 'save' | 'idle';
2
+ export interface QueryActionsState {
3
+ queryName: string | null;
4
+ queryAction: QueryActions;
5
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -6,7 +6,7 @@ export const storageApi = api.injectEndpoints({
6
6
  getStorageNodesInfo: builder.query({
7
7
  queryFn: async (params, { signal }) => {
8
8
  try {
9
- const result = await window.api.getNodes({ storage: true, type: 'static', ...params }, { signal });
9
+ const result = await window.api.getNodes({ storage: true, type: 'static', tablets: false, ...params }, { signal });
10
10
  return { data: prepareStorageNodesResponse(result) };
11
11
  }
12
12
  catch (error) {
@@ -24,7 +24,7 @@ export declare const selectGetTabletsInfo: ((state: {
24
24
  shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
25
25
  authentication: import("./authentication/types").AuthenticationState;
26
26
  header: import("./header/types").HeaderState;
27
- saveQuery: string | null;
27
+ queryActions: import("./queryActions/types").QueryActionsState;
28
28
  fullscreen: boolean;
29
29
  clusters: import("./clusters/types").ClustersFilters;
30
30
  }, params: TabletsApiRequestParams) => import("../../types/api/tablet").TEvTabletStateResponse | undefined) & {
@@ -49,7 +49,7 @@ export declare const selectGetTabletsInfo: ((state: {
49
49
  shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
50
50
  authentication: import("./authentication/types").AuthenticationState;
51
51
  header: import("./header/types").HeaderState;
52
- saveQuery: string | null;
52
+ queryActions: import("./queryActions/types").QueryActionsState;
53
53
  fullscreen: boolean;
54
54
  clusters: import("./clusters/types").ClustersFilters;
55
55
  }, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
@@ -72,7 +72,7 @@ export declare const selectGetTabletsInfo: ((state: {
72
72
  shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
73
73
  authentication: import("./authentication/types").AuthenticationState;
74
74
  header: import("./header/types").HeaderState;
75
- saveQuery: string | null;
75
+ queryActions: import("./queryActions/types").QueryActionsState;
76
76
  fullscreen: boolean;
77
77
  clusters: import("./clusters/types").ClustersFilters;
78
78
  }, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
@@ -100,7 +100,7 @@ export declare const selectGetTabletsInfo: ((state: {
100
100
  shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
101
101
  authentication: import("./authentication/types").AuthenticationState;
102
102
  header: import("./header/types").HeaderState;
103
- saveQuery: string | null;
103
+ queryActions: import("./queryActions/types").QueryActionsState;
104
104
  fullscreen: boolean;
105
105
  clusters: import("./clusters/types").ClustersFilters;
106
106
  }, (_state: RootState, params: TabletsApiRequestParams) => (state: import("@reduxjs/toolkit/query").RootState<{
@@ -131,7 +131,7 @@ export declare const selectTabletsWithFqdn: ((state: {
131
131
  shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
132
132
  authentication: import("./authentication/types").AuthenticationState;
133
133
  header: import("./header/types").HeaderState;
134
- saveQuery: string | null;
134
+ queryActions: import("./queryActions/types").QueryActionsState;
135
135
  fullscreen: boolean;
136
136
  clusters: import("./clusters/types").ClustersFilters;
137
137
  }, params: TabletsApiRequestParams) => (TTabletStateInfo & {
@@ -19,7 +19,7 @@ export declare const getFilteredTablets: ((state: {
19
19
  shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
20
20
  authentication: import("./authentication/types").AuthenticationState;
21
21
  header: import("./header/types").HeaderState;
22
- saveQuery: string | null;
22
+ queryActions: import("./queryActions/types").QueryActionsState;
23
23
  fullscreen: boolean;
24
24
  clusters: import("./clusters/types").ClustersFilters;
25
25
  }, _params: TabletsApiRequestParams, _stateFilter: string[], typeFilter: string[]) => TTabletStateInfo[]) & {
@@ -18,7 +18,7 @@ export declare const selectTenants: ((state: {
18
18
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
19
19
  authentication: import("../authentication/types").AuthenticationState;
20
20
  header: import("../header/types").HeaderState;
21
- saveQuery: string | null;
21
+ queryActions: import("../queryActions/types").QueryActionsState;
22
22
  fullscreen: boolean;
23
23
  clusters: import("../clusters/types").ClustersFilters;
24
24
  }, clusterName: string | undefined) => PreparedTenant[]) & {
@@ -43,7 +43,7 @@ export declare const selectTenants: ((state: {
43
43
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
44
44
  authentication: import("../authentication/types").AuthenticationState;
45
45
  header: import("../header/types").HeaderState;
46
- saveQuery: string | null;
46
+ queryActions: import("../queryActions/types").QueryActionsState;
47
47
  fullscreen: boolean;
48
48
  clusters: import("../clusters/types").ClustersFilters;
49
49
  }, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
@@ -70,7 +70,7 @@ export declare const selectTenants: ((state: {
70
70
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
71
71
  authentication: import("../authentication/types").AuthenticationState;
72
72
  header: import("../header/types").HeaderState;
73
- saveQuery: string | null;
73
+ queryActions: import("../queryActions/types").QueryActionsState;
74
74
  fullscreen: boolean;
75
75
  clusters: import("../clusters/types").ClustersFilters;
76
76
  }, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
@@ -102,7 +102,7 @@ export declare const selectTenants: ((state: {
102
102
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
103
103
  authentication: import("../authentication/types").AuthenticationState;
104
104
  header: import("../header/types").HeaderState;
105
- saveQuery: string | null;
105
+ queryActions: import("../queryActions/types").QueryActionsState;
106
106
  fullscreen: boolean;
107
107
  clusters: import("../clusters/types").ClustersFilters;
108
108
  }, (_state: RootState, clusterName: string | undefined) => (state: import("@reduxjs/toolkit/query").RootState<{
@@ -138,7 +138,7 @@ export declare const selectFilteredTenants: ((state: {
138
138
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
139
139
  authentication: import("../authentication/types").AuthenticationState;
140
140
  header: import("../header/types").HeaderState;
141
- saveQuery: string | null;
141
+ queryActions: import("../queryActions/types").QueryActionsState;
142
142
  fullscreen: boolean;
143
143
  clusters: import("../clusters/types").ClustersFilters;
144
144
  } & {
@@ -172,7 +172,7 @@ export declare const selectFilteredTenants: ((state: {
172
172
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
173
173
  authentication: import("../authentication/types").AuthenticationState;
174
174
  header: import("../header/types").HeaderState;
175
- saveQuery: string | null;
175
+ queryActions: import("../queryActions/types").QueryActionsState;
176
176
  fullscreen: boolean;
177
177
  clusters: import("../clusters/types").ClustersFilters;
178
178
  }, clusterName: string | undefined) => PreparedTenant[]) & {
@@ -197,7 +197,7 @@ export declare const selectFilteredTenants: ((state: {
197
197
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
198
198
  authentication: import("../authentication/types").AuthenticationState;
199
199
  header: import("../header/types").HeaderState;
200
- saveQuery: string | null;
200
+ queryActions: import("../queryActions/types").QueryActionsState;
201
201
  fullscreen: boolean;
202
202
  clusters: import("../clusters/types").ClustersFilters;
203
203
  }, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
@@ -224,7 +224,7 @@ export declare const selectFilteredTenants: ((state: {
224
224
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
225
225
  authentication: import("../authentication/types").AuthenticationState;
226
226
  header: import("../header/types").HeaderState;
227
- saveQuery: string | null;
227
+ queryActions: import("../queryActions/types").QueryActionsState;
228
228
  fullscreen: boolean;
229
229
  clusters: import("../clusters/types").ClustersFilters;
230
230
  }, resultFuncArgs_1: (state: import("@reduxjs/toolkit/query").RootState<{
@@ -256,7 +256,7 @@ export declare const selectFilteredTenants: ((state: {
256
256
  shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters;
257
257
  authentication: import("../authentication/types").AuthenticationState;
258
258
  header: import("../header/types").HeaderState;
259
- saveQuery: string | null;
259
+ queryActions: import("../queryActions/types").QueryActionsState;
260
260
  fullscreen: boolean;
261
261
  clusters: import("../clusters/types").ClustersFilters;
262
262
  }, (_state: RootState, clusterName: string | undefined) => (state: import("@reduxjs/toolkit/query").RootState<{