@das-fed/upf-web 6.4.0-hot.6 → 6.4.0-hot.8

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 (42) hide show
  1. package/es5.js +17640 -788
  2. package/esm-map.json +4 -1
  3. package/index-BfS5ZwdE.js +12613 -0
  4. package/index-BfS5ZwdE.js.gz +0 -0
  5. package/{packages/main-app-framework/index-C8tjINrY.js → index-C8iGOlyv.js} +1 -1
  6. package/index-DfI-VZvq.js +93 -0
  7. package/index-DfI-VZvq.js.gz +0 -0
  8. package/index.js +18 -16
  9. package/package.json +7 -6
  10. package/packages/create-das-web-app/es5.js +138 -254
  11. package/packages/create-das-web-app/index.js +67 -122
  12. package/packages/create-das-web-app/index.js.gz +0 -0
  13. package/packages/i18n/es5.js +206 -114
  14. package/packages/i18n/index.js +99 -60
  15. package/packages/i18n/index.js.gz +0 -0
  16. package/packages/main-app-framework/es5.js +14782 -785
  17. package/{index-CihmHNMg.js → packages/main-app-framework/index-4P5L5Fln.js} +1 -1
  18. package/packages/main-app-framework/index-BZpwzi0c.js +93 -0
  19. package/packages/main-app-framework/index-BZpwzi0c.js.gz +0 -0
  20. package/packages/main-app-framework/index-BfSkRApB.js +11147 -0
  21. package/packages/main-app-framework/index-BfSkRApB.js.gz +0 -0
  22. package/packages/main-app-framework/index.js +1 -1
  23. package/packages/main-app-framework/style.css +1 -1
  24. package/packages/main-app-framework/style.css.gz +0 -0
  25. package/style.css +1 -1
  26. package/style.css.gz +0 -0
  27. package/types/i18n/{microI18n.d.ts → getMicroI18nData.d.ts} +1 -2
  28. package/types/i18n/index.d.ts +3 -1
  29. package/types/main-app-framework/init-config/index.d.ts +0 -1
  30. package/types/main-app-framework/init-mframe/hooks/business/use-iot-hooks.d.ts +3 -0
  31. package/types/main-app-framework/init-mframe/hooks/use-layout.d.ts +1 -0
  32. package/types/main-app-framework/init-mframe/index.d.ts +1 -0
  33. package/index-BhEtGWg9.js +0 -87
  34. package/index-BhEtGWg9.js.gz +0 -0
  35. package/index-ClQkHyu0.js +0 -13991
  36. package/index-ClQkHyu0.js.gz +0 -0
  37. package/packages/main-app-framework/index-BotXvTrW.js +0 -87
  38. package/packages/main-app-framework/index-BotXvTrW.js.gz +0 -0
  39. package/packages/main-app-framework/index-qZN6TvxI.js +0 -12524
  40. package/packages/main-app-framework/index-qZN6TvxI.js.gz +0 -0
  41. package/types/main-app-framework/init-config/get-project-config/api.d.ts +0 -5
  42. package/types/main-app-framework/init-config/get-project-config/index.d.ts +0 -1
Binary file
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as r } from "vue";
2
- import { _ as c } from "./index-qZN6TvxI.js";
2
+ import { _ as c } from "./index-BfS5ZwdE.js";
3
3
  const o = {};
