@das-fed/upf-utils 6.4.0-dev.235 → 6.4.0-dev.237

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 (123) hide show
  1. package/api-services/es5.js +2103 -2167
  2. package/api-services/index.js +1600 -1650
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/app-manage/es5.js +2223 -2299
  5. package/api-services/modules/app-manage/index.js +1830 -1898
  6. package/api-services/modules/app-manage/index.js.gz +0 -0
  7. package/api-services/modules/authentication/es5.js +2188 -2267
  8. package/api-services/modules/authentication/index.js +1803 -1875
  9. package/api-services/modules/authentication/index.js.gz +0 -0
  10. package/api-services/modules/bems/es5.js +2235 -2311
  11. package/api-services/modules/bems/index.js +1837 -1905
  12. package/api-services/modules/bems/index.js.gz +0 -0
  13. package/api-services/modules/contract/es5.js +2223 -2299
  14. package/api-services/modules/contract/index.js +1830 -1898
  15. package/api-services/modules/contract/index.js.gz +0 -0
  16. package/api-services/modules/duty-manage/es5.js +2119 -2183
  17. package/api-services/modules/duty-manage/index.js +1758 -1808
  18. package/api-services/modules/duty-manage/index.js.gz +0 -0
  19. package/api-services/modules/enterpriseright/es5.js +2223 -2299
  20. package/api-services/modules/enterpriseright/index.js +1830 -1898
  21. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  22. package/api-services/modules/es5.js +2040 -2128
  23. package/api-services/modules/file/es5.js +1796 -1872
  24. package/api-services/modules/file/index.js +1390 -1458
  25. package/api-services/modules/file/index.js.gz +0 -0
  26. package/api-services/modules/gateway-edge/es5.js +2274 -2359
  27. package/api-services/modules/gateway-edge/index.js +1889 -1971
  28. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  29. package/api-services/modules/index.js +1542 -1628
  30. package/api-services/modules/index.js.gz +0 -0
  31. package/api-services/modules/iot/es5.js +2078 -2154
  32. package/api-services/modules/iot/index.js +1695 -1763
  33. package/api-services/modules/iot/index.js.gz +0 -0
  34. package/api-services/modules/justauth/es5.js +2279 -2364
  35. package/api-services/modules/justauth/index.js +1891 -1973
  36. package/api-services/modules/justauth/index.js.gz +0 -0
  37. package/api-services/modules/knowledge/es5.js +2119 -2183
  38. package/api-services/modules/knowledge/index.js +1760 -1810
  39. package/api-services/modules/knowledge/index.js.gz +0 -0
  40. package/api-services/modules/link/es5.js +2021 -2097
  41. package/api-services/modules/link/index.js +1650 -1718
  42. package/api-services/modules/link/index.js.gz +0 -0
  43. package/api-services/modules/permission/es5.js +2223 -2299
  44. package/api-services/modules/permission/index.js +1830 -1898
  45. package/api-services/modules/permission/index.js.gz +0 -0
  46. package/api-services/modules/platformManage/es5.js +2130 -2194
  47. package/api-services/modules/platformManage/index.js +1764 -1814
  48. package/api-services/modules/platformManage/index.js.gz +0 -0
  49. package/api-services/modules/portal/es5.js +2119 -2183
  50. package/api-services/modules/portal/index.js +1760 -1810
  51. package/api-services/modules/portal/index.js.gz +0 -0
  52. package/api-services/modules/space-manage/es5.js +2223 -2299
  53. package/api-services/modules/space-manage/index.js +1830 -1898
  54. package/api-services/modules/space-manage/index.js.gz +0 -0
  55. package/api-services/modules/super-admin/es5.js +2288 -2376
  56. package/api-services/modules/super-admin/index.js +1893 -1979
  57. package/api-services/modules/super-admin/index.js.gz +0 -0
  58. package/api-services/modules/supplier/es5.js +2227 -2303
  59. package/api-services/modules/supplier/index.js +1832 -1900
  60. package/api-services/modules/supplier/index.js.gz +0 -0
  61. package/api-services/modules/supplychain-manage/es5.js +2330 -2397
  62. package/api-services/modules/supplychain-manage/index.js +1938 -1992
  63. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  64. package/api-services/modules/systemConfiguration/es5.js +2326 -2392
  65. package/api-services/modules/systemConfiguration/index.js +1934 -1988
  66. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  67. package/api-services/modules/tool/es5.js +2223 -2299
  68. package/api-services/modules/tool/index.js +1830 -1898
  69. package/api-services/modules/tool/index.js.gz +0 -0
  70. package/api-services/src/create-service/es5.js +2021 -2100
  71. package/api-services/src/create-service/index.js +1648 -1720
  72. package/api-services/src/create-service/index.js.gz +0 -0
  73. package/common-info/es5.js +2694 -2720
  74. package/common-info/getPermissionMethod/es5.js +2183 -2209
  75. package/common-info/getPermissionMethod/index.d.ts +35 -2
  76. package/common-info/getPermissionMethod/index.js +1784 -1809
  77. package/common-info/getPermissionMethod/index.js.gz +0 -0
  78. package/common-info/index.d.ts +2 -2
  79. package/common-info/index.js +2263 -2288
  80. package/common-info/index.js.gz +0 -0
  81. package/common-info/set-personal-info/es5.js +997 -1073
  82. package/common-info/set-personal-info/index.js +827 -895
  83. package/common-info/set-personal-info/index.js.gz +0 -0
  84. package/common-tools/extract-file-name/es5.js +998 -1074
  85. package/common-tools/extract-file-name/index.js +821 -889
  86. package/common-tools/extract-file-name/index.js.gz +0 -0
  87. package/common-tools/handle-data/es5.js +1 -1
  88. package/common-tools/update-browser-title/es5.js +1 -1
  89. package/common-tools/update-fav-icon/es5.js +1 -1
  90. package/create-api-service/access-token-auto-refresh/es5.js +1 -1
  91. package/create-api-service/check-token/es5.js +1 -1
  92. package/create-api-service/es5.js +2278 -2366
  93. package/create-api-service/index.js +1890 -1976
  94. package/create-api-service/index.js.gz +0 -0
  95. package/create-api-service/sso/es5.js +1166 -1242
  96. package/create-api-service/sso/index.js +938 -1006
  97. package/create-api-service/sso/index.js.gz +0 -0
  98. package/create-api-service/token-refresh-shared/es5.js +1049 -1125
  99. package/create-api-service/token-refresh-shared/index.js +859 -927
  100. package/create-api-service/token-refresh-shared/index.js.gz +0 -0
  101. package/curring-http/es5.js +1366 -1442
  102. package/curring-http/index.js +1064 -1132
  103. package/curring-http/index.js.gz +0 -0
  104. package/directive/auth/es5.js +26 -25
  105. package/directive/auth/index.d.ts +1 -1
  106. package/directive/auth/index.js +24 -24
  107. package/directive/auth/index.js.gz +0 -0
  108. package/directive/clickOutside/es5.js +1 -1
  109. package/directive/hoverInside/es5.js +1 -1
  110. package/directive/utils/es5.js +1 -1
  111. package/esm-map.json +2 -2
  112. package/hooks/use-get-auth/es5.js +1 -1
  113. package/package.json +3 -3
  114. package/pinyin-first-character/es5.js +45 -47
  115. package/pinyin-first-character/index.js +35 -37
  116. package/pinyin-first-character/index.js.gz +0 -0
  117. package/style/es5.js +11 -11
  118. package/style/index.js +10 -10
  119. package/style/index.js.gz +0 -0
  120. package/use-low-code/es5.js +37 -53
  121. package/use-low-code/index.js +36 -31
  122. package/use-low-code/index.js.gz +0 -0
  123. package/use-low-code/style.css +0 -1
