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

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 (61) hide show
  1. package/esm-map.json +2 -1
  2. package/{packages/main-app-framework/index-CBrBve1k.js → index-3y8fHBtE.js} +1 -1
  3. package/{index-LTwaM8dS.js → index-DEYJwN2T.js} +2617 -2523
  4. package/index-DEYJwN2T.js.gz +0 -0
  5. package/index-DXnYb5jk.js +74 -0
  6. package/index-DXnYb5jk.js.gz +0 -0
  7. package/index.js +16 -15
  8. package/package.json +6 -6
  9. package/packages/create-das-web-app/index.js.gz +0 -0
  10. package/packages/i18n/index.js.gz +0 -0
  11. package/packages/layout/index.js +352 -347
  12. package/packages/layout/index.js.gz +0 -0
  13. package/packages/layout/style.css +2 -2
  14. package/packages/layout/style.css.gz +0 -0
  15. package/packages/main-app-framework/{index-DF7V-TBl.js → index-Bo4ASgsm.js} +2423 -2334
  16. package/packages/main-app-framework/index-Bo4ASgsm.js.gz +0 -0
  17. package/{index-D_CiHfGN.js → packages/main-app-framework/index-DnFSz1TN.js} +1 -1
  18. package/packages/main-app-framework/index-Xn4wzM8V.js +74 -0
  19. package/packages/main-app-framework/index-Xn4wzM8V.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 +18 -30
  24. package/packages/micro-frontend/index.js.gz +0 -0
  25. package/packages/micro-frontend/style.css +1 -1
  26. package/packages/style/style.css +1 -1
  27. package/packages/style/style.css.gz +0 -0
  28. package/packages/theme/index.js.gz +0 -0
  29. package/style.css +2 -2
  30. package/style.css.gz +0 -0
  31. package/types/create-das-web-app/index.d.ts +1 -1
  32. package/types/i18n/index.d.ts +2 -2
  33. package/types/layout/index.d.ts +1 -1
  34. package/types/layout/store/index.d.ts +1 -1
  35. package/types/main-app-framework/business/alarm/use-alarm.d.ts +4 -4
  36. package/types/main-app-framework/business/video-link/api.d.ts +2 -0
  37. package/types/main-app-framework/business/video-link/index.d.ts +3 -3
  38. package/types/main-app-framework/business/video-link/video-dialog/hooks/PlayerProvider.d.ts +3 -3
  39. package/types/main-app-framework/components/iframe-page/index.d.ts +3 -0
  40. package/types/main-app-framework/components/index.d.ts +1 -0
  41. package/types/main-app-framework/components/person-set-dialog/index.d.ts +1 -1
  42. package/types/main-app-framework/index.d.ts +1 -1
  43. package/types/main-app-framework/init-config/get-nav-config/index.d.ts +2 -2
  44. package/types/main-app-framework/init-config/get-system-config/index.d.ts +2 -2
  45. package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +3 -3
  46. package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +2 -2
  47. package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +4 -4
  48. package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +3 -3
  49. package/types/main-app-framework/init-platform/index.d.ts +1 -1
  50. package/types/micro-frontend/store.d.ts +5 -5
  51. package/types/theme/index.d.ts +1 -1
  52. package/index-CNuui6rH.js +0 -71
  53. package/index-CNuui6rH.js.gz +0 -0
  54. package/index-LTwaM8dS.js.gz +0 -0
  55. package/index-_67_4aoo.js +0 -68
  56. package/index-_67_4aoo.js.gz +0 -0
  57. package/packages/main-app-framework/index-Bnb7HNMb.js +0 -68
  58. package/packages/main-app-framework/index-Bnb7HNMb.js.gz +0 -0
  59. package/packages/main-app-framework/index-DF7V-TBl.js.gz +0 -0
  60. package/packages/main-app-framework/index-DOTMbc-l.js +0 -71
  61. package/packages/main-app-framework/index-DOTMbc-l.js.gz +0 -0
