@das-fed/upf-utils 6.4.0-dev.164 → 6.4.0-dev.166

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 (35) hide show
  1. package/api-services/index.js +921 -903
  2. package/api-services/index.js.gz +0 -0
  3. package/api-services/modules/app-manage/index.js +836 -818
  4. package/api-services/modules/app-manage/index.js.gz +0 -0
  5. package/api-services/modules/duty-manage/index.js +814 -832
  6. package/api-services/modules/duty-manage/index.js.gz +0 -0
  7. package/api-services/modules/gateway-edge/index.js +630 -634
  8. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  9. package/api-services/modules/justauth/index.js +837 -819
  10. package/api-services/modules/justauth/index.js.gz +0 -0
  11. package/api-services/modules/knowledge/index.js +818 -836
  12. package/api-services/modules/knowledge/index.js.gz +0 -0
  13. package/api-services/modules/permission/index.js +836 -818
  14. package/api-services/modules/permission/index.js.gz +0 -0
  15. package/api-services/modules/portal/index.js +818 -836
  16. package/api-services/modules/portal/index.js.gz +0 -0
  17. package/api-services/modules/space-manage/index.js +818 -836
  18. package/api-services/modules/space-manage/index.js.gz +0 -0
  19. package/api-services/modules/super-admin/index.js +820 -838
  20. package/api-services/modules/super-admin/index.js.gz +0 -0
  21. package/api-services/modules/supplier/index.js +820 -838
  22. package/api-services/modules/supplier/index.js.gz +0 -0
  23. package/api-services/modules/supplychain-manage/index.js +836 -818
  24. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  25. package/api-services/modules/systemConfiguration/index.js +836 -818
  26. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  27. package/api-services/modules/tool/index.js +818 -836
  28. package/api-services/modules/tool/index.js.gz +0 -0
  29. package/api-services/src/create-service/index.js +633 -629
  30. package/api-services/src/create-service/index.js.gz +0 -0
  31. package/common-tools/handle-data/index.js +31 -24
  32. package/common-tools/handle-data/index.js.gz +0 -0
  33. package/create-api-service/index.js +802 -788
  34. package/create-api-service/index.js.gz +0 -0
  35. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
- const E = (n) => n === null || typeof n > "u" || n === "", f = [
1
+ const b = (n) => n === null || typeof n > "u" || n === "", U = [
2
2
  "zh-CN",
3
3
  "zh-TW",
4
4
  "zh-HK",
@@ -15,7 +15,7 @@ const E = (n) => n === null || typeof n > "u" || n === "", f = [
15
15
  "nl-NL",
16
16
  "vi-VN",
17
17
  "tr-TR"
18
- ], d = {
18
+ ], c = {
19
19
  3: "zh-HK",
20
20
  4: "zh-TW",
21
21
  6: "ru-RU",
@@ -29,42 +29,49 @@ const E = (n) => n === null || typeof n > "u" || n === "", f = [
29
29
  14: "nl-NL",
30
30
  15: "vi-VN",
31
31
  16: "tr-TR"
32
- }, h = (n) => {
33
- const r = [...n, ...Object.values(d).filter((t) => n.includes(t))];
34
- return f.filter((t) => r.includes(t) || Object.entries(d).some(
35
- ([s, a]) => n.includes(s) && t === a || n.includes(a) && t === a
32
+ }, p = (n) => {
33
+ const t = [...n, ...Object.values(c).filter((e) => n.includes(e))];
34
+ return U.filter((e) => t.includes(e) || Object.entries(c).some(
35
+ ([s, a]) => n.includes(s) && e === a || n.includes(a) && e === a
36
36
  ));
37
- }, U = ["zh-CN", "zh-MO", "en-US", "10"], b = async (n) => {
37
+ }, $ = ["zh-CN", "zh-MO", "en-US", "10"], m = async (n) => {
38
38
  try {
39
- let { currentLang: r = "zh-CN", baseUrl: t = "/", appName: s = "base", isPullBack: a = !1, urlObj: e = { frontEndUrl: "", backEndUrl: "" } } = n || {}, l = {
39
+ let { currentLang: t = "zh-CN", baseUrl: e = "/", appName: s = "base", isPullBack: a = !1, urlObj: r = { frontEndUrl: "", backEndUrl: "" } } = n || {}, d = {
40
40
  frontEnd: null,
41
41
  backMsg: null
42
- }, o = (e == null ? void 0 : e.frontEndUrl) || `${t}web-front-end/i18n/${s}_${r}.js`, c = (e == null ? void 0 : e.backEndUrl) || `${t}web-back-end/i18n/${s}_${r}.js`;
43
- const i = await import(
42
+ }, u = (r == null ? void 0 : r.frontEndUrl) || `${e}web-front-end/i18n/${s}_${t}.js`, i = (r == null ? void 0 : r.backEndUrl) || `${e}web-back-end/i18n/${s}_${t}.js`;
43
+ const f = await import(
44
44
  /* @vite-ignore */
45
- `${o}`
45
+ `${u}`
46
46
  );
47
- if (l.frontEnd = i.default || null, a || e != null && e.backEndUrl) {
48
- const u = await import(
47
+ if (d.frontEnd = f.default || null, a || r != null && r.backEndUrl) {
48
+ const l = await import(
49
49
  /* @vite-ignore */
50
- `${c}`
50
+ `${i}`
51
51
  );
52
- l.backMsg = u.default || null;
52
+ d.backMsg = l.default || null;
53
53
  }
54
- return l;
54
+ const E = /* @__PURE__ */ Object.assign({});
55
+ let h = `/node_modules/@das-fed/upf-ui/dist/web-front-end/i18n/dasui_${t}.js`;
56
+ const o = E[h] || null;
57
+ if (o) {
58
+ let l = await o();
59
+ d.frontEnd = { ...d.frontEnd, ...l.default };
60
+ }
61
+ return d;
55
62
  } catch {
56
63
  }
57
- }, p = async (n = "front-end") => {
58
- let r = {}, s = await import(
64
+ }, S = async (n = "front-end") => {
65
+ let t = {}, s = await import(
59
66
  /* @vite-ignore */
60
67
  `/i18n/${n}/global.js`
61
68
  );
62
- return r = (s == null ? void 0 : s.default) || {}, r;
69
+ return t = (s == null ? void 0 : s.default) || {}, t;
63
70
  };
64
71
  export {
65
- U as getCurrentSysLang,
66
- h as getSysLangArr,
67
- p as handleGlobalI18n,
68
- b as handleI18nData,
69
- E as isEmpty
72
+ $ as getCurrentSysLang,
73
+ p as getSysLangArr,
74
+ S as handleGlobalI18n,
75
+ m as handleI18nData,
76
+ b as isEmpty
70
77
  };