4
4
  function t(n, _) {
5
5
  return e(), r("div");
@@ -0,0 +1,93 @@
1
+ import { ref as d, computed as p, defineComponent as U, withDirectives as C, openBlock as A, createBlock as S, unref as f, withCtx as I, createVNode as j, vShow as D } from "vue";
2
+ import { layoutData as $ } from "@das-fed/upf-web/packages/layout/index";
3
+ import { t as x } from "@das-fed/upf-web/packages/i18n/index";
4
+ import { DasAppContainer as T } from "@das-fed/upf-ui/packages/business-components/app-container/index";
5
+ import { DasSpin as E } from "@das-fed/upf-ui/packages/components/spin/index";
6
+ import { getTabInfo as L } from "@das-fed/upf-utils/common-info";
7
+ import { setShowLayout as P } from "@das-fed/upf-utils/common-tools";
8
+ import { createService as b } from "@das-fed/upf-utils/create-api-service";
9
+ import { u as q, p as B, c as h, l as K, g as M, a as N } from "./index-BfS5ZwdE.js";
10
+ const O = d(!1), c = d([]);
11
+ p(() => {
12
+ var l;
13
+ return ((l = c.value) == null ? void 0 : l.map((u) => u.apps).flat()) || [];
14
+ });
15
+ d([]);
16
+ const V = "v1", F = b(`/api/justauth/client/${V}`), G = F.get("/visitor/kingdee/auth/user/auth_code"), oo = /* @__PURE__ */ U({
17
+ __name: "index",
18
+ setup(l) {
19
+ const { beforeEntryApp: u, entryApp: m } = q(), w = p(() => B.value.skinStyle), y = p(() => !!$.menu.items.length), _ = p(() => {
20
+ if (!c.value || !c.value.length) return [];
21
+ const t = h(c.value);
22
+ return Array.isArray(t) ? t.length ? (t.forEach((r) => {
23
+ r.apps = k(
24
+ r.apps.filter((o) => (o == null ? void 0 : o.code) && o.code !== "dasaiassistant"),
25
+ 4
26
+ );
27
+ }), t) : [] : [];
28
+ }), k = (t, r) => {
29
+ const o = [];
30
+ for (let a = 0; a < t.length; a += r)
31
+ o.push(t.slice(a, a + r));
32
+ return o;
33
+ }, v = async (t) => {
34
+ if (!t) return;
35
+ if (!sessionStorage.getItem("projectInfo")) {
36
+ window.confirm(x("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
37
+ return;
38
+ }
39
+ const o = h(t);
40
+ if (K.innerSet = !0, o.routeUrl) {
41
+ if (t.code === "Ioc") {
42
+ window.open(o.routeUrl, "_blank");
43
+ return;
44
+ }
45
+ if (t.code === "wojiacloud") {
46
+ const e = sessionStorage.getItem("kingdee_token") || "";
47
+ if (e) {
48
+ const [n, s] = await G().run({ accessToken: e });
49
+ if (s) {
50
+ const i = (s == null ? void 0 : s.auth_code) ?? "";
51
+ o.routeUrl = o.routeUrl.includes("?") ? `${o.routeUrl}&code=${i}` : `${o.routeUrl}?code=${i}`;
52
+ }
53
+ }
54
+ }
55
+ }
56
+ const a = (t == null ? void 0 : t.openType) ?? 1, g = (t == null ? void 0 : t.type) ?? 1;
57
+ if (a === 1) {
58
+ if (!await u(t)) return;
59
+ const n = L().preTab[t.code], s = (n == null ? void 0 : n.code) ?? "", i = { ...(n == null ? void 0 : n.query) ?? {} };
60
+ m({ microApp: o, menuCode: s, route: { query: i } });
61
+ }
62
+ if (a === 2 && o.routeUrl) {
63
+ let e = "";
64
+ if (g === 1)
65
+ e = o != null && o.applicationPath ? location.origin + "/" + o.applicationPath + o.routeUrl : location.origin + o.routeUrl, e = P(e);
66
+ else if (g === 2) {
67
+ const n = await M(o.routeUrl, (o == null ? void 0 : o.param) ?? []);
68
+ e = N(n);
69
+ }
70
+ window.open(e, "_blank");
71
+ }
72
+ };
73
+ return (t, r) => C((A(), S(f(E), {
74
+ full: "",
75
+ spinning: f(O)
76
+ }, {
77
+ default: I(() => [
78
+ j(f(T), {
79
+ theme: w.value,
80
+ appCategorys: _.value,
81
+ onOpenApp: v
82
+ }, null, 8, ["theme", "appCategorys"])
83
+ ]),
84
+ _: 1
85
+ /* STABLE */
86
+ }, 8, ["spinning"])), [
87
+ [D, !y.value]
88
+ ]);
89
+ }
90
+ });
91
+ export {
92
+ oo as default
93
+ };
Binary file
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { M as s, D as t, F as n, E as r, G as i, e as o, o as u, z as g, r as m, f as l, j as p, n as D, y as L, B as c, C as b, k as h, i as y, J as A, K as T, w as M, h as R, H as W, I as F, v as I, N as V, L as d, s as f, m as k, q as v, x as w, A as x, t as K } from "./index-ClQkHyu0.js";
1
+ import { M as s, D as t, F as n, E as r, G as i, b as o, m as u, z as g, o as m, d as l, f as p, k as D, y as c, B as L, C as b, h, i as y, J as A, K as I, w as M, e as T, H as R, I as W, q as F, N as d, L as V, r as f, v as k, s as v, j as w, n as x, x as K, A as N, t as j } from "./index-BfS5ZwdE.js";
2
2
  export {
3
3
  s as DasMainAppLayout,
4
4
  t as DasWebLayout,
@@ -12,24 +12,26 @@ export {
12
12
  l as getDateFormat,
13
13
  p as getI18nRule,
14
14
  D as getLang,
15
- L as getThemeRule,
16
- c as getVar,
15
+ c as getThemeRule,
16
+ L as getVar,
17
17
  b as getVarValue,
18
18
  h as i18n,
19
19
  y as initI18n,
20
20
  A as initMainApp,
21
- T as initMicroApp,
21
+ I as initMicroApp,
22
22
  M as initTheme,
23
- R as languageKey,
24
- W as layout,
25
- F as layoutData,
26
- I as loadLocale,
27
- V as mainAppFramework,
28
- d as microFrontend,
29
- f as setI18nRule,
30
- k as setLang,
31
- v as setLangRule,
32
- w as setTheme,
33
- x as setThemeRule,
34
- K as t
23
+ T as languageKey,
24
+ R as layout,
25
+ W as layoutData,
26
+ F as loadLocale,
27
+ d as mainAppFramework,
28
+ V as microFrontend,
29
+ f as microI18nStore,
30
+ k as registerMicroI18nData,
31
+ v as setI18nRule,
32
+ w as setLang,
33
+ x as setLangRule,
34
+ K as setTheme,
35
+ N as setThemeRule,
36
+ j as t
35
37
  };
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@das-fed/upf-web",
3
- "version": "6.4.0-hot.6",
3
+ "version": "6.4.0-hot.8",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "dependencies": {
7
- "@das-fed/upf-ui": "6.4.0-hot.6",
8
- "@das-fed/upf-utils": "6.4.0-hot.6",
9
- "@das-fed/upf-web": "6.4.0-hot.6",
10
- "@das-fed/upf-web-components": "6.4.0-hot.6",
7
+ "@das-fed/mframe": "0.0.41",
8
+ "@das-fed/upf-ui": "6.4.0-hot.8",
9
+ "@das-fed/upf-utils": "6.4.0-hot.8",
10
+ "@das-fed/upf-web": "6.4.0-hot.8",
11
+ "@das-fed/upf-web-components": "6.4.0-hot.8",
11
12
  "@microsoft/signalr": "^8.0.7",
12
13
  "@vueuse/core": "^9.13.0",
13
14
  "animate.css": "^4.1.1",
@@ -19,7 +20,7 @@
19
20
  "vue-router": "^4.4.0"
20
21
  },
21
22
  "devDependencies": {
22
- "@das-fed/upf-cli": "6.4.0-hot.6",
23
+ "@das-fed/upf-cli": "6.4.0-hot.8",
23
24
  "@types/crypto-js": "^4.2.2",
24
25
  "@types/lodash": "^4.14.194",
25
26
  "@types/lodash-es": "^4.17.12",