@das-fed/web 6.4.0-test.1 → 6.4.0-test.2.1

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 (61) hide show
  1. package/esm-map.json +2 -1
  2. package/{index-LTwaM8dS.js → index-6_iWBDs0.js} +2659 -2565
  3. package/index-6_iWBDs0.js.gz +0 -0
  4. package/index-C9vVY6r3.js +74 -0
  5. package/index-C9vVY6r3.js.gz +0 -0
  6. package/{packages/main-app-framework/index-CBrBve1k.js → index-DC-9kRIP.js} +1 -1
  7. package/index.js +16 -15
  8. package/package.json +6 -6
  9. package/packages/create-das-web-app/index.js.gz +0 -0
  10. package/packages/i18n/index.js.gz +0 -0
  11. package/packages/layout/index.js +352 -347
  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/{index-D_CiHfGN.js → packages/main-app-framework/index-DCVBm-dM.js} +1 -1
  16. package/packages/main-app-framework/{index-DF7V-TBl.js → index-DHWdFr1t.js} +2402 -2313
  17. package/packages/main-app-framework/index-DHWdFr1t.js.gz +0 -0
  18. package/packages/main-app-framework/index-DiKwf0Vc.js +74 -0
  19. package/packages/main-app-framework/index-DiKwf0Vc.js.gz +0 -0
  20. package/packages/main-app-framework/index.js +1 -1
  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 +18 -30
  24. package/packages/micro-frontend/index.js.gz +0 -0
  25. package/packages/micro-frontend/style.css +1 -1
  26. package/packages/style/style.css +1 -1
  27. package/packages/style/style.css.gz +0 -0
  28. package/packages/theme/index.js.gz +0 -0
  29. package/style.css +2 -2
  30. package/style.css.gz +0 -0
  31. package/types/create-das-web-app/index.d.ts +1 -1
  32. package/types/i18n/index.d.ts +2 -2
  33. package/types/layout/index.d.ts +1 -1
  34. package/types/layout/store/index.d.ts +1 -1
  35. package/types/main-app-framework/business/alarm/use-alarm.d.ts +4 -4
  36. package/types/main-app-framework/business/video-link/api.d.ts +2 -0
  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/iframe-page/index.d.ts +3 -0
  40. package/types/main-app-framework/components/index.d.ts +1 -0
  41. package/types/main-app-framework/components/person-set-dialog/index.d.ts +1 -1
  42. package/types/main-app-framework/index.d.ts +1 -1
  43. package/types/main-app-framework/init-config/get-nav-config/index.d.ts +2 -2
  44. package/types/main-app-framework/init-config/get-system-config/index.d.ts +2 -2
  45. package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +3 -3
  46. package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +2 -2
  47. package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +4 -4
  48. package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +3 -3
  49. package/types/main-app-framework/init-platform/index.d.ts +1 -1
  50. package/types/micro-frontend/store.d.ts +5 -5
  51. package/types/theme/index.d.ts +1 -1
  52. package/index-CNuui6rH.js +0 -71
  53. package/index-CNuui6rH.js.gz +0 -0
  54. package/index-LTwaM8dS.js.gz +0 -0
  55. package/index-_67_4aoo.js +0 -68
  56. package/index-_67_4aoo.js.gz +0 -0
  57. package/packages/main-app-framework/index-Bnb7HNMb.js +0 -68
  58. package/packages/main-app-framework/index-Bnb7HNMb.js.gz +0 -0
  59. package/packages/main-app-framework/index-DF7V-TBl.js.gz +0 -0
  60. package/packages/main-app-framework/index-DOTMbc-l.js +0 -71
  61. package/packages/main-app-framework/index-DOTMbc-l.js.gz +0 -0
@@ -1,8 +1,8 @@
1
1
  declare const useLayoutInit: (platformInitNextTick: () => Promise<any>) => {
2
- loading: import('vue').Ref<any>;
3
- innerPage: import('vue').Ref<any>;
4
- commandList: import('vue').Ref<any>;
5
- layoutInited: import('vue').Ref<any>;
2
+ loading: import('vue').Ref<any, any>;
3
+ innerPage: import('vue').Ref<any, any>;
4
+ commandList: import('vue').Ref<any, any>;
5
+ layoutInited: import('vue').Ref<any, any>;
6
6
  initNextTick: () => Promise<void>;
7
7
  };
