mrxy-yk 1.0.9 → 1.0.11

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.
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import "./utils/echarts/themes/dark.js";
1
2
  import * as index$1 from "./components/index.js";
2
3
  import * as index$2 from "./directives/index.js";
3
4
  import "./element-plus/index.js";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,181 @@
1
+ import * as echarts from "echarts";
2
+ const contrastColor = "#B9B8CE";
3
+ const backgroundColor = "rgba(0, 0, 0, 0)";
4
+ const axisCommon = function() {
5
+ return {
6
+ axisLine: {
7
+ lineStyle: {
8
+ color: contrastColor
9
+ },
10
+ axisLabel: {
11
+ color: contrastColor
12
+ }
13
+ },
14
+ splitLine: {
15
+ lineStyle: {
16
+ color: "#B9B8CE33",
17
+ type: "dashed"
18
+ }
19
+ },
20
+ splitArea: {
21
+ areaStyle: {
22
+ color: ["rgba(255,255,255,0.02)", "rgba(255,255,255,0.05)"]
23
+ }
24
+ },
25
+ minorSplitLine: {
26
+ lineStyle: {
27
+ color: "#20203B"
28
+ }
29
+ }
30
+ };
31
+ };
32
+ const colorPalette = [
33
+ "#4992ff",
34
+ "#7cffb2",
35
+ "#fddd60",
36
+ "#ff6e76",
37
+ "#58d9f9",
38
+ "#05c091",
39
+ "#ff8a45",
40
+ "#8d48e3",
41
+ "#dd79ff"
42
+ ];
43
+ const theme = {
44
+ darkMode: true,
45
+ color: colorPalette,
46
+ backgroundColor,
47
+ axisPointer: {
48
+ lineStyle: {
49
+ color: "#817f91"
50
+ },
51
+ crossStyle: {
52
+ color: "#817f91"
53
+ },
54
+ label: {
55
+ // TODO Contrast of label backgorundColor
56
+ color: "#fff"
57
+ }
58
+ },
59
+ legend: {
60
+ textStyle: {
61
+ color: contrastColor
62
+ }
63
+ },
64
+ textStyle: {
65
+ color: contrastColor
66
+ },
67
+ title: {
68
+ textStyle: {
69
+ color: "#EEF1FA"
70
+ },
71
+ subtextStyle: {
72
+ color: "#B9B8CE"
73
+ }
74
+ },
75
+ toolbox: {
76
+ iconStyle: {
77
+ borderColor: contrastColor
78
+ }
79
+ },
80
+ dataZoom: {
81
+ borderColor: "#71708A",
82
+ textStyle: {
83
+ color: contrastColor
84
+ },
85
+ brushStyle: {
86
+ color: "rgba(135,163,206,0.3)"
87
+ },
88
+ handleStyle: {
89
+ color: "#353450",
90
+ borderColor: "#C5CBE3"
91
+ },
92
+ moveHandleStyle: {
93
+ color: "#B0B6C3",
94
+ opacity: 0.3
95
+ },
96
+ fillerColor: "rgba(135,163,206,0.2)",
97
+ emphasis: {
98
+ handleStyle: {
99
+ borderColor: "#91B7F2",
100
+ color: "#4D587D"
101
+ },
102
+ moveHandleStyle: {
103
+ color: "#636D9A",
104
+ opacity: 0.7
105
+ }
106
+ },
107
+ dataBackground: {
108
+ lineStyle: {
109
+ color: "#71708A",
110
+ width: 1
111
+ },
112
+ areaStyle: {
113
+ color: "#71708A"
114
+ }
115
+ },
116
+ selectedDataBackground: {
117
+ lineStyle: {
118
+ color: "#87A3CE"
119
+ },
120
+ areaStyle: {
121
+ color: "#87A3CE"
122
+ }
123
+ }
124
+ },
125
+ visualMap: {
126
+ textStyle: {
127
+ color: contrastColor
128
+ }
129
+ },
130
+ timeline: {
131
+ lineStyle: {
132
+ color: contrastColor
133
+ },
134
+ label: {
135
+ color: contrastColor
136
+ },
137
+ controlStyle: {
138
+ color: contrastColor,
139
+ borderColor: contrastColor
140
+ }
141
+ },
142
+ calendar: {
143
+ itemStyle: {
144
+ color: backgroundColor
145
+ },
146
+ dayLabel: {
147
+ color: contrastColor
148
+ },
149
+ monthLabel: {
150
+ color: contrastColor
151
+ },
152
+ yearLabel: {
153
+ color: contrastColor
154
+ }
155
+ },
156
+ timeAxis: axisCommon(),
157
+ logAxis: axisCommon(),
158
+ valueAxis: axisCommon(),
159
+ categoryAxis: axisCommon(),
160
+ line: {
161
+ symbol: "circle"
162
+ },
163
+ graph: {
164
+ color: colorPalette
165
+ },
166
+ gauge: {
167
+ title: {
168
+ color: contrastColor
169
+ }
170
+ },
171
+ candlestick: {
172
+ itemStyle: {
173
+ color: "#FD1050",
174
+ color0: "#0CF49B",
175
+ borderColor: "#FD1050",
176
+ borderColor0: "#0CF49B"
177
+ }
178
+ }
179
+ };
180
+ theme.categoryAxis.splitLine.show = false;
181
+ echarts.registerTheme("dark", theme);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mrxy-yk",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "A collection of Vue 3 components and utilities",
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "mrxy-yk",
4
- "version": "1.0.9",
4
+ "version": "1.0.11",
5
5
  "js-types-syntax": "typescript",
6
6
  "contributions": {
7
7
  "html": {