@das-fed/web 6.4.0-dev.6 → 6.4.0-dev.61

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 (75) hide show
  1. package/esm-map.json +4 -1
  2. package/index-BFFZfHrw.js +76 -0
  3. package/index-BFFZfHrw.js.gz +0 -0
  4. package/{index-CeDdJysJ.js → index-C-bQkrPb.js} +1 -1
  5. package/index-De-rAsBw.js +7623 -0
  6. package/index-De-rAsBw.js.gz +0 -0
  7. package/index.js +25 -22
  8. package/package.json +6 -6
  9. package/packages/create-das-web-app/index.js +48 -805
  10. package/packages/create-das-web-app/index.js.gz +0 -0
  11. package/packages/i18n/index.js +76 -31
  12. package/packages/i18n/index.js.gz +0 -0
  13. package/packages/layout/index.js +479 -441
  14. package/packages/layout/index.js.gz +0 -0
  15. package/packages/layout/style.css +2 -2
  16. package/packages/layout/style.css.gz +0 -0
  17. package/packages/main-app-framework/index-BGSIVLYr.js +76 -0
  18. package/packages/main-app-framework/index-BGSIVLYr.js.gz +0 -0
  19. package/packages/main-app-framework/{index-CxDxCkSy.js → index-C4oEPCar.js} +1 -1
  20. package/packages/main-app-framework/index-D-7PMhYr.js +6241 -0
  21. package/packages/main-app-framework/index-D-7PMhYr.js.gz +0 -0
  22. package/packages/main-app-framework/index.js +3 -2
  23. package/packages/main-app-framework/style.css +1 -1
  24. package/packages/main-app-framework/style.css.gz +0 -0
  25. package/packages/micro-frontend/index.js +181 -164
  26. package/packages/micro-frontend/index.js.gz +0 -0
  27. package/packages/micro-frontend/style.css +1 -1
  28. package/packages/style/style.css +1 -1
  29. package/packages/style/style.css.gz +0 -0
  30. package/packages/theme/index.js.gz +0 -0
  31. package/style.css +2 -2
  32. package/style.css.gz +0 -0
  33. package/types/create-das-web-app/index.d.ts +1 -1
  34. package/types/i18n/global.d.ts +118 -0
  35. package/types/i18n/index.d.ts +6 -4
  36. package/types/layout/index.d.ts +1 -1
  37. package/types/layout/store/index.d.ts +6 -1
  38. package/types/layout/store/menu.d.ts +2 -0
  39. package/types/layout/store/nav.d.ts +1 -0
  40. package/types/layout/store/tab.d.ts +1 -0
  41. package/types/main-app-framework/business/alarm/use-alarm.d.ts +4 -4
  42. package/types/main-app-framework/business/video-link/api.d.ts +2 -0
  43. package/types/main-app-framework/business/video-link/index.d.ts +3 -3
  44. package/types/main-app-framework/business/video-link/video-dialog/hooks/PlayerProvider.d.ts +3 -3
  45. package/types/main-app-framework/components/iframe-page/index.d.ts +3 -0
  46. package/types/main-app-framework/components/index.d.ts +1 -0
  47. package/types/main-app-framework/components/person-set-dialog/index.d.ts +1 -1
  48. package/types/main-app-framework/constant/index.d.ts +1 -1
  49. package/types/main-app-framework/i18n/index.d.ts +473 -0
  50. package/types/main-app-framework/index.d.ts +2 -1
  51. package/types/main-app-framework/init-config/get-nav-config/api.d.ts +2 -0
  52. package/types/main-app-framework/init-config/get-nav-config/index.d.ts +4 -3
  53. package/types/main-app-framework/init-config/get-project-config/api.d.ts +3 -2
  54. package/types/main-app-framework/init-config/get-system-config/api.d.ts +2 -0
  55. package/types/main-app-framework/init-config/get-system-config/index.d.ts +4 -4
  56. package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +3 -3
  57. package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +2 -2
  58. package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +4 -4
  59. package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +3 -3
  60. package/types/main-app-framework/init-platform/index.d.ts +1 -1
  61. package/types/main-app-framework/utils/src/set-common-info.d.ts +2 -0
  62. package/types/micro-frontend/store.d.ts +5 -5
  63. package/types/theme/index.d.ts +1 -1
  64. package/index-BBbzRiUk.js +0 -68
  65. package/index-BBbzRiUk.js.gz +0 -0
  66. package/index-C8iO4QVt.js +0 -7884
  67. package/index-C8iO4QVt.js.gz +0 -0
  68. package/index-GDnK0PX4.js +0 -70
  69. package/index-GDnK0PX4.js.gz +0 -0
  70. package/packages/main-app-framework/index-CB6yJ78W.js +0 -68
  71. package/packages/main-app-framework/index-CB6yJ78W.js.gz +0 -0
  72. package/packages/main-app-framework/index-CIYEqxNR.js +0 -5851
  73. package/packages/main-app-framework/index-CIYEqxNR.js.gz +0 -0
  74. package/packages/main-app-framework/index-DHvYQRkj.js +0 -70
  75. package/packages/main-app-framework/index-DHvYQRkj.js.gz +0 -0
