yxuse 2.0.28 → 2.0.30

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 (46) hide show
  1. package/lib/api.cjs.js +1 -1
  2. package/lib/api.es.js +1 -1
  3. package/lib/components.cjs.js +1 -1
  4. package/lib/components.es.js +11 -12
  5. package/lib/directives.cjs.js +1 -1
  6. package/lib/directives.es.js +1 -1
  7. package/lib/hooks.cjs.js +1 -1
  8. package/lib/hooks.es.js +1 -1
  9. package/lib/index.cjs.js +1 -1
  10. package/lib/index.cjs2.js +20 -18
  11. package/lib/index.cjs2.js.gz +0 -0
  12. package/lib/index.cjs3.js +1 -1
  13. package/lib/index.cjs4.js +1 -1
  14. package/lib/index.cjs5.js +1 -1
  15. package/lib/index.cjs6.js +1 -1
  16. package/lib/index.cjs7.js +3 -3
  17. package/lib/index.cjs7.js.gz +0 -0
  18. package/lib/index.es.js +16 -17
  19. package/lib/index.es2.js +2418 -2362
  20. package/lib/index.es2.js.gz +0 -0
  21. package/lib/index.es3.js +24 -21
  22. package/lib/index.es4.js +2 -3
  23. package/lib/index.es5.js +16 -16
  24. package/lib/index.es6.js +1 -1
  25. package/lib/index.es6.js.gz +0 -0
  26. package/lib/index.es7.js +2968 -750
  27. package/lib/index.es7.js.gz +0 -0
  28. package/lib/index.es8.js +7 -1
  29. package/lib/index.es9.js +4 -4
  30. package/lib/theme.cjs.js +1 -1
  31. package/lib/theme.es.js +10 -10
  32. package/lib/translate.cjs.js +1 -1
  33. package/lib/translate.es.js +7 -8
  34. package/lib/utils.cjs.js +1 -1
  35. package/lib/utils.es.js +1 -1
  36. package/lib/vue.runtime.esm-bundler.cjs.js +8 -0
  37. package/lib/vue.runtime.esm-bundler.cjs.js.gz +0 -0
  38. package/lib/vue.runtime.esm-bundler.es.js +4588 -0
  39. package/lib/vue.runtime.esm-bundler.es.js.gz +0 -0
  40. package/lib/yxIcon.cjs.js +1 -1
  41. package/lib/yxIcon.es.js +1 -1
  42. package/package.json +1 -1
  43. package/types/api/auth/index.d.ts +1 -0
  44. package/types/theme/index.d.ts +1 -0
  45. package/types/translate/index.d.ts +2 -1
  46. package/types/utils/http/index.d.ts +13 -5
Binary file
package/lib/index.es3.js CHANGED
@@ -1,6 +1,6 @@
1
1
  var $ = Object.defineProperty;
2
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);
3
+ var d = (e, s, t) => (w(e, typeof s != "symbol" ? s + "" : s, t), t);
4
4
  import { h as y } from "./index.es7.js";
