yxuse 3.0.39 → 3.0.40
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/api.cjs.js +1 -1
- package/lib/api.es.js +9 -9
- package/lib/components.cjs.js +1 -1
- package/lib/components.es.js +11 -11
- package/lib/directives.cjs.js +1 -1
- package/lib/directives.es.js +2 -2
- package/lib/hooks.cjs.js +1 -1
- package/lib/hooks.es.js +2 -2
- package/lib/index.cjs.js +1 -1
- package/lib/index.cjs10.js +1 -1
- package/lib/index.cjs11.js +1 -3
- package/lib/index.cjs11.js.gz +0 -0
- package/lib/index.cjs12.js +1 -1
- package/lib/index.cjs13.js +1 -1
- package/lib/index.cjs2.js +1 -1
- package/lib/index.cjs3.js +1 -1
- package/lib/index.cjs4.js +1 -1
- package/lib/index.cjs5.js +8 -28
- package/lib/index.cjs5.js.gz +0 -0
- package/lib/index.cjs6.js +1 -1
- package/lib/index.cjs6.js.gz +0 -0
- package/lib/index.cjs7.js +1 -1
- package/lib/index.cjs9.js +1 -1
- package/lib/index.es.js +43 -39
- package/lib/index.es10.js +245 -241
- package/lib/index.es10.js.gz +0 -0
- package/lib/index.es11.js +1854 -1146
- package/lib/index.es11.js.gz +0 -0
- package/lib/index.es12.js +181 -103
- package/lib/index.es13.js +15 -12
- package/lib/index.es2.js +13 -13
- package/lib/index.es3.js +58 -40
- package/lib/index.es4.js +47 -37
- package/lib/index.es5.js +9697 -5929
- package/lib/index.es5.js.gz +0 -0
- package/lib/index.es6.js +821 -615
- package/lib/index.es6.js.gz +0 -0
- package/lib/index.es7.js +21 -17
- package/lib/index.es8.js +4 -4
- package/lib/index.es9.js +9 -7
- package/lib/theme.cjs.js +1 -1
- package/lib/theme.es.js +11 -11
- package/lib/translate.cjs.js +1 -1
- package/lib/translate.es.js +6 -6
- package/lib/utils.cjs.js +1 -1
- package/lib/utils.es.js +11 -11
- package/lib/yxIcon.cjs.js +1 -1
- package/lib/yxIcon.es.js +2 -2
- package/package.json +2 -1
package/lib/index.es11.js.gz
CHANGED
|
Binary file
|
package/lib/index.es12.js
CHANGED
|
@@ -1,124 +1,202 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => {
|
|
4
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
return value;
|
|
6
|
+
};
|
|
7
|
+
const notifyMessageToSystems = (message) => {
|
|
8
|
+
const themeBc = new BroadcastChannel("YXUSE_BC");
|
|
9
|
+
themeBc.postMessage(message);
|
|
10
|
+
};
|
|
11
|
+
const receiveMessage = (callback) => {
|
|
12
|
+
const themeBc = new BroadcastChannel("YXUSE_BC");
|
|
13
|
+
themeBc.onmessage = () => {
|
|
14
|
+
callback();
|
|
10
15
|
};
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
};
|
|
17
|
+
const getSelectOptions = (arr, labelKey, valueKey, isValueToNumber) => {
|
|
18
|
+
if (!Array.isArray(arr))
|
|
19
|
+
return [];
|
|
20
|
+
return arr.map((item) => {
|
|
21
|
+
return {
|
|
22
|
+
label: item == null ? void 0 : item[labelKey],
|
|
23
|
+
value: isValueToNumber ? +item[valueKey] : item[valueKey]
|
|
24
|
+
};
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
const enumToArray = (enumObject) => {
|
|
28
|
+
const result = [];
|
|
29
|
+
for (const key in enumObject) {
|
|
30
|
+
if (isNaN(Number(key))) {
|
|
31
|
+
result.push({ label: key, value: enumObject[key] });
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
const isDarkColor = (color) => {
|
|
37
|
+
const parseColor = (color2) => {
|
|
38
|
+
let r2 = 0, g2 = 0, b2 = 0, a = 1;
|
|
39
|
+
if (color2.startsWith("#")) {
|
|
40
|
+
color2 = color2.slice(1);
|
|
41
|
+
if (color2.length === 3) {
|
|
42
|
+
r2 = parseInt(color2[0] + color2[0], 16);
|
|
43
|
+
g2 = parseInt(color2[1] + color2[1], 16);
|
|
44
|
+
b2 = parseInt(color2[2] + color2[2], 16);
|
|
45
|
+
} else if (color2.length === 6) {
|
|
46
|
+
r2 = parseInt(color2.slice(0, 2), 16);
|
|
47
|
+
g2 = parseInt(color2.slice(2, 4), 16);
|
|
48
|
+
b2 = parseInt(color2.slice(4, 6), 16);
|
|
49
|
+
} else {
|
|
28
50
|
return null;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
51
|
+
}
|
|
52
|
+
} else if (color2.startsWith("rgb")) {
|
|
53
|
+
const rgbaMatch = color2.match(/(\d+(\.\d+)?)/g);
|
|
54
|
+
if (rgbaMatch) {
|
|
55
|
+
r2 = parseFloat(rgbaMatch[0]);
|
|
56
|
+
g2 = parseFloat(rgbaMatch[1]);
|
|
57
|
+
b2 = parseFloat(rgbaMatch[2]);
|
|
58
|
+
if (rgbaMatch.length > 3) {
|
|
59
|
+
a = parseFloat(rgbaMatch[3]);
|
|
60
|
+
}
|
|
61
|
+
} else {
|
|
34
62
|
return null;
|
|
35
|
-
|
|
63
|
+
}
|
|
64
|
+
} else {
|
|
36
65
|
return null;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
66
|
+
}
|
|
67
|
+
return [r2, g2, b2, a];
|
|
68
|
+
};
|
|
69
|
+
const colorComponents = parseColor(color);
|
|
70
|
+
if (!colorComponents) {
|
|
40
71
|
return null;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
72
|
+
}
|
|
73
|
+
const [r, g, b, _] = colorComponents;
|
|
74
|
+
const normalizedR = r / 255;
|
|
75
|
+
const normalizedG = g / 255;
|
|
76
|
+
const normalizedB = b / 255;
|
|
77
|
+
const max = Math.max(normalizedR, normalizedG, normalizedB);
|
|
78
|
+
const min = Math.min(normalizedR, normalizedG, normalizedB);
|
|
79
|
+
let l = (max + min) / 2;
|
|
80
|
+
return l < 0.5;
|
|
81
|
+
};
|
|
82
|
+
const areColorsSimilar = (color1, color2, threshold = 100) => {
|
|
83
|
+
const getColorComponents = (color) => {
|
|
84
|
+
let r, g, b, a = 1;
|
|
85
|
+
if (color.startsWith("#")) {
|
|
86
|
+
color = color.slice(1);
|
|
87
|
+
if (color.length === 3) {
|
|
88
|
+
r = parseInt(color[0] + color[0], 16);
|
|
89
|
+
g = parseInt(color[1] + color[1], 16);
|
|
90
|
+
b = parseInt(color[2] + color[2], 16);
|
|
91
|
+
} else if (color.length === 6) {
|
|
92
|
+
r = parseInt(color.slice(0, 2), 16);
|
|
93
|
+
g = parseInt(color.slice(2, 4), 16);
|
|
94
|
+
b = parseInt(color.slice(4, 6), 16);
|
|
95
|
+
} else {
|
|
52
96
|
return null;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
97
|
+
}
|
|
98
|
+
} else if (color.startsWith("rgb")) {
|
|
99
|
+
const rgbaMatch = color.match(/(\d+(\.\d+)?)/g);
|
|
100
|
+
r = parseFloat(rgbaMatch[0]);
|
|
101
|
+
g = parseFloat(rgbaMatch[1]);
|
|
102
|
+
b = parseFloat(rgbaMatch[2]);
|
|
103
|
+
if (rgbaMatch.length > 3) {
|
|
104
|
+
a = parseFloat(rgbaMatch[3]);
|
|
105
|
+
}
|
|
106
|
+
} else {
|
|
57
107
|
return null;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
const
|
|
63
|
-
|
|
108
|
+
}
|
|
109
|
+
return [r, g, b, a];
|
|
110
|
+
};
|
|
111
|
+
const color1Components = getColorComponents(color1);
|
|
112
|
+
const color2Components = getColorComponents(color2);
|
|
113
|
+
if (!color1Components || !color2Components) {
|
|
114
|
+
return false;
|
|
115
|
+
}
|
|
116
|
+
const euclideanDistance = Math.sqrt(
|
|
117
|
+
Math.pow(color1Components[0] - color2Components[0], 2) + Math.pow(color1Components[1] - color2Components[1], 2) + Math.pow(color1Components[2] - color2Components[2], 2) + Math.pow(color1Components[3] - color2Components[3], 2)
|
|
64
118
|
);
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
if (
|
|
71
|
-
return
|
|
72
|
-
if (
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
const g = parseInt(
|
|
77
|
-
|
|
78
|
-
|
|
119
|
+
console.log(euclideanDistance);
|
|
120
|
+
return euclideanDistance <= threshold;
|
|
121
|
+
};
|
|
122
|
+
const isColorEqual = (color1, color2) => {
|
|
123
|
+
function toRGBA(color) {
|
|
124
|
+
if (color.toLowerCase().startsWith("rgba")) {
|
|
125
|
+
return color.toLowerCase();
|
|
126
|
+
} else if (color.toLowerCase().startsWith("rgb")) {
|
|
127
|
+
return color.replace("rgb", "rgba").replace(")", ", 1)");
|
|
128
|
+
} else if (color.length === 7) {
|
|
129
|
+
const r = parseInt(color.substring(1, 3), 16);
|
|
130
|
+
const g = parseInt(color.substring(3, 5), 16);
|
|
131
|
+
const b = parseInt(color.substring(5, 7), 16);
|
|
132
|
+
return `rgba(${r}, ${g}, ${b}, 1)`;
|
|
133
|
+
} else if (color.length === 9 && color.toLowerCase().startsWith("rrggbbaa")) {
|
|
134
|
+
const r = parseInt(color.substring(1, 3), 16);
|
|
135
|
+
const g = parseInt(color.substring(3, 5), 16);
|
|
136
|
+
const b = parseInt(color.substring(5, 7), 16);
|
|
137
|
+
const a = Math.round(parseInt(color.substring(7, 9), 16) / 255 * 100) / 100;
|
|
138
|
+
return `rgba(${r}, ${g}, ${b}, ${a})`;
|
|
139
|
+
} else {
|
|
79
140
|
return null;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
const rgbaColor1 = toRGBA(convertShortHexToLongHex(color1));
|
|
144
|
+
const rgbaColor2 = toRGBA(convertShortHexToLongHex(color2));
|
|
145
|
+
if (!rgbaColor1 || !rgbaColor2) {
|
|
146
|
+
return false;
|
|
147
|
+
}
|
|
148
|
+
return rgbaColor1 === rgbaColor2;
|
|
149
|
+
};
|
|
150
|
+
const convertShortHexToLongHex = (shortHex) => {
|
|
151
|
+
if (shortHex.length === 4 && shortHex[0] === "#") {
|
|
152
|
+
const r = shortHex[1];
|
|
153
|
+
const g = shortHex[2];
|
|
154
|
+
const b = shortHex[3];
|
|
155
|
+
const longHex = `#${r}${r}${g}${g}${b}${b}`;
|
|
156
|
+
return longHex;
|
|
157
|
+
} else {
|
|
158
|
+
return shortHex;
|
|
80
159
|
}
|
|
81
|
-
const i = t(M(e)), a = t(M(s));
|
|
82
|
-
return !i || !a ? !1 : i === a;
|
|
83
|
-
}, M = (e) => {
|
|
84
|
-
if (e.length === 4 && e[0] === "#") {
|
|
85
|
-
const s = e[1], t = e[2], i = e[3];
|
|
86
|
-
return `#${s}${s}${t}${t}${i}${i}`;
|
|
87
|
-
} else
|
|
88
|
-
return e;
|
|
89
160
|
};
|
|
90
|
-
class
|
|
161
|
+
class YxSubscribe {
|
|
91
162
|
constructor() {
|
|
92
|
-
|
|
163
|
+
__publicField(this, "subscribers");
|
|
93
164
|
this.subscribers = {};
|
|
94
165
|
}
|
|
95
|
-
subscribe(
|
|
96
|
-
|
|
166
|
+
subscribe(sub, fn) {
|
|
167
|
+
if (!this.subscribers[sub]) {
|
|
168
|
+
this.subscribers[sub] = [];
|
|
169
|
+
}
|
|
170
|
+
this.subscribers[sub].push(fn);
|
|
97
171
|
}
|
|
98
|
-
unsubscribe(
|
|
99
|
-
const
|
|
100
|
-
if (!
|
|
101
|
-
return this.subscribers[
|
|
102
|
-
if (
|
|
103
|
-
const
|
|
104
|
-
|
|
172
|
+
unsubscribe(sub, fn) {
|
|
173
|
+
const subscribers = this.subscribers[sub];
|
|
174
|
+
if (!fn)
|
|
175
|
+
return this.subscribers[sub] = [];
|
|
176
|
+
if (subscribers) {
|
|
177
|
+
const index = subscribers.indexOf(fn);
|
|
178
|
+
if (index !== -1) {
|
|
179
|
+
subscribers.splice(index, 1);
|
|
180
|
+
}
|
|
105
181
|
}
|
|
106
182
|
}
|
|
107
|
-
publish(
|
|
108
|
-
const
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
183
|
+
publish(message) {
|
|
184
|
+
const subscribers = this.subscribers[message.type];
|
|
185
|
+
if (subscribers) {
|
|
186
|
+
subscribers.forEach((fn) => {
|
|
187
|
+
fn(message.data);
|
|
188
|
+
});
|
|
189
|
+
}
|
|
112
190
|
}
|
|
113
191
|
}
|
|
114
|
-
const
|
|
192
|
+
const yxSubscribe = new YxSubscribe();
|
|
115
193
|
export {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
194
|
+
areColorsSimilar as a,
|
|
195
|
+
isDarkColor as b,
|
|
196
|
+
enumToArray as e,
|
|
197
|
+
getSelectOptions as g,
|
|
198
|
+
isColorEqual as i,
|
|
199
|
+
notifyMessageToSystems as n,
|
|
200
|
+
receiveMessage as r,
|
|
201
|
+
yxSubscribe as y
|
|
124
202
|
};
|
package/lib/index.es13.js
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import { h as
|
|
2
|
-
const
|
|
3
|
-
|
|
1
|
+
import { h as http, U as URL } from "./index.es11.js";
|
|
2
|
+
const uploadResourceApi = (params, config) => http.post(`${URL["ttc"].INTEGRATED_BASE_URL}/file/upload`, params, config);
|
|
3
|
+
const getGroupListApi = () => http.get(
|
|
4
|
+
`${URL["ttc"].INTEGRATED_BASE_URL}/resource/group/list`,
|
|
4
5
|
{},
|
|
5
6
|
{
|
|
6
|
-
headers: { noLoading:
|
|
7
|
+
headers: { noLoading: true }
|
|
7
8
|
}
|
|
8
|
-
)
|
|
9
|
+
);
|
|
10
|
+
const getResourceListApi = (groupUuid, sign) => http.get(`${URL["ttc"].INTEGRATED_BASE_URL}/resource/file/list/${sign}/${groupUuid}`, {}, { headers: { noLoading: true } });
|
|
11
|
+
const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9
12
|
__proto__: null,
|
|
10
|
-
getGroupListApi
|
|
11
|
-
getResourceListApi
|
|
12
|
-
uploadResourceApi
|
|
13
|
+
getGroupListApi,
|
|
14
|
+
getResourceListApi,
|
|
15
|
+
uploadResourceApi
|
|
13
16
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
14
17
|
export {
|
|
15
|
-
a,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
getResourceListApi as a,
|
|
19
|
+
getGroupListApi as g,
|
|
20
|
+
index as i,
|
|
21
|
+
uploadResourceApi as u
|
|
19
22
|
};
|
package/lib/index.es2.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { h as
|
|
2
|
-
import { a as
|
|
3
|
-
const
|
|
1
|
+
import { h as http } from "./index.es11.js";
|
|
2
|
+
import { a as areColorsSimilar, e as enumToArray, g as getSelectOptions, i as isColorEqual, b as isDarkColor, n as notifyMessageToSystems, r as receiveMessage, y as yxSubscribe } from "./index.es12.js";
|
|
3
|
+
const utils2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
4
|
__proto__: null,
|
|
5
|
-
areColorsSimilar
|
|
6
|
-
enumToArray
|
|
7
|
-
getSelectOptions
|
|
8
|
-
http
|
|
9
|
-
isColorEqual
|
|
10
|
-
isDarkColor
|
|
11
|
-
notifyMessageToSystems
|
|
12
|
-
receiveMessage
|
|
13
|
-
yxSubscribe
|
|
5
|
+
areColorsSimilar,
|
|
6
|
+
enumToArray,
|
|
7
|
+
getSelectOptions,
|
|
8
|
+
http,
|
|
9
|
+
isColorEqual,
|
|
10
|
+
isDarkColor,
|
|
11
|
+
notifyMessageToSystems,
|
|
12
|
+
receiveMessage,
|
|
13
|
+
yxSubscribe
|
|
14
14
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
utils2 as u
|
|
17
17
|
};
|
package/lib/index.es3.js
CHANGED
|
@@ -1,47 +1,65 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
1
|
+
var __async = (__this, __arguments, generator) => {
|
|
2
|
+
return new Promise((resolve, reject) => {
|
|
3
|
+
var fulfilled = (value) => {
|
|
4
|
+
try {
|
|
5
|
+
step(generator.next(value));
|
|
6
|
+
} catch (e) {
|
|
7
|
+
reject(e);
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
var rejected = (value) => {
|
|
11
|
+
try {
|
|
12
|
+
step(generator.throw(value));
|
|
13
|
+
} catch (e) {
|
|
14
|
+
reject(e);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
18
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
17
21
|
import "./index.es11.js";
|
|
18
22
|
import "element-plus";
|
|
19
|
-
import { g, a as
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
})
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
23
|
+
import { g as getGroupListApi, a as getResourceListApi } from "./index.es13.js";
|
|
24
|
+
const ICON_GROUP_NAME = "yxIcon";
|
|
25
|
+
const initYxIcon = () => {
|
|
26
|
+
getYxIconGroupUuid();
|
|
27
|
+
};
|
|
28
|
+
const getYxIconGroupUuid = () => __async(void 0, null, function* () {
|
|
29
|
+
var _a;
|
|
30
|
+
const { data } = yield getGroupListApi();
|
|
31
|
+
const groupUuid = (_a = data.find((item) => item.groupName === ICON_GROUP_NAME)) == null ? void 0 : _a.groupUuid;
|
|
32
|
+
getYxIconFileContent(groupUuid);
|
|
33
|
+
});
|
|
34
|
+
const getYxIconFileContent = (groupUuid) => __async(void 0, null, function* () {
|
|
35
|
+
const { data } = yield getResourceListApi(groupUuid, 1);
|
|
36
|
+
combineYxIconStr(data);
|
|
37
|
+
return data;
|
|
38
|
+
});
|
|
39
|
+
const combineYxIconStr = (data) => {
|
|
40
|
+
const svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
41
|
+
svg.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
42
|
+
svg.setAttribute("xmlns:xlin", "http://www.w3.org/1999/xlink");
|
|
43
|
+
let svgHtml = "";
|
|
44
|
+
data.forEach((svgElement) => {
|
|
45
|
+
svgHtml += svgElement.text.replace(/\\/g, "").trim().replace(/^"(.*)"$/, "$1");
|
|
46
|
+
});
|
|
47
|
+
svg.innerHTML = svgHtml;
|
|
48
|
+
svg.style.position = "absolute";
|
|
49
|
+
svg.style.width = "0";
|
|
50
|
+
svg.style.height = "0";
|
|
51
|
+
document.head.appendChild(svg);
|
|
52
|
+
};
|
|
53
|
+
const index = {
|
|
54
|
+
install: function(app) {
|
|
55
|
+
initYxIcon();
|
|
39
56
|
}
|
|
40
|
-
}
|
|
57
|
+
};
|
|
58
|
+
const yxIcon2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
41
59
|
__proto__: null,
|
|
42
|
-
default:
|
|
60
|
+
default: index
|
|
43
61
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
44
62
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
63
|
+
index as i,
|
|
64
|
+
yxIcon2 as y
|
|
47
65
|
};
|
package/lib/index.es4.js
CHANGED
|
@@ -1,42 +1,52 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
var __async = (__this, __arguments, generator) => {
|
|
2
|
+
return new Promise((resolve, reject) => {
|
|
3
|
+
var fulfilled = (value) => {
|
|
4
|
+
try {
|
|
5
|
+
step(generator.next(value));
|
|
6
|
+
} catch (e) {
|
|
7
|
+
reject(e);
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
var rejected = (value) => {
|
|
11
|
+
try {
|
|
12
|
+
step(generator.throw(value));
|
|
13
|
+
} catch (e) {
|
|
14
|
+
reject(e);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
18
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
import { h as http, U as URL, i as index$1 } from "./index.es11.js";
|
|
22
|
+
import { i as index } from "./index.es13.js";
|
|
23
|
+
const getUserSelectSatelliteList = (systemName = "ttc") => __async(void 0, null, function* () {
|
|
24
|
+
const data = yield http.get(`${URL[systemName].INTEGRATED_BASE_URL}/basic/data/satellite/select`);
|
|
25
|
+
return data;
|
|
26
|
+
});
|
|
27
|
+
const getUserSelectAnteList = (systemName = "ttc") => __async(void 0, null, function* () {
|
|
28
|
+
const data = yield http.get(`${URL[systemName].INTEGRATED_BASE_URL}/basic/data/ante/select`);
|
|
29
|
+
return data;
|
|
30
|
+
});
|
|
31
|
+
const getUserThemeList = (systemName = "ttc") => __async(void 0, null, function* () {
|
|
32
|
+
return yield http.get(`${URL[systemName].INTEGRATED_BASE_URL}/theme/list`, {}, { headers: { noLoading: true } });
|
|
33
|
+
});
|
|
34
|
+
const getCommentUntreatedCount = (systemName = "ttc") => __async(void 0, null, function* () {
|
|
35
|
+
return yield http.get(`${URL[systemName].INTEGRATED_BASE_URL}/workorder/comment/untreated/count`);
|
|
16
36
|
});
|
|
17
|
-
|
|
18
|
-
import { i as _ } from "./index.es13.js";
|
|
19
|
-
const m = (t = "ttc") => a(void 0, null, function* () {
|
|
20
|
-
return yield n.get(`${r[t].INTEGRATED_BASE_URL}/basic/data/satellite/select`);
|
|
21
|
-
}), T = (t = "ttc") => a(void 0, null, function* () {
|
|
22
|
-
return yield n.get(`${r[t].INTEGRATED_BASE_URL}/basic/data/ante/select`);
|
|
23
|
-
}), U = (t = "ttc") => a(void 0, null, function* () {
|
|
24
|
-
return yield n.get(`${r[t].INTEGRATED_BASE_URL}/theme/list`, {}, { headers: { noLoading: !0 } });
|
|
25
|
-
}), A = (t = "ttc") => a(void 0, null, function* () {
|
|
26
|
-
return yield n.get(`${r[t].INTEGRATED_BASE_URL}/workorder/comment/untreated/count`);
|
|
27
|
-
}), p = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
37
|
+
const api2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
28
38
|
__proto__: null,
|
|
29
|
-
assets:
|
|
30
|
-
auth:
|
|
31
|
-
getCommentUntreatedCount
|
|
32
|
-
getUserSelectAnteList
|
|
33
|
-
getUserSelectSatelliteList
|
|
34
|
-
getUserThemeList
|
|
39
|
+
assets: index,
|
|
40
|
+
auth: index$1,
|
|
41
|
+
getCommentUntreatedCount,
|
|
42
|
+
getUserSelectAnteList,
|
|
43
|
+
getUserSelectSatelliteList,
|
|
44
|
+
getUserThemeList
|
|
35
45
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
36
46
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
47
|
+
api2 as a,
|
|
48
|
+
getUserThemeList as b,
|
|
49
|
+
getUserSelectSatelliteList as c,
|
|
50
|
+
getUserSelectAnteList as d,
|
|
51
|
+
getCommentUntreatedCount as g
|
|
42
52
|
};
|