@das-fed/utils 1.0.8 → 6.3.0-beta.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 (105) hide show
  1. package/api-services/index.d.ts +2 -1
  2. package/api-services/index.js +3 -2
  3. package/api-services/modules/app-manage.js +1 -1
  4. package/api-services/modules/authentication.js +1 -1
  5. package/api-services/modules/bems.js +1 -1
  6. package/api-services/modules/contract.js +1 -1
  7. package/api-services/modules/duty-manage.js +1 -1
  8. package/api-services/modules/enterpriseright.js +1 -1
  9. package/api-services/modules/file.d.ts +1 -1
  10. package/api-services/modules/file.js +355 -342
  11. package/api-services/modules/gateway-edge.js +1 -1
  12. package/api-services/modules/index.d.ts +21 -21
  13. package/api-services/modules/index.js +57 -558
  14. package/api-services/modules/iot.js +1 -1
  15. package/api-services/modules/justauth.js +1 -1
  16. package/api-services/modules/knowledge.js +1 -1
  17. package/api-services/modules/link.js +1 -1
  18. package/api-services/modules/permission.js +1 -1
  19. package/api-services/modules/platformManage.js +1 -1
  20. package/api-services/modules/portal.js +1 -1
  21. package/api-services/modules/space-manage.js +1 -1
  22. package/api-services/modules/super-admin.js +1 -1
  23. package/api-services/modules/supplier.js +1 -1
  24. package/api-services/modules/supplychain-manage.js +1 -1
  25. package/api-services/modules/systemConfiguration.js +1 -1
  26. package/api-services/modules/tool.js +1 -1
  27. package/api-services/src/create-service.d.ts +1 -1
  28. package/api-services/src/create-service.js +2 -3234
  29. package/common-info/{setInfoFromUrl.d.ts → getInfoFromUrl.d.ts} +1 -1
  30. package/common-info/{setInfoFromUrl.js → getInfoFromUrl.js} +26 -29
  31. package/common-info/index.d.ts +18 -7
  32. package/common-info/index.js +82 -143
  33. package/{api-services/src/sso.js → common-info/set-personal-info.js} +754 -667
  34. package/common-tools/get-url-params.d.ts +21 -8
  35. package/common-tools/get-url-params.js +26 -15
  36. package/common-tools/index.d.ts +3 -0
  37. package/common-tools/index.js +3 -0
  38. package/common-tools/obj-tools.d.ts +1 -1
  39. package/common-tools/platform-tools.d.ts +18 -0
  40. package/common-tools/platform-tools.js +15 -0
  41. package/common-tools/queue-promise.d.ts +6 -0
  42. package/common-tools/queue-promise.js +9 -0
  43. package/common-tools/setHtmlMinWH.js +8 -4
  44. package/common-tools/update-fav-icon.d.ts +10 -0
  45. package/common-tools/update-fav-icon.js +22 -0
  46. package/create-api-service/index.d.ts +1 -0
  47. package/create-api-service/index.js +3492 -0
  48. package/create-api-service/proxy-sso.d.ts +3 -0
  49. package/create-api-service/proxy-sso.js +21 -0
  50. package/create-api-service/sso.d.ts +23 -0
  51. package/create-api-service/sso.js +1969 -0
  52. package/curring-http/index.d.ts +3 -2
  53. package/curring-http/index.js +2872 -2662
  54. package/dimple-canvas/index.d.ts +1 -0
  55. package/dimple-canvas/use-dimple-canvas/core/antv-x6/index.d.ts +1 -0
  56. package/dimple-canvas/use-dimple-canvas/core/antv-x6/index.js +2244 -2265
  57. package/dimple-canvas/use-dimple-canvas/core/konva/index.d.ts +4 -3
  58. package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-object/index.d.ts +2 -1
  59. package/dimple-canvas/use-dimple-canvas/core/konva/utils/find.d.ts +2 -1
  60. package/dimple-canvas/use-dimple-canvas/core/konva/utils/guideline.d.ts +2 -1
  61. package/dimple-canvas/use-dimple-canvas/core/konva/utils/lib.d.ts +2 -1
  62. package/dimple-canvas/use-dimple-canvas/core/konva/utils/lib.js +1079 -1051
  63. package/dimple-canvas/use-dimple-canvas/core/konva/utils/remove-object.d.ts +2 -1
  64. package/dimple-canvas/use-dimple-canvas/core/konva/utils/transform-axis.d.ts +3 -2
  65. package/dimple-canvas/use-dimple-canvas/core/konva/utils/transformer.d.ts +2 -1
  66. package/dimple-canvas/use-dimple-canvas/index.d.ts +2 -1
  67. package/directive/auth.js +21 -21
  68. package/directive/clickOutside.d.ts +3 -2
  69. package/directive/hoverInside.d.ts +2 -1
  70. package/dom-check-in/index.js +5 -5
  71. package/hooks/popup-manager/use-zindex.js +8 -8
  72. package/hooks/use-get-auth/apis.d.ts +4 -0
  73. package/hooks/use-get-auth/apis.js +8 -0
  74. package/hooks/use-get-auth/index.d.ts +9 -0
  75. package/hooks/use-get-auth/index.js +57 -0
  76. package/nextTiken/index.d.ts +3 -4
  77. package/nextTiken/index.js +34 -46
  78. package/package.json +5 -4
  79. package/pinyin-first-character/index.js +19792 -20877
  80. package/process-engine-info/index.d.ts +5 -2
  81. package/process-engine-info/index.js +11 -6
  82. package/style/index.js +1 -1
  83. package/style/style.d.ts +2 -1
  84. package/style/style.js +1 -1
  85. package/token-tools/index.d.ts +10 -7
  86. package/token-tools/index.js +44 -59
  87. package/use-low-code/index.d.ts +1 -0
  88. package/use-low-code/index.js +70 -0
  89. package/use-low-code/low-code-iframe.vue.d.ts +2 -0
  90. package/use-low-code/style.css +1 -0
  91. package/webSocket-service/index.d.ts +2 -1
  92. package/with-install/index.d.ts +2 -1
  93. package/api-services/src/sso.d.ts +0 -29
  94. package/api-services/src/util.d.ts +0 -1
  95. package/api-services/src/util.js +0 -1466
  96. package/common-tools/throttled.d.ts +0 -7
  97. package/common-tools/throttled.js +0 -10
  98. package/micro-app/globalData.d.ts +0 -3
  99. package/micro-app/globalData.js +0 -11
  100. package/micro-app/index.d.ts +0 -5
  101. package/micro-app/index.js +0 -3699
  102. package/panel/index.d.ts +0 -31
  103. package/panel/index.js +0 -37
  104. package/set-personal-info/index.js +0 -1468
  105. /package/{set-personal-info/index.d.ts → common-info/set-personal-info.d.ts} +0 -0
