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.
Files changed (49) hide show
  1. package/lib/api.cjs.js +1 -1
  2. package/lib/api.es.js +9 -9
  3. package/lib/components.cjs.js +1 -1
  4. package/lib/components.es.js +11 -11
  5. package/lib/directives.cjs.js +1 -1
  6. package/lib/directives.es.js +2 -2
  7. package/lib/hooks.cjs.js +1 -1
  8. package/lib/hooks.es.js +2 -2
  9. package/lib/index.cjs.js +1 -1
  10. package/lib/index.cjs10.js +1 -1
  11. package/lib/index.cjs11.js +1 -3
  12. package/lib/index.cjs11.js.gz +0 -0
  13. package/lib/index.cjs12.js +1 -1
  14. package/lib/index.cjs13.js +1 -1
  15. package/lib/index.cjs2.js +1 -1
  16. package/lib/index.cjs3.js +1 -1
  17. package/lib/index.cjs4.js +1 -1
  18. package/lib/index.cjs5.js +8 -28
  19. package/lib/index.cjs5.js.gz +0 -0
  20. package/lib/index.cjs6.js +1 -1
  21. package/lib/index.cjs6.js.gz +0 -0
  22. package/lib/index.cjs7.js +1 -1
  23. package/lib/index.cjs9.js +1 -1
  24. package/lib/index.es.js +43 -39
  25. package/lib/index.es10.js +245 -241
  26. package/lib/index.es10.js.gz +0 -0
  27. package/lib/index.es11.js +1854 -1146
  28. package/lib/index.es11.js.gz +0 -0
  29. package/lib/index.es12.js +181 -103
  30. package/lib/index.es13.js +15 -12
  31. package/lib/index.es2.js +13 -13
  32. package/lib/index.es3.js +58 -40
  33. package/lib/index.es4.js +47 -37
  34. package/lib/index.es5.js +9697 -5929
  35. package/lib/index.es5.js.gz +0 -0
  36. package/lib/index.es6.js +821 -615
  37. package/lib/index.es6.js.gz +0 -0
  38. package/lib/index.es7.js +21 -17
  39. package/lib/index.es8.js +4 -4
  40. package/lib/index.es9.js +9 -7
  41. package/lib/theme.cjs.js +1 -1
  42. package/lib/theme.es.js +11 -11
  43. package/lib/translate.cjs.js +1 -1
  44. package/lib/translate.es.js +6 -6
  45. package/lib/utils.cjs.js +1 -1
  46. package/lib/utils.es.js +11 -11
  47. package/lib/yxIcon.cjs.js +1 -1
  48. package/lib/yxIcon.es.js +2 -2
  49. package/package.json +2 -1
