@das-fed/upf-web 6.4.0-dev.164 → 6.4.0-dev.165

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-CIyVikwB.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-NR-7IC-G.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,30 +1,31 @@
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";
1
+ import { K as e, B as t, D as n, C as i, E as r, e as o, m as u, x as m, o as p, f as g, k as l, w as D, z as L, A as c, h as b, i as h, H as A, I as T, r as y, F as R, G as W, q as I, L as M, J as F, s as V, j as d, n as f, v as k, y as v, t as w } from "./index-NR-7IC-G.js";
2
2
  export {
3
3
  e as DasMainAppLayout,
4
4
  t as DasWebLayout,
5
5
  n as DasWebMenu,
6
6
  i as DasWebNav,
7
7
  r as DasWebTabs,
8
- u as createDasWebApp,
9
- o as currentLang,
8
+ o as createDasWebApp,
9
+ u as currentLang,
10
10
  m as currentTheme,
11
11
  p as customLangeData,
12
12
  g as getI18nRule,
13
- D as getLang,
14
- l as getThemeRule,
13
+ l as getLang,
14
+ D as getThemeRule,
15
15
  L as getVar,
16
- b as getVarValue,
17
- c as i18n,
16
+ c as getVarValue,
17
+ b as i18n,
18
18
  h as initI18n,
19
19
  A as initMainApp,
20
20
  T as initMicroApp,
21
21
  y as initTheme,
22
22
  R as layout,
23
23
  W as layoutData,
24
- I as mainAppFramework,
25
- M as microFrontend,
26
- F as setI18nRule,
27
- V as setLang,
24
+ I as loadLocale,
25
+ M as mainAppFramework,
26
+ F as microFrontend,
27
+ V as setI18nRule,
28
+ d as setLang,
28
29
  f as setLangRule,
29
30
  k as setTheme,
30
31
  v as setThemeRule,
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@das-fed/upf-web",
3
- "version": "6.4.0-dev.164",
3
+ "version": "6.4.0-dev.165",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "dependencies": {
7
- "@das-fed/upf-ui": "6.4.0-dev.164",
8
- "@das-fed/upf-utils": "6.4.0-dev.164",
9
- "@das-fed/upf-web": "6.4.0-dev.164",
10
- "@das-fed/upf-web-components": "6.4.0-dev.164",
7
+ "@das-fed/upf-ui": "6.4.0-dev.165",
8
+ "@das-fed/upf-utils": "6.4.0-dev.165",
9
+ "@das-fed/upf-web": "6.4.0-dev.165",
10
+ "@das-fed/upf-web-components": "6.4.0-dev.165",
11
11
  "@microsoft/signalr": "^8.0.7",
12
12
  "@vueuse/core": "^9.13.0",
13
13
  "animate.css": "^4.1.1",
@@ -19,11 +19,12 @@
19
19
  "vue-router": "^4.4.0"
20
20
  },
21
21
  "devDependencies": {
22
- "@das-fed/upf-cli": "6.4.0-dev.164",
22
+ "@das-fed/upf-cli": "6.4.0-dev.165",
23
23
  "@types/crypto-js": "^4.2.2",
24
24
  "@types/lodash": "^4.14.194",
25
25
  "@types/lodash-es": "^4.17.12",
26
26
  "@vitejs/plugin-vue": "^5.1.0",
27
+ "ant-design-vue": "3.2.20",
27
28
  "consola": "^3.2.3",
28
29
  "execa": "^9.3.0",
29
30
  "minimist": "^1.2.8",
@@ -1,4 +1,4 @@
1
- import { reactive as h, ref as k, computed as _ } from "vue";
1
+ import { reactive as w, ref as _, computed as c } from "vue";
2
2
  const l = {
3
3
  // 按钮
4
4
  详情: { "zh-CN": "详情", en: "Details", _appCode: "framework" },
@@ -119,58 +119,80 @@ 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 = h({}), f = h({}), t = h({}), c = (e, r) => {
122
+ }, d = w({}), t = w({}), m = w({}), u = (e, r) => {
123
123
  let n = window.location.search || "";
124
124
  if (e && e !== location.href) {
125
125
  const p = e.indexOf("?");
126
126
  p !== -1 ? n = e.slice(p) : n = "";
127
127
  }
128
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 = () => {
129
+ }, i = u(location.href, "uiCulture") || {}, g = (i == null ? void 0 : i.uiCulture) || window.localStorage.getItem("language") || window.navigator.language || "zh-CN", f = _(g), P = "dasI18n", N = () => {
130
130
  const e = document.documentElement;
131
- e && e.setAttribute("lang", m.value);
132
- }, D = (e = {}, r) => {
131
+ e && e.setAttribute("lang", f.value);
132
+ }, L = (e = {}, r) => {
133
133
  const n = r === "global", C = !n, p = {};
134
134
  for (const o in e)
135
135
  for (const a in e[o])
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) => {
136
+ p[a] || (p[a] = {}), p[a][o] = e[o][a] ?? "", n && (t[a] || (t[a] = {}), t[a][o] = p[a][o]), C && (d[a] || (d[a] = {}), d[a][o] = p[a][o]);
137
+ }, s = (e = {}, r) => {
138
138
  var p;
139
139
  const n = r === "global", C = !n;
140
140
  for (const o in e)
141
- if (n && !f[o] && (f[o] = e[o]), C) {
141
+ if (n && !t[o] && (t[o] = e[o]), C) {
142
142
  const a = (p = e[o]) != null && p._appCode ? e[o]._appCode.toLowerCase() : "";
143
- a && (t[a] || (t[a] = {}), t[a][o] = e[o]), d[o] || (d[o] = e[o]);
143
+ a && (m[a] || (m[a] = {}), m[a][o] = e[o]), d[o] || (d[o] = e[o]);
144
144
  }
145
- }, b = async (e) => {
146
- s();
147
- const r = window[g];
148
- r && i(r, "global"), i(l);
149
- }, P = (e) => {
145
+ }, D = async (e) => {
146
+ N();
147
+ const r = window[P];
148
+ r && s(r, "global"), s(l);
149
+ }, v = (e) => {
150
150
  let r = "";
151
151
  const n = /\/([^\/]+)\/([^\/]+)\//, C = e.match(n);
152
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;
153
+ }, R = (e, ...r) => c(() => {
154
+ const n = v(location.pathname);
155
+ let C = m.framework ?? {}, p = m[n] ?? {}, o = t[e] || C[e] || p[e] || d[e] || e;
156
156
  if (o === e) return e;
157
157
  typeof o == "string" && (o = { "zh-CN": o });
158
- let a = o[m.value];
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));
158
+ let a = o[f.value];
159
+ return f.value === "zh-CN" && o["zh-cn"] && !o["zh-CN"] && (a = o["zh-cn"]), r.map((z, k) => {
160
+ a && (a = a.replace(`$${k}`, z));
161
161
  }), a;
162
- }), R = v, L = (e, ...r) => R(e, ...r).value, I = (e) => {
163
- m.value = e, s();
164
- }, A = () => m;
162
+ }), S = R, b = (e, ...r) => S(e, ...r).value, j = (e) => {
163
+ f.value = e, N();
164
+ }, E = () => f, h = {
165
+ "en-US": { ant: () => import("ant-design-vue/es/locale/en_US"), dayjs: () => import("dayjs/locale/en") },
166
+ "zh-CN": { ant: () => import("ant-design-vue/es/locale/zh_CN"), dayjs: () => import("dayjs/locale/zh-cn") },
167
+ "zh-MO": { ant: () => import("ant-design-vue/es/locale/zh_TW"), dayjs: () => import("dayjs/locale/zh-tw") },
168
+ "ru-RU": { ant: () => import("ant-design-vue/es/locale/ru_RU"), dayjs: () => import("dayjs/locale/ru") },
169
+ "sv-SE": { ant: () => import("ant-design-vue/es/locale/sv_SE"), dayjs: () => import("dayjs/locale/se") },
170
+ "fr-FR": { ant: () => import("ant-design-vue/es/locale/fr_FR"), dayjs: () => import("dayjs/locale/fr") },
171
+ "de-DE": { ant: () => import("ant-design-vue/es/locale/de_DE"), dayjs: () => import("dayjs/locale/de") },
172
+ "ar-EG": { ant: () => import("ant-design-vue/es/locale/ar_EG"), dayjs: () => import("dayjs/locale/ar") },
173
+ "es-ES": { ant: () => import("ant-design-vue/es/locale/es_ES"), dayjs: () => import("dayjs/locale/es") },
174
+ "it-IT": { ant: () => import("ant-design-vue/es/locale/it_IT"), dayjs: () => import("dayjs/locale/it") },
175
+ "pt-PT": { ant: () => import("ant-design-vue/es/locale/pt_PT"), dayjs: () => import("dayjs/locale/pt") },
176
+ "nl-NL": { ant: () => import("ant-design-vue/es/locale/nl_NL"), dayjs: () => import("dayjs/locale/nl") },
177
+ "tr-TR": { ant: () => import("ant-design-vue/es/locale/tr_TR"), dayjs: () => import("dayjs/locale/tr") }
178
+ }, A = async (e) => {
179
+ const r = h[e] || h["zh-CN"];
180
+ try {
181
+ const n = await r.ant();
182
+ return await r.dayjs(), n.default;
183
+ } catch {
184
+ }
185
+ };
165
186
  export {
166
- m as currentLang,
187
+ f as currentLang,
167
188
  d as customLangeData,
168
- v as getI18nRule,
169
- A as getLang,
170
- R as i18n,
171
- b as initI18n,
172
- i as setI18nRule,
173
- I as setLang,
174
- D as setLangRule,
175
- L as t
189
+ R as getI18nRule,
190
+ E as getLang,
191
+ S as i18n,
192
+ D as initI18n,
193
+ A as loadLocale,
194
+ s as setI18nRule,
195
+ j as setLang,
196
+ L as setLangRule,
197
+ b as t
176
198
  };
Binary file
@@ -21,4 +21,5 @@ declare const i18n: (key: string, ...args: any[]) => import('vue').ComputedRef<s
21
21
  declare const t: (key: string, ...args: any) => string;
22
22
  declare const setLang: (lang: langType) => void;
23
23
  declare const getLang: () => import('vue').Ref<any, any>;
24
- export { initI18n, setI18nRule, getI18nRule, i18n, t, setLang, getLang, currentLang, setLangRule, customLangeData };
24
+ declare const loadLocale: (lang: string) => unknown;
25
+ export { initI18n, setI18nRule, getI18nRule, i18n, t, setLang, getLang, currentLang, setLangRule, customLangeData, loadLocale };
Binary file
Binary file