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,89 +0,0 @@
1
- @import '../../../../styles/mixins.scss';
2
-
3
- .ydb-query-execute-result {
4
- &__result {
5
- display: flex;
6
- overflow: auto;
7
- flex-grow: 1;
8
- flex-direction: column;
9
-
10
- padding-left: 10px;
11
-
12
- @include query-data-table();
13
- & .data-table__table-wrapper {
14
- padding-bottom: 0;
15
- }
16
- }
17
-
18
- &__row-count {
19
- margin-left: var(--g-spacing-1);
20
- }
21
-
22
- &__result-head {
23
- margin-top: var(--g-spacing-4);
24
- }
25
-
26
- &__result-wrapper {
27
- display: flex;
28
- flex-direction: column;
29
-
30
- width: 100%;
31
- }
32
-
33
- &__result-tabs {
34
- padding-left: 10px;
35
- }
36
-
37
- &__error {
38
- padding: 15px 10px;
39
- }
40
-
41
- &__controls {
42
- position: sticky;
43
- z-index: 2;
44
- top: 0;
45
-
46
- display: flex;
47
- justify-content: space-between;
48
- align-items: center;
49
-
50
- height: 53px;
51
- padding: 12px 20px;
52
-
53
- border-bottom: 1px solid var(--g-color-line-generic);
54
- background-color: var(--g-color-base-background);
55
- }
56
-
57
- &__controls-right {
58
- display: flex;
59
- align-items: center;
60
- gap: 12px;
61
-
62
- height: 100%;
63
- }
64
-
65
- &__controls-left {
66
- display: flex;
67
- gap: 4px;
68
- }
69
-
70
- &__inspector {
71
- overflow: auto;
72
-
73
- width: 100%;
74
- height: 100%;
75
- padding: 15px 10px;
76
- @include json-tree-styles();
77
- }
78
-
79
- &__explain-canvas-container {
80
- overflow-y: auto;
81
-
82
- width: 100%;
83
- height: 100%;
84
- }
85
-
86
- &__elapsed-label {
87
- margin-left: var(--g-spacing-3);
88
- }
89
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"PlanToSvgButton.js","sourceR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C,CAAC;YAChB,QAAQ,CAAC,IAAI,CAAC,CAAC;YACf,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;QAC/B,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;YACX,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QAClC,CAAC,CAAC,CAAC;IACX,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC;IAEnC,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACjB,OAAO,GAAG,EAAE;YACR,IAAI,OAAO,EAAE,CAAC;gBACV,GAAG,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;YACjC,CAAC;QACL,CAAC,CAAC;IACN,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEd,OAAO,CACH,KAAC,OAAO,IACJ,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAC,KAAK,EAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,YAElF,MAAC,MAAM,IACH,IAAI,EAAE,aAAa,CAAC,KAAK,EAAE,SAAS,CAAC,EACrC,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,SAAS,aAElB,IAAI,CAAC,eAAe,CAAC,EACtB,KAAC,MAAM,CAAC,IAAI,cACR,KAAC,sBAAsB,KAAG,GAChB,IACT,GACH,CACb,CAAC;AACN,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TraceButton.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/ExecuteResult/TraceButton.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAm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AC,YAAY,CAAC,EAAE,CAAC;QAClD,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,CACH,MAAC,MAAM,IACH,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,WAAW,EAChD,OAAO,EAAE,SAAS,EAClB,IAAI,EAAE,QAAQ,EACd,MAAM,EAAC,QAAQ,aAEd,IAAI,CAAC,OAAO,CAAC,EACd,KAAC,MAAM,CAAC,IAAI,cACR,KAAC,sBAAsB,KAAG,GAChB,IACT,CACZ,CAAC;AACN,CAAC"}
@@ -1,2 +0,0 @@
1
- declare const _default: (key: "trace" | "description.graph-is-not-supported" | "action.result" | "action.stats" | "action.schema" | "action.explain-plan" | "action.copy" | "title.truncated" | "title.result" | "text_plan-svg" | "text_open-plan-svg" | "text_error-plan-svg", params?: import("@gravity-ui/i18n").Params) => string;
2
- export default _default;
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Query/ExecuteResult/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,oBAAoB,CAAC;AAEvC,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}
@@ -1,21 +0,0 @@
1
- import type { IQueryResult } from '../../../../types/store/query';
2
- export declare function getPlan(data: IQueryResult | undefined): {
3
- plan?: undefined;
4
- simplifiedPlan?: undefined;
5
- } | {
6
- plan: {
7
- tables: import("../../../../types/api/query").PlanTable[] | undefined;
8
- nodes: import("@gravity-ui/paranoid").GraphNode<import("@gravity-ui/paranoid").ExplainPlanNodeData>[];
9
- links: import("@gravity-ui/paranoid").Link[];
10
- } | undefined;
11
- simplifiedPlan: {
12
- plan: import("../../../../store/reducers/query/types").SimplifiedPlanItem[] | undefined;
13
- pristine: import("../../../../types/api/query").SimplifiedNode | undefined;
14
- };
15
- } | {
16
- plan: {
17
- nodes: import("@gravity-ui/paranoid").GraphNode<import("@gravity-ui/paranoid").ExplainPlanNodeData>[];
18
- links: import("@gravity-ui/paranoid").Link[];
19
- };
20
- simplifiedPlan?: undefined;
21
- };
@@ -1,40 +0,0 @@
1
- import { explainVersions } from '../../../../store/reducers/query/prepareQueryData';
2
- import { preparePlan, prepareSimplifiedPlan } from '../../../../utils/prepareQueryExplain';
3
- import { parseQueryExplainPlan } from '../../../../utils/query';
4
- export function getPlan(data) {
5
- var _a, _b, _c;
6
- if (!data) {
7
- return {};
8
- }
9
- const { plan } = data;
10
- if (plan) {
11
- const queryPlan = parseQueryExplainPlan(plan);
12
- const isSupportedVersion = queryPlan.meta.version === explainVersions.v2;
13
- if (!isSupportedVersion) {
14
- return {};
15
- }
16
- const { Plan: planWithStats, SimplifiedPlan: simplifiedPlan } = queryPlan;
17
- return {
18
- plan: planWithStats
19
- ? { ...preparePlan(planWithStats), tables: queryPlan.tables }
20
- : undefined,
21
- simplifiedPlan: {
22
- plan: simplifiedPlan ? prepareSimplifiedPlan([simplifiedPlan]) : undefined,
23
- pristine: simplifiedPlan,
24
- },
25
- };
26
- }
27
- const { stats } = data;
28
- const planFromStats = (_c = (_b = (_a = stats === null || stats === void 0 ? void 0 : stats.Executions) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.TxPlansWithStats) === null || _c === void 0 ? void 0 : _c[0];
29
- if (!planFromStats) {
30
- return {};
31
- }
32
- try {
33
- const planWithStats = JSON.parse(planFromStats);
34
- return { plan: preparePlan(planWithStats) };
35
- }
36
- catch (e) {
37
- return {};
38
- }
39
- }
40
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/ExecuteResult/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,mDAAmD,CAA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AAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QAChD,OAAO,EAAC,IAAI,EAAE,WAAW,CAAC,aAAa,CAAC,EAAC,CAAC;IAC9C,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACT,OAAO,EAAE,CAAC;IACd,CAAC;AACL,CAAC"}
@@ -1,20 +0,0 @@
1
- import type { QueryResult } from '../../../../store/reducers/query/types';
2
- import type { ValueOf } from '../../../../types/common';
3
- import './ExplainResult.scss';
4
- declare const EXPLAIN_OPTIONS_IDS: {
5
- readonly schema: "schema";
6
- readonly json: "json";
7
- readonly ast: "ast";
8
- readonly simplified: "simplified";
9
- };
10
- export type QueryExplainTab = ValueOf<typeof EXPLAIN_OPTIONS_IDS>;
11
- interface ExplainResultProps {
12
- theme: string;
13
- result: QueryResult;
14
- tenantName: string;
15
- isResultsCollapsed?: boolean;
16
- onCollapseResults: VoidFunction;
17
- onExpandResults: VoidFunction;
18
- }
19
- export declare function ExplainResult({ theme, result, tenantName, onCollapseResults, onExpandResults, isResultsCollapsed, }: ExplainResultProps): import("react/jsx-runtime").JSX.Element;
20
- export {};
@@ -1,120 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import React from 'react';
3
- import { ClipboardButton, RadioButton } from '@gravity-ui/uikit';
4
- import Divider from '../../../../components/Divider/Divider';
5
- import ElapsedTime from '../../../../components/ElapsedTime/ElapsedTime';
6
- import EnableFullscreenButton from '../../../../components/EnableFullscreenButton/EnableFullscreenButton';
7
- import Fullscreen from '../../../../components/Fullscreen/Fullscreen';
8
- import { LoaderWrapper } from '../../../../components/LoaderWrapper/LoaderWrapper';
9
- import { QueryExecutionStatus } from '../../../../components/QueryExecutionStatus';
10
- import { disableFullscreen } from '../../../../store/reducers/fullscreen';
11
- import { cn } from '../../../../utils/cn';
12
- import { getStringifiedData } from '../../../../utils/dataFormatters/dataFormatters';
13
- import { useTypedDispatch } from '../../../../utils/hooks';
14
- import { parseQueryErrorToString } from '../../../../utils/query';
15
- import { PaneVisibilityToggleButtons } from '../../utils/paneVisibilityToggleHelpers';
16
- import { CancelQueryButton } from '../CancelQueryButton/CancelQueryButton';
17
- import { QueryDuration } from '../QueryDuration/QueryDuration';
18
- import { QuerySettingsBanner } from '../QuerySettingsBanner/QuerySettingsBanner';
19
- import { isQueryCancelledError } from '../utils/isQueryCancelledError';
20
- import { Ast } from './components/Ast/Ast';
21
- import { Graph } from './components/Graph/Graph';
22
- import { SimplifiedPlan } from './components/SimplifiedPlan/SimplifiedPlan';
23
- import { TextExplain } from './components/TextExplain/TextExplain';
24
- import i18n from './i18n';
25
- import './ExplainResult.scss';
26
- const b = cn('ydb-query-explain-result');
27
- const EXPLAIN_OPTIONS_IDS = {
28
- schema: 'schema',
29
- json: 'json',
30
- ast: 'ast',
31
- simplified: 'simplified',
32
- };
33
- const EXPLAIN_OPTIONS_NAMES = {
34
- [EXPLAIN_OPTIONS_IDS.schema]: i18n('action.schema'),
35
- [EXPLAIN_OPTIONS_IDS.json]: i18n('action.json'),
36
- [EXPLAIN_OPTIONS_IDS.ast]: i18n('action.ast'),
37
- [EXPLAIN_OPTIONS_IDS.simplified]: i18n('action.explain-plan'),
38
- };
39
- const explainOptions = [
40
- { value: EXPLAIN_OPTIONS_IDS.schema, content: EXPLAIN_OPTIONS_NAMES[EXPLAIN_OPTIONS_IDS.schema] },
41
- {
42
- value: EXPLAIN_OPTIONS_IDS.simplified,
43
- content: EXPLAIN_OPTIONS_NAMES[EXPLAIN_OPTIONS_IDS.simplified],
44
- },
45
- { value: EXPLAIN_OPTIONS_IDS.json, content: EXPLAIN_OPTIONS_NAMES[EXPLAIN_OPTIONS_IDS.json] },
46
- { value: EXPLAIN_OPTIONS_IDS.ast, content: EXPLAIN_OPTIONS_NAMES[EXPLAIN_OPTIONS_IDS.ast] },
47
- ];
48
- export function ExplainResult({ theme, result, tenantName, onCollapseResults, onExpandResults, isResultsCollapsed, }) {
49
- const dispatch = useTypedDispatch();
50
- const [activeOption, setActiveOption] = React.useState(EXPLAIN_OPTIONS_IDS.schema);
51
- const [isPending, startTransition] = React.useTransition();
52
- const { error, isLoading, queryId } = result;
53
- const { preparedPlan: explain, ast, simplifiedPlan } = result.data || {};
54
- React.useEffect(() => {
55
- return () => {
56
- dispatch(disableFullscreen());
57
- };
58
- }, [dispatch]);
59
- const renderStub = () => {
60
- return (_jsx("div", { className: b('text-message'), children: i18n('description.empty-result', {
61
- activeOption: EXPLAIN_OPTIONS_NAMES[activeOption],
62
- }) }));
63
- };
64
- const renderContent = () => {
65
- var _a;
66
- if (isQueryCancelledError(error)) {
67
- return null;
68
- }
69
- if (error) {
70
- return _jsx("div", { className: b('text-message'), children: parseQueryErrorToString(error) });
71
- }
72
- switch (activeOption) {
73
- case EXPLAIN_OPTIONS_IDS.json: {
74
- if (!(explain === null || explain === void 0 ? void 0 : explain.pristine)) {
75
- return renderStub();
76
- }
77
- return _jsx(TextExplain, { explain: explain.pristine });
78
- }
79
- case EXPLAIN_OPTIONS_IDS.ast: {
80
- if (!ast) {
81
- return renderStub();
82
- }
83
- return _jsx(Ast, { ast: ast, theme: theme });
84
- }
85
- case EXPLAIN_OPTIONS_IDS.schema: {
86
- if (!((_a = explain === null || explain === void 0 ? void 0 : explain.nodes) === null || _a === void 0 ? void 0 : _a.length)) {
87
- return renderStub();
88
- }
89
- return _jsx(Graph, { theme: theme, explain: explain });
90
- }
91
- case EXPLAIN_OPTIONS_IDS.simplified: {
92
- const { plan } = simplifiedPlan !== null && simplifiedPlan !== void 0 ? simplifiedPlan : {};
93
- if (!(plan === null || plan === void 0 ? void 0 : plan.length)) {
94
- return renderStub();
95
- }
96
- return _jsx(SimplifiedPlan, { plan: plan });
97
- }
98
- default:
99
- return null;
100
- }
101
- };
102
- const getStatsToCopy = () => {
103
- switch (activeOption) {
104
- case EXPLAIN_OPTIONS_IDS.json:
105
- return explain === null || explain === void 0 ? void 0 : explain.pristine;
106
- case EXPLAIN_OPTIONS_IDS.ast:
107
- return ast;
108
- case EXPLAIN_OPTIONS_IDS.simplified:
109
- return simplifiedPlan === null || simplifiedPlan === void 0 ? void 0 : simplifiedPlan.pristine;
110
- default:
111
- return undefined;
112
- }
113
- };
114
- const statsToCopy = getStatsToCopy();
115
- const copyText = getStringifiedData(statsToCopy);
116
- 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: [(explain === null || explain === void 0 ? void 0 : explain.DurationUs) !== undefined && (_jsx(QueryDuration, { duration: explain.DurationUs })), _jsxs(React.Fragment, { children: [_jsx(Divider, {}), _jsx(RadioButton, { options: explainOptions, value: activeOption, onUpdate: (tabId) => {
117
- startTransition(() => setActiveOption(tabId));
118
- } })] })] })), isLoading ? (_jsxs(React.Fragment, { children: [_jsx(ElapsedTime, { className: b('elapsed-time') }), _jsx(CancelQueryButton, { queryId: queryId, tenantName: tenantName })] })) : null] }), _jsxs("div", { className: b('controls-left'), children: [copyText && (_jsx(ClipboardButton, { text: copyText, view: "flat-secondary", title: i18n('action.copy', { activeOption }) })), _jsx(EnableFullscreenButton, { disabled: Boolean(error) }), _jsx(PaneVisibilityToggleButtons, { onCollapse: onCollapseResults, onExpand: onExpandResults, isCollapsed: isResultsCollapsed, initialDirection: "bottom" })] })] }), isLoading || isQueryCancelledError(error) ? null : _jsx(QuerySettingsBanner, {}), _jsx(LoaderWrapper, { loading: isLoading || isPending, children: _jsx(Fullscreen, { className: b('result'), children: renderContent() }) })] }));
119
- }
120
- //# sourceMappingURL=ExplainResult.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExplainResult.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/ExplainResult/ExplainResult.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,eAAe,EAAE,WAAW,EAAC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,KAAK,CAAC,GAAI,EACpD,KAAC,2BAA2B,IACxB,UAAU,EAAE,iBAAiB,EAC7B,QAAQ,EAAE,eAAe,EACzB,WAAW,EAAE,kBAAkB,EAC/B,gBAAgB,EAAC,QAAQ,GAC3B,IACA,IACJ,EACL,SAAS,IAAI,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAC,mBAAmB,KAAG,EAC3E,KAAC,aAAa,IAAC,OAAO,EAAE,SAAS,IAAI,SAAS,YAC1C,KAAC,UAAU,IAAC,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,YAAG,aAAa,EAAE,GAAc,GACtD,IACH,CACpB,CAAC;AACN,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Ast.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/ExplainResult/components/Ast/Ast.tsx"],"names":[],"mappings":";AAAA,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAE/C,OAAO,EAAC,EAAE,EAAC,MAAM,4BAA4B,CAAC;AAC9C,OAAO,EAAC,wBAAwB,EAAC,MAAM,yCAAyC,CAAC;AAEjF,OAAO,YAAY,CAAC;AAEpB,MAAM,CAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC,CAAC;AAEtC,MAAM,cAAc,GAAG;IACnB,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACL,OAAO,EAAE,KAAK;KACjB;IACD,cAAc,EAAE,QAAiB;CACpC,CAAC;AAOF,MAAM,UAAU,GAAG,CAAC,EAAC,GAAG,EAAE,KAAK,EAAW;IACtC,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,EAAE,YACf,KAAC,YAAY,IACT,QAAQ,EAAE,wBAAwB,EAClC,KAAK,EAAE,GAAG,EACV,OAAO,EAAE,cAAc,EACvB,KAAK,EAAE,MAAM,KAAK,EAAE,GACtB,GACA,CACT,CAAC;AACN,CAAC"}
@@ -1,15 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { YDBGraph } from '../../../../../../components/Graph/Graph';
3
- import { explainVersions } from '../../../../../../store/reducers/query/prepareQueryData';
4
- import { cn } from '../../../../../../utils/cn';
5
- import i18n from '../../i18n';
6
- import './Graph.scss';
7
- const b = cn('ydb-query-explain-graph');
8
- export function Graph({ explain, theme }) {
9
- const { links, nodes, version } = explain !== null && explain !== void 0 ? explain : {};
10
- const isSupportedVersion = version === explainVersions.v2;
11
- const isEnoughDataForGraph = links && nodes && nodes.length;
12
- const content = isSupportedVersion && isEnoughDataForGraph ? (_jsx("div", { className: b('canvas-container'), children: _jsx(YDBGraph, { data: { links, nodes } }, theme) })) : (_jsx("div", { className: b('text-message'), children: i18n('description.graph-is-not-supported') }));
13
- return content;
14
- }
15
- //# sourceMappingURL=Graph.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Graph.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/ExplainResult/components/Graph/Graph.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,0CAA0C,CAAC;AAClE,OAAO,EAAC,eAAe,EAAC,MAAM,yDAAyD,CAAC;AAExF,OAAO,EAAC,EAAE,EAAC,MAAM,4BAA4B,CAAC;AAC9C,OAAO,IAAI,MAAM,YAAY,CAAC;AAE9B,OAAO,cAAc,CAAC;AAEtB,MAAM,CAAC,GAAG,EAAE,CAAC,yBAAyB,CAAC,CAAC;AAOxC,MAAM,UAAU,KAAK,CAAC,EAAC,OAAO,EAAE,KAAK,EAAa;IAC9C,MAAM,EAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAC,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC;IAE9C,MAAM,kBAAkB,GAAG,OAAO,KAAK,eAAe,CAAC,EAAE,CAAC;IAC1D,MAAM,oBAAoB,GAAG,KAAK,IAAI,KAAK,IAAI,KAAK,CAAC,MAAM,CAAC;IAE5D,MAAM,OAAO,GACT,kBAAkB,IAAI,oBAAoB,CAAC,CAAC,CAAC,CACzC,cAAK,SAAS,EAAE,CAAC,CAAC,kBAAkB,CAAC,YACjC,KAAC,QAAQ,IAAa,IAAI,EAAE,EAAC,KAAK,EAAE,KAAK,EAAC,IAA3B,KAAK,CAA0B,GAC5C,CACT,CAAC,CAAC,CAAC,CACA,cAAK,SAAS,EAAE,CAAC,CAAC,cAAc,CAAC,YAAG,IAAI,CAAC,oCAAoC,CAAC,GAAO,CACxF,CAAC;IACN,OAAO,OAAO,CAAC;AACnB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"MetricsCell.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/MetricsCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,+BAA+B,CAAC;AAExD,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAO9B,MAAM,UAAU,WAAW,CAAC,EAAC,KAAK,EAAE,SAAS,EAAmB;IAC5D,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;QACpB,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAClC,MAAM,OAAO,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC;IAEvC,OAAO,cAAK,SAAS,EAAE,KAAK,CAAC,cAAc,CAAC,YAAG,OAAO,GAAO,CAAC;AAClE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OperationCell.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/OperationCell.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAK5D,OAA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U,EAAC,YAAY,EAAC,SAAS,EAAE,KAAK,CAAC,mBAAmB,CAAC,aACtE,GAAG,CAAC,YAAY,EAAE,IAAI,CACnB,KAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,IAAI,EAAC,OAAO,EAAE,GAAG,CAAC,wBAAwB,EAAE,YACjE,KAAC,MAAM,CAAC,IAAI,cACR,KAAC,WAAW,IACR,SAAS,EAAE,GAAG,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EACnD,IAAI,EAAE,EAAE,GACV,GACQ,GACT,CACZ,EACD,cAAK,SAAS,EAAE,KAAK,CAAC,wBAAwB,CAAC,YAE3C,0BACK,IAAI,YACL,KAAC,eAAe,IAAC,MAAM,EAAE,eAAe,GAAI,IAC1C,GACJ,IACH,IACL,CACT,CAAC;AACN,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OperationParams.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/OperationParams.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,kBAAkB,EAAC,MAAM,uDAAuD,CAAC;AAEzF,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAE9B,MAAM,uBAAuB,GAA2B;IACpD,KAAK,EAAE,0BAA0B;IACjC,SAAS,EAAE,8BAA8B;IACzC,SAAS,EAAE,6BAA6B;CAC3C,CAAC;AAEF,SAAS,wBAAwB,CAAC,QAAgB;IAC9C,IAAI,QAAQ,IAAI,uBAAuB,EAAE,CAAC;QACtC,OAAO,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IAC7C,CAAC;IACD,OAAO,+BAA+B,CAAC;AAC3C,CAAC;AAED,SAAS,oBAAoB,CAAC,MAA+B;IACzD,MAAM,SAAS,GAAwB,EAAE,CAAC;IAC1C,MAAM,EAAC,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,IAAI,EAAC,GAAG,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MAAM,KAAK,GAAG,wBAAwB,CAAC,GAAG,CAAC,CAAC;YAC5C,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;gBACR,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;YACD,MAAM,CAAC,IAAI,CACP,gBAAc,KAAK,EAAE,EAAC,KAAK,EAAC,aACvB,GAAG,QAAI,kBAAkB,CAAC,KAAK,CAAC,KAD1B,CAAC,CAEL,CACV,CAAC;QACN,CAAC;IACL,CAAC;IAED,OAAO,MAAM,CAAC;AAClB,CAAC;AAMD,MAAM,UAAU,eAAe,CAAC,EAAC,MAAM,EAAuB;IAC1D,IAAI,CAAC,MAAM,EAAE,CAAC;QACV,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO,gBAAM,SAAS,EAAE,KAAK,CAAC,kBAAkB,CAAC,kBAAI,kBAAkB,CAAC,MAAM,CAAC,SAAS,CAAC;AAC7F,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SimplifiedPlan.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,KAAK,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAIlD,OAAO,EAAC,iBAAiB,EAAC,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAC,UAAU,EAAC,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAC,aAAa,EAAC,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EAAC,KAAK,EAAE,oBAAoB,EAAC,MAAM,SAAS,CAAC;AAEpD,OAAO,uBAAuB,CAAC;AAE/B,SAAS,cAAc,CAAC,GAA+B;IACnD,OAAO,EAAC,I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AC,YAAY,EAAE,EAAC,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAC,CAAC,CAAC;YACzE,CAAC,EACD,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,YAAY,SACd,GACA,CACT,CAAC;AACN,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/types.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,EAAE,EAAC,MAAM,4BAA4B,CAAC;AAI9C,MAAM,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC,mCAAmC,CAAC,CAAC;AAE7D,MAAM,UAAU,oBAAoB,CAChC,KAA4B,EAC5B,MAAM,GAAG,EAAE;IAEX,IAAI,CAAC,KAAK,EAAE,CAAC;QACT,OAAO,EAAE,CAAC;IACd,CAAC;IAED,MAAM,KAAK,GAKL,CAAC,EAAC,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAC,EAAE,WAAW,EAAE,EAAE,EAAC,CAAC,CAAC;IAE1D,MAAM,QAAQ,GAAiC,EAAE,CAAC;IAElD,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACtB,MAAM,EAAC,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAC,GAAG,KAAK,CAAC,GAAG,EAAG,CAAC;QAC/D,MAAM,UAAU,GAAiC,EAAE,CAAC;QAEpD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACpC,MAAM,OAAO,GAA+B,EAAC,GAAG,KAAK,CAAC,CAAC,CAAC,EAAC,CAAC;YAC1D,MAAM,IAAI,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC1C,IAAI,SAAS,GAAG,GAAG,MAAM,IAAI,IAAI,EAAE,CAAC;YAEpC,IAAI,CAAC,MAAM,EAAE,CAAC;gBACV,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;YAC7B,CAAC;YACD,OAAO,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC;YAE7B,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAEzB,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;gBACnB,KAAK,CAAC,IAAI,CAAC;oBACP,KAAK,EAAE,OAAO,CAAC,QAAQ;oBACvB,MAAM,EAAE,SAAS;oBACjB,WAAW,EAAE,CAAC;oBACd,WAAW,EAAE,UAAU;iBAC1B,CAAC,CAAC;YACP,CAAC;QACL,CAAC;QAED,IAAI,WAAW,KAAK,CAAC,CAAC,EAAE,CAAC;YACrB,QAAQ,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC;QACjC,CAAC;aAAM,CAAC;YACJ,WAAW,CAAC,WAAW,CAAC,CAAC,QAAQ,GAAG,UAAU,CAAC;QACnD,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC;AACpB,CAAC"}
@@ -1,8 +0,0 @@
1
- import type { QueryPlan, ScriptPlan } from '../../../../../../types/api/query';
2
- import './TextExplain.scss';
3
- import 'react-json-inspector/json-inspector.css';
4
- interface TextExplainProps {
5
- explain: QueryPlan | ScriptPlan;
6
- }
7
- export declare function TextExplain({ explain }: TextExplainProps): import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,12 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import JSONTree from 'react-json-inspector';
3
- import { cn } from '../../../../../../utils/cn';
4
- import './TextExplain.scss';
5
- import 'react-json-inspector/json-inspector.css';
6
- const b = cn('ydb-query-explain-text');
7
- export function TextExplain({ explain }) {
8
- return (_jsx(JSONTree, { data: explain, isExpanded: () => true, className: b('inspector'), searchOptions: {
9
- debounceTime: 300,
10
- } }));
11
- }
12
- //# sourceMappingURL=TextExplain.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextExplain.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/ExplainResult/components/TextExplain/TextExplain.tsx"],"names":[],"mappings":";AAAA,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAG5C,OAAO,EAAC,EAAE,EAAC,MAAM,4BAA4B,CAAC;AAE9C,OAAO,oBAAoB,CAAC;AAC5B,OAAO,yCAAyC,CAAC;AAEjD,MAAM,CAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC,CAAC;AAMvC,MAAM,UAAU,WAAW,CAAC,EAAC,OAAO,EAAmB;IACnD,OAAO,CACH,KAAC,QAAQ,IACL,IAAI,EAAE,OAAO,EACb,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI,EACtB,SAAS,EAAE,CAAC,CAAC,WAAW,CAAC,EACzB,aAAa,EAAE;YACX,YAAY,EAAE,GAAG;SACpB,GACH,CACL,CAAC;AACN,CAAC"}
@@ -1,9 +0,0 @@
1
- {
2
- "description.empty-result": "There is no {{activeOption}} for the request",
3
- "description.graph-is-not-supported": "Graph can not be rendered",
4
- "action.schema": "Schema",
5
- "action.explain-plan": "Explain Plan",
6
- "action.json": "JSON",
7
- "action.ast": "AST",
8
- "action.copy": "Copy {{activeOption}}"
9
- }
@@ -1,2 +0,0 @@
1
- declare const _default: (key: "description.graph-is-not-supported" | "action.schema" | "action.explain-plan" | "action.copy" | "description.empty-result" | "action.json" | "action.ast", params?: import("@gravity-ui/i18n").Params) => string;
2
- export default _default;
@@ -1,5 +0,0 @@
1
- import { registerKeysets } from '../../../../../utils/i18n';
2
- import en from './en.json';
3
- const COMPONENT = 'ydb-explain-result';
4
- export default registerKeysets(COMPONENT, { en });
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Query/ExplainResult/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,oBAAoB,CAAC;AAEvC,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}