ydb-embedded-ui 6.36.1 → 6.37.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. package/dist/containers/Cluster/Cluster.js +2 -2
  2. package/dist/containers/Cluster/Cluster.js.map +1 -1
  3. package/dist/containers/Nodes/Nodes.d.ts +13 -3
  4. package/dist/containers/Nodes/Nodes.js +71 -39
  5. package/dist/containers/Nodes/Nodes.js.map +1 -1
  6. package/dist/containers/Nodes/{PaginatedNodesTable.d.ts → NodesTable.d.ts} +2 -2
  7. package/dist/containers/Nodes/{PaginatedNodesTable.js → NodesTable.js} +2 -2
  8. package/dist/containers/Nodes/NodesTable.js.map +1 -0
  9. package/dist/containers/Storage/i18n/index.d.ts +1 -1
  10. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +2 -2
  11. package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
  12. package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.d.ts +2 -2
  13. package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.js +2 -2
  14. package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.js.map +1 -1
  15. package/dist/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.js +31 -26
  16. package/dist/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.js.map +1 -1
  17. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +3 -7
  18. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
  19. package/dist/containers/Tenant/Query/QueryResult/QueryResultViewer.d.ts +14 -0
  20. package/dist/containers/Tenant/Query/QueryResult/QueryResultViewer.js +188 -0
  21. package/dist/containers/Tenant/Query/QueryResult/QueryResultViewer.js.map +1 -0
  22. package/dist/containers/Tenant/Query/{ExplainResult/ExplainResult.scss → QueryResult/QueryResultViewer.scss} +3 -15
  23. package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/Ast/Ast.d.ts +1 -1
  24. package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/Ast/Ast.js +1 -1
  25. package/dist/containers/Tenant/Query/QueryResult/components/Ast/Ast.js.map +1 -0
  26. package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/Ast/Ast.scss +1 -1
  27. package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/Graph/Graph.d.ts +2 -2
  28. package/dist/containers/Tenant/Query/QueryResult/components/Graph/Graph.js +16 -0
  29. package/dist/containers/Tenant/Query/QueryResult/components/Graph/Graph.js.map +1 -0
  30. package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/Graph/Graph.scss +0 -6
  31. package/dist/containers/Tenant/Query/{ExecuteResult → QueryResult/components/PlanToSvgButton}/PlanToSvgButton.d.ts +1 -1
  32. package/dist/containers/Tenant/Query/{ExecuteResult → QueryResult/components/PlanToSvgButton}/PlanToSvgButton.js +2 -2
  33. package/dist/containers/Tenant/Query/QueryResult/components/PlanToSvgButton/PlanToSvgButton.js.map +1 -0
  34. package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.d.ts +7 -0
  35. package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.js +12 -0
  36. package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.js.map +1 -0
  37. package/dist/containers/Tenant/Query/{ExplainResult/components/TextExplain/TextExplain.scss → QueryResult/components/QueryJSONViewer/QueryJSONViewer.scss} +4 -6
  38. package/dist/containers/Tenant/Query/QueryResult/components/QueryResultError/QueryResultError.d.ts +4 -0
  39. package/dist/containers/Tenant/Query/QueryResult/components/QueryResultError/QueryResultError.js +20 -0
  40. package/dist/containers/Tenant/Query/QueryResult/components/QueryResultError/QueryResultError.js.map +1 -0
  41. package/dist/containers/Tenant/Query/QueryResult/components/QueryResultError/QueryResultError.scss +5 -0
  42. package/dist/containers/Tenant/Query/QueryResult/components/ResultSetsViewer/ResultSetsViewer.d.ts +9 -0
  43. package/dist/containers/Tenant/Query/QueryResult/components/ResultSetsViewer/ResultSetsViewer.js +30 -0
  44. package/dist/containers/Tenant/Query/QueryResult/components/ResultSetsViewer/ResultSetsViewer.js.map +1 -0
  45. package/dist/containers/Tenant/Query/QueryResult/components/ResultSetsViewer/ResultSetsViewer.scss +36 -0
  46. package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/MetricsCell.js.map +1 -0
  47. package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/OperationCell.js.map +1 -0
  48. package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/OperationParams.js.map +1 -0
  49. package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/SimplifiedPlan.js.map +1 -0
  50. package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/SimplifiedPlan.scss +1 -1
  51. package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/types.js.map +1 -0
  52. package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/utils.js +1 -1
  53. package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/utils.js.map +1 -0
  54. package/dist/containers/Tenant/Query/QueryResult/components/Stub/Stub.d.ts +6 -0
  55. package/dist/containers/Tenant/Query/QueryResult/components/Stub/Stub.js +8 -0
  56. package/dist/containers/Tenant/Query/QueryResult/components/Stub/Stub.js.map +1 -0
  57. package/dist/containers/Tenant/Query/QueryResult/components/Stub/Stub.scss +3 -0
  58. package/dist/containers/Tenant/Query/{ExecuteResult → QueryResult/components/TraceButton}/TraceButton.js +4 -4
  59. package/dist/containers/Tenant/Query/QueryResult/components/TraceButton/TraceButton.js.map +1 -0
  60. package/dist/containers/Tenant/Query/{ExecuteResult → QueryResult}/i18n/en.json +3 -0
  61. package/dist/containers/Tenant/Query/QueryResult/i18n/index.d.ts +2 -0
  62. package/dist/containers/Tenant/Query/QueryResult/i18n/index.js.map +1 -0
  63. package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js +2 -2
  64. package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js.map +1 -1
  65. package/dist/containers/Tenant/utils/schemaActions.d.ts +4 -4
  66. package/dist/containers/Tenant/utils/schemaActions.js +19 -16
  67. package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
  68. package/dist/containers/Tenant/utils/schemaQueryTemplates.d.ts +1 -1
  69. package/dist/containers/Tenant/utils/schemaQueryTemplates.js +3 -3
  70. package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -1
  71. package/dist/services/api.d.ts +2 -1
  72. package/dist/services/api.js +2 -2
  73. package/dist/services/api.js.map +1 -1
  74. package/dist/store/reducers/overview/overview.d.ts +1 -0
  75. package/dist/store/reducers/overview/overview.js +2 -1
  76. package/dist/store/reducers/overview/overview.js.map +1 -1
  77. package/dist/store/reducers/query/prepareQueryData.d.ts +0 -3
  78. package/dist/store/reducers/query/prepareQueryData.js +42 -30
  79. package/dist/store/reducers/query/prepareQueryData.js.map +1 -1
  80. package/dist/store/reducers/tableSchemaData.d.ts +1 -1
  81. package/dist/store/reducers/tableSchemaData.js +5 -1
  82. package/dist/store/reducers/tableSchemaData.js.map +1 -1
  83. package/dist/store/reducers/viewSchema/viewSchema.d.ts +1 -0
  84. package/dist/store/reducers/viewSchema/viewSchema.js +2 -1
  85. package/dist/store/reducers/viewSchema/viewSchema.js.map +1 -1
  86. package/dist/types/api/autocomplete.d.ts +7 -0
  87. package/dist/types/api/autocomplete.js +3 -1
  88. package/dist/types/api/autocomplete.js.map +1 -1
  89. package/dist/utils/monaco/yql/generateSuggestions.js +31 -11
  90. package/dist/utils/monaco/yql/generateSuggestions.js.map +1 -1
  91. package/package.json +3 -3
  92. package/dist/containers/Nodes/NodesWrapper.d.ts +0 -9
  93. package/dist/containers/Nodes/NodesWrapper.js +0 -13
  94. package/dist/containers/Nodes/NodesWrapper.js.map +0 -1
  95. package/dist/containers/Nodes/PaginatedNodes.d.ts +0 -19
  96. package/dist/containers/Nodes/PaginatedNodes.js +0 -91
  97. package/dist/containers/Nodes/PaginatedNodes.js.map +0 -1
  98. package/dist/containers/Nodes/PaginatedNodesTable.js.map +0 -1
  99. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.d.ts +0 -12
  100. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +0 -154
  101. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +0 -1
  102. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +0 -89
  103. package/dist/containers/Tenant/Query/ExecuteResult/PlanToSvgButton.js.map +0 -1
  104. package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js.map +0 -1
  105. package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +0 -2
  106. package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.js.map +0 -1
  107. package/dist/containers/Tenant/Query/ExecuteResult/utils.d.ts +0 -21
  108. package/dist/containers/Tenant/Query/ExecuteResult/utils.js +0 -40
  109. package/dist/containers/Tenant/Query/ExecuteResult/utils.js.map +0 -1
  110. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.d.ts +0 -20
  111. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js +0 -120
  112. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js.map +0 -1
  113. package/dist/containers/Tenant/Query/ExplainResult/components/Ast/Ast.js.map +0 -1
  114. package/dist/containers/Tenant/Query/ExplainResult/components/Graph/Graph.js +0 -15
  115. package/dist/containers/Tenant/Query/ExplainResult/components/Graph/Graph.js.map +0 -1
  116. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/MetricsCell.js.map +0 -1
  117. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/OperationCell.js.map +0 -1
  118. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/OperationParams.js.map +0 -1
  119. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.js.map +0 -1
  120. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/types.js.map +0 -1
  121. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.js.map +0 -1
  122. package/dist/containers/Tenant/Query/ExplainResult/components/TextExplain/TextExplain.d.ts +0 -8
  123. package/dist/containers/Tenant/Query/ExplainResult/components/TextExplain/TextExplain.js +0 -12
  124. package/dist/containers/Tenant/Query/ExplainResult/components/TextExplain/TextExplain.js.map +0 -1
  125. package/dist/containers/Tenant/Query/ExplainResult/i18n/en.json +0 -9
  126. package/dist/containers/Tenant/Query/ExplainResult/i18n/index.d.ts +0 -2
  127. package/dist/containers/Tenant/Query/ExplainResult/i18n/index.js +0 -5
  128. package/dist/containers/Tenant/Query/ExplainResult/i18n/index.js.map +0 -1
  129. /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/MetricsCell.d.ts +0 -0
  130. /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/MetricsCell.js +0 -0
  131. /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/OperationCell.d.ts +0 -0
  132. /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/OperationCell.js +0 -0
  133. /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/OperationParams.d.ts +0 -0
  134. /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/OperationParams.js +0 -0
  135. /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/SimplifiedPlan.d.ts +0 -0
  136. /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/SimplifiedPlan.js +0 -0
  137. /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/types.d.ts +0 -0
  138. /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/types.js +0 -0
  139. /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/utils.d.ts +0 -0
  140. /package/dist/containers/Tenant/Query/{ExecuteResult → QueryResult/components/TraceButton}/TraceButton.d.ts +0 -0
  141. /package/dist/containers/Tenant/Query/{ExecuteResult → QueryResult}/i18n/index.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"tableSchemaData.js","sourceRoot":"","sources":["../../../src/store/reducers/tableSchemaData.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,iBAAiB,EACjB,iBAAiB,GACpB,MAAM,yDAAyD,CAAC;AAEjE,OAAO,EAAC,UAAU,EAAC,MAAM,sCAAsC,CAAC;AAEhE,OAAO,EAAC,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,WAAW,EAAC,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAQtD,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CAAC,eAAe,CAAC;IAClD,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACnB,kBAAkB,EAAE,KAAK,CAAC,QAAQ,CAAyC;YACvE,OAAO,EAAE,KAAK,EAAE,EAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAC,EAAE,EAAC,QAAQ,EAAC,EAAE,EAAE;gBACpD,IAAI,CAAC;oBACD,IAAI,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;wBACnB,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAC3B,aAAa,CAAC,SAAS,CAAC,aAAa,CAAC,QAAQ,CAAC;4BAC3C,QAAQ,EAAE,UAAU;4BACpB,IAAI;yBACP,CAAC,CACL,CAAC;wBAEF,IAAI,oBAAoB,CAAC,QAAQ,CAAC,EAAE,CAAC;4BACjC,OAAO,EAAC,KAAK,EAAE,QAAQ,EAAC,CAAC;wBAC7B,CAAC;wBAED,MAAM,MAAM,GA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AO,EAAE,KAAK,EAAE,EAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAC,EAAE,EAAC,QAAQ,EAAC,EAAE,EAAE;gBACpD,IAAI,CAAC;oBACD,IAAI,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;wBACnB,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAC3B,aAAa,CAAC,SAAS,CAAC,aAAa,CAAC,QAAQ,CAAC;4BAC3C,QAAQ,EAAE,UAAU;4BACpB,IAAI;4BACJ,OAAO,EAAE,oBAAoB;yBAChC,CAAC,CACL,CAAC;wBAEF,IAAI,oBAAoB,CAAC,QAAQ,CAAC,EAAE,CAAC;4BACjC,OAAO,EAAC,KAAK,EAAE,QAAQ,EAAC,CAAC;wBAC7B,CAAC;wBAED,MAAM,MAAM,GAAG,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;wBAChD,OAAO,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;oBAC1B,CAAC;oBAED,MAAM,UAAU,GAAG,MAAM,QAAQ,CAC7B,WAAW,CAAC,SAAS,CAAC,WAAW,CAAC,QAAQ,CAAC;wBACvC,IAAI;wBACJ,QAAQ,EAAE,UAAU;wBACpB,OAAO,EAAE,oBAAoB;qBAChC,CAAC,CACL,CAAC;oBACF,MAAM,MAAM,GAAG,iBAAiB,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;oBAExD,OAAO,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;gBAC1B,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;SACJ,CAAC;KACL,CAAC;CACL,CAAC,CAAC"}
