@das-fed/web 6.4.0-dev.4 → 6.4.0-dev.41

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 (76) hide show
  1. package/esm-map.json +2 -1
  2. package/index-BJaVqwM1.js +7439 -0
  3. package/index-BJaVqwM1.js.gz +0 -0
  4. package/{index-D8XgnluX.js → index-BqdkqUh1.js} +1 -1
  5. package/index-DTXiRF91.js +75 -0
  6. package/index-DTXiRF91.js.gz +0 -0
  7. package/index.js +16 -15
  8. package/package.json +6 -6
  9. package/packages/create-das-web-app/config.js +1 -0
  10. package/packages/create-das-web-app/index.js +48 -802
  11. package/packages/create-das-web-app/index.js.gz +0 -0
  12. package/packages/i18n/config.js +1 -0
  13. package/packages/i18n/index.js +25 -24
  14. package/packages/i18n/index.js.gz +0 -0
  15. package/packages/layout/config.js +1 -0
  16. package/packages/layout/index.js +450 -406
  17. package/packages/layout/index.js.gz +0 -0
  18. package/packages/layout/style.css +2 -2
  19. package/packages/layout/style.css.gz +0 -0
  20. package/packages/main-app-framework/config.js +1 -0
  21. package/packages/main-app-framework/index-D3CMerRp.js +75 -0
  22. package/packages/main-app-framework/index-D3CMerRp.js.gz +0 -0
  23. package/packages/main-app-framework/index-DCoCFFJH.js +6097 -0
  24. package/packages/main-app-framework/index-DCoCFFJH.js.gz +0 -0
  25. package/packages/main-app-framework/{index-BkJc1lDT.js → index-GuLooLSc.js} +1 -1
  26. package/packages/main-app-framework/index.js +1 -1
  27. package/packages/main-app-framework/style.css +1 -1
  28. package/packages/main-app-framework/style.css.gz +0 -0
  29. package/packages/micro-frontend/config.js +1 -0
  30. package/packages/micro-frontend/index.js +180 -163
  31. package/packages/micro-frontend/index.js.gz +0 -0
  32. package/packages/micro-frontend/style.css +1 -1
  33. package/packages/style/config.js +1 -0
  34. package/packages/style/style.css +1 -1
  35. package/packages/style/style.css.gz +0 -0
  36. package/packages/theme/config.js +1 -0
  37. package/packages/theme/index.js.gz +0 -0
  38. package/style.css +2 -2
  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/index.d.ts +1 -1
  43. package/types/layout/store/index.d.ts +6 -1
  44. package/types/layout/store/menu.d.ts +2 -0
  45. package/types/layout/store/nav.d.ts +1 -0
  46. package/types/layout/store/tab.d.ts +1 -0
  47. package/types/main-app-framework/business/alarm/use-alarm.d.ts +4 -4
  48. package/types/main-app-framework/business/video-link/api.d.ts +2 -0
  49. package/types/main-app-framework/business/video-link/index.d.ts +3 -3
  50. package/types/main-app-framework/business/video-link/video-dialog/hooks/PlayerProvider.d.ts +3 -3
  51. package/types/main-app-framework/components/iframe-page/index.d.ts +3 -0
  52. package/types/main-app-framework/components/index.d.ts +1 -0
  53. package/types/main-app-framework/components/person-set-dialog/index.d.ts +1 -1
  54. package/types/main-app-framework/index.d.ts +1 -1
  55. package/types/main-app-framework/init-config/get-nav-config/api.d.ts +2 -0
  56. package/types/main-app-framework/init-config/get-nav-config/index.d.ts +4 -3
  57. package/types/main-app-framework/init-config/get-system-config/index.d.ts +3 -3
  58. package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +3 -3
  59. package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +2 -2
  60. package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +4 -4
  61. package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +3 -3
  62. package/types/main-app-framework/init-platform/index.d.ts +1 -1
  63. package/types/micro-frontend/store.d.ts +5 -5
  64. package/types/theme/index.d.ts +1 -1
  65. package/index--5iw3PcC.js +0 -7970
  66. package/index--5iw3PcC.js.gz +0 -0
  67. package/index-BSYJheVx.js +0 -68
  68. package/index-BSYJheVx.js.gz +0 -0
  69. package/index-C5zNxpQk.js +0 -70
  70. package/index-C5zNxpQk.js.gz +0 -0
  71. package/packages/main-app-framework/index-C_X3k7z0.js +0 -70
  72. package/packages/main-app-framework/index-C_X3k7z0.js.gz +0 -0
  73. package/packages/main-app-framework/index-D7pfTqeW.js +0 -5917
  74. package/packages/main-app-framework/index-D7pfTqeW.js.gz +0 -0
  75. package/packages/main-app-framework/index-MhsbUVtD.js +0 -68
  76. package/packages/main-app-framework/index-MhsbUVtD.js.gz +0 -0
