@das-fed/web 6.4.0-hot.36 → 6.4.0-hot.38

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 (64) hide show
  1. package/{index-pa8JpqiR.js → index-Do-hi0sT.js} +6392 -5785
  2. package/index-Do-hi0sT.js.gz +0 -0
  3. package/index-Ho3juDFP.js +10 -0
  4. package/index-ybkIe7Qx.js +87 -0
  5. package/index-ybkIe7Qx.js.gz +0 -0
  6. package/index.js +1 -1
  7. package/package.json +6 -6
  8. package/packages/i18n/index.js +17 -17
  9. package/packages/i18n/index.js.gz +0 -0
  10. package/packages/layout/index.js +321 -232
  11. package/packages/layout/index.js.gz +0 -0
  12. package/packages/main-app-framework/{index-PIgnnyL3.js → index-By_I7kxF.js} +4148 -3649
  13. package/packages/main-app-framework/index-By_I7kxF.js.gz +0 -0
  14. package/packages/main-app-framework/index-D6tSxSCm.js +10 -0
  15. package/packages/main-app-framework/index-uy_tfCFy.js +87 -0
  16. package/packages/main-app-framework/index-uy_tfCFy.js.gz +0 -0
  17. package/packages/main-app-framework/index.js +1 -1
  18. package/packages/main-app-framework/style.css +1 -1
  19. package/packages/main-app-framework/style.css.gz +0 -0
  20. package/packages/micro-frontend/index.js +111 -97
  21. package/packages/micro-frontend/index.js.gz +0 -0
  22. package/packages/style/style.css +1 -1
  23. package/packages/style/style.css.gz +0 -0
  24. package/style.css +1 -1
  25. package/style.css.gz +0 -0
  26. package/types/create-das-web-app/index.d.ts +1 -1
  27. package/types/i18n/index.d.ts +3 -3
  28. package/types/layout/store/index.d.ts +1 -1
  29. package/types/main-app-framework/business/alarm/use-alarm.d.ts +4 -4
  30. package/types/main-app-framework/business/message-notify/index.d.ts +1 -0
  31. package/types/main-app-framework/business/remote-control/apis.d.ts +2 -0
  32. package/types/main-app-framework/business/remote-control/utils.d.ts +7 -0
  33. package/types/main-app-framework/business/video-link/index.d.ts +3 -3
  34. package/types/main-app-framework/business/video-link/video-dialog/hooks/PlayerProvider.d.ts +3 -3
  35. package/types/main-app-framework/components/person-set-dialog/index.d.ts +1 -1
  36. package/types/main-app-framework/components/person-set-dialog/src/api.d.ts +2 -0
  37. package/types/main-app-framework/components/person-set-dialog/src/components/index.d.ts +1 -0
  38. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-builtIn-dialog.d.ts +6 -6
  39. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-notBuiltIn-dialog.d.ts +10 -10
  40. package/types/main-app-framework/i18n/index.d.ts +20 -0
  41. package/types/main-app-framework/index.d.ts +2 -2
  42. package/types/main-app-framework/init-config/get-nav-config/index.d.ts +4 -3
  43. package/types/main-app-framework/init-config/get-system-config/api.d.ts +2 -0
  44. package/types/main-app-framework/init-config/get-system-config/index.d.ts +6 -4
  45. package/types/main-app-framework/init-config/get-tenant-config/api.d.ts +3 -1
  46. package/types/main-app-framework/init-config/get-tenant-config/index.d.ts +2 -0
  47. package/types/main-app-framework/init-layout/hooks/nav-slots/index.d.ts +1 -0
  48. package/types/main-app-framework/init-layout/hooks/nav-slots/use-ai-helper.d.ts +4 -0
  49. package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +3 -3
  50. package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +2 -2
  51. package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +5 -5
  52. package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +3 -3
  53. package/types/main-app-framework/init-platform/index.d.ts +1 -1
  54. package/types/main-app-framework/utils/src/set-common-info.d.ts +2 -0
  55. package/types/micro-frontend/store.d.ts +5 -5
  56. package/types/theme/index.d.ts +1 -1
  57. package/index-BR2K2L20.js +0 -10
  58. package/index-CqHbFeJ4.js +0 -81
  59. package/index-CqHbFeJ4.js.gz +0 -0
  60. package/index-pa8JpqiR.js.gz +0 -0
  61. package/packages/main-app-framework/index-D-yLFNAt.js +0 -10
  62. package/packages/main-app-framework/index-PIgnnyL3.js.gz +0 -0
  63. package/packages/main-app-framework/index-gbopgvrS.js +0 -81
  64. package/packages/main-app-framework/index-gbopgvrS.js.gz +0 -0
