@das-fed/utils 7.0.5-test.1 → 7.0.5-test.11

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 (89) hide show
  1. package/api-services/i18n/index.js.gz +0 -0
  2. package/api-services/index.js +560 -541
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/app-manage/index.js +880 -843
  5. package/api-services/modules/app-manage/index.js.gz +0 -0
  6. package/api-services/modules/authentication/index.js +350 -331
  7. package/api-services/modules/authentication/index.js.gz +0 -0
  8. package/api-services/modules/bems/index.js +837 -836
  9. package/api-services/modules/bems/index.js.gz +0 -0
  10. package/api-services/modules/contract/index.js +350 -331
  11. package/api-services/modules/contract/index.js.gz +0 -0
  12. package/api-services/modules/duty-manage/index.js +356 -337
  13. package/api-services/modules/duty-manage/index.js.gz +0 -0
  14. package/api-services/modules/enterpriseright/index.js +350 -331
  15. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  16. package/api-services/modules/file/index.js +960 -959
  17. package/api-services/modules/file/index.js.gz +0 -0
  18. package/api-services/modules/gateway-edge/index.js +350 -331
  19. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  20. package/api-services/modules/index.js +1004 -1003
  21. package/api-services/modules/index.js.gz +0 -0
  22. package/api-services/modules/iot/index.js +865 -846
  23. package/api-services/modules/iot/index.js.gz +0 -0
  24. package/api-services/modules/justauth/index.js +889 -888
  25. package/api-services/modules/justauth/index.js.gz +0 -0
  26. package/api-services/modules/knowledge/index.js +350 -331
  27. package/api-services/modules/knowledge/index.js.gz +0 -0
  28. package/api-services/modules/link/index.js +834 -833
  29. package/api-services/modules/link/index.js.gz +0 -0
  30. package/api-services/modules/permission/index.js +871 -838
  31. package/api-services/modules/permission/index.js.gz +0 -0
  32. package/api-services/modules/platformManage/index.js +350 -331
  33. package/api-services/modules/platformManage/index.js.gz +0 -0
  34. package/api-services/modules/portal/index.js +834 -833
  35. package/api-services/modules/portal/index.js.gz +0 -0
  36. package/api-services/modules/space-manage/index.js +834 -833
  37. package/api-services/modules/space-manage/index.js.gz +0 -0
  38. package/api-services/modules/super-admin/index.js +849 -848
  39. package/api-services/modules/super-admin/index.js.gz +0 -0
  40. package/api-services/modules/supplier/index.js +352 -333
  41. package/api-services/modules/supplier/index.js.gz +0 -0
  42. package/api-services/modules/supplychain-manage/index.js +350 -331
  43. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  44. package/api-services/modules/systemConfiguration/index.js +350 -331
  45. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  46. package/api-services/modules/tool/index.js +834 -833
  47. package/api-services/modules/tool/index.js.gz +0 -0
  48. package/api-services/src/create-service/index.js +845 -840
  49. package/api-services/src/create-service/index.js.gz +0 -0
  50. package/common-info/getInfoFromUrl/index.js.gz +0 -0
  51. package/common-info/index.js +13 -12
  52. package/common-info/index.js.gz +0 -0
  53. package/common-info/set-personal-info/index.d.ts +1 -1
  54. package/common-info/set-personal-info/index.js +253 -237
  55. package/common-info/set-personal-info/index.js.gz +0 -0
  56. package/common-info/type.d.ts +2 -0
  57. package/common-tools/extract-file-name/index.js +566 -550
  58. package/common-tools/extract-file-name/index.js.gz +0 -0
  59. package/common-tools/get-url-params/index.d.ts +7 -0
  60. package/common-tools/get-url-params/index.js +45 -38
  61. package/common-tools/get-url-params/index.js.gz +0 -0
  62. package/common-tools/obj-tools/index.js +1 -1
  63. package/common-tools/platform-tools/index.d.ts +8 -3
  64. package/common-tools/platform-tools/index.js +35 -16
  65. package/common-tools/platform-tools/index.js.gz +0 -0
  66. package/create-api-service/index.js +350 -331
  67. package/create-api-service/index.js.gz +0 -0
  68. package/create-api-service/sso/authorizer.d.ts +1 -0
  69. package/create-api-service/sso/index.d.ts +7 -5
  70. package/create-api-service/sso/index.js +908 -815
  71. package/create-api-service/sso/index.js.gz +0 -0
  72. package/create-api-service/sso/utils.d.ts +2 -0
  73. package/curring-http/index.js +582 -566
  74. package/curring-http/index.js.gz +0 -0
  75. package/directive/auth/index.js.gz +0 -0
  76. package/esm-map.json +2 -1
  77. package/hooks/use-get-auth/index.js.gz +0 -0
  78. package/nextTiken/index.js.gz +0 -0
  79. package/package.json +4 -4
  80. package/pinyin-first-character/index.js.gz +0 -0
  81. package/process-engine-info/index.js +8 -7
  82. package/style/index.js +1 -1
  83. package/style/index.js.gz +0 -0
  84. package/token-tools/index.d.ts +3 -1
  85. package/token-tools/index.js +80 -8
  86. package/token-tools/index.js.gz +0 -0
  87. package/use-low-code/index.js.gz +0 -0
  88. package/vue/hooks/use-model-value/index.d.ts +5 -1
  89. package/webSocket-service/index.js.gz +0 -0
