@das-fed/web 7.1.0-dev.33 → 7.1.0-dev.36
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-Co-HORmb.js → index-BWn-Pl08.js} +1 -1
- package/{index-DM0W6wXZ.js → index-CqoyDk2A.js} +1 -1
- package/index-CqoyDk2A.js.gz +0 -0
- package/{index-DII2s5jN.js → index-DWQBmiPa.js} +7 -9
- package/{index-DII2s5jN.js.gz → index-DWQBmiPa.js.gz} +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/i18n/index.js +40 -42
- package/packages/i18n/index.js.gz +0 -0
- package/types/i18n/index.d.ts +4 -0
- package/index-DM0W6wXZ.js.gz +0 -0
|
@@ -6,7 +6,7 @@ import { DasSpin as T } from "@das-fed/ui/packages/components/spin/index";
|
|
|
6
6
|
import { getTabInfo as b } from "@das-fed/utils/common-info";
|
|
7
7
|
import { setShowLayout as E } from "@das-fed/utils/common-tools";
|
|
8
8
|
import { createService as L } from "@das-fed/utils/create-api-service";
|
|
9
|
-
import { u as P, p as q, a as u, c as d, b as B, l as K, g as M, d as N } from "./index-
|
|
9
|
+
import { u as P, p as q, a as u, c as d, b as B, l as K, g as M, d as N } from "./index-DWQBmiPa.js";
|
|
10
10
|
const O = "v1", V = L(`/api/justauth/client/${O}`), F = V.get("/visitor/kingdee/auth/user/auth_code"), ee = /* @__PURE__ */ v({
|
|
11
11
|
__name: "index",
|
|
12
12
|
setup(G) {
|
|
Binary file
|
|
@@ -245,16 +245,14 @@ const S0 = sessionStorage.getItem("currentLang") ? sessionStorage.getItem("curre
|
|
|
245
245
|
z && (A7[z] || (A7[z] = {}), A7[z][P] = n[P]), i3[P] || (i3[P] = n[P]);
|
|
246
246
|
}
|
|
247
247
|
}, kZ = async (n) => {
|
|
248
|
-
var u
|
|
248
|
+
var u;
|
|
249
249
|
const v = document.documentElement;
|
|
250
250
|
v && v.setAttribute("lang", v7.value);
|
|
251
251
|
const e = window[K0];
|
|
252
|
-
e && Pr(e, "global"), Pr(Y0)
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
t = Object.assign(t, ((b = z.i18n) == null ? void 0 : b.glob) || {});
|
|
257
|
-
}), Object.values(t).filter((z) => !!z).flat().map((z) => Pr(z));
|
|
252
|
+
e && Pr(e, "global"), Pr(Y0), [(u = n == null ? void 0 : n.i18n) == null ? void 0 : u.glob, ...((n == null ? void 0 : n.microApps) ?? []).map((P) => {
|
|
253
|
+
var z;
|
|
254
|
+
return (z = P.i18n) == null ? void 0 : z.glob;
|
|
255
|
+
})].flatMap((P) => Object.values(P ?? {})).filter(Boolean).flat().forEach((P) => Pr(P));
|
|
258
256
|
}, h0 = (n) => {
|
|
259
257
|
let v = "";
|
|
260
258
|
const e = /\/([^\/]+)\/([^\/]+)\//, t = n.match(e);
|
|
@@ -18151,7 +18149,7 @@ g("@das-fed/web");
|
|
|
18151
18149
|
const NN = [
|
|
18152
18150
|
{
|
|
18153
18151
|
path: ff,
|
|
18154
|
-
component: () => import("./index-
|
|
18152
|
+
component: () => import("./index-CqoyDk2A.js"),
|
|
18155
18153
|
meta: {
|
|
18156
18154
|
layout: {
|
|
18157
18155
|
minWidth: "0px"
|
|
@@ -18160,7 +18158,7 @@ const NN = [
|
|
|
18160
18158
|
},
|
|
18161
18159
|
{
|
|
18162
18160
|
path: zd,
|
|
18163
|
-
component: () => import("./index-
|
|
18161
|
+
component: () => import("./index-BWn-Pl08.js")
|
|
18164
18162
|
}
|
|
18165
18163
|
], fT = {
|
|
18166
18164
|
routes: NN,
|
|
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-DWQBmiPa.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": "7.1.0-dev.
|
|
3
|
+
"version": "7.1.0-dev.36",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@das-fed/ui": "7.1.0-dev.
|
|
8
|
-
"@das-fed/utils": "7.1.0-dev.
|
|
9
|
-
"@das-fed/web": "7.1.0-dev.
|
|
10
|
-
"@das-fed/web-components": "7.1.0-dev.
|
|
7
|
+
"@das-fed/ui": "7.1.0-dev.36",
|
|
8
|
+
"@das-fed/utils": "7.1.0-dev.36",
|
|
9
|
+
"@das-fed/web": "7.1.0-dev.36",
|
|
10
|
+
"@das-fed/web-components": "7.1.0-dev.36",
|
|
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": "7.1.0-dev.
|
|
22
|
+
"@das-fed/cli": "7.1.0-dev.36",
|
|
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 h, ref as z, computed as k } from "vue";
|
|
2
2
|
const _ = {
|
|
3
3
|
// 按钮
|
|
4
4
|
详情: { "zh-CN": "详情", en: "Details", _appCode: "framework" },
|
|
@@ -119,57 +119,55 @@ 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 =
|
|
122
|
+
}, d = h({}), f = h({}), m = h({});
|
|
123
123
|
var i;
|
|
124
|
-
const l = sessionStorage.getItem("currentLang") ? sessionStorage.getItem("currentLang") : (i = navigator.language) != null && i.toLowerCase().startsWith("zh") ? "zh-CN" : "en",
|
|
125
|
-
const
|
|
126
|
-
for (const
|
|
127
|
-
for (const a in e
|
|
128
|
-
|
|
129
|
-
},
|
|
130
|
-
var
|
|
131
|
-
const
|
|
132
|
-
for (const
|
|
133
|
-
if (
|
|
134
|
-
const a = (
|
|
135
|
-
a && (
|
|
124
|
+
const l = sessionStorage.getItem("currentLang") ? sessionStorage.getItem("currentLang") : (i = navigator.language) != null && i.toLowerCase().startsWith("zh") ? "zh-CN" : "en", t = z(l), c = "dasI18n", S = (o = {}, r) => {
|
|
125
|
+
const p = r === "global", C = !p, n = {};
|
|
126
|
+
for (const e in o)
|
|
127
|
+
for (const a in o[e])
|
|
128
|
+
n[a] || (n[a] = {}), n[a][e] = o[e][a] ?? "", p && (f[a] || (f[a] = {}), f[a][e] = n[a][e]), C && (d[a] || (d[a] = {}), d[a][e] = n[a][e]);
|
|
129
|
+
}, w = (o = {}, r) => {
|
|
130
|
+
var n;
|
|
131
|
+
const p = r === "global", C = !p;
|
|
132
|
+
for (const e in o)
|
|
133
|
+
if (p && !f[e] && (f[e] = o[e]), C) {
|
|
134
|
+
const a = (n = o[e]) != null && n._appCode ? o[e]._appCode.toLowerCase() : "";
|
|
135
|
+
a && (m[a] || (m[a] = {}), m[a][e] = o[e]), d[e] || (d[e] = o[e]);
|
|
136
136
|
}
|
|
137
|
-
},
|
|
138
|
-
var
|
|
137
|
+
}, b = async (o) => {
|
|
138
|
+
var n;
|
|
139
139
|
const r = document.documentElement;
|
|
140
|
-
r && r.setAttribute("lang",
|
|
141
|
-
const
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}), Object.values(n).filter((a) => !!a).flat().map((a) => h(a));
|
|
148
|
-
}, u = (e) => {
|
|
140
|
+
r && r.setAttribute("lang", t.value);
|
|
141
|
+
const p = window[c];
|
|
142
|
+
p && w(p, "global"), w(_), [(n = o == null ? void 0 : o.i18n) == null ? void 0 : n.glob, ...((o == null ? void 0 : o.microApps) ?? []).map((e) => {
|
|
143
|
+
var a;
|
|
144
|
+
return (a = e.i18n) == null ? void 0 : a.glob;
|
|
145
|
+
})].flatMap((e) => Object.values(e ?? {})).filter(Boolean).flat().forEach((e) => w(e));
|
|
146
|
+
}, u = (o) => {
|
|
149
147
|
let r = "";
|
|
150
|
-
const
|
|
151
|
-
return
|
|
152
|
-
}, g = (
|
|
153
|
-
const
|
|
154
|
-
let
|
|
155
|
-
if (
|
|
156
|
-
typeof
|
|
157
|
-
let a =
|
|
158
|
-
return
|
|
159
|
-
a && (a = a.replace(`$${N}`,
|
|
148
|
+
const p = /\/([^\/]+)\/([^\/]+)\//, C = o.match(p);
|
|
149
|
+
return C && C.length >= 3 && (r = C[1] + "/" + C[2]), r ? r.toLowerCase() : "";
|
|
150
|
+
}, g = (o, ...r) => k(() => {
|
|
151
|
+
const p = u(location.pathname);
|
|
152
|
+
let C = m.framework ?? {}, n = m[p] ?? {}, e = f[o] || C[o] || n[o] || d[o] || o;
|
|
153
|
+
if (e === o) return o;
|
|
154
|
+
typeof e == "string" && (e = { "zh-CN": e });
|
|
155
|
+
let a = e[t.value];
|
|
156
|
+
return t.value === "zh-CN" && e["zh-cn"] && !e["zh-CN"] && (a = e["zh-cn"]), r.map((s, N) => {
|
|
157
|
+
a && (a = a.replace(`$${N}`, s));
|
|
160
158
|
}), a;
|
|
161
|
-
}), P = g, R = (
|
|
162
|
-
sessionStorage.setItem("currentLang",
|
|
163
|
-
}, L = () =>
|
|
159
|
+
}), P = g, R = (o, ...r) => P(o, ...r).value, D = (o) => {
|
|
160
|
+
sessionStorage.setItem("currentLang", o), t.value = o;
|
|
161
|
+
}, L = () => t;
|
|
164
162
|
export {
|
|
165
|
-
|
|
163
|
+
t as currentLang,
|
|
166
164
|
d as customLangeData,
|
|
167
165
|
g as getI18nRule,
|
|
168
166
|
L as getLang,
|
|
169
167
|
P as i18n,
|
|
170
|
-
|
|
171
|
-
|
|
168
|
+
b as initI18n,
|
|
169
|
+
w as setI18nRule,
|
|
172
170
|
D as setLang,
|
|
173
|
-
|
|
171
|
+
S as setLangRule,
|
|
174
172
|
R as t
|
|
175
173
|
};
|
|
Binary file
|
package/types/i18n/index.d.ts
CHANGED
|
@@ -2,6 +2,10 @@ declare const customLangeData: any;
|
|
|
2
2
|
declare const currentLang: import('vue').Ref<any, any>;
|
|
3
3
|
declare const setLangRule: (data?: any, type?: "global" | "custom") => void;
|
|
4
4
|
declare const setI18nRule: (data?: any, type?: "global" | "custom") => void;
|
|
5
|
+
/**
|
|
6
|
+
* 初始化主应用及所有微应用的国际化配置。
|
|
7
|
+
* @param opt 应用初始化配置,包含当前应用和微应用的语言模块
|
|
8
|
+
*/
|
|
5
9
|
declare const initI18n: (opt?: any) => any;
|
|
6
10
|
/**
|
|
7
11
|
* 获取国际化键名对应的文本
|
package/index-DM0W6wXZ.js.gz
DELETED
|
Binary file
|