@oceanbase/ui 1.0.0-alpha.5 → 1.0.0-alpha.7

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 (131) hide show
  1. package/dist/static/Inter-Medium.ea234620.woff2 +0 -0
  2. package/dist/static/Inter-Regular.34ba43c9.woff2 +0 -0
  3. package/dist/static/Inter-SemiBold.95439fb4.woff2 +0 -0
  4. package/dist/ui.min.css +1 -1
  5. package/dist/ui.min.js +1 -1
  6. package/es/BasicLayout/locale/ja-JP.js +6 -6
  7. package/es/Boundary/locale/en-US.js +1 -1
  8. package/es/Boundary/locale/ja-JP.js +4 -4
  9. package/es/Boundary/locale/zh-CN.js +1 -1
  10. package/es/Boundary/locale/zh-TW.js +1 -1
  11. package/es/DateRanger/locale/ja-JP.js +3 -3
  12. package/es/Dialog/locale/ja-JP.js +2 -2
  13. package/es/Dialog/locale/zh-CN.js +1 -1
  14. package/es/Dialog/locale/zh-TW.js +1 -1
  15. package/es/Login/locale/ja-JP.js +11 -11
  16. package/es/Login/locale/zh-CN.js +2 -2
  17. package/es/PageContainer/index.d.ts +2 -0
  18. package/es/PageContainer/index.js +74 -23
  19. package/es/PageContainer/locale/en-US.d.ts +1 -0
  20. package/es/PageContainer/locale/en-US.js +2 -1
  21. package/es/PageContainer/locale/ja-JP.d.ts +1 -0
  22. package/es/PageContainer/locale/ja-JP.js +2 -1
  23. package/es/PageContainer/locale/zh-CN.d.ts +1 -0
  24. package/es/PageContainer/locale/zh-CN.js +2 -1
  25. package/es/PageContainer/locale/zh-TW.d.ts +1 -0
  26. package/es/PageContainer/locale/zh-TW.js +2 -1
  27. package/es/PageContainer/style/index.js +16 -2
  28. package/es/Password/locale/ja-JP.js +6 -6
  29. package/es/ProTable/style/index.js +8 -4
  30. package/es/_util/genComponentStyleHook.d.ts +2 -2
  31. package/es/_util/genComponentStyleHook.js +1 -1
  32. package/es/index.d.ts +0 -4
  33. package/es/index.js +0 -2
  34. package/es/locale/en-US.js +0 -4
  35. package/es/locale/ja-JP.js +0 -4
  36. package/es/locale/zh-CN.js +0 -4
  37. package/es/locale/zh-TW.js +0 -4
  38. package/lib/BasicLayout/locale/ja-JP.js +6 -6
  39. package/lib/Boundary/locale/en-US.js +1 -1
  40. package/lib/Boundary/locale/ja-JP.js +4 -4
  41. package/lib/Boundary/locale/zh-CN.js +1 -1
  42. package/lib/Boundary/locale/zh-TW.js +1 -1
  43. package/lib/DateRanger/locale/ja-JP.js +3 -3
  44. package/lib/Dialog/locale/ja-JP.js +2 -2
  45. package/lib/Dialog/locale/zh-CN.js +1 -1
  46. package/lib/Dialog/locale/zh-TW.js +1 -1
  47. package/lib/Login/locale/ja-JP.js +11 -11
  48. package/lib/Login/locale/zh-CN.js +2 -2
  49. package/lib/PageContainer/index.d.ts +2 -0
  50. package/lib/PageContainer/index.js +49 -2
  51. package/lib/PageContainer/locale/en-US.d.ts +1 -0
  52. package/lib/PageContainer/locale/en-US.js +2 -1
  53. package/lib/PageContainer/locale/ja-JP.d.ts +1 -0
  54. package/lib/PageContainer/locale/ja-JP.js +2 -1
  55. package/lib/PageContainer/locale/zh-CN.d.ts +1 -0
  56. package/lib/PageContainer/locale/zh-CN.js +2 -1
  57. package/lib/PageContainer/locale/zh-TW.d.ts +1 -0
  58. package/lib/PageContainer/locale/zh-TW.js +2 -1
  59. package/lib/PageContainer/style/index.js +17 -1
  60. package/lib/Password/locale/ja-JP.js +6 -6
  61. package/lib/ProTable/style/index.js +11 -1
  62. package/lib/_util/genComponentStyleHook.d.ts +2 -2
  63. package/lib/_util/genComponentStyleHook.js +1 -1
  64. package/lib/index.d.ts +0 -4
  65. package/lib/index.js +0 -6
  66. package/lib/locale/en-US.js +16 -20
  67. package/lib/locale/ja-JP.js +16 -20
  68. package/lib/locale/zh-CN.js +17 -21
  69. package/lib/locale/zh-TW.js +15 -19
  70. package/package.json +4 -4
  71. package/dist/static/Inter.f6bcdfb6.woff2 +0 -0
  72. package/es/GraphToolbar/index.d.ts +0 -25
  73. package/es/GraphToolbar/index.js +0 -149
  74. package/es/GraphToolbar/locale/en-US.d.ts +0 -9
  75. package/es/GraphToolbar/locale/en-US.js +0 -8
  76. package/es/GraphToolbar/locale/ja-JP.d.ts +0 -9
  77. package/es/GraphToolbar/locale/ja-JP.js +0 -8
  78. package/es/GraphToolbar/locale/zh-CN.d.ts +0 -9
  79. package/es/GraphToolbar/locale/zh-CN.js +0 -8
  80. package/es/GraphToolbar/locale/zh-TW.d.ts +0 -9
  81. package/es/GraphToolbar/locale/zh-TW.js +0 -8
  82. package/es/GraphToolbar/style/index.d.ts +0 -10
  83. package/es/GraphToolbar/style/index.js +0 -60
  84. package/es/TaskGraph/Graph/style/index.d.ts +0 -10
  85. package/es/TaskGraph/Graph/style/index.js +0 -28
  86. package/es/TaskGraph/Graph.d.ts +0 -23
  87. package/es/TaskGraph/Graph.js +0 -287
  88. package/es/TaskGraph/index.d.ts +0 -15
  89. package/es/TaskGraph/index.js +0 -181
  90. package/es/TaskGraph/locale/en-US.d.ts +0 -13
  91. package/es/TaskGraph/locale/en-US.js +0 -12
  92. package/es/TaskGraph/locale/ja-JP.d.ts +0 -13
  93. package/es/TaskGraph/locale/ja-JP.js +0 -12
  94. package/es/TaskGraph/locale/zh-CN.d.ts +0 -13
  95. package/es/TaskGraph/locale/zh-CN.js +0 -12
  96. package/es/TaskGraph/locale/zh-TW.d.ts +0 -13
  97. package/es/TaskGraph/locale/zh-TW.js +0 -12
  98. package/es/TaskGraph/register.d.ts +0 -7
  99. package/es/TaskGraph/register.js +0 -200
  100. package/es/TaskGraph/style/index.d.ts +0 -10
  101. package/es/TaskGraph/style/index.js +0 -102
  102. package/lib/GraphToolbar/index.d.ts +0 -25
  103. package/lib/GraphToolbar/index.js +0 -169
  104. package/lib/GraphToolbar/locale/en-US.d.ts +0 -9
  105. package/lib/GraphToolbar/locale/en-US.js +0 -32
  106. package/lib/GraphToolbar/locale/ja-JP.d.ts +0 -9
  107. package/lib/GraphToolbar/locale/ja-JP.js +0 -32
  108. package/lib/GraphToolbar/locale/zh-CN.d.ts +0 -9
  109. package/lib/GraphToolbar/locale/zh-CN.js +0 -32
  110. package/lib/GraphToolbar/locale/zh-TW.d.ts +0 -9
  111. package/lib/GraphToolbar/locale/zh-TW.js +0 -32
  112. package/lib/GraphToolbar/style/index.d.ts +0 -10
  113. package/lib/GraphToolbar/style/index.js +0 -91
  114. package/lib/TaskGraph/Graph/style/index.d.ts +0 -10
  115. package/lib/TaskGraph/Graph/style/index.js +0 -56
  116. package/lib/TaskGraph/Graph.d.ts +0 -23
  117. package/lib/TaskGraph/Graph.js +0 -275
  118. package/lib/TaskGraph/index.d.ts +0 -15
  119. package/lib/TaskGraph/index.js +0 -171
  120. package/lib/TaskGraph/locale/en-US.d.ts +0 -13
  121. package/lib/TaskGraph/locale/en-US.js +0 -36
  122. package/lib/TaskGraph/locale/ja-JP.d.ts +0 -13
  123. package/lib/TaskGraph/locale/ja-JP.js +0 -36
  124. package/lib/TaskGraph/locale/zh-CN.d.ts +0 -13
  125. package/lib/TaskGraph/locale/zh-CN.js +0 -36
  126. package/lib/TaskGraph/locale/zh-TW.d.ts +0 -13
  127. package/lib/TaskGraph/locale/zh-TW.js +0 -36
  128. package/lib/TaskGraph/register.d.ts +0 -7
  129. package/lib/TaskGraph/register.js +0 -205
  130. package/lib/TaskGraph/style/index.d.ts +0 -10
  131. package/lib/TaskGraph/style/index.js +0 -143
