@das-fed/web 6.4.0-test.2 → 6.4.0-test.3

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 (40) hide show
  1. package/esm-map.json +2 -1
  2. package/i18n-collection/en.js +93 -0
  3. package/i18n-collection/zh-CN.js +93 -0
  4. package/{index-3y8fHBtE.js → index-BZXSGAhJ.js} +1 -1
  5. package/index-CQaVm8TE.js +7446 -0
  6. package/index-CQaVm8TE.js.gz +0 -0
  7. package/{packages/main-app-framework/index-Xn4wzM8V.js → index-CfwRXu_Z.js} +23 -22
  8. package/index-CfwRXu_Z.js.gz +0 -0
  9. package/index.js +18 -17
  10. package/package.json +6 -6
  11. package/packages/i18n/index.js +35 -29
  12. package/packages/i18n/index.js.gz +0 -0
  13. package/packages/layout/index.js +428 -401
  14. package/packages/layout/index.js.gz +0 -0
  15. package/packages/main-app-framework/{index-DnFSz1TN.js → index-BK67qqJm.js} +1 -1
  16. package/{index-DXnYb5jk.js → packages/main-app-framework/index-CZ__D8bV.js} +23 -22
  17. package/packages/main-app-framework/index-CZ__D8bV.js.gz +0 -0
  18. package/packages/main-app-framework/index-CzLHTflM.js +6099 -0
  19. package/packages/main-app-framework/index-CzLHTflM.js.gz +0 -0
  20. package/packages/main-app-framework/index.js +1 -1
  21. package/packages/main-app-framework/style.css +1 -1
  22. package/packages/main-app-framework/style.css.gz +0 -0
  23. package/packages/micro-frontend/index.js +162 -143
  24. package/packages/micro-frontend/index.js.gz +0 -0
  25. package/style.css +1 -1
  26. package/style.css.gz +0 -0
  27. package/types/i18n/index.d.ts +2 -1
  28. package/types/layout/store/index.d.ts +5 -0
  29. package/types/layout/store/menu.d.ts +2 -0
  30. package/types/layout/store/nav.d.ts +1 -0
  31. package/types/layout/store/tab.d.ts +1 -0
  32. package/types/main-app-framework/init-config/get-nav-config/api.d.ts +2 -0
  33. package/types/main-app-framework/init-config/get-nav-config/index.d.ts +3 -2
  34. package/types/main-app-framework/init-config/get-system-config/index.d.ts +2 -2
  35. package/index-DEYJwN2T.js +0 -7173
  36. package/index-DEYJwN2T.js.gz +0 -0
  37. package/index-DXnYb5jk.js.gz +0 -0
  38. package/packages/main-app-framework/index-Bo4ASgsm.js +0 -5859
  39. package/packages/main-app-framework/index-Bo4ASgsm.js.gz +0 -0
  40. package/packages/main-app-framework/index-Xn4wzM8V.js.gz +0 -0
Binary file
@@ -1,15 +1,16 @@
1
1
  import { defineComponent as _, computed as l, withDirectives as k, openBlock as v, createBlock as A, unref as p, withCtx as U, createVNode as C, vShow as S } from "vue";
