@das-fed/utils 6.4.0-test.8.2 → 7.0.0

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 (84) hide show
  1. package/api-services/i18n/index.d.ts +7 -17
  2. package/api-services/i18n/index.js +15 -13
  3. package/api-services/i18n/index.js.gz +0 -0
  4. package/api-services/index.js +1550 -1415
  5. package/api-services/index.js.gz +0 -0
  6. package/api-services/modules/app-manage/index.js +1341 -1206
  7. package/api-services/modules/app-manage/index.js.gz +0 -0
  8. package/api-services/modules/authentication/index.js +1341 -1206
  9. package/api-services/modules/authentication/index.js.gz +0 -0
  10. package/api-services/modules/bems/index.js +1344 -1209
  11. package/api-services/modules/bems/index.js.gz +0 -0
  12. package/api-services/modules/contract/index.js +1341 -1206
  13. package/api-services/modules/contract/index.js.gz +0 -0
  14. package/api-services/modules/duty-manage/index.js +1361 -1240
  15. package/api-services/modules/duty-manage/index.js.gz +0 -0
  16. package/api-services/modules/enterpriseright/index.js +1351 -1234
  17. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  18. package/api-services/modules/file/index.js +1510 -1377
  19. package/api-services/modules/file/index.js.gz +0 -0
  20. package/api-services/modules/gateway-edge/index.js +1341 -1206
  21. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  22. package/api-services/modules/index.js +1501 -1368
  23. package/api-services/modules/index.js.gz +0 -0
  24. package/api-services/modules/iot/index.js +1384 -1249
  25. package/api-services/modules/iot/index.js.gz +0 -0
  26. package/api-services/modules/justauth/index.js +1373 -1256
  27. package/api-services/modules/justauth/index.js.gz +0 -0
  28. package/api-services/modules/knowledge/index.js +1341 -1206
  29. package/api-services/modules/knowledge/index.js.gz +0 -0
  30. package/api-services/modules/link/index.js +1341 -1206
  31. package/api-services/modules/link/index.js.gz +0 -0
  32. package/api-services/modules/permission/index.js +1341 -1206
  33. package/api-services/modules/permission/index.js.gz +0 -0
  34. package/api-services/modules/platformManage/index.js +1355 -1220
  35. package/api-services/modules/platformManage/index.js.gz +0 -0
  36. package/api-services/modules/portal/index.js +1341 -1206
  37. package/api-services/modules/portal/index.js.gz +0 -0
  38. package/api-services/modules/space-manage/index.js +1341 -1206
  39. package/api-services/modules/space-manage/index.js.gz +0 -0
  40. package/api-services/modules/super-admin/index.js +1329 -1194
  41. package/api-services/modules/super-admin/index.js.gz +0 -0
  42. package/api-services/modules/supplier/index.js +1353 -1236
  43. package/api-services/modules/supplier/index.js.gz +0 -0
  44. package/api-services/modules/supplychain-manage/index.js +1341 -1206
  45. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  46. package/api-services/modules/systemConfiguration/index.js +1341 -1206
  47. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  48. package/api-services/modules/tool/index.js +1341 -1206
  49. package/api-services/modules/tool/index.js.gz +0 -0
  50. package/api-services/src/create-service/index.js +1354 -1237
  51. package/api-services/src/create-service/index.js.gz +0 -0
  52. package/common-info/index.d.ts +2 -0
  53. package/common-info/index.js +20 -19
  54. package/common-info/index.js.gz +0 -0
  55. package/common-info/set-personal-info/index.js +433 -431
  56. package/common-info/set-personal-info/index.js.gz +0 -0
  57. package/common-tools/calc-text-width/index.d.ts +1 -0
  58. package/common-tools/calc-text-width/index.js +10 -0
  59. package/common-tools/extract-file-name/index.js +737 -738
  60. package/common-tools/extract-file-name/index.js.gz +0 -0
  61. package/common-tools/get-file-extension/index.d.ts +6 -0
  62. package/common-tools/get-file-extension/index.js +7 -0
  63. package/common-tools/index.d.ts +2 -0
  64. package/common-tools/index.js +2 -0
  65. package/common-tools/nest-tree-format/index.d.ts +1 -1
  66. package/common-tools/nest-tree-format/index.js +15 -15
  67. package/create-api-service/index.d.ts +3 -1
  68. package/create-api-service/index.js +1344 -1209
  69. package/create-api-service/index.js.gz +0 -0
  70. package/create-api-service/sso/index.js +378 -378
  71. package/create-api-service/sso/index.js.gz +0 -0
  72. package/curring-http/index.js +575 -575
  73. package/curring-http/index.js.gz +0 -0
  74. package/directive/hoverInside/index.d.ts +1 -1
  75. package/dom-watcher/index.d.ts +1 -1
  76. package/esm-map.json +4 -1
  77. package/package.json +4 -4
  78. package/pinyin-first-character/index.js +22 -22
  79. package/pinyin-first-character/index.js.gz +0 -0
  80. package/style/index.js +1 -1
  81. package/style/index.js.gz +0 -0
  82. package/style/math.d.ts +4 -4
  83. package/use-low-code/index.js +2 -2
  84. package/use-low-code/index.js.gz +0 -0
