@das-fed/utils 6.4.0-test.3.2 → 6.4.0-test.31

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 (93) hide show
  1. package/api-services/i18n/index.d.ts +53 -0
  2. package/api-services/i18n/index.js +27 -0
  3. package/api-services/i18n/index.js.gz +0 -0
  4. package/api-services/index.js +1589 -1395
  5. package/api-services/index.js.gz +0 -0
  6. package/api-services/modules/app-manage/index.js +1390 -1226
  7. package/api-services/modules/app-manage/index.js.gz +0 -0
  8. package/api-services/modules/authentication/index.js +1390 -1226
  9. package/api-services/modules/authentication/index.js.gz +0 -0
  10. package/api-services/modules/bems/index.js +1393 -1229
  11. package/api-services/modules/bems/index.js.gz +0 -0
  12. package/api-services/modules/contract/index.js +1390 -1226
  13. package/api-services/modules/contract/index.js.gz +0 -0
  14. package/api-services/modules/duty-manage/index.js +1349 -1203
  15. package/api-services/modules/duty-manage/index.js.gz +0 -0
  16. package/api-services/modules/enterpriseright/index.js +1390 -1226
  17. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  18. package/api-services/modules/file/index.js +1526 -1357
  19. package/api-services/modules/file/index.js.gz +0 -0
  20. package/api-services/modules/gateway-edge/index.js +1390 -1226
  21. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  22. package/api-services/modules/index.js +1526 -1357
  23. package/api-services/modules/index.js.gz +0 -0
  24. package/api-services/modules/iot/index.d.ts +1 -0
  25. package/api-services/modules/iot/index.js +1422 -1257
  26. package/api-services/modules/iot/index.js.gz +0 -0
  27. package/api-services/modules/justauth/index.js +1408 -1244
  28. package/api-services/modules/justauth/index.js.gz +0 -0
  29. package/api-services/modules/knowledge/index.js +1401 -1237
  30. package/api-services/modules/knowledge/index.js.gz +0 -0
  31. package/api-services/modules/link/index.js +1390 -1226
  32. package/api-services/modules/link/index.js.gz +0 -0
  33. package/api-services/modules/permission/index.js +1390 -1226
  34. package/api-services/modules/permission/index.js.gz +0 -0
  35. package/api-services/modules/platformManage/index.js +1354 -1208
  36. package/api-services/modules/platformManage/index.js.gz +0 -0
  37. package/api-services/modules/portal/index.js +1390 -1226
  38. package/api-services/modules/portal/index.js.gz +0 -0
  39. package/api-services/modules/space-manage/index.js +1390 -1226
  40. package/api-services/modules/space-manage/index.js.gz +0 -0
  41. package/api-services/modules/super-admin/index.js +1381 -1217
  42. package/api-services/modules/super-admin/index.js.gz +0 -0
  43. package/api-services/modules/supplier/index.js +1392 -1228
  44. package/api-services/modules/supplier/index.js.gz +0 -0
  45. package/api-services/modules/supplychain-manage/index.js +1390 -1226
  46. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  47. package/api-services/modules/systemConfiguration/index.js +1390 -1226
  48. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  49. package/api-services/modules/tool/index.js +1390 -1226
  50. package/api-services/modules/tool/index.js.gz +0 -0
  51. package/api-services/src/create-service/index.js +1390 -1226
  52. package/api-services/src/create-service/index.js.gz +0 -0
  53. package/common-info/index.d.ts +9 -3
  54. package/common-info/index.js +100 -53
  55. package/common-info/index.js.gz +0 -0
  56. package/common-info/set-personal-info/index.js +446 -440
  57. package/common-info/set-personal-info/index.js.gz +0 -0
  58. package/common-info/type.d.ts +99 -5
  59. package/common-tools/calc-text-width/index.d.ts +1 -0
  60. package/common-tools/calc-text-width/index.js +10 -0
  61. package/common-tools/extract-file-name/index.js +737 -738
  62. package/common-tools/extract-file-name/index.js.gz +0 -0
  63. package/common-tools/get-file-extension/index.d.ts +6 -0
  64. package/common-tools/get-file-extension/index.js +7 -0
  65. package/common-tools/index.d.ts +2 -0
  66. package/common-tools/index.js +2 -0
  67. package/common-tools/nest-tree-format/index.d.ts +1 -1
  68. package/common-tools/nest-tree-format/index.js +15 -15
  69. package/create-api-service/i18n/index.d.ts +33 -0
  70. package/create-api-service/i18n/index.js +15 -0
  71. package/create-api-service/index.js +1390 -1226
  72. package/create-api-service/index.js.gz +0 -0
  73. package/create-api-service/sso/index.d.ts +0 -2
  74. package/create-api-service/sso/index.js +482 -479
  75. package/create-api-service/sso/index.js.gz +0 -0
  76. package/curring-http/index.js +575 -575
  77. package/curring-http/index.js.gz +0 -0
  78. package/directive/hoverInside/index.d.ts +1 -1
  79. package/dom-check-in/index.js +2 -2
  80. package/dom-watcher/index.d.ts +1 -1
  81. package/esm-map.json +6 -1
  82. package/package.json +4 -4
  83. package/pinyin-first-character/index.js +22 -22
  84. package/pinyin-first-character/index.js.gz +0 -0
  85. package/style/index.js +1 -1
  86. package/style/index.js.gz +0 -0
  87. package/style/math.d.ts +4 -4
  88. package/token-tools/index.d.ts +6 -1
  89. package/token-tools/index.js +6 -6
  90. package/use-low-code/index.js +2 -2
  91. package/use-low-code/index.js.gz +0 -0
  92. package/i18n-collection/en.js +0 -21
  93. package/i18n-collection/zh-CN.js +0 -21
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>;
@@ -1,7 +1,7 @@
1
1
  const d = (e) => {
2
2
  const t = window.event;
3
- let i = Number(t.clientX), n = Number(t.clientY), l = Number(e.getBoundingClientRect().left), u = Number(l + e.clientWidth), r = Number(e.getBoundingClientRect().top), c = Number(r + e.clientHeight);
4
- return i > l && i < u && n > r && n < c;
3
+ let i = Number(t.clientX), n = Number(t.clientY), l = Number(e.getBoundingClientRect().left), r = Number(l + e.clientWidth), c = Number(e.getBoundingClientRect().top), u = Number(c + e.clientHeight);
4
+ return i > l && i < r && n > c && n < u;
5
5
  };
