ydb-embedded-ui 12.10.0 → 12.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/components/EntityStatus/EntityStatus.js +1 -0
  2. package/dist/components/EntityStatus/EntityStatus.js.map +1 -1
  3. package/dist/components/Graph/Graph.d.ts +12 -0
  4. package/dist/components/Graph/Graph.js +42 -0
  5. package/dist/components/Graph/Graph.js.map +1 -0
  6. package/dist/containers/AppWithClusters/utils/useAdditionalTenantsProps.js +2 -1
  7. package/dist/containers/AppWithClusters/utils/useAdditionalTenantsProps.js.map +1 -1
  8. package/dist/containers/Storage/utils/index.d.ts +1 -1
  9. package/dist/containers/Tenant/Query/QueryResult/components/Graph/Graph.js +3 -3
  10. package/dist/containers/Tenant/Query/QueryResult/components/Graph/Graph.js.map +1 -1
  11. package/dist/containers/Tenant/Query/QueryResult/components/Graph/Graph.scss +0 -2
  12. package/dist/store/reducers/clusters/utils.js +2 -1
  13. package/dist/store/reducers/clusters/utils.js.map +1 -1
  14. package/dist/store/reducers/query/preparePlanData.js.map +1 -1
  15. package/dist/store/reducers/query/types.d.ts +1 -38
  16. package/dist/uiFactory/types.d.ts +1 -0
  17. package/dist/utils/generateEvaluator.d.ts +1 -1
  18. package/dist/utils/hooks/useNodeDeveloperUIHref.js +2 -1
  19. package/dist/utils/hooks/useNodeDeveloperUIHref.js.map +1 -1
  20. package/dist/utils/prepareQueryExplain.d.ts +2 -1
  21. package/dist/utils/prepareQueryExplain.js.map +1 -1
  22. package/package.json +3 -4
  23. package/dist/components/Graph/BlockComponents/ConnectionBlockComponent.d.ts +0 -7
  24. package/dist/components/Graph/BlockComponents/ConnectionBlockComponent.js +0 -30
  25. package/dist/components/Graph/BlockComponents/ConnectionBlockComponent.js.map +0 -1
  26. package/dist/components/Graph/BlockComponents/QueryBlockComponent.d.ts +0 -5
  27. package/dist/components/Graph/BlockComponents/QueryBlockComponent.js +0 -5
  28. package/dist/components/Graph/BlockComponents/QueryBlockComponent.js.map +0 -1
  29. package/dist/components/Graph/BlockComponents/ResultBlockComponent.d.ts +0 -7
  30. package/dist/components/Graph/BlockComponents/ResultBlockComponent.js +0 -5
  31. package/dist/components/Graph/BlockComponents/ResultBlockComponent.js.map +0 -1
  32. package/dist/components/Graph/BlockComponents/StageBlockComponent.d.ts +0 -7
  33. package/dist/components/Graph/BlockComponents/StageBlockComponent.js +0 -15
  34. package/dist/components/Graph/BlockComponents/StageBlockComponent.js.map +0 -1
  35. package/dist/components/Graph/GraphControls.d.ts +0 -6
  36. package/dist/components/Graph/GraphControls.js +0 -23
  37. package/dist/components/Graph/GraphControls.js.map +0 -1
  38. package/dist/components/Graph/GravityGraph.d.ts +0 -8
  39. package/dist/components/Graph/GravityGraph.js +0 -76
  40. package/dist/components/Graph/GravityGraph.js.map +0 -1
  41. package/dist/components/Graph/GravityGraph.scss +0 -124
  42. package/dist/components/Graph/NonSelectableConnection.d.ts +0 -9
  43. package/dist/components/Graph/NonSelectableConnection.js +0 -17
  44. package/dist/components/Graph/NonSelectableConnection.js.map +0 -1
  45. package/dist/components/Graph/TooltipComponent.d.ts +0 -8
  46. package/dist/components/Graph/TooltipComponent.js +0 -29
  47. package/dist/components/Graph/TooltipComponent.js.map +0 -1
  48. package/dist/components/Graph/colorsConfig.d.ts +0 -19
  49. package/dist/components/Graph/colorsConfig.js +0 -20
  50. package/dist/components/Graph/colorsConfig.js.map +0 -1
  51. package/dist/components/Graph/i18n/en.json +0 -3
  52. package/dist/components/Graph/i18n/index.d.ts +0 -2
  53. package/dist/components/Graph/i18n/index.js +0 -5
  54. package/dist/components/Graph/i18n/index.js.map +0 -1
  55. package/dist/components/Graph/treeLayout.worker.d.ts +0 -13
  56. package/dist/components/Graph/treeLayout.worker.js +0 -285
  57. package/dist/components/Graph/treeLayout.worker.js.map +0 -1
  58. package/dist/components/Graph/types.d.ts +0 -33
  59. package/dist/components/Graph/types.js +0 -2
  60. package/dist/components/Graph/types.js.map +0 -1
  61. package/dist/components/Graph/utils.d.ts +0 -6
  62. package/dist/components/Graph/utils.js +0 -87
  63. package/dist/components/Graph/utils.js.map +0 -1