Binary file
@@ -1,6 +1,6 @@
1
1
  import { Directive } from 'vue';
2
2
 
3
3
  /**
4
- * 指令:鼠标移入移除dom事件
4
+ * 指令:鼠标移入移出dom事件
5
5
  */
6
6
  export declare const vHoverInside: Directive<HTMLElement>;
@@ -5,7 +5,7 @@ interface Config {
5
5
  attributes?: boolean;
6
6
  /** 要监视的特定属性名称的数组,如果未包含此属性,则对所有属性的更改都会触发变动通知; */
7
7
  attributeFilter?: any[];
8
- /** 在attributes属性已经设为true的前提下, 将发生变化的属性节点之前的属性值记录下来(记录在MutationRecord对象的oldValue属性中); */
8
+ /** 在attributes属性已经设为true的前提下, 将发生变化的属性节点之前的属性值记录下来(记录在MutationRecord对象的oldValue属性中); */
9
9
  attributeOldValue?: boolean;
10
10
  /** 在characterData属性已经设为true的前提下,将发生变化characterData节点之前的文本内容记录下来(记录在MutationRecord对象的oldValue属性中); */
11
11
  characterDataOldValue?: boolean;
package/esm-map.json CHANGED
@@ -139,5 +139,8 @@
139
139
  "setBrowseTitle": "/common-tools/update-browser-title/index",
140
140
  "getPersonalConfig": "/common-info/index",
141
141
  "getProjectMessage": "/common-info/index",
142
- "analyApi": "/api-services/modules/iot/index"
142
+ "analyApi": "/api-services/modules/iot/index",
143
+ "calcTextWidth": "/common-tools/calc-text-width/index",
144
+ "getFileExtension": "/common-tools/get-file-extension/index",
145
+ "getLanguages": "/common-info/index"
143
146
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@das-fed/utils",
3
- "version": "6.4.0-test.8.2",
3
+ "version": "7.0.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -9,7 +9,7 @@
9
9
  "license": "ISC",
10
10
  "dependencies": {
11
11
  "@antv/x6": "^2.18.1",
12
- "@das-fed/utils": "6.4.0-test.8.2",
12
+ "@das-fed/utils": "7.0.0",
13
13
  "@vue/shared": "^3.4.21",
14
14
  "@vueuse/core": "^9.6.0",
15
15
  "axios": "^1.6.7",
@@ -21,8 +21,8 @@
21
21
  "vue": "^3.4.21"
22
22
  },
23
23
  "devDependencies": {
24
- "@das-fed/cli": "6.4.0-test.8.2",
25
- "@das-fed/web": "6.4.0-test.8.2",
24
+ "@das-fed/cli": "7.0.0",
25
+ "@das-fed/web": "7.0.0",
26
26
  "@types/js-cookie": "^3.0.6",
27
27
  "@types/lodash-es": "^4.17.12",
28
28
  "@types/qs": "^6.9.15",
@@ -18867,11 +18867,11 @@ const Z = nn(), gn = Object.keys(Z).map((n) => ({
18867
18867
  }, un = Object.keys(O);
18868
18868
  function sn(n, i, g) {
18869
18869
  if (un.indexOf(n) === -1)
18870
- return e(n);
18871
- if (i === g && i && e(i) !== i)
18872
- return f(e(n));
18870
+ return r(n);
18871
+ if (i === g && i && r(i) !== i)
18872
+ return f(r(n));
18873
18873
  if (g && !hn[n].includes(g)) {
18874
- const h = e(g);
18874
+ const h = r(g);
18875
18875
  if (h !== g) {
18876
18876
  const u = m(h), s = O[n];
18877
18877
  for (let z in s)
@@ -18889,7 +18889,7 @@ function on(n, i) {
18889
18889
  return !i || !x.get(i) ? "tóng" : x.get(i).split(" ")[0];
18890
18890
  }
18891
18891
  function C(n, i, g) {
18892
- return on(n, i) || zn(n, i) || sn(n, i, g) || e(n);
18892
+ return on(n, i) || zn(n, i) || sn(n, i, g) || r(n);
18893
18893
  }
18894
18894
  const a = {
18895
18895
  南宫: "nán gōng",
@@ -23553,7 +23553,7 @@ function A(n, i) {
23553
23553
  function bn(n) {
23554
23554
  return n.priority === j.Custom ? -(n.length * n.length * 1e5) : n.priority === j.Surname ? -(n.length * n.length * 100) : 1;
23555
23555
  }
23556
- function en(n, i) {
23556
+ function rn(n, i) {
23557
23557
  const g = [];
23558
23558
  let h = n.length - 1, u = n[h];
23559
23559
  for (let s = i - 1; s >= 0; s--) {
@@ -23574,7 +23574,7 @@ function en(n, i) {
23574
23574
  }
23575
23575
  return g[0].patterns.reverse();
23576
23576
  }
23577
- function rn(n, i) {
23577
+ function en(n, i) {
23578
23578
  return !(i.index + i.length <= n.index || i.priority > n.priority || i.priority === n.priority && i.length > n.length);
23579
23579
  }
23580
23580
  function wn(n) {
@@ -23582,7 +23582,7 @@ function wn(n) {
23582
23582
  for (let g = n.length - 1; g >= 0; ) {
23583
23583
  const { index: h } = n[g];
23584
23584
  let u = g - 1;
23585
- for (; u >= 0 && rn(n[g], n[u]); )
23585
+ for (; u >= 0 && en(n[g], n[u]); )
23586
23586
  u--;
23587
23587
  (u < 0 || n[u].index + n[u].length <= h) && i.push(n[g]), g = u;
23588
23588
  }
@@ -23684,7 +23684,7 @@ class qn {
23684
23684
  }
23685
23685
  search(i, g, h = 2) {
23686
23686
  const u = this.match(i, g);
23687
- return h === 1 ? wn(u) : h === 3 ? en(u, d(i)) : xn(u, d(i));
23687
+ return h === 1 ? wn(u) : h === 3 ? rn(u, d(i)) : xn(u, d(i));
23688
23688
  }
23689
23689
  }
23690
23690
  const fn = [
@@ -23696,7 +23696,7 @@ const fn = [
23696
23696
  ...yn
23697
23697
  ], U = new qn();
23698
23698
  U.build(fn);
23699
- const mn = new F(), pn = () => mn, e = (n) => {
23699
+ const mn = new F(), pn = () => mn, r = (n) => {
23700
23700
  const i = x.get(n);
23701
23701
  return i ? i.split(" ")[0] : n;
23702
23702
  }, an = (n, i, g, h) => {
@@ -23780,7 +23780,7 @@ const mn = new F(), pn = () => mn, e = (n) => {
23780
23780
  initial: g.join(" ")
23781
23781
  // 声母
23782
23782
  };
23783
- }, r = (n) => {
23783
+ }, e = (n) => {
23784
23784
  const { final: i } = q(n);
23785
23785
  let g = "", h = "", u = "";
23786
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 };
@@ -23794,11 +23794,11 @@ const mn = new F(), pn = () => mn, e = (n) => {
23794
23794
  return g.forEach((s, z) => {
23795
23795
  u.push(`${s}${h[z]}`);
23796
23796
  }), u.join(" ");
23797
- }, B = (n) => {
23798
- const i = [];
23799
- return n.split(" ").forEach((h) => {
23800
- i.push(h[0]);
23801
- }), i.join(" ");
23797
+ }, B = (n, i) => {
23798
+ const g = [];
23799
+ return n.split(" ").forEach((u) => {
23800
+ g.push(i ? u[0] : u);
23801
+ }), g.join(" ");
23802
23802
  }, Sn = (n) => typeof n == "string";
23803
23803
  function p(n, i) {
23804
23804
  return i instanceof RegExp ? i.test(n) : !0;
@@ -23836,22 +23836,22 @@ const Dn = (n, i) => {
23836
23836
  break;
23837
23837
  case "first":
23838
23838
  n.forEach((g) => {
23839
- g.result = B(g.result);
23839
+ g.result = B(g.result, g.isZh);
23840
23840
  });
23841
23841
  break;
23842
23842
  case "finalHead":
23843
23843
  n.forEach((g) => {
23844
- g.result = g.isZh ? r(g.result).head : "";
23844
+ g.result = g.isZh ? e(g.result).head : "";
23845
23845
  });
23846
23846
  break;
23847
23847
  case "finalBody":
23848
23848
  n.forEach((g) => {
23849
- g.result = g.isZh ? r(g.result).body : "";
23849
+ g.result = g.isZh ? e(g.result).body : "";
23850
23850
  });
23851
23851
  break;
23852
23852
  case "finalTail":
23853
23853
  n.forEach((g) => {
23854
- g.result = g.isZh ? r(g.result).tail : "";
23854
+ g.result = g.isZh ? e(g.result).tail : "";
23855
23855
  });
23856
23856
  break;
23857
23857
  }
@@ -23884,14 +23884,14 @@ const Dn = (n, i) => {
23884
23884
  });
23885
23885
  }
23886
23886
  return i.type === "array" ? n.map((h) => h.result) : i.type === "all" ? n.map((h) => {
23887
- const u = h.isZh ? h.result : "", { initial: s, final: z } = q(u), { 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 } = e(u);
23888
23888
  let c = [];
23889
23889
  return u !== "" && (c = [u].concat(W(h.origin, i.surname).filter((t) => t !== u))), {
23890
23890
  origin: h.origin,
23891
23891
  pinyin: u,
23892
23892
  initial: s,
23893
23893
  final: z,
23894
- first: h.isZh ? B(h.result) : "",
23894
+ first: B(h.result, h.isZh),
23895
23895
  finalHead: o,
23896
23896
  finalBody: l,
23897
23897
  finalTail: y,
Binary file
package/style/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/shared v3.5.11
2
+ * @vue/shared v3.5.13
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
package/style/index.js.gz CHANGED
Binary file
package/style/math.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  /** css中px字符串的数学运算 */
2
2
  declare const curringMath: (a: any) => {
3
- add: (b: any) => any;
4
- subtract: (b: any) => any;
5
- multiply: (b: any) => any;
6
- divide: (b: any) => any;
3
+ add: (b: any) => /*elided*/ any;
4
+ subtract: (b: any) => /*elided*/ any;
5
+ multiply: (b: any) => /*elided*/ any;
6
+ divide: (b: any) => /*elided*/ any;
7
7
  res: () => string;
8
8
  };
9
9
  export { curringMath };
@@ -1,4 +1,4 @@
1
- import { defineComponent as v, computed as u, onMounted as g, onBeforeUnmount as _, ref as L, openBlock as y, createElementBlock as h } from "vue";
1
+ import { defineComponent as v, computed as u, onMounted as g, onBeforeUnmount as _, ref as L, createElementBlock as y, openBlock as h } from "vue";
2
2
  const x = ["src"], b = /* @__PURE__ */ v({
3
3
  __name: "low-code-iframe",
4
4
  props: {
@@ -47,7 +47,7 @@ const x = ["src"], b = /* @__PURE__ */ v({
47
47
  e
48
48
  ));
49
49
  };
50
- return (e, o) => (y(), h("iframe", {
50
+ return (e, o) => (h(), y("iframe", {
51
51
  class: "low-code-iframe",
52
52
  id: "low-code-iframe",
53
53
  src: r.value,
Binary file