@das-fed/web 6.4.0-test.8.1 → 7.0.0
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.
- package/{index-DGluLInD.js → index-Do-hi0sT.js} +5039 -4842
- package/index-Do-hi0sT.js.gz +0 -0
- package/index-Ho3juDFP.js +10 -0
- package/{packages/main-app-framework/index-BNKYCeAC.js → index-ybkIe7Qx.js} +36 -31
- package/index-ybkIe7Qx.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/i18n/index.js +23 -21
- package/packages/i18n/index.js.gz +0 -0
- package/packages/layout/index.js +284 -282
- package/packages/layout/index.js.gz +0 -0
- package/packages/layout/style.css +1 -1
- package/packages/layout/style.css.gz +0 -0
- package/packages/main-app-framework/{index-WJZZ_VcX.js → index-By_I7kxF.js} +3682 -3501
- package/packages/main-app-framework/index-By_I7kxF.js.gz +0 -0
- package/packages/main-app-framework/index-D6tSxSCm.js +10 -0
- package/{index-tX8Sh7Y3.js → packages/main-app-framework/index-uy_tfCFy.js} +36 -31
- package/packages/main-app-framework/index-uy_tfCFy.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/packages/main-app-framework/style.css +1 -1
- package/packages/main-app-framework/style.css.gz +0 -0
- package/packages/micro-frontend/index.js +266 -259
- package/packages/micro-frontend/index.js.gz +0 -0
- package/packages/style/style.css +1 -1
- package/packages/style/style.css.gz +0 -0
- package/style.css +1 -1
- package/style.css.gz +0 -0
- package/types/i18n/global.d.ts +10 -0
- package/types/i18n/index.d.ts +1 -1
- package/types/layout/store/index.d.ts +1 -1
- package/types/layout/store/nav.d.ts +1 -1
- package/types/main-app-framework/business/message-notify/index.d.ts +1 -0
- package/types/main-app-framework/business/remote-control/apis.d.ts +2 -0
- package/types/main-app-framework/business/remote-control/utils.d.ts +7 -0
- package/types/main-app-framework/components/person-set-dialog/src/api.d.ts +2 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/index.d.ts +1 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/api.d.ts +1 -1
- package/types/main-app-framework/i18n/index.d.ts +20 -0
- package/types/main-app-framework/init-config/get-nav-config/index.d.ts +2 -1
- package/types/main-app-framework/init-config/get-system-config/api.d.ts +2 -0
- package/types/main-app-framework/init-config/get-system-config/index.d.ts +4 -2
- package/types/main-app-framework/init-config/get-tenant-config/api.d.ts +3 -1
- package/types/main-app-framework/init-config/get-tenant-config/index.d.ts +2 -0
- package/types/main-app-framework/init-layout/hooks/nav-slots/index.d.ts +1 -0
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-ai-helper.d.ts +4 -0
- package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +1 -0
- package/types/main-app-framework/utils/src/set-common-info.d.ts +2 -0
- package/index-DGluLInD.js.gz +0 -0
- package/index-DSr0lbga.js +0 -10
- package/index-tX8Sh7Y3.js.gz +0 -0
- package/packages/main-app-framework/index-BNKYCeAC.js.gz +0 -0
- package/packages/main-app-framework/index-DfAg8at4.js +0 -10
- package/packages/main-app-framework/index-WJZZ_VcX.js.gz +0 -0
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as k, computed as p, withDirectives as v,
|
|
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
2
|
import { layoutData as j } from "@das-fed/web/packages/layout/index";
|
|
3
3
|
import { t as D } from "@das-fed/web/packages/i18n/index";
|
|
4
4
|
import { DasAppContainer as $ } from "@das-fed/ui/packages/business-components/app-container/index";
|
|
@@ -6,66 +6,71 @@ import { DasSpin as x } from "@das-fed/ui/packages/components/spin/index";
|
|
|
6
6
|
import { getTabInfo as T } from "@das-fed/utils/common-info";
|
|
7
7
|
import { setShowLayout as b } from "@das-fed/utils/common-tools";
|
|
8
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-
|
|
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
10
|
const N = "v1", O = E(`/api/justauth/client/${N}`), V = O.get("/visitor/kingdee/auth/user/auth_code"), z = /* @__PURE__ */ k({
|
|
11
11
|
__name: "index",
|
|
12
12
|
setup(F) {
|
|
13
|
-
const { beforeEntryApp: d, entryApp: g } = L(),
|
|
13
|
+
const { beforeEntryApp: d, entryApp: g } = L(), h = p(() => P.value.skinStyle), m = p(() => !!j.menu.items.length), w = p(() => {
|
|
14
14
|
if (!u.value || !u.value.length) return [];
|
|
15
|
-
const
|
|
16
|
-
return Array.isArray(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
|
|
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;
|
|
24
29
|
if (!sessionStorage.getItem("projectInfo")) {
|
|
25
30
|
window.confirm(D("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
26
31
|
return;
|
|
27
32
|
}
|
|
28
|
-
const
|
|
29
|
-
if (B.innerSet = !0,
|
|
30
|
-
if (
|
|
31
|
-
window.open(
|
|
33
|
+
const o = f(t);
|
|
34
|
+
if (B.innerSet = !0, o.routeUrl) {
|
|
35
|
+
if (t.code === "Ioc") {
|
|
36
|
+
window.open(o.routeUrl, "_blank");
|
|
32
37
|
return;
|
|
33
38
|
}
|
|
34
|
-
if (
|
|
39
|
+
if (t.code === "wojiacloud") {
|
|
35
40
|
const e = sessionStorage.getItem("kingdee_token") || "";
|
|
36
41
|
if (e) {
|
|
37
|
-
const [n,
|
|
38
|
-
if (
|
|
39
|
-
const
|
|
40
|
-
|
|
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}`;
|
|
41
46
|
}
|
|
42
47
|
}
|
|
43
48
|
}
|
|
44
49
|
}
|
|
45
|
-
const a = (
|
|
50
|
+
const a = (t == null ? void 0 : t.openType) ?? 1, l = (t == null ? void 0 : t.type) ?? 1;
|
|
46
51
|
if (a === 1) {
|
|
47
|
-
if (!await d(
|
|
48
|
-
const n = T().preTab[
|
|
49
|
-
g({ microApp:
|
|
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 } });
|
|
50
55
|
}
|
|
51
|
-
if (a === 2 &&
|
|
56
|
+
if (a === 2 && o.routeUrl) {
|
|
52
57
|
let e = "";
|
|
53
58
|
if (l === 1)
|
|
54
|
-
e =
|
|
59
|
+
e = o != null && o.applicationPath ? location.origin + "/" + o.applicationPath + o.routeUrl : location.origin + o.routeUrl, e = b(e);
|
|
55
60
|
else if (l === 2) {
|
|
56
|
-
const n = await K(
|
|
61
|
+
const n = await K(o.routeUrl, (o == null ? void 0 : o.param) ?? []);
|
|
57
62
|
e = M(n);
|
|
58
63
|
}
|
|
59
64
|
window.open(e, "_blank");
|
|
60
65
|
}
|
|
61
66
|
};
|
|
62
|
-
return (
|
|
67
|
+
return (t, r) => v((C(), U(c(x), {
|
|
63
68
|
full: "",
|
|
64
69
|
spinning: c(q)
|
|
65
70
|
}, {
|
|
66
71
|
default: A(() => [
|
|
67
72
|
S(c($), {
|
|
68
|
-
theme:
|
|
73
|
+
theme: h.value,
|
|
69
74
|
appCategorys: w.value,
|
|
70
75
|
onOpenApp: _
|
|
71
76
|
}, null, 8, ["theme", "appCategorys"])
|
|
@@ -73,7 +78,7 @@ const N = "v1", O = E(`/api/justauth/client/${N}`), V = O.get("/visitor/kingdee/
|
|
|
73
78
|
_: 1
|
|
74
79
|
/* STABLE */
|
|
75
80
|
}, 8, ["spinning"])), [
|
|
76
|
-
[I, !
|
|
81
|
+
[I, !m.value]
|
|
77
82
|
]);
|
|
78
83
|
}
|
|
79
84
|
});
|
|
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-
|
|
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": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@das-fed/ui": "
|
|
8
|
-
"@das-fed/utils": "
|
|
9
|
-
"@das-fed/web": "
|
|
10
|
-
"@das-fed/web-components": "
|
|
7
|
+
"@das-fed/ui": "7.0.0",
|
|
8
|
+
"@das-fed/utils": "7.0.0",
|
|
9
|
+
"@das-fed/web": "7.0.0",
|
|
10
|
+
"@das-fed/web-components": "7.0.0",
|
|
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": "
|
|
22
|
+
"@das-fed/cli": "7.0.0",
|
|
23
23
|
"@types/crypto-js": "^4.2.2",
|
|
24
24
|
"@types/lodash": "^4.14.194",
|
|
25
25
|
"@types/lodash-es": "^4.17.12",
|
package/packages/i18n/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reactive as
|
|
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" },
|
|
@@ -32,7 +32,7 @@ const _ = {
|
|
|
32
32
|
设备总数: { "zh-CN": "设备总数", en: "Total Devices", _appCode: "framework" },
|
|
33
33
|
在线数: { "zh-CN": "在线数", en: "Online", _appCode: "framework" },
|
|
34
34
|
离线数: { "zh-CN": "离线数", en: "Offline", _appCode: "framework" },
|
|
35
|
-
已停用: { "zh-CN": "已停用", en: "
|
|
35
|
+
已停用: { "zh-CN": "已停用", en: "Disabled", _appCode: "framework" },
|
|
36
36
|
未激活: { "zh-CN": "未激活", en: "Inactive", _appCode: "framework" },
|
|
37
37
|
最近更新人: { "zh-CN": "最近更新人", en: "Last Updater", _appCode: "framework" },
|
|
38
38
|
最近更新时间: { "zh-CN": "最近更新时间", en: "Last Updated Time", _appCode: "framework" },
|
|
@@ -116,10 +116,12 @@ const _ = {
|
|
|
116
116
|
编辑成功: { "zh-CN": "编辑成功", en: "Edited Successfully", _appCode: "framework" },
|
|
117
117
|
编辑失败: { "zh-CN": "编辑失败", en: "Edited Failed", _appCode: "framework" },
|
|
118
118
|
删除成功: { "zh-CN": "删除成功", en: "Deleted Successfully", _appCode: "framework" },
|
|
119
|
-
删除失败: { "zh-CN": "删除失败", en: "Deleted Failed", _appCode: "framework" }
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
119
|
+
删除失败: { "zh-CN": "删除失败", en: "Deleted Failed", _appCode: "framework" },
|
|
120
|
+
操作成功: { "zh-CN": "操作成功", en: "Operated Successfully", _appCode: "framework" },
|
|
121
|
+
操作失败: { "zh-CN": "操作失败", en: "Operated Failed", _appCode: "framework" }
|
|
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) => {
|
|
123
125
|
const C = r === "global", n = !C, p = {};
|
|
124
126
|
for (const o in e)
|
|
125
127
|
for (const a in e[o])
|
|
@@ -130,12 +132,12 @@ const l = (N = navigator.language) != null && N.toLowerCase().startsWith("zh") ?
|
|
|
130
132
|
for (const o in e)
|
|
131
133
|
if (C && !f[o] && (f[o] = e[o]), n) {
|
|
132
134
|
const a = (p = e[o]) != null && p._appCode ? e[o]._appCode.toLowerCase() : "";
|
|
133
|
-
a && (
|
|
135
|
+
a && (t[a] || (t[a] = {}), t[a][o] = e[o]), d[o] || (d[o] = e[o]);
|
|
134
136
|
}
|
|
135
|
-
},
|
|
137
|
+
}, S = async (e) => {
|
|
136
138
|
var p, o;
|
|
137
139
|
const r = document.documentElement;
|
|
138
|
-
r && r.setAttribute("lang",
|
|
140
|
+
r && r.setAttribute("lang", m.value);
|
|
139
141
|
const C = window[c];
|
|
140
142
|
C && h(C, "global"), h(_);
|
|
141
143
|
let n = Object.assign(((p = e == null ? void 0 : e.i18n) == null ? void 0 : p.glob) || {});
|
|
@@ -147,27 +149,27 @@ const l = (N = navigator.language) != null && N.toLowerCase().startsWith("zh") ?
|
|
|
147
149
|
let r = "";
|
|
148
150
|
const C = /\/([^\/]+)\/([^\/]+)\//, n = e.match(C);
|
|
149
151
|
return n && n.length >= 3 && (r = n[1] + "/" + n[2]), r ? r.toLowerCase() : "";
|
|
150
|
-
}, g = (e, ...r) =>
|
|
152
|
+
}, g = (e, ...r) => k(() => {
|
|
151
153
|
const C = u(location.pathname);
|
|
152
|
-
let n =
|
|
154
|
+
let n = t.framework ?? {}, p = t[C] ?? {}, o = f[e] || n[e] || p[e] || d[e] || e;
|
|
153
155
|
if (o === e) return e;
|
|
154
156
|
typeof o == "string" && (o = { "zh-CN": o });
|
|
155
|
-
let a = o[
|
|
156
|
-
return
|
|
157
|
-
a && (a = a.replace(`$${
|
|
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));
|
|
158
160
|
}), a;
|
|
159
|
-
}), P = g,
|
|
160
|
-
|
|
161
|
-
}, L = () =>
|
|
161
|
+
}), P = g, R = (e, ...r) => P(e, ...r).value, D = (e) => {
|
|
162
|
+
sessionStorage.setItem("currentLang", e), m.value = e;
|
|
163
|
+
}, L = () => m;
|
|
162
164
|
export {
|
|
163
|
-
|
|
165
|
+
m as currentLang,
|
|
164
166
|
d as customLangeData,
|
|
165
167
|
g as getI18nRule,
|
|
166
168
|
L as getLang,
|
|
167
169
|
P as i18n,
|
|
168
|
-
|
|
170
|
+
S as initI18n,
|
|
169
171
|
h as setI18nRule,
|
|
170
|
-
|
|
172
|
+
D as setLang,
|
|
171
173
|
b as setLangRule,
|
|
172
|
-
|
|
174
|
+
R as t
|
|
173
175
|
};
|
|
Binary file
|