6
6
  export {
7
7
  d as domCheckIn
@@ -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
@@ -136,5 +136,10 @@
136
136
  "useKonva": "/dimple-canvas/use-dimple-canvas/core/konva/index",
137
137
  "setShowWatermark": "/common-tools/platform-tools/index",
138
138
  "extractFilename": "/common-tools/extract-file-name/index",
139
- "setBrowseTitle": "/common-tools/update-browser-title/index"
139
+ "setBrowseTitle": "/common-tools/update-browser-title/index",
140
+ "getPersonalConfig": "/common-info/index",
141
+ "getProjectMessage": "/common-info/index",
142
+ "analyApi": "/api-services/modules/iot/index",
143
+ "calcTextWidth": "/common-tools/calc-text-width/index",
144
+ "getFileExtension": "/common-tools/get-file-extension/index"
140
145
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@das-fed/utils",
3
- "version": "6.4.0-test.3.2",
3
+ "version": "6.4.0-test.31",
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.3.2",
12
+ "@das-fed/utils": "6.4.0-test.31",
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.3.2",
25
- "@das-fed/web": "6.4.0-test.3.2",
24
+ "@das-fed/cli": "6.4.0-test.31",
25
+ "@das-fed/web": "6.4.0-test.31",
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,3 +1,7 @@
1
+ declare const accessTokenExpiredAtKey = "accessTokenExpiredAt";
2
+ declare const refreshTokenKey = "refreshToken";
3
+ declare const redirectUriKey = "redirectUri";
4
+ declare const accessTokenInfoKey = "tokenInfo";
1
5
  /**
2
6
  * 获取token
3
7
  * @returns token
@@ -6,7 +10,7 @@ export declare const getAccessToken: () => string;
6
10
  /**
7
11
  * 获取tokenInfo相关信息
8
12
  */
9
- export declare const getAccessTokenInfo: (key: "accessTokenExpiredAt" | "refreshToken" | "redirectUri") => any;
13
+ export declare const getAccessTokenInfo: (key: typeof accessTokenExpiredAtKey | typeof refreshTokenKey | typeof redirectUriKey | typeof accessTokenInfoKey) => any;
10
14
  /**
11
15
  * 存入token、tokenInfo
12
16
  * @param token
@@ -14,3 +18,4 @@ export declare const getAccessTokenInfo: (key: "accessTokenExpiredAt" | "refresh
14
18
  */
15
19
  export declare const setAccessToken: (token: string, info?: any) => void;
16
20
  export declare const removeAccessToken: () => void;
21
+ export {};
@@ -1,11 +1,11 @@
1
- const o = "accessToken", r = "accessTokenExpiredAt", c = "refreshToken", s = "redirectUri", a = () => localStorage.getItem(o) ?? "", l = (t) => localStorage.getItem(t) ?? "", n = (t, e = {}) => {
2
- localStorage.setItem(o, t), localStorage.setItem(r, e.accessTokenExpiredAt ?? "0"), localStorage.setItem(c, e.refreshToken ?? ""), e.redirectUri && localStorage.setItem(s, e.redirectUri);
3
- }, m = () => {
1
+ const o = "accessToken", r = "accessTokenExpiredAt", c = "refreshToken", s = "redirectUri", a = () => localStorage.getItem(o) ?? sessionStorage.getItem(o) ?? "", n = (e) => localStorage.getItem(e) ?? sessionStorage.getItem(e) ?? "", l = (e, t = {}) => {
2
+ localStorage.setItem(o, e), localStorage.setItem(r, t.accessTokenExpiredAt ?? "0"), localStorage.setItem(c, t.refreshToken ?? ""), t.redirectUri && localStorage.setItem(s, t.redirectUri);
3
+ }, g = () => {
4
4
  localStorage.removeItem(o), localStorage.removeItem(r), localStorage.removeItem(c), localStorage.removeItem(s);
5
5
  };
6
6
  export {
7
7
  a as getAccessToken,
8
- l as getAccessTokenInfo,
9
- m as removeAccessToken,
10
- n as setAccessToken
8
+ n as getAccessTokenInfo,
9
+ g as removeAccessToken,
10
+ l as setAccessToken
11
11
  };
@@ -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
@@ -1,21 +0,0 @@
1
- export default {
2
- 导入进度: "",
3
- 上传失败: "",
4
- 导入成功: "",
5
- 导出进度: "",
6
- 导出: "",
7
- 导入: "",
8
- 失败: "",
9
- 部分数据校验不通过: "",
10
- 请下载附件并修改: "",
11
- 重新导入: "",
12
- 成功: "",
13
- 部分: "",
14
- 参数校验错误: "",
15
- 接口地址未找到: "",
16
- 服务器内部错误: "",
17
- 解析错误: "",
18
- 网络异常: "",
19
- 请检查您的网络情况: "",
20
- 请求配置异常: "",
21
- };
@@ -1,21 +0,0 @@
1
- export default {
2
- 导入进度: "导入进度",
3
- 上传失败: "上传失败",
4
- 导入成功: "导入成功",
5
- 导出进度: "导出进度",
6
- 导出: "导出",
7
- 导入: "导入",
8
- 失败: "失败",
9
- 部分数据校验不通过: "部分数据校验不通过",
10
- 请下载附件并修改: "请下载附件并修改",
11
- 重新导入: "重新导入",
12
- 成功: "成功",
13
- 部分: "部分",
14
- 参数校验错误: "参数校验错误",
15
- 接口地址未找到: "接口地址未找到",
16
- 服务器内部错误: "服务器内部错误",
17
- 解析错误: "解析错误",
18
- 网络异常: "网络异常",
19
- 请检查您的网络情况: "请检查您的网络情况",
20
- 请求配置异常: "请求配置异常",
21
- };