@@ -1,13 +0,0 @@
1
- declare const _default: {
2
- successful: string;
3
- running: string;
4
- failed: string;
5
- pending: string;
6
- taskId: string;
7
- log: string;
8
- parameter: string;
9
- stop: string;
10
- retry: string;
11
- skip: string;
12
- };
13
- export default _default;
@@ -1,36 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // src/TaskGraph/locale/en-US.ts
20
- var en_US_exports = {};
21
- __export(en_US_exports, {
22
- default: () => en_US_default
23
- });
24
- module.exports = __toCommonJS(en_US_exports);
25
- var en_US_default = {
26
- successful: "Successful",
27
- running: "Running",
28
- failed: "Failed",
29
- pending: "Pending",
30
- taskId: "Task ID",
31
- log: "View Log",
32
- parameter: "View parameter",
33
- stop: "Stop",
34
- retry: "Retry",
35
- skip: "Skip"
36
- };
@@ -1,13 +0,0 @@
1
- declare const _default: {
2
- successful: string;
3
- running: string;
4
- failed: string;
5
- pending: string;
6
- taskId: string;
7
- log: string;
8
- parameter: string;
9
- stop: string;
10
- retry: string;
11
- skip: string;
12
- };
13
- export default _default;
@@ -1,36 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // src/TaskGraph/locale/ja-JP.ts
20
- var ja_JP_exports = {};
21
- __export(ja_JP_exports, {
22
- default: () => ja_JP_default
23
- });
24
- module.exports = __toCommonJS(ja_JP_exports);
25
- var ja_JP_default = {
26
- successful: "完了",
27
- running: "タスク実行中",
28
- failed: "タスク失敗",
29
- pending: "未開始",
30
- taskId: "タスク ID",
31
- log: "ログを表示",
32
- parameter: "パラメータを表示",
33
- stop: "実行を停止",
34
- retry: "再実行",
35
- skip: "成功に設定"
36
- };
@@ -1,13 +0,0 @@
1
- declare const _default: {
2
- successful: string;
3
- running: string;
4
- failed: string;
5
- pending: string;
6
- taskId: string;
7
- log: string;
8
- parameter: string;
9
- stop: string;
10
- retry: string;
11
- skip: string;
12
- };
13
- export default _default;
@@ -1,36 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // src/TaskGraph/locale/zh-CN.ts
20
- var zh_CN_exports = {};
21
- __export(zh_CN_exports, {
22
- default: () => zh_CN_default
23
- });
24
- module.exports = __toCommonJS(zh_CN_exports);
25
- var zh_CN_default = {
26
- successful: "已完成",
27
- running: "任务执行中",
28
- failed: "任务失败",
29
- pending: "未开始执行",
30
- taskId: "任务 ID",
31
- log: "查看日志",
32
- parameter: "查看参数",
33
- stop: "终止运行",
34
- retry: "重新运行",
35
- skip: "设置为成功"
36
- };
@@ -1,13 +0,0 @@
1
- declare const _default: {
2
- successful: string;
3
- running: string;
4
- failed: string;
5
- pending: string;
6
- taskId: string;
7
- log: string;
8
- parameter: string;
9
- stop: string;
10
- retry: string;
11
- skip: string;
12
- };
13
- export default _default;
@@ -1,36 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // src/TaskGraph/locale/zh-TW.ts
20
- var zh_TW_exports = {};
21
- __export(zh_TW_exports, {
22
- default: () => zh_TW_default
23
- });
24
- module.exports = __toCommonJS(zh_TW_exports);
25
- var zh_TW_default = {
26
- successful: "已完成",
27
- running: "任務執行中",
28
- failed: "任務失敗",
29
- pending: "未開始執行",
30
- taskId: "任務 ID",
31
- log: "查看日誌",
32
- parameter: "查看參數",
33
- stop: "終止運行",
34
- retry: "重新運行",
35
- skip: "設定為成功"
36
- };
@@ -1,7 +0,0 @@
1
- export interface StatusItem {
2
- label: string;
3
- value: string;
4
- color: string;
5
- operations: string[];
6
- }
7
- export default function (statusList: StatusItem[], assetsPath: string): void;
@@ -1,205 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
29
- // src/TaskGraph/register.ts
30
- var register_exports = {};
31
- __export(register_exports, {
32
- default: () => register_default
33
- });
34
- module.exports = __toCommonJS(register_exports);
35
- var import_g6 = __toESM(require("@antv/g6"));
36
- var import_design = require("@oceanbase/design");
37
- var import_util = require("@oceanbase/util");
38
- var import_lodash = require("lodash");
39
- var calcStrLen = (str) => {
40
- let len = 0;
41
- for (let i = 0; i < str.length; i++) {
42
- if (str.charCodeAt(i) > 0 && str.charCodeAt(i) < 128) {
43
- len++;
44
- } else {
45
- len += 2;
46
- }
47
- }
48
- return len;
49
- };
50
- var fittingString = (str, maxWidth, fontSize) => {
51
- const fontWidth = fontSize * 1.3;
52
- maxWidth *= 2;
53
- const width = calcStrLen(str) * fontWidth;
54
- const ellipsis = "…";
55
- if (width > maxWidth) {
56
- const actualLen = Math.floor((maxWidth - 10) / fontWidth);
57
- const result = str.substring(0, actualLen) + ellipsis;
58
- return result;
59
- }
60
- return str;
61
- };
62
- function register_default(statusList, assetsPath) {
63
- import_g6.default.registerNode(
64
- "subTaskNode",
65
- {
66
- drawShape(cfg, group) {
67
- const defaultNodeWidth = 200;
68
- let nodeWidth = defaultNodeWidth;
69
- let offsetX = 0;
70
- if (cfg.name) {
71
- const ellipsisName = fittingString(cfg.name, 180, 12);
72
- const nameShape = group.addShape("text", {
73
- attrs: {
74
- // 使用裁剪后的 name
75
- text: ellipsisName,
76
- x: -30,
77
- y: -5,
78
- fill: import_design.token.colorText,
79
- fontSize: 14,
80
- fontFamily: "SFProText-Medium"
81
- }
82
- });
83
- const nameBBox = nameShape.getBBox();
84
- nodeWidth = nameBBox.width + 100;
85
- if (nodeWidth > 280) {
86
- nodeWidth = 280;
87
- } else if (nodeWidth < 200) {
88
- nodeWidth = 200;
89
- }
90
- offsetX = -(nodeWidth - defaultNodeWidth) / 2;
91
- nameShape.translate(offsetX, 0);
92
- }
93
- const rect = group.addShape("rect", {
94
- name: "rect",
95
- attrs: {
96
- x: -nodeWidth / 2,
97
- y: -34,
98
- width: nodeWidth,
99
- height: 62,
100
- radius: 30,
101
- fill: "#fff",
102
- lineWidth: 3,
103
- shadowColor: "#e1e3e6",
104
- shadowBlur: 10,
105
- shadowOffsetX: 0,
106
- shadowOffsetY: 10
107
- }
108
- });
109
- group.addShape("image", {
110
- name: "statusImage",
111
- attrs: {
112
- x: -89 + offsetX,
113
- y: -23,
114
- width: 42,
115
- height: 42,
116
- // 任务状态图标的命名需要与状态名保持一致
117
- img: `${assetsPath}/task_${(0, import_lodash.toLower)(cfg.status)}.svg`
118
- }
119
- });
120
- group.addShape("text", {
121
- name: "statusName",
122
- attrs: {
123
- text: (0, import_util.findByValue)(statusList, cfg.status).label,
124
- x: -30 + offsetX,
125
- y: 15,
126
- fill: import_design.token.colorTextTertiary,
127
- fontSize: 12,
128
- fontFamily: "PingFangSC-Regular"
129
- }
130
- });
131
- const moreGroup = group.addGroup({
132
- name: "moreGroup"
133
- });
134
- moreGroup.addShape("image", {
135
- attrs: {
136
- // 右边距为 34
137
- x: nodeWidth / 2 - 34 - 16,
138
- y: 8,
139
- width: 16,
140
- height: 2.5,
141
- cursor: "pointer",
142
- img: `${assetsPath}/icon_ellipsis.svg`
143
- }
144
- });
145
- moreGroup.addShape("rect", {
146
- attrs: {
147
- x: nodeWidth / 2 - 34 - 16,
148
- y: 0,
149
- width: 16,
150
- height: 16,
151
- cursor: "pointer",
152
- fill: "transparent"
153
- }
154
- });
155
- rect.toBack();
156
- return rect;
157
- },
158
- update(cfg, node) {
159
- const group = node.get("group");
160
- const statusImage = group.findAllByName("statusImage") && group.findAllByName("statusImage")[0];
161
- const statusName = group.findAllByName("statusName") && group.findAllByName("statusName")[0];
162
- if (statusImage) {
163
- statusImage.attr("img", `${assetsPath}/task_${(0, import_lodash.toLower)(cfg.status)}.svg`);
164
- }
165
- if (statusName) {
166
- statusName.attr("text", (0, import_util.findByValue)(statusList, cfg.status).label);
167
- }
168
- }
169
- },
170
- "single-node"
171
- );
172
- import_g6.default.registerEdge(
173
- "subTaskEdge",
174
- {
175
- curvePosition: [9 / 10, 1 / 10],
176
- getShapeStyle(cfg) {
177
- const targetNodeModel = cfg.targetNode && cfg.targetNode.get("model") || {};
178
- const { status } = targetNodeModel;
179
- const { startPoint, endPoint } = cfg;
180
- const controlPoints = this.getControlPoints(cfg);
181
- let points = [startPoint];
182
- if (controlPoints) {
183
- points = points.concat(controlPoints);
184
- }
185
- points.push(endPoint);
186
- const path = this.getPath(points, cfg);
187
- const statusColor = (0, import_util.findByValue)(statusList, status).color;
188
- const style = {
189
- ...import_g6.default.Global.defaultEdge.style,
190
- path,
191
- // 自定义结束箭头,箭头的边长为 10,夹角为 60 度
192
- endArrow: {
193
- path: `M${10 * Math.cos(Math.PI / 6)},${10 * Math.sin(Math.PI / 6)} L0,0 L${10 * Math.cos(Math.PI / 6)},-${10 * Math.sin(Math.PI / 6)}`,
194
- fill: statusColor
195
- },
196
- lineWidth: 2,
197
- stroke: statusColor,
198
- ...cfg.style
199
- };
200
- return style;
201
- }
202
- },
203
- "cubic-vertical"
204
- );
205
- }
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import type { GenerateStyle } from '@oceanbase/design/es/theme';
3
- import type { OBToken } from '../../_util/genComponentStyleHook';
4
- export type TaskGraphToken = OBToken;
5
- export declare const genTaskGraphStyle: GenerateStyle<TaskGraphToken>;
6
- declare const _default: (prefixCls: string) => {
7
- wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
8
- hashId: string;
9
- };
10
- export default _default;
@@ -1,143 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // src/TaskGraph/style/index.ts
20
- var style_exports = {};
21
- __export(style_exports, {
22
- default: () => style_default,
23
- genTaskGraphStyle: () => genTaskGraphStyle
24
- });
25
- module.exports = __toCommonJS(style_exports);
26
- var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
27
- var genTaskGraphStyle = (token) => {
28
- const {
29
- componentCls,
30
- proComponentsCls,
31
- antCls,
32
- colorText,
33
- colorTextSecondary,
34
- fontWeightStrong
35
- } = token;
36
- return {
37
- "#container": {
38
- position: "relative",
39
- paddingBottom: "0 !important",
40
- [`${antCls}-page-header`]: {
41
- paddingTop: 12,
42
- paddingBottom: 12
43
- },
44
- [`${proComponentsCls}-page-container-header-inner`]: {
45
- backgroundColor: "#fafbff",
46
- [`${antCls}-page-header-heading ${antCls}-page-header-heading-title`]: {
47
- fontSize: 16
48
- }
49
- },
50
- [`${componentCls}-split-pane`]: {
51
- top: "auto !important",
52
- height: "calc(100% - 36px) !important",
53
- minHeight: "calc(100% - 36px) !important",
54
- margin: -24,
55
- [`${componentCls}-tabs-wrapper`]: {
56
- width: "100%"
57
- },
58
- [`${antCls}-tabs`]: {
59
- height: "100%",
60
- [`${antCls}-tabs-nav-container`]: {
61
- height: 32,
62
- paddingTop: 4
63
- },
64
- [`${antCls}-tabs-bar`]: {
65
- marginBottom: 0,
66
- backgroundColor: "#fff",
67
- borderBottom: "none"
68
- },
69
- [`${antCls}-tabs-tab`]: {
70
- minWidth: 120,
71
- height: 28,
72
- margin: 0,
73
- padding: 0,
74
- fontSize: 12,
75
- lineHeight: 28,
76
- backgroundColor: "#fff",
77
- border: "none",
78
- borderBottom: "1px solid #e8e8e8",
79
- borderRadius: 0,
80
- transition: "none",
81
- "&:hover": {
82
- color: colorTextSecondary
83
- },
84
- div: {
85
- display: "flex",
86
- alignItems: "center",
87
- justifyContent: "space-between",
88
- height: 20,
89
- marginTop: 4,
90
- padding: "0 8px",
91
- borderLeft: "1px solid #e8e8e8"
92
- }
93
- },
94
- [`${antCls}-tabs-tab:last-child`]: {
95
- div: {
96
- borderLeft: "none"
97
- }
98
- },
99
- [`${antCls}-tabs-tab-active`]: {
100
- color: colorText,
101
- fontWeight: fontWeightStrong,
102
- backgroundColor: "#f7f8fc",
103
- borderBottom: "none",
104
- borderLeft: "none",
105
- borderRadius: 2,
106
- div: {
107
- borderLeft: "none"
108
- },
109
- [`& + ${antCls}-tabs-tab`]: {
110
- div: {
111
- borderLeft: "none"
112
- }
113
- }
114
- },
115
- [`${antCls}-tabs-extra-content`]: {
116
- marginRight: 16,
117
- lineHeight: 32
118
- },
119
- [`${antCls}-tabs-content`]: {
120
- height: "calc(100% - 64px)",
121
- padding: 16,
122
- overflow: "scroll",
123
- color: colorTextSecondary,
124
- lineHeight: 22,
125
- whiteSpace: "pre-wrap",
126
- wordBreak: "break-all",
127
- backgroundColor: "#f7f8fc"
128
- }
129
- }
130
- }
131
- }
132
- };
133
- };
134
- var style_default = (prefixCls) => {
135
- const useStyle = (0, import_genComponentStyleHook.genComponentStyleHook)("TaskGraph", (token) => {
136
- return [genTaskGraphStyle(token)];
137
- });
138
- return useStyle(prefixCls);
139
- };
140
- // Annotate the CommonJS export names for ESM import in node:
141
- 0 && (module.exports = {
142
- genTaskGraphStyle
143
- });