yxuse 1.0.41 → 1.0.43

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/lib/index.cjs4.js CHANGED
@@ -1,2 +1,237 @@
1
- "use strict";const g={green:{common:{color:{"main-100":"rgba(80, 165, 122, 1)","main-50":"rgba(80, 165, 122, 0.5)","main-25":"rgba(80, 165, 122, 0.25)","main-15":"rgba(80, 165, 122, 0.15)","main-5":"rgba(80, 165, 122, 0.05)","error-100":"rgba(255, 152, 146, 1)","error-50":"rgba(255, 152, 146, 0.5)","error-25":"rgba(255, 152, 146, 0.25)","error-15":"rgba(255, 152, 146, 0.15)","error-5":"rgba(255, 152, 146, 0.05)","warning-100":"rgba(249, 162, 33, 1)","warning-50":"rgba(249, 162, 33, 0.5)","warning-25":"rgba(249, 162, 33, 0.25)","warning-15":"rgba(249, 162, 33, 0.15)","warning-5":"rgba(249, 162, 33, 0.05)","info-100":"rgba(133, 233, 183, 1)","info-50":"rgba(133, 233, 183, 0.5)","info-25":"rgba(133, 233, 183, 0.25)","info-15":"rgba(133, 233, 183, 0.15)","info-5":"rgba(133, 233, 183, 0.05)","neutral-100":"rgba(85, 221, 221, 1)","neutral-50":"rgba(85, 221, 221, 0.5)","neutral-25":"rgba(85, 221, 221, 0.25)","neutral-15":"rgba(85, 221, 221, 0.15)","neutral-5":"rgba(85, 221, 221, 0.05)"},background:{"error-gradual":"linear-gradient(90deg, #FFCECB 0%, rgba(255,235,233,0.35) 100%)","warning-gradual":"linear-gradient(90deg, #FFE4BC 0%, rgba(255,250,233,0.35) 100%)","success-gradual":"linear-gradient(90deg, #D5ECBE 0%, rgba(234,255,233,0.35) 100%)","success-gradient":"#D5ECBE 0%, rgba(234,255,233,0.35) 100%","warning-gradient":"#FFE4BC 0%, rgba(255,250,233,0.35) 100%","error-gradient":"#FFCECB 0%, rgba(255,235,233,0.35) 100%",page:"rgba(241, 243, 242, 1)","main-content-special":"rgba(103, 186, 145, 0.10)",section:"rgba(252, 255, 253, 1)",success:"rgba(80, 165, 122, 1)",warning:"#F9A221",error:"#FF9892"},button:{background:"rgba(103, 186, 145, 0.10)","border-color":"rgba(80, 165, 122, 1)","text-color":"rgba(80, 165, 122, 1)","active-background-color":"rgba(80, 165, 122, 1)","active-border-color":"rgba(154, 209, 162, 1)","active-text-color":"#fff"},checkbox:{background:"rgba(216, 233, 219, 1)","icon-color":"rgba(80, 165, 122, 0)","border-color":"rgba(154, 209, 162, 1)","text-color":"#9AD1A2","checked-text-color":"#1D4B34","checked-background":"rgba(216, 233, 219, 1)","checked-icon-color":"rgba(80, 165, 122, 1)","checked-border-color":"rgba(154, 209, 162, 1)"},radio:{background:"rgba(191, 225, 209, 1)","icon-border-color":"rgba(191, 225, 209, 1)","icon-checked-background":"rgba(103, 186, 145, 1)","icon-checked-point-background":"rgba(210, 255, 218, 1)"},switch:{background:"#637B6B","icon-point-background":"#fff","icon-checked-point-background":"#90E6BA","checked-background":"#9BE9C2"},input:{background:"rgba(237, 246, 239, 1)","border-color":"rgba(80, 165, 122, 1)",color:"rgba(29, 75, 52, 1)","placeholder-color":"rgba(80, 165, 122, 1)","hover-background":"rgba(237, 246, 239, 0.30)","hover-border-color":"rgba(80, 165, 122, 1)","hover-color":"rgba(80, 165, 122, 1)","active-background":"rgba(237, 246, 239, 0.30)","active-border-color":"rgba(80, 165, 122, 1)","active-color":"rgba(80, 165, 122, 1)","disabled-background":"rgba(219, 232, 221, 1)","disabled-border-color":"#fff","disabled-color":"rgba(80, 165, 122, 0.5)","append-background":"transparent","append-color":"#50A57A"},select:{"dropdown-background":"rgba(237, 246, 239, 1)","dropdown-border-color":"rgba(80, 165, 122, 1)","dropdown-item-color":"rgba(80, 165, 122, 1)","dropdown-item-hover-background":"rgba(178, 220, 198, 1)","dropdown-item-hover-color":"rgba(29, 75, 52, 1)","dropdown-item-selected-background":"rgba(178, 220, 198, 1)","dropdown-item-selected-color":"rgba(29, 75, 52, 1)"},tree:{},layout:{"nav-background":"#fff","view-background":"#F1F3F2"},table:{"header-background":"#67BA91","header-text-color":"#fff","row-background":"#D1EFDA","row-odd-background":"#EAF9ED","row-border-bottom-color":"#9AD1A2","row-text-color":"#1D4B34","row-error-background":"linear-gradient(90deg, #FFCECB 0%, rgba(255,235,233,0.35) 100%)","row-warning-background":"linear-gradient(90deg, #FFE4BC 0%, rgba(255,250,233,0.35) 100%)","row-hover-background":"linear-gradient(90deg, #D5ECBE 0%, rgba(234,255,233,0.35) 100%)","row-hover-text-color":"rgba(29, 75, 52, 1)"},chart:{pie_color_1:"#50A57A",pie_color_2:"#F8B85A",pie_color_3:"#FF9892",pie_color_4:"#55DDDD",pie_color_5:"#85E9B7",line_color_1:"#50A57A",line_color_2:"#F8B85A",line_color_3:"#FF9892",line_color_4:"#55DDDD",line_color_5:"#85E9B7",line_title_color:"#637B6B",line_xAxis_color:"#50A57A",line_yAxis_color:"#50A57A",line_markLine_color:"#FF9892",line_splitLine_color:"#DBEEE3"},message:{},text:{main:"#50A57A",deep:"#1D4B34",light:"rgba(80, 165, 122, 0.50)",paler:"#637B6B",success:"#50A57A",warning:"#F8B85A",error:"#FF9892",white:"#fff",light_gray:"#B0BDB4"},dialog:{"header-background":"#fff","body-background":"#fff","footer-background":"#fff"},progress:{background:"#CADFD3","active-background":"#67BA91"},icon:{"active-color":"rgba(80,165,122,1)","active-light-color":"#F9A221"}},cloud:{},"station-control-center":{"equipment-line-status-NORMAL-SFED":"#F9A221","equipment-line-status-NORMAL":"#50A57A","equipment-line-status-WARN":"#FF9892","equipment-line-status-OFF_LINE":"#D1D3D2","equipment-status-NORMAL":"#50A57A","equipment-status-WARN":"#FF9892","equipment-status-OFF_LINE":"#D1D3D2","equipment-background-NORMAL":"#F9FCF9","equipment-border-NORMAL":"1px solid #50A57A","equipment-background-WARN":"#F9FBFC","equipment-border-WARN":"1px solid #FF9892","equipment-background-OFF_LINE":"#E9F2EE","equipment-border-OFF_LINE":"1px solid #fff","equipment-color-LHPC-NORMAL":"#fff","equipment-background-LHPC-NORMAL":"linear-gradient(90deg, #50A57A 0%, rgba(80,165,122,0.3) 100%)","equipment-color-LHPC-NORMAL-SFED":"#fff","equipment-background-LHPC-NORMAL-SFED":"linear-gradient(90deg, #F9A221 0%, rgba(255,223,165,0.38) 100%)","equipment-color-LHPC-OFF_LINE":"#637B6B","equipment-background-LHPC-OFF_LINE":"linear-gradient(90deg, #D1D3D2 0%, rgba(209,211,210,0) 100%)","equipment-ball-background":"#9DCBB4","equipment-ball-LINE-NORMAL":"#50A57A","equipment-ball-LINE-OFF_LINE":"#D1D3D2","equipment-ball-background-SFED":"#FBE5B7","equipment-ball-LINE-NORMAL-SFED":"#F9A221","equipment-ball-LINE-OFF_LINE-SFED":"#D1D3D2"}},blue:{common:{"--test1":"#fff","--test2":"#ccc"},cloud:{},"station-control-center":{}}},c="yxTheme",m="green",i=()=>{const r=a();localStorage.getItem(c)||localStorage.setItem(c,r);const e=document.documentElement,o=g[r].common;Object.keys(o).forEach(n=>{Object.keys(o[n]).forEach(t=>{const b=`--${n}-${t}`;e.style.setProperty(b,o[n][t])})})},l=r=>{localStorage.setItem(c,r),i()},a=()=>localStorage.getItem(c)||m,d=r=>{const e=a();return g[e][r]||{}},u=r=>{const e=a();return g[e].common[r]||{}},s=r=>{const e=a(),o=g[e][r],n=document.documentElement;Object.keys(o).forEach(t=>{const b=`--${t}`;n.style.setProperty(b,o[t])})},F=Object.freeze(Object.defineProperty({__proto__:null,changeTheme:l,getCurTheme:a,getGroupColor:u,getSystemThemeConfig:d,install:i,installSystemTheme:s},Symbol.toStringTag,{value:"Module"}));exports.changeTheme=l;exports.getCurTheme=a;exports.getGroupColor=u;exports.getSystemThemeConfig=d;exports.install=i;exports.installSystemTheme=s;exports.theme=F;
1
+ "use strict";
2
+ const g = {
3
+ green: {
4
+ common: {
5
+ color: {
6
+ "main-100": "rgba(80, 165, 122, 1)",
7
+ "main-50": "rgba(80, 165, 122, 0.5)",
8
+ "main-25": "rgba(80, 165, 122, 0.25)",
9
+ "main-15": "rgba(80, 165, 122, 0.15)",
10
+ "main-5": "rgba(80, 165, 122, 0.05)",
11
+ "error-100": "rgba(255, 152, 146, 1)",
12
+ "error-50": "rgba(255, 152, 146, 0.5)",
13
+ "error-25": "rgba(255, 152, 146, 0.25)",
14
+ "error-15": "rgba(255, 152, 146, 0.15)",
15
+ "error-5": "rgba(255, 152, 146, 0.05)",
16
+ "warning-100": "rgba(249, 162, 33, 1)",
17
+ "warning-50": "rgba(249, 162, 33, 0.5)",
18
+ "warning-25": "rgba(249, 162, 33, 0.25)",
19
+ "warning-15": "rgba(249, 162, 33, 0.15)",
20
+ "warning-5": "rgba(249, 162, 33, 0.05)",
21
+ "info-100": "rgba(133, 233, 183, 1)",
22
+ "info-50": "rgba(133, 233, 183, 0.5)",
23
+ "info-25": "rgba(133, 233, 183, 0.25)",
24
+ "info-15": "rgba(133, 233, 183, 0.15)",
25
+ "info-5": "rgba(133, 233, 183, 0.05)",
26
+ "neutral-100": "rgba(85, 221, 221, 1)",
27
+ "neutral-50": "rgba(85, 221, 221, 0.5)",
28
+ "neutral-25": "rgba(85, 221, 221, 0.25)",
29
+ "neutral-15": "rgba(85, 221, 221, 0.15)",
30
+ "neutral-5": "rgba(85, 221, 221, 0.05)"
31
+ },
32
+ background: {
33
+ "error-gradual": "linear-gradient(90deg, #FFCECB 0%, rgba(255,235,233,0.35) 100%)",
34
+ "warning-gradual": "linear-gradient(90deg, #FFE4BC 0%, rgba(255,250,233,0.35) 100%)",
35
+ "success-gradual": "linear-gradient(90deg, #D5ECBE 0%, rgba(234,255,233,0.35) 100%)",
36
+ "success-gradient": "#D5ECBE 0%, rgba(234,255,233,0.35) 100%",
37
+ "warning-gradient": "#FFE4BC 0%, rgba(255,250,233,0.35) 100%",
38
+ "error-gradient": "#FFCECB 0%, rgba(255,235,233,0.35) 100%",
39
+ page: "rgba(241, 243, 242, 1)",
40
+ "main-content-special": "rgba(103, 186, 145, 0.10)",
41
+ section: "rgba(252, 255, 253, 1)",
42
+ success: "rgba(80, 165, 122, 1)",
43
+ warning: "#F9A221",
44
+ error: "#FF9892"
45
+ },
46
+ button: {
47
+ background: "rgba(103, 186, 145, 0.10)",
48
+ "border-color": "rgba(80, 165, 122, 1)",
49
+ "text-color": "rgba(80, 165, 122, 1)",
50
+ "active-background-color": "rgba(80, 165, 122, 1)",
51
+ "active-border-color": "rgba(154, 209, 162, 1)",
52
+ "active-text-color": "#fff"
53
+ },
54
+ checkbox: {
55
+ background: "rgba(216, 233, 219, 1)",
56
+ "icon-color": "rgba(80, 165, 122, 0)",
57
+ "border-color": "rgba(154, 209, 162, 1)",
58
+ "text-color": "#9AD1A2",
59
+ "checked-text-color": "#1D4B34",
60
+ "checked-background": "rgba(216, 233, 219, 1)",
61
+ "checked-icon-color": "rgba(80, 165, 122, 1)",
62
+ "checked-border-color": "rgba(154, 209, 162, 1)"
63
+ },
64
+ radio: {
65
+ background: "rgba(191, 225, 209, 1)",
66
+ "icon-border-color": "rgba(191, 225, 209, 1)",
67
+ "icon-checked-background": "rgba(103, 186, 145, 1)",
68
+ "icon-checked-point-background": "rgba(210, 255, 218, 1)"
69
+ },
70
+ switch: {
71
+ background: "#637B6B",
72
+ "icon-point-background": "#fff",
73
+ "icon-checked-point-background": "#90E6BA",
74
+ "checked-background": "#9BE9C2"
75
+ },
76
+ input: {
77
+ background: "rgba(237, 246, 239, 1)",
78
+ "border-color": "rgba(80, 165, 122, 1)",
79
+ color: "rgba(29, 75, 52, 1)",
80
+ "placeholder-color": "rgba(80, 165, 122, 1)",
81
+ "hover-background": "rgba(237, 246, 239, 0.30)",
82
+ "hover-border-color": "rgba(80, 165, 122, 1)",
83
+ "hover-color": "rgba(80, 165, 122, 1)",
84
+ "active-background": "rgba(237, 246, 239, 0.30)",
85
+ "active-border-color": "rgba(80, 165, 122, 1)",
86
+ "active-color": "rgba(80, 165, 122, 1)",
87
+ "disabled-background": "rgba(219, 232, 221, 1)",
88
+ "disabled-border-color": "#fff",
89
+ "disabled-color": "rgba(80, 165, 122, 0.5)",
90
+ "append-background": "transparent",
91
+ "append-color": "#50A57A"
92
+ },
93
+ select: {
94
+ "dropdown-background": "rgba(237, 246, 239, 1)",
95
+ "dropdown-border-color": "rgba(80, 165, 122, 1)",
96
+ "dropdown-item-color": "rgba(80, 165, 122, 1)",
97
+ "dropdown-item-hover-background": "rgba(178, 220, 198, 1)",
98
+ "dropdown-item-hover-color": "rgba(29, 75, 52, 1)",
99
+ "dropdown-item-selected-background": "rgba(178, 220, 198, 1)",
100
+ "dropdown-item-selected-color": "rgba(29, 75, 52, 1)"
101
+ },
102
+ tree: {},
103
+ layout: { "nav-background": "#fff", "view-background": "#F1F3F2" },
104
+ table: {
105
+ "header-background": "#67BA91",
106
+ "header-text-color": "#fff",
107
+ "row-background": "#D1EFDA",
108
+ "row-odd-background": "#EAF9ED",
109
+ "row-border-bottom-color": "#9AD1A2",
110
+ "row-text-color": "#1D4B34",
111
+ "row-error-background": "linear-gradient(90deg, #FFCECB 0%, rgba(255,235,233,0.35) 100%)",
112
+ "row-warning-background": "linear-gradient(90deg, #FFE4BC 0%, rgba(255,250,233,0.35) 100%)",
113
+ "row-hover-background": "linear-gradient(90deg, #D5ECBE 0%, rgba(234,255,233,0.35) 100%)",
114
+ "row-hover-text-color": "rgba(29, 75, 52, 1)"
115
+ },
116
+ chart: {
117
+ pie_color_1: "#50A57A",
118
+ pie_color_2: "#F8B85A",
119
+ pie_color_3: "#FF9892",
120
+ pie_color_4: "#55DDDD",
121
+ pie_color_5: "#85E9B7",
122
+ line_color_1: "#50A57A",
123
+ line_color_2: "#F8B85A",
124
+ line_color_3: "#FF9892",
125
+ line_color_4: "#55DDDD",
126
+ line_color_5: "#85E9B7",
127
+ line_title_color: "#637B6B",
128
+ line_xAxis_color: "#50A57A",
129
+ line_yAxis_color: "#50A57A",
130
+ line_markLine_color: "#FF9892",
131
+ line_splitLine_color: "#DBEEE3"
132
+ },
133
+ message: {},
134
+ text: {
135
+ main: "#50A57A",
136
+ deep: "#1D4B34",
137
+ light: "rgba(80, 165, 122, 0.50)",
138
+ paler: "#637B6B",
139
+ success: "#50A57A",
140
+ warning: "#F8B85A",
141
+ error: "#FF9892",
142
+ white: "#fff",
143
+ light_gray: "#B0BDB4"
144
+ },
145
+ dialog: { "header-background": "#fff", "body-background": "#fff", "footer-background": "#fff" },
146
+ progress: { background: "#CADFD3", "active-background": "#67BA91" },
147
+ icon: { "active-color": "rgba(80,165,122,1)", "active-light-color": "#F9A221" }
148
+ },
149
+ cloud: {},
150
+ "station-control-center": {
151
+ "equipment-line-status-NORMAL-SFED": "#F9A221",
152
+ "equipment-line-status-NORMAL": "#50A57A",
153
+ "equipment-line-status-WARN": "#FF9892",
154
+ "equipment-line-status-OFF_LINE": "#D1D3D2",
155
+ "equipment-status-NORMAL": "#50A57A",
156
+ "equipment-status-WARN": "#FF9892",
157
+ "equipment-status-OFF_LINE": "#D1D3D2",
158
+ "equipment-background-NORMAL": "#F9FCF9",
159
+ "equipment-border-NORMAL": "1px solid #50A57A",
160
+ "equipment-background-WARN": "#F9FBFC",
161
+ "equipment-border-WARN": "1px solid #FF9892",
162
+ "equipment-background-OFF_LINE": "#E9F2EE",
163
+ "equipment-border-OFF_LINE": "1px solid #fff",
164
+ "equipment-color-LHPC-NORMAL": "#fff",
165
+ "equipment-background-LHPC-NORMAL": "linear-gradient(90deg, #50A57A 0%, rgba(80,165,122,0.3) 100%)",
166
+ "equipment-color-LHPC-NORMAL-SFED": "#fff",
167
+ "equipment-background-LHPC-NORMAL-SFED": "linear-gradient(90deg, #F9A221 0%, rgba(255,223,165,0.38) 100%)",
168
+ "equipment-color-LHPC-OFF_LINE": "#637B6B",
169
+ "equipment-background-LHPC-OFF_LINE": "linear-gradient(90deg, #D1D3D2 0%, rgba(209,211,210,0) 100%)",
170
+ "equipment-ball-background": "#9DCBB4",
171
+ "equipment-ball-LINE-NORMAL": "#50A57A",
172
+ "equipment-ball-LINE-OFF_LINE": "#D1D3D2",
173
+ "equipment-ball-background-SFED": "#FBE5B7",
174
+ "equipment-ball-LINE-NORMAL-SFED": "#F9A221",
175
+ "equipment-ball-LINE-OFF_LINE-SFED": "#D1D3D2"
176
+ }
177
+ },
178
+ blue: { common: { "--test1": "#fff", "--test2": "#ccc" }, cloud: {}, "station-control-center": {} }
179
+ },
180
+ c = "yxTheme",
181
+ m = "green",
182
+ i = () => {
183
+ const r = a();
184
+ localStorage.getItem(c) || localStorage.setItem(c, r);
185
+ const e = document.documentElement,
186
+ o = g[r].common;
187
+ Object.keys(o).forEach(n => {
188
+ Object.keys(o[n]).forEach(t => {
189
+ const b = `--${n}-${t}`;
190
+ e.style.setProperty(b, o[n][t]);
191
+ });
192
+ });
193
+ },
194
+ l = r => {
195
+ localStorage.setItem(c, r), i();
196
+ },
197
+ a = () => localStorage.getItem(c) || m,
198
+ d = r => {
199
+ const e = a();
200
+ return g[e][r] || {};
201
+ },
202
+ u = r => {
203
+ const e = a();
204
+ return g[e].common[r] || {};
205
+ },
206
+ s = r => {
207
+ const e = a(),
208
+ o = g[e][r],
209
+ n = document.documentElement;
210
+ Object.keys(o).forEach(t => {
211
+ const b = `--${t}`;
212
+ n.style.setProperty(b, o[t]);
213
+ });
214
+ },
215
+ F = Object.freeze(
216
+ Object.defineProperty(
217
+ {
218
+ __proto__: null,
219
+ changeTheme: l,
220
+ getCurTheme: a,
221
+ getGroupColor: u,
222
+ getSystemThemeConfig: d,
223
+ install: i,
224
+ installSystemTheme: s
225
+ },
226
+ Symbol.toStringTag,
227
+ { value: "Module" }
228
+ )
229
+ );
230
+ exports.changeTheme = l;
231
+ exports.getCurTheme = a;
232
+ exports.getGroupColor = u;
233
+ exports.getSystemThemeConfig = d;
234
+ exports.install = i;
235
+ exports.installSystemTheme = s;
236
+ exports.theme = F;
2
237
  //# sourceMappingURL=index.cjs4.js.map