yxuse 2.0.32 → 2.0.34

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 (57) hide show
  1. package/lib/api.cjs.js +1 -1
  2. package/lib/api.es.js +9 -10
  3. package/lib/components.cjs.js +1 -1
  4. package/lib/components.es.js +10 -16
  5. package/lib/directives.cjs.js +1 -1
  6. package/lib/directives.es.js +2 -4
  7. package/lib/hooks.cjs.js +1 -1
  8. package/lib/hooks.es.js +2 -3
  9. package/lib/index.cjs.js +1 -1
  10. package/lib/index.cjs10.js +1 -1
  11. package/lib/index.cjs11.js +2 -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 -43
  25. package/lib/index.es10.js +236 -246
  26. package/lib/index.es10.js.gz +0 -0
  27. package/lib/index.es11.js +4266 -2709
  28. package/lib/index.es11.js.gz +0 -0
  29. package/lib/index.es12.js +175 -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 +9621 -5961
  35. package/lib/index.es5.js.gz +0 -0
  36. package/lib/index.es6.js +804 -621
  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/style.css +1 -1
  42. package/lib/style.css.gz +0 -0
  43. package/lib/theme.cjs.js +1 -1
  44. package/lib/theme.es.js +9 -10
  45. package/lib/translate.cjs.js +1 -1
  46. package/lib/translate.es.js +6 -9
  47. package/lib/utils.cjs.js +1 -1
  48. package/lib/utils.es.js +11 -12
  49. package/lib/vue.runtime.esm-bundler.cjs.js +2 -8
  50. package/lib/vue.runtime.esm-bundler.cjs.js.gz +0 -0
  51. package/lib/vue.runtime.esm-bundler.es.js +6417 -3776
  52. package/lib/vue.runtime.esm-bundler.es.js.gz +0 -0
  53. package/lib/yxIcon.cjs.js +1 -1
  54. package/lib/yxIcon.es.js +2 -3
  55. package/package.json +3 -2
  56. package/lib/style.cjs.js +0 -1
  57. package/lib/style.es.js +0 -1
