@das-fed/upf-web 6.4.0-hot.3 → 6.4.0-hot.4

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.
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as r } from "vue";
2
- import { _ as c } from "./index-CuxN_o3P.js";
2
+ import { _ as c } from "./index-DTDqZtIi.js";
3
3
  const o = {};
4
4
  function t(n, _) {
5
5
  return e(), r("div");
@@ -5,7 +5,7 @@ import { createPinia as or } from "pinia";
5
5
  import Zr from "pinia-plugin-persistedstate";
6
6
  import { createRouter as Tr, createWebHistory as Lr, useRouter as ye, useRoute as A9 } from "vue-router";
7
7
  import { getUrlParams as Ev, handleI18nData as yr, flatTree as CA, filterTreeArray as wr, isEmpty as Wr, treeFind as e3, setBrowseTitle as Er, updateFavIcon as Ir, dateFormat as gr, runPromiseByQueue as Mr, objEqual as _f, setShowWatermark as $f, setShowLayout as A7, withToken as Br } from "@das-fed/upf-utils/common-tools";
8
- import { getConfig as le } from "@das-fed/upf-utils/config";
8
+ import { getConfig as me } from "@das-fed/upf-utils/config";
9
9
  import { microFrontend as gA } from "@das-fed/upf-web/packages/micro-frontend/index";
10
10
  import { i18n as fA, t as k, currentLang as D9, setLang as kr, setI18nRule as Qr } from "@das-fed/upf-web/packages/i18n/index";
11
11
  import { DasIconWarning as Yr } from "@das-fed/upf-ui/packages/icons/warning/index";
@@ -13,7 +13,7 @@ import { DasIconClose2 as Gr } from "@das-fed/upf-ui/packages/icons/close-2/inde
13
13
  import { DasChangePwdRef as Ur, DasChangePwd as Jr } from "@das-fed/upf-ui/packages/business-components/change-pwd/index";
14
14
  import { DasChangeEnterprises as hr } from "@das-fed/upf-ui/packages/business-components/change-enterprises/index";
15
15
  import { DasAiPanel as Fr } from "@das-fed/upf-ui/packages/business-components/ai-panel/index";
16
- import { getSubApps as cA, getTabInfo as EA, getToken as me, getTenantInfo as G9, getProjectInfo as Ae, getPersonalInfo as V9, getLanguages as Sr, getUserInfo as Iv, getMenus as M9 } from "@das-fed/upf-utils/common-info";
16
+ import { getSubApps as cA, getTabInfo as EA, getToken as xe, getTenantInfo as G9, getProjectInfo as Ae, getPersonalInfo as V9, getLanguages as Sr, getUserInfo as Iv, getMenus as M9 } from "@das-fed/upf-utils/common-info";
17
17
  import { pureImageSrc as U9 } from "@das-fed/upf-utils/pure-image-src";
18
18
  import { DasNotification as B9 } from "@das-fed/upf-ui/packages/components/notification/index";
19
19
  import { setProcessEngineProject as gv, setProcessEngineToken as Mv } from "@das-fed/upf-utils/process-engine-info";
@@ -66,7 +66,7 @@ const Nt = {
66
66
  }
67
67
  }, v7 = or();
68
68
  v7.use(Zr);