2
- import { DasAppContainer as I } from "@das-fed/ui/packages/business-components/app-container/index";
3
- import { DasSpin as j } from "@das-fed/ui/packages/components/spin/index";
4
- import { layoutData as D } from "@das-fed/web/packages/layout/index";
5
- import { getTabInfo as $ } from "@das-fed/utils/common-info";
6
- import { setShowLayout as x } from "@das-fed/utils/common-tools";
7
- import { createService as T } from "@das-fed/utils/create-api-service";
8
- import { u as b, a as c, c as f, b as E, l as L, d as q } from "./index-Bo4ASgsm.js";
9
- const B = "v1", P = T(`/api/justauth/client/${B}`), K = P.get("/visitor/kingdee/auth/user/auth_code"), R = /* @__PURE__ */ _({
2
+ import { layoutData as I } from "@das-fed/web/packages/layout/index";
3
+ import { t as j } from "@das-fed/web/packages/i18n/index";
4
+ import { DasAppContainer as D } from "@das-fed/ui/packages/business-components/app-container/index";
5
+ import { DasSpin as $ } from "@das-fed/ui/packages/components/spin/index";
6
+ import { getTabInfo as x } from "@das-fed/utils/common-info";
7
+ import { setShowLayout as T } from "@das-fed/utils/common-tools";
8
+ import { createService as b } from "@das-fed/utils/create-api-service";
9
+ import { u as E, a as c, c as f, b as L, l as q, d as B } from "./index-CQaVm8TE.js";
10
+ const P = "v1", K = b(`/api/justauth/client/${P}`), N = K.get("/visitor/kingdee/auth/user/auth_code"), X = /* @__PURE__ */ _({
10
11
  __name: "index",
11
- setup(N) {
12
- const { beforeEntryApp: d, entryApp: g } = b(), h = l(() => !!D.menu.items.length), m = l(() => {
12
+ setup(O) {
13
+ const { beforeEntryApp: d, entryApp: m } = E(), g = l(() => !!I.menu.items.length), h = l(() => {
13
14
  if (!c.value || !c.value.length) return [];
14
15
  const o = f(c.value);
15
16
  return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = w(n.apps, 4)), o) : [] : [];
@@ -21,11 +22,11 @@ const B = "v1", P = T(`/api/justauth/client/${B}`), K = P.get("/visitor/kingdee/
21
22
  }, y = async (o) => {
22
23
  if (!o) return;
23
24
  if (!sessionStorage.getItem("projectInfo")) {
24
- window.confirm("系统资源更新,请刷新系统") && (window.__isAutoCloseApp = !1, window.location.reload());
25
+ window.confirm(j("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
25
26
  return;
26
27
  }
27
28
  const t = f(o);
28
- if (L.innerSet = !0, t.routeUrl) {
29
+ if (q.innerSet = !0, t.routeUrl) {
29
30
  if (o.code === "Ioc") {
30
31
  window.open(t.routeUrl, "_blank");
31
32
  return;
@@ -33,7 +34,7 @@ const B = "v1", P = T(`/api/justauth/client/${B}`), K = P.get("/visitor/kingdee/
33
34
  if (o.code === "wojiacloud") {
34
35
  const e = sessionStorage.getItem("kingdee_token") || "";
35
36
  if (e) {
36
- const [i, a] = await K().run({ accessToken: e });
37
+ const [i, a] = await N().run({ accessToken: e });
37
38
  if (a) {
38
39
  const s = (a == null ? void 0 : a.auth_code) ?? "";
39
40
  t.routeUrl = t.routeUrl.includes("?") ? `${t.routeUrl}&code=${s}` : `${t.routeUrl}?code=${s}`;
@@ -44,31 +45,31 @@ const B = "v1", P = T(`/api/justauth/client/${B}`), K = P.get("/visitor/kingdee/
44
45
  const r = (o == null ? void 0 : o.openType) ?? 1, u = (o == null ? void 0 : o.type) ?? 1;
45
46
  if (r === 1) {
46
47
  if (!await d(o)) return;
47
- const i = $().preTab[o.code], a = (i == null ? void 0 : i.code) ?? "", s = { ...(i == null ? void 0 : i.query) ?? {} };
48
- g({ microApp: t, menuCode: a, route: { query: s } });
48
+ const i = x().preTab[o.code], a = (i == null ? void 0 : i.code) ?? "", s = { ...(i == null ? void 0 : i.query) ?? {} };
49
+ m({ microApp: t, menuCode: a, route: { query: s } });
49
50
  }
50
51
  if (r === 2 && t.routeUrl) {
51
52
  let e = "";
52
- u === 1 ? (e = t != null && t.applicationPath ? location.origin + "/" + t.applicationPath + t.routeUrl : location.origin + t.routeUrl, e = x(e)) : u === 2 && (e = q(t.routeUrl)), window.open(e, "_blank");
53
+ u === 1 ? (e = t != null && t.applicationPath ? location.origin + "/" + t.applicationPath + t.routeUrl : location.origin + t.routeUrl, e = T(e)) : u === 2 && (e = B(t.routeUrl)), window.open(e, "_blank");
53
54
  }
54
55
  };
55
- return (o, n) => k((v(), A(p(j), {
56
+ return (o, n) => k((v(), A(p($), {
56
57
  full: "",
57
- spinning: p(E)
58
+ spinning: p(L)
58
59
  }, {
59
60
  default: U(() => [
60
- C(p(I), {
61
- appCategorys: m.value,
61
+ C(p(D), {
62
+ appCategorys: h.value,
62
63
  onOpenApp: y
63
64
  }, null, 8, ["appCategorys"])
64
65
  ]),
65
66
  _: 1
66
67
  /* STABLE */
67
68
  }, 8, ["spinning"])), [
68
- [S, !h.value]
69
+ [S, !g.value]
69
70
  ]);
70
71
  }
71
72
  });
72
73
  export {
73
- R as default
74
+ X as default
74
75
  };
Binary file
package/index.js CHANGED
@@ -1,30 +1,31 @@
1
- import { F as s, w as t, y as n, x as i, z as r, e as p, k as u, p as o, g as m, j as g, o as D, r as l, v as b, f as h, i as A, C as T, D as c, m as y, A as L, B as W, G as M, E as R, s as F, h as I, n as V, q as f, t as k } from "./index-DEYJwN2T.js";
1
+ import { G as s, x as t, z as n, y as i, A as r, e as u, k as p, q as o, g, j as m, p as l, v as D, w as b, f as h, i as A, D as L, E as T, n as c, B as y, C as R, H as W, F as M, s as F, h as I, m as V, o as f, r as k, t as v } from "./index-CQaVm8TE.js";
2
2
  export {
3
3
  s as DasMainAppLayout,
4
4
  t as DasWebLayout,
5
5
  n as DasWebMenu,
6
6
  i as DasWebNav,
7
7
  r as DasWebTabs,
8
- p as createDasWebApp,
9
- u as currentLang,
8
+ u as createDasWebApp,
9
+ p as currentLang,
10
10
  o as currentTheme,
11
- m as getI18nRule,
12
- g as getLang,
13
- D as getThemeRule,
14
- l as getVar,
11
+ g as getI18nRule,
12
+ m as getLang,
13
+ l as getThemeRule,
14
+ D as getVar,
15
15
  b as getVarValue,
16
16
  h as i18n,
17
17
  A as initI18n,
18
- T as initMainApp,
19
- c as initMicroApp,
20
- y as initTheme,
21
- L as layout,
22
- W as layoutData,
23
- M as mainAppFramework,
24
- R as microFrontend,
18
+ L as initMainApp,
19
+ T as initMicroApp,
20
+ c as initTheme,
21
+ y as layout,
22
+ R as layoutData,
23
+ W as mainAppFramework,
24
+ M as microFrontend,
25
25
  F as setI18nRule,
26
26
  I as setLang,
27
- V as setTheme,
28
- f as setThemeRule,
29
- k as t
27
+ V as setLangRule,
28
+ f as setTheme,
29
+ k as setThemeRule,
30
+ v as t
30
31
  };
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@das-fed/web",
3
- "version": "6.4.0-test.2",
3
+ "version": "6.4.0-test.3",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "dependencies": {
7
- "@das-fed/ui": "6.4.0-test.2",
8
- "@das-fed/utils": "6.4.0-test.2",
9
- "@das-fed/web": "6.4.0-test.2",
10
- "@das-fed/web-components": "6.4.0-test.2",
7
+ "@das-fed/ui": "6.4.0-test.3",
8
+ "@das-fed/utils": "6.4.0-test.3",
9
+ "@das-fed/web": "6.4.0-test.3",
10
+ "@das-fed/web-components": "6.4.0-test.3",
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-test.2",
21
+ "@das-fed/cli": "6.4.0-test.3",
22
22
  "@types/lodash": "^4.14.194",
23
23
  "@types/lodash-es": "^4.17.12",
24
24
  "@vitejs/plugin-vue": "^5.1.0",
@@ -1,34 +1,40 @@
1
- import { reactive as r, ref as b, computed as f } from "vue";
2
- const g = r({}), u = r({}), l = b("zh-CN"), m = "dasI18n", i = (n, s) => {
3
- const t = s === "global", a = !t;
1
+ import { reactive as u, ref as f, computed as b } from "vue";
2
+ const a = u({}), i = u({}), c = f("zh-CN"), m = "dasI18n", g = (n, l) => {
3
+ const t = l === "global", s = !t;
4
+ for (const o in n)
5
+ t && (i[o] = n[o]), s && (a[o] = n[o]);
6
+ }, z = (n, l, t) => {
7
+ const s = t === "global", o = !s;
4
8
  for (const e in n)
5
- t && (u[e] = n[e]), a && (g[e] = n[e]);
6
- }, z = async (n) => {
7
- var a, e;
8
- const s = window[m];
9
- s && i(s, "global");
10
- let t = Object.assign(((a = n == null ? void 0 : n.i18n) == null ? void 0 : a.glob) || {});
11
- (e = n == null ? void 0 : n.microApps) == null || e.map((c) => {
12
- var o;
13
- t = Object.assign(t, ((o = c.i18n) == null ? void 0 : o.glob) || {});
14
- }), Object.values(t).filter((c) => !!c).flat().map((c) => i(c));
15
- }, I = (n, ...s) => f(() => {
16
- const t = u[n] || g[n] || n;
9
+ s && (i[e][l] = n[e]), o && (a[e][l] = n[e]);
10
+ }, C = async (n) => {
11
+ var s, o;
12
+ const l = window[m];
13
+ l && g(l, "global");
14
+ let t = Object.assign(((s = n == null ? void 0 : n.i18n) == null ? void 0 : s.glob) || {});
15
+ (o = n == null ? void 0 : n.microApps) == null || o.map((e) => {
16
+ var r;
17
+ t = Object.assign(t, ((r = e.i18n) == null ? void 0 : r.glob) || {});
18
+ }), Object.values(t).filter((e) => !!e).flat().map((e) => g(e));
19
+ }, I = (n, ...l) => b(() => {
20
+ let t = i[n] || a[n] || n;
17
21
  if (t === n) return n;
18
- let a = t[l.value];
19
- return l.value === "zh-CN" && t["zh-cn"] && !t["zh-CN"] && (a = t["zh-cn"]), s.map((e, c) => {
20
- a = a.replace(`$${c}`, e);
21
- }), a;
22
- }), v = I, D = (n, ...s) => v(n, ...s).value, L = (n) => {
23
- l.value = n;
24
- }, C = () => l;
22
+ typeof t == "string" && (t = { "zh-CN": t });
23
+ let s = t[c.value];
24
+ return c.value === "zh-CN" && t["zh-cn"] && !t["zh-CN"] && (s = t["zh-cn"]), l.map((o, e) => {
25
+ s = s.replace(`$${e}`, o);
26
+ }), s;
27
+ }), h = I, L = (n, ...l) => h(n, ...l).value, D = (n) => {
28
+ c.value = n;
29
+ }, N = () => c;
25
30
  export {
26
- l as currentLang,
31
+ c as currentLang,
27
32
  I as getI18nRule,
28
- C as getLang,
29
- v as i18n,
30
- z as initI18n,
31
- i as setI18nRule,
32
- L as setLang,
33
- D as t
33
+ N as getLang,
34
+ h as i18n,
35
+ C as initI18n,
36
+ g as setI18nRule,
37
+ D as setLang,
38
+ z as setLangRule,
39
+ L as t
34
40
  };
Binary file