Binary file
package/lib/index.es12.js CHANGED
@@ -1,124 +1,196 @@
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) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
+ const notifyMessageToSystems = (message) => {
5
+ const themeBc = new BroadcastChannel("YXUSE_BC");
6
+ themeBc.postMessage(message);
7
+ };
8
+ const receiveMessage = (callback) => {
9
+ const themeBc = new BroadcastChannel("YXUSE_BC");
10
+ themeBc.onmessage = () => {
11
+ callback();
10
12
  };
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
13
+ };
14
+ const getSelectOptions = (arr, labelKey, valueKey, isValueToNumber) => {
15
+ if (!Array.isArray(arr)) return [];
16
+ return arr.map((item) => {
17
+ return {
18
+ label: item == null ? void 0 : item[labelKey],
19
+ value: isValueToNumber ? +item[valueKey] : item[valueKey]
20
+ };
21
+ });
22
+ };
23
+ const enumToArray = (enumObject) => {
24
+ const result = [];
25
+ for (const key in enumObject) {
26
+ if (isNaN(Number(key))) {
27
+ result.push({ label: key, value: enumObject[key] });
28
+ }
29
+ }
30
+ return result;
31
+ };
32
+ const isDarkColor = (color) => {
33
+ const parseColor = (color2) => {
34
+ let r2 = 0, g2 = 0, b2 = 0, a = 1;
35
+ if (color2.startsWith("#")) {
36
+ color2 = color2.slice(1);
37
+ if (color2.length === 3) {
38
+ r2 = parseInt(color2[0] + color2[0], 16);
39
+ g2 = parseInt(color2[1] + color2[1], 16);
40
+ b2 = parseInt(color2[2] + color2[2], 16);
41
+ } else if (color2.length === 6) {
42
+ r2 = parseInt(color2.slice(0, 2), 16);
43
+ g2 = parseInt(color2.slice(2, 4), 16);
44
+ b2 = parseInt(color2.slice(4, 6), 16);
45
+ } else {
28
46
  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
47
+ }
48
+ } else if (color2.startsWith("rgb")) {
49
+ const rgbaMatch = color2.match(/(\d+(\.\d+)?)/g);
50
+ if (rgbaMatch) {
51
+ r2 = parseFloat(rgbaMatch[0]);
52
+ g2 = parseFloat(rgbaMatch[1]);
53
+ b2 = parseFloat(rgbaMatch[2]);
54
+ if (rgbaMatch.length > 3) {
55
+ a = parseFloat(rgbaMatch[3]);
56
+ }
57
+ } else {
34
58
  return null;
35
- } else
59
+ }
60
+ } else {
36
61
  return null;
37
- return [o, C, I, d];
38
- })(e);
39
- if (!t)
62
+ }
63
+ return [r2, g2, b2, a];
64
+ };
65
+ const colorComponents = parseColor(color);
66
+ if (!colorComponents) {
40
67
  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
68
+ }
69
+ const [r, g, b, _] = colorComponents;
70
+ const normalizedR = r / 255;
71
+ const normalizedG = g / 255;
72
+ const normalizedB = b / 255;
73
+ const max = Math.max(normalizedR, normalizedG, normalizedB);
74
+ const min = Math.min(normalizedR, normalizedG, normalizedB);
75
+ let l = (max + min) / 2;
76
+ return l < 0.5;
77
+ };
78
+ const areColorsSimilar = (color1, color2, threshold = 100) => {
79
+ const getColorComponents = (color) => {
80
+ let r, g, b, a = 1;
81
+ if (color.startsWith("#")) {
82
+ color = color.slice(1);
83
+ if (color.length === 3) {
84
+ r = parseInt(color[0] + color[0], 16);
85
+ g = parseInt(color[1] + color[1], 16);
86
+ b = parseInt(color[2] + color[2], 16);
87
+ } else if (color.length === 6) {
88
+ r = parseInt(color.slice(0, 2), 16);
89
+ g = parseInt(color.slice(2, 4), 16);
90
+ b = parseInt(color.slice(4, 6), 16);
91
+ } else {
52
92
  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
93
+ }
94
+ } else if (color.startsWith("rgb")) {
95
+ const rgbaMatch = color.match(/(\d+(\.\d+)?)/g);
96
+ r = parseFloat(rgbaMatch[0]);
97
+ g = parseFloat(rgbaMatch[1]);
98
+ b = parseFloat(rgbaMatch[2]);
99
+ if (rgbaMatch.length > 3) {
100
+ a = parseFloat(rgbaMatch[3]);
101
+ }
102
+ } else {
57
103
  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)
104
+ }
105
+ return [r, g, b, a];
106
+ };
107
+ const color1Components = getColorComponents(color1);
108
+ const color2Components = getColorComponents(color2);
109
+ if (!color1Components || !color2Components) {
110
+ return false;
111
+ }
112
+ const euclideanDistance = Math.sqrt(
113
+ 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
114
  );
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
115
+ return euclideanDistance <= threshold;
116
+ };
117
+ const isColorEqual = (color1, color2) => {
118
+ function toRGBA(color) {
119
+ if (color.toLowerCase().startsWith("rgba")) {
120
+ return color.toLowerCase();
121
+ } else if (color.toLowerCase().startsWith("rgb")) {
122
+ return color.replace("rgb", "rgba").replace(")", ", 1)");
123
+ } else if (color.length === 7) {
124
+ const r = parseInt(color.substring(1, 3), 16);
125
+ const g = parseInt(color.substring(3, 5), 16);
126
+ const b = parseInt(color.substring(5, 7), 16);
127
+ return `rgba(${r}, ${g}, ${b}, 1)`;
128
+ } else if (color.length === 9 && color.toLowerCase().startsWith("rrggbbaa")) {
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
+ const a = Math.round(parseInt(color.substring(7, 9), 16) / 255 * 100) / 100;
133
+ return `rgba(${r}, ${g}, ${b}, ${a})`;
134
+ } else {
79
135
  return null;
136
+ }
137
+ }
138
+ const rgbaColor1 = toRGBA(convertShortHexToLongHex(color1));
139
+ const rgbaColor2 = toRGBA(convertShortHexToLongHex(color2));
140
+ if (!rgbaColor1 || !rgbaColor2) {
141
+ return false;
142
+ }
143
+ return rgbaColor1 === rgbaColor2;
144
+ };
145
+ const convertShortHexToLongHex = (shortHex) => {
146
+ if (shortHex.length === 4 && shortHex[0] === "#") {
147
+ const r = shortHex[1];
148
+ const g = shortHex[2];
149
+ const b = shortHex[3];
150
+ const longHex = `#${r}${r}${g}${g}${b}${b}`;
151
+ return longHex;
152
+ } else {
153
+ return shortHex;
80
154
  }
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
155
  };
