@das-fed/web 6.4.0-dev.54.1 → 6.4.0-dev.54.10
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/esm-map.json +2 -1
- package/{index-B8Aghk-h.js → index-Br1xWsnr.js} +1614 -1554
- package/index-Br1xWsnr.js.gz +0 -0
- package/{index-q2gw5DDJ.js → index-DbMMaakR.js} +1 -1
- package/index-DbMMaakR.js.gz +0 -0
- package/{index-DthWf2Vh.js → index-DxD6slae.js} +1 -1
- package/index.js +21 -20
- package/package.json +6 -6
- package/packages/i18n/index.js +50 -37
- package/packages/i18n/index.js.gz +0 -0
- package/packages/main-app-framework/{index-YPpvGD1A.js → index-CgHVTpta.js} +1 -1
- package/packages/main-app-framework/{index-Dd_-Ntg9.js → index-s70A9HsQ.js} +1 -1
- package/packages/main-app-framework/index-s70A9HsQ.js.gz +0 -0
- package/packages/main-app-framework/{index-5s8nVJvZ.js → index-ubMG9XX_.js} +470 -423
- package/packages/main-app-framework/index-ubMG9XX_.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/packages/micro-frontend/index.js.gz +0 -0
- package/types/i18n/index.d.ts +3 -2
- package/types/main-app-framework/constant/index.d.ts +1 -1
- package/types/main-app-framework/i18n/index.d.ts +56 -0
- package/i18n-collection/en.js +0 -93
- package/i18n-collection/zh-CN.js +0 -93
- package/index-B8Aghk-h.js.gz +0 -0
- package/index-q2gw5DDJ.js.gz +0 -0
- package/packages/main-app-framework/index-5s8nVJvZ.js.gz +0 -0
- package/packages/main-app-framework/index-Dd_-Ntg9.js.gz +0 -0
|
Binary file
|
|
@@ -6,7 +6,7 @@ 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 q, a as u, c as f, b as B, l as P, d as K } from "./index-
|
|
9
|
+
import { u as L, p as q, a as u, c as f, b as B, l as P, d as K } from "./index-Br1xWsnr.js";
|
|
10
10
|
const M = "v1", N = E(`/api/justauth/client/${M}`), O = N.get("/visitor/kingdee/auth/user/auth_code"), Z = /* @__PURE__ */ k({
|
|
11
11
|
__name: "index",
|
|
12
12
|
setup(V) {
|
|
Binary file
|
package/index.js
CHANGED
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { I as e, z as t, B as n, A as i, C as r, e as u, k as o, v as g, n as m, g as p, j as D, r as l, x as L, y as b, f as c, i as h, F as A, G as T, o as y, D as R, E as W, J as I, H as M, s as F, h as V, m as f, q as k, w as v, t as w } from "./index-Br1xWsnr.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
e as DasMainAppLayout,
|
|
4
4
|
t as DasWebLayout,
|
|
5
5
|
n as DasWebMenu,
|
|
6
6
|
i as DasWebNav,
|
|
7
7
|
r as DasWebTabs,
|
|
8
8
|
u as createDasWebApp,
|
|
9
9
|
o as currentLang,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
g as currentTheme,
|
|
11
|
+
m as customLangeData,
|
|
12
|
+
p as getI18nRule,
|
|
13
|
+
D as getLang,
|
|
13
14
|
l as getThemeRule,
|
|
14
|
-
|
|
15
|
+
L as getVar,
|
|
15
16
|
b as getVarValue,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
c as i18n,
|
|
18
|
+
h as initI18n,
|
|
19
|
+
A as initMainApp,
|
|
19
20
|
T as initMicroApp,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
21
|
+
y as initTheme,
|
|
22
|
+
R as layout,
|
|
23
|
+
W as layoutData,
|
|
24
|
+
I as mainAppFramework,
|
|
25
|
+
M as microFrontend,
|
|
26
|
+
F as setI18nRule,
|
|
27
|
+
V as setLang,
|
|
28
|
+
f as setLangRule,
|
|
29
|
+
k as setTheme,
|
|
30
|
+
v as setThemeRule,
|
|
31
|
+
w as t
|
|
31
32
|
};
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/web",
|
|
3
|
-
"version": "6.4.0-dev.54.
|
|
3
|
+
"version": "6.4.0-dev.54.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@das-fed/ui": "6.4.0-dev.54.
|
|
8
|
-
"@das-fed/utils": "6.4.0-dev.54.
|
|
9
|
-
"@das-fed/web": "6.4.0-dev.54.
|
|
10
|
-
"@das-fed/web-components": "6.4.0-dev.54.
|
|
7
|
+
"@das-fed/ui": "6.4.0-dev.54.10",
|
|
8
|
+
"@das-fed/utils": "6.4.0-dev.54.10",
|
|
9
|
+
"@das-fed/web": "6.4.0-dev.54.10",
|
|
10
|
+
"@das-fed/web-components": "6.4.0-dev.54.10",
|
|
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.54.
|
|
21
|
+
"@das-fed/cli": "6.4.0-dev.54.10",
|
|
22
22
|
"@types/lodash": "^4.14.194",
|
|
23
23
|
"@types/lodash-es": "^4.17.12",
|
|
24
24
|
"@vitejs/plugin-vue": "^5.1.0",
|
package/packages/i18n/index.js
CHANGED
|
@@ -1,40 +1,53 @@
|
|
|
1
|
-
import { reactive as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
import { reactive as f, ref as p, computed as h } from "vue";
|
|
2
|
+
const l = f({}), i = f({}), r = f({});
|
|
3
|
+
var b;
|
|
4
|
+
const C = (b = navigator.language) != null && b.toLowerCase().startsWith("zh") ? "zh-CN" : "en", g = p(C), L = "dasI18n", x = (t = {}, s) => {
|
|
5
|
+
const a = s === "global", c = !a, o = {};
|
|
6
|
+
for (const n in t)
|
|
7
|
+
for (const e in t[n])
|
|
8
|
+
o[e] || (o[e] = {}), o[e][n] = t[n][e] ?? "", a && (i[e] || (i[e] = {}), i[e][n] = o[e][n]), c && (l[e] || (l[e] = {}), l[e][n] = o[e][n]);
|
|
9
|
+
}, u = (t = {}, s) => {
|
|
10
|
+
var o;
|
|
11
|
+
const a = s === "global", c = !a;
|
|
12
|
+
for (const n in t)
|
|
13
|
+
if (a && !i[n] && (i[n] = t[n]), c) {
|
|
14
|
+
const e = (o = t[n]) == null ? void 0 : o._appCode;
|
|
15
|
+
e ? (r[e] || (r[e] = {}), r[e][n] = t[n]) : l[n] || (l[n] = t[n]);
|
|
16
|
+
}
|
|
17
|
+
}, w = async (t) => {
|
|
18
|
+
var c, o;
|
|
19
|
+
const s = window[L];
|
|
20
|
+
s && u(s, "global");
|
|
21
|
+
let a = Object.assign(((c = t == null ? void 0 : t.i18n) == null ? void 0 : c.glob) || {});
|
|
22
|
+
(o = t == null ? void 0 : t.microApps) == null || o.map((n) => {
|
|
23
|
+
var e;
|
|
24
|
+
a = Object.assign(a, ((e = n.i18n) == null ? void 0 : e.glob) || {});
|
|
25
|
+
}), Object.values(a).filter((n) => !!n).flat().map((n) => u(n));
|
|
26
|
+
}, D = (t) => {
|
|
27
|
+
let s = "";
|
|
28
|
+
const a = /\/([^\/]+)\/([^\/]+)\//, c = t.match(a);
|
|
29
|
+
return c && c.length >= 3 && (s = c[1] + "/" + c[2]), s;
|
|
30
|
+
}, v = (t, ...s) => h(() => {
|
|
31
|
+
const a = D(location.pathname);
|
|
32
|
+
let c = r[a] ?? {}, o = i[t] || c[t] || l[t] || t;
|
|
33
|
+
if (o === t) return t;
|
|
34
|
+
typeof o == "string" && (o = { "zh-CN": o });
|
|
35
|
+
let n = o[g.value];
|
|
36
|
+
return g.value === "zh-CN" && o["zh-cn"] && !o["zh-CN"] && (n = o["zh-cn"]), s.map((e, m) => {
|
|
37
|
+
n = n.replace(`$${m}`, e);
|
|
38
|
+
}), n;
|
|
39
|
+
}), z = v, N = (t, ...s) => z(t, ...s).value, d = (t) => {
|
|
40
|
+
g.value = t;
|
|
41
|
+
}, j = () => g;
|
|
30
42
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
43
|
+
g as currentLang,
|
|
44
|
+
l as customLangeData,
|
|
45
|
+
v as getI18nRule,
|
|
46
|
+
j as getLang,
|
|
34
47
|
z as i18n,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
48
|
+
w as initI18n,
|
|
49
|
+
u as setI18nRule,
|
|
50
|
+
d as setLang,
|
|
51
|
+
x as setLangRule,
|
|
52
|
+
N as t
|
|
40
53
|
};
|
|
Binary file
|
|
@@ -6,7 +6,7 @@ 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 q, a as u, c as f, b as B, l as P, d as K } from "./index-
|
|
9
|
+
import { u as L, p as q, a as u, c as f, b as B, l as P, d as K } from "./index-ubMG9XX_.js";
|
|
10
10
|
const M = "v1", N = E(`/api/justauth/client/${M}`), O = N.get("/visitor/kingdee/auth/user/auth_code"), Z = /* @__PURE__ */ k({
|
|
11
11
|
__name: "index",
|
|
12
12
|
setup(V) {
|
|
Binary file
|