@das-fed/web 6.4.0-dev.1 → 6.4.0-dev.10

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 (64) hide show
  1. package/esm-map.json +1 -2
  2. package/{packages/main-app-framework/index-Twj2RXRy.js → index-3xCfFiyN.js} +1 -1
  3. package/index-3xCfFiyN.js.gz +0 -0
  4. package/{packages/main-app-framework/index-CRT8yHn-.js → index-BePRIUZj.js} +1 -1
  5. package/{index-DpLK467K.js → index-CIytPmSg.js} +22 -22
  6. package/index-CIytPmSg.js.gz +0 -0
  7. package/index-Cp6SD-TQ.js +7344 -0
  8. package/index-Cp6SD-TQ.js.gz +0 -0
  9. package/index.js +1 -1
  10. package/package.json +6 -6
  11. package/packages/create-das-web-app/config.js +1 -0
  12. package/packages/create-das-web-app/index.js +46 -805
  13. package/packages/create-das-web-app/index.js.gz +0 -0
  14. package/packages/i18n/config.js +1 -0
  15. package/packages/layout/config.js +1 -0
  16. package/packages/layout/index.js +219 -224
  17. package/packages/layout/index.js.gz +0 -0
  18. package/packages/layout/style.css +1 -1
  19. package/packages/layout/style.css.gz +0 -0
  20. package/packages/main-app-framework/config.js +1 -0
  21. package/{index-CC5hN73H.js → packages/main-app-framework/index-CXsP6QiJ.js} +1 -1
  22. package/{index-D4LFa1We.js → packages/main-app-framework/index-CY7DAPNF.js} +1 -1
  23. package/packages/main-app-framework/index-CY7DAPNF.js.gz +0 -0
  24. package/packages/main-app-framework/{index-BqkWKMMe.js → index-DQRCs8SS.js} +22 -22
  25. package/packages/main-app-framework/index-DQRCs8SS.js.gz +0 -0
  26. package/packages/main-app-framework/index-DtmpkTTl.js +6045 -0
  27. package/packages/main-app-framework/index-DtmpkTTl.js.gz +0 -0
  28. package/packages/main-app-framework/index.js +3 -2
  29. package/packages/main-app-framework/style.css +1 -1
  30. package/packages/main-app-framework/style.css.gz +0 -0
  31. package/packages/micro-frontend/config.js +1 -0
  32. package/packages/micro-frontend/index.js +209 -209
  33. package/packages/micro-frontend/index.js.gz +0 -0
  34. package/packages/style/config.js +1 -0
  35. package/packages/theme/config.js +1 -0
  36. package/packages/theme/index.js +24 -24
  37. package/packages/theme/index.js.gz +0 -0
  38. package/style.css +1 -1
  39. package/style.css.gz +0 -0
  40. package/types/create-das-web-app/index.d.ts +1 -1
  41. package/types/i18n/index.d.ts +2 -2
  42. package/types/layout/store/index.d.ts +1 -1
  43. package/types/main-app-framework/business/alarm/use-alarm.d.ts +4 -4
  44. package/types/main-app-framework/business/video-link/index.d.ts +3 -3
  45. package/types/main-app-framework/components/person-set-dialog/index.d.ts +1 -1
  46. package/types/main-app-framework/index.d.ts +1 -1
  47. package/types/main-app-framework/init-config/get-nav-config/index.d.ts +2 -2
  48. package/types/main-app-framework/init-config/get-system-config/index.d.ts +2 -2
  49. package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +3 -3
  50. package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +2 -2
  51. package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +4 -4
  52. package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +3 -3
  53. package/types/main-app-framework/init-platform/index.d.ts +1 -1
  54. package/types/micro-frontend/index.d.ts +1 -1
  55. package/types/micro-frontend/store.d.ts +5 -5
  56. package/types/theme/index.d.ts +1 -1
  57. package/index-BqgahaIi.js +0 -11086
  58. package/index-BqgahaIi.js.gz +0 -0
  59. package/index-D4LFa1We.js.gz +0 -0
  60. package/index-DpLK467K.js.gz +0 -0
  61. package/packages/main-app-framework/index-2WWk8ggi.js +0 -9022
  62. package/packages/main-app-framework/index-2WWk8ggi.js.gz +0 -0
  63. package/packages/main-app-framework/index-BqkWKMMe.js.gz +0 -0
  64. package/packages/main-app-framework/index-Twj2RXRy.js.gz +0 -0
