@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.
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-z-SxSAzC.js";
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-z-SxSAzC.js";
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.161",
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.161",
8
- "@das-fed/upf-utils": "6.4.0-dev.161",
9
- "@das-fed/upf-web": "6.4.0-dev.161",
10
- "@das-fed/upf-web-components": "6.4.0-dev.161",
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.161",
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",
@@ -1,4 +1,4 @@
1
- import { reactive as w, ref as _, computed as s } from "vue";
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 = w({}), f = w({}), t = w({});
123
- var N;
124
- const c = (N = navigator.language) != null && N.toLowerCase().startsWith("zh") ? "zh-CN" : "en", m = _(c), u = "dasI18n", z = () => {
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
- }, S = (e = {}, r) => {
128
- const C = r === "global", p = !C, n = {};
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
- n[a] || (n[a] = {}), n[a][o] = e[o][a] ?? "", C && (f[a] || (f[a] = {}), f[a][o] = n[a][o]), p && (d[a] || (d[a] = {}), d[a][o] = n[a][o]);
132
- }, h = (e = {}, r) => {
133
- var n;
134
- const C = r === "global", p = !C;
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 (C && !f[o] && (f[o] = e[o]), p) {
137
- const a = (n = e[o]) != null && n._appCode ? e[o]._appCode.toLowerCase() : "";
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
- }, D = async (e) => {
141
- z();
142
- const r = window[u];
143
- r && h(r, "global"), h(l);
144
- }, g = (e) => {
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 C = /\/([^\/]+)\/([^\/]+)\//, p = e.match(C);
147
- return p && p.length >= 3 && (r = p[1] + "/" + p[2]), r ? r.toLowerCase() : "";
148
- }, P = (e, ...r) => s(() => {
149
- const C = g(location.pathname);
150
- let p = t.framework ?? {}, n = t[C] ?? {}, o = f[e] || p[e] || n[e] || d[e] || e;
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((i, k) => {
155
- a && (a = a.replace(`$${k}`, i));
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
- }), v = P, b = (e, ...r) => v(e, ...r).value, L = (e) => {
158
- m.value = e, z();
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
- P as getI18nRule,
168
+ v as getI18nRule,
164
169
  A as getLang,
165
- v as i18n,
166
- D as initI18n,
167
- h as setI18nRule,
168
- L as setLang,
169
- S as setLangRule,
170
- b as t
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
@@ -1,4 +1,4 @@
1
- type langType = 'zh-CN' | 'en';
1
+ type langType = 'zh-CN' | 'en-US' | 'zh-MO';
2
2
  declare const customLangeData: any;
3
3
  declare const currentLang: import('vue').Ref<any, any>;
4
4
  declare const setLangRule: (data?: any, type?: "global" | "custom") => void;
Binary file
Binary file