@das-fed/web 6.4.0-dev.8 → 6.4.0-dev.80

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 (90) hide show
  1. package/esm-map.json +4 -1
  2. package/index-DGluLInD.js +13750 -0
  3. package/index-DGluLInD.js.gz +0 -0
  4. package/{index-BvM-HFBI.js → index-DSr0lbga.js} +1 -1
  5. package/index-tX8Sh7Y3.js +82 -0
  6. package/index-tX8Sh7Y3.js.gz +0 -0
  7. package/index.js +24 -21
  8. package/package.json +8 -6
  9. package/packages/create-das-web-app/index.js +48 -805
  10. package/packages/create-das-web-app/index.js.gz +0 -0
  11. package/packages/i18n/index.js +169 -30
  12. package/packages/i18n/index.js.gz +0 -0
  13. package/packages/layout/index.js +479 -441
  14. package/packages/layout/index.js.gz +0 -0
  15. package/packages/layout/style.css +2 -2
  16. package/packages/layout/style.css.gz +0 -0
  17. package/packages/main-app-framework/index-BNKYCeAC.js +82 -0
  18. package/packages/main-app-framework/index-BNKYCeAC.js.gz +0 -0
  19. package/packages/main-app-framework/{index-Dmjld3JV.js → index-DfAg8at4.js} +1 -1
  20. package/packages/main-app-framework/index-WJZZ_VcX.js +12274 -0
  21. package/packages/main-app-framework/index-WJZZ_VcX.js.gz +0 -0
  22. package/packages/main-app-framework/index.js +3 -2
  23. package/packages/main-app-framework/style.css +1 -1
  24. package/packages/main-app-framework/style.css.gz +0 -0
  25. package/packages/micro-frontend/index.js +181 -164
  26. package/packages/micro-frontend/index.js.gz +0 -0
  27. package/packages/micro-frontend/style.css +1 -1
  28. package/packages/style/style.css +1 -1
  29. package/packages/style/style.css.gz +0 -0
  30. package/packages/theme/index.js.gz +0 -0
  31. package/style.css +2 -2
  32. package/style.css.gz +0 -0
  33. package/types/create-das-web-app/index.d.ts +1 -1
  34. package/types/i18n/global.d.ts +573 -0
  35. package/types/i18n/index.d.ts +6 -4
  36. package/types/layout/index.d.ts +1 -1
  37. package/types/layout/store/index.d.ts +6 -1
  38. package/types/layout/store/menu.d.ts +2 -0
  39. package/types/layout/store/nav.d.ts +1 -0
  40. package/types/layout/store/tab.d.ts +1 -0
  41. package/types/main-app-framework/business/alarm/use-alarm.d.ts +4 -4
  42. package/types/main-app-framework/business/video-link/api.d.ts +2 -0
  43. package/types/main-app-framework/business/video-link/index.d.ts +3 -3
  44. package/types/main-app-framework/business/video-link/video-dialog/hooks/PlayerProvider.d.ts +3 -3
  45. package/types/main-app-framework/components/iframe-page/index.d.ts +3 -0
  46. package/types/main-app-framework/components/index.d.ts +1 -0
  47. package/types/main-app-framework/components/person-set-dialog/index.d.ts +1 -1
  48. package/types/main-app-framework/components/person-set-dialog/src/api.d.ts +2 -0
  49. package/types/main-app-framework/components/person-set-dialog/src/components/index.d.ts +2 -0
  50. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/api.d.ts +20 -0
  51. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-builtIn-dialog.d.ts +19 -0
  52. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-notBuiltIn-dialog.d.ts +22 -0
  53. package/types/main-app-framework/constant/index.d.ts +1 -1
  54. package/types/main-app-framework/data-track/api.d.ts +2 -0
  55. package/types/main-app-framework/data-track/index.d.ts +2 -0
  56. package/types/main-app-framework/i18n/index.d.ts +518 -0
  57. package/types/main-app-framework/index.d.ts +2 -1
  58. package/types/main-app-framework/init-config/get-nav-config/api.d.ts +2 -0
  59. package/types/main-app-framework/init-config/get-nav-config/index.d.ts +4 -3
  60. package/types/main-app-framework/init-config/get-project-config/api.d.ts +3 -2
  61. package/types/main-app-framework/init-config/get-system-config/api.d.ts +2 -0
  62. package/types/main-app-framework/init-config/get-system-config/index.d.ts +4 -4
  63. package/types/main-app-framework/init-config/get-tenant-config/api.d.ts +1 -1
  64. package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +3 -3
  65. package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +2 -2
  66. package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +4 -4
  67. package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +3 -3
  68. package/types/main-app-framework/init-platform/index.d.ts +1 -1
  69. package/types/main-app-framework/utils/src/get-portal-url/crypto.d.ts +14 -0
  70. package/types/main-app-framework/utils/src/get-portal-url/encrypt.d.ts +42 -0
  71. package/types/main-app-framework/utils/src/get-portal-url/generate-url.d.ts +4 -0
  72. package/types/main-app-framework/utils/src/get-portal-url/handle-portal-params.d.ts +2 -0
  73. package/types/main-app-framework/utils/src/get-portal-url/index.d.ts +2 -0
  74. package/types/main-app-framework/utils/src/get-portal-url/type.d.ts +16 -0
  75. package/types/main-app-framework/utils/src/set-common-info.d.ts +4 -2
  76. package/types/main-app-framework/utils/src/tools.d.ts +5 -1
  77. package/types/micro-frontend/store.d.ts +5 -5
  78. package/types/theme/index.d.ts +1 -1
  79. package/index-C1fLmvh9.js +0 -68
  80. package/index-C1fLmvh9.js.gz +0 -0
  81. package/index-Zb481T6P.js +0 -7970
  82. package/index-Zb481T6P.js.gz +0 -0
  83. package/index-qg9IcruV.js +0 -70
  84. package/index-qg9IcruV.js.gz +0 -0
  85. package/packages/main-app-framework/index-BT66sFav.js +0 -5934
  86. package/packages/main-app-framework/index-BT66sFav.js.gz +0 -0
  87. package/packages/main-app-framework/index-BY578Fmy.js +0 -70
  88. package/packages/main-app-framework/index-BY578Fmy.js.gz +0 -0
  89. package/packages/main-app-framework/index-C0d8UiUo.js +0 -68
  90. package/packages/main-app-framework/index-C0d8UiUo.js.gz +0 -0