package/esm-map.json CHANGED
@@ -24,6 +24,5 @@
24
24
  "setThemeRule": "/packages/theme/index",
25
25
  "getVar": "/packages/theme/index",
26
26
  "getVarValue": "/packages/theme/index",
27
- "mainAppFramework": "/packages/main-app-framework/index",
28
- "default": "/packages/style/index"
27
+ "mainAppFramework": "/packages/main-app-framework/index"
29
28
  }
@@ -2,7 +2,7 @@ import { defineComponent as v, ref as r, nextTick as u, watch as p, onMounted as
2
2
  import { useRoute as P } from "vue-router";
3
3
  import { DasSpin as S } from "@das-fed/ui/packages/components/spin/index";
4
4
  import { layout as C } from "@das-fed/web/packages/layout/index";
5
- import { I as R, e as L, _ as M } from "./index-2WWk8ggi.js";
5
+ import { I as R, e as L, _ as M } from "./index-Cp6SD-TQ.js";
6
6
  import { getToken as j, getPersonalInfo as B, getProjectInfo as D } from "@das-fed/utils/common-info";
7
7
  import { getUrlParams as E } from "@das-fed/utils/common-tools";
8
8
  const N = {
Binary file
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as r } from "vue";
2
- import { _ as c } from "./index-2WWk8ggi.js";
2
+ import { _ as c } from "./index-Cp6SD-TQ.js";
3
3
  const o = {};
4
4
  function t(n, _) {
5
5
  return e(), r("div");
@@ -1,16 +1,16 @@
1
- import { defineComponent as w, computed as _, openBlock as y, createBlock as k, unref as p, withCtx as U, createVNode as C } from "vue";
2
- import { DasAppContainer as v } from "@das-fed/ui/packages/business-components/app-container/index";
3
- import { DasSpin as A } from "@das-fed/ui/packages/components/spin/index";
1
+ import { defineComponent as w, computed as y, openBlock as _, createBlock as k, unref as p, withCtx as U, createVNode as A } from "vue";
2
+ import { DasAppContainer as C } from "@das-fed/ui/packages/business-components/app-container/index";
3
+ import { DasSpin as v } from "@das-fed/ui/packages/components/spin/index";
4
4
  import { getTabInfo as I } from "@das-fed/utils/common-info";
5
- import { createService as j } from "@das-fed/utils/api-services";
6
- import { u as S, a as c, l, b as x, c as $, d as D } from "./index-BqgahaIi.js";
7
- const E = "v1", L = j(`/api/justauth/client/${E}`), T = L.get("/visitor/kingdee/auth/user/auth_code"), V = /* @__PURE__ */ w({
5
+ import { createService as j } from "@das-fed/utils/create-api-service";
6
+ import { u as S, a as c, c as l, b as $, l as x, d as L } from "./index-Cp6SD-TQ.js";
7
+ const T = "v1", b = j(`/api/justauth/client/${T}`), D = b.get("/visitor/kingdee/auth/user/auth_code"), V = /* @__PURE__ */ w({
8
8
  __name: "index",
9
- setup(b) {
10
- const { beforeEntryApp: f, entryApp: d } = S(), g = _(() => {
9
+ setup(E) {
10
+ const { beforeEntryApp: f, entryApp: d } = S(), g = y(() => {
11
11
  if (!c.value || !c.value.length) return [];
12
- const o = l.cloneDeep(c.value);
13
- return o.length ? (o.forEach((n) => n.apps = h(n.apps, 4)), o) : [];
12
+ const o = l(c.value);
13
+ return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = h(n.apps, 4)), o) : [] : [];
14
14
  }), h = (o, n) => {
15
15
  const e = [];
16
16
  for (let r = 0; r < o.length; r += n)
@@ -22,8 +22,8 @@ const E = "v1", L = j(`/api/justauth/client/${E}`), T = L.get("/visitor/kingdee/
22
22
  window.confirm("系统资源更新,请刷新系统") && (window.__isAutoCloseApp = !1, window.location.reload());
23
23
  return;
24
24
  }
25
- const e = l.cloneDeep(o);
26
- if ($.innerSet = !0, e.routeUrl) {
25
+ const e = l(o);
26
+ if (x.innerSet = !0, e.routeUrl) {
27
27
  if (o.code === "Ioc") {
28
28
  window.open(e.routeUrl, "_blank");
29
29
  return;
@@ -31,10 +31,10 @@ const E = "v1", L = j(`/api/justauth/client/${E}`), T = L.get("/visitor/kingdee/
31
31
  if (o.code === "wojiacloud") {
32
32
  const t = sessionStorage.getItem("kingdee_token") || "";
33
33
  if (t) {
34
- const [a, s] = await T().run({ accessToken: t });
35
- if (s) {
36
- const i = (s == null ? void 0 : s.auth_code) ?? "";
37
- e.routeUrl = e.routeUrl.includes("?") ? `${e.routeUrl}&code=${i}` : `${e.routeUrl}?code=${i}`;
34
+ const [a, i] = await D().run({ accessToken: t });
35
+ if (i) {
36
+ const s = (i == null ? void 0 : i.auth_code) ?? "";
37
+ e.routeUrl = e.routeUrl.includes("?") ? `${e.routeUrl}&code=${s}` : `${e.routeUrl}?code=${s}`;
38
38
  }
39
39
  }
40
40
  }
@@ -42,20 +42,20 @@ const E = "v1", L = j(`/api/justauth/client/${E}`), T = L.get("/visitor/kingdee/
42
42
  const r = (o == null ? void 0 : o.openType) ?? 1, u = (o == null ? void 0 : o.type) ?? 1;
43
43
  if (r === 1) {
44
44
  if (!await f(o)) return;
45
- const a = I().preTab[o.code], s = (a == null ? void 0 : a.code) ?? "", i = { ...(a == null ? void 0 : a.query) ?? {} };
46
- d({ microApp: e, menuCode: s, route: { query: i } });
45
+ const a = I().preTab[o.code], i = (a == null ? void 0 : a.code) ?? "", s = { ...(a == null ? void 0 : a.query) ?? {} };
46
+ d({ microApp: e, menuCode: i, route: { query: s } });
47
47
  }
48
48
  if (r === 2 && e.routeUrl) {
49
49
  let t = "";
50
- u === 1 ? t = e != null && e.applicationPath ? location.origin + "/" + e.applicationPath + e.routeUrl + "?showLayout=false" : location.origin + e.routeUrl + "?showLayout=false" : u === 2 && (t = D(e.routeUrl)), window.open(t, "_blank");
50
+ u === 1 ? t = e != null && e.applicationPath ? location.origin + "/" + e.applicationPath + e.routeUrl + "?showLayout=false" : location.origin + e.routeUrl + "?showLayout=false" : u === 2 && (t = L(e.routeUrl)), window.open(t, "_blank");
51
51
  }
52
52
  };
53
- return (o, n) => (y(), k(p(A), {
53
+ return (o, n) => (_(), k(p(v), {
54
54
  full: "",
55
- spinning: p(x)
55
+ spinning: p($)
56
56
  }, {
57
57
  default: U(() => [
58
- C(p(v), {
58
+ A(p(C), {
59
59
  appCategorys: g.value,
60
60
  onOpenApp: m
61
61
  }, null, 8, ["appCategorys"])
Binary file