@das-fed/utils 6.4.0-dev.4 → 6.4.0-dev.41

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/index.js +1704 -1802
  2. package/api-services/index.js.gz +0 -0
  3. package/api-services/modules/app-manage/index.js +1935 -2034
  4. package/api-services/modules/app-manage/index.js.gz +0 -0
  5. package/api-services/modules/authentication/index.js +1935 -2034
  6. package/api-services/modules/authentication/index.js.gz +0 -0
  7. package/api-services/modules/bems/index.js +1938 -2037
  8. package/api-services/modules/bems/index.js.gz +0 -0
  9. package/api-services/modules/contract/index.js +1935 -2034
  10. package/api-services/modules/contract/index.js.gz +0 -0
  11. package/api-services/modules/duty-manage/index.js +1940 -2039
  12. package/api-services/modules/duty-manage/index.js.gz +0 -0
  13. package/api-services/modules/enterpriseright/index.js +1935 -2034
  14. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  15. package/api-services/modules/file/index.d.ts +1 -0
  16. package/api-services/modules/file/index.js +152 -430
  17. package/api-services/modules/file/index.js.gz +0 -0
  18. package/api-services/modules/gateway-edge/index.js +1935 -2034
  19. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  20. package/api-services/modules/index.js +1842 -1940
  21. package/api-services/modules/index.js.gz +0 -0
  22. package/api-services/modules/iot/index.js +1949 -2048
  23. package/api-services/modules/iot/index.js.gz +0 -0
  24. package/api-services/modules/justauth/index.js +1934 -2033
  25. package/api-services/modules/justauth/index.js.gz +0 -0
  26. package/api-services/modules/knowledge/index.js +1936 -2035
  27. package/api-services/modules/knowledge/index.js.gz +0 -0
  28. package/api-services/modules/link/index.js +1935 -2034
  29. package/api-services/modules/link/index.js.gz +0 -0
  30. package/api-services/modules/permission/index.js +1935 -2034
  31. package/api-services/modules/permission/index.js.gz +0 -0
  32. package/api-services/modules/platformManage/index.js +1942 -2041
  33. package/api-services/modules/platformManage/index.js.gz +0 -0
  34. package/api-services/modules/portal/index.js +1935 -2034
  35. package/api-services/modules/portal/index.js.gz +0 -0
  36. package/api-services/modules/space-manage/index.js +1935 -2034
  37. package/api-services/modules/space-manage/index.js.gz +0 -0
  38. package/api-services/modules/super-admin/index.js +1940 -2039
  39. package/api-services/modules/super-admin/index.js.gz +0 -0
  40. package/api-services/modules/supplier/index.js +1939 -2038
  41. package/api-services/modules/supplier/index.js.gz +0 -0
  42. package/api-services/modules/supplychain-manage/index.js +1935 -2034
  43. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  44. package/api-services/modules/systemConfiguration/index.js +1935 -2034
  45. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  46. package/api-services/modules/tool/index.js +1935 -2034
  47. package/api-services/modules/tool/index.js.gz +0 -0
  48. package/api-services/src/create-service/index.js +1937 -2036
  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 +4 -3
  52. package/common-info/index.js.gz +0 -0
  53. package/common-info/set-personal-info/index.js +837 -570
  54. package/common-info/set-personal-info/index.js.gz +0 -0
  55. package/common-info/type.d.ts +106 -104
  56. package/common-tools/extract-file-name/index.d.ts +1 -0
  57. package/common-tools/extract-file-name/index.js +1716 -0
  58. package/common-tools/extract-file-name/index.js.gz +0 -0
  59. package/common-tools/get-url-params/index.js.gz +0 -0
  60. package/common-tools/index.d.ts +2 -0
  61. package/common-tools/index.js +2 -0
  62. package/common-tools/platform-tools/index.d.ts +2 -1
  63. package/common-tools/platform-tools/index.js +16 -11
  64. package/common-tools/setHtmlMinWH/index.js +4 -8
  65. package/common-tools/update-browser-title/index.d.ts +1 -0
  66. package/common-tools/update-browser-title/index.js +12 -0
  67. package/common-tools/update-fav-icon/index.js +15 -14
  68. package/create-api-service/index.js +1937 -2036
  69. package/create-api-service/index.js.gz +0 -0
  70. package/create-api-service/sso/index.js +1193 -833
  71. package/create-api-service/sso/index.js.gz +0 -0
  72. package/curring-http/index.js +1364 -1097
  73. package/curring-http/index.js.gz +0 -0
  74. package/curring-http/type.d.ts +87 -87
  75. package/directive/auth/index.js.gz +0 -0
  76. package/esm-map.json +4 -2
  77. package/hooks/popup-manager/use-zindex/index.d.ts +0 -2
  78. package/hooks/popup-manager/use-zindex/index.js +7 -20
  79. package/hooks/use-get-auth/index.js.gz +0 -0
  80. package/nextTiken/index.js.gz +0 -0
  81. package/package.json +4 -4
  82. package/pinyin-first-character/index.js +19804 -20879
  83. package/pinyin-first-character/index.js.gz +0 -0
  84. package/style/index.js +4 -2
  85. package/style/index.js.gz +0 -0
  86. package/token-tools/index.d.ts +0 -5
  87. package/token-tools/index.js +8 -84
  88. package/use-low-code/index.js +11 -11
  89. package/use-low-code/index.js.gz +0 -0
  90. package/use-low-code/style.css +1 -1
  91. package/webSocket-service/index.js.gz +0 -0
  92. package/webSocket-service/type.d.ts +28 -28
  93. package/token-tools/index.js.gz +0 -0
