@cgeui/utils 0.0.2 → 0.0.3

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 (97) hide show
  1. package/dist/esm/charts/Chart/utils/complementData.js +714 -0
  2. package/dist/esm/charts/Chart/utils/convertToEchartsConfig/chartsToEchartsConfig.js +99 -0
  3. package/dist/esm/charts/Chart/utils/convertToEchartsConfig/index.js +2 -0
  4. package/dist/esm/charts/Chart/utils/convertToEchartsConfig/pieChartToEchartsConfig.js +140 -0
  5. package/dist/esm/charts/Chart/utils/getOption.js +365 -0
  6. package/dist/esm/charts/Chart/utils/handleChartConfig.js +279 -0
  7. package/dist/esm/charts/Chart/utils/index.js +5 -0
  8. package/dist/esm/charts/Chart/utils/preConfig/index.js +307 -0
  9. package/dist/esm/charts/Chart/utils/preConfig/type.js +1 -0
  10. package/dist/esm/charts/PieChart/interface.js +1 -0
  11. package/dist/esm/charts/PieChart/locales/en-US.js +9 -0
  12. package/dist/esm/charts/PieChart/locales/index.js +7 -0
  13. package/dist/esm/charts/PieChart/locales/zh-CN.js +9 -0
  14. package/dist/esm/charts/PieChart/util.js +434 -0
  15. package/dist/esm/charts/SuperChart/config/bar.js +39 -0
  16. package/dist/esm/charts/SuperChart/config/index.js +237 -0
  17. package/dist/esm/charts/SuperChart/configStyle/color.js +23 -0
  18. package/dist/esm/charts/SuperChart/configStyle/dataZoom.js +13 -0
  19. package/dist/esm/charts/SuperChart/configStyle/grid.js +20 -0
  20. package/dist/esm/charts/SuperChart/configStyle/index.js +10 -0
  21. package/dist/esm/charts/SuperChart/configStyle/legend.js +68 -0
  22. package/dist/esm/charts/SuperChart/configStyle/lineStyle.js +80 -0
  23. package/dist/esm/charts/SuperChart/configStyle/title.js +16 -0
  24. package/dist/esm/charts/SuperChart/configStyle/tooltip.js +38 -0
  25. package/dist/esm/charts/SuperChart/configStyle/visualMap.js +18 -0
  26. package/dist/esm/charts/SuperChart/configStyle/xAxis.js +19 -0
  27. package/dist/esm/charts/SuperChart/configStyle/yAxis.js +56 -0
  28. package/dist/esm/charts/SuperChart/interface.js +1 -0
  29. package/dist/esm/charts/chartTheme/colorUtil.js +22 -0
  30. package/dist/esm/charts/chartTheme/darkChart.js +508 -0
  31. package/dist/esm/charts/chartTheme/defaultChart.js +492 -0
  32. package/dist/esm/charts/chartTheme/index.js +4 -0
  33. package/dist/esm/charts/chartTheme/themeColor.js +168 -0
  34. package/dist/esm/charts/index.js +5 -0
  35. package/dist/esm/charts/utils/charts/hex2Rgb.js +32 -0
  36. package/dist/esm/charts/utils/constants/env.js +6 -0
  37. package/dist/esm/charts/utils/constants/helper.js +5 -0
  38. package/dist/esm/charts/utils/constants/index.js +3 -0
  39. package/dist/esm/charts/utils/constants/table.js +17 -0
  40. package/dist/esm/charts/utils/data.js +450 -0
  41. package/dist/esm/charts/utils/index.js +5 -0
  42. package/dist/esm/charts/utils/locale.js +7 -0
  43. package/dist/esm/charts/utils/time/index.js +14 -0
  44. package/dist/esm/charts/utils/types/action.d.ts +33 -0
  45. package/dist/esm/charts/utils/types/chart.d.ts +220 -0
  46. package/dist/esm/charts/utils/types/data.d.ts +51 -0
  47. package/dist/esm/charts/utils/types/index.d.ts +3 -0
  48. package/dist/esm/index.js +3 -0
  49. package/dist/lib/charts/Chart/utils/complementData.js +721 -0
  50. package/dist/lib/charts/Chart/utils/convertToEchartsConfig/chartsToEchartsConfig.js +105 -0
  51. package/dist/lib/charts/Chart/utils/convertToEchartsConfig/index.js +27 -0
  52. package/dist/lib/charts/Chart/utils/convertToEchartsConfig/pieChartToEchartsConfig.js +147 -0
  53. package/dist/lib/charts/Chart/utils/getOption.js +371 -0
  54. package/dist/lib/charts/Chart/utils/handleChartConfig.js +284 -0
  55. package/dist/lib/charts/Chart/utils/index.js +60 -0
  56. package/dist/lib/charts/Chart/utils/preConfig/index.js +313 -0
  57. package/dist/lib/charts/Chart/utils/preConfig/type.js +5 -0
  58. package/dist/lib/charts/PieChart/interface.js +5 -0
  59. package/dist/lib/charts/PieChart/locales/en-US.js +15 -0
  60. package/dist/lib/charts/PieChart/locales/index.js +14 -0
  61. package/dist/lib/charts/PieChart/locales/zh-CN.js +15 -0
  62. package/dist/lib/charts/PieChart/util.js +441 -0
  63. package/dist/lib/charts/SuperChart/config/bar.js +45 -0
  64. package/dist/lib/charts/SuperChart/config/index.js +243 -0
  65. package/dist/lib/charts/SuperChart/configStyle/color.js +29 -0
  66. package/dist/lib/charts/SuperChart/configStyle/dataZoom.js +19 -0
  67. package/dist/lib/charts/SuperChart/configStyle/grid.js +26 -0
  68. package/dist/lib/charts/SuperChart/configStyle/index.js +76 -0
  69. package/dist/lib/charts/SuperChart/configStyle/legend.js +74 -0
  70. package/dist/lib/charts/SuperChart/configStyle/lineStyle.js +86 -0
  71. package/dist/lib/charts/SuperChart/configStyle/title.js +22 -0
  72. package/dist/lib/charts/SuperChart/configStyle/tooltip.js +44 -0
  73. package/dist/lib/charts/SuperChart/configStyle/visualMap.js +24 -0
  74. package/dist/lib/charts/SuperChart/configStyle/xAxis.js +25 -0
  75. package/dist/lib/charts/SuperChart/configStyle/yAxis.js +62 -0
  76. package/dist/lib/charts/SuperChart/interface.js +5 -0
  77. package/dist/lib/charts/chartTheme/colorUtil.js +28 -0
  78. package/dist/lib/charts/chartTheme/darkChart.js +514 -0
  79. package/dist/lib/charts/chartTheme/defaultChart.js +498 -0
  80. package/dist/lib/charts/chartTheme/index.js +49 -0
  81. package/dist/lib/charts/chartTheme/themeColor.js +174 -0
  82. package/dist/lib/charts/index.js +60 -0
  83. package/dist/lib/charts/utils/charts/hex2Rgb.js +38 -0
  84. package/dist/lib/charts/utils/constants/env.js +12 -0
  85. package/dist/lib/charts/utils/constants/helper.js +11 -0
  86. package/dist/lib/charts/utils/constants/index.js +38 -0
  87. package/dist/lib/charts/utils/constants/table.js +23 -0
  88. package/dist/lib/charts/utils/data.js +454 -0
  89. package/dist/lib/charts/utils/index.js +60 -0
  90. package/dist/lib/charts/utils/locale.js +13 -0
  91. package/dist/lib/charts/utils/time/index.js +21 -0
  92. package/dist/lib/charts/utils/types/action.d.ts +33 -0
  93. package/dist/lib/charts/utils/types/chart.d.ts +220 -0
  94. package/dist/lib/charts/utils/types/data.d.ts +51 -0
  95. package/dist/lib/charts/utils/types/index.d.ts +3 -0
  96. package/dist/lib/index.js +25 -0
  97. package/package.json +2 -1