5
5
  const S = (e) => {
6
6
  new BroadcastChannel("YXUSE_BC").postMessage(e);
@@ -19,7 +19,7 @@ const S = (e) => {
19
19
  return s;
20
20
  }, _ = (e) => {
21
21
  const t = ((u) => {
22
- let f = 0, C = 0, I = 0, d = 1;
22
+ let f = 0, C = 0, I = 0, m = 1;
23
23
  if (u.startsWith("#"))
24
24
  if (u = u.slice(1), u.length === 3)
25
25
  f = parseInt(u[0] + u[0], 16), C = parseInt(u[1] + u[1], 16), I = parseInt(u[2] + u[2], 16);
@@ -28,39 +28,42 @@ const S = (e) => {
28
28
  else
29
29
  return null;
30
30
  else if (u.startsWith("rgb")) {
31
- const g = u.match(/(\d+(\.\d+)?)/g);
32
- if (g)
33
- f = parseFloat(g[0]), C = parseFloat(g[1]), I = parseFloat(g[2]), g.length > 3 && (d = parseFloat(g[3]));
31
+ const h = u.match(/(\d+(\.\d+)?)/g);
32
+ if (h)
33
+ f = parseFloat(h[0]), C = parseFloat(h[1]), I = parseFloat(h[2]), h.length > 3 && (m = parseFloat(h[3]));
34
34
  else
35
35
  return null;
36
36
  } else
37
37
  return null;
38
- return [f, C, I, d];
38
+ return [f, C, I, m];
39
39
  })(e);
40
40
  if (!t)
41
41
  return null;
42
- const [i, a, r, h] = t, n = i / 255, b = a / 255, l = r / 255, p = Math.max(n, b, l), o = Math.min(n, b, l);
43
- return (p + o) / 2 < 0.5;
42
+ const [i, a, r, p] = t, n = i / 255, b = a / 255, l = r / 255, c = Math.max(n, b, l), o = Math.min(n, b, l);
43
+ return (c + o) / 2 < 0.5;
44
44
  }, x = (e, s, t = 100) => {
45
45
  const i = (n) => {
46
- let b, l, p, o = 1;
46
+ let b, l, c, o = 1;
47
47
  if (n.startsWith("#"))
48
48
  if (n = n.slice(1), n.length === 3)
49
- b = parseInt(n[0] + n[0], 16), l = parseInt(n[1] + n[1], 16), p = parseInt(n[2] + n[2], 16);
49
+ b = parseInt(n[0] + n[0], 16), l = parseInt(n[1] + n[1], 16), c = parseInt(n[2] + n[2], 16);
50
50
  else if (n.length === 6)
51
- b = parseInt(n.slice(0, 2), 16), l = parseInt(n.slice(2, 4), 16), p = parseInt(n.slice(4, 6), 16);
51
+ b = parseInt(n.slice(0, 2), 16), l = parseInt(n.slice(2, 4), 16), c = parseInt(n.slice(4, 6), 16);
52
52
  else
53
53
  return null;
54
54
  else if (n.startsWith("rgb")) {
55
- const c = n.match(/(\d+(\.\d+)?)/g);
56
- b = parseFloat(c[0]), l = parseFloat(c[1]), p = parseFloat(c[2]), c.length > 3 && (o = parseFloat(c[3]));
55
+ const g = n.match(/(\d+(\.\d+)?)/g);
56
+ b = parseFloat(g[0]), l = parseFloat(g[1]), c = parseFloat(g[2]), g.length > 3 && (o = parseFloat(g[3]));
57
57
  } else
58
58
  return null;
59
- return [b, l, p, o];
59
+ return [b, l, c, o];
60
60
  }, a = i(e), r = i(s);
61
- return !a || !r ? !1 : Math.sqrt(
61
+ if (!a || !r)
62
+ return !1;
63
+ const p = Math.sqrt(
62
64
  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)
63
- ) <= t;
65
+ );
66
+ return console.log(p), p <= t;
64
67
  }, L = (e, s) => {
65
68
  function t(r) {
66
69
  if (r.toLowerCase().startsWith("rgba"))
@@ -68,11 +71,11 @@ const S = (e) => {
68
71
  if (r.toLowerCase().startsWith("rgb"))
69
72
  return r.replace("rgb", "rgba").replace(")", ", 1)");
70
73
  if (r.length === 7) {
71
- const h = parseInt(r.substring(1, 3), 16), n = parseInt(r.substring(3, 5), 16), b = parseInt(r.substring(5, 7), 16);
72
- return `rgba(${h}, ${n}, ${b}, 1)`;
74
+ const p = parseInt(r.substring(1, 3), 16), n = parseInt(r.substring(3, 5), 16), b = parseInt(r.substring(5, 7), 16);
75
+ return `rgba(${p}, ${n}, ${b}, 1)`;
73
76
  } else if (r.length === 9 && r.toLowerCase().startsWith("rrggbbaa")) {
74
- const h = 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;
75
- return `rgba(${h}, ${n}, ${b}, ${l})`;
77
+ const p = 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;
78
+ return `rgba(${p}, ${n}, ${b}, ${l})`;
76
79
  } else
77
80
  return null;
78
81
  }
@@ -87,7 +90,7 @@ const S = (e) => {
87
90
  };
88
91
  class v {
89
92
  constructor() {
90
- m(this, "subscribers");
93
+ d(this, "subscribers");
91
94
  this.subscribers = {};
92
95
  }
93
96
  subscribe(s, t) {
package/lib/index.es4.js CHANGED
@@ -15,7 +15,6 @@ var r = (o, t, e) => new Promise((s, a) => {
15
15
  i((e = e.apply(o, t)).next());
16
16
  });
17
17
  import "./index.es7.js";
18
- import "element-plus";
19
18
  import { g, a as u } from "./index.es8.js";
20
19
  const d = "yxIcon", w = () => {
21
20
  m();
@@ -37,11 +36,11 @@ const d = "yxIcon", w = () => {
37
36
  install: function(o) {
38
37
  w();
39
38
  }
40
- }, _ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39
+ }, v = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41
40
  __proto__: null,
42
41
  default: h
43
42
  }, Symbol.toStringTag, { value: "Module" }));
44
43
  export {
45
44
  h as i,
46
- _ as y
45
+ v as y
47
46
  };
package/lib/index.es5.js CHANGED
@@ -1,42 +1,42 @@
1
- var a = (t, r, s) => new Promise((l, d) => {
2
- var E = (e) => {
1
+ var a = (t, c, s) => new Promise((l, d) => {
2
+ var g = (e) => {
3
3
  try {
4
4
  o(s.next(e));
5
5
  } catch (i) {
6
6
  d(i);
7
7
  }
8
- }, _ = (e) => {
8
+ }, u = (e) => {
9
9
  try {
10
10
  o(s.throw(e));
11
11
  } catch (i) {
12
12
  d(i);
13
13
  }
14
- }, o = (e) => e.done ? l(e.value) : Promise.resolve(e.value).then(E, _);
15
- o((s = s.apply(t, r)).next());
14
+ }, o = (e) => e.done ? l(e.value) : Promise.resolve(e.value).then(g, u);
15
+ o((s = s.apply(t, c)).next());
16
16
  });
17
- import { h as n, U as c, i as g } from "./index.es7.js";
18
- import { i as m } from "./index.es8.js";
19
- const u = (t = "ttc") => a(void 0, null, function* () {
20
- return yield n.get(`${c[t].INTEGRATED_BASE_URL}/basic/data/satellite/select`);
17
+ import { h as n, U as r, i as E } from "./index.es7.js";
18
+ import { i as _ } from "./index.es8.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
21
  }), T = (t = "ttc") => a(void 0, null, function* () {
22
- return yield n.get(`${c[t].INTEGRATED_BASE_URL}/basic/data/ante/select`);
22
+ return yield n.get(`${r[t].INTEGRATED_BASE_URL}/basic/data/ante/select`);
23
23
  }), U = (t = "ttc") => a(void 0, null, function* () {
24
- return yield n.get(`${c[t].INTEGRATED_BASE_URL}/theme/list`);
24
+ return yield n.get(`${r[t].INTEGRATED_BASE_URL}/theme/list`, {}, { headers: { noLoading: !0 } });
25
25
  }), A = (t = "ttc") => a(void 0, null, function* () {
26
- return yield n.get(`${c[t].INTEGRATED_BASE_URL}/workorder/comment/untreated/count`);
26
+ return yield n.get(`${r[t].INTEGRATED_BASE_URL}/workorder/comment/untreated/count`);
27
27
  }), p = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28
28
  __proto__: null,
29
- assets: m,
30
- auth: g,
29
+ assets: _,
30
+ auth: E,
31
31
  getCommentUntreatedCount: A,
32
32
  getUserSelectAnteList: T,
33
- getUserSelectSatelliteList: u,
33
+ getUserSelectSatelliteList: m,
34
34
  getUserThemeList: U
35
35
  }, Symbol.toStringTag, { value: "Module" }));
36
36
  export {
37
37
  U as a,
38
38
  p as b,
39
- u as c,
39
+ m as c,
40
40
  T as d,
41
41
  A as g
42
42
  };
package/lib/index.es6.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ref as R } from "vue";
1
+ import { q as R } from "./vue.runtime.esm-bundler.es.js";
2
2
  var X = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
3
3
  function tt(y) {
4
4
  return y && y.__esModule && Object.prototype.hasOwnProperty.call(y, "default") ? y.default : y;
Binary file