@@ -18869,7 +18869,7 @@ function sn(n, i, g) {
18869
18869
  if (un.indexOf(n) === -1)
18870
18870
  return e(n);
18871
18871
  if (i === g && i && e(i) !== i)
18872
- return q(e(n));
18872
+ return f(e(n));
18873
18873
  if (g && !hn[n].includes(g)) {
18874
18874
  const h = e(g);
18875
18875
  if (h !== g) {
@@ -23491,7 +23491,7 @@ const a = {
23491
23491
  length: 4,
23492
23492
  priority: j.Normal,
23493
23493
  dict: Symbol("dict4")
23494
- })), v = {
23494
+ })), _ = {
23495
23495
  巴尔干半岛: "bā ěr gàn bàn dǎo",
23496
23496
  巴尔喀什湖: "bā ěr kā shí hú",
23497
23497
  不幸而言中: "bú xìng ér yán zhòng",
@@ -23507,15 +23507,15 @@ const a = {
23507
23507
  亚得里亚海: "yà dé lǐ yà hǎi",
23508
23508
  眼不见为净: "yǎn bú jiàn wéi jìng",
23509
23509
  竹筒倒豆子: "zhú tǒng dào dòu zi"
23510
- }, jn = Object.keys(v).map((n) => ({
23510
+ }, jn = Object.keys(_).map((n) => ({
23511
23511
  zh: n,
23512
- pinyin: v[n],
23512
+ pinyin: _[n],
23513
23513
  probability: 2e-8,
23514
23514
  length: 5,
23515
23515
  priority: j.Normal,
23516
23516
  dict: Symbol("dict5")
23517
23517
  }));
23518
- function _(n, i) {
23518
+ function v(n, i) {
23519
23519
  return n && (n.decimal < i.decimal || n.decimal === i.decimal && n.probability > i.probability) ? n : i;
23520
23520
  }
23521
23521
  function E(n) {
@@ -23536,14 +23536,14 @@ function xn(n, i) {
23536
23536
  patterns: z.patterns,
23537
23537
  concatPattern: u
23538
23538
  };
23539
- E(y), g[l] = _(g[l], y), u = n[--h];
23539
+ E(y), g[l] = v(g[l], y), u = n[--h];
23540
23540
  }
23541
23541
  const o = {
23542
23542
  probability: 1e-13 * z.probability,
23543
23543
  decimal: 0,
23544
23544
  patterns: z.patterns
23545
23545
  };
23546
- E(o), g[s] = _(g[s], o), g[s].concatPattern && (g[s].patterns = g[s].patterns.concat(g[s].concatPattern), g[s].concatPattern = void 0, delete g[s + 1]);
23546
+ E(o), g[s] = v(g[s], o), g[s].concatPattern && (g[s].patterns = g[s].patterns.concat(g[s].concatPattern), g[s].concatPattern = void 0, delete g[s + 1]);
23547
23547
  }
23548
23548
  return g[0].patterns.reverse();
23549
23549
  }
@@ -23597,7 +23597,7 @@ class $ {
23597
23597
  this.children = /* @__PURE__ */ new Map(), this.fail = null, this.patterns = [], this.parent = i, this.prefix = g, this.key = h;
23598
23598
  }
23599
23599
  }
23600
- class fn {
23600
+ class qn {
23601
23601
  constructor() {
23602
23602
  this.dictMap = /* @__PURE__ */ new Map(), this.queues = [], this.root = new $(null);
23603
23603
  }
@@ -23687,15 +23687,15 @@ class fn {
23687
23687
  return h === 1 ? wn(u) : h === 3 ? en(u, d(i)) : xn(u, d(i));
23688
23688
  }
23689
23689
  }
23690
- const qn = [
23690
+ const fn = [
23691
23691
  ...jn,
23692
23692
  ...tn,
23693
23693
  ...cn,
23694
23694
  ...ln,
23695
23695
  ...gn,
23696
23696
  ...yn
23697
- ], U = new fn();
23698
- U.build(qn);
23697
+ ], U = new qn();
23698
+ U.build(fn);
23699
23699
  const mn = new F(), pn = () => mn, e = (n) => {
23700
23700
  const i = x.get(n);
23701
23701
  return i ? i.split(" ")[0] : n;
@@ -23723,9 +23723,9 @@ const mn = new F(), pn = () => mn, e = (n) => {
23723
23723
  const b = w(l.zh);
23724
23724
  i[o + t] = {
23725
23725
  origin: b[t],
23726
- result: y[c] || "",
23726
+ result: y[c],
23727
23727
  isZh: !0,
23728
- originPinyin: y[c] || ""
23728
+ originPinyin: y[c]
23729
23729
  }, c++;
23730
23730
  }
23731
23731
  o += l.length, s++;
@@ -23741,7 +23741,7 @@ const mn = new F(), pn = () => mn, e = (n) => {
23741
23741
  }
23742
23742
  }
23743
23743
  return { list: i, matches: u };
23744
- }, q = (n) => n.replace(/(ā|á|ǎ|à)/g, "a").replace(/(ō|ó|ǒ|ò)/g, "o").replace(/(ē|é|ě|è)/g, "e").replace(/(ī|í|ǐ|ì)/g, "i").replace(/(ū|ú|ǔ|ù)/g, "u").replace(/(ǖ|ǘ|ǚ|ǜ)/g, "ü").replace(/(n̄|ń|ň|ǹ)/g, "n").replace(/(m̄|ḿ|m̌|m̀)/g, "m").replace(/(ê̄|ế|ê̌|ề)/g, "ê"), W = (n, i = "off") => {
23744
+ }, f = (n) => n.replace(/(ā|á|ǎ|à)/g, "a").replace(/(ō|ó|ǒ|ò)/g, "o").replace(/(ē|é|ě|è)/g, "e").replace(/(ī|í|ǐ|ì)/g, "i").replace(/(ū|ú|ǔ|ù)/g, "u").replace(/(ǖ|ǘ|ǚ|ǜ)/g, "ü").replace(/(n̄|ń|ň|ǹ)/g, "n").replace(/(m̄|ḿ|m̌|m̀)/g, "m").replace(/(ê̄|ế|ê̌|ề)/g, "ê"), W = (n, i = "off") => {
23745
23745
  const g = pn();
23746
23746
  let h = x.get(n) ? x.get(n).split(" ") : [];
23747
23747
  if (g.get(n))
@@ -23766,33 +23766,31 @@ const mn = new F(), pn = () => mn, e = (n) => {
23766
23766
  originPinyin: n
23767
23767
  }
23768
23768
  ];
23769
- }, f = (n, i) => {
23770
- const g = n.split(" "), h = [], u = [];
23771
- for (let s of g)
23772
- for (let z of G)
23773
- if (s.startsWith(z)) {
23774
- let o = s.slice(z.length);
23775
- J.indexOf(z) !== -1 && K.indexOf(o) !== -1 && (o = X[o]), h.push(z), u.push(o);
23769
+ }, q = (n) => {
23770
+ const i = n.split(" "), g = [], h = [];
23771
+ for (let u of i)
23772
+ for (let s of G)
23773
+ if (u.startsWith(s)) {
23774
+ let z = u.slice(s.length);
23775
+ J.indexOf(s) !== -1 && K.indexOf(z) !== -1 && (z = X[z]), g.push(s), h.push(z);
23776
23776
  break;
23777
23777
  }
23778
- return i === "standard" && h.forEach((s, z) => {
23779
- (s === "y" || s === "w") && (h[z] = "");
23780
- }), {
23781
- final: u.join(" "),
23782
- initial: h.join(" ")
23778
+ return {
23779
+ final: h.join(" "),
23780
+ initial: g.join(" ")
23783
23781
  // 声母
23784
23782
  };
23785
23783
  }, r = (n) => {
23786
- const { final: i } = f(n);
23784
+ const { final: i } = q(n);
23787
23785
  let g = "", h = "", u = "";
23788
- return Y.indexOf(q(i)) !== -1 ? (g = i[0], h = i[1], u = i.slice(2)) : (h = i[0] || "", u = i.slice(1) || ""), { head: g, body: h, tail: u };
23786
+ return Y.indexOf(f(i)) !== -1 ? (g = i[0], h = i[1], u = i.slice(2)) : (h = i[0] || "", u = i.slice(1) || ""), { head: g, body: h, tail: u };
23789
23787
  }, m = (n) => {
23790
23788
  const i = /(ā|ō|ē|ī|ū|ǖ|n̄|m̄|ê̄)/, g = /(á|ó|é|í|ú|ǘ|ń|ḿ|ế)/, h = /(ǎ|ǒ|ě|ǐ|ǔ|ǚ|ň|m̌|ê̌)/, u = /(à|ò|è|ì|ù|ǜ|ǹ|m̀|ề)/, s = /(a|o|e|i|u|ü|ê)/, z = /(n|m)$/, o = [];
23791
23789
  return n.split(" ").forEach((y) => {
23792
23790
  i.test(y) ? o.push("1") : g.test(y) ? o.push("2") : h.test(y) ? o.push("3") : u.test(y) ? o.push("4") : s.test(y) || z.test(y) ? o.push("0") : o.push("");
23793
23791
  }), o.join(" ");
23794
23792
  }, Pn = (n, i) => {
23795
- const g = q(n).split(" "), h = m(i).split(" "), u = [];
23793
+ const g = f(n).split(" "), h = m(i).split(" "), u = [];
23796
23794
  return g.forEach((s, z) => {
23797
23795
  u.push(`${s}${h[z]}`);
23798
23796
  }), u.join(" ");
@@ -23828,12 +23826,12 @@ const Dn = (n, i) => {
23828
23826
  break;
23829
23827
  case "initial":
23830
23828
  n.forEach((g) => {
23831
- g.result = g.isZh ? f(g.result, i.initialPattern).initial : "";
23829
+ g.result = g.isZh ? q(g.result).initial : "";
23832
23830
  });
23833
23831
  break;
23834
23832
  case "final":
23835
23833
  n.forEach((g) => {
23836
- g.result = g.isZh ? f(g.result, i.initialPattern).final : "";
23834
+ g.result = g.isZh ? q(g.result).final : "";
23837
23835
  });
23838
23836
  break;
23839
23837
  case "first":
@@ -23863,7 +23861,7 @@ const Dn = (n, i) => {
23863
23861
  break;
23864
23862
  case "none":
23865
23863
  n.forEach((g) => {
23866
- g.isZh && (g.result = q(g.result));
23864
+ g.isZh && (g.result = f(g.result));
23867
23865
  });
23868
23866
  break;
23869
23867
  case "num": {
@@ -23875,7 +23873,7 @@ const Dn = (n, i) => {
23875
23873
  }
23876
23874
  }, Cn = (n, i) => {
23877
23875
  i.v && n.forEach((g) => {
23878
- g.isZh && (g.result = g.result.replace(/ü/g, typeof i.v == "string" ? i.v : "v"));
23876
+ g.isZh && (g.result = g.result.replace(/ü/g, "v"));
23879
23877
  });
23880
23878
  }, Mn = (n, i, g) => {
23881
23879
  if (i.multiple && d(g) === 1) {
@@ -23886,7 +23884,7 @@ const Dn = (n, i) => {
23886
23884
  });
23887
23885
  }
23888
23886
  return i.type === "array" ? n.map((h) => h.result) : i.type === "all" ? n.map((h) => {
23889
- const u = h.isZh ? h.result : "", { initial: s, final: z } = f(u, i.initialPattern), { head: o, body: l, tail: y } = r(u);
23887
+ const u = h.isZh ? h.result : "", { initial: s, final: z } = q(u), { head: o, body: l, tail: y } = r(u);
23890
23888
  let c = [];
23891
23889
  return u !== "" && (c = [u].concat(W(h.origin, i.surname).filter((t) => t !== u))), {
23892
23890
  origin: h.origin,
@@ -23919,7 +23917,7 @@ const Dn = (n, i) => {
23919
23917
  toneSandhi: !0,
23920
23918
  segmentit: 2
23921
23919
  };
23922
- function vn(n, i) {
23920
+ function _n(n, i) {
23923
23921
  if (i = Object.assign(Object.assign({}, Nn), i || {}), !Sn(n))
23924
23922
  return n;
23925
23923
  if (n === "")
@@ -23933,12 +23931,12 @@ var k;
23933
23931
  n[n.AllSegment = 1] = "AllSegment", n[n.AllArray = 2] = "AllArray", n[n.AllString = 3] = "AllString", n[n.PinyinSegment = 4] = "PinyinSegment", n[n.PinyinArray = 5] = "PinyinArray", n[n.PinyinString = 6] = "PinyinString", n[n.ZhSegment = 7] = "ZhSegment", n[n.ZhArray = 8] = "ZhArray", n[n.ZhString = 9] = "ZhString";
23934
23932
  })(k || (k = {}));
23935
23933
  k.AllSegment;
23936
- const _n = (n) => vn(n, {
23934
+ const vn = (n) => _n(n, {
23937
23935
  pattern: "first",
23938
23936
  toneType: "none",
23939
23937
  type: "string",
23940
23938
  separator: ""
23941
23939
  });
23942
23940
  export {
23943
- _n as getPinyinFirstCharacter
23941
+ vn as getPinyinFirstCharacter
23944
23942
  };
Binary file
package/style/es5.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  /**
4
- * @vue/shared v3.5.25
4
+ * @vue/shared v3.5.17
5
5
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
6
6
  * @license MIT
7
7
  **/
@@ -20,10 +20,10 @@ var u = function u(t) {
20
20
  return e[r] || (e[r] = t(r));
21
21
  };
22
22
  },
23
- m = /-\w/g,
23
+ m = /-(\w)/g,
24
24
  p = u(function (t) {
25
- return t.replace(m, function (e) {
26
- return e.slice(1).toUpperCase();
25
+ return t.replace(m, function (e, r) {
26
+ return r ? r.toUpperCase() : "";
27
27
  });
28
28
  }),
29
29
  a = function a() {
@@ -108,24 +108,24 @@ var u = function u(t) {
108
108
  l = function l(t) {
109
109
  return Number(t.toString().replace("px", ""));
110
110
  },
111
- c = function c(t, e, r) {
111
+ o = function o(t, e, r) {
112
112
  e = l(e), r = l(r);
113
113
  var n;
114
114
  return t === "add" && (n = e + r), t === "subtract" && (n = e - r), t === "multiply" && (n = e * r), t === "divide" && (n = e / r), e = null, r = null, n;
115
115
  },
116
- _o = function o(t) {
116
+ _c = function c(t) {
117
117
  return {
118
118
  add: function add(e) {
119
- return _o(c("add", t, e));
119
+ return _c(o("add", t, e));
120
120
  },
121
121
  subtract: function subtract(e) {
122
- return _o(c("subtract", t, e));
122
+ return _c(o("subtract", t, e));
123
123
  },
124
124
  multiply: function multiply(e) {
125
- return _o(c("multiply", t, e));
125
+ return _c(o("multiply", t, e));
126
126
  },
127
127
  divide: function divide(e) {
128
- return _o(c("divide", t, e));
128
+ return _c(o("divide", t, e));
129
129
  },
130
130
  res: function res() {
131
131
  var e = t + "px";
@@ -135,7 +135,7 @@ var u = function u(t) {
135
135
  };
136
136
  exports.addClass = y;
137
137
  exports.createStyle = E;
138
- exports.curringMath = _o;
138
+ exports.curringMath = _c;
139
139
  exports.getCSS = d;
140
140
  exports.getStyle = N;
141
141
  exports.hasClass = h;
package/style/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/shared v3.5.25
2
+ * @vue/shared v3.5.17
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -8,8 +8,8 @@ process.env.NODE_ENV !== "production" && Object.freeze([]);
8
8
  const u = (t) => {
9
9
  const e = /* @__PURE__ */ Object.create(null);
10
10
  return (r) => e[r] || (e[r] = t(r));
11
- }, m = /-\w/g, p = u(
12
- (t) => t.replace(m, (e) => e.slice(1).toUpperCase())
11
+ }, m = /-(\w)/g, p = u(
12
+ (t) => t.replace(m, (e, r) => r ? r.toUpperCase() : "")
13
13
  ), a = (t = "") => t.split(" ").filter((e) => !!e.trim()), h = (t, e) => {
14
14
  if (!t || !e) return !1;
15
15
  if (e.includes(" ")) throw new Error("className should not contain space.");
@@ -46,15 +46,15 @@ const u = (t) => {
46
46
  for (const n of e)
47
47
  r.appendChild(document.createTextNode(`${n.className}{${d(n.style)}}`));
48
48
  }
49
- }, l = (t) => Number(t.toString().replace("px", "")), c = (t, e, r) => {
49
+ }, l = (t) => Number(t.toString().replace("px", "")), o = (t, e, r) => {
50
50
  e = l(e), r = l(r);
51
51
  let n;
52
52
  return t === "add" && (n = e + r), t === "subtract" && (n = e - r), t === "multiply" && (n = e * r), t === "divide" && (n = e / r), e = null, r = null, n;
53
- }, o = (t) => ({
54
- add: (e) => o(c("add", t, e)),
55
- subtract: (e) => o(c("subtract", t, e)),
56
- multiply: (e) => o(c("multiply", t, e)),
57
- divide: (e) => o(c("divide", t, e)),
53
+ }, c = (t) => ({
54
+ add: (e) => c(o("add", t, e)),
55
+ subtract: (e) => c(o("subtract", t, e)),
56
+ multiply: (e) => c(o("multiply", t, e)),
57
+ divide: (e) => c(o("divide", t, e)),
58
58
  res: () => {
59
59
  const e = t + "px";
60
60
  return t = null, e;
@@ -63,7 +63,7 @@ const u = (t) => {
63
63
  export {
64
64
  y as addClass,
65
65
  E as createStyle,
66
- o as curringMath,
66
+ c as curringMath,
67
67
  d as getCSS,
68
68
  N as getStyle,
69
69
  h as hasClass,
package/style/index.js.gz CHANGED
Binary file
@@ -1,15 +1,8 @@
1
1
  'use strict';
2
2
 
3
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
4
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
5
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
7
- function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
8
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
9
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
10
3
  var vue = require('vue');
11
4
  var x = ["src"],
12
- b = /* @__PURE__ */vue.defineComponent({
5
+ B = /* @__PURE__ */vue.defineComponent({
13
6
  __name: "low-code-iframe",
14
7
  props: {
15
8
  app: {},
@@ -19,61 +12,61 @@ var x = ["src"],
19
12
  }
20
13
  },
21
14
  emits: ["emit-change", "update:iframeLoading"],
22
- setup: function setup(n, _ref) {
23
- var c = _ref.expose,
24
- s = _ref.emit;
25
- var a = n,
26
- r = vue.computed(function () {
15
+ setup: function setup(m, _ref) {
16
+ var f = _ref.expose,
17
+ u = _ref.emit;
18
+ var a = m,
19
+ i = vue.computed(function () {
27
20
  if (!a.app) return;
28
21
  var e = "";
29
22
  var o = "";
30
23
  var t = a.query || {};
31
24
  return a.app && (t.app = a.app), e = "".concat(o, "/api/node-low-code/v1/visitor/views/index?").concat(new URLSearchParams(t).toString()), e;
32
25
  }),
33
- l = s,
34
- d = vue.computed({
26
+ s = u,
27
+ r = vue.computed({
35
28
  get: function get() {
36
29
  return a.iframeLoading;
37
30
  },
38
31
  set: function set(e) {
39
- return l("update:iframeLoading", e);
32
+ return s("update:iframeLoading", e);
40
33
  }
41
34
  }),
42
- p = function p(e) {
35
+ d = function d(e) {
43
36
  var _ref2 = e.data || {},
44
37
  _ref2$emitName = _ref2.emitName,
45
38
  o = _ref2$emitName === void 0 ? "" : _ref2$emitName,
46
39
  _ref2$emitData = _ref2.emitData,
47
40
  t = _ref2$emitData === void 0 ? {} : _ref2$emitData;
48
- o === "app-mounted" ? d.value = false : l("emit-change", o, t);
41
+ o === "app-mounted" ? r.value = false : s("emit-change", o, t);
49
42
  };
50
43
  vue.onMounted(function () {
51
- window.addEventListener("message", p, false);
44
+ window.addEventListener("message", d, false);
52
45
  }), vue.onBeforeUnmount(function () {
53
- window.removeEventListener("message", p, false);
46
+ window.removeEventListener("message", d, false);
54
47
  });
55
- var i = vue.ref(null),
56
- m = function m(e) {
48
+ var n = vue.ref(null),
49
+ l = function l(e) {
57
50
  var o;
58
- d.value || (o = i.value) != null && o.contentWindow && i.value.contentWindow.postMessage(e);
51
+ r.value || (o = n.value) != null && o.contentWindow && n.value.contentWindow.postMessage(e);
59
52
  };
60
- c({
53
+ f({
61
54
  onActivated: function onActivated() {
62
- m({
55
+ l({
63
56
  type: "onActivated"
64
57
  });
65
58
  },
66
59
  onDeactivated: function onDeactivated() {
67
- m({
60
+ l({
68
61
  type: "onDeactivated"
69
62
  });
70
63
  }
71
64
  });
72
65
  var w = function w() {
73
- var o, t, f;
74
- var _URL = new URL(r.value || "", location.origin),
66
+ var o, t, c;
67
+ var _URL = new URL(i.value || "", location.origin),
75
68
  e = _URL.origin;
76
- e && ((f = (t = (o = i.value) == null ? undefined : o.contentWindow) == null ? undefined : t.postMessage) == null || f.call(t, {
69
+ e && ((c = (t = (o = n.value) == null ? undefined : o.contentWindow) == null ? undefined : t.postMessage) == null || c.call(t, {
77
70
  type: "setProxSsoStatus",
78
71
  data: {
79
72
  visible: true,
@@ -83,35 +76,26 @@ var x = ["src"],
83
76
  };
84
77
  return function (e, o) {
85
78
  return vue.openBlock(), vue.createElementBlock("iframe", {
86
- "class": "low-code-iframe",
87
79
  id: "low-code-iframe",
88
- src: r.value,
80
+ "class": "low-code-iframe",
81
+ src: i.value,
89
82
  frameborder: "0",
90
83
  sandbox: "allow-same-origin allow-scripts allow-forms allow-modals allow-popups allow-downloads allow-top-navigation",
91
84
  ref_key: "lowCodeRef",
92
- ref: i,
93
- onLoad: w
85
+ ref: n,
86
+ onLoad: w,
87
+ style: {
88
+ padding: 0,
89
+ margin: 0,
90
+ border: "none",
91
+ outline: "none",
92
+ height: "100%",
93
+ width: "100%",
94
+ minHeight: "100px",
95
+ minWidth: "100px"
96
+ }
94
97
  }, null, 40, x);
95
98
  };
96
99
  }
97
- }),
98
- C = function C(n, c) {
99
- var s = n.__vccOpts || n;
100
- var _iterator = _createForOfIteratorHelper(c),
101
- _step;
102
- try {
103
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
104
- var _step$value = _slicedToArray(_step.value, 2),
105
- a = _step$value[0],
106
- r = _step$value[1];
107
- s[a] = r;
108
- }
109
- } catch (err) {
110
- _iterator.e(err);
111
- } finally {
112
- _iterator.f();
113
- }
114
- return s;
115
- },
116
- B = /* @__PURE__ */C(b, [["__scopeId", "data-v-c5870bec"]]);
100
+ });
117
101
  exports.LowCode = B;
@@ -1,5 +1,5 @@
1
- import { defineComponent as v, computed as u, onMounted as g, onBeforeUnmount as _, ref as L, openBlock as y, createElementBlock as h } from "vue";
2
- const x = ["src"], b = /* @__PURE__ */ v({
1
+ import { defineComponent as g, computed as p, onMounted as v, onBeforeUnmount as h, ref as L, openBlock as y, createElementBlock as _ } from "vue";
2
+ const x = ["src"], B = /* @__PURE__ */ g({
3
3
  __name: "low-code-iframe",
4
4
  props: {
5
5
  app: {},
@@ -7,63 +7,68 @@ const x = ["src"], b = /* @__PURE__ */ v({
7
7
  iframeLoading: { type: Boolean }
8
8
  },
9
9
  emits: ["emit-change", "update:iframeLoading"],
10
- setup(n, { expose: c, emit: s }) {
11
- const a = n, r = u(() => {
10
+ setup(m, { expose: f, emit: u }) {
11
+ const a = m, i = p(() => {
12
12
  if (!a.app) return;
13
13
  let e = "";
14
14
  const o = "";
15
15
  let t = a.query || {};
16
16
  return a.app && (t.app = a.app), e = `${o}/api/node-low-code/v1/visitor/views/index?${new URLSearchParams(t).toString()}`, e;
17
- }), l = s, d = u({
17
+ }), s = u, r = p({
18
18
  get: () => a.iframeLoading,
19
- set: (e) => l("update:iframeLoading", e)
20
- }), p = (e) => {
19
+ set: (e) => s("update:iframeLoading", e)
20
+ }), d = (e) => {
21
21
  const { emitName: o = "", emitData: t = {} } = e.data || {};
22
- o === "app-mounted" ? d.value = !1 : l("emit-change", o, t);
22
+ o === "app-mounted" ? r.value = !1 : s("emit-change", o, t);
23
23
  };
24
- g(() => {
25
- window.addEventListener("message", p, !1);
26
- }), _(() => {
27
- window.removeEventListener("message", p, !1);
24
+ v(() => {
25
+ window.addEventListener("message", d, !1);
26
+ }), h(() => {
27
+ window.removeEventListener("message", d, !1);
28
28
  });
29
- const i = L(null), m = (e) => {
29
+ const n = L(null), l = (e) => {
30
30
  var o;
31
- d.value || (o = i.value) != null && o.contentWindow && i.value.contentWindow.postMessage(e);
31
+ r.value || (o = n.value) != null && o.contentWindow && n.value.contentWindow.postMessage(e);
32
32
  };
33
- c({
33
+ f({
34
34
  onActivated: () => {
35
- m({ type: "onActivated" });
35
+ l({ type: "onActivated" });
36
36
  },
37
37
  onDeactivated: () => {
38
- m({ type: "onDeactivated" });
38
+ l({ type: "onDeactivated" });
39
39
  }
40
40
  });
41
41
  const w = () => {
42
- var o, t, f;
43
- const { origin: e } = new URL(r.value || "", location.origin);
44
- e && ((f = (t = (o = i.value) == null ? void 0 : o.contentWindow) == null ? void 0 : t.postMessage) == null || f.call(
42
+ var o, t, c;
43
+ const { origin: e } = new URL(i.value || "", location.origin);
44
+ e && ((c = (t = (o = n.value) == null ? void 0 : o.contentWindow) == null ? void 0 : t.postMessage) == null || c.call(
45
45
  t,
46
46
  { type: "setProxSsoStatus", data: { visible: !0, parentHref: location.href } },
47
47
  e
48
48
  ));
49
49
  };
50
- return (e, o) => (y(), h("iframe", {
51
- class: "low-code-iframe",
50
+ return (e, o) => (y(), _("iframe", {
52
51
  id: "low-code-iframe",
53
- src: r.value,
52
+ class: "low-code-iframe",
53
+ src: i.value,
54
54
  frameborder: "0",
55
55
  sandbox: "allow-same-origin allow-scripts allow-forms allow-modals allow-popups allow-downloads allow-top-navigation",
56
56
  ref_key: "lowCodeRef",
57
- ref: i,
58
- onLoad: w
57
+ ref: n,
58
+ onLoad: w,
59
+ style: {
60
+ padding: 0,
61
+ margin: 0,
62
+ border: "none",
63
+ outline: "none",
64
+ height: "100%",
65
+ width: "100%",
66
+ minHeight: "100px",
67
+ minWidth: "100px"
68
+ }
59
69
  }, null, 40, x));
60
70
  }
61
- }), C = (n, c) => {
62
- const s = n.__vccOpts || n;
63
- for (const [a, r] of c)
64
- s[a] = r;
65
- return s;
66
- }, B = /* @__PURE__ */ C(b, [["__scopeId", "data-v-c5870bec"]]);
71
+ });
67
72
  export {
68
73
  B as LowCode
69
74
  };
Binary file
@@ -1 +0,0 @@
1
- .low-code-iframe[data-v-c5870bec]{padding:0;margin:0;border:none;outline:none;height:100%;width:100%;min-height:100px;min-width:100px}