Binary file
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as r } from "vue";
2
- import { _ as c } from "./index--5iw3PcC.js";
2
+ import { _ as c } from "./index-BJaVqwM1.js";
3
3
  const o = {};
4
4
  function t(n, _) {
5
5
  return e(), r("div");
@@ -0,0 +1,75 @@
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 { 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-BJaVqwM1.js";
10
+ const P = "v1", K = b(`/api/justauth/client/${P}`), N = K.get("/visitor/kingdee/auth/user/auth_code"), X = /* @__PURE__ */ _({
11
+ __name: "index",
12
+ setup(O) {
13
+ const { beforeEntryApp: d, entryApp: m } = E(), g = l(() => !!I.menu.items.length), h = l(() => {
14
+ if (!c.value || !c.value.length) return [];
15
+ const o = f(c.value);
16
+ return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = w(n.apps, 4)), o) : [] : [];
17
+ }), w = (o, n) => {
18
+ const t = [];
19
+ for (let r = 0; r < o.length; r += n)
20
+ t.push(o.slice(r, r + n));
21
+ return t;
22
+ }, y = async (o) => {
23
+ if (!o) return;
24
+ if (!sessionStorage.getItem("projectInfo")) {
25
+ window.confirm(j("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
26
+ return;
27
+ }
28
+ const t = f(o);
29
+ if (q.innerSet = !0, t.routeUrl) {
30
+ if (o.code === "Ioc") {
31
+ window.open(t.routeUrl, "_blank");
32
+ return;
33
+ }
34
+ if (o.code === "wojiacloud") {
35
+ const e = sessionStorage.getItem("kingdee_token") || "";
36
+ if (e) {
37
+ const [i, a] = await N().run({ accessToken: e });
38
+ if (a) {
39
+ const s = (a == null ? void 0 : a.auth_code) ?? "";
40
+ t.routeUrl = t.routeUrl.includes("?") ? `${t.routeUrl}&code=${s}` : `${t.routeUrl}?code=${s}`;
41
+ }
42
+ }
43
+ }
44
+ }
45
+ const r = (o == null ? void 0 : o.openType) ?? 1, u = (o == null ? void 0 : o.type) ?? 1;
46
+ if (r === 1) {
47
+ if (!await d(o)) return;
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 } });
50
+ }
51
+ if (r === 2 && t.routeUrl) {
52
+ let e = "";
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");
54
+ }
55
+ };
56
+ return (o, n) => k((v(), A(p($), {
57
+ full: "",
58
+ spinning: p(L)
59
+ }, {
60
+ default: U(() => [
61
+ C(p(D), {
62
+ appCategorys: h.value,
63
+ onOpenApp: y
64
+ }, null, 8, ["appCategorys"])
65
+ ]),
66
+ _: 1
67
+ /* STABLE */
68
+ }, 8, ["spinning"])), [
69
+ [S, !g.value]
70
+ ]);
71
+ }
72
+ });
73
+ export {
74
+ X as default
75
+ };
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--5iw3PcC.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-BJaVqwM1.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-dev.4",
3
+ "version": "6.4.0-dev.41",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "dependencies": {
7
- "@das-fed/ui": "6.4.0-dev.4",
8
- "@das-fed/utils": "6.4.0-dev.4",
9
- "@das-fed/web": "6.4.0-dev.4",
10
- "@das-fed/web-components": "6.4.0-dev.4",
7
+ "@das-fed/ui": "6.4.0-dev.41",
8
+ "@das-fed/utils": "6.4.0-dev.41",
9
+ "@das-fed/web": "6.4.0-dev.41",
10
+ "@das-fed/web-components": "6.4.0-dev.41",
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.4",
21
+ "@das-fed/cli": "6.4.0-dev.41",
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 = {}