Binary file
@@ -0,0 +1,74 @@
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-DEYJwN2T.js";
9
+ const B = "v1", P = T(`/api/justauth/client/${B}`), K = P.get("/visitor/kingdee/auth/user/auth_code"), R = /* @__PURE__ */ _({
10
+ __name: "index",
11
+ setup(N) {
12
+ const { beforeEntryApp: d, entryApp: g } = b(), h = l(() => !!D.menu.items.length), m = l(() => {
13
+ if (!c.value || !c.value.length) return [];
14
+ const o = f(c.value);
15
+ return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = w(n.apps, 4)), o) : [] : [];
16
+ }), w = (o, n) => {
17
+ const t = [];
18
+ for (let r = 0; r < o.length; r += n)
19
+ t.push(o.slice(r, r + n));
20
+ return t;
21
+ }, y = async (o) => {
22
+ if (!o) return;
23
+ if (!sessionStorage.getItem("projectInfo")) {
24
+ window.confirm("系统资源更新,请刷新系统") && (window.__isAutoCloseApp = !1, window.location.reload());
25
+ return;
26
+ }
27
+ const t = f(o);
28
+ if (L.innerSet = !0, t.routeUrl) {
29
+ if (o.code === "Ioc") {
30
+ window.open(t.routeUrl, "_blank");
31
+ return;
32
+ }
33
+ if (o.code === "wojiacloud") {
34
+ const e = sessionStorage.getItem("kingdee_token") || "";
35
+ if (e) {
36
+ const [i, a] = await K().run({ accessToken: e });
37
+ if (a) {
38
+ const s = (a == null ? void 0 : a.auth_code) ?? "";
39
+ t.routeUrl = t.routeUrl.includes("?") ? `${t.routeUrl}&code=${s}` : `${t.routeUrl}?code=${s}`;
40
+ }
41
+ }
42
+ }
43
+ }
44
+ const r = (o == null ? void 0 : o.openType) ?? 1, u = (o == null ? void 0 : o.type) ?? 1;
45
+ if (r === 1) {
46
+ 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 } });
49
+ }
50
+ if (r === 2 && t.routeUrl) {
51
+ 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
+ }
54
+ };
55
+ return (o, n) => k((v(), A(p(j), {
56
+ full: "",
57
+ spinning: p(E)
58
+ }, {
59
+ default: U(() => [
60
+ C(p(I), {
61
+ appCategorys: m.value,
62
+ onOpenApp: y
63
+ }, null, 8, ["appCategorys"])
64
+ ]),
65
+ _: 1
66
+ /* STABLE */
67
+ }, 8, ["spinning"])), [
68
+ [S, !h.value]
69
+ ]);
70
+ }
71
+ });
72
+ export {
73
+ R as default
74
+ };
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-LTwaM8dS.js";
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";
2
2
  export {
3
3
  s as DasMainAppLayout,
4
4
  t as DasWebLayout,
@@ -7,23 +7,24 @@ export {
7
7
  r as DasWebTabs,
8
8
  p as createDasWebApp,
9
9
  u as currentLang,
10
- m as currentTheme,
11
- o as getI18nRule,
10
+ o as currentTheme,
11
+ m as getI18nRule,
12
12
  g as getLang,
13
13
  D as getThemeRule,
14
- b as getVar,
15
- h as getVarValue,
16
- l as i18n,
14
+ l as getVar,
15
+ b as getVarValue,
16
+ h as i18n,
17
17
  A as initI18n,
18
18
  T as initMainApp,
19
19
  c as initMicroApp,
20
- L as initTheme,
21
- W as layout,
22
- y as mainAppFramework,
23
- M as microFrontend,
24
- R as setI18nRule,
25
- F as setLang,
26
- I as setTheme,
27
- V as setThemeRule,
28
- f as t
20
+ y as initTheme,
21
+ L as layout,
22
+ W as layoutData,
23
+ M as mainAppFramework,
24
+ R as microFrontend,
25
+ F as setI18nRule,
26
+ I as setLang,
27
+ V as setTheme,
28
+ f as setThemeRule,
29
+ k as t
29
30
  };
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@das-fed/web",
3
- "version": "6.4.0-test.1",
3
+ "version": "6.4.0-test.2",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "dependencies": {
7
- "@das-fed/ui": "6.4.0-test.1",
8
- "@das-fed/utils": "6.4.0-test.1",
9
- "@das-fed/web": "6.4.0-test.1",
10
- "@das-fed/web-components": "6.4.0-test.1",
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",
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.1",
21
+ "@das-fed/cli": "6.4.0-test.2",
22
22
  "@types/lodash": "^4.14.194",
23
23
  "@types/lodash-es": "^4.17.12",
24
24
  "@vitejs/plugin-vue": "^5.1.0",
Binary file