Binary file
@@ -0,0 +1,10 @@
1
+ import { createElementBlock as e, openBlock as r } from "vue";
2
+ import { _ as c } from "./index-Do-hi0sT.js";
3
+ const o = {};
4
+ function t(n, _) {
5
+ return r(), e("div");
6
+ }
7
+ const a = /* @__PURE__ */ c(o, [["render", t]]);
8
+ export {
9
+ a as default
10
+ };
@@ -0,0 +1,87 @@
1
+ import { defineComponent as k, computed as p, withDirectives as v, createBlock as U, openBlock as C, unref as c, withCtx as A, 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 P, a as u, c as f, b as q, l as B, g as K, d as M } from "./index-Do-hi0sT.js";
10
+ const N = "v1", O = E(`/api/justauth/client/${N}`), V = O.get("/visitor/kingdee/auth/user/auth_code"), z = /* @__PURE__ */ k({
11
+ __name: "index",
12
+ setup(F) {
13
+ const { beforeEntryApp: d, entryApp: g } = L(), h = p(() => P.value.skinStyle), m = p(() => !!j.menu.items.length), w = p(() => {
14
+ if (!u.value || !u.value.length) return [];
15
+ const t = f(u.value);
16
+ return Array.isArray(t) ? t.length ? (t.forEach((r) => {
17
+ r.apps = y(
18
+ r.apps.filter((o) => (o == null ? void 0 : o.code) && o.code !== "dasaiassistant"),
19
+ 4
20
+ );
21
+ }), t) : [] : [];
22
+ }), y = (t, r) => {
23
+ const o = [];
24
+ for (let a = 0; a < t.length; a += r)
25
+ o.push(t.slice(a, a + r));
26
+ return o;
27
+ }, _ = async (t) => {
28
+ if (!t) return;
29
+ if (!sessionStorage.getItem("projectInfo")) {
30
+ window.confirm(D("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
31
+ return;
32
+ }
33
+ const o = f(t);
34
+ if (B.innerSet = !0, o.routeUrl) {
35
+ if (t.code === "Ioc") {
36
+ window.open(o.routeUrl, "_blank");
37
+ return;
38
+ }
39
+ if (t.code === "wojiacloud") {
40
+ const e = sessionStorage.getItem("kingdee_token") || "";
41
+ if (e) {
42
+ const [n, s] = await V().run({ accessToken: e });
43
+ if (s) {
44
+ const i = (s == null ? void 0 : s.auth_code) ?? "";
45
+ o.routeUrl = o.routeUrl.includes("?") ? `${o.routeUrl}&code=${i}` : `${o.routeUrl}?code=${i}`;
46
+ }
47
+ }
48
+ }
49
+ }
50
+ const a = (t == null ? void 0 : t.openType) ?? 1, l = (t == null ? void 0 : t.type) ?? 1;
51
+ if (a === 1) {
52
+ if (!await d(t)) return;
53
+ const n = T().preTab[t.code], s = (n == null ? void 0 : n.code) ?? "", i = { ...(n == null ? void 0 : n.query) ?? {} };
54
+ g({ microApp: o, menuCode: s, route: { query: i } });
55
+ }
56
+ if (a === 2 && o.routeUrl) {
57
+ let e = "";
58
+ if (l === 1)
59
+ e = o != null && o.applicationPath ? location.origin + "/" + o.applicationPath + o.routeUrl : location.origin + o.routeUrl, e = b(e);
60
+ else if (l === 2) {
61
+ const n = await K(o.routeUrl, (o == null ? void 0 : o.param) ?? []);
62
+ e = M(n);
63
+ }
64
+ window.open(e, "_blank");
65
+ }
66
+ };
67
+ return (t, r) => v((C(), U(c(x), {
68
+ full: "",
69
+ spinning: c(q)
70
+ }, {
71
+ default: A(() => [
72
+ S(c($), {
73
+ theme: h.value,
74
+ appCategorys: w.value,
75
+ onOpenApp: _
76
+ }, null, 8, ["theme", "appCategorys"])
77
+ ]),
78
+ _: 1
79
+ /* STABLE */
80
+ }, 8, ["spinning"])), [
81
+ [I, !m.value]
82
+ ]);
83
+ }
84
+ });
85
+ export {
86
+ z as default
87
+ };
Binary file
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { J as e, A as t, C as n, B as i, D as r, e as u, m as o, w as m, o as p, f as g, k as D, v as l, y as L, z as b, h as c, i as h, G as A, H as T, q as y, E as R, F as W, K as I, I as M, s as F, j as V, n as f, r as k, x as v, t as w } from "./index-pa8JpqiR.js";
1
+ import { J as e, A as t, C as n, B as i, D as r, e as u, m as o, w as m, o as p, f as g, k as D, v as l, y as L, z as b, h as c, i as h, G as A, H as T, q as y, E as R, F as W, K as I, I as M, s as F, j as V, n as f, r as k, x as v, t as w } from "./index-Do-hi0sT.js";
2
2
  export {
3
3
  e as DasMainAppLayout,
4
4
  t as DasWebLayout,
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@das-fed/web",
3
- "version": "6.4.0-hot.36",
3
+ "version": "6.4.0-hot.38",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "dependencies": {
7
- "@das-fed/ui": "6.4.0-hot.36",
8
- "@das-fed/utils": "6.4.0-hot.36",
9
- "@das-fed/web": "6.4.0-hot.36",
10
- "@das-fed/web-components": "6.4.0-hot.36",
7
+ "@das-fed/ui": "6.4.0-hot.38",
8
+ "@das-fed/utils": "6.4.0-hot.38",
9
+ "@das-fed/web": "6.4.0-hot.38",
10
+ "@das-fed/web-components": "6.4.0-hot.38",
11
11
  "@microsoft/signalr": "^8.0.7",
12
12
  "@vueuse/core": "^9.13.0",
13
13
  "animate.css": "^4.1.1",
@@ -19,7 +19,7 @@
19
19
  "vue-router": "^4.4.0"
20
20
  },
21
21
  "devDependencies": {
22
- "@das-fed/cli": "6.4.0-hot.36",
22
+ "@das-fed/cli": "6.4.0-hot.38",
23
23
  "@types/crypto-js": "^4.2.2",
24
24
  "@types/lodash": "^4.14.194",
25
25
  "@types/lodash-es": "^4.17.12",
@@ -1,4 +1,4 @@
1
- import { reactive as i, ref as s, computed as k } from "vue";
1
+ import { reactive as s, ref as z, computed as k } from "vue";
2
2
  const _ = {
3
3
  // 按钮
4
4
  详情: { "zh-CN": "详情", en: "Details", _appCode: "framework" },
@@ -119,9 +119,9 @@ const _ = {
119
119
  删除失败: { "zh-CN": "删除失败", en: "Deleted Failed", _appCode: "framework" },
120
120
  操作成功: { "zh-CN": "操作成功", en: "Operated Successfully", _appCode: "framework" },
121
121
  操作失败: { "zh-CN": "操作失败", en: "Operated Failed", _appCode: "framework" }
122
- }, d = i({}), f = i({}), m = i({});
123
- var N;
124
- const l = (N = navigator.language) != null && N.toLowerCase().startsWith("zh") ? "zh-CN" : "en", t = s(l), c = "dasI18n", b = (e = {}, r) => {
122
+ }, d = s({}), f = s({}), t = s({});
123
+ var i;
124
+ const l = sessionStorage.getItem("currentLang") ? sessionStorage.getItem("currentLang") : (i = navigator.language) != null && i.toLowerCase().startsWith("zh") ? "zh-CN" : "en", m = z(l), c = "dasI18n", b = (e = {}, r) => {
125
125
  const C = r === "global", n = !C, p = {};
126
126
  for (const o in e)
127
127
  for (const a in e[o])
@@ -132,12 +132,12 @@ const l = (N = navigator.language) != null && N.toLowerCase().startsWith("zh") ?
132
132
  for (const o in e)
133
133
  if (C && !f[o] && (f[o] = e[o]), n) {
134
134
  const a = (p = e[o]) != null && p._appCode ? e[o]._appCode.toLowerCase() : "";
135
- a && (m[a] || (m[a] = {}), m[a][o] = e[o]), d[o] || (d[o] = e[o]);
135
+ a && (t[a] || (t[a] = {}), t[a][o] = e[o]), d[o] || (d[o] = e[o]);
136
136
  }
137
- }, R = async (e) => {
137
+ }, S = async (e) => {
138
138
  var p, o;
139
139
  const r = document.documentElement;
140
- r && r.setAttribute("lang", t.value);
140
+ r && r.setAttribute("lang", m.value);
141
141
  const C = window[c];
142
142
  C && h(C, "global"), h(_);
143
143
  let n = Object.assign(((p = e == null ? void 0 : e.i18n) == null ? void 0 : p.glob) || {});
@@ -151,25 +151,25 @@ const l = (N = navigator.language) != null && N.toLowerCase().startsWith("zh") ?
151
151
  return n && n.length >= 3 && (r = n[1] + "/" + n[2]), r ? r.toLowerCase() : "";
152
152
  }, g = (e, ...r) => k(() => {
153
153
  const C = u(location.pathname);
154
- let n = m.framework ?? {}, p = m[C] ?? {}, o = f[e] || n[e] || p[e] || d[e] || e;
154
+ let n = t.framework ?? {}, p = t[C] ?? {}, o = f[e] || n[e] || p[e] || d[e] || e;
155
155
  if (o === e) return e;
156
156
  typeof o == "string" && (o = { "zh-CN": o });
157
- let a = o[t.value];
158
- return t.value === "zh-CN" && o["zh-cn"] && !o["zh-CN"] && (a = o["zh-cn"]), r.map((w, z) => {
159
- a && (a = a.replace(`$${z}`, w));
157
+ let a = o[m.value];
158
+ return m.value === "zh-CN" && o["zh-cn"] && !o["zh-CN"] && (a = o["zh-cn"]), r.map((w, N) => {
159
+ a && (a = a.replace(`$${N}`, w));
160
160
  }), a;
161
- }), P = g, S = (e, ...r) => P(e, ...r).value, D = (e) => {
162
- t.value = e;
163
- }, L = () => t;
161
+ }), P = g, R = (e, ...r) => P(e, ...r).value, D = (e) => {
162
+ sessionStorage.setItem("currentLang", e), m.value = e;
163
+ }, L = () => m;
164
164
  export {
165
- t as currentLang,
165
+ m as currentLang,
166
166
  d as customLangeData,
167
167
  g as getI18nRule,
168
168
  L as getLang,
169
169
  P as i18n,
170
- R as initI18n,
170
+ S as initI18n,
171
171
  h as setI18nRule,
172
172
  D as setLang,
173
173
  b as setLangRule,
174
- S as t
174
+ R as t
175
175
  };
Binary file