90
- class B {
156
+ class YxSubscribe {
91
157
  constructor() {
92
- m(this, "subscribers");
158
+ __publicField(this, "subscribers");
93
159
  this.subscribers = {};
94
160
  }
95
- subscribe(s, t) {
96
- this.subscribers[s] || (this.subscribers[s] = []), this.subscribers[s].push(t);
161
+ subscribe(sub, fn) {
162
+ if (!this.subscribers[sub]) {
163
+ this.subscribers[sub] = [];
164
+ }
165
+ this.subscribers[sub].push(fn);
97
166
  }
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);
167
+ unsubscribe(sub, fn) {
168
+ const subscribers = this.subscribers[sub];
169
+ if (!fn) return this.subscribers[sub] = [];
170
+ if (subscribers) {
171
+ const index = subscribers.indexOf(fn);
172
+ if (index !== -1) {
173
+ subscribers.splice(index, 1);
174
+ }
105
175
  }
106
176
  }
107
- publish(s) {
108
- const t = this.subscribers[s.type];
109
- t && t.forEach((i) => {
110
- i(s.data);
111
- });
177
+ publish(message) {
178
+ const subscribers = this.subscribers[message.type];
179
+ if (subscribers) {
180
+ subscribers.forEach((fn) => {
181
+ fn(message.data);
182
+ });
183
+ }
112
184
  }
113
185
  }
114
- const v = new B();
186
+ const yxSubscribe = new YxSubscribe();
115
187
  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
188
+ areColorsSimilar as a,
189
+ isDarkColor as b,
190
+ enumToArray as e,
191
+ getSelectOptions as g,
192
+ isColorEqual as i,
193
+ notifyMessageToSystems as n,
194
+ receiveMessage as r,
195
+ yxSubscribe as y
124
196
  };
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,46 +1,64 @@
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
- import { g, a as u } from "./index.es13.js";
19
- const d = "yxIcon", w = () => {
20
- m();
21
- }, m = () => r(void 0, null, function* () {
22
- var e;
23
- const { data: o } = yield g(), t = (e = o.find((s) => s.groupName === d)) == null ? void 0 : e.groupUuid;
24
- x(t);
25
- }), x = (o) => r(void 0, null, function* () {
26
- const { data: t } = yield u(o, 1);
27
- return y(t), t;
28
- }), y = (o) => {
29
- const t = document.createElementNS("http://www.w3.org/2000/svg", "svg");
30
- t.setAttribute("xmlns", "http://www.w3.org/2000/svg"), t.setAttribute("xmlns:xlin", "http://www.w3.org/1999/xlink");
31
- let e = "";
32
- o.forEach((s) => {
33
- e += s.text.replace(/\\/g, "").trim().replace(/^"(.*)"$/, "$1");
34
- }), t.innerHTML = e, t.style.position = "absolute", t.style.width = "0", t.style.height = "0", document.head.appendChild(t);
35
- }, h = {
36
- install: function(o) {
37
- w();
22
+ import { g as getGroupListApi, a as getResourceListApi } from "./index.es13.js";
23
+ const ICON_GROUP_NAME = "yxIcon";
24
+ const initYxIcon = () => {
25
+ getYxIconGroupUuid();
26
+ };
27
+ const getYxIconGroupUuid = () => __async(void 0, null, function* () {
28
+ var _a;
29
+ const { data } = yield getGroupListApi();
30
+ const groupUuid = (_a = data.find((item) => item.groupName === ICON_GROUP_NAME)) == null ? void 0 : _a.groupUuid;
31
+ getYxIconFileContent(groupUuid);
32
+ });
33
+ const getYxIconFileContent = (groupUuid) => __async(void 0, null, function* () {
34
+ const { data } = yield getResourceListApi(groupUuid, 1);
35
+ combineYxIconStr(data);
36
+ return data;
37
+ });
38
+ const combineYxIconStr = (data) => {
39
+ const svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
40
+ svg.setAttribute("xmlns", "http://www.w3.org/2000/svg");
41
+ svg.setAttribute("xmlns:xlin", "http://www.w3.org/1999/xlink");
42
+ let svgHtml = "";
43
+ data.forEach((svgElement) => {
44
+ svgHtml += svgElement.text.replace(/\\/g, "").trim().replace(/^"(.*)"$/, "$1");
45
+ });
46
+ svg.innerHTML = svgHtml;
47
+ svg.style.position = "absolute";
48
+ svg.style.width = "0";
49
+ svg.style.height = "0";
50
+ document.head.appendChild(svg);
51
+ };
52
+ const index = {
53
+ install: function(app) {
54
+ initYxIcon();
38
55
  }
39
- }, v = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
56
+ };
57
+ const yxIcon2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
40
58
  __proto__: null,
41
- default: h
59
+ default: index
42
60
  }, Symbol.toStringTag, { value: "Module" }));
43
61
  export {
44
- h as i,
45
- v as y
62
+ index as i,
63
+ yxIcon2 as y
46
64
  };
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
  };