@das-fed/web 6.4.0-test.2 → 6.4.0-test.20

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 (78) hide show
  1. package/esm-map.json +3 -1
  2. package/{index-3y8fHBtE.js → index-DozcsJQ6.js} +1 -1
  3. package/index-SnQNzohF.js +81 -0
  4. package/index-SnQNzohF.js.gz +0 -0
  5. package/index-oWBd5vf_.js +13331 -0
  6. package/index-oWBd5vf_.js.gz +0 -0
  7. package/index.js +22 -20
  8. package/package.json +8 -6
  9. package/packages/i18n/index.js +172 -31
  10. package/packages/i18n/index.js.gz +0 -0
  11. package/packages/layout/index.js +454 -518
  12. package/packages/layout/index.js.gz +0 -0
  13. package/packages/layout/style.css +2 -2
  14. package/packages/layout/style.css.gz +0 -0
  15. package/packages/main-app-framework/index-CmHORAF1.js +81 -0
  16. package/packages/main-app-framework/index-CmHORAF1.js.gz +0 -0
  17. package/packages/main-app-framework/{index-DnFSz1TN.js → index-DAaPMAIp.js} +1 -1
  18. package/packages/main-app-framework/index-JNn4Rtac.js +11956 -0
  19. package/packages/main-app-framework/index-JNn4Rtac.js.gz +0 -0
  20. package/packages/main-app-framework/index.js +3 -2
  21. package/packages/main-app-framework/style.css +1 -1
  22. package/packages/main-app-framework/style.css.gz +0 -0
  23. package/packages/micro-frontend/index.js +305 -302
  24. package/packages/micro-frontend/index.js.gz +0 -0
  25. package/packages/style/style.css +1 -1
  26. package/packages/style/style.css.gz +0 -0
  27. package/style.css +2 -2
  28. package/style.css.gz +0 -0
  29. package/types/create-das-web-app/index.d.ts +1 -1
  30. package/types/i18n/global.d.ts +583 -0
  31. package/types/i18n/index.d.ts +6 -4
  32. package/types/layout/store/index.d.ts +7 -2
  33. package/types/layout/store/menu.d.ts +2 -0
  34. package/types/layout/store/nav.d.ts +2 -1
  35. package/types/layout/store/tab.d.ts +1 -0
  36. package/types/main-app-framework/business/alarm/use-alarm.d.ts +4 -4
  37. package/types/main-app-framework/business/video-link/index.d.ts +3 -3
  38. package/types/main-app-framework/business/video-link/video-dialog/hooks/PlayerProvider.d.ts +3 -3
  39. package/types/main-app-framework/components/person-set-dialog/index.d.ts +1 -1
  40. package/types/main-app-framework/components/person-set-dialog/src/api.d.ts +2 -0
  41. package/types/main-app-framework/components/person-set-dialog/src/components/index.d.ts +2 -0
  42. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/api.d.ts +20 -0
  43. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-builtIn-dialog.d.ts +19 -0
  44. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-notBuiltIn-dialog.d.ts +22 -0
  45. package/types/main-app-framework/constant/index.d.ts +1 -1
  46. package/types/main-app-framework/data-track/api.d.ts +2 -0
  47. package/types/main-app-framework/data-track/index.d.ts +2 -0
  48. package/types/main-app-framework/i18n/index.d.ts +518 -0
  49. package/types/main-app-framework/index.d.ts +2 -1
  50. package/types/main-app-framework/init-config/get-nav-config/api.d.ts +2 -0
  51. package/types/main-app-framework/init-config/get-nav-config/index.d.ts +4 -3
  52. package/types/main-app-framework/init-config/get-project-config/api.d.ts +3 -2
  53. package/types/main-app-framework/init-config/get-system-config/api.d.ts +2 -0
  54. package/types/main-app-framework/init-config/get-system-config/index.d.ts +4 -4
  55. package/types/main-app-framework/init-config/get-tenant-config/api.d.ts +1 -1
  56. package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +3 -3
  57. package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +2 -2
  58. package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +5 -4
  59. package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +3 -3
  60. package/types/main-app-framework/init-platform/index.d.ts +1 -1
  61. package/types/main-app-framework/utils/src/get-portal-url/crypto.d.ts +14 -0
  62. package/types/main-app-framework/utils/src/get-portal-url/encrypt.d.ts +42 -0
  63. package/types/main-app-framework/utils/src/get-portal-url/generate-url.d.ts +4 -0
  64. package/types/main-app-framework/utils/src/get-portal-url/handle-portal-params.d.ts +2 -0
  65. package/types/main-app-framework/utils/src/get-portal-url/index.d.ts +2 -0
  66. package/types/main-app-framework/utils/src/get-portal-url/type.d.ts +16 -0
  67. package/types/main-app-framework/utils/src/set-common-info.d.ts +4 -2
  68. package/types/main-app-framework/utils/src/tools.d.ts +5 -1
  69. package/types/micro-frontend/store.d.ts +5 -5
  70. package/types/theme/index.d.ts +1 -1
  71. package/index-DEYJwN2T.js +0 -7173
  72. package/index-DEYJwN2T.js.gz +0 -0
  73. package/index-DXnYb5jk.js +0 -74
  74. package/index-DXnYb5jk.js.gz +0 -0
  75. package/packages/main-app-framework/index-Bo4ASgsm.js +0 -5859
  76. package/packages/main-app-framework/index-Bo4ASgsm.js.gz +0 -0
  77. package/packages/main-app-framework/index-Xn4wzM8V.js +0 -74
  78. package/packages/main-app-framework/index-Xn4wzM8V.js.gz +0 -0
