@das-fed/web 6.4.0-test.5.1 → 6.4.0-test.6.1

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 (29) hide show
  1. package/{index-BlN9vxIO.js → index-CaTnOy_7.js} +1 -1
  2. package/index-CaTnOy_7.js.gz +0 -0
  3. package/{index-DtaKXfS5.js → index-DPLFD5gy.js} +1333 -1331
  4. package/index-DPLFD5gy.js.gz +0 -0
  5. package/{packages/main-app-framework/index-CumtCu7u.js → index-DxhjynU_.js} +1 -1
  6. package/index.js +1 -1
  7. package/package.json +6 -6
  8. package/packages/i18n/index.js +73 -49
  9. package/packages/i18n/index.js.gz +0 -0
  10. package/{index-DFAevptD.js → packages/main-app-framework/index-DJS2UJ9p.js} +1 -1
  11. package/packages/main-app-framework/{index-Cyua9Pa1.js → index-VFl407K9.js} +1 -1
  12. package/packages/main-app-framework/index-VFl407K9.js.gz +0 -0
  13. package/packages/main-app-framework/{index-Bld_nBaQ.js → index-dN-CBG0Y.js} +1247 -1269
  14. package/packages/main-app-framework/index-dN-CBG0Y.js.gz +0 -0
  15. package/packages/main-app-framework/index.js +1 -1
  16. package/packages/main-app-framework/style.css +1 -1
  17. package/packages/main-app-framework/style.css.gz +0 -0
  18. package/style.css +1 -1
  19. package/style.css.gz +0 -0
  20. package/types/i18n/global.d.ts +118 -0
  21. package/types/main-app-framework/i18n/index.d.ts +0 -55
  22. package/types/main-app-framework/index.d.ts +1 -0
  23. package/types/main-app-framework/init-config/get-project-config/api.d.ts +3 -2
  24. package/types/main-app-framework/init-config/get-system-config/index.d.ts +2 -2
  25. package/types/main-app-framework/utils/src/set-common-info.d.ts +2 -0
  26. package/index-BlN9vxIO.js.gz +0 -0
  27. package/index-DtaKXfS5.js.gz +0 -0
  28. package/packages/main-app-framework/index-Bld_nBaQ.js.gz +0 -0
  29. package/packages/main-app-framework/index-Cyua9Pa1.js.gz +0 -0
Binary file
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as r } from "vue";
2
- import { _ as c } from "./index-Bld_nBaQ.js";
2
+ import { _ as c } from "./index-DPLFD5gy.js";
3
3
  const o = {};