Binary file
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as r } from "vue";
2
- import { _ as c } from "./index-Zb481T6P.js";
2
+ import { _ as c } from "./index-DGluLInD.js";
3
3
  const o = {};
4
4
  function t(n, _) {
5
5
  return e(), r("div");
@@ -0,0 +1,82 @@
1
+ import { defineComponent as k, computed as p, withDirectives as v, openBlock as U, createBlock as C, unref as c, withCtx as A, createVNode as S, vShow as I } from "vue";
2
+ import { layoutData as j } from "@das-fed/web/packages/layout/index";
3
+ import { t as D } from "@das-fed/web/packages/i18n/index";
4
+ import { DasAppContainer as $ } from "@das-fed/ui/packages/business-components/app-container/index";
5
+ import { DasSpin as x } from "@das-fed/ui/packages/components/spin/index";
6
+ import { getTabInfo as T } from "@das-fed/utils/common-info";
7
+ import { setShowLayout as b } from "@das-fed/utils/common-tools";
8
+ import { createService as E } from "@das-fed/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-DGluLInD.js";
10
+ const N = "v1", O = E(`/api/justauth/client/${N}`), V = O.get("/visitor/kingdee/auth/user/auth_code"), z = /* @__PURE__ */ k({
11
+ __name: "index",
12
+ setup(F) {
13
+ const { beforeEntryApp: d, entryApp: g } = L(), m = p(() => P.value.skinStyle), h = p(() => !!j.menu.items.length), w = p(() => {
14
+ if (!u.value || !u.value.length) return [];
15
+ const o = f(u.value);
16
+ return Array.isArray(o) ? o.length ? (o.forEach((r) => r.apps = y(r.apps, 4)), o) : [] : [];
17
+ }), y = (o, r) => {
18
+ const t = [];
19
+ for (let a = 0; a < o.length; a += r)
20
+ t.push(o.slice(a, a + r));
21
+ return t;
22
+ }, _ = async (o) => {
23
+ if (!o) return;
24
+ if (!sessionStorage.getItem("projectInfo")) {
25
+ window.confirm(D("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
26
+ return;
27
+ }
28
+ const t = f(o);
29
+ if (B.innerSet = !0, t.routeUrl) {
30
+ if (o.code === "Ioc") {
31
+ window.open(t.routeUrl, "_blank");
32
+ return;
33
+ }
34
+ if (o.code === "wojiacloud") {
35
+ const e = sessionStorage.getItem("kingdee_token") || "";
36
+ if (e) {
37
+ const [n, i] = await V().run({ accessToken: e });
38
+ if (i) {
39
+ const s = (i == null ? void 0 : i.auth_code) ?? "";
40
+ t.routeUrl = t.routeUrl.includes("?") ? `${t.routeUrl}&code=${s}` : `${t.routeUrl}?code=${s}`;
41
+ }
42
+ }
43
+ }
44
+ }
45
+ const a = (o == null ? void 0 : o.openType) ?? 1, l = (o == null ? void 0 : o.type) ?? 1;
46
+ if (a === 1) {
47
+ if (!await d(o)) return;
48
+ const n = T().preTab[o.code], i = (n == null ? void 0 : n.code) ?? "", s = { ...(n == null ? void 0 : n.query) ?? {} };
49
+ g({ microApp: t, menuCode: i, route: { query: s } });
50
+ }
51
+ if (a === 2 && t.routeUrl) {
52
+ let e = "";
53
+ if (l === 1)
54
+ e = t != null && t.applicationPath ? location.origin + "/" + t.applicationPath + t.routeUrl : location.origin + t.routeUrl, e = b(e);
55
+ else if (l === 2) {
56
+ const n = await K(t.routeUrl, (t == null ? void 0 : t.param) ?? []);
57
+ e = M(n);
58
+ }
59
+ window.open(e, "_blank");
60
+ }
61
+ };
62
+ return (o, r) => v((U(), C(c(x), {
63
+ full: "",
64
+ spinning: c(q)
65
+ }, {
66
+ default: A(() => [
67
+ S(c($), {
68
+ theme: m.value,
69
+ appCategorys: w.value,
70
+ onOpenApp: _
71
+ }, null, 8, ["theme", "appCategorys"])
72
+ ]),
73
+ _: 1
74
+ /* STABLE */
75
+ }, 8, ["spinning"])), [
76
+ [I, !h.value]
77
+ ]);
78
+ }
79
+ });
80
+ export {
81
+ z as default
82
+ };
Binary file
package/index.js CHANGED
@@ -1,29 +1,32 @@
1
- import { F as s, x as t, z as n, y as i, A as r, f as p, m as u, q as m, g as o, k as g, p as D, v as b, w as h, h as l, i as A, C as T, D as c, n as L, B as W, G as y, E as M, s as R, j as F, o as I, r as V, t as f } from "./index-Zb481T6P.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-DGluLInD.js";
2
2
  export {
3
- s as DasMainAppLayout,
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
- p as createDasWebApp,
9
- u as currentLang,
8
+ u as createDasWebApp,
9
+ o as currentLang,
10
10
  m as currentTheme,
11
- o as getI18nRule,
12
- g as getLang,
13
- D as getThemeRule,
14
- b as getVar,
15
- h as getVarValue,
16
- l as i18n,
17
- A as initI18n,
18
- T as initMainApp,
19
- c as initMicroApp,
20
- L as initTheme,
21
- W as layout,
22
- y as mainAppFramework,
11
+ p as customLangeData,
12
+ g as getI18nRule,
13
+ D as getLang,
14
+ l as getThemeRule,
15
+ L as getVar,
16
+ b as getVarValue,
17
+ c as i18n,
18
+ h as initI18n,
19
+ A as initMainApp,
20
+ T as initMicroApp,
21
+ y as initTheme,
22
+ R as layout,
23
+ W as layoutData,
24
+ I as mainAppFramework,
23
25
  M as microFrontend,
24
- R as setI18nRule,
25
- F as setLang,
26
- I as setTheme,
27
- V as setThemeRule,
28
- f as t
26
+ F as setI18nRule,
27
+ V as setLang,
28
+ f as setLangRule,
29
+ k as setTheme,
30
+ v as setThemeRule,
31
+ w as t
29
32
  };
package/package.json CHANGED
@@ -1,16 +1,17 @@
1
1
  {
2
2
  "name": "@das-fed/web",
3
- "version": "6.4.0-dev.8",
3
+ "version": "6.4.0-dev.80",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "dependencies": {
7
- "@das-fed/ui": "6.4.0-dev.8",
8
- "@das-fed/utils": "6.4.0-dev.8",
9
- "@das-fed/web": "6.4.0-dev.8",
10
- "@das-fed/web-components": "6.4.0-dev.8",
7
+ "@das-fed/ui": "6.4.0-dev.80",
8
+ "@das-fed/utils": "6.4.0-dev.80",
9
+ "@das-fed/web": "6.4.0-dev.80",
10
+ "@das-fed/web-components": "6.4.0-dev.80",
11
11
  "@microsoft/signalr": "^8.0.7",
12
12
  "@vueuse/core": "^9.13.0",
13
13
  "animate.css": "^4.1.1",
14
+ "crypto-js": "^4.2.0",
14
15
  "lodash": "^4.17.21",
15
16
  "lodash-es": "^4.17.21",
16
17
  "nanoid": "3.2.0",
@@ -18,7 +19,8 @@
18
19
  "vue-router": "^4.4.0"
19
20
  },
20
21
  "devDependencies": {
21
- "@das-fed/cli": "6.4.0-dev.8",
22
+ "@das-fed/cli": "6.4.0-dev.80",
23
+ "@types/crypto-js": "^4.2.2",
22
24
  "@types/lodash": "^4.14.194",
23
25
  "@types/lodash-es": "^4.17.12",
24
26
  "@vitejs/plugin-vue": "^5.1.0",