Binary file
package/index-DXnYb5jk.js DELETED
@@ -1,74 +0,0 @@
1
- import { defineComponent as _, computed as l, withDirectives as k, openBlock as v, createBlock as A, unref as p, withCtx as U, createVNode as C, vShow as S } from "vue";
2
- import { DasAppContainer as I } from "@das-fed/ui/packages/business-components/app-container/index";
3
- import { DasSpin as j } from "@das-fed/ui/packages/components/spin/index";
4
- import { layoutData as D } from "@das-fed/web/packages/layout/index";
5
- import { getTabInfo as $ } from "@das-fed/utils/common-info";
6
- import { setShowLayout as x } from "@das-fed/utils/common-tools";
7
- import { createService as T } from "@das-fed/utils/create-api-service";
8
- import { u as b, a as c, c as f, b as E, l as L, d as q } from "./index-DEYJwN2T.js";
9
- const B = "v1", P = T(`/api/justauth/client/${B}`), K = P.get("/visitor/kingdee/auth/user/auth_code"), R = /* @__PURE__ */ _({
10
- __name: "index",
11
- setup(N) {
12
- const { beforeEntryApp: d, entryApp: g } = b(), h = l(() => !!D.menu.items.length), m = l(() => {
13
- if (!c.value || !c.value.length) return [];
14
- const o = f(c.value);
15
- return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = w(n.apps, 4)), o) : [] : [];
16
- }), w = (o, n) => {
17
- const t = [];
18
- for (let r = 0; r < o.length; r += n)
19
- t.push(o.slice(r, r + n));
20
- return t;
21
- }, y = async (o) => {
22
- if (!o) return;
23
- if (!sessionStorage.getItem("projectInfo")) {
24
- window.confirm("系统资源更新,请刷新系统") && (window.__isAutoCloseApp = !1, window.location.reload());
25
- return;
26
- }
27
- const t = f(o);
28
- if (L.innerSet = !0, t.routeUrl) {
29
- if (o.code === "Ioc") {
30
- window.open(t.routeUrl, "_blank");
31
- return;
32
- }
33
- if (o.code === "wojiacloud") {
34
- const e = sessionStorage.getItem("kingdee_token") || "";
35
- if (e) {
36
- const [i, a] = await K().run({ accessToken: e });
37
- if (a) {
38
- const s = (a == null ? void 0 : a.auth_code) ?? "";
39
- t.routeUrl = t.routeUrl.includes("?") ? `${t.routeUrl}&code=${s}` : `${t.routeUrl}?code=${s}`;
40
- }
41
- }
42
- }
43
- }
44
- const r = (o == null ? void 0 : o.openType) ?? 1, u = (o == null ? void 0 : o.type) ?? 1;
45
- if (r === 1) {
46
- if (!await d(o)) return;
47
- const i = $().preTab[o.code], a = (i == null ? void 0 : i.code) ?? "", s = { ...(i == null ? void 0 : i.query) ?? {} };
48
- g({ microApp: t, menuCode: a, route: { query: s } });
49
- }
50
- if (r === 2 && t.routeUrl) {
51
- let e = "";
52
- u === 1 ? (e = t != null && t.applicationPath ? location.origin + "/" + t.applicationPath + t.routeUrl : location.origin + t.routeUrl, e = x(e)) : u === 2 && (e = q(t.routeUrl)), window.open(e, "_blank");
53
- }
54
- };
55
- return (o, n) => k((v(), A(p(j), {
56
- full: "",
57
- spinning: p(E)
58
- }, {
59
- default: U(() => [
60
- C(p(I), {
61
- appCategorys: m.value,
62
- onOpenApp: y
63
- }, null, 8, ["appCategorys"])
64
- ]),
65
- _: 1
66
- /* STABLE */
67
- }, 8, ["spinning"])), [
68
- [S, !h.value]
69
- ]);
70
- }
71
- });
72
- export {
73
- R as default
74
- };
Binary file