Binary file
package/lib/index.es12.js CHANGED
@@ -1,124 +1,202 @@
1
- var $ = Object.defineProperty;
2
- var w = (e, s, t) => s in e ? $(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t;
3
- var m = (e, s, t) => (w(e, typeof s != "symbol" ? s + "" : s, t), t);
4
- const F = (e) => {
5
- new BroadcastChannel("YXUSE_BC").postMessage(e);
6
- }, S = (e) => {
7
- const s = new BroadcastChannel("YXUSE_BC");
8
- s.onmessage = () => {
9
- e();
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
- }, W = (e, s, t, i) => Array.isArray(e) ? e.map((a) => ({
12
- label: a == null ? void 0 : a[s],
13
- value: i ? +a[t] : a[t]
14
- })) : [], x = (e) => {
15
- const s = [];
16
- for (const t in e)
17
- isNaN(Number(t)) && s.push({ label: t, value: e[t] });
18
- return s;
19
- }, L = (e) => {
20
- const t = ((u) => {
21
- let o = 0, C = 0, I = 0, d = 1;
22
- if (u.startsWith("#"))
23
- if (u = u.slice(1), u.length === 3)
24
- o = parseInt(u[0] + u[0], 16), C = parseInt(u[1] + u[1], 16), I = parseInt(u[2] + u[2], 16);
25
- else if (u.length === 6)
26
- o = parseInt(u.slice(0, 2), 16), C = parseInt(u.slice(2, 4), 16), I = parseInt(u.slice(4, 6), 16);
27
- else
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
- else if (u.startsWith("rgb")) {
30
- const h = u.match(/(\d+(\.\d+)?)/g);
31
- if (h)
32
- o = parseFloat(h[0]), C = parseFloat(h[1]), I = parseFloat(h[2]), h.length > 3 && (d = parseFloat(h[3]));
33
- else
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
- } else
63
+ }
64
+ } else {
36
65
  return null;
37
- return [o, C, I, d];
38
- })(e);
39
- if (!t)
66
+ }
67
+ return [r2, g2, b2, a];
68
+ };
69
+ const colorComponents = parseColor(color);
70
+ if (!colorComponents) {
40
71
  return null;
41
- const [i, a, r, g] = t, n = i / 255, b = a / 255, l = r / 255, p = Math.max(n, b, l), f = Math.min(n, b, l);
42
- return (p + f) / 2 < 0.5;
43
- }, A = (e, s, t = 100) => {
44
- const i = (n) => {
45
- let b, l, p, f = 1;
46
- if (n.startsWith("#"))
47
- if (n = n.slice(1), n.length === 3)
48
- b = parseInt(n[0] + n[0], 16), l = parseInt(n[1] + n[1], 16), p = parseInt(n[2] + n[2], 16);
49
- else if (n.length === 6)
50
- b = parseInt(n.slice(0, 2), 16), l = parseInt(n.slice(2, 4), 16), p = parseInt(n.slice(4, 6), 16);
51
- else
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
- else if (n.startsWith("rgb")) {
54
- const c = n.match(/(\d+(\.\d+)?)/g);
55
- b = parseFloat(c[0]), l = parseFloat(c[1]), p = parseFloat(c[2]), c.length > 3 && (f = parseFloat(c[3]));
56
- } else
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
- return [b, l, p, f];
59
- }, a = i(e), r = i(s);
60
- if (!a || !r)
61
- return !1;
62
- const g = Math.sqrt(
63
- Math.pow(a[0] - r[0], 2) + Math.pow(a[1] - r[1], 2) + Math.pow(a[2] - r[2], 2) + Math.pow(a[3] - r[3], 2)
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
- return console.log(g), g <= t;
66
- }, E = (e, s) => {
67
- function t(r) {
68
- if (r.toLowerCase().startsWith("rgba"))
69
- return r.toLowerCase();
70
- if (r.toLowerCase().startsWith("rgb"))
71
- return r.replace("rgb", "rgba").replace(")", ", 1)");
72
- if (r.length === 7) {
73
- const g = parseInt(r.substring(1, 3), 16), n = parseInt(r.substring(3, 5), 16), b = parseInt(r.substring(5, 7), 16);
74
- return `rgba(${g}, ${n}, ${b}, 1)`;
75
- } else if (r.length === 9 && r.toLowerCase().startsWith("rrggbbaa")) {
76
- const g = parseInt(r.substring(1, 3), 16), n = parseInt(r.substring(3, 5), 16), b = parseInt(r.substring(5, 7), 16), l = Math.round(parseInt(r.substring(7, 9), 16) / 255 * 100) / 100;
77
- return `rgba(${g}, ${n}, ${b}, ${l})`;
78
- } else
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 B {
161
+ class YxSubscribe {
91
162
  constructor() {
92
- m(this, "subscribers");
163
+ __publicField(this, "subscribers");
93
164
  this.subscribers = {};
94
165
  }
95
- subscribe(s, t) {
96
- this.subscribers[s] || (this.subscribers[s] = []), this.subscribers[s].push(t);
166
+ subscribe(sub, fn) {
167
+ if (!this.subscribers[sub]) {
168
+ this.subscribers[sub] = [];
169
+ }
170
+ this.subscribers[sub].push(fn);
97
171
  }
98
- unsubscribe(s, t) {
99
- const i = this.subscribers[s];
100
- if (!t)
101
- return this.subscribers[s] = [];
102
- if (i) {
103
- const a = i.indexOf(t);
104
- a !== -1 && i.splice(a, 1);
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(s) {
108
- const t = this.subscribers[s.type];
109
- t && t.forEach((i) => {
110
- i(s.data);
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 v = new B();
192
+ const yxSubscribe = new YxSubscribe();
115
193
  export {
116
- A as a,
117
- L as b,
118
- x as e,
119
- W as g,
120
- E as i,
121
- F as n,
122
- S as r,
123
- v as y
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 o, U as s } from "./index.es11.js";
2
- const r = (e, t) => o.post(`${s.ttc.INTEGRATED_BASE_URL}/file/upload`, e, t), i = () => o.get(
3
- `${s.ttc.INTEGRATED_BASE_URL}/resource/group/list`,
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: !0 }
7
+ headers: { noLoading: true }
7
8
  }
8
- ), a = (e, t) => o.get(`${s.ttc.INTEGRATED_BASE_URL}/resource/file/list/${t}/${e}`, {}, { headers: { noLoading: !0 } }), c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
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: i,
11
- getResourceListApi: a,
12
- uploadResourceApi: r
13
+ getGroupListApi,
14
+ getResourceListApi,
15
+ uploadResourceApi
13
16
  }, Symbol.toStringTag, { value: "Module" }));
14
17
  export {
15
- a,
16
- i as g,
17
- c as i,
18
- r as u
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 e } from "./index.es11.js";
2
- import { a as s, e as o, g as r, i as a, b as t, n as i, r as l, y as m } from "./index.es12.js";
3
- const p = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
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: s,
6
- enumToArray: o,
7
- getSelectOptions: r,
8
- http: e,
9
- isColorEqual: a,
10
- isDarkColor: t,
11
- notifyMessageToSystems: i,
12
- receiveMessage: l,
13
- yxSubscribe: m
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
- p as u
16
+ utils2 as u
17
17
  };
package/lib/index.es3.js CHANGED
@@ -1,47 +1,65 @@
1
- var r = (o, t, e) => new Promise((s, a) => {
2
- var l = (n) => {
3
- try {
4
- i(e.next(n));
5
- } catch (c) {
6
- a(c);
7
- }
8
- }, p = (n) => {
9
- try {
10
- i(e.throw(n));
11
- } catch (c) {
12
- a(c);
13
- }
14
- }, i = (n) => n.done ? s(n.value) : Promise.resolve(n.value).then(l, p);
15
- i((e = e.apply(o, t)).next());
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 u } from "./index.es13.js";
20
- const d = "yxIcon", w = () => {
21
- m();
22
- }, m = () => r(void 0, null, function* () {
23
- var e;
24
- const { data: o } = yield g(), t = (e = o.find((s) => s.groupName === d)) == null ? void 0 : e.groupUuid;
25
- x(t);
26
- }), x = (o) => r(void 0, null, function* () {
27
- const { data: t } = yield u(o, 1);
28
- return y(t), t;
29
- }), y = (o) => {
30
- const t = document.createElementNS("http://www.w3.org/2000/svg", "svg");
31
- t.setAttribute("xmlns", "http://www.w3.org/2000/svg"), t.setAttribute("xmlns:xlin", "http://www.w3.org/1999/xlink");
32
- let e = "";
33
- o.forEach((s) => {
34
- e += s.text.replace(/\\/g, "").trim().replace(/^"(.*)"$/, "$1");
35
- }), t.innerHTML = e, t.style.position = "absolute", t.style.width = "0", t.style.height = "0", document.head.appendChild(t);
36
- }, h = {
37
- install: function(o) {
38
- w();
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
- }, _ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
57
+ };
58
+ const yxIcon2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41
59
  __proto__: null,
42
- default: h
60
+ default: index
43
61
  }, Symbol.toStringTag, { value: "Module" }));
44
62
  export {
45
- h as i,
46
- _ as y
63
+ index as i,
64
+ yxIcon2 as y
47
65
  };
package/lib/index.es4.js CHANGED
@@ -1,42 +1,52 @@
1
- var a = (t, c, s) => new Promise((l, d) => {
2
- var g = (e) => {
3
- try {
4
- o(s.next(e));
5
- } catch (i) {
6
- d(i);
7
- }
8
- }, u = (e) => {
9
- try {
10
- o(s.throw(e));
11
- } catch (i) {
12
- d(i);
13
- }
14
- }, o = (e) => e.done ? l(e.value) : Promise.resolve(e.value).then(g, u);
15
- o((s = s.apply(t, c)).next());
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
- import { h as n, U as r, i as E } from "./index.es11.js";
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: E,
31
- getCommentUntreatedCount: A,
32
- getUserSelectAnteList: T,
33
- getUserSelectSatelliteList: m,
34
- getUserThemeList: U
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
- p as a,
38
- U as b,
39
- m as c,
40
- T as d,
41
- A as g
47
+ api2 as a,
48
+ getUserThemeList as b,
49
+ getUserSelectSatelliteList as c,
50
+ getUserSelectAnteList as d,
51
+ getCommentUntreatedCount as g
42
52
  };