@das-fed/web 6.4.0-dev.4 → 6.4.0-dev.41

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 (76) hide show
  1. package/esm-map.json +2 -1
  2. package/index-BJaVqwM1.js +7439 -0
  3. package/index-BJaVqwM1.js.gz +0 -0
  4. package/{index-D8XgnluX.js → index-BqdkqUh1.js} +1 -1
  5. package/index-DTXiRF91.js +75 -0
  6. package/index-DTXiRF91.js.gz +0 -0
  7. package/index.js +16 -15
  8. package/package.json +6 -6
  9. package/packages/create-das-web-app/config.js +1 -0
  10. package/packages/create-das-web-app/index.js +48 -802
  11. package/packages/create-das-web-app/index.js.gz +0 -0
  12. package/packages/i18n/config.js +1 -0
  13. package/packages/i18n/index.js +25 -24
  14. package/packages/i18n/index.js.gz +0 -0
  15. package/packages/layout/config.js +1 -0
  16. package/packages/layout/index.js +450 -406
  17. package/packages/layout/index.js.gz +0 -0
  18. package/packages/layout/style.css +2 -2
  19. package/packages/layout/style.css.gz +0 -0
  20. package/packages/main-app-framework/config.js +1 -0
  21. package/packages/main-app-framework/index-D3CMerRp.js +75 -0
  22. package/packages/main-app-framework/index-D3CMerRp.js.gz +0 -0
  23. package/packages/main-app-framework/index-DCoCFFJH.js +6097 -0
  24. package/packages/main-app-framework/index-DCoCFFJH.js.gz +0 -0
  25. package/packages/main-app-framework/{index-BkJc1lDT.js → index-GuLooLSc.js} +1 -1
  26. package/packages/main-app-framework/index.js +1 -1
  27. package/packages/main-app-framework/style.css +1 -1
  28. package/packages/main-app-framework/style.css.gz +0 -0
  29. package/packages/micro-frontend/config.js +1 -0
  30. package/packages/micro-frontend/index.js +180 -163
  31. package/packages/micro-frontend/index.js.gz +0 -0
  32. package/packages/micro-frontend/style.css +1 -1
  33. package/packages/style/config.js +1 -0
  34. package/packages/style/style.css +1 -1
  35. package/packages/style/style.css.gz +0 -0
  36. package/packages/theme/config.js +1 -0
  37. package/packages/theme/index.js.gz +0 -0
  38. package/style.css +2 -2
  39. package/style.css.gz +0 -0
  40. package/types/create-das-web-app/index.d.ts +1 -1
  41. package/types/i18n/index.d.ts +2 -2
  42. package/types/layout/index.d.ts +1 -1
  43. package/types/layout/store/index.d.ts +6 -1
  44. package/types/layout/store/menu.d.ts +2 -0
  45. package/types/layout/store/nav.d.ts +1 -0
  46. package/types/layout/store/tab.d.ts +1 -0
  47. package/types/main-app-framework/business/alarm/use-alarm.d.ts +4 -4
  48. package/types/main-app-framework/business/video-link/api.d.ts +2 -0
  49. package/types/main-app-framework/business/video-link/index.d.ts +3 -3
  50. package/types/main-app-framework/business/video-link/video-dialog/hooks/PlayerProvider.d.ts +3 -3
  51. package/types/main-app-framework/components/iframe-page/index.d.ts +3 -0
  52. package/types/main-app-framework/components/index.d.ts +1 -0
  53. package/types/main-app-framework/components/person-set-dialog/index.d.ts +1 -1
  54. package/types/main-app-framework/index.d.ts +1 -1
  55. package/types/main-app-framework/init-config/get-nav-config/api.d.ts +2 -0
  56. package/types/main-app-framework/init-config/get-nav-config/index.d.ts +4 -3
  57. package/types/main-app-framework/init-config/get-system-config/index.d.ts +3 -3
  58. package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +3 -3
  59. package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +2 -2
  60. package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +4 -4
  61. package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +3 -3
  62. package/types/main-app-framework/init-platform/index.d.ts +1 -1
  63. package/types/micro-frontend/store.d.ts +5 -5
  64. package/types/theme/index.d.ts +1 -1
  65. package/index--5iw3PcC.js +0 -7970
  66. package/index--5iw3PcC.js.gz +0 -0
  67. package/index-BSYJheVx.js +0 -68
  68. package/index-BSYJheVx.js.gz +0 -0
  69. package/index-C5zNxpQk.js +0 -70
  70. package/index-C5zNxpQk.js.gz +0 -0
  71. package/packages/main-app-framework/index-C_X3k7z0.js +0 -70
  72. package/packages/main-app-framework/index-C_X3k7z0.js.gz +0 -0
  73. package/packages/main-app-framework/index-D7pfTqeW.js +0 -5917
  74. package/packages/main-app-framework/index-D7pfTqeW.js.gz +0 -0
  75. package/packages/main-app-framework/index-MhsbUVtD.js +0 -68
  76. package/packages/main-app-framework/index-MhsbUVtD.js.gz +0 -0