4
4
  function t(n, _) {
5
5
  return e(), r("div");
package/index.js CHANGED
@@ -1,4 +1,4 @@
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-DtaKXfS5.js";
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-DPLFD5gy.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-test.5.1",
3
+ "version": "6.4.0-test.6.1",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "dependencies": {
7
- "@das-fed/ui": "6.4.0-test.5.1",
8
- "@das-fed/utils": "6.4.0-test.5.1",
9
- "@das-fed/web": "6.4.0-test.5.1",
10
- "@das-fed/web-components": "6.4.0-test.5.1",
7
+ "@das-fed/ui": "6.4.0-test.6.1",
8
+ "@das-fed/utils": "6.4.0-test.6.1",
9
+ "@das-fed/web": "6.4.0-test.6.1",
10
+ "@das-fed/web-components": "6.4.0-test.6.1",
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-test.5.1",
21
+ "@das-fed/cli": "6.4.0-test.6.1",
22
22
  "@types/lodash": "^4.14.194",
23
23
  "@types/lodash-es": "^4.17.12",
24
24
  "@vitejs/plugin-vue": "^5.1.0",
@@ -1,53 +1,77 @@
1
- import { reactive as f, ref as C, computed as L } from "vue";
2
- const r = f({}), l = f({}), i = f({});
1
+ import { reactive as i, ref as w, computed as d } from "vue";
2
+ const z = {
3
+ 详情: { "zh-CN": "详情", en: "Details", _appCode: "framework" },
4
+ 下载: { "zh-CN": "下载", en: "Download", _appCode: "framework" },
5
+ 审核: { "zh-CN": "审核", en: "Approve", _appCode: "framework" },
6
+ 通过: { "zh-CN": "通过", en: "Pass", _appCode: "framework" },
7
+ 驳回: { "zh-CN": "驳回", en: "Reject", _appCode: "framework" },
8
+ 分派: { "zh-CN": "分派", en: "Assign", _appCode: "framework" },
9
+ 处理: { "zh-CN": "处理", en: "Process", _appCode: "framework" },
10
+ 删除: { "zh-CN": "删除", en: "Delete", _appCode: "framework" },
11
+ 回复: { "zh-CN": "回复", en: "Reply", _appCode: "framework" },
12
+ 新增: { "zh-CN": "新增", en: "Add", _appCode: "framework" },
13
+ 批量删除: { "zh-CN": "批量删除", en: "Bulk Delete", _appCode: "framework" },
14
+ 提交: { "zh-CN": "提交", en: "Submit", _appCode: "framework" },
15
+ 查看记录: { "zh-CN": "查看记录", en: "Details", _appCode: "framework" },
16
+ 分享: { "zh-CN": "分享", en: "Share", _appCode: "framework" },
17
+ 取消: { "zh-CN": "取消", en: "Cancel", _appCode: "framework" },
18
+ 编辑: { "zh-CN": "编辑", en: "Edit", _appCode: "framework" },
19
+ 保存: { "zh-CN": "保存", en: "Save", _appCode: "framework" },
20
+ 确定: { "zh-CN": "确定", en: "OK", _appCode: "framework" },
21
+ 设备总数: { "zh-CN": "设备总数", en: "Total Devices", _appCode: "framework" },
22
+ 在线数: { "zh-CN": "在线数", en: "Online", _appCode: "framework" },
23
+ 离线数: { "zh-CN": "离线数", en: "Offline", _appCode: "framework" },
24
+ 已停用: { "zh-CN": "已停用", en: "Deactivated", _appCode: "framework" },
25
+ 未激活: { "zh-CN": "未激活", en: "Inactive", _appCode: "framework" }
26
+ }, p = i({}), C = i({}), l = i({});
3
27
  var m;
4
- const h = (m = navigator.language) != null && m.toLowerCase().startsWith("zh") ? "zh-CN" : "en", g = C(h), D = "dasI18n", x = (n = {}, o) => {
5
- const a = o === "global", s = !a, c = {};
6
- for (const t in n)
7
- for (const e in n[t])
8
- c[e] || (c[e] = {}), c[e][t] = n[t][e] ?? "", a && (l[e] || (l[e] = {}), l[e][t] = c[e][t]), s && (r[e] || (r[e] = {}), r[e][t] = c[e][t]);
9
- }, u = (n = {}, o) => {
10
- var c;
11
- const a = o === "global", s = !a;
12
- for (const t in n)
13
- if (a && !l[t] && (l[t] = n[t]), s) {
14
- const e = (c = n[t]) != null && c._appCode ? n[t]._appCode.toLowerCase() : "";
15
- e && (i[e] || (i[e] = {}), i[e][t] = n[t]), r[t] || (r[t] = n[t]);
28
+ const u = (m = navigator.language) != null && m.toLowerCase().startsWith("zh") ? "zh-CN" : "en", c = w(u), N = "dasI18n", L = (a = {}, n) => {
29
+ const r = n === "global", t = !r, s = {};
30
+ for (const e in a)
31
+ for (const o in a[e])
32
+ s[o] || (s[o] = {}), s[o][e] = a[e][o] ?? "", r && (C[o] || (C[o] = {}), C[o][e] = s[o][e]), t && (p[o] || (p[o] = {}), p[o][e] = s[o][e]);
33
+ }, f = (a = {}, n) => {
34
+ var s;
35
+ const r = n === "global", t = !r;
36
+ for (const e in a)
37
+ if (r && !C[e] && (C[e] = a[e]), t) {
38
+ const o = (s = a[e]) != null && s._appCode ? a[e]._appCode.toLowerCase() : "";
39
+ o && (l[o] || (l[o] = {}), l[o][e] = a[e]), p[e] || (p[e] = a[e]);
16
40
  }
17
- }, N = async (n) => {
18
- var s, c;
19
- const o = window[D];
20
- o && u(o, "global");
21
- let a = Object.assign(((s = n == null ? void 0 : n.i18n) == null ? void 0 : s.glob) || {});
22
- (c = n == null ? void 0 : n.microApps) == null || c.map((t) => {
23
- var e;
24
- a = Object.assign(a, ((e = t.i18n) == null ? void 0 : e.glob) || {});
25
- }), Object.values(a).filter((t) => !!t).flat().map((t) => u(t));
26
- }, w = (n) => {
27
- let o = "";
28
- const a = /\/([^\/]+)\/([^\/]+)\//, s = n.match(a);
29
- return s && s.length >= 3 && (o = s[1] + "/" + s[2]), o ? o.toLowerCase() : "";
30
- }, v = (n, ...o) => L(() => {
31
- const a = w(location.pathname);
32
- let s = i.framework ?? {}, c = i[a] ?? {}, t = l[n] || s[n] || c[n] || r[n] || n;
33
- if (t === n) return n;
34
- typeof t == "string" && (t = { "zh-CN": t });
35
- let e = t[g.value];
36
- return g.value === "zh-CN" && t["zh-cn"] && !t["zh-CN"] && (e = t["zh-cn"]), o.map((b, p) => {
37
- e = e.replace(`$${p}`, b);
38
- }), e;
39
- }), z = v, d = (n, ...o) => z(n, ...o).value, j = (n) => {
40
- g.value = n;
41
- }, G = () => g;
41
+ }, v = async (a) => {
42
+ var t, s;
43
+ const n = window[N];
44
+ n && f(n, "global"), f(z);
45
+ let r = Object.assign(((t = a == null ? void 0 : a.i18n) == null ? void 0 : t.glob) || {});
46
+ (s = a == null ? void 0 : a.microApps) == null || s.map((e) => {
47
+ var o;
48
+ r = Object.assign(r, ((o = e.i18n) == null ? void 0 : o.glob) || {});
49
+ }), Object.values(r).filter((e) => !!e).flat().map((e) => f(e));
50
+ }, _ = (a) => {
51
+ let n = "";
52
+ const r = /\/([^\/]+)\/([^\/]+)\//, t = a.match(r);
53
+ return t && t.length >= 3 && (n = t[1] + "/" + t[2]), n ? n.toLowerCase() : "";
54
+ }, k = (a, ...n) => d(() => {
55
+ const r = _(location.pathname);
56
+ let t = l.framework ?? {}, s = l[r] ?? {}, e = C[a] || t[a] || s[a] || p[a] || a;
57
+ if (e === a) return a;
58
+ typeof e == "string" && (e = { "zh-CN": e });
59
+ let o = e[c.value];
60
+ return c.value === "zh-CN" && e["zh-cn"] && !e["zh-CN"] && (o = e["zh-cn"]), n.map((h, g) => {
61
+ o = o.replace(`$${g}`, h);
62
+ }), o;
63
+ }), D = k, I = (a, ...n) => D(a, ...n).value, O = (a) => {
64
+ c.value = a;
65
+ }, x = () => c;
42
66
  export {
43
- g as currentLang,
44
- r as customLangeData,
45
- v as getI18nRule,
46
- G as getLang,
47
- z as i18n,
48
- N as initI18n,
49
- u as setI18nRule,
50
- j as setLang,
51
- x as setLangRule,
52
- d as t
67
+ c as currentLang,
68
+ p as customLangeData,
69
+ k as getI18nRule,
70
+ x as getLang,
71
+ D as i18n,
72
+ v as initI18n,
73
+ f as setI18nRule,
74
+ O as setLang,
75
+ L as setLangRule,
76
+ I as t
53
77
  };
Binary file
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as r } from "vue";
2
- import { _ as c } from "./index-DtaKXfS5.js";
2
+ import { _ as c } from "./index-dN-CBG0Y.js";
3
3
  const o = {};
4
4
  function t(n, _) {
5
5
  return e(), r("div");
@@ -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-Bld_nBaQ.js";
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-dN-CBG0Y.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) {