8
8
  export { useLayoutInit };
@@ -1,5 +1,5 @@
1
1
  export declare const useTabs: () => {
2
- fontColor: import('vue').Ref<any>;
3
- backgroudColor: import('vue').Ref<any>;
4
- borderColor: import('vue').Ref<any>;
2
+ fontColor: import('vue').Ref<any, any>;
3
+ backgroudColor: import('vue').Ref<any, any>;
4
+ borderColor: import('vue').Ref<any, any>;
5
5
  };
@@ -1,4 +1,4 @@
1
1
  export declare const usePlatformInit: () => {
2
- platformInited: import('vue').Ref<any>;
2
+ platformInited: import('vue').Ref<any, any>;
3
3
  initNextTick: () => Promise<void>;
4
4
  };
@@ -1,5 +1,5 @@
1
- export declare const microAppRouterPrefix: import('vue').Ref<any>;
2
- export declare const microApps: import('vue').Ref<any>;
3
- export declare const microAppVisible: import('vue').Ref<any>;
4
- export declare const excludeRoutes: import('vue').Ref<any>;
5
- export declare const routeKeepAliveVisible: import('vue').Ref<any>;
1
+ export declare const microAppRouterPrefix: import('vue').Ref<any, any>;
2
+ export declare const microApps: import('vue').Ref<any, any>;
3
+ export declare const microAppVisible: import('vue').Ref<any, any>;
4
+ export declare const excludeRoutes: import('vue').Ref<any, any>;
5
+ export declare const routeKeepAliveVisible: import('vue').Ref<any, any>;
@@ -1,4 +1,4 @@
1
- declare const currentTheme: import('vue').Ref<any>;
1
+ declare const currentTheme: import('vue').Ref<any, any>;
2
2
  declare const setThemeRule: (data: any, type?: "global" | "custom") => void;
3
3
  declare const initTheme: (opt?: any) => any;
4
4
  declare const setTheme: (value: string) => void;