@@ -1,87 +0,0 @@
1
- const BLOCK_TOP_PADDING = 8;
2
- const BLOCK_LINE_HEIGHT = 16;
3
- const BORDER_HEIGHT = 2;
4
- const getBlockSize = (block) => {
5
- var _a, _b, _c, _d;
6
- const ONE_LINE_HEIGHT = BLOCK_TOP_PADDING * 2 + BLOCK_LINE_HEIGHT + BORDER_HEIGHT;
7
- const operatorsLength = (_b = (_a = block.operators) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 1;
8
- const tablesLength = (_d = (_c = block.tables) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0;
9
- switch (block.type) {
10
- case 'query':
11
- return {
12
- width: 40,
13
- height: 40,
14
- };
15
- case 'result':
16
- return {
17
- width: 112,
18
- height: ONE_LINE_HEIGHT,
19
- };
20
- case 'stage':
21
- return {
22
- width: 248,
23
- height: BORDER_HEIGHT +
24
- BLOCK_TOP_PADDING * 2 +
25
- (operatorsLength + tablesLength) * BLOCK_LINE_HEIGHT,
26
- };
27
- case 'connection':
28
- return {
29
- width: 122,
30
- height: ONE_LINE_HEIGHT,
31
- };
32
- case 'materialize':
33
- return {
34
- width: 190,
35
- height: ONE_LINE_HEIGHT,
36
- };
37
- default:
38
- return {
39
- width: 100,
40
- height: ONE_LINE_HEIGHT,
41
- };
42
- }
43
- };
44
- export const prepareBlocks = (nodes) => {
45
- return nodes.map(({ data: { id, name, type, ...rest }, data }) => ({
46
- id: String(id),
47
- is: type,
48
- name,
49
- ...getBlockSize(data),
50
- ...rest,
51
- }));
52
- };
53
- export const prepareConnections = (links) => {
54
- return links.map(({ from, to }) => ({
55
- id: `${from}:${to}`,
56
- sourceBlockId: from,
57
- targetBlockId: to,
58
- }));
59
- };
60
- function calculateCurrentCustomPropertyValue(colorSettings, computedStyle) {
61
- const result = {};
62
- for (const nestedKey in colorSettings) {
63
- if (Object.prototype.hasOwnProperty.call(colorSettings, nestedKey)) {
64
- const value = colorSettings[nestedKey];
65
- if (value !== undefined) {
66
- result[nestedKey] = (value === null || value === void 0 ? void 0 : value.startsWith('var('))
67
- ? computedStyle.getPropertyValue(value.substring(4, value.length - 1)).trim()
68
- : value;
69
- }
70
- }
71
- }
72
- return result;
73
- }
74
- export function parseCustomPropertyValue(colors, block = globalThis.document.body) {
75
- const parsed = {};
76
- const computedStyle = window.getComputedStyle(block);
77
- for (const topKey in colors) {
78
- if (Object.prototype.hasOwnProperty.call(colors, topKey)) {
79
- const nestedObj = colors[topKey];
80
- if (nestedObj) {
81
- parsed[topKey] = calculateCurrentCustomPropertyValue(nestedObj, computedStyle);
82
- }
83
- }
84
- }
85
- return parsed;
86
- }
87
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/Graph/utils.ts"],"names":[],"mappings":"AAOA,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAC5B,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAC7B,MAAM,aAAa,GAAG,CAAC,CAAC;AAExB,MAAM,YAAY,GAAG,CAAC,KAA0B,EAAE,EAAE;;IAChD,MAAM,eAAe,GAAG,iBAAiB,GAAG,CAAC,GAAG,iBAAiB,GAAG,aAAa,CAAC;IAClF,MAAM,eAAe,GAAG,MAAA,MAAA,KAAK,CAAC,SAAS,0CAAE,MAAM,mCAAI,CAAC,CAAC;IACrD,MAAM,YAAY,GAAG,MAAA,MAAA,KAAK,CAAC,MAAM,0CAAE,MAAM,mCAAI,CAAC,CAAC;IAE/C,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;QACjB,KAAK,OAAO;YACR,OAAO;gBACH,KAAK,EAAE,EAAE;gBACT,MAAM,EAAE,EAAE;aACb,CAAC;QACN,KAAK,QAAQ;YACT,OAAO;gBACH,KAAK,EAAE,GAAG;gBACV,MAA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