@das-fed/upf-web 6.4.0-dev.161 → 6.4.0-dev.163
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-DBlQRlUA.js → index-B_O36014.js} +1 -1
- package/{index-z-SxSAzC.js → index-CIyVikwB.js} +1829 -1824
- package/index-CIyVikwB.js.gz +0 -0
- package/{index-DHlhHc0v.js → index-wRYukNjw.js} +1 -1
- package/index-wRYukNjw.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/i18n/index.js +38 -33
- package/packages/i18n/index.js.gz +0 -0
- package/types/i18n/index.d.ts +1 -1
- package/index-DHlhHc0v.js.gz +0 -0
- package/index-z-SxSAzC.js.gz +0 -0
|
Binary file
|
|
@@ -6,7 +6,7 @@ import { DasSpin as x } from "@das-fed/upf-ui/packages/components/spin/index";
|
|
|
6
6
|
import { getTabInfo as T } from "@das-fed/upf-utils/common-info";
|
|
7
7
|
import { setShowLayout as b } from "@das-fed/upf-utils/common-tools";
|
|
8
8
|
import { createService as E } from "@das-fed/upf-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-CIyVikwB.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) {
|
|
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-CIyVikwB.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/upf-web",
|
|
3
|
-
"version": "6.4.0-dev.
|
|
3
|
+
"version": "6.4.0-dev.163",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@das-fed/upf-ui": "6.4.0-dev.
|
|
8
|
-
"@das-fed/upf-utils": "6.4.0-dev.
|
|
9
|
-
"@das-fed/upf-web": "6.4.0-dev.
|
|
10
|
-
"@das-fed/upf-web-components": "6.4.0-dev.
|
|
7
|
+
"@das-fed/upf-ui": "6.4.0-dev.163",
|
|
8
|
+
"@das-fed/upf-utils": "6.4.0-dev.163",
|
|
9
|
+
"@das-fed/upf-web": "6.4.0-dev.163",
|
|
10
|
+
"@das-fed/upf-web-components": "6.4.0-dev.163",
|
|
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/upf-cli": "6.4.0-dev.
|
|
22
|
+
"@das-fed/upf-cli": "6.4.0-dev.163",
|
|
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 k, computed as _ } from "vue";
|
|
2
2
|
const l = {
|
|
3
3
|
// 按钮
|
|
4
4
|
详情: { "zh-CN": "详情", en: "Details", _appCode: "framework" },
|
|
@@ -119,53 +119,58 @@ const l = {
|
|
|
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 =
|
|
123
|
-
|
|
124
|
-
|
|
122
|
+
}, d = h({}), f = h({}), t = h({}), c = (e, r) => {
|
|
123
|
+
let n = window.location.search || "";
|
|
124
|
+
if (e && e !== location.href) {
|
|
125
|
+
const p = e.indexOf("?");
|
|
126
|
+
p !== -1 ? n = e.slice(p) : n = "";
|
|
127
|
+
}
|
|
128
|
+
return new URLSearchParams(n).get(r);
|
|
129
|
+
}, w = c(location.href, "UICulture") || {}, u = (w == null ? void 0 : w.UICulture) || window.localStorage.getItem("language") || window.navigator.language || "zh-CN", m = k(u), g = "dasI18n", s = () => {
|
|
125
130
|
const e = document.documentElement;
|
|
126
131
|
e && e.setAttribute("lang", m.value);
|
|
127
|
-
},
|
|
128
|
-
const
|
|
132
|
+
}, D = (e = {}, r) => {
|
|
133
|
+
const n = r === "global", C = !n, p = {};
|
|
129
134
|
for (const o in e)
|
|
130
135
|
for (const a in e[o])
|
|
131
|
-
|
|
132
|
-
},
|
|
133
|
-
var
|
|
134
|
-
const
|
|
136
|
+
p[a] || (p[a] = {}), p[a][o] = e[o][a] ?? "", n && (f[a] || (f[a] = {}), f[a][o] = p[a][o]), C && (d[a] || (d[a] = {}), d[a][o] = p[a][o]);
|
|
137
|
+
}, i = (e = {}, r) => {
|
|
138
|
+
var p;
|
|
139
|
+
const n = r === "global", C = !n;
|
|
135
140
|
for (const o in e)
|
|
136
|
-
if (
|
|
137
|
-
const a = (
|
|
141
|
+
if (n && !f[o] && (f[o] = e[o]), C) {
|
|
142
|
+
const a = (p = e[o]) != null && p._appCode ? e[o]._appCode.toLowerCase() : "";
|
|
138
143
|
a && (t[a] || (t[a] = {}), t[a][o] = e[o]), d[o] || (d[o] = e[o]);
|
|
139
144
|
}
|
|
140
|
-
},
|
|
141
|
-
|
|
142
|
-
const r = window[
|
|
143
|
-
r &&
|
|
144
|
-
},
|
|
145
|
+
}, b = async (e) => {
|
|
146
|
+
s();
|
|
147
|
+
const r = window[g];
|
|
148
|
+
r && i(r, "global"), i(l);
|
|
149
|
+
}, P = (e) => {
|
|
145
150
|
let r = "";
|
|
146
|
-
const
|
|
147
|
-
return
|
|
148
|
-
},
|
|
149
|
-
const
|
|
150
|
-
let
|
|
151
|
+
const n = /\/([^\/]+)\/([^\/]+)\//, C = e.match(n);
|
|
152
|
+
return C && C.length >= 3 && (r = C[1] + "/" + C[2]), r ? r.toLowerCase() : "";
|
|
153
|
+
}, v = (e, ...r) => _(() => {
|
|
154
|
+
const n = P(location.pathname);
|
|
155
|
+
let C = t.framework ?? {}, p = t[n] ?? {}, o = f[e] || C[e] || p[e] || d[e] || e;
|
|
151
156
|
if (o === e) return e;
|
|
152
157
|
typeof o == "string" && (o = { "zh-CN": o });
|
|
153
158
|
let a = o[m.value];
|
|
154
|
-
return m.value === "zh-CN" && o["zh-cn"] && !o["zh-CN"] && (a = o["zh-cn"]), r.map((
|
|
155
|
-
a && (a = a.replace(`$${
|
|
159
|
+
return m.value === "zh-CN" && o["zh-cn"] && !o["zh-CN"] && (a = o["zh-cn"]), r.map((N, z) => {
|
|
160
|
+
a && (a = a.replace(`$${z}`, N));
|
|
156
161
|
}), a;
|
|
157
|
-
}),
|
|
158
|
-
m.value = e,
|
|
162
|
+
}), R = v, L = (e, ...r) => R(e, ...r).value, I = (e) => {
|
|
163
|
+
m.value = e, s();
|
|
159
164
|
}, A = () => m;
|
|
160
165
|
export {
|
|
161
166
|
m as currentLang,
|
|
162
167
|
d as customLangeData,
|
|
163
|
-
|
|
168
|
+
v as getI18nRule,
|
|
164
169
|
A as getLang,
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
170
|
+
R as i18n,
|
|
171
|
+
b as initI18n,
|
|
172
|
+
i as setI18nRule,
|
|
173
|
+
I as setLang,
|
|
174
|
+
D as setLangRule,
|
|
175
|
+
L as t
|
|
171
176
|
};
|
|
Binary file
|
package/types/i18n/index.d.ts
CHANGED
package/index-DHlhHc0v.js.gz
DELETED
|
Binary file
|
package/index-z-SxSAzC.js.gz
DELETED
|
Binary file
|