@@ -0,0 +1,498 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.defaultPieChartTheme = exports.defaultChartTheme = void 0;
7
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
8
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
12
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
13
+ var legend = {
14
+ itemWidth: 8,
15
+ itemHeight: 8,
16
+ textStyle: {
17
+ color: "#000"
18
+ },
19
+ itemStyle: {
20
+ opacity: 0.85
21
+ },
22
+ icon: "diamond",
23
+ right: 0,
24
+ pageIconSize: 10,
25
+ // 翻页按钮大小
26
+ pageIconColor: "rgba(0,0,0, 0.7)",
27
+ // 可以翻页
28
+ pageIconInactiveColor: "rgba(0,0,0, 0.3)",
29
+ // 不能翻页
30
+ pageTextStyle: {
31
+ color: "rgba(0, 0, 0, 0.85)"
32
+ }
33
+ };
34
+ var barBackground = {
35
+ showBackground: true,
36
+ backgroundStyle: {
37
+ color: "rgba(200, 198, 198, 0.2)"
38
+ }
39
+ };
40
+ var tooltip = {
41
+ trigger: "axis",
42
+ axisPointer: {
43
+ type: "shadow",
44
+ shadowStyle: {
45
+ color: "rgba(219, 232, 255, 0.4)"
46
+ // width: 40,
47
+ }
48
+ },
49
+ backgroundColor: "#fff",
50
+ borderColor: "#fff",
51
+ textStyle: {
52
+ color: "#000"
53
+ },
54
+ appendToBody: true,
55
+ confine: true,
56
+ className: "frosted-glass",
57
+ extraCssText: "max-height: 240px; max-width: 400px; overflow: auto;",
58
+ enterable: true,
59
+ pageTextStyle: {
60
+ color: "#000"
61
+ }
62
+ };
63
+ var colorArr = ["#00B42A", "#F4A547", "#525FDD", "#FFCB47", "#34A5E5", "#E67754", "#13BDCC", "#C85DB8", "#30C147", "#9251DE"];
64
+ var defaultPieChartTheme = exports.defaultPieChartTheme = {
65
+ color: colorArr,
66
+ backgroundColor: "transparent",
67
+ textStyle: {},
68
+ title: {
69
+ textStyle: {
70
+ color: "#444"
71
+ },
72
+ subtextStyle: {
73
+ color: "#888"
74
+ }
75
+ },
76
+ legend: {
77
+ itemWidth: 6,
78
+ itemHeight: 6,
79
+ textStyle: {
80
+ color: "#000"
81
+ },
82
+ itemStyle: {
83
+ opacity: 0.85
84
+ },
85
+ icon: "circle",
86
+ right: 0,
87
+ pageIconSize: 10,
88
+ // 翻页按钮大小
89
+ pageIconColor: "rgba(0,0,0, 0.7)",
90
+ // 可以翻页
91
+ pageIconInactiveColor: "rgba(0,0,0, 0.3)",
92
+ // 不能翻页
93
+ pageTextStyle: {
94
+ color: "rgba(0, 0, 0, 0.85)"
95
+ }
96
+ },
97
+ tooltip: tooltip
98
+ };
99
+ var defaultChartTheme = exports.defaultChartTheme = {
100
+ color: colorArr,
101
+ backgroundColor: "transparent",
102
+ textStyle: {},
103
+ title: {
104
+ textStyle: {
105
+ color: "#444"
106
+ },
107
+ subtextStyle: {
108
+ color: "#888"
109
+ }
110
+ },
111
+ line: {
112
+ itemStyle: {
113
+ borderWidth: 1
114
+ },
115
+ lineStyle: {
116
+ width: 2
117
+ },
118
+ symbolSize: 4,
119
+ symbol: "emptyCircle"
120
+ // smooth: true,
121
+ },
122
+ radar: {
123
+ itemStyle: {
124
+ borderWidth: 1
125
+ },
126
+ lineStyle: {
127
+ width: 2
128
+ },
129
+ symbolSize: 4,
130
+ symbol: "emptyCircle",
131
+ smooth: false
132
+ },
133
+ bar: _objectSpread(_objectSpread({}, barBackground), {}, {
134
+ barWidth: 16,
135
+ itemStyle: {
136
+ barBorderWidth: 0,
137
+ barBorderColor: "#ccc"
138
+ },
139
+ label: {
140
+ color: "#444",
141
+ fontWeight: 500,
142
+ fontSize: 14
143
+ }
144
+ }),
145
+ pie: {
146
+ itemStyle: {
147
+ borderWidth: 0,
148
+ borderColor: "#fff"
149
+ }
150
+ },
151
+ scatter: {
152
+ itemStyle: {
153
+ borderWidth: 0,
154
+ borderColor: "#ccc"
155
+ }
156
+ },
157
+ boxplot: {},
158
+ parallel: {
159
+ itemStyle: {
160
+ borderWidth: 0,
161
+ borderColor: "#ccc"
162
+ }
163
+ },
164
+ sankey: {
165
+ itemStyle: {
166
+ borderWidth: 0,
167
+ borderColor: "#ccc"
168
+ }
169
+ },
170
+ funnel: {
171
+ itemStyle: {
172
+ borderWidth: 0,
173
+ borderColor: "#ccc"
174
+ }
175
+ },
176
+ gauge: {
177
+ itemStyle: {
178
+ borderWidth: 0,
179
+ borderColor: "#ccc"
180
+ }
181
+ },
182
+ candlestick: {
183
+ itemStyle: {
184
+ color: "#c12e34",
185
+ color0: "#2b821d",
186
+ borderColor: "#c12e34",
187
+ borderColor0: "#2b821d",
188
+ borderWidth: 1
189
+ }
190
+ },
191
+ graph: {
192
+ itemStyle: {
193
+ borderWidth: 0,
194
+ borderColor: "#ccc"
195
+ },
196
+ lineStyle: {
197
+ width: 1,
198
+ color: "#aaaaaa"
199
+ },
200
+ symbolSize: 4,
201
+ symbol: "emptyCircle",
202
+ smooth: false,
203
+ color: ["#c12e34", "#e6b600", "#0098d9", "#2b821d", "#005eaa", "#339ca8", "#cda819", "#32a487"],
204
+ label: {
205
+ color: "#eeeeee"
206
+ }
207
+ },
208
+ map: {
209
+ itemStyle: {
210
+ areaColor: "#ddd",
211
+ borderColor: "#eee",
212
+ borderWidth: 0.5
213
+ },
214
+ label: {
215
+ color: "#c12e34"
216
+ },
217
+ emphasis: {
218
+ itemStyle: {
219
+ areaColor: "#e6b600",
220
+ borderColor: "#ddd",
221
+ borderWidth: 1
222
+ },
223
+ label: {
224
+ color: "#c12e34"
225
+ }
226
+ }
227
+ },
228
+ geo: {
229
+ itemStyle: {
230
+ areaColor: "#ddd",
231
+ borderColor: "#eee",
232
+ borderWidth: 0.5
233
+ },
234
+ label: {
235
+ color: "#c12e34"
236
+ },
237
+ emphasis: {
238
+ itemStyle: {
239
+ areaColor: "#e6b600",
240
+ borderColor: "#ddd",
241
+ borderWidth: 1
242
+ },
243
+ label: {
244
+ color: "#c12e34"
245
+ }
246
+ }
247
+ },
248
+ categoryAxis: {
249
+ axisLine: {
250
+ show: true,
251
+ lineStyle: {
252
+ type: "solid",
253
+ color: "#DBDFE6",
254
+ width: 1.5
255
+ }
256
+ },
257
+ axisTick: {
258
+ show: false,
259
+ lineStyle: {
260
+ color: "#DBDFE6"
261
+ }
262
+ },
263
+ nameTextStyle: {
264
+ color: "#444",
265
+ opacity: 0.85
266
+ },
267
+ axisLabel: {
268
+ show: true,
269
+ color: "#444",
270
+ hideOverlap: true
271
+ },
272
+ splitLine: {
273
+ show: false
274
+ },
275
+ splitArea: {
276
+ show: false
277
+ }
278
+ },
279
+ valueAxis: {
280
+ scale: true,
281
+ axisLine: {
282
+ show: false,
283
+ lineStyle: {
284
+ type: "solid",
285
+ color: "#DBDFE6",
286
+ width: 1.5
287
+ }
288
+ },
289
+ axisTick: {
290
+ show: false,
291
+ lineStyle: {
292
+ color: "#DBDFE6"
293
+ }
294
+ },
295
+ axisLabel: {
296
+ show: true,
297
+ color: "#888",
298
+ hideOverlap: true
299
+ },
300
+ splitLine: {
301
+ show: true,
302
+ lineStyle: {
303
+ type: "dashed",
304
+ color: ["#DBDFE6"]
305
+ }
306
+ },
307
+ splitArea: {
308
+ show: false
309
+ },
310
+ nameTextStyle: {
311
+ color: "#444",
312
+ opacity: 0.85
313
+ }
314
+ },
315
+ timeAxis: {
316
+ axisLine: {
317
+ show: true,
318
+ lineStyle: {
319
+ type: "solid",
320
+ color: "#DBDFE6",
321
+ width: 1.5
322
+ }
323
+ },
324
+ axisTick: {
325
+ show: false,
326
+ lineStyle: {
327
+ color: "#DBDFE6"
328
+ }
329
+ },
330
+ nameTextStyle: {
331
+ color: "#444",
332
+ opacity: 0.85
333
+ },
334
+ axisLabel: {
335
+ show: true,
336
+ color: "#444",
337
+ formatter: {
338
+ year: "{yyyy}",
339
+ month: "{MMM}",
340
+ day: "{d}",
341
+ hour: "{HH}:{mm}",
342
+ minute: "{HH}:{mm}",
343
+ second: "{HH}:{mm}:{ss}"
344
+ },
345
+ hideOverlap: true
346
+ },
347
+ splitLine: {
348
+ show: false
349
+ },
350
+ splitArea: {
351
+ show: false
352
+ }
353
+ },
354
+ logAxis: {
355
+ axisLine: {
356
+ show: true,
357
+ lineStyle: {
358
+ color: "#DBDFE6"
359
+ }
360
+ },
361
+ axisTick: {
362
+ show: true,
363
+ lineStyle: {
364
+ color: "#DBDFE6"
365
+ }
366
+ },
367
+ axisLabel: {
368
+ show: true,
369
+ color: "#333"
370
+ },
371
+ splitLine: {
372
+ show: true,
373
+ lineStyle: {
374
+ type: "dashed",
375
+ color: ["#DBDFE6"]
376
+ }
377
+ },
378
+ splitArea: {
379
+ show: false,
380
+ areaStyle: {
381
+ color: ["rgba(250,250,250,0.3)", "rgba(200,200,200,0.3)"]
382
+ }
383
+ }
384
+ },
385
+ toolbox: {
386
+ iconStyle: {
387
+ borderColor: "#06467c"
388
+ },
389
+ emphasis: {
390
+ iconStyle: {
391
+ borderColor: "#4187c2"
392
+ }
393
+ }
394
+ },
395
+ legend: legend,
396
+ tooltip: tooltip,
397
+ timeline: {
398
+ lineStyle: {
399
+ color: "#005eaa",
400
+ width: 1
401
+ },
402
+ itemStyle: {
403
+ color: "#005eaa",
404
+ borderWidth: 1
405
+ },
406
+ controlStyle: {
407
+ color: "#005eaa",
408
+ borderColor: "#005eaa",
409
+ borderWidth: 0.5
410
+ },
411
+ checkpointStyle: {
412
+ color: "#005eaa",
413
+ borderColor: "#316bc2"
414
+ },
415
+ label: {
416
+ color: "#005eaa"
417
+ },
418
+ emphasis: {
419
+ itemStyle: {
420
+ color: "#005eaa"
421
+ },
422
+ controlStyle: {
423
+ color: "#005eaa",
424
+ borderColor: "#005eaa",
425
+ borderWidth: 0.5
426
+ },
427
+ label: {
428
+ color: "#005eaa"
429
+ }
430
+ }
431
+ },
432
+ visualMap: {
433
+ color: ["#1790cf", "#a2d4e6"],
434
+ textStyle: {
435
+ color: "#333333"
436
+ }
437
+ },
438
+ dataZoom: {
439
+ backgroundColor: "rgba(47,69,84,0)",
440
+ dataBackgroundColor: "rgba(47,69,84,0.3)",
441
+ fillerColor: "rgba(167,183,204,0.4)",
442
+ handleColor: "#a7b7cc",
443
+ handleSize: "100%",
444
+ textStyle: {
445
+ color: "#333333"
446
+ }
447
+ },
448
+ markPoint: {
449
+ label: {
450
+ color: "#eeeeee"
451
+ },
452
+ emphasis: {
453
+ label: {
454
+ color: "#eeeeee"
455
+ }
456
+ }
457
+ },
458
+ categoryAxis3D: {
459
+ axisLabel: {
460
+ color: "#444",
461
+ hideOverlap: true
462
+ },
463
+ axisLine: {
464
+ lineStyle: {
465
+ type: "solid",
466
+ color: "#DBDFE6",
467
+ width: 1.5
468
+ }
469
+ },
470
+ splitLine: {
471
+ show: true,
472
+ lineStyle: {
473
+ type: "dashed",
474
+ color: "#DBDFE6"
475
+ }
476
+ }
477
+ },
478
+ valueAxis3D: {
479
+ axisLabel: {
480
+ color: "#444",
481
+ hideOverlap: true
482
+ },
483
+ axisLine: {
484
+ lineStyle: {
485
+ type: "solid",
486
+ color: "#DBDFE6",
487
+ width: 1.5
488
+ }
489
+ },
490
+ splitLine: {
491
+ show: true,
492
+ lineStyle: {
493
+ type: "dashed",
494
+ color: "#DBDFE6"
495
+ }
496
+ }
497
+ }
498
+ };
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _colorUtil = require("./colorUtil");
7
+ Object.keys(_colorUtil).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _colorUtil[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function get() {
13
+ return _colorUtil[key];
14
+ }
15
+ });
16
+ });
17
+ var _darkChart = require("./darkChart");
18
+ Object.keys(_darkChart).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _darkChart[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function get() {
24
+ return _darkChart[key];
25
+ }
26
+ });
27
+ });
28
+ var _defaultChart = require("./defaultChart");
29
+ Object.keys(_defaultChart).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _defaultChart[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function get() {
35
+ return _defaultChart[key];
36
+ }
37
+ });
38
+ });
39
+ var _themeColor = require("./themeColor");
40
+ Object.keys(_themeColor).forEach(function (key) {
41
+ if (key === "default" || key === "__esModule") return;
42
+ if (key in exports && exports[key] === _themeColor[key]) return;
43
+ Object.defineProperty(exports, key, {
44
+ enumerable: true,
45
+ get: function get() {
46
+ return _themeColor[key];
47
+ }
48
+ });
49
+ });
@@ -0,0 +1,174 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.themeColor = void 0;
7
+ /**
8
+ * 自定义主题
9
+ */
10
+ // All antd theme variables: https://github.com/ant-design/ant-design/blob/master/components/style/themes/default.less
11
+ var themeColor = exports.themeColor = {
12
+ '@no-bg': 'transparent',
13
+ '@light': '#fff',
14
+ '@dark': '#000',
15
+ '@heading-color': 'fade(@light, 85)',
16
+ '@text-color': 'fade(@light, 65)',
17
+ '@text-color-secondary': 'fade(@light, 45)',
18
+ '@disabled-color': 'fade(@light, 25)',
19
+ '@primary-5': '#40a9ff',
20
+ '@primary-color': '#1890ff',
21
+ '@outline-color': '@primary-color',
22
+ //icon
23
+ '@icon-color': 'fade(@light, 65)',
24
+ '@icon-color-hover': 'fade(@light, 85)',
25
+ '@primary-6': '#096dd9',
26
+ //border
27
+ // Border color
28
+ '@border-color-base': '@white-2',
29
+ // base border outline a component
30
+ '@border-color-split': '@white-2',
31
+ // split border inside a component
32
+ '@border-color-inverse': '@white',
33
+ '@border-width-base': '1px',
34
+ // width of the border for a component
35
+ '@border-style-base': 'solid',
36
+ // style of a components border
37
+
38
+ // vertical margins
39
+ '@margin-lg': '20px',
40
+ // containers
41
+ '@margin-md': '16px',
42
+ // small containers and buttons
43
+ '@margin-sm': '12px',
44
+ // Form controls and items
45
+ '@margin-xs': '8px',
46
+ // small items
47
+ '@margin-xss': '4px',
48
+ // more small
49
+
50
+ //btn
51
+ '@btn-default-color': '@heading-color',
52
+ '@btn-default-bg': '#444457',
53
+ '@btn-default-border': '#444457',
54
+ '@btn-ghost-color': 'fade(@light, 45)',
55
+ '@btn-ghost-border': 'fade(@light, 45)',
56
+ //input
57
+ '@input-color': '@text-color',
58
+ '@input-bg': '@no-bg',
59
+ '@input-disabled-bg': '#4c4c61',
60
+ '@input-placeholder-color': '@text-color-secondary',
61
+ '@input-hover-border-color': 'fade(@light, 10)',
62
+ '@checkbox-check-color': '#3b3b4d',
63
+ '@checkbox-color': '@primary-color',
64
+ '@select-border-color': '#3b3b4d',
65
+ //bg
66
+ bg1: '#03091D',
67
+ bg2: '#0B1227',
68
+ bg3: '#121C3A',
69
+ '@background-color-base': '@bg1',
70
+ '@background-color-light': '@bg2',
71
+ '@item-active-bg': '#272733',
72
+ '@menu-dark-bg': '#001529',
73
+ '@body-background': '@background-color-base',
74
+ '@component-background': '@background-color-light',
75
+ '@tooltip-bg': '#191922',
76
+ '@tooltip-arrow-color': '#191922',
77
+ '@popover-bg': '#2d2d3b',
78
+ // Layout
79
+ '@layout-header-background': '@background-color-light',
80
+ '@layout-body-background': '@body-background',
81
+ '@page-header-back-color': '@background-color-base',
82
+ '@success-color': '#00a854',
83
+ '@info-color': '@primary-color',
84
+ '@warning-color': '#ffbf00',
85
+ '@error-color': '#f04134',
86
+ '@menu-bg': '#30303d',
87
+ '@menu-item-active-bg': 'fade(@light, 5)',
88
+ '@menu-highlight-color': '@light',
89
+ //table
90
+ '@table-bg': '@background-color-base',
91
+ '@table-header-bg': '@background-color-base',
92
+ '@table-filter-dropdown-bg': '@bg3',
93
+ // '@table-header-filter-active-bg': '@blue',
94
+ //card
95
+ '@card-head-background': 'transparent',
96
+ '@card-background': '@component-background',
97
+ '@card-hover-border': '#383847',
98
+ '@card-actions-background': '#30303d',
99
+ '@tail-color': 'fade(@light, 10)',
100
+ '@radio-button-bg': 'transparent',
101
+ '@radio-button-checked-bg': 'transparent',
102
+ '@radio-dot-color': '@primary-color',
103
+ '@table-row-hover-bg': '#383847',
104
+ '@item-hover-bg': '#383847',
105
+ '@alert-text-color': 'fade(@dark, 65%)',
106
+ '@tabs-horizontal-padding': '12px 0',
107
+ // zIndex': 'notification > popover > tooltip
108
+ '@zindex-notification': '1063',
109
+ '@zindex-popover': '1061',
110
+ '@zindex-tooltip': '1060',
111
+ // width
112
+ '@anchor-border-width': '1px',
113
+ // margin
114
+ '@form-item-margin-bottom': '24px',
115
+ '@menu-item-vertical-margin': '0px',
116
+ '@menu-item-boundary-margin': '0px',
117
+ // size
118
+ '@font-size-base': '14px',
119
+ '@font-size-lg': '16px',
120
+ '@screen-xl': '1208px',
121
+ '@screen-lg': '1024px',
122
+ '@screen-md': '768px',
123
+ // 移动
124
+ '@screen-sm': '767.9px',
125
+ // 超小屏
126
+ '@screen-xs': '375px',
127
+ '@alert-message-color': '@popover-bg',
128
+ // 官网
129
+ '@site-text-color': '@text-color',
130
+ '@site-border-color-split': 'fade(@light, 5)',
131
+ '@site-heading-color': '@heading-color',
132
+ '@site-header-box-shadow': '0 0.3px 0.9px rgba(0, 0, 0, 0.12), 0 1.6px 3.6px rgba(0, 0, 0, 0.12)',
133
+ '@home-text-color': '@text-color',
134
+ // 自定义需要找设计师
135
+ '@gray-8': '@text-color',
136
+ '@skeleton-color': 'rgba(0,0,0,0.8)',
137
+ // pro
138
+ '@pro-header-box-shadow': '@site-header-box-shadow',
139
+ // 背景图片,新增
140
+ '@login-bg': "url('../assets/loginBgPng.jpg')",
141
+ // '@login-bg': `url('')`, // 没有必须为空,js文件里引入
142
+ blue: '#0C6FF2',
143
+ 'blue-1': 'rgba(12, 111, 242, 0.1)',
144
+ 'blue-2': 'rgba(12, 111, 242, 0.3)',
145
+ 'blue-3': 'rgba(12, 111, 242, 0.25)',
146
+ green: '#19D56B',
147
+ purple: '#871CD5',
148
+ orange: '#D89614',
149
+ red: '#E11D26',
150
+ darkBlue: '#0B1227',
151
+ darkBlue1: '#121C3A',
152
+ darkBlue2: '#03091D',
153
+ upper: '#2CCCDB',
154
+ normal: '#3888FF',
155
+ // 不能是白色了
156
+ lower: '#2CCCDB',
157
+ // 8BFFF8
158
+
159
+ 'primary-color': '#0C6FF2',
160
+ grey: '#D8D8D8',
161
+ 'grey-1': 'rgba(234, 234, 234, 0.12)',
162
+ white: '#FFFFFF',
163
+ 'white-1': 'rgba(255, 255, 255, 0.65)',
164
+ 'white-2': 'rgba(255, 255, 255, 0.08)',
165
+ 'white-3': 'rgba(255, 255, 255, 0.4)',
166
+ 'white-4': 'rgba(255, 255, 255, 0.85)',
167
+ 'white-5': 'rgba(255, 255, 255, 0.2)',
168
+ 'white-6': 'rgba(255, 255, 255, 0.25)',
169
+ 'white-7': 'rgba(255, 255, 255, 0.45)',
170
+ 'white-8': 'rgba(255, 255, 255, 0.12)',
171
+ 'white-9': 'rgba(255, 255, 255, 0.5)',
172
+ '1DB35D': '#1DB35D',
173
+ D89614: '#D89614'
174
+ };