@das-fed/web 6.4.0-dev.42 → 6.4.0-dev.44

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.
Binary file
@@ -6,7 +6,7 @@ import { DasSpin as $ } from "@das-fed/ui/packages/components/spin/index";
6
6
  import { getTabInfo as x } from "@das-fed/utils/common-info";
7
7
  import { setShowLayout as T } from "@das-fed/utils/common-tools";
8
8
  import { createService as b } from "@das-fed/utils/create-api-service";
9
- import { u as E, a as c, c as f, b as L, l as q, d as B } from "./index-Dblko0RX.js";
9
+ import { u as E, a as c, c as f, b as L, l as q, d as B } from "./index-CQaVm8TE.js";
10
10
  const P = "v1", K = b(`/api/justauth/client/${P}`), N = K.get("/visitor/kingdee/auth/user/auth_code"), X = /* @__PURE__ */ _({
11
11
  __name: "index",
12
12
  setup(O) {
Binary file
package/index.js CHANGED
@@ -1,30 +1,31 @@
1
- import { F as s, w as t, y as n, x as i, z as r, e as p, k as u, p as o, g as m, j as g, o as D, r as l, v as b, f as h, i as A, C as T, D as c, m as y, A as L, B as W, G as M, E as R, s as F, h as I, n as V, q as f, t as k } from "./index-CQ4Ms7M8.js";
1
+ import { G as s, x as t, z as n, y as i, A as r, e as u, k as p, q as o, g, j as m, p as l, v as D, w as b, f as h, i as A, D as L, E as T, n as c, B as y, C as R, H as W, F as M, s as F, h as I, m as V, o as f, r as k, t as v } from "./index-CQaVm8TE.js";
2
2
  export {
3
3
  s as DasMainAppLayout,
4
4
  t as DasWebLayout,
5
5
  n as DasWebMenu,
6
6
  i as DasWebNav,
7
7
  r as DasWebTabs,
8
- p as createDasWebApp,
9
- u as currentLang,
8
+ u as createDasWebApp,
9
+ p as currentLang,
10
10
  o as currentTheme,
11
- m as getI18nRule,
12
- g as getLang,
13
- D as getThemeRule,
14
- l as getVar,
11
+ g as getI18nRule,
12
+ m as getLang,
13
+ l as getThemeRule,
14
+ D as getVar,
15
15
  b as getVarValue,
16
16
  h as i18n,
17
17
  A as initI18n,
18
- T as initMainApp,
19
- c as initMicroApp,
20
- y as initTheme,
21
- L as layout,
22
- W as layoutData,
23
- M as mainAppFramework,
24
- R as microFrontend,
18
+ L as initMainApp,
19
+ T as initMicroApp,
20
+ c as initTheme,
21
+ y as layout,
22
+ R as layoutData,
23
+ W as mainAppFramework,
24
+ M as microFrontend,
25
25
  F as setI18nRule,
26
26
  I as setLang,
27
- V as setTheme,
28
- f as setThemeRule,
29
- k as t
27
+ V as setLangRule,
28
+ f as setTheme,
29
+ k as setThemeRule,
30
+ v as t
30
31
  };
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@das-fed/web",
3
- "version": "6.4.0-dev.42",
3
+ "version": "6.4.0-dev.44",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "dependencies": {
7
- "@das-fed/ui": "6.4.0-dev.42",
8
- "@das-fed/utils": "6.4.0-dev.42",
9
- "@das-fed/web": "6.4.0-dev.42",
10
- "@das-fed/web-components": "6.4.0-dev.42",
7
+ "@das-fed/ui": "6.4.0-dev.44",
8
+ "@das-fed/utils": "6.4.0-dev.44",
9
+ "@das-fed/web": "6.4.0-dev.44",
10
+ "@das-fed/web-components": "6.4.0-dev.44",
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.42",
21
+ "@das-fed/cli": "6.4.0-dev.44",
22
22
  "@types/lodash": "^4.14.194",
23
23
  "@types/lodash-es": "^4.17.12",
24
24
  "@vitejs/plugin-vue": "^5.1.0",
@@ -1,35 +1,40 @@
1
- import { reactive as r, ref as f, computed as b } from "vue";
2
- const g = r({}), u = r({}), c = f("zh-CN"), m = "dasI18n", i = (n, s) => {
3
- const t = s === "global", e = !t;
4
- for (const a in n)
5
- t && (u[a] = n[a]), e && (g[a] = n[a]);
6
- }, z = async (n) => {
7
- var e, a;
8
- const s = window[m];
9
- s && i(s, "global");
10
- let t = Object.assign(((e = n == null ? void 0 : n.i18n) == null ? void 0 : e.glob) || {});
11
- (a = n == null ? void 0 : n.microApps) == null || a.map((l) => {
12
- var o;
13
- t = Object.assign(t, ((o = l.i18n) == null ? void 0 : o.glob) || {});
14
- }), Object.values(t).filter((l) => !!l).flat().map((l) => i(l));
15
- }, I = (n, ...s) => b(() => {
16
- let t = u[n] || g[n] || n;
1
+ import { reactive as u, ref as f, computed as b } from "vue";
2
+ const a = u({}), i = u({}), c = f("zh-CN"), m = "dasI18n", g = (n, l) => {
3
+ const t = l === "global", s = !t;
4
+ for (const o in n)
5
+ t && (i[o] = n[o]), s && (a[o] = n[o]);
6
+ }, z = (n, l, t) => {
7
+ const s = t === "global", o = !s;
8
+ for (const e in n)
9
+ s && (i[e][l] = n[e]), o && (a[e][l] = n[e]);
10
+ }, C = async (n) => {
11
+ var s, o;
12
+ const l = window[m];
13
+ l && g(l, "global");
14
+ let t = Object.assign(((s = n == null ? void 0 : n.i18n) == null ? void 0 : s.glob) || {});
15
+ (o = n == null ? void 0 : n.microApps) == null || o.map((e) => {
16
+ var r;
17
+ t = Object.assign(t, ((r = e.i18n) == null ? void 0 : r.glob) || {});
18
+ }), Object.values(t).filter((e) => !!e).flat().map((e) => g(e));
19
+ }, I = (n, ...l) => b(() => {
20
+ let t = i[n] || a[n] || n;
17
21
  if (t === n) return n;
18
22
  typeof t == "string" && (t = { "zh-CN": t });
19
- let e = t[c.value];
20
- return c.value === "zh-CN" && t["zh-cn"] && !t["zh-CN"] && (e = t["zh-cn"]), s.map((a, l) => {
21
- e = e.replace(`$${l}`, a);
22
- }), e;
23
- }), h = I, C = (n, ...s) => h(n, ...s).value, D = (n) => {
23
+ let s = t[c.value];
24
+ return c.value === "zh-CN" && t["zh-cn"] && !t["zh-CN"] && (s = t["zh-cn"]), l.map((o, e) => {
25
+ s = s.replace(`$${e}`, o);
26
+ }), s;
27
+ }), h = I, L = (n, ...l) => h(n, ...l).value, D = (n) => {
24
28
  c.value = n;
25
- }, L = () => c;
29
+ }, N = () => c;
26
30
  export {
27
31
  c as currentLang,
28
32
  I as getI18nRule,
29
- L as getLang,
33
+ N as getLang,
30
34
  h as i18n,
31
- z as initI18n,
32
- i as setI18nRule,
35
+ C as initI18n,
36
+ g as setI18nRule,
33
37
  D as setLang,
34
- C as t
38
+ z as setLangRule,
39
+ L as t
35
40
  };
Binary file
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as r } from "vue";
2
- import { _ as c } from "./index-Dblko0RX.js";
2
+ import { _ as c } from "./index-CzLHTflM.js";
3
3
  const o = {};
4
4
  function t(n, _) {
5
5
  return e(), r("div");
@@ -6,7 +6,7 @@ import { DasSpin as $ } from "@das-fed/ui/packages/components/spin/index";
6
6
  import { getTabInfo as x } from "@das-fed/utils/common-info";
7
7
  import { setShowLayout as T } from "@das-fed/utils/common-tools";
8
8
  import { createService as b } from "@das-fed/utils/create-api-service";
9
- import { u as E, a as c, c as f, b as L, l as q, d as B } from "./index-CQ4Ms7M8.js";
9
+ import { u as E, a as c, c as f, b as L, l as q, d as B } from "./index-CzLHTflM.js";
10
10
  const P = "v1", K = b(`/api/justauth/client/${P}`), N = K.get("/visitor/kingdee/auth/user/auth_code"), X = /* @__PURE__ */ _({
11
11
  __name: "index",
12
12
  setup(O) {