69
- const Fv = "language", Ve = de({}), Ne = de({}), a9 = de({}), Rt = Ev(location.href, "uiCulture") || "", jt = Rt || window.localStorage.getItem(Fv) || window.navigator.language || "zh-CN", Se = T(jt), ot = "dasI18n", Sv = () => {
69
+ const Fv = "language", pe = de({}), Ne = de({}), a9 = de({}), Rt = Ev(location.href, "uiCulture") || "", jt = Rt || window.localStorage.getItem(Fv) || window.navigator.language || "zh-CN", Se = T(jt), ot = "dasI18n", Sv = () => {
70
70
  const e = document.documentElement;
71
71
  e && e.setAttribute("lang", Se.value);
72
72
  }, v3 = (e = {}, A) => {
@@ -75,15 +75,15 @@ const Fv = "language", Ve = de({}), Ne = de({}), a9 = de({}), Rt = Ev(location.h
75
75
  const n = {};
76
76
  for (const r in e)
77
77
  for (const P in e[r])
78
- n[P] || (n[P] = {}), n[P][r] = e[r][P] ?? "", f && (Ne[P] || (Ne[P] = {}), Ne[P][r] = n[P][r]), v && (Ve[P] || (Ve[P] = {}), Ve[P][r] = n[P][r]);
79
- console.log("customLangeData===", Ve), console.log("globalLangeData===", Ne);
78
+ n[P] || (n[P] = {}), n[P][r] = e[r][P] ?? "", f && (Ne[P] || (Ne[P] = {}), Ne[P][r] = n[P][r]), v && (pe[P] || (pe[P] = {}), pe[P][r] = n[P][r]);
79
+ console.log("customLangeData===", pe), console.log("globalLangeData===", Ne);
80
80
  }, Zt = (e = {}, A) => {
81
81
  var n;
82
82
  const f = A === "global", v = !f;
83
83
  for (const r in e)
84
84
  if (f && !Ne[r] && (Ne[r] = e[r]), v) {
85
85
  const P = (n = e[r]) != null && n._appCode ? e[r]._appCode.toLowerCase() : "";
86
- P && (a9[P] || (a9[P] = {}), a9[P][r] = e[r]), Ve[r] || (Ve[r] = e[r]);
86
+ P && (a9[P] || (a9[P] = {}), a9[P][r] = e[r]), pe[r] || (pe[r] = e[r]);
87
87
  }
88
88
  }, Bb = async (e) => {
89
89
  Sv();
@@ -95,9 +95,9 @@ const Fv = "language", Ve = de({}), Ne = de({}), a9 = de({}), Rt = Ev(location.h
95
95
  return v && v.length >= 3 && (A = v[1] + "/" + v[2]), A ? A.toLowerCase() : "";
96
96
  }, Lt = (e, ...A) => vA(() => {
97
97
  const f = Tt(location.pathname);
98
- let v = a9.framework ?? {}, n = a9[f] ?? {}, r = Ve[e] || Ne[e] || v[e] || n[e] || e;
98
+ let v = a9.framework ?? {}, n = a9[f] ?? {}, r = pe[e] || Ne[e] || v[e] || n[e] || e;
99
99
  if (r === e) return e;
100
- typeof r == "string" && (r = { "zh-CN": r });
100
+ console.log("customLangeData===222", pe), typeof r == "string" && (r = { "zh-CN": r });
101
101
  let P = r[Se.value];
102
102
  return Se.value === "zh-CN" && r["zh-cn"] && !r["zh-CN"] && (P = r["zh-cn"]), A.map((u, z) => {
103
103
  P && (P = P.replace(`$${z}`, u));
@@ -145,7 +145,7 @@ const Gb = async (e) => {
145
145
  }
146
146
  }, Et = async (e, A) => {
147
147
  var u, z, t;
148
- const f = le() || {}, v = ((u = f.i18n) == null ? void 0 : u.fromOss) ?? !0, n = ((z = f.i18n) == null ? void 0 : z.isPullBack) ?? !1, r = ((t = f.i18n) == null ? void 0 : t.isDasUI) ?? !0;
148
+ const f = me() || {}, v = ((u = f.i18n) == null ? void 0 : u.fromOss) ?? !0, n = ((z = f.i18n) == null ? void 0 : z.isPullBack) ?? !1, r = ((t = f.i18n) == null ? void 0 : t.isDasUI) ?? !0;
149
149
  let P = "/oss/resource/";
150
150
  try {
151
151
  const X = await yr({
@@ -165,10 +165,11 @@ const Gb = async (e) => {
165
165
  }, It = async (e = [], A = "zh-CN") => {
166
166
  console.log("registerMicroI18nData===", e, A);
167
167
  try {
168
+ wt(A);
168
169
  const f = await Et(e, A);
169
170
  console.log("i18nData===", f), f != null && f.frontEnd && typeof f.frontEnd == "object" && Object.keys(f.frontEnd).length && e.forEach((v) => {
170
171
  f.frontEnd[v] && typeof f.frontEnd[v] == "object" && Object.keys(f.frontEnd[v]).length ? v3({ [A]: f.frontEnd[v] }) : console.warn(`No front-end i18n data found for app: ${v}`);
171
- }), f != null && f.dasUiEnd && typeof f.dasUiEnd == "object" && Object.keys(f.dasUiEnd).length && v3({ [A]: f.dasUiEnd }), wt(A);
172
+ }), f != null && f.dasUiEnd && typeof f.dasUiEnd == "object" && Object.keys(f.dasUiEnd).length && v3({ [A]: f.dasUiEnd });
172
173
  } catch (f) {
173
174
  console.error("registerMicroI18nData error:", f);
174
175
  }
@@ -3418,7 +3419,7 @@ function tn() {
3418
3419
  ]);
3419
3420
  },
3420
3421
  _doProcessBlock: function(a, q) {
3421
- for (var b = this._hash.words, H = b[0], c = b[1], s = b[2], l = b[3], x = b[4], D = b[5], V = b[6], j = b[7], R = H.high, m = H.low, N = c.high, o = c.low, Z = s.high, h = s.low, K = l.high, F = l.low, S = x.high, Y = x.low, J = D.high, eA = D.low, L = V.high, w = V.low, I = j.high, E = j.low, sA = R, bA = m, jA = N, _ = o, AA = Z, nA = h, Oe = K, G = F, W = S, M = Y, yA = J, ze = eA, Z9 = L, r9 = w, rf = I, t9 = E, ve = 0; ve < 80; ve++) {
3422
+ for (var b = this._hash.words, H = b[0], c = b[1], s = b[2], l = b[3], x = b[4], D = b[5], V = b[6], j = b[7], R = H.high, m = H.low, N = c.high, o = c.low, Z = s.high, h = s.low, K = l.high, F = l.low, S = x.high, Y = x.low, J = D.high, eA = D.low, L = V.high, w = V.low, I = j.high, E = j.low, sA = R, bA = m, jA = N, _ = o, AA = Z, nA = h, De = K, G = F, W = S, M = Y, yA = J, ze = eA, Z9 = L, r9 = w, rf = I, t9 = E, ve = 0; ve < 80; ve++) {
3422
3423
  var ee, qe, T9 = X[ve];
3423
3424
  if (ve < 16)
3424
3425
  qe = T9.high = a[q + ve * 2] | 0, ee = T9.low = a[q + ve * 2 + 1] | 0;
@@ -3427,9 +3428,9 @@ function tn() {
3427
3428
  ee = B7 + tr, qe = vr + rr + (ee >>> 0 < B7 >>> 0 ? 1 : 0), ee = ee + Q7, qe = qe + nr + (ee >>> 0 < Q7 >>> 0 ? 1 : 0), ee = ee + U7, qe = qe + Pr + (ee >>> 0 < U7 >>> 0 ? 1 : 0), T9.high = qe, T9.low = ee;
3428
3429
  }
3429
3430
  var ur = W & yA ^ ~W & Z9, J7 = M & ze ^ ~M & r9, zr = sA & jA ^ sA & AA ^ jA & AA, dr = bA & _ ^ bA & nA ^ _ & nA, Xr = (sA >>> 28 | bA << 4) ^ (sA << 30 | bA >>> 2) ^ (sA << 25 | bA >>> 7), h7 = (bA >>> 28 | sA << 4) ^ (bA << 30 | sA >>> 2) ^ (bA << 25 | sA >>> 7), cr = (W >>> 14 | M << 18) ^ (W >>> 18 | M << 14) ^ (W << 23 | M >>> 9), br = (M >>> 14 | W << 18) ^ (M >>> 18 | W << 14) ^ (M << 23 | W >>> 9), F7 = p[ve], ar = F7.high, S7 = F7.low, SA = t9 + br, He = rf + cr + (SA >>> 0 < t9 >>> 0 ? 1 : 0), SA = SA + J7, He = He + ur + (SA >>> 0 < J7 >>> 0 ? 1 : 0), SA = SA + S7, He = He + ar + (SA >>> 0 < S7 >>> 0 ? 1 : 0), SA = SA + ee, He = He + qe + (SA >>> 0 < ee >>> 0 ? 1 : 0), K7 = h7 + dr, ir = Xr + zr + (K7 >>> 0 < h7 >>> 0 ? 1 : 0);
3430
- rf = Z9, t9 = r9, Z9 = yA, r9 = ze, yA = W, ze = M, M = G + SA | 0, W = Oe + He + (M >>> 0 < G >>> 0 ? 1 : 0) | 0, Oe = AA, G = nA, AA = jA, nA = _, jA = sA, _ = bA, bA = SA + K7 | 0, sA = He + ir + (bA >>> 0 < SA >>> 0 ? 1 : 0) | 0;
3431
+ rf = Z9, t9 = r9, Z9 = yA, r9 = ze, yA = W, ze = M, M = G + SA | 0, W = De + He + (M >>> 0 < G >>> 0 ? 1 : 0) | 0, De = AA, G = nA, AA = jA, nA = _, jA = sA, _ = bA, bA = SA + K7 | 0, sA = He + ir + (bA >>> 0 < SA >>> 0 ? 1 : 0) | 0;
3431
3432
  }
3432
- m = H.low = m + bA, H.high = R + sA + (m >>> 0 < bA >>> 0 ? 1 : 0), o = c.low = o + _, c.high = N + jA + (o >>> 0 < _ >>> 0 ? 1 : 0), h = s.low = h + nA, s.high = Z + AA + (h >>> 0 < nA >>> 0 ? 1 : 0), F = l.low = F + G, l.high = K + Oe + (F >>> 0 < G >>> 0 ? 1 : 0), Y = x.low = Y + M, x.high = S + W + (Y >>> 0 < M >>> 0 ? 1 : 0), eA = D.low = eA + ze, D.high = J + yA + (eA >>> 0 < ze >>> 0 ? 1 : 0), w = V.low = w + r9, V.high = L + Z9 + (w >>> 0 < r9 >>> 0 ? 1 : 0), E = j.low = E + t9, j.high = I + rf + (E >>> 0 < t9 >>> 0 ? 1 : 0);
3433
+ m = H.low = m + bA, H.high = R + sA + (m >>> 0 < bA >>> 0 ? 1 : 0), o = c.low = o + _, c.high = N + jA + (o >>> 0 < _ >>> 0 ? 1 : 0), h = s.low = h + nA, s.high = Z + AA + (h >>> 0 < nA >>> 0 ? 1 : 0), F = l.low = F + G, l.high = K + De + (F >>> 0 < G >>> 0 ? 1 : 0), Y = x.low = Y + M, x.high = S + W + (Y >>> 0 < M >>> 0 ? 1 : 0), eA = D.low = eA + ze, D.high = J + yA + (eA >>> 0 < ze >>> 0 ? 1 : 0), w = V.low = w + r9, V.high = L + Z9 + (w >>> 0 < r9 >>> 0 ? 1 : 0), E = j.low = E + t9, j.high = I + rf + (E >>> 0 < t9 >>> 0 ? 1 : 0);
3433
3434
  },
3434
3435
  _doFinalize: function() {
3435
3436
  var a = this._data, q = a.words, b = this._nDataBytes * 8, H = a.sigBytes * 8;
@@ -4127,7 +4128,7 @@ function Ru() {
4127
4128
  }(Nf)), Nf.exports;
4128
4129
  }
4129
4130
  var Rf = { exports: {} }, y3;
4130
- function xe() {
4131
+ function Oe() {
4131
4132
  return y3 || (y3 = 1, function(e, A) {
4132
4133
  (function(f, v, n) {
4133
4134
  e.exports = v(XA(), rn(), x7());
@@ -4193,7 +4194,7 @@ var jf = { exports: {} }, w3;
4193
4194
  function TA() {
4194
4195
  return w3 || (w3 = 1, function(e, A) {
4195
4196
  (function(f, v, n) {
4196
- e.exports = v(XA(), xe());
4197
+ e.exports = v(XA(), Oe());
4197
4198
  })(uA, function(f) {
4198
4199
  f.lib.Cipher || function(v) {
4199
4200
  var n = f, r = n.lib, P = r.Base, u = r.WordArray, z = r.BufferedBlockAlgorithm, t = n.enc;
@@ -5002,7 +5003,7 @@ var Bf = { exports: {} }, J3;
5002
5003
  function Mu() {
5003
5004
  return J3 || (J3 = 1, function(e, A) {
5004
5005
  (function(f, v, n) {
5005
- e.exports = v(XA(), we(), We(), xe(), TA());
5006
+ e.exports = v(XA(), we(), We(), Oe(), TA());
5006
5007
  })(uA, function(f) {
5007
5008
  return function() {
5008
5009
  var v = f, n = v.lib, r = n.BlockCipher, P = v.algo, u = [], z = [], t = [], d = [], p = [], X = [], i = [], a = [], q = [], b = [];
@@ -5062,7 +5063,7 @@ var kf = { exports: {} }, h3;
5062
5063
  function Bu() {
5063
5064
  return h3 || (h3 = 1, function(e, A) {
5064
5065
  (function(f, v, n) {
5065
- e.exports = v(XA(), we(), We(), xe(), TA());
5066
+ e.exports = v(XA(), we(), We(), Oe(), TA());
5066
5067
  })(uA, function(f) {
5067
5068
  return function() {
5068
5069
  var v = f, n = v.lib, r = n.WordArray, P = n.BlockCipher, u = v.algo, z = [
@@ -5782,7 +5783,7 @@ var Qf = { exports: {} }, F3;
5782
5783
  function ku() {
5783
5784
  return F3 || (F3 = 1, function(e, A) {
5784
5785
  (function(f, v, n) {
5785
- e.exports = v(XA(), we(), We(), xe(), TA());
5786
+ e.exports = v(XA(), we(), We(), Oe(), TA());
5786
5787
  })(uA, function(f) {
5787
5788
  return function() {
5788
5789
  var v = f, n = v.lib, r = n.StreamCipher, P = v.algo, u = P.RC4 = r.extend({
@@ -5836,7 +5837,7 @@ var Yf = { exports: {} }, S3;
5836
5837
  function Qu() {
5837
5838
  return S3 || (S3 = 1, function(e, A) {
5838
5839
  (function(f, v, n) {
5839
- e.exports = v(XA(), we(), We(), xe(), TA());
5840
+ e.exports = v(XA(), we(), We(), Oe(), TA());
5840
5841
  })(uA, function(f) {
5841
5842
  return function() {
5842
5843
  var v = f, n = v.lib, r = n.StreamCipher, P = v.algo, u = [], z = [], t = [], d = P.Rabbit = r.extend({
@@ -5902,7 +5903,7 @@ var Gf = { exports: {} }, K3;
5902
5903
  function Yu() {
5903
5904
  return K3 || (K3 = 1, function(e, A) {
5904
5905
  (function(f, v, n) {
5905
- e.exports = v(XA(), we(), We(), xe(), TA());
5906
+ e.exports = v(XA(), we(), We(), Oe(), TA());
5906
5907
  })(uA, function(f) {
5907
5908
  return function() {
5908
5909
  var v = f, n = v.lib, r = n.StreamCipher, P = v.algo, u = [], z = [], t = [], d = P.RabbitLegacy = r.extend({
@@ -5966,7 +5967,7 @@ var Uf = { exports: {} }, C3;
5966
5967
  function Gu() {
5967
5968
  return C3 || (C3 = 1, function(e, A) {
5968
5969
  (function(f, v, n) {
5969
- e.exports = v(XA(), we(), We(), xe(), TA());
5970
+ e.exports = v(XA(), we(), We(), Oe(), TA());
5970
5971
  })(uA, function(f) {
5971
5972
  return function() {
5972
5973
  var v = f, n = v.lib, r = n.BlockCipher, P = v.algo;
@@ -7086,7 +7087,7 @@ function Gu() {
7086
7087
  }
7087
7088
  (function(e, A) {
7088
7089
  (function(f, v, n) {
7089
- e.exports = v(XA(), C9(), lu(), mu(), we(), xu(), We(), rn(), m7(), Ou(), tn(), Du(), Vu(), Nu(), x7(), Ru(), xe(), TA(), ju(), ou(), Zu(), Tu(), Lu(), yu(), wu(), Wu(), Eu(), Iu(), gu(), Mu(), Bu(), ku(), Qu(), Yu(), Gu());
7090
+ e.exports = v(XA(), C9(), lu(), mu(), we(), xu(), We(), rn(), m7(), Ou(), tn(), Du(), Vu(), Nu(), x7(), Ru(), Oe(), TA(), ju(), ou(), Zu(), Tu(), Lu(), yu(), wu(), Wu(), Eu(), Iu(), gu(), Mu(), Bu(), ku(), Qu(), Yu(), Gu());
7090
7091
  })(uA, function(f) {
7091
7092
  return f;
7092
7093
  });
@@ -7223,15 +7224,15 @@ const Az = {
7223
7224
  });
7224
7225
  });
7225
7226
  };
7226
- var De = /* @__PURE__ */ ((e) => (e.USER_ACCOUNT = "USER_ACCOUNT", e.USER_PHONE = "USER_PHONE", e.USER_TOKEN = "USER_TOKEN", e.CURRENT_PROJECT = "CURRENT_PROJECT", e.USER_NAME = "USER_NAME", e.USER_NICKNAME = "USER_NICKNAME", e))(De || {}), dn = /* @__PURE__ */ ((e) => (e.TEXT = "TEXT", e.JSON = "JSON", e))(dn || {});
7227
+ var Ve = /* @__PURE__ */ ((e) => (e.USER_ACCOUNT = "USER_ACCOUNT", e.USER_PHONE = "USER_PHONE", e.USER_TOKEN = "USER_TOKEN", e.CURRENT_PROJECT = "CURRENT_PROJECT", e.USER_NAME = "USER_NAME", e.USER_NICKNAME = "USER_NICKNAME", e))(Ve || {}), dn = /* @__PURE__ */ ((e) => (e.TEXT = "TEXT", e.JSON = "JSON", e))(dn || {});
7227
7228
  function Xn(e) {
7228
7229
  return e ? [
7229
- De.USER_ACCOUNT,
7230
- De.USER_PHONE,
7231
- De.USER_TOKEN,
7232
- De.CURRENT_PROJECT,
7233
- De.USER_NAME,
7234
- De.USER_NICKNAME
7230
+ Ve.USER_ACCOUNT,
7231
+ Ve.USER_PHONE,
7232
+ Ve.USER_TOKEN,
7233
+ Ve.CURRENT_PROJECT,
7234
+ Ve.USER_NAME,
7235
+ Ve.USER_NICKNAME
7235
7236
  ].findIndex((f) => e.trim() === f) >= 0 : !1;
7236
7237
  }
7237
7238
  async function cn(e) {
@@ -7241,7 +7242,7 @@ async function cn(e) {
7241
7242
  USER_NAME: f,
7242
7243
  USER_NICKNAME: v,
7243
7244
  USER_PHONE: n,
7244
- USER_TOKEN: me(),
7245
+ USER_TOKEN: xe(),
7245
7246
  CURRENT_PROJECT: Ae().id
7246
7247
  }[e];
7247
7248
  }
@@ -7259,7 +7260,7 @@ async function fz(e) {
7259
7260
  if (P && u) {
7260
7261
  let z = u;
7261
7262
  if (Xn(u)) {
7262
- if (!me())
7263
+ if (!xe())
7263
7264
  return Qv({ ...Yv, redirect_uri: Gv }), "goLogin";
7264
7265
  z = await cn(u);
7265
7266
  }
@@ -7273,7 +7274,7 @@ async function vz(e) {
7273
7274
  for (let f = 0; f < e.length; f++) {
7274
7275
  let v = e[f] || {}, { attributeContentEnum: n, paramName: r, attributeContent: P, paramType: u, isEncrypted: z } = v, t = r, d = P;
7275
7276
  if (Xn(n)) {
7276
- if (!me())
7277
+ if (!xe())
7277
7278
  return Qv({ ...Yv, redirect_uri: Gv }), "goLogin";
7278
7279
  d = await cn(n);
7279
7280
  } else if (u === dn.JSON && (d = await fz(P), d === "goLogin"))
@@ -8189,11 +8190,11 @@ const Q9 = (e, A = "") => {
8189
8190
  const [e, A] = await c1().run();
8190
8191
  return e ? { loginConfig: null } : { loginConfig: A };
8191
8192
  }, Jn = async () => {
8192
- const e = me() ? a1 : b1, [A, f] = await e().run();
8193
+ const e = xe() ? a1 : b1, [A, f] = await e().run();
8193
8194
  return A ? { platformConfig: null } : { platformConfig: f };
8194
- }, pe = T(null), T7 = async () => {
8195
+ }, le = T(null), T7 = async () => {
8195
8196
  const [e, A] = await s1().run();
8196
- return e ? { homeConfig: null } : (A && (eu(A), pe.value = A), { homeConfig: A });
8197
+ return e ? { homeConfig: null } : (A && (eu(A), le.value = A), { homeConfig: A });
8197
8198
  }, te = T({ style: 1, skinStyle: "default" }), hn = async () => {
8198
8199
  const [e, A] = await H1().run(), f = (A == null ? void 0 : A.style) ?? 1, v = (A == null ? void 0 : A.skinStyle) ?? "default";
8199
8200
  te.value = {
@@ -8700,7 +8701,7 @@ const V8 = (e) => {
8700
8701
  setup(e, { expose: A, emit: f }) {
8701
8702
  const v = f, n = T(!1), r = vA(() => {
8702
8703
  var t;
8703
- return (t = pe.value) != null && t.homeAlias ? pe.value.homeAlias : k("首页");
8704
+ return (t = le.value) != null && t.homeAlias ? le.value.homeAlias : k("首页");
8704
8705
  }), P = () => {
8705
8706
  n.value = !0;
8706
8707
  }, u = () => {
@@ -9161,7 +9162,7 @@ const V8 = (e) => {
9161
9162
  }
9162
9163
  ]), d = () => {
9163
9164
  var X;
9164
- z.value = (X = pe.value) != null && X.homeAlias ? pe.value.homeAlias : k("首页"), f.value = !0;
9165
+ z.value = (X = le.value) != null && X.homeAlias ? le.value.homeAlias : k("首页"), f.value = !0;
9165
9166
  }, p = async () => {
9166
9167
  var b, H, c, s;
9167
9168
  const X = (b = n.value) == null ? void 0 : b.getResult(), [i] = await B8().run(X);
@@ -9270,7 +9271,7 @@ const V8 = (e) => {
9270
9271
  var P, u;
9271
9272
  v.value && (P = f.value) != null && P.contentWindow && ((u = f.value.contentWindow) == null || u.postMessage(
9272
9273
  {
9273
- token: me(),
9274
+ token: xe(),
9274
9275
  userInfo: V9(),
9275
9276
  projectInfo: Ae()
9276
9277
  },
@@ -9336,7 +9337,7 @@ const V8 = (e) => {
9336
9337
  return ue(async () => {
9337
9338
  if (await v(), e()) return;
9338
9339
  await iz(), await sz(), await qz(), await x1();
9339
- const P = me();
9340
+ const P = xe();
9340
9341
  Mv({ accessToken: P }), n.value = !0;
9341
9342
  }), {
9342
9343
  platformInited: n,
@@ -9378,7 +9379,7 @@ const V8 = (e) => {
9378
9379
  n1
9379
9380
  ]).then((l) => Object.assign(c, ...l)), u.value = !1, c;
9380
9381
  }, a = async () => {
9381
- const c = pe.value;
9382
+ const c = le.value;
9382
9383
  let s = [...An].map((D) => ({
9383
9384
  ...D,
9384
9385
  label: k(D.label)
@@ -9417,7 +9418,7 @@ const V8 = (e) => {
9417
9418
  }), FA([{ key: "subAppList", value: N }])), q.value = !0, console.log("portal初始化完成");
9418
9419
  };
9419
9420
  return C.nav.addEventListener("onBeforeMount", b), iA(
9420
- () => pe.value,
9421
+ () => le.value,
9421
9422
  () => {
9422
9423
  a();
9423
9424
  },
@@ -9585,7 +9586,7 @@ const V8 = (e) => {
9585
9586
  return C.tab.addEventListener("onToggleFullScreen", i), { fontColor: A, backgroudColor: f, borderColor: v };
9586
9587
  }, ge = () => {
9587
9588
  const e = ye(), { entryMenu: A } = ef(), { unloadRoute: f } = Kn();
9588
- let { mainAppName: v = "", microAppName: n = "", microApps: r = [] } = le();
9589
+ let { mainAppName: v = "", microAppName: n = "", microApps: r = [] } = me();
9589
9590
  !v && n && (r = [{ name: n }]);
9590
9591
  const P = r.map((X) => X.name), u = () => {
9591
9592
  C.menu.setItems([]), C.menu.setActiveItem(""), C.tab.setItems([]), C.tab.setActiveItem("");
@@ -9754,7 +9755,7 @@ const V8 = (e) => {
9754
9755
  };
9755
9756
  }, ef = () => {
9756
9757
  const e = ye();
9757
- let { mainAppName: A = "", microAppName: f = "", microApps: v = [] } = le();
9758
+ let { mainAppName: A = "", microAppName: f = "", microApps: v = [] } = me();
9758
9759
  return !A && f && (v = [{ name: f }]), v.map((r) => r.name), { entryMenu: async (r) => {
9759
9760
  var q;
9760
9761
  console.log("entryMenu===111", r);
@@ -9847,7 +9848,7 @@ const V8 = (e) => {
9847
9848
  } };
9848
9849
  }, rX = (e, A, f) => {
9849
9850
  const { entryApp: v } = ge(), n = ye();
9850
- let { mainAppName: r = "", microAppName: P = "", microApps: u = [] } = le();
9851
+ let { mainAppName: r = "", microAppName: P = "", microApps: u = [] } = me();
9851
9852
  !r && P && (u = [{ name: P }]);
9852
9853
  const z = async (p) => {
9853
9854
  var l, x, D, V;
@@ -9959,7 +9960,7 @@ const V8 = (e) => {
9959
9960
  VA.routeKeepAliveVisible = !0, VA.excludeRoutes = [];
9960
9961
  }, 100);
9961
9962
  } }), tX = () => {
9962
- const e = Ur(), A = h8(), f = le(), v = async () => {
9963
+ const e = Ur(), A = h8(), f = me(), v = async () => {
9963
9964
  const P = {
9964
9965
  logout: "/api/justauth/oauth-server/v1/visitor/logout"
9965
9966
  }, u = location.origin + be, z = {
@@ -9968,7 +9969,7 @@ const V8 = (e) => {
9968
9969
  client_id: "sys",
9969
9970
  state: +/* @__PURE__ */ new Date(),
9970
9971
  redirect_uri: u,
9971
- logout_token: me(),
9972
+ logout_token: xe(),
9972
9973
  // 写用户访问日志逻辑配合
9973
9974
  logout: "true"
9974
9975
  };
@@ -9998,7 +9999,7 @@ const V8 = (e) => {
9998
9999
  $personSetDialog: A
9999
10000
  };
10000
10001
  }, PX = Bv.get("/convert/tenant"), uX = i7.get("/platform/withdefault"), Cn = () => {
10001
- const e = le(), A = T(!1), f = T(""), v = T(""), n = () => {
10002
+ const e = me(), A = T(!1), f = T(""), v = T(""), n = () => {
10002
10003
  f.value = V9().id, v.value = Iv().tenantId, A.value = !0;
10003
10004
  };
10004
10005
  C.nav.addEventListener("changeEnterpriseHandle", () => {
@@ -12625,7 +12626,7 @@ class T2 {
12625
12626
  function L2(e) {
12626
12627
  return e.log !== void 0;
12627
12628
  }
12628
- let { baseURL: y2 } = le();
12629
+ let { baseURL: y2 } = me();
12629
12630
  const w2 = () => {
12630
12631
  const e = new T2().withUrl(`${y2}/api/tool/event-bus`, {
12631
12632
  skipNegotiation: !0,
@@ -12759,7 +12760,7 @@ const M2 = MA(`/api/tool/event-bus/${vf}/`), Sf = M2.post("/publish"), B2 = J9.g
12759
12760
  z.value = !0;
12760
12761
  }, 2e3);
12761
12762
  }, d = (c) => {
12762
- const s = me(), l = JSON.parse(atob(s.split(".")[1])).sub;
12763
+ const s = xe(), l = JSON.parse(atob(s.split(".")[1])).sub;
12763
12764
  w2().on(`${c}:${l}`, async function(D) {
12764
12765
  let V = P(D);
12765
12766
  if (V)
@@ -12947,7 +12948,7 @@ const M2 = MA(`/api/tool/event-bus/${vf}/`), Sf = M2.post("/publish"), B2 = J9.g
12947
12948
  }
12948
12949
  return G;
12949
12950
  }, jA = () => {
12950
- console.log("cancelDialog"), Oe();
12951
+ console.log("cancelDialog"), De();
12951
12952
  }, _ = async (G) => {
12952
12953
  console.log("handerIds", v.handerIds), bA() && (u.value = G, AA());
12953
12954
  }, AA = async () => {
@@ -12970,15 +12971,15 @@ const M2 = MA(`/api/tool/event-bus/${vf}/`), Sf = M2.post("/publish"), B2 = J9.g
12970
12971
  r.value = !1;
12971
12972
  return;
12972
12973
  }
12973
- n("emitFn", "successHandle", t.value.processTypeId), r.value = !1, Oe();
12974
+ n("emitFn", "successHandle", t.value.processTypeId), r.value = !1, De();
12974
12975
  }, nA = () => {
12975
12976
  z.value = !0, sA();
12976
- }, Oe = () => {
12977
+ }, De = () => {
12977
12978
  console.log("cancelDialog"), z.value = !1;
12978
12979
  };
12979
12980
  return A({
12980
12981
  open: nA,
12981
- close: Oe
12982
+ close: De
12982
12983
  }), (G, W) => (U(), zA("div", ec, [
12983
12984
  g(O(Fe), {
12984
12985
  modelValue: z.value,
@@ -13660,7 +13661,7 @@ const jc = () => {
13660
13661
  showLayout: { type: Boolean, default: !0 }
13661
13662
  },
13662
13663
  setup(e) {
13663
- const A = e, { isFullscreen: f } = f9(), v = le().showLayout ?? !0, n = vA(() => v && A.showLayout && !f.value), r = vA(() => VA.excludeRoutes), P = vA(() => VA.routeKeepAliveVisible), u = vA(() => ({ mode: te.value.style === 1 ? "vertical" : "inline" }));
13664
+ const A = e, { isFullscreen: f } = f9(), v = me().showLayout ?? !0, n = vA(() => v && A.showLayout && !f.value), r = vA(() => VA.excludeRoutes), P = vA(() => VA.routeKeepAliveVisible), u = vA(() => ({ mode: te.value.style === 1 ? "vertical" : "inline" }));
13664
13665
  iA(
13665
13666
  () => Wv.nav.activeItem,
13666
13667
  (R) => {
@@ -13929,17 +13930,17 @@ T("@das-fed/upf-web");
13929
13930
  const Wc = [
13930
13931
  {
13931
13932
  path: _A,
13932
- component: () => import("./index-BcEiAZYT.js")
13933
+ component: () => import("./index-Dv9DDevb.js")
13933
13934
  },
13934
13935
  {
13935
13936
  path: en,
13936
- component: () => import("./index-Z2BfbNda.js")
13937
+ component: () => import("./index-D5VSmbe-.js")
13937
13938
  }
13938
13939
  ], na = {
13939
13940
  routes: Wc,
13940
13941
  Layout: yc,
13941
13942
  data: {
13942
- homeInfo: pe,
13943
+ homeInfo: le,
13943
13944
  personalConfig: te
13944
13945
  },
13945
13946
  hooks: {
@@ -13980,7 +13981,7 @@ export {
13980
13981
  Se as o,
13981
13982
  te as p,
13982
13983
  v3 as q,
13983
- Ve as r,
13984
+ pe as r,
13984
13985
  Zt as s,
13985
13986
  kb as t,
13986
13987
  ge as u,
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-CuxN_o3P.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-DTDqZtIi.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 { M as s, D as t, F as n, E as r, G as i, e as o, o as u, z as g, r as m, f as l, j as p, n as D, y as L, B as c, C as b, k as h, i as y, J as A, K as T, w as M, h as R, H as W, I as F, v as I, N as V, L as d, s as f, m as k, q as v, x as w, A as x, t as K } from "./index-CuxN_o3P.js";
1
+ import { M as s, D as t, F as n, E as r, G as i, e as o, o as u, z as g, r as m, f as l, j as p, n as D, y as L, B as c, C as b, k as h, i as y, J as A, K as T, w as M, h as R, H as W, I as F, v as I, N as V, L as d, s as f, m as k, q as v, x as w, A as x, t as K } from "./index-DTDqZtIi.js";
2
2
  export {
3
3
  s 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-hot.3",
3
+ "version": "6.4.0-hot.4",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "dependencies": {
7
- "@das-fed/upf-ui": "6.4.0-hot.3",
8
- "@das-fed/upf-utils": "6.4.0-hot.3",
9
- "@das-fed/upf-web": "6.4.0-hot.3",
10
- "@das-fed/upf-web-components": "6.4.0-hot.3",
7
+ "@das-fed/upf-ui": "6.4.0-hot.4",
8
+ "@das-fed/upf-utils": "6.4.0-hot.4",
9
+ "@das-fed/upf-web": "6.4.0-hot.4",
10
+ "@das-fed/upf-web-components": "6.4.0-hot.4",
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-hot.3",
22
+ "@das-fed/upf-cli": "6.4.0-hot.4",
23
23
  "@types/crypto-js": "^4.2.2",
24
24
  "@types/lodash": "^4.14.194",
25
25
  "@types/lodash-es": "^4.17.12",
@@ -137,13 +137,14 @@ var T = commonTools.getUrlParams(location.href, "uiCulture") || "",
137
137
  t = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : "zh-CN";
138
138
  console.log("registerMicroI18nData===", e, t);
139
139
  _context2.p = 1;
140
+ V(t);
140
141
  _context2.n = 2;
141
142
  return Y(e, t);
142
143
  case 2:
143
144
  r = _context2.v;
144
145
  console.log("i18nData===", r), r != null && r.frontEnd && _typeof(r.frontEnd) == "object" && Object.keys(r.frontEnd).length && e.forEach(function (o) {
145
146
  r.frontEnd[o] && _typeof(r.frontEnd[o]) == "object" && Object.keys(r.frontEnd[o]).length ? j(_defineProperty({}, t, r.frontEnd[o])) : console.warn("No front-end i18n data found for app: ".concat(o));
146
- }), r != null && r.dasUiEnd && _typeof(r.dasUiEnd) == "object" && Object.keys(r.dasUiEnd).length && j(_defineProperty({}, t, r.dasUiEnd)), V(t);
147
+ }), r != null && r.dasUiEnd && _typeof(r.dasUiEnd) == "object" && Object.keys(r.dasUiEnd).length && j(_defineProperty({}, t, r.dasUiEnd));
147
148
  _context2.n = 4;
148
149
  break;
149
150
  case 3:
@@ -63,10 +63,11 @@ const T = H(location.href, "uiCulture") || "", J = T || window.localStorage.getI
63
63
  }, Z = async (e = [], t = "zh-CN") => {
64
64
  console.log("registerMicroI18nData===", e, t);
65
65
  try {
66
+ V(t);
66
67
  const r = await Y(e, t);
67
68
  console.log("i18nData===", r), r != null && r.frontEnd && typeof r.frontEnd == "object" && Object.keys(r.frontEnd).length && e.forEach((o) => {
68
69
  r.frontEnd[o] && typeof r.frontEnd[o] == "object" && Object.keys(r.frontEnd[o]).length ? j({ [t]: r.frontEnd[o] }) : console.warn(`No front-end i18n data found for app: ${o}`);
69
- }), r != null && r.dasUiEnd && typeof r.dasUiEnd == "object" && Object.keys(r.dasUiEnd).length && j({ [t]: r.dasUiEnd }), V(t);
70
+ }), r != null && r.dasUiEnd && typeof r.dasUiEnd == "object" && Object.keys(r.dasUiEnd).length && j({ [t]: r.dasUiEnd });
70
71
  } catch (r) {
71
72
  console.error("registerMicroI18nData error:", r);
72
73
  }
@@ -16,7 +16,7 @@ var D = "language",
16
16
  j = h || window.localStorage.getItem(D) || window.navigator.language || "zh-CN",
17
17
  c = vue.ref(j),
18
18
  y = "dasI18n",
19
- g = function g() {
19
+ p = function p() {
20
20
  var t = document.documentElement;
21
21
  t && t.setAttribute("lang", c.value);
22
22
  },
@@ -50,7 +50,7 @@ var D = "language",
50
50
  return _regenerator().w(function (_context) {
51
51
  while (1) switch (_context.n) {
52
52
  case 0:
53
- g();
53
+ p();
54
54
  a = window[y];
55
55
  a && b(a, "global");
56
56
  case 1:
@@ -79,7 +79,7 @@ var D = "language",
79
79
  s = (_m$e = m[e]) !== null && _m$e !== void 0 ? _m$e : {},
80
80
  o = i[t] || l[t] || r[t] || s[t] || t;
81
81
  if (o === t) return t;
82
- typeof o == "string" && (o = {
82
+ console.log("customLangeData===222", i), typeof o == "string" && (o = {
83
83
  "zh-CN": o
84
84
  });
85
85
  var n = o[c.value];
@@ -96,12 +96,12 @@ var D = "language",
96
96
  return I.apply(void 0, [t].concat(a)).value;
97
97
  },
98
98
  T = function T(t) {
99
- c.value = t, console.log("currentLang.value===", c.value), g();
99
+ c.value = t, console.log("currentLang.value===", c.value), p();
100
100
  },
101
101
  _ = function _() {
102
102
  return c;
103
103
  },
104
- p = {
104
+ g = {
105
105
  "en-US": {
106
106
  ant: function ant() {
107
107
  return Promise.resolve().then(function () {
@@ -270,7 +270,7 @@ var O = /*#__PURE__*/function () {
270
270
  return _regenerator().w(function (_context2) {
271
271
  while (1) switch (_context2.p = _context2.n) {
272
272
  case 0:
273
- a = p[t] || p["zh-CN"];
273
+ a = g[t] || g["zh-CN"];
274
274
  _context2.p = 1;
275
275
  _context2.n = 2;
276
276
  return a.ant();
@@ -1,6 +1,6 @@
1
1
  import { reactive as u, ref as L, computed as w } from "vue";
2
2
  import { getUrlParams as C } from "@das-fed/upf-utils/common-tools";
3
- const D = "language", i = u({}), l = u({}), m = u({}), h = C(location.href, "uiCulture") || "", j = h || window.localStorage.getItem(D) || window.navigator.language || "zh-CN", c = L(j), y = "dasI18n", g = () => {
3
+ const D = "language", i = u({}), l = u({}), m = u({}), h = C(location.href, "uiCulture") || "", j = h || window.localStorage.getItem(D) || window.navigator.language || "zh-CN", c = L(j), y = "dasI18n", p = () => {
4
4
  const t = document.documentElement;
5
5
  t && t.setAttribute("lang", c.value);
6
6
  }, M = (t = {}, a) => {
@@ -20,7 +20,7 @@ const D = "language", i = u({}), l = u({}), m = u({}), h = C(location.href, "uiC
20
20
  n && (m[n] || (m[n] = {}), m[n][o] = t[o]), i[o] || (i[o] = t[o]);
21
21
  }
22
22
  }, R = async (t) => {
23
- g();
23
+ p();
24
24
  const a = window[y];
25
25
  a && b(a, "global");
26
26
  }, v = (t) => {
@@ -31,14 +31,14 @@ const D = "language", i = u({}), l = u({}), m = u({}), h = C(location.href, "uiC
31
31
  const e = v(location.pathname);
32
32
  let r = m.framework ?? {}, s = m[e] ?? {}, o = i[t] || l[t] || r[t] || s[t] || t;
33
33
  if (o === t) return t;
34
- typeof o == "string" && (o = { "zh-CN": o });
34
+ console.log("customLangeData===222", i), typeof o == "string" && (o = { "zh-CN": o });
35
35
  let n = o[c.value];
36
36
  return c.value === "zh-CN" && o["zh-cn"] && !o["zh-CN"] && (n = o["zh-cn"]), a.map((f, d) => {
37
37
  n && (n = n.replace(`$${d}`, f));
38
38
  }), n;
39
39
  }), I = A, N = (t, ...a) => I(t, ...a).value, T = (t) => {
40
- c.value = t, console.log("currentLang.value===", c.value), g();
41
- }, _ = () => c, p = {
40
+ c.value = t, console.log("currentLang.value===", c.value), p();
41
+ }, _ = () => c, g = {
42
42
  "en-US": { ant: () => import("ant-design-vue/es/locale/en_US"), dayjs: () => import("dayjs/locale/en") },
43
43
  "zh-CN": { ant: () => import("ant-design-vue/es/locale/zh_CN"), dayjs: () => import("dayjs/locale/zh-cn") },
44
44
  "zh-MO": { ant: () => import("ant-design-vue/es/locale/zh_TW"), dayjs: () => import("dayjs/locale/zh-tw") },
@@ -59,7 +59,7 @@ function x(t, a) {
59
59
  return e && e[t] && e[t][a] ? e[t][a] : ((r = window.DATE_FORMAT_MAP[t]) == null ? void 0 : r[a]) || "YYYY-MM-DD";
60
60
  }
61
61
  const O = async (t) => {
62
- const a = p[t] || p["zh-CN"];
62
+ const a = g[t] || g["zh-CN"];
63
63
  try {
64
64
  const e = await a.ant();
65
65
  return await a.dayjs(), e.default;
Binary file
Binary file
Binary file
Binary file