Binary file
package/style/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/shared v3.4.21
2
+ * @vue/shared v3.5.11
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -8,7 +8,9 @@ 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((t) => t.replace(m, (e, r) => r ? r.toUpperCase() : "")), a = (t = "") => t.split(" ").filter((e) => !!e.trim()), h = (t, e) => {
11
+ }, m = /-(\w)/g, p = u(
12
+ (t) => t.replace(m, (e, r) => r ? r.toUpperCase() : "")
13
+ ), a = (t = "") => t.split(" ").filter((e) => !!e.trim()), h = (t, e) => {
12
14
  if (!t || !e) return !1;
13
15
  if (e.includes(" ")) throw new Error("className should not contain space.");
14
16
  return t.classList.contains(e);
package/style/index.js.gz CHANGED
Binary file
@@ -13,9 +13,4 @@ export declare const getAccessTokenInfo: (key: "accessTokenExpiredAt" | "refresh
13
13
  * @param info
14
14
  */
15
15
  export declare const setAccessToken: (token: string, info?: any) => void;
16
- /**
17
- * 删除token、tokenInfo
18
- */
19
16
  export declare const removeAccessToken: () => void;
20
- /** 清除所有的 cookie */
21
- export declare const clearAllCookies: () => void;
@@ -1,87 +1,11 @@
1
- /*! js-cookie v3.0.5 | MIT */
2
- function d(e) {
3
- for (var o = 1; o < arguments.length; o++) {
4
- var f = arguments[o];
5
- for (var p in f)
6
- e[p] = f[p];
7
- }
8
- return e;
9
- }
10
- var m = {
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 u(e, o) {
22
- function f(n, s, r) {
23
- if (!(typeof document > "u")) {
24
- r = d({}, o, r), typeof r.expires == "number" && (r.expires = new Date(Date.now() + r.expires * 864e5)), r.expires && (r.expires = r.expires.toUTCString()), n = encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
25
- var t = "";
26
- for (var i in r)
27
- r[i] && (t += "; " + i, r[i] !== !0 && (t += "=" + r[i].split(";")[0]));
28
- return document.cookie = n + "=" + e.write(s, n) + t;
29
- }
30
- }
31
- function p(n) {
32
- if (!(typeof document > "u" || arguments.length && !n)) {
33
- for (var s = document.cookie ? document.cookie.split("; ") : [], r = {}, t = 0; t < s.length; t++) {
34
- var i = s[t].split("="), l = i.slice(1).join("=");
35
- try {
36
- var v = decodeURIComponent(i[0]);
37
- if (r[v] = e.read(l, v), n === v)
38
- break;
39
- } catch {
40
- }
41
- }
42
- return n ? r[n] : r;
43
- }
44
- }
45
- return Object.create(
46
- {
47
- set: f,
48
- get: p,
49
- remove: function(n, s) {
50
- f(
51
- n,
52
- "",
53
- d({}, s, {
54
- expires: -1
55
- })
56
- );
57
- },
58
- withAttributes: function(n) {
59
- return u(this.converter, d({}, this.attributes, n));
60
- },
61
- withConverter: function(n) {
62
- return u(d({}, this.converter, n), this.attributes);
63
- }
64
- },
65
- {
66
- attributes: { value: Object.freeze(o) },
67
- converter: { value: Object.freeze(e) }
68
- }
69
- );
70
- }
71
- var c = u(m, { path: "/" });
72
- const k = "accessToken", g = "accessTokenExpiredAt", a = "refreshToken", h = "redirectUri", T = () => c.get(k) ?? "", x = (e) => c.get(e) ?? "", A = (e, o = {}) => {
73
- c.set(k, e), c.set(g, o.accessTokenExpiredAt ?? "0"), c.set(a, o.refreshToken ?? ""), o.redirectUri && c.set(h, o.redirectUri);
74
- }, U = () => {
75
- c.remove(k), c.remove(g), c.remove(a), c.remove(h);
76
- }, y = () => {
77
- const e = c.get();
78
- for (const o in e)
79
- e.hasOwnProperty(o) && c.remove(o);
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 = () => {
4
+ localStorage.removeItem(o), localStorage.removeItem(r), localStorage.removeItem(c), localStorage.removeItem(s);
80
5
  };
81
6
  export {
82
- y as clearAllCookies,
83
- T as getAccessToken,
84
- x as getAccessTokenInfo,
85
- U as removeAccessToken,
86
- A as setAccessToken
7
+ a as getAccessToken,
8
+ l as getAccessTokenInfo,
9
+ m as removeAccessToken,
10
+ n as setAccessToken
87
11
  };
@@ -14,34 +14,34 @@ const x = ["src"], b = /* @__PURE__ */ v({
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
- }), d = s, l = u({
17
+ }), l = s, d = u({
18
18
  get: () => a.iframeLoading,
19
- set: (e) => d("update:iframeLoading", e)
19
+ set: (e) => l("update:iframeLoading", e)
20
20
  }), p = (e) => {
21
21
  const { emitName: o = "", emitData: t = {} } = e.data || {};
22
- o === "app-mounted" ? l.value = !1 : d("emit-change", o, t);
22
+ o === "app-mounted" ? d.value = !1 : l("emit-change", o, t);
23
23
  };
24
24
  g(() => {
25
25
  window.addEventListener("message", p, !1);
26
26
  }), _(() => {
27
27
  window.removeEventListener("message", p, !1);
28
28
  });
29
- const i = L(null), f = (e) => {
29
+ const i = L(null), m = (e) => {
30
30
  var o;
31
- l.value || (o = i.value) != null && o.contentWindow && i.value.contentWindow.postMessage(e);
31
+ d.value || (o = i.value) != null && o.contentWindow && i.value.contentWindow.postMessage(e);
32
32
  };
33
33
  c({
34
34
  onActivated: () => {
35
- f({ type: "onActivated" });
35
+ m({ type: "onActivated" });
36
36
  },
37
37
  onDeactivated: () => {
38
- f({ type: "onDeactivated" });
38
+ m({ type: "onDeactivated" });
39
39
  }
40
40
  });
41
41
  const w = () => {
42
- var o, t, m;
43
- const { origin: e } = new URL(r.value || "");
44
- e && ((m = (t = (o = i.value) == null ? void 0 : o.contentWindow) == null ? void 0 : t.postMessage) == null || m.call(
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(
45
45
  t,
46
46
  { type: "setProxSsoStatus", data: { visible: !0, parentHref: location.href } },
47
47
  e
@@ -63,7 +63,7 @@ const x = ["src"], b = /* @__PURE__ */ v({
63
63
  for (const [a, r] of c)
64
64
  s[a] = r;
65
65
  return s;
66
- }, B = /* @__PURE__ */ C(b, [["__scopeId", "data-v-dfb25e5d"]]);
66
+ }, B = /* @__PURE__ */ C(b, [["__scopeId", "data-v-c5870bec"]]);
67
67
  export {
68
68
  B as LowCode
69
69
  };
Binary file
@@ -1 +1 @@
1
- .low-code-iframe[data-v-dfb25e5d]{padding:0;margin:0;border:none;outline:none;height:100%;width:100%;min-height:100px;min-width:100px}
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}
Binary file
@@ -1,28 +1,28 @@
1
- export type socketConfig = {
2
- /** 请求地址 */
3
- url: string
4
-
5
- /** 请求参数 */
6
- params?: Record<string, any>
7
-
8
- /** websocket连接成功回调 */
9
- opened?: (event: any) => void
10
-
11
- /** websocket关闭连接回调 */
12
- close?: (event: any) => void
13
-
14
- /** websocket接收到消息回调 */
15
- message?: (event: any) => void
16
-
17
- /** websocket连接异常回调 */
18
- error?: (event: any) => void
19
-
20
- /** 是否重连,默认开启 */
21
- ifReconnect?: boolean
22
-
23
- /** 连接close关闭时是否重连,默认关闭 */
24
- reconnectWhenClose?: boolean
25
-
26
- /** 重连次数,默认为3,-1 表示一直重连 */
27
- reconnectNum?: number
28
- }
1
+ export type socketConfig = {
2
+ /** 请求地址 */
3
+ url: string
4
+
5
+ /** 请求参数 */
6
+ params?: Record<string, any>
7
+
8
+ /** websocket连接成功回调 */
9
+ opened?: (event: any) => void
10
+
11
+ /** websocket关闭连接回调 */
12
+ close?: (event: any) => void
13
+
14
+ /** websocket接收到消息回调 */
15
+ message?: (event: any) => void
16
+
17
+ /** websocket连接异常回调 */
18
+ error?: (event: any) => void
19
+
20
+ /** 是否重连,默认开启 */
21
+ ifReconnect?: boolean
22
+
23
+ /** 连接close关闭时是否重连,默认关闭 */
24
+ reconnectWhenClose?: boolean
25
+
26
+ /** 重连次数,默认为3,-1 表示一直重连 */
27
+ reconnectNum?: number
28
+ }
Binary file