Binary file
Binary file
package/esm-map.json CHANGED
@@ -142,5 +142,6 @@
142
142
  "analyApi": "/api-services/modules/iot/index",
143
143
  "calcTextWidth": "/common-tools/calc-text-width/index",
144
144
  "getFileExtension": "/common-tools/get-file-extension/index",
145
- "getLanguages": "/common-info/index"
145
+ "getLanguages": "/common-info/index",
146
+ "appendQueryParams": "/common-tools/get-url-params/index"
146
147
  }
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@das-fed/utils",
3
- "version": "7.0.5-test.1",
3
+ "version": "7.0.5-test.11",
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": "7.0.5-test.1",
12
+ "@das-fed/utils": "7.0.5-test.11",
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": "7.0.5-test.1",
25
- "@das-fed/web": "7.0.5-test.1",
24
+ "@das-fed/cli": "7.0.5-test.11",
25
+ "@das-fed/web": "7.0.5-test.11",
26
26
  "@types/js-cookie": "^3.0.6",
27
27
  "@types/lodash-es": "^4.17.12",
28
28
  "@types/qs": "^6.9.15",
Binary file
@@ -1,15 +1,16 @@
1
- const s = (e) => {
2
- sessionStorage.setItem("hotentToken", e.accessToken || ""), sessionStorage.setItem("currentUser", JSON.stringify({ token: e.accessToken || "" }));
3
- }, o = () => {
1
+ const o = (e) => {
2
+ var s;
3
+ (s = window.webConfig) != null && s.disableSaveToken || (sessionStorage.setItem("hotentToken", e.accessToken || ""), sessionStorage.setItem("currentUser", JSON.stringify({ token: e.accessToken || "" })));
4
+ }, n = () => {
4
5
  sessionStorage.removeItem("hotentToken"), sessionStorage.removeItem("currentUser");
5
6
  }, t = (e) => {
6
7
  sessionStorage.setItem("project", e);
7
- }, n = () => {
8
+ }, r = () => {
8
9
  sessionStorage.removeItem("project");
9
10
  };
10
11
  export {
11
- n as removeProcessEngineProject,
12
- o as removeProcessEngineToken,
12
+ r as removeProcessEngineProject,
13
+ n as removeProcessEngineToken,
13
14
  t as setProcessEngineProject,
14
- s as setProcessEngineToken
15
+ o as setProcessEngineToken
15
16
  };
package/style/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/shared v3.5.13
2
+ * @vue/shared v3.5.18
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
@@ -2,6 +2,7 @@ declare const accessTokenExpiredAtKey = "accessTokenExpiredAt";
2
2
  declare const refreshTokenKey = "refreshToken";
3
3
  declare const redirectUriKey = "redirectUri";
4
4
  declare const accessTokenInfoKey = "tokenInfo";
5
+ declare const expKey = "exp";
5
6
  /**
6
7
  * 获取token
7
8
  * @returns token
@@ -10,7 +11,8 @@ export declare const getAccessToken: () => string;
10
11
  /**
11
12
  * 获取tokenInfo相关信息
12
13
  */
13
- export declare const getAccessTokenInfo: (key: typeof accessTokenExpiredAtKey | typeof refreshTokenKey | typeof redirectUriKey | typeof accessTokenInfoKey) => any;
14
+ type TokenInfoKey = typeof accessTokenExpiredAtKey | typeof refreshTokenKey | typeof redirectUriKey | typeof accessTokenInfoKey | typeof expKey;
15
+ export declare const getAccessTokenInfo: (key: TokenInfoKey) => any;
14
16
  /**
15
17
  * 存入token、tokenInfo
16
18
  * @param token
@@ -1,11 +1,83 @@
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
- localStorage.removeItem(o), localStorage.removeItem(r), localStorage.removeItem(c), localStorage.removeItem(s);
1
+ /*! js-cookie v3.0.5 | MIT */
2
+ function g(e) {
3
+ for (var t = 1; t < arguments.length; t++) {
4
+ var n = arguments[t];
5
+ for (var l in n)
6
+ e[l] = n[l];
7
+ }
8
+ return e;
9
+ }
10
+ var S = {
11
+ read: function(e) {
12
+ return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
13
+ },
14
+ write: function(e) {
15
+ return encodeURIComponent(e).replace(
16
+ /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
17
+ decodeURIComponent
18
+ );
19
+ }
20
+ };
21
+ function p(e, t) {
22
+ function n(r, i, o) {
23
+ if (!(typeof document > "u")) {
24
+ o = g({}, t, o), typeof o.expires == "number" && (o.expires = new Date(Date.now() + o.expires * 864e5)), o.expires && (o.expires = o.expires.toUTCString()), r = encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
25
+ var c = "";
26
+ for (var s in o)
27
+ o[s] && (c += "; " + s, o[s] !== !0 && (c += "=" + o[s].split(";")[0]));
28
+ return document.cookie = r + "=" + e.write(i, r) + c;
29
+ }
30
+ }
31
+ function l(r) {
32
+ if (!(typeof document > "u" || arguments.length && !r)) {
33
+ for (var i = document.cookie ? document.cookie.split("; ") : [], o = {}, c = 0; c < i.length; c++) {
34
+ var s = i[c].split("="), k = s.slice(1).join("=");
35
+ try {
36
+ var f = decodeURIComponent(s[0]);
37
+ if (o[f] = e.read(k, f), r === f)
38
+ break;
39
+ } catch {
40
+ }
41
+ }
42
+ return r ? o[r] : o;
43
+ }
44
+ }
45
+ return Object.create(
46
+ {
47
+ set: n,
48
+ get: l,
49
+ remove: function(r, i) {
50
+ n(
51
+ r,
52
+ "",
53
+ g({}, i, {
54
+ expires: -1
55
+ })
56
+ );
57
+ },
58
+ withAttributes: function(r) {
59
+ return p(this.converter, g({}, this.attributes, r));
60
+ },
61
+ withConverter: function(r) {
62
+ return p(g({}, this.converter, r), this.attributes);
63
+ }
64
+ },
65
+ {
66
+ attributes: { value: Object.freeze(t) },
67
+ converter: { value: Object.freeze(e) }
68
+ }
69
+ );
70
+ }
71
+ var d = p(S, { path: "/" });
72
+ const a = "accessToken", m = "accessTokenExpiredAt", v = "refreshToken", u = "redirectUri", I = "exp", T = "csrf-token", x = () => localStorage.getItem(a) ?? d.get(a) ?? sessionStorage.getItem(a) ?? "", C = (e) => localStorage.getItem(e) ?? d.get(e) ?? sessionStorage.getItem(e) ?? "", U = (e, t = {}) => {
73
+ var n;
74
+ (n = window.webConfig) != null && n.disableSaveToken || (localStorage.setItem(a, e), localStorage.setItem(m, t.accessTokenExpiredAt ?? 0), localStorage.setItem(I, t.exp ?? 0), localStorage.setItem(v, t.refreshToken ?? 0), t.redirectUri && localStorage.setItem(u, t.redirectUri));
75
+ }, A = () => {
76
+ localStorage.removeItem(a), localStorage.removeItem(m), localStorage.removeItem(I), localStorage.removeItem(v), localStorage.removeItem(u), localStorage.removeItem(T);
5
77
  };
6
78
  export {
7
- a as getAccessToken,
8
- n as getAccessTokenInfo,
9
- g as removeAccessToken,
10
- l as setAccessToken
79
+ x as getAccessToken,
80
+ C as getAccessTokenInfo,
81
+ A as removeAccessToken,
82
+ U as setAccessToken
11
83
  };
Binary file
Binary file
@@ -1,5 +1,9 @@
1
1
  import { Ref } from 'vue';
2
2
 
3
3
  /** 简化组件内使用modelValue时的watch过程 */
4
- declare const useModelValue: (props: any, propKey: string) => Ref;
4
+ declare const useModelValue: (
5
+ /** 组件的props */
6
+ props: any,
7
+ /** 组件props需要使用modelValue的key */
8
+ propKey: string) => Ref;
5
9
  export { useModelValue };
Binary file