package/esm-map.json CHANGED
@@ -24,5 +24,8 @@
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"
27
+ "mainAppFramework": "/packages/main-app-framework/index",
28
+ "layoutData": "/packages/layout/index",
29
+ "setLangRule": "/packages/i18n/index",
30
+ "customLangeData": "/packages/i18n/index"
28
31
  }
@@ -0,0 +1,76 @@
1
+ import { defineComponent as k, computed as p, withDirectives as v, openBlock as A, createBlock as U, unref as c, withCtx as C, createVNode as S, vShow as I } from "vue";
2
+ import { layoutData as j } from "@das-fed/web/packages/layout/index";
3
+ import { t as D } from "@das-fed/web/packages/i18n/index";
4
+ import { DasAppContainer as $ } from "@das-fed/ui/packages/business-components/app-container/index";
5
+ import { DasSpin as x } from "@das-fed/ui/packages/components/spin/index";
6
+ import { getTabInfo as T } from "@das-fed/utils/common-info";
7
+ import { setShowLayout as b } from "@das-fed/utils/common-tools";
8
+ import { createService as E } from "@das-fed/utils/create-api-service";
9
+ import { u as L, p as q, a as u, c as f, b as B, l as P, d as K } from "./index-De-rAsBw.js";
10
+ const M = "v1", N = E(`/api/justauth/client/${M}`), O = N.get("/visitor/kingdee/auth/user/auth_code"), Z = /* @__PURE__ */ k({
11
+ __name: "index",
12
+ setup(V) {
13
+ const { beforeEntryApp: d, entryApp: m } = L(), h = p(() => q.value.skinStyle), g = p(() => !!j.menu.items.length), w = p(() => {
14
+ if (!u.value || !u.value.length) return [];
15
+ const o = f(u.value);
16
+ return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = y(n.apps, 4)), o) : [] : [];
17
+ }), y = (o, n) => {
18
+ const e = [];
19
+ for (let r = 0; r < o.length; r += n)
20
+ e.push(o.slice(r, r + n));
21
+ return e;
22
+ }, _ = async (o) => {
23
+ if (!o) return;
24
+ if (!sessionStorage.getItem("projectInfo")) {
25
+ window.confirm(D("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
26
+ return;
27
+ }
28
+ const e = f(o);
29
+ if (P.innerSet = !0, e.routeUrl) {
30
+ if (o.code === "Ioc") {
31
+ window.open(e.routeUrl, "_blank");
32
+ return;
33
+ }
34
+ if (o.code === "wojiacloud") {
35
+ const t = sessionStorage.getItem("kingdee_token") || "";
36
+ if (t) {
37
+ const [i, a] = await O().run({ accessToken: t });
38
+ if (a) {
39
+ const s = (a == null ? void 0 : a.auth_code) ?? "";
40
+ e.routeUrl = e.routeUrl.includes("?") ? `${e.routeUrl}&code=${s}` : `${e.routeUrl}?code=${s}`;
41
+ }
42
+ }
43
+ }
44
+ }
45
+ const r = (o == null ? void 0 : o.openType) ?? 1, l = (o == null ? void 0 : o.type) ?? 1;
46
+ if (r === 1) {
47
+ if (!await d(o)) return;
48
+ const i = T().preTab[o.code], a = (i == null ? void 0 : i.code) ?? "", s = { ...(i == null ? void 0 : i.query) ?? {} };
49
+ m({ microApp: e, menuCode: a, route: { query: s } });
50
+ }
51
+ if (r === 2 && e.routeUrl) {
52
+ let t = "";
53
+ l === 1 ? (t = e != null && e.applicationPath ? location.origin + "/" + e.applicationPath + e.routeUrl : location.origin + e.routeUrl, t = b(t)) : l === 2 && (t = K(e.routeUrl)), window.open(t, "_blank");
54
+ }
55
+ };
56
+ return (o, n) => v((A(), U(c(x), {
57
+ full: "",
58
+ spinning: c(B)
59
+ }, {
60
+ default: C(() => [
61
+ S(c($), {
62
+ theme: h.value,
63
+ appCategorys: w.value,
64
+ onOpenApp: _
65
+ }, null, 8, ["theme", "appCategorys"])
66
+ ]),
67
+ _: 1
68
+ /* STABLE */
69
+ }, 8, ["spinning"])), [
70
+ [I, !g.value]
71
+ ]);
72
+ }
73
+ });
74
+ export {
75
+ Z as default
76
+ };
Binary file
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as r } from "vue";
2
- import { _ as c } from "./index-C8iO4QVt.js";
2
+ import { _ as c } from "./index-De-rAsBw.js";
3
3
  const o = {};
4
4
  function t(n, _) {
5
5
  return e(), r("div");