Binary file
package/index-BSYJheVx.js DELETED
@@ -1,68 +0,0 @@
1
- import { defineComponent as v, ref as r, nextTick as u, watch as p, onMounted as _, onUnmounted as h, openBlock as c, createElementBlock as l, createVNode as w, unref as g, withCtx as k, withDirectives as x, vShow as y, createCommentVNode as I } from "vue";
2
- import { useRoute as P } from "vue-router";
3
- import { DasSpin as S } from "@das-fed/ui/packages/components/spin/index";
4
- import { layout as C } from "@das-fed/web/packages/layout/index";
5
- import { I as R, e as L, _ as M } from "./index--5iw3PcC.js";
6
- import { getToken as j, getPersonalInfo as B, getProjectInfo as D } from "@das-fed/utils/common-info";
7
- import { getUrlParams as E } from "@das-fed/utils/common-tools";
8
- const N = {
9
- key: 0,
10
- class: "iframe-container"
11
- }, T = ["src"], U = /* @__PURE__ */ v({
12
- __name: "index",
13
- setup(V) {
14
- const t = r(""), n = r(!0);
15
- C.tab.addEventListener("onPageRefresh", async (e) => {
16
- e && e.path === R && (L(e.applicationCode, [e.code]), n.value = !1, await u(), n.value = !0);
17
- });
18
- const a = r(!1), i = r(null), o = r(!1), f = () => {
19
- var e, s;
20
- o.value && (e = i.value) != null && e.contentWindow && ((s = i.value.contentWindow) == null || s.postMessage(
21
- {
22
- token: j(),
23
- userInfo: B(),
24
- projectInfo: D()
25
- },
26
- t.value
27
- ));
28
- }, m = P();
29
- p(
30
- () => m.query.iframeSrc,
31
- async (e) => {
32
- e && (t.value = e, a.value = !1, await u(), a.value = !0, f());
33
- }
34
- );
35
- const d = () => {
36
- o.value = !0, f();
37
- };
38
- return _(() => {
39
- a.value = !0, t.value = E(location.href, "iframeSrc");
40
- }), h(() => {
41
- o.value = !1, a.value = !1;
42
- }), (e, s) => a.value && n.value ? (c(), l("div", N, [
43
- w(g(S), {
44
- spinning: !o.value
45
- }, {
46
- default: k(() => [
47
- x((c(), l("iframe", {
48
- id: "iframe-view",
49
- ref_key: "iframeRef",
50
- ref: i,
51
- width: "100%",
52
- height: "100%",
53
- src: t.value,
54
- key: t.value,
55
- onLoad: d
56
- }, null, 40, T)), [
57
- [y, o.value]
58
- ])
59
- ]),
60
- _: 1
61
- /* STABLE */
62
- }, 8, ["spinning"])
63
- ])) : I("v-if", !0);
64
- }
65
- }), H = /* @__PURE__ */ M(U, [["__scopeId", "data-v-9d185d90"]]);
66
- export {
67
- H as default
68
- };
Binary file
package/index-C5zNxpQk.js DELETED
@@ -1,70 +0,0 @@
1
- import { defineComponent as w, computed as y, openBlock as _, createBlock as k, unref as p, withCtx as U, createVNode as A } from "vue";
2
- import { DasAppContainer as C } from "@das-fed/ui/packages/business-components/app-container/index";
3
- import { DasSpin as v } from "@das-fed/ui/packages/components/spin/index";
4
- import { getTabInfo as I } from "@das-fed/utils/common-info";
5
- import { createService as j } from "@das-fed/utils/create-api-service";
6
- import { u as S, a as c, c as l, b as $, l as x, d as L } from "./index--5iw3PcC.js";
7
- const T = "v1", b = j(`/api/justauth/client/${T}`), D = b.get("/visitor/kingdee/auth/user/auth_code"), V = /* @__PURE__ */ w({
8
- __name: "index",
9
- setup(E) {
10
- const { beforeEntryApp: f, entryApp: d } = S(), g = y(() => {
11
- if (!c.value || !c.value.length) return [];
12
- const o = l(c.value);
13
- return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = h(n.apps, 4)), o) : [] : [];
14
- }), h = (o, n) => {
15
- const e = [];
16
- for (let r = 0; r < o.length; r += n)
17
- e.push(o.slice(r, r + n));
18
- return e;
19
- }, m = async (o) => {
20
- if (!o) return;
21
- if (!sessionStorage.getItem("projectInfo")) {
22
- window.confirm("系统资源更新,请刷新系统") && (window.__isAutoCloseApp = !1, window.location.reload());
23
- return;
24
- }
25
- const e = l(o);
26
- if (x.innerSet = !0, e.routeUrl) {
27
- if (o.code === "Ioc") {
28
- window.open(e.routeUrl, "_blank");
29
- return;
30
- }
31
- if (o.code === "wojiacloud") {
32
- const t = sessionStorage.getItem("kingdee_token") || "";
33
- if (t) {
34
- const [a, i] = await D().run({ accessToken: t });
35
- if (i) {
36
- const s = (i == null ? void 0 : i.auth_code) ?? "";
37
- e.routeUrl = e.routeUrl.includes("?") ? `${e.routeUrl}&code=${s}` : `${e.routeUrl}?code=${s}`;
38
- }
39
- }
40
- }
41
- }
42
- const r = (o == null ? void 0 : o.openType) ?? 1, u = (o == null ? void 0 : o.type) ?? 1;
43
- if (r === 1) {
44
- if (!await f(o)) return;
45
- const a = I().preTab[o.code], i = (a == null ? void 0 : a.code) ?? "", s = { ...(a == null ? void 0 : a.query) ?? {} };
46
- d({ microApp: e, menuCode: i, route: { query: s } });
47
- }
48
- if (r === 2 && e.routeUrl) {
49
- let t = "";
50
- u === 1 ? t = e != null && e.applicationPath ? location.origin + "/" + e.applicationPath + e.routeUrl + "?showLayout=false" : location.origin + e.routeUrl + "?showLayout=false" : u === 2 && (t = L(e.routeUrl)), window.open(t, "_blank");
51
- }
52
- };
53
- return (o, n) => (_(), k(p(v), {
54
- full: "",
55
- spinning: p($)
56
- }, {
57
- default: U(() => [
58
- A(p(C), {
59
- appCategorys: g.value,
60
- onOpenApp: m
61
- }, null, 8, ["appCategorys"])
62
- ]),
63
- _: 1
64
- /* STABLE */
65
- }, 8, ["spinning"]));
66
- }
67
- });
68
- export {
69
- V as default
70
- };
Binary file
@@ -1,70 +0,0 @@
1
- import { defineComponent as w, computed as y, openBlock as _, createBlock as k, unref as p, withCtx as U, createVNode as A } from "vue";
2
- import { DasAppContainer as C } from "@das-fed/ui/packages/business-components/app-container/index";
3
- import { DasSpin as v } from "@das-fed/ui/packages/components/spin/index";
4
- import { getTabInfo as I } from "@das-fed/utils/common-info";
5
- import { createService as j } from "@das-fed/utils/create-api-service";
6
- import { u as S, a as c, c as l, b as $, l as x, d as L } from "./index-D7pfTqeW.js";
7
- const T = "v1", b = j(`/api/justauth/client/${T}`), D = b.get("/visitor/kingdee/auth/user/auth_code"), V = /* @__PURE__ */ w({
8
- __name: "index",
9
- setup(E) {
10
- const { beforeEntryApp: f, entryApp: d } = S(), g = y(() => {
11
- if (!c.value || !c.value.length) return [];
12
- const o = l(c.value);
13
- return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = h(n.apps, 4)), o) : [] : [];
14
- }), h = (o, n) => {
15
- const e = [];
16
- for (let r = 0; r < o.length; r += n)
17
- e.push(o.slice(r, r + n));
18
- return e;
19
- }, m = async (o) => {
20
- if (!o) return;
21
- if (!sessionStorage.getItem("projectInfo")) {
22
- window.confirm("系统资源更新,请刷新系统") && (window.__isAutoCloseApp = !1, window.location.reload());
23
- return;
24
- }
25
- const e = l(o);
26
- if (x.innerSet = !0, e.routeUrl) {
27
- if (o.code === "Ioc") {
28
- window.open(e.routeUrl, "_blank");
29
- return;
30
- }
31
- if (o.code === "wojiacloud") {
32
- const t = sessionStorage.getItem("kingdee_token") || "";
33
- if (t) {
34
- const [a, i] = await D().run({ accessToken: t });
35
- if (i) {
36
- const s = (i == null ? void 0 : i.auth_code) ?? "";
37
- e.routeUrl = e.routeUrl.includes("?") ? `${e.routeUrl}&code=${s}` : `${e.routeUrl}?code=${s}`;
38
- }
39
- }
40
- }
41
- }
42
- const r = (o == null ? void 0 : o.openType) ?? 1, u = (o == null ? void 0 : o.type) ?? 1;
43
- if (r === 1) {
44
- if (!await f(o)) return;
45
- const a = I().preTab[o.code], i = (a == null ? void 0 : a.code) ?? "", s = { ...(a == null ? void 0 : a.query) ?? {} };
46
- d({ microApp: e, menuCode: i, route: { query: s } });
47
- }
48
- if (r === 2 && e.routeUrl) {
49
- let t = "";
50
- u === 1 ? t = e != null && e.applicationPath ? location.origin + "/" + e.applicationPath + e.routeUrl + "?showLayout=false" : location.origin + e.routeUrl + "?showLayout=false" : u === 2 && (t = L(e.routeUrl)), window.open(t, "_blank");
51
- }
52
- };
53
- return (o, n) => (_(), k(p(v), {
54
- full: "",
55
- spinning: p($)
56
- }, {
57
- default: U(() => [
58
- A(p(C), {
59
- appCategorys: g.value,
60
- onOpenApp: m
61
- }, null, 8, ["appCategorys"])
62
- ]),
63
- _: 1
64
- /* STABLE */
65
- }, 8, ["spinning"]));
66
- }
67
- });
68
- export {
69
- V as default
70
- };