@das-fed/utils 6.3.0-beta.10 → 6.3.0-beta.12

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 (74) hide show
  1. package/api-services/index.js +2 -2
  2. package/api-services/modules/app-manage/index.js +1 -1
  3. package/api-services/modules/authentication/index.js +1 -1
  4. package/api-services/modules/bems/index.js +1 -1
  5. package/api-services/modules/contract/index.js +1 -1
  6. package/api-services/modules/duty-manage/index.js +1 -1
  7. package/api-services/modules/enterpriseright/index.js +1 -1
  8. package/api-services/modules/file/index.d.ts +1 -1
  9. package/api-services/modules/file/index.js +255 -246
  10. package/api-services/modules/file/index.js.gz +0 -0
  11. package/api-services/modules/gateway-edge/index.js +1 -1
  12. package/api-services/modules/index.js +21 -21
  13. package/api-services/modules/index.js.gz +0 -0
  14. package/api-services/modules/iot/index.js +1 -1
  15. package/api-services/modules/justauth/index.js +1 -1
  16. package/api-services/modules/knowledge/index.js +1 -1
  17. package/api-services/modules/link/index.js +1 -1
  18. package/api-services/modules/permission/index.js +1 -1
  19. package/api-services/modules/platformManage/index.js +1 -1
  20. package/api-services/modules/portal/index.js +1 -1
  21. package/api-services/modules/space-manage/index.js +1 -1
  22. package/api-services/modules/super-admin/index.js +1 -1
  23. package/api-services/modules/supplier/index.js +1 -1
  24. package/api-services/modules/supplychain-manage/index.js +1 -1
  25. package/api-services/modules/systemConfiguration/index.js +1 -1
  26. package/api-services/modules/tool/index.js +1 -1
  27. package/api-services/src/create-service/index.js +1 -1
  28. package/common-info/getIframeUrl/index.js +1 -1
  29. package/common-info/getInfoFromUrl/index.js.gz +0 -0
  30. package/common-info/index.js +4 -4
  31. package/common-info/index.js.gz +0 -0
  32. package/common-info/set-personal-info/index.js +591 -565
  33. package/common-info/set-personal-info/index.js.gz +0 -0
  34. package/common-info/type.d.ts +104 -104
  35. package/common-tools/date-format/index.js +2 -1
  36. package/common-tools/get-url-params/index.d.ts +1 -1
  37. package/common-tools/get-url-params/index.js +49 -46
  38. package/common-tools/get-url-params/index.js.gz +0 -0
  39. package/common-tools/index.js +10 -10
  40. package/common-tools/platform-tools/index.js +1 -1
  41. package/common-tools/update-fav-icon/index.js +3 -3
  42. package/create-api-service/index.js +1405 -1371
  43. package/create-api-service/index.js.gz +0 -0
  44. package/create-api-service/sso/index.js +739 -714
  45. package/create-api-service/sso/index.js.gz +0 -0
  46. package/curring-http/index.js +856 -830
  47. package/curring-http/index.js.gz +0 -0
  48. package/curring-http/type.d.ts +87 -87
  49. package/dimple-canvas/index.js +1 -1
  50. package/directive/auth/index.js +3 -3
  51. package/directive/auth/index.js.gz +0 -0
  52. package/directive/clickOutside/index.js +1 -1
  53. package/directive/hoverInside/index.js +1 -1
  54. package/directive/index.js +3 -3
  55. package/hooks/use-get-auth/index.js +4 -4
  56. package/hooks/use-get-auth/index.js.gz +0 -0
  57. package/index.js +2 -2
  58. package/load-js/index.js +1 -1
  59. package/nextTiken/index.js +1 -1
  60. package/nextTiken/index.js.gz +0 -0
  61. package/oss/index.js +1 -1
  62. package/package.json +5 -3
  63. package/pinyin-first-character/index.js +142 -132
  64. package/pinyin-first-character/index.js.gz +0 -0
  65. package/style/index.js +1 -1
  66. package/style/index.js.gz +0 -0
  67. package/token-tools/index.js.gz +0 -0
  68. package/use-low-code/index.js +12 -12
  69. package/use-low-code/index.js.gz +0 -0
  70. package/use-low-code/style.css +1 -1
  71. package/vue/index.js +1 -1
  72. package/webSocket-service/index.js +3 -3
  73. package/webSocket-service/index.js.gz +0 -0
  74. package/webSocket-service/type.d.ts +28 -28
package/style/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/shared v3.4.31
2
+ * @vue/shared v3.4.35
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
Binary file
@@ -1,5 +1,5 @@
1
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({
2
+ const x = ["src"], C = /* @__PURE__ */ v({
3
3
  __name: "low-code-iframe",
4
4
  props: {
5
5
  app: {},
@@ -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;
42
+ var o, t, f;
43
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(
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
@@ -58,12 +58,12 @@ const x = ["src"], b = /* @__PURE__ */ v({
58
58
  onLoad: w
59
59
  }, null, 40, x));
60
60
  }
61
- }), C = (n, c) => {
61
+ }), M = (n, c) => {
62
62
  const s = n.__vccOpts || n;
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__ */ M(C, [["__scopeId", "data-v-752ac832"]]);
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-752ac832]{padding:0;margin:0;border:none;outline:none;height:100%;width:100%;min-height:100px;min-width:100px}
package/vue/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { useModelValue as l } from "@das-fed/utils/vue/hooks/use-model-value";
1
+ import { useModelValue as l } from "@das-fed/utils/vue/hooks/use-model-value/index.js";
2
2
  export {
3
3
  l as useModelValue
4
4
  };
@@ -1,6 +1,6 @@
1
- import { getConfig as m } from "@das-fed/utils/config";
2
- import { getToken as f } from "@das-fed/utils/common-info";
3
- import { objectToUrlparams as d } from "@das-fed/utils/common-tools";
1
+ import { getConfig as m } from "@das-fed/utils/config/index.js";
2
+ import { getToken as f } from "@das-fed/utils/common-info/index.js";
3
+ import { objectToUrlparams as d } from "@das-fed/utils/common-tools/index.js";
4
4
  const c = m(), h = () => {
5
5
  let s = "";
6
6
  return c.baseURL ? s = c.baseURL : s = location.origin, s.replace("https://", "wss://").replace("http://", "ws://") || "";
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
+ }