@@ -2,5 +2,6 @@ export declare const viewSchemaApi: import("@reduxjs/toolkit/query").Api<import(
2
2
  getViewSchema: import("@reduxjs/toolkit/query").QueryDefinition<{
3
3
  database: string;
4
4
  path: string;
5
+ timeout?: number;
5
6
  }, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("../../../types/api/query").ColumnType[] | undefined, "api">;
6
7
  }, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
@@ -6,13 +6,14 @@ function createViewSchemaQuery(path) {
6
6
  export const viewSchemaApi = api.injectEndpoints({
7
7
  endpoints: (build) => ({
8
8
  getViewSchema: build.query({
9
- queryFn: async ({ database, path }) => {
9
+ queryFn: async ({ database, path, timeout, }) => {
10
10
  var _a, _b;
11
11
  try {
12
12
  const response = await window.api.sendQuery({
13
13
  query: createViewSchemaQuery(path),
14
14
  database,
15
15
  action: 'execute-scan',
16
+ timeout,
16
17
  }, { withRetries: true });
17
18
  if (isQueryErrorResponse(response)) {
18
19
  return { error: response };
@@ -1 +1 @@
1
- {"version":3,"file":"viewSchema.js","sourceRoot":"","sources":["../../../../src/store/reducers/viewSchema/viewSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAE3B,SAAS,qBAAqB,CAAC,IAAY;IACvC,OAAO,mBAAmB,IAAI,YAAY,CAAC;AAC/C,CAAC;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAC,eAAe,CAAC;IAC7C,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACnB,aAAa,EAAE,KAAK,CAAC,KAAK,CAAC;YACvB,OAAO,EAAE,KAAK,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAmC,EAAE,EAAE;;gBAClE,IAAI,CAAC;oBACD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,SAAS,CAC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CACvC;wBACI,KAAK,EAAE,qBAAqB,CAAC,IAAI,CAAC;wBAClC,QAAQ;wBACR,MAAM,EAAE,cAAc;wBACtB,OAAO;qBACV,EACD,EAAC,WAAW,EAAE,IAAI,EAAC,CACtB,CAAC;oBAEF,IAAI,oBAAoB,CAAC,QAAQ,CAAC,EAAE,CAAC;wBACjC,OAAO,EAAC,KAAK,EAAE,QAAQ,EAAC,CAAC;oBAC7B,CAAC;oBAED,OAAO,EAAC,IAAI,EAAE,CAAA,MAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,0CAAG,CAAC,CAAC,0CAAE,OAAO,KAAI,EAAE,EAAC,CAAC;gBACxD,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAE,KAAK,EAAC,CAAC;gBAC1B,CAAC;YACL,CAAC;YACD,YAAY,EAAE,CAAC,KAAK,CAAC;SACxB,CAAC;KACL,CAAC;IACF,gBAAgB,EAAE,OAAO;CAC5B,CAAC,CAAC"}
@@ -17,5 +17,12 @@ export interface TAutocompleteEntity {
17
17
  Type: AutocompleteEntityType;
18
18
  Parent: string;
19
19
  }
20
+ export interface AutocompleteColumn extends TAutocompleteEntity {
21
+ Type: 'column';
22
+ PKIndex?: number;
23
+ NotNull?: boolean;
24
+ Default?: number;
25
+ }
26
+ export declare function isAutocompleteColumn(entity: TAutocompleteEntity): entity is AutocompleteColumn;
20
27
  export type AutocompleteEntityType = 'unknown' | 'dir' | 'table' | 'pers_queue_group' | 'sub_domain' | 'rtmr_volume' | 'block_store_volume' | 'kesus' | 'solomon_volume' | 'table_index' | 'ext_sub_domain' | 'file_store' | 'column_store' | 'column_table' | 'cdc_stream' | 'sequence' | 'replication' | 'blob_depot' | 'external_table' | 'external_data_source' | 'view' | 'column' | 'index';
21
28
  export {};
@@ -1,2 +1,4 @@
1
- export {};
1
+ export function isAutocompleteColumn(entity) {
2
+ return entity.Type === 'column';
3
+ }
2
4
  //# sourceMappingURL=autocomplete.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"autocomplete.js","sourceRoot":"","sources":["../../../src/types/api/autocomplete.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"autocomplete.js","sourceRoot":"","sources":["../../../src/types/api/autocomplete.ts"],"names":[],"mappings":"AA6BA,MAAM,UAAU,oBAAoB,CAAC,MAA2B;IAC5D,OAAO,MAAM,CAAC,IAAI,KAAK,QAAQ,CAAC;AACpC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
2
+ import { isAutocompleteColumn } from '../../../types/api/autocomplete';
2
3
  import { AggregateFunctions, EntitySettings, Pragmas, SimpleFunctions, SimpleTypes, TableFunction, Udfs, WindowFunctions, } from './constants';
3
4
  const CompletionItemKind = {
4
5
  Method: 0,
@@ -134,6 +135,22 @@ async function getUdfs() {
134
135
  async function getSimpleTypes() {
135
136
  return SimpleTypes;
136
137
  }
138
+ function getColumnDetails(col) {
139
+ const { PKIndex, NotNull, Default } = col;
140
+ const details = [];
141
+ if (PKIndex !== undefined) {
142
+ details.push(`PK${PKIndex}`);
143
+ }
144
+ if (NotNull) {
145
+ details.push('NN');
146
+ }
147
+ if (Default) {
148
+ details.push('Default');
149
+ }
150
+ const detailsString = details.length ? details.join(', ') : '';
151
+ // return `Column${detailsString}`;
152
+ return detailsString;
153
+ }
137
154
  export async function generateColumnsSuggestion(rangeToInsertSuggestion, suggestColumns, database) {
138
155
  var _a, _b, _c;
139
156
  if (!(suggestColumns === null || suggestColumns === void 0 ? void 0 : suggestColumns.tables)) {
@@ -170,9 +187,10 @@ export async function generateColumnsSuggestion(rangeToInsertSuggestion, suggest
170
187
  return acc;
171
188
  }, {});
172
189
  autocompleteResponse.Result.Entities.forEach((col) => {
173
- if (col.Type !== 'column') {
190
+ if (!isAutocompleteColumn(col)) {
174
191
  return;
175
192
  }
193
+ const columnDetails = getColumnDetails(col);
176
194
  const normalizedName = wrapStringToBackticks(col.Name);
177
195
  const normalizedParentName = normalizeEntityPrefix(col.Parent, database);
178
196
  const aliases = tableNameToAliasMap[normalizedParentName];
@@ -181,9 +199,9 @@ export async function generateColumnsSuggestion(rangeToInsertSuggestion, suggest
181
199
  aliases.forEach((a) => {
182
200
  const columnNameSuggestion = `${a}.${normalizedName}`;
183
201
  suggestions.push({
184
- label: columnNameSuggestion,
202
+ label: { label: columnNameSuggestion, description: columnDetails },
185
203
  insertText: columnNameSuggestion,
186
- kind: CompletionItemKind.Field,
204
+ kind: CompletionItemKind.Variable,
187
205
  detail: 'Column',
188
206
  range: rangeToInsertSuggestion,
189
207
  sortText: suggestionIndexToWeight(getSuggestionIndex('suggestColumns')) +
@@ -198,9 +216,12 @@ export async function generateColumnsSuggestion(rangeToInsertSuggestion, suggest
198
216
  columnNameSuggestion = `${wrapStringToBackticks(normalizedParentName)}.${normalizedName}`;
199
217
  }
200
218
  suggestions.push({
201
- label: columnNameSuggestion,
219
+ label: {
220
+ label: columnNameSuggestion,
221
+ description: columnDetails,
222
+ },
202
223
  insertText: columnNameSuggestion,
203
- kind: CompletionItemKind.Field,
224
+ kind: CompletionItemKind.Variable,
204
225
  detail: 'Column',
205
226
  range: rangeToInsertSuggestion,
206
227
  sortText: suggestionIndexToWeight(getSuggestionIndex('suggestColumns')) +
@@ -210,12 +231,11 @@ export async function generateColumnsSuggestion(rangeToInsertSuggestion, suggest
210
231
  }
211
232
  });
212
233
  if (normalizedColumns && normalizedColumns.length > 0) {
213
- const allColumsn = normalizedColumns.join(', ');
234
+ const allColumns = normalizedColumns.join(', ');
214
235
  suggestions.push({
215
- label: allColumsn,
216
- insertText: allColumsn,
217
- kind: CompletionItemKind.Field,
218
- detail: 'All columns',
236
+ label: allColumns,
237
+ insertText: allColumns,
238
+ kind: CompletionItemKind.Variable,
219
239
  range: rangeToInsertSuggestion,
220
240
  sortText: suggestionIndexToWeight(getSuggestionIndex('suggestAllColumns')),
221
241
  });
@@ -229,7 +249,7 @@ export function generateColumnAliasesSuggestion(rangeToInsertSuggestion, suggest
229
249
  return suggestColumnAliases === null || suggestColumnAliases === void 0 ? void 0 : suggestColumnAliases.map((columnAliasSuggestion) => ({
230
250
  label: columnAliasSuggestion.name,
231
251
  insertText: columnAliasSuggestion.name,
232
- kind: CompletionItemKind.Field,
252
+ kind: CompletionItemKind.Variable,
233
253
  detail: 'Column alias',
234
254
  range: rangeToInsertSuggestion,
235
255
  sortText: suggestionIndexToWeight(getSuggestionIndex('suggestColumnAliases')),
@@ -1 +1 @@
1
- {"version":3,"file":"generateSuggestions.js","sourceRoot":"","sources":["../../../../src/utils/monaco/yql/generateSuggestions.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,MAAM,wCAAwC,CAAC;AAIjE,OAAO,EACH,kBAAkB,EAClB,cAAc,EACd,OAAO,EACP,eAAe,EACf,WAAW,EACX,aAAa,EACb,IAAI,EACJ,eAAe,GAClB,MAAM,aAAa,CAAC;AAErB,MAAM,kBAAkB,GAEpB;IACA,MAAM,EAAE,CAAC;IACT,QAAQ,EAAE,CAAC;IACX,WAAW,EAAE,CAAC;IACd,KAAK,EAAE,CAAC;IACR,QAAQ,EAAE,CAAC;IACX,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,CAAC;IACT,SAAS,EAAE,CAAC;IACZ,MAAM,EAAE,CAAC;IACT,QAAQ,EAAE,CAAC;IACX,KAAK,EAAE,EAAE;IACT,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;IACT,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,EAAE;IACd,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,EAAE;IACR,SAAS,EAAE,EAAE;IACb,WAAW,EAAE,EAAE;IACf,MAAM,EAAE,EAAE;IACV,aAAa,EAAE,EAAE;IACjB,IAAI,EAAE,EAAE;IACR,KAAK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GAAG,QAAQ,CAAC,MAAM,CAAC;IAExC,MAAM,aAAa,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAEzC,OAAO,aAAa,CAAC,MAAM,CAAC,cAAc,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;AACpE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-embedded-ui",
3
- "version": "6.36.1",
3
+ "version": "6.37.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -11,6 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@bem-react/classname": "^1.6.0",
14
+ "@ebay/nice-modal-react": "^1.2.13",
14
15
  "@gravity-ui/axios-wrapper": "^1.4.1",
15
16
  "@gravity-ui/chartkit": "^5.9.0",
16
17
  "@gravity-ui/components": "^3.7.0",
@@ -27,7 +28,6 @@
27
28
  "@hookform/resolvers": "^3.9.0",
28
29
  "@reduxjs/toolkit": "^2.2.3",
29
30
  "@tanstack/react-table": "^8.19.3",
30
- "@ebay/nice-modal-react": "^1.2.13",
31
31
  "axios": "^1.7.3",
32
32
  "axios-retry": "^4.4.2",
33
33
  "colord": "^2.9.3",
@@ -53,7 +53,7 @@
53
53
  "use-query-params": "^2.2.1",
54
54
  "uuid": "^10.0.0",
55
55
  "web-vitals": "^1.1.2",
56
- "ydb-ui-components": "^4.2.0",
56
+ "ydb-ui-components": "^4.3.2",
57
57
  "zod": "^3.23.8"
58
58
  },
59
59
  "scripts": {
@@ -1,9 +0,0 @@
1
- import type { AdditionalNodesProps } from '../../types/additionalProps';
2
- interface NodesWrapperProps {
3
- path?: string;
4
- database?: string;
5
- parentRef: React.RefObject<HTMLElement>;
6
- additionalNodesProps?: AdditionalNodesProps;
7
- }
8
- export declare const NodesWrapper: ({ parentRef, ...props }: NodesWrapperProps) => import("react/jsx-runtime").JSX.Element;
9
- export {};
@@ -1,13 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { USE_PAGINATED_TABLES_KEY } from '../../utils/constants';
3
- import { useSetting } from '../../utils/hooks';
4
- import { Nodes } from './Nodes';
5
- import { PaginatedNodes } from './PaginatedNodes';
6
- export const NodesWrapper = ({ parentRef, ...props }) => {
7
- const [usePaginatedTables] = useSetting(USE_PAGINATED_TABLES_KEY);
8
- if (usePaginatedTables) {
9
- return _jsx(PaginatedNodes, { parentRef: parentRef, ...props });
10
- }
11
- return _jsx(Nodes, { ...props });
12
- };
13
- //# sourceMappingURL=NodesWrapper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NodesWrapper.js","sourceRoot":"","sources":["../../../src/containers/Nodes/NodesWrapper.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,wBAAwB,EAAC,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAShD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAAoB,EAAE,EAAE;IACrE,MAAM,CAAC,kBAAkB,CAAC,GAAG,UAAU,CAAU,wBAAwB,CAAC,CAAC;IAE3E,IAAI,kBAAkB,EAAE,CAAC;QACrB,OAAO,KAAC,cAAc,IAAC,SAAS,EAAE,SAAS,KAAM,KAAK,GAAI,CAAC;IAC/D,CAAC;IAED,OAAO,KAAC,KAAK,OAAK,KAAK,GAAI,CAAC;AAChC,CAAC,CAAC"}
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import type { Column } from '../../components/PaginatedTable';
3
- import type { NodesColumnId } from '../../components/nodesColumns/constants';
4
- import type { NodesPreparedEntity } from '../../store/reducers/nodes/types';
5
- import type { AdditionalNodesProps } from '../../types/additionalProps';
6
- import type { NodesGroupByField } from '../../types/api/nodes';
7
- import './Nodes.scss';
8
- export interface PaginatedNodesProps {
9
- path?: string;
10
- database?: string;
11
- parentRef: React.RefObject<HTMLElement>;
12
- additionalNodesProps?: AdditionalNodesProps;
13
- columns?: Column<NodesPreparedEntity>[];
14
- defaultColumnsIds?: NodesColumnId[];
15
- requiredColumnsIds?: NodesColumnId[];
16
- selectedColumnsKey?: string;
17
- groupByParams?: NodesGroupByField[];
18
- }
19
- export declare function PaginatedNodes({ path, database, parentRef, additionalNodesProps, columns, defaultColumnsIds, requiredColumnsIds, selectedColumnsKey, groupByParams, }: PaginatedNodesProps): import("react/jsx-runtime").JSX.Element;
@@ -1,91 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import React from 'react';
3
- import { ResponseError } from '../../components/Errors/ResponseError';
4
- import { LoaderWrapper } from '../../components/LoaderWrapper/LoaderWrapper';
5
- import { TableWithControlsLayout } from '../../components/TableWithControlsLayout/TableWithControlsLayout';
6
- import { NODES_COLUMNS_TITLES } from '../../components/nodesColumns/constants';
7
- import { useCapabilitiesLoaded, useViewerNodesHandlerHasGrouping, } from '../../store/reducers/capabilities/hooks';
8
- import { nodesApi } from '../../store/reducers/nodes/nodes';
9
- import { useProblemFilter } from '../../store/reducers/settings/hooks';
10
- import { useAutoRefreshInterval } from '../../utils/hooks';
11
- import { useSelectedColumns } from '../../utils/hooks/useSelectedColumns';
12
- import { NodesUptimeFilterValues } from '../../utils/nodes';
13
- import { TableGroup } from '../Storage/TableGroup/TableGroup';
14
- import { useExpandedGroups } from '../Storage/TableGroup/useExpandedTableGroups';
15
- import { NodesControls } from './NodesControls/NodesControls';
16
- import { PaginatedNodesTable } from './PaginatedNodesTable';
17
- import { getNodesColumns } from './columns/columns';
18
- import { ALL_NODES_GROUP_BY_PARAMS, DEFAULT_NODES_COLUMNS, NODES_TABLE_SELECTED_COLUMNS_LS_KEY, REQUIRED_NODES_COLUMNS, } from './columns/constants';
19
- import i18n from './i18n';
20
- import { b } from './shared';
21
- import { useNodesPageQueryParams } from './useNodesPageQueryParams';
22
- import './Nodes.scss';
23
- export function PaginatedNodes({ path, database, parentRef, additionalNodesProps, columns = getNodesColumns({ database, getNodeRef: additionalNodesProps === null || additionalNodesProps === void 0 ? void 0 : additionalNodesProps.getNodeRef }), defaultColumnsIds = DEFAULT_NODES_COLUMNS, requiredColumnsIds = REQUIRED_NODES_COLUMNS, selectedColumnsKey = NODES_TABLE_SELECTED_COLUMNS_LS_KEY, groupByParams = ALL_NODES_GROUP_BY_PARAMS, }) {
24
- const { uptimeFilter, groupByParam, handleUptimeFilterChange } = useNodesPageQueryParams(groupByParams);
25
- const { problemFilter, handleProblemFilterChange } = useProblemFilter();
26
- const capabilitiesLoaded = useCapabilitiesLoaded();
27
- const viewerNodesHandlerHasGrouping = useViewerNodesHandlerHasGrouping();
28
- // Other filters do not fit with grouping
29
- // Reset them if grouping available
30
- React.useEffect(() => {
31
- if (viewerNodesHandlerHasGrouping &&
32
- (problemFilter !== 'All' || uptimeFilter !== NodesUptimeFilterValues.All)) {
33
- handleProblemFilterChange('All');
34
- handleUptimeFilterChange(NodesUptimeFilterValues.All);
35
- }
36
- }, [
37
- handleProblemFilterChange,
38
- handleUptimeFilterChange,
39
- problemFilter,
40
- uptimeFilter,
41
- viewerNodesHandlerHasGrouping,
42
- ]);
43
- const renderContent = () => {
44
- if (viewerNodesHandlerHasGrouping && groupByParam) {
45
- return (_jsx(GroupedNodesComponent, { path: path, database: database, parentRef: parentRef, columns: columns, defaultColumnsIds: defaultColumnsIds, requiredColumnsIds: requiredColumnsIds, selectedColumnsKey: selectedColumnsKey, groupByParams: groupByParams }));
46
- }
47
- return (_jsx(NodesComponent, { path: path, database: database, parentRef: parentRef, columns: columns, defaultColumnsIds: defaultColumnsIds, requiredColumnsIds: requiredColumnsIds, selectedColumnsKey: selectedColumnsKey, groupByParams: groupByParams }));
48
- };
49
- return _jsx(LoaderWrapper, { loading: !capabilitiesLoaded, children: renderContent() });
50
- }
51
- function NodesComponent({ path, database, parentRef, columns, defaultColumnsIds, requiredColumnsIds, selectedColumnsKey, groupByParams, }) {
52
- const { searchValue, uptimeFilter } = useNodesPageQueryParams(groupByParams);
53
- const { problemFilter } = useProblemFilter();
54
- const viewerNodesHandlerHasGrouping = useViewerNodesHandlerHasGrouping();
55
- const { columnsToShow, columnsToSelect, setColumns } = useSelectedColumns(columns, selectedColumnsKey, NODES_COLUMNS_TITLES, defaultColumnsIds, requiredColumnsIds);
56
- const renderControls = ({ totalEntities, foundEntities, inited }) => {
57
- return (_jsx(NodesControls, { withGroupBySelect: viewerNodesHandlerHasGrouping, groupByParams: groupByParams, columnsToSelect: columnsToSelect, handleSelectedColumnsUpdate: setColumns, entitiesCountCurrent: foundEntities, entitiesCountTotal: totalEntities, entitiesLoading: !inited }));
58
- };
59
- return (_jsx(PaginatedNodesTable, { path: path, database: database, searchValue: searchValue, problemFilter: problemFilter, uptimeFilter: uptimeFilter, columns: columnsToShow, parentRef: parentRef, renderControls: renderControls }));
60
- }
61
- function GroupedNodesComponent({ path, database, parentRef, columns, defaultColumnsIds, requiredColumnsIds, selectedColumnsKey, groupByParams, }) {
62
- const { searchValue, groupByParam } = useNodesPageQueryParams(groupByParams);
63
- const [autoRefreshInterval] = useAutoRefreshInterval();
64
- const { columnsToShow, columnsToSelect, setColumns } = useSelectedColumns(columns, selectedColumnsKey, NODES_COLUMNS_TITLES, defaultColumnsIds, requiredColumnsIds);
65
- const { currentData, isFetching, error } = nodesApi.useGetNodesQuery({
66
- path,
67
- database,
68
- filter: searchValue,
69
- group: groupByParam,
70
- limit: 0,
71
- }, {
72
- pollingInterval: autoRefreshInterval,
73
- });
74
- const isLoading = currentData === undefined && isFetching;
75
- const { NodeGroups: tableGroups, FoundNodes: found = 0, TotalNodes: total = 0, } = currentData || {};
76
- const { expandedGroups, setIsGroupExpanded } = useExpandedGroups(tableGroups);
77
- const renderControls = () => {
78
- return (_jsx(NodesControls, { withGroupBySelect: true, groupByParams: groupByParams, columnsToSelect: columnsToSelect, handleSelectedColumnsUpdate: setColumns, entitiesCountCurrent: found, entitiesCountTotal: total, entitiesLoading: isLoading }));
79
- };
80
- const renderGroups = () => {
81
- if (tableGroups === null || tableGroups === void 0 ? void 0 : tableGroups.length) {
82
- return tableGroups.map(({ name, count }) => {
83
- const isExpanded = expandedGroups[name];
84
- return (_jsx(TableGroup, { title: name, count: count, entityName: i18n('nodes'), expanded: isExpanded, onIsExpandedChange: setIsGroupExpanded, children: _jsx(PaginatedNodesTable, { path: path, database: database, searchValue: searchValue, problemFilter: 'All', uptimeFilter: NodesUptimeFilterValues.All, filterGroup: name, filterGroupBy: groupByParam, initialEntitiesCount: count, columns: columnsToShow, parentRef: parentRef }) }, name));
85
- });
86
- }
87
- return i18n('no-nodes-groups');
88
- };
89
- return (_jsxs(TableWithControlsLayout, { children: [_jsx(TableWithControlsLayout.Controls, { children: renderControls() }), error ? _jsx(ResponseError, { error: error }) : null, _jsx(TableWithControlsLayout.Table, { loading: isLoading, className: b('groups-wrapper'), children: renderGroups() })] }));
90
- }
91
- //# sourceMappingURL=PaginatedNodes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PaginatedNodes.js","sourceRoot":"","sources":["../../../src/containers/Nodes/PaginatedNodes.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAC,aAAa,EAAC,MAAM,8CAA8C,CAAC;AAE3E,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EAAC,oBAAoB,EAAC,MAAM,yCAAyC,CAAC;AAE7E,OAAO,EACH,qBAAqB,EACrB,gCAAgC,GACnC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAC,QAAQ,EAAC,MAAM,kCAAkC,CAAC;AAE1D,OAAO,EAAC,gBAAgB,EAAC,MAAM,qCAAqC,CAAC;AAGrE,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAA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AC"}
@@ -1,12 +0,0 @@
1
- import type { QueryResult } from '../../../../store/reducers/query/types';
2
- import './ExecuteResult.scss';
3
- interface ExecuteResultProps {
4
- result: QueryResult;
5
- isResultsCollapsed?: boolean;
6
- theme?: string;
7
- tenantName: string;
8
- onCollapseResults: VoidFunction;
9
- onExpandResults: VoidFunction;
10
- }
11
- export declare function ExecuteResult({ result, isResultsCollapsed, theme, tenantName, onCollapseResults, onExpandResults, }: ExecuteResultProps): import("react/jsx-runtime").JSX.Element;
12
- export {};
@@ -1,154 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import React from 'react';
3
- import { ClipboardButton, RadioButton, Tabs, Text } from '@gravity-ui/uikit';
4
- import JSONTree from 'react-json-inspector';
5
- import Divider from '../../../../components/Divider/Divider';
6
- import ElapsedTime from '../../../../components/ElapsedTime/ElapsedTime';
7
- import EnableFullscreenButton from '../../../../components/EnableFullscreenButton/EnableFullscreenButton';
8
- import Fullscreen from '../../../../components/Fullscreen/Fullscreen';
9
- import { YDBGraph } from '../../../../components/Graph/Graph';
10
- import { LoaderWrapper } from '../../../../components/LoaderWrapper/LoaderWrapper';
11
- import { QueryExecutionStatus } from '../../../../components/QueryExecutionStatus';
12
- import { QueryResultTable } from '../../../../components/QueryResultTable/QueryResultTable';
13
- import { disableFullscreen } from '../../../../store/reducers/fullscreen';
14
- import { getArray } from '../../../../utils';
15
- import { cn } from '../../../../utils/cn';
16
- import { USE_SHOW_PLAN_SVG_KEY } from '../../../../utils/constants';
17
- import { getStringifiedData } from '../../../../utils/dataFormatters/dataFormatters';
18
- import { useSetting, useTypedDispatch } from '../../../../utils/hooks';
19
- import { parseQueryError } from '../../../../utils/query';
20
- import { PaneVisibilityToggleButtons } from '../../utils/paneVisibilityToggleHelpers';
21
- import { CancelQueryButton } from '../CancelQueryButton/CancelQueryButton';
22
- import { SimplifiedPlan } from '../ExplainResult/components/SimplifiedPlan/SimplifiedPlan';
23
- import { ResultIssues } from '../Issues/Issues';
24
- import { QueryDuration } from '../QueryDuration/QueryDuration';
25
- import { QuerySettingsBanner } from '../QuerySettingsBanner/QuerySettingsBanner';
26
- import { getPreparedResult } from '../utils/getPreparedResult';
27
- import { isQueryCancelledError } from '../utils/isQueryCancelledError';
28
- import { PlanToSvgButton } from './PlanToSvgButton';
29
- import { TraceButton } from './TraceButton';
30
- import i18n from './i18n';
31
- import { getPlan } from './utils';
32
- import './ExecuteResult.scss';
33
- const b = cn('ydb-query-execute-result');
34
- const resultOptionsIds = {
35
- result: 'result',
36
- stats: 'stats',
37
- schema: 'schema',
38
- simplified: 'simplified',
39
- };
40
- export function ExecuteResult({ result, isResultsCollapsed, theme, tenantName, onCollapseResults, onExpandResults, }) {
41
- var _a, _b;
42
- const [selectedResultSet, setSelectedResultSet] = React.useState(0);
43
- const [activeSection, setActiveSection] = React.useState(resultOptionsIds.result);
44
- const dispatch = useTypedDispatch();
45
- const [useShowPlanToSvg] = useSetting(USE_SHOW_PLAN_SVG_KEY);
46
- const { error, isLoading, queryId, data } = result;
47
- const stats = data === null || data === void 0 ? void 0 : data.stats;
48
- const resultsSetsCount = ((_a = data === null || data === void 0 ? void 0 : data.resultSets) === null || _a === void 0 ? void 0 : _a.length) || 0;
49
- const currentResult = (_b = data === null || data === void 0 ? void 0 : data.resultSets) === null || _b === void 0 ? void 0 : _b[selectedResultSet];
50
- const { plan, simplifiedPlan } = React.useMemo(() => getPlan(data), [data]);
51
- const resultOptions = [
52
- { value: resultOptionsIds.result, content: i18n('action.result') },
53
- { value: resultOptionsIds.stats, content: i18n('action.stats') },
54
- ];
55
- if (plan) {
56
- resultOptions.push({ value: resultOptionsIds.schema, content: i18n('action.schema') });
57
- }
58
- if (simplifiedPlan === null || simplifiedPlan === void 0 ? void 0 : simplifiedPlan.plan) {
59
- resultOptions.push({
60
- value: resultOptionsIds.simplified,
61
- content: i18n('action.explain-plan'),
62
- });
63
- }
64
- const parsedError = parseQueryError(error);
65
- React.useEffect(() => {
66
- return () => {
67
- dispatch(disableFullscreen());
68
- };
69
- }, [dispatch]);
70
- const onSelectSection = (value) => {
71
- setActiveSection(value);
72
- };
73
- const renderResult = () => {
74
- return (_jsxs("div", { className: b('result-wrapper'), children: [resultsSetsCount > 1 && (_jsx("div", { children: _jsx(Tabs, { className: b('result-tabs'), size: "l", items: getArray(resultsSetsCount).map((item) => {
75
- var _a, _b;
76
- return ({
77
- id: String(item),
78
- title: `Result #${item + 1}${((_b = (_a = data === null || data === void 0 ? void 0 : data.resultSets) === null || _a === void 0 ? void 0 : _a[item]) === null || _b === void 0 ? void 0 : _b.truncated) ? ' (T)' : ''}`,
79
- });
80
- }), activeTab: String(selectedResultSet), onSelectTab: (tabId) => setSelectedResultSet(Number(tabId)) }) })), currentResult && (_jsxs("div", { className: b('result'), children: [_jsxs("div", { className: b('result-head'), children: [_jsx(Text, { variant: "subheader-3", children: (currentResult === null || currentResult === void 0 ? void 0 : currentResult.truncated)
81
- ? i18n('title.truncated')
82
- : i18n('title.result') }), currentResult.result && (_jsx(Text, { color: "secondary", variant: "body-2", className: b('row-count'), children: `(${currentResult.result.length})` }))] }), _jsx(QueryResultTable, { data: currentResult.result, columns: currentResult.columns })] }))] }));
83
- };
84
- const getStatsToCopy = () => {
85
- switch (activeSection) {
86
- case resultOptionsIds.result: {
87
- const textResults = getPreparedResult(currentResult === null || currentResult === void 0 ? void 0 : currentResult.result);
88
- return textResults;
89
- }
90
- case resultOptionsIds.stats:
91
- return stats;
92
- case resultOptionsIds.simplified:
93
- return simplifiedPlan === null || simplifiedPlan === void 0 ? void 0 : simplifiedPlan.pristine;
94
- default:
95
- return undefined;
96
- }
97
- };
98
- const renderClipboardButton = () => {
99
- const statsToCopy = getStatsToCopy();
100
- const copyText = getStringifiedData(statsToCopy);
101
- if (!copyText) {
102
- return null;
103
- }
104
- return (_jsx(ClipboardButton, { text: copyText, view: "flat-secondary", title: i18n('action.copy', { activeSection }) }));
105
- };
106
- const renderStats = () => {
107
- return (_jsx("div", { className: b('inspector'), children: _jsx(JSONTree, { data: stats, isExpanded: () => true, searchOptions: {
108
- debounceTime: 300,
109
- } }) }));
110
- };
111
- const renderSchema = () => {
112
- const isEnoughDataForGraph = (plan === null || plan === void 0 ? void 0 : plan.links) && (plan === null || plan === void 0 ? void 0 : plan.nodes) && (plan === null || plan === void 0 ? void 0 : plan.nodes.length);
113
- if (!isEnoughDataForGraph) {
114
- return i18n('description.graph-is-not-supported');
115
- }
116
- return (_jsx("div", { className: b('explain-canvas-container'), children: _jsx(YDBGraph, { data: plan }, theme) }));
117
- };
118
- const renderSimplified = () => {
119
- const { plan } = simplifiedPlan !== null && simplifiedPlan !== void 0 ? simplifiedPlan : {};
120
- if (!plan) {
121
- return null;
122
- }
123
- return _jsx(SimplifiedPlan, { plan: plan });
124
- };
125
- const renderIssues = () => {
126
- if (!parsedError) {
127
- return null;
128
- }
129
- if (typeof parsedError === 'object') {
130
- return _jsx(ResultIssues, { data: parsedError });
131
- }
132
- return _jsx("div", { className: b('error'), children: parsedError });
133
- };
134
- const renderResultSection = () => {
135
- if (error && !isQueryCancelledError(error)) {
136
- return renderIssues();
137
- }
138
- if (activeSection === resultOptionsIds.result) {
139
- return renderResult();
140
- }
141
- if (activeSection === resultOptionsIds.stats) {
142
- return renderStats();
143
- }
144
- if (activeSection === resultOptionsIds.schema) {
145
- return renderSchema();
146
- }
147
- if (activeSection === resultOptionsIds.simplified) {
148
- return renderSimplified();
149
- }
150
- return null;
151
- };
152
- return (_jsxs(React.Fragment, { children: [_jsxs("div", { className: b('controls'), children: [_jsxs("div", { className: b('controls-right'), children: [_jsx(QueryExecutionStatus, { error: error, loading: isLoading }), !error && !isLoading && (_jsxs(React.Fragment, { children: [(stats === null || stats === void 0 ? void 0 : stats.DurationUs) !== undefined && (_jsx(QueryDuration, { duration: Number(stats.DurationUs) })), resultOptions && activeSection && (_jsxs(React.Fragment, { children: [_jsx(Divider, {}), _jsx(RadioButton, { options: resultOptions, value: activeSection, onUpdate: onSelectSection })] }))] })), isLoading ? (_jsxs(React.Fragment, { children: [_jsx(ElapsedTime, { className: b('elapsed-time') }), _jsx(CancelQueryButton, { queryId: queryId, tenantName: tenantName })] })) : null, (data === null || data === void 0 ? void 0 : data.traceId) ? (_jsx(TraceButton, { traceId: data.traceId, isTraceReady: result.isTraceReady })) : null, (data === null || data === void 0 ? void 0 : data.plan) && useShowPlanToSvg ? (_jsx(PlanToSvgButton, { plan: data === null || data === void 0 ? void 0 : data.plan, database: tenantName })) : null] }), _jsxs("div", { className: b('controls-left'), children: [renderClipboardButton(), _jsx(EnableFullscreenButton, {}), _jsx(PaneVisibilityToggleButtons, { onCollapse: onCollapseResults, onExpand: onExpandResults, isCollapsed: isResultsCollapsed, initialDirection: "bottom" })] })] }), isLoading || isQueryCancelledError(error) ? null : _jsx(QuerySettingsBanner, {}), _jsx(LoaderWrapper, { loading: isLoading, children: _jsx(Fullscreen, { children: renderResultSection() }) })] }));
153
- }
154
- //# sourceMappingURL=ExecuteResult.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExecuteResult.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/ExecuteResult/ExecuteResult.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,eAAe,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAC3E,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAE5C,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,WAAW,MAAM,gDAAgD,CAAC;AACzE,OAAO,sBAAsB,MAAM,sEAAsE,CAAC;AAC1G,OAAO,UAAU,MAAM,8CAA8C,CAAC;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAC5D,OAAO,EAAC,aAAa,EAAC,MAAM,oDAAoD,CAAC;AACjF,OAAO,EAAC,oBAAoB,EAAC,MAAM,6CAA6C,CAAC;AACjF,OAAO,EA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