@das-fed/web 6.4.0-dev.2 → 6.4.0-dev.21

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 (57) hide show
  1. package/esm-map.json +1 -2
  2. package/{packages/main-app-framework/index-CRT8yHn-.js → index-C9Z5Et6m.js} +1 -1
  3. package/index-CtOlfmIU.js +7088 -0
  4. package/index-CtOlfmIU.js.gz +0 -0
  5. package/{packages/main-app-framework/index-Twj2RXRy.js → index-D6BMoZho.js} +14 -14
  6. package/index-D6BMoZho.js.gz +0 -0
  7. package/index-DNqfV3E9.js +71 -0
  8. package/index-DNqfV3E9.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 +48 -807
  13. package/packages/create-das-web-app/index.js.gz +0 -0
  14. package/packages/i18n/config.js +1 -0
  15. package/packages/i18n/index.js.gz +0 -0
  16. package/packages/layout/config.js +1 -0
  17. package/packages/layout/index.js +298 -291
  18. package/packages/layout/index.js.gz +0 -0
  19. package/packages/layout/style.css +2 -2
  20. package/packages/layout/style.css.gz +0 -0
  21. package/packages/main-app-framework/config.js +1 -0
  22. package/{index-CC5hN73H.js → packages/main-app-framework/index-CGRKqP1O.js} +1 -1
  23. package/packages/main-app-framework/index-IzpOTZ0u.js +5779 -0
  24. package/packages/main-app-framework/index-IzpOTZ0u.js.gz +0 -0
  25. package/packages/main-app-framework/index-fj8M6ijq.js +71 -0
  26. package/packages/main-app-framework/index-fj8M6ijq.js.gz +0 -0
  27. package/{index-D4LFa1We.js → packages/main-app-framework/index-t4FWMW__.js} +14 -14
  28. package/packages/main-app-framework/index-t4FWMW__.js.gz +0 -0
  29. package/packages/main-app-framework/index.js +3 -2
  30. package/packages/main-app-framework/style.css +1 -1
  31. package/packages/main-app-framework/style.css.gz +0 -0
  32. package/packages/micro-frontend/config.js +1 -0
  33. package/packages/micro-frontend/index.js +253 -243
  34. package/packages/micro-frontend/index.js.gz +0 -0
  35. package/packages/micro-frontend/style.css +1 -1
  36. package/packages/style/config.js +1 -0
  37. package/packages/style/style.css +1 -1
  38. package/packages/style/style.css.gz +0 -0
  39. package/packages/theme/config.js +1 -0
  40. package/packages/theme/index.js +24 -24
  41. package/packages/theme/index.js.gz +0 -0
  42. package/style.css +2 -2
  43. package/style.css.gz +0 -0
  44. package/types/main-app-framework/business/video-link/video-dialog/hooks/PlayerProvider.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/init-layout/hooks/nav-slots/use-user-command.d.ts +2 -2
  47. package/types/micro-frontend/index.d.ts +1 -1
  48. package/index-BqgahaIi.js +0 -11086
  49. package/index-BqgahaIi.js.gz +0 -0
  50. package/index-D4LFa1We.js.gz +0 -0
  51. package/index-DpLK467K.js +0 -70
  52. package/index-DpLK467K.js.gz +0 -0
  53. package/packages/main-app-framework/index-2WWk8ggi.js +0 -9022
  54. package/packages/main-app-framework/index-2WWk8ggi.js.gz +0 -0
  55. package/packages/main-app-framework/index-BqkWKMMe.js +0 -70
  56. package/packages/main-app-framework/index-BqkWKMMe.js.gz +0 -0
  57. package/packages/main-app-framework/index-Twj2RXRy.js.gz +0 -0