@@ -1,3 +1,4 @@
1
- import type { Canvas } from '@das-fed/utils/dimple-canvas/use-dimple-canvas/core/type';
1
+ import { Canvas } from '@das-fed/utils/dimple-canvas/use-dimple-canvas/core/type';
2
+
2
3
  declare const removeObject: (canvas: Canvas | null | undefined, key: string) => void;
3
4
  export { removeObject };
@@ -1,8 +1,9 @@
1
- import type { Canvas } from '@das-fed/utils/dimple-canvas/use-dimple-canvas/core/type';
1
+ import { Canvas } from '@das-fed/utils/dimple-canvas/use-dimple-canvas/core/type';
2
+
2
3
  declare const transformAxis: (containerEl: HTMLDivElement, canvas: Canvas | null | undefined, coordinate: {
3
- [key: string]: any;
4
4
  x: number;
5
5
  y: number;
6
+ [key: string]: any;
6
7
  }) => {
7
8
  x: number;
8
9
  y: number;
@@ -1,4 +1,5 @@
1
- import type { Canvas, Layer } from '@das-fed/utils/dimple-canvas/use-dimple-canvas/core/type';
1
+ import { Canvas, Layer } from '@das-fed/utils/dimple-canvas/use-dimple-canvas/core/type';
2
+
2
3
  declare const initTransformer: (canvas?: Canvas | null, layer?: Layer | null) => any;
3
4
  declare const removeTransformer: () => void;
4
5
  export { initTransformer, removeTransformer };
@@ -1,8 +1,9 @@
1
1
  import { useKonva, Konva } from '@das-fed/utils/dimple-canvas/use-dimple-canvas/core/konva';
2
2
  import { useAntvX6, Graph } from '@das-fed/utils/dimple-canvas/use-dimple-canvas/core/antv-x6';
3
+
3
4
  type HookTypeMap = {
4
5
  konva: ReturnType<typeof useKonva>;
5
6
  'antv-x6': ReturnType<typeof useAntvX6>;
6
7
  };
7
- declare const useDimpleCanvas: <T extends "konva" | "antv-x6" = "konva">(core?: T, initOptions?: Graph.Options) => T extends "antv-x6" ? any : any;
8
+ declare const useDimpleCanvas: <T extends "konva" | "antv-x6" = "konva">(core?: T, initOptions?: Graph.Options) => T extends 'antv-x6' ? HookTypeMap['antv-x6'] : HookTypeMap['konva'];
8
9
  export { useDimpleCanvas, Konva, Graph };
package/directive/auth.js CHANGED
@@ -1,6 +1,6 @@
1
- import { getUrlParams as g, flatTree as P } from "@das-fed/utils/common-tools";
2
- import { getSubApps as v, getPageAuth as i } from "@das-fed/utils/common-info";
3
- import { getEl as o } from "@das-fed/utils/directive/utils";
1
+ import { getUrlParams as i, flatTree as P } from "@das-fed/utils/common-tools";
2
+ import { getSubApps as v, getPageAuth as o } from "@das-fed/utils/common-info";
3
+ import { getEl as h } from "@das-fed/utils/directive/utils";
4
4
  const A = (e, t) => {
5
5
  if (!e || !t)
6
6
  return !1;
@@ -15,46 +15,46 @@ const A = (e, t) => {
15
15
  }
16
16
  return r;
17
17
  }
18
- }, h = (e) => {
19
- var d;
20
- const t = (e == null ? void 0 : e.code) ?? "", r = (e == null ? void 0 : e.path) ?? location.pathname, s = (e == null ? void 0 : e.applicationCode) ?? "";
18
+ }, m = (e) => {
19
+ var n;
20
+ const t = (e == null ? void 0 : e.code) ?? "", r = (e == null ? void 0 : e.path) ?? (location == null ? void 0 : location.pathname) ?? "", s = (e == null ? void 0 : e.applicationCode) ?? i(location.href, "app");
21
21
  let l = "";
22
- if (l = e != null && e.menuCode ? e.menuCode : g(location.href, "menu"), !l) {
23
- const c = ((d = v().currentSubApp) == null ? void 0 : d.menus) ?? [];
22
+ if (l = e != null && e.menuCode ? e.menuCode : i(location.href, "menu"), !l) {
23
+ const c = ((n = v().currentSubApp) == null ? void 0 : n.menus) ?? [];
24
24
  if (c && c.length) {
25
- const n = P(c).filter((f) => f == null ? void 0 : f.routeUrl);
26
- if (n && n.length) {
27
- const f = n.find((u) => u != null && u.applicationPath ? r == null ? void 0 : r.includes("/" + u.applicationPath + u.routeUrl) : r == null ? void 0 : r.includes(u.routeUrl));
25
+ const d = P(c).filter((f) => f == null ? void 0 : f.routeUrl);
26
+ if (d && d.length) {
27
+ const f = d.find((u) => u != null && u.applicationPath ? r == null ? void 0 : r.includes("/" + u.applicationPath + u.routeUrl) : r == null ? void 0 : r.includes(u.routeUrl));
28
28
  f && (l = (f == null ? void 0 : f.code) ?? "");
29
29
  }
30
30
  }
31
31
  }
32
32
  let a = !1;
33
33
  if (t) {
34
- const c = i(l, s) ?? [];
34
+ const c = o(l, s) ?? [];
35
35
  a = A(c, t);
36
36
  } else
37
- a = !!i(l, s);
37
+ a = !!o(l, s);
38
38
  return a;
39
- }, m = (e, t) => {
39
+ }, g = (e, t) => {
40
40
  t === "hide" ? e.classList.add("is-hide") : (e.setAttribute("disabled", ""), e.classList.add("is-disabled"));
41
41
  }, b = (e, t) => {
42
42
  t === "hide" ? e.classList.remove("is-hide") : (e.removeAttribute("disabled"), e.classList.remove("is-disabled"));
43
43
  }, U = (e, t) => {
44
44
  let r = (e ? t.value : t) || {};
45
45
  typeof r == "string" && (r = { code: r });
46
- const s = (r == null ? void 0 : r.type) ?? "hide", l = h(r);
46
+ const s = (r == null ? void 0 : r.type) ?? "hide", l = m(r);
47
47
  if (e)
48
48
  if (!t.oldValue)
49
- l || o(e, r).then((a) => {
50
- m(a, s);
49
+ l || h(e, r).then((a) => {
50
+ g(a, s);
51
51
  });
52
52
  else {
53
- const a = h(t.oldValue), d = l;
54
- if (a === d)
53
+ const a = m(t.oldValue), n = l;
54
+ if (a === n)
55
55
  return;
56
- o(e, r).then((c) => {
57
- d ? b(c, s) : m(c, s);
56
+ h(e, r).then((c) => {
57
+ n ? b(c, s) : g(c, s);
58
58
  });
59
59
  }
60
60
  return l;
@@ -1,5 +1,6 @@
1
- import type { Directive } from 'vue';
1
+ import { Directive } from 'vue';
2
+
2
3
  /**
3
- * 指令:点击当前区域或者指定区域之外的位置
4
+ * 点击当前区域或者指定区域之外的位置
4
5
  */
5
6
  export declare const vClickOutside: Directive<HTMLElement>;
@@ -1,4 +1,5 @@
1
- import type { Directive } from 'vue';
1
+ import { Directive } from 'vue';
2
+
2
3
  /**
3
4
  * 指令:鼠标移入移除dom事件
4
5
  */
@@ -1,8 +1,8 @@
1
- const g = (e) => {
2
- const t = window.event;
3
- let n = Number(t.clientX), i = Number(t.clientY), l = Number(e.getBoundingClientRect().left), u = Number(e.getBoundingClientRect().left + e.clientWidth), r = Number(e.getBoundingClientRect().top), c = Number(e.getBoundingClientRect().top + e.clientHeight);
4
- return n > l && n < u && i > r && i < c;
1
+ const o = (e) => {
2
+ const r = window.event;
3
+ let t = Number(r.clientX), n = Number(r.clientY), i = Number(e.getBoundingClientRect().left), u = Number(i + e.clientWidth), l = Number(e.getBoundingClientRect().top), c = Number(l + e.clientHeight);
4
+ return console.log(t, i, u, n, l, c), t > i && t < u && n > l && n < c;
5
5
  };
6
6
  export {
7
- g as domCheckIn
7
+ o as domCheckIn
8
8
  };
@@ -1,15 +1,15 @@
1
1
  import { ref as I, getCurrentInstance as u, inject as s, computed as e, unref as i } from "vue";
2
- const Z = (n) => typeof n == "number", d = I(0), l = 2e3, a = Symbol("zIndexContextKey"), m = (n) => {
3
- const t = n || (u() ? s(a, void 0) : void 0), r = e(() => {
4
- const c = i(t);
5
- return Z(c) ? c : l;
6
- }), x = e(() => r.value + d.value);
2
+ const Z = (n) => typeof n == "number", c = I(0), l = 2e3, a = Symbol("zIndexContextKey"), v = (n) => {
3
+ const t = u() ? s(a, void 0) : void 0, r = e(() => {
4
+ const d = i(t);
5
+ return Z(d) ? d : l;
6
+ }), x = e(() => r.value + c.value);
7
7
  return {
8
8
  initialZIndex: r,
9
9
  currentZIndex: x,
10
- nextZIndex: () => (d.value++, x.value)
10
+ nextZIndex: () => (c.value++, x.value)
11
11
  };
12
- }, o = m(), z = () => {
12
+ }, o = v(), f = () => {
13
13
  const n = e(() => o.initialZIndex.value), t = e(() => o.currentZIndex.value);
14
14
  return {
15
15
  initialZIndex: n,
@@ -18,5 +18,5 @@ const Z = (n) => typeof n == "number", d = I(0), l = 2e3, a = Symbol("zIndexCont
18
18
  };
19
19
  };
20
20
  export {
21
- z as useZIndex
21
+ f as useZIndex
22
22
  };
@@ -0,0 +1,4 @@
1
+ export declare const appcategory: any;
2
+ export declare const superadminAppcategory: any;
3
+ export declare const enterpriserightQueryportalmenu: any;
4
+ export declare const superadminQuerymenu: any;
@@ -0,0 +1,8 @@
1
+ import { portal as r, superadminPortal as e, enterpriseright as t } from "@das-fed/utils/api-services/modules";
2
+ const o = r.get("/appcategory"), a = e.get("/appcategory"), n = t.get("/permissionset/user-portal-menu"), s = e.get("/user-menu");
3
+ export {
4
+ o as appcategory,
5
+ n as enterpriserightQueryportalmenu,
6
+ a as superadminAppcategory,
7
+ s as superadminQuerymenu
8
+ };
@@ -0,0 +1,9 @@
1
+ export declare const useGetAuth: () => {
2
+ getApplication: (code?: string, appName?: 'superadmin' | 'enterpriseadmin') => Promise<any>;
3
+ getMenu: (code: string, menuCode?: string, path?: string, appName?: 'superadmin' | 'enterpriseadmin') => Promise<any>;
4
+ getAuth: (options: {
5
+ applicationCode: string;
6
+ menuCode: string;
7
+ code: string;
8
+ }, appName?: 'superadmin' | 'enterpriseadmin') => Promise<any>;
9
+ };
@@ -0,0 +1,57 @@
1
+ import { flatTree as w } from "@das-fed/utils/common-tools";
2
+ import { projectNextTick as A } from "@das-fed/utils/nextTiken";
3
+ import { vAuth as M } from "@das-fed/utils/directive/auth";
4
+ import { portal as T, superadminPortal as y, enterpriseright as U } from "@das-fed/utils/api-services/modules";
5
+ const v = T.get("/appcategory"), B = y.get("/appcategory"), C = U.get("/permissionset/user-portal-menu"), L = y.get("/user-menu"), k = () => {
6
+ const d = async (r, i = "enterpriseadmin") => {
7
+ let t = null, s = {};
8
+ await A(), i === "superadmin" ? t = B().run : (s = { userType: 1 }, t = v().run);
9
+ const [a, l] = await t(s);
10
+ if (a || !l || !l.length)
11
+ return null;
12
+ const f = l.map((o) => o.apps).flat();
13
+ return r ? f.find((o) => o.code === r) : f;
14
+ }, g = async (r, i, t, s = "enterpriseadmin") => {
15
+ var c;
16
+ await A();
17
+ let a = null, l = {
18
+ code: r,
19
+ showBtn: !0
20
+ };
21
+ s === "superadmin" ? a = L().run : (l.userType = 1, a = C().run);
22
+ const [f, e] = await a(l);
23
+ if (f || !e || !e.length)
24
+ return i || t ? void 0 : [];
25
+ if (!i && !t)
26
+ return e;
27
+ const o = e != null && e.length ? e.filter((n) => n.routeUrl) : [], m = e != null && e.length ? e.filter((n) => !n.routeUrl && n.children).map((n) => n.children).flat() : [], p = [...o, ...m];
28
+ let u;
29
+ if (i)
30
+ u = p.find((n) => n.code === i || n.originalCode === i);
31
+ else if (t) {
32
+ const n = t.replace(((c = p[0]) == null ? void 0 : c.applicationPath) ?? "", "").replace(/\/\//g, "/");
33
+ u = p.find((h) => h.routeUrl && h.routeUrl === n);
34
+ }
35
+ return u;
36
+ };
37
+ return {
38
+ getApplication: d,
39
+ getMenu: g,
40
+ getAuth: async (r, i = "enterpriseadmin") => {
41
+ var p;
42
+ const t = (r == null ? void 0 : r.applicationCode) ?? "", s = (r == null ? void 0 : r.menuCode) ?? "", a = (r == null ? void 0 : r.code) ?? "";
43
+ if (JSON.parse(sessionStorage.getItem("permission-btn") || "{}")[s])
44
+ return M(null, { applicationCode: t, menuCode: s, code: a });
45
+ if (!await d(t, i))
46
+ return !1;
47
+ const e = await g(t, s, i);
48
+ return !e || !(e != null && e.children) || !((p = e.children) != null && p.length) ? !1 : !!w(e.children).find((u) => {
49
+ let c = (u == null ? void 0 : u.originalCode) ?? u.code;
50
+ return c.includes(s + ".") && (c = c.replace(s + ".", "").replaceAll(".", "-")), c === a;
51
+ });
52
+ }
53
+ };
54
+ };
55
+ export {
56
+ k as useGetAuth
57
+ };
@@ -1,13 +1,12 @@
1
- import type { PersonalInfo, TenantInfo } from '@das-fed/utils/common-info/type';
1
+ import { PersonalInfo, TenantInfo } from '@das-fed/utils/common-info/type';
2
+
2
3
  /** 等待获取到token */
3
4
  export declare const tokenNextTick_1: () => Promise<string>;
4
5
  /** 等待获取到projectId */
5
- export declare const projectNextTick: () => Promise<string>;
6
+ export declare const projectNextTick: () => Promise<string | number>;
6
7
  /** 等待获取到token和projectId */
7
8
  export declare const tokenNextTick: () => Promise<boolean>;
8
9
  /** 等待获取到userInfo */
9
10
  export declare const userInfoNextTick: () => Promise<PersonalInfo>;
10
11
  /** 等待获取到租户信息 */
11
12
  export declare const tenantInfoNextTick: () => Promise<TenantInfo>;
12
- /** 等待获取到默认页配置 */
13
- export declare const defaultInfoNextTick: () => Promise<any>;
@@ -1,62 +1,50 @@
1
- import { getToken as s, getProjectInfo as r, getPersonalInfo as i, getTenantInfo as u } from "@das-fed/utils/common-info";
1
+ import { getToken as r, getProjectInfo as c, getPersonalInfo as s, getTenantInfo as i } from "@das-fed/utils/common-info";
2
2
  const k = () => new Promise((n) => {
3
- const t = () => {
4
- const e = s();
5
- if (e)
6
- return n(e);
7
- setTimeout(() => t(), 50);
3
+ const e = () => {
4
+ const t = r();
5
+ if (t)
6
+ return n(t);
7
+ setTimeout(() => e(), 50);
8
8
  };
9
- t();
9
+ e();
10
10
  }), m = () => new Promise((n) => {
11
- const t = () => {
12
- var o;
13
- const e = ((o = r()) == null ? void 0 : o.id) ?? "";
14
- if (e)
15
- return n(e);
16
- setTimeout(() => t(), 50);
11
+ const e = () => {
12
+ const t = c().id ? c().id : "";
13
+ if (t)
14
+ return n(t);
15
+ setTimeout(() => e(), 50);
17
16
  };
18
- t();
17
+ e();
19
18
  }), T = () => new Promise((n) => {
20
- const t = () => {
21
- var c;
22
- const e = s(), o = ((c = r()) == null ? void 0 : c.id) ?? "";
23
- if (e && o)
19
+ const e = () => {
20
+ const t = r(), o = c().id ? c().id : "";
21
+ if (t && o)
24
22
  return n(!0);
25
- setTimeout(() => t(), 50);
23
+ setTimeout(() => e(), 50);
26
24
  };
27
- t();
28
- }), I = () => new Promise((n) => {
29
- const t = () => {
30
- const e = i();
31
- if (e != null && e.id)
32
- return n(e);
33
- setTimeout(() => t(), 50);
25
+ e();
26
+ }), f = () => new Promise((n) => {
27
+ const e = () => {
28
+ const t = s();
29
+ if (t != null && t.id)
30
+ return n(t);
31
+ setTimeout(() => e(), 50);
34
32
  };
35
- t();
36
- }), P = () => new Promise((n) => {
37
- const t = () => {
33
+ e();
34
+ }), d = () => new Promise((n) => {
35
+ const e = () => {
38
36
  var o;
39
- const e = u();
40
- if ((o = e == null ? void 0 : e.tenant) != null && o.id)
41
- return n(e);
42
- setTimeout(() => t(), 50);
43
- };
44
- t();
45
- }), g = () => new Promise((n) => {
46
- const t = () => {
47
- var o, c;
48
- const e = JSON.parse(sessionStorage.getItem("home-config") || "{}");
49
- if (e != null && e.info && ((o = r()) == null ? void 0 : o.id) === ((c = e == null ? void 0 : e.info) == null ? void 0 : c.projectId))
50
- return n(e.info);
51
- setTimeout(() => t(), 50);
37
+ const t = i();
38
+ if ((o = t == null ? void 0 : t.tenant) != null && o.id)
39
+ return n(t);
40
+ setTimeout(() => e(), 50);
52
41
  };
53
- t();
42
+ e();
54
43
  });
55
44
  export {
56
- g as defaultInfoNextTick,
57
45
  m as projectNextTick,
58
- P as tenantInfoNextTick,
46
+ d as tenantInfoNextTick,
59
47
  T as tokenNextTick,
60
48
  k as tokenNextTick_1,
61
- I as userInfoNextTick
49
+ f as userInfoNextTick
62
50
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@das-fed/utils",
3
- "version": "1.0.8",
3
+ "version": "6.3.0-beta.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -9,9 +9,9 @@
9
9
  "license": "ISC",
10
10
  "dependencies": {
11
11
  "@antv/x6": "^2.18.1",
12
- "@das-fed/ui": "1.1.3",
13
- "@das-fed/utils": "1.0.8",
12
+ "@das-fed/utils": "workspace:^",
14
13
  "@vue/shared": "^3.4.21",
14
+ "@vueuse/core": "^9.6.0",
15
15
  "axios": "^1.6.7",
16
16
  "dayjs": "^1.11.10",
17
17
  "konva": "^9.3.6",
@@ -21,8 +21,9 @@
21
21
  },
22
22
  "devDependencies": {
23
23
  "@vitejs/plugin-vue": "^5.0.4",
24
- "consola": "^3.2.3",
24
+ "@vitejs/plugin-vue-jsx": "^3.1.0",
25
25
  "ant-design-vue": "3.2.20",
26
+ "consola": "^3.2.3",
26
27
  "element-plus": "2.4.2",
27
28
  "fast-glob": "^3.3.2",
28
29
  "fs-extra": "^11.2.0",