package/index-CNuui6rH.js DELETED
@@ -1,71 +0,0 @@
1
- import { defineComponent as _, computed as w, openBlock as y, 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 { setShowLayout as S } from "@das-fed/utils/common-tools";
6
- import { createService as j } from "@das-fed/utils/create-api-service";
7
- import { u as $, a as c, c as l, b as x, l as T, d as b } from "./index-LTwaM8dS.js";
8
- const D = "v1", E = j(`/api/justauth/client/${D}`), L = E.get("/visitor/kingdee/auth/user/auth_code"), G = /* @__PURE__ */ _({
9
- __name: "index",
10
- setup(q) {
11
- const { beforeEntryApp: f, entryApp: d } = $(), g = w(() => {
12
- if (!c.value || !c.value.length) return [];
13
- const o = l(c.value);
14
- return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = h(n.apps, 4)), o) : [] : [];
15
- }), h = (o, n) => {
16
- const e = [];
17
- for (let r = 0; r < o.length; r += n)
18
- e.push(o.slice(r, r + n));
19
- return e;
20
- }, m = async (o) => {
21
- if (!o) return;
22
- if (!sessionStorage.getItem("projectInfo")) {
23
- window.confirm("系统资源更新,请刷新系统") && (window.__isAutoCloseApp = !1, window.location.reload());
24
- return;
25
- }
26
- const e = l(o);
27
- if (T.innerSet = !0, e.routeUrl) {
28
- if (o.code === "Ioc") {
29
- window.open(e.routeUrl, "_blank");
30
- return;
31
- }
32
- if (o.code === "wojiacloud") {
33
- const t = sessionStorage.getItem("kingdee_token") || "";
34
- if (t) {
35
- const [i, a] = await L().run({ accessToken: t });
36
- if (a) {
37
- const s = (a == null ? void 0 : a.auth_code) ?? "";
38
- e.routeUrl = e.routeUrl.includes("?") ? `${e.routeUrl}&code=${s}` : `${e.routeUrl}?code=${s}`;
39
- }
40
- }
41
- }
42
- }
43
- const r = (o == null ? void 0 : o.openType) ?? 1, u = (o == null ? void 0 : o.type) ?? 1;
44
- if (r === 1) {
45
- if (!await f(o)) return;
46
- const i = I().preTab[o.code], a = (i == null ? void 0 : i.code) ?? "", s = { ...(i == null ? void 0 : i.query) ?? {} };
47
- d({ microApp: e, menuCode: a, route: { query: s } });
48
- }
49
- if (r === 2 && e.routeUrl) {
50
- let t = "";
51
- u === 1 ? (t = e != null && e.applicationPath ? location.origin + "/" + e.applicationPath + e.routeUrl : location.origin + e.routeUrl, t = S(t)) : u === 2 && (t = b(e.routeUrl)), window.open(t, "_blank");
52
- }
53
- };
54
- return (o, n) => (y(), k(p(v), {
55
- full: "",
56
- spinning: p(x)
57
- }, {
58
- default: U(() => [
59
- A(p(C), {
60
- appCategorys: g.value,
61
- onOpenApp: m
62
- }, null, 8, ["appCategorys"])
63
- ]),
64
- _: 1
65
- /* STABLE */
66
- }, 8, ["spinning"]));
67
- }
68
- });
69
- export {
70
- G as default
71
- };
Binary file
Binary file
package/index-_67_4aoo.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-LTwaM8dS.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
@@ -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-DF7V-TBl.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
- };
@@ -1,71 +0,0 @@
1
- import { defineComponent as _, computed as w, openBlock as y, 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 { setShowLayout as S } from "@das-fed/utils/common-tools";
6
- import { createService as j } from "@das-fed/utils/create-api-service";
7
- import { u as $, a as c, c as l, b as x, l as T, d as b } from "./index-DF7V-TBl.js";
8
- const D = "v1", E = j(`/api/justauth/client/${D}`), L = E.get("/visitor/kingdee/auth/user/auth_code"), G = /* @__PURE__ */ _({
9
- __name: "index",
10
- setup(q) {
11
- const { beforeEntryApp: f, entryApp: d } = $(), g = w(() => {
12
- if (!c.value || !c.value.length) return [];
13
- const o = l(c.value);
14
- return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = h(n.apps, 4)), o) : [] : [];
15
- }), h = (o, n) => {
16
- const e = [];
17
- for (let r = 0; r < o.length; r += n)
18
- e.push(o.slice(r, r + n));
19
- return e;
20
- }, m = async (o) => {
21
- if (!o) return;
22
- if (!sessionStorage.getItem("projectInfo")) {
23
- window.confirm("系统资源更新,请刷新系统") && (window.__isAutoCloseApp = !1, window.location.reload());
24
- return;
25
- }
26
- const e = l(o);
27
- if (T.innerSet = !0, e.routeUrl) {
28
- if (o.code === "Ioc") {
29
- window.open(e.routeUrl, "_blank");
30
- return;
31
- }
32
- if (o.code === "wojiacloud") {
33
- const t = sessionStorage.getItem("kingdee_token") || "";
34
- if (t) {
35
- const [i, a] = await L().run({ accessToken: t });
36
- if (a) {
37
- const s = (a == null ? void 0 : a.auth_code) ?? "";
38
- e.routeUrl = e.routeUrl.includes("?") ? `${e.routeUrl}&code=${s}` : `${e.routeUrl}?code=${s}`;
39
- }
40
- }
41
- }
42
- }
43
- const r = (o == null ? void 0 : o.openType) ?? 1, u = (o == null ? void 0 : o.type) ?? 1;
44
- if (r === 1) {
45
- if (!await f(o)) return;
46
- const i = I().preTab[o.code], a = (i == null ? void 0 : i.code) ?? "", s = { ...(i == null ? void 0 : i.query) ?? {} };
47
- d({ microApp: e, menuCode: a, route: { query: s } });
48
- }
49
- if (r === 2 && e.routeUrl) {
50
- let t = "";
51
- u === 1 ? (t = e != null && e.applicationPath ? location.origin + "/" + e.applicationPath + e.routeUrl : location.origin + e.routeUrl, t = S(t)) : u === 2 && (t = b(e.routeUrl)), window.open(t, "_blank");
52
- }
53
- };
54
- return (o, n) => (y(), k(p(v), {
55
- full: "",
56
- spinning: p(x)
57
- }, {
58
- default: U(() => [
59
- A(p(C), {
60
- appCategorys: g.value,
61
- onOpenApp: m
62
- }, null, 8, ["appCategorys"])
63
- ]),
64
- _: 1
65
- /* STABLE */
66
- }, 8, ["spinning"]));
67
- }
68
- });
69
- export {
70
- G as default
71
- };