Binary file
@@ -2,26 +2,26 @@ 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";
6
- import { getToken as j, getPersonalInfo as B, getProjectInfo as D } from "@das-fed/utils/common-info";
7
- import { getUrlParams as E } from "@das-fed/utils/common-tools";
8
- const N = {
5
+ import { I as R, e as b, _ as L } from "./index-CtOlfmIU.js";
6
+ import { getToken as M, getPersonalInfo as j, getProjectInfo as B } from "@das-fed/utils/common-info";
7
+ import { getUrlParams as D } from "@das-fed/utils/common-tools";
8
+ const E = {
9
9
  key: 0,
10
10
  class: "iframe-container"
11
- }, T = ["src"], U = /* @__PURE__ */ v({
11
+ }, N = ["src"], T = /* @__PURE__ */ v({
12
12
  __name: "index",
13
- setup(V) {
13
+ setup(U) {
14
14
  const t = r(""), n = r(!0);
15
15
  C.tab.addEventListener("onPageRefresh", async (e) => {
16
- e && e.path === R && (L(e.applicationCode, [e.code]), n.value = !1, await u(), n.value = !0);
16
+ e && e.path === R && (b(e.applicationCode, [e.code]), n.value = !1, await u(), n.value = !0);
17
17
  });
18
18
  const a = r(!1), i = r(null), o = r(!1), f = () => {
19
19
  var e, s;
20
20
  o.value && (e = i.value) != null && e.contentWindow && ((s = i.value.contentWindow) == null || s.postMessage(
21
21
  {
22
- token: j(),
23
- userInfo: B(),
24
- projectInfo: D()
22
+ token: M(),
23
+ userInfo: j(),
24
+ projectInfo: B()
25
25
  },
26
26
  t.value
27
27
  ));
@@ -36,10 +36,10 @@ const N = {
36
36
  o.value = !0, f();
37
37
  };
38
38
  return _(() => {
39
- a.value = !0, t.value = E(location.href, "iframeSrc");
39
+ a.value = !0, t.value = D(location.href, "iframeSrc");
40
40
  }), h(() => {
41
41
  o.value = !1, a.value = !1;
42
- }), (e, s) => a.value && n.value ? (c(), l("div", N, [
42
+ }), (e, s) => a.value && n.value ? (c(), l("div", E, [
43
43
  w(g(S), {
44
44
  spinning: !o.value
45
45
  }, {
@@ -53,7 +53,7 @@ const N = {
53
53
  src: t.value,
54
54
  key: t.value,
55
55
  onLoad: d
56
- }, null, 40, T)), [
56
+ }, null, 40, N)), [
57
57
  [y, o.value]
58
58
  ])
59
59
  ]),
@@ -62,7 +62,7 @@ const N = {
62
62
  }, 8, ["spinning"])
63
63
  ])) : I("v-if", !0);
64
64
  }
65
- }), H = /* @__PURE__ */ M(U, [["__scopeId", "data-v-9d185d90"]]);
65
+ }), H = /* @__PURE__ */ L(T, [["__scopeId", "data-v-98dbb97f"]]);
66
66
  export {
67
67
  H as default
68
68
  };
Binary file
@@ -0,0 +1,71 @@
1
+ import { defineComponent as _, computed as w, openBlock as y, 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
+ import { getTabInfo as I } from "@das-fed/utils/common-info";
5
+ import { setShowLayout as S } from "@das-fed/utils/common-tools";
6
+ import { createService as j } from "@das-fed/utils/create-api-service";
7
+ import { u as $, a as c, c as l, b as x, l as T, d as b } from "./index-CtOlfmIU.js";
8
+ const D = "v1", E = j(`/api/justauth/client/${D}`), L = E.get("/visitor/kingdee/auth/user/auth_code"), G = /* @__PURE__ */ _({
9
+ __name: "index",
10
+ setup(q) {
11
+ const { beforeEntryApp: f, entryApp: d } = $(), g = w(() => {
12
+ if (!c.value || !c.value.length) return [];
13
+ const o = l(c.value);
14
+ return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = h(n.apps, 4)), o) : [] : [];
15
+ }), h = (o, n) => {
16
+ const e = [];
17
+ for (let r = 0; r < o.length; r += n)
18
+ e.push(o.slice(r, r + n));
19
+ return e;
20
+ }, m = async (o) => {
21
+ if (!o) return;
22
+ if (!sessionStorage.getItem("projectInfo")) {
23
+ window.confirm("系统资源更新,请刷新系统") && (window.__isAutoCloseApp = !1, window.location.reload());
24
+ return;
25
+ }
26
+ const e = l(o);
27
+ if (T.innerSet = !0, e.routeUrl) {
28
+ if (o.code === "Ioc") {
29
+ window.open(e.routeUrl, "_blank");
30
+ return;
31
+ }
32
+ if (o.code === "wojiacloud") {
33
+ const t = sessionStorage.getItem("kingdee_token") || "";
34
+ if (t) {
35
+ const [i, a] = await L().run({ accessToken: t });
36
+ if (a) {
37
+ const s = (a == null ? void 0 : a.auth_code) ?? "";
38
+ e.routeUrl = e.routeUrl.includes("?") ? `${e.routeUrl}&code=${s}` : `${e.routeUrl}?code=${s}`;
39
+ }
40
+ }
41
+ }
42
+ }
43
+ const r = (o == null ? void 0 : o.openType) ?? 1, u = (o == null ? void 0 : o.type) ?? 1;
44
+ if (r === 1) {
45
+ if (!await f(o)) return;
46
+ const i = I().preTab[o.code], a = (i == null ? void 0 : i.code) ?? "", s = { ...(i == null ? void 0 : i.query) ?? {} };
47
+ d({ microApp: e, menuCode: a, route: { query: s } });
48
+ }
49
+ if (r === 2 && e.routeUrl) {
50
+ let t = "";
51
+ u === 1 ? (t = e != null && e.applicationPath ? location.origin + "/" + e.applicationPath + e.routeUrl : location.origin + e.routeUrl, t = S(t)) : u === 2 && (t = b(e.routeUrl)), window.open(t, "_blank");
52
+ }
53
+ };
54
+ return (o, n) => (y(), k(p(v), {
55
+ full: "",
56
+ spinning: p(x)
57
+ }, {
58
+ default: U(() => [
59
+ A(p(C), {
60
+ appCategorys: g.value,
61
+ onOpenApp: m
62
+ }, null, 8, ["appCategorys"])
63
+ ]),
64
+ _: 1
65
+ /* STABLE */
66
+ }, 8, ["spinning"]));
67
+ }
68
+ });
69
+ export {
70
+ G as default
71
+ };
Binary file
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { F as s, x as t, z as n, y as i, A as r, f as p, m as u, q as m, g as o, k as g, p as D, v as b, w as h, h as l, i as A, C as T, D as c, n as L, B as W, G as y, E as M, s as R, j as F, o as I, r as V, t as f } from "./index-BqgahaIi.js";
1
+ import { F as s, x as t, z as n, y as i, A as r, f as p, m as u, q as m, g as o, k as g, p as D, v as b, w as h, h as l, i as A, C as T, D as c, n as L, B as W, G as y, E as M, s as R, j as F, o as I, r as V, t as f } from "./index-CtOlfmIU.js";
2
2
  export {
3
3
  s as DasMainAppLayout,
4
4
  t as DasWebLayout,
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@das-fed/web",
3
- "version": "6.4.0-dev.2",
3
+ "version": "6.4.0-dev.21",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "dependencies": {
7
- "@das-fed/ui": "6.4.0-dev.2",
8
- "@das-fed/utils": "6.4.0-dev.2",
9
- "@das-fed/web": "6.4.0-dev.2",
10
- "@das-fed/web-components": "6.4.0-dev.2",
7
+ "@das-fed/ui": "6.4.0-dev.21",
8
+ "@das-fed/utils": "6.4.0-dev.21",
9
+ "@das-fed/web": "6.4.0-dev.21",
10
+ "@das-fed/web-components": "6.4.0-dev.21",
11
11
  "@microsoft/signalr": "^8.0.7",
12
12
  "@vueuse/core": "^9.13.0",
13
13
  "animate.css": "^4.1.1",
@@ -18,7 +18,7 @@
18
18
  "vue-router": "^4.4.0"
19
19
  },
20
20
  "devDependencies": {
21
- "@das-fed/cli": "6.4.0-dev.2",
21
+ "@das-fed/cli": "6.4.0-dev.21",
22
22
  "@types/lodash": "^4.14.194",
23
23
  "@types/lodash-es": "^4.17.12",
24
24
  "@vitejs/plugin-vue": "^5.1.0",
@@ -0,0 +1 @@
1
+ window.config = {}