@das-fed/web 7.0.7-hot.6 → 7.0.7-hot.60

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 (66) hide show
  1. package/{index-BvMPIPcw.js → index-8eYS921_.js} +7483 -7261
  2. package/index-8eYS921_.js.gz +0 -0
  3. package/{packages/main-app-framework/index-DxTe9g1t.js → index-CYed9XU6.js} +1 -1
  4. package/index-srSiACfB.js +100 -0
  5. package/index-srSiACfB.js.gz +0 -0
  6. package/index.js +1 -1
  7. package/package.json +12 -8
  8. package/packages/create-das-web-app/index.js +45 -49
  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 +346 -346
  12. package/packages/layout/index.js.gz +0 -0
  13. package/packages/layout/style.css +1 -1
  14. package/packages/layout/style.css.gz +0 -0
  15. package/packages/main-app-framework/assets/black-logo-B-Qipuvf.png +0 -0
  16. package/packages/main-app-framework/assets/cjb-CTZzysmN.png +0 -0
  17. package/packages/main-app-framework/assets/cjb-preview-Cz6ZEp0h.png +0 -0
  18. package/packages/main-app-framework/assets/cjb-preview-DWYaDhQb.png +0 -0
  19. package/packages/main-app-framework/assets/default-DOjV2jIm.png +0 -0
  20. package/packages/main-app-framework/assets/default-preview-DEfMZxi2.png +0 -0
  21. package/packages/main-app-framework/assets/default-preview-HZjPO_Oz.png +0 -0
  22. package/packages/main-app-framework/assets/dkh-DkyUTuR0.png +0 -0
  23. package/packages/main-app-framework/assets/dkh-preview-DQZDuJfb.png +0 -0
  24. package/packages/main-app-framework/assets/dkh-preview-SJ0YoU2z.png +0 -0
  25. package/packages/main-app-framework/assets/feedback-QNGIKgWm.png +0 -0
  26. package/packages/main-app-framework/assets/hengxian-CyCsW-Hu.png +0 -0
  27. package/packages/main-app-framework/assets/kjl-DozNzlyC.png +0 -0
  28. package/packages/main-app-framework/assets/kjl-preview-CCoSuYDK.png +0 -0
  29. package/packages/main-app-framework/assets/kjl-preview-xHIEscys.png +0 -0
  30. package/packages/main-app-framework/assets/noIconurl-7L4lHbul.png +0 -0
  31. package/packages/main-app-framework/assets/qianru-Bsf1Lhh2.png +0 -0
  32. package/packages/main-app-framework/assets/setected-tvECHVG9.svg +31 -0
  33. package/packages/main-app-framework/assets/ssl-XnQ4A9bQ.png +0 -0
  34. package/packages/main-app-framework/assets/ssl-preview-C4BD2d61.png +0 -0
  35. package/packages/main-app-framework/assets/ssl-preview-DI5pA3Df.png +0 -0
  36. package/packages/main-app-framework/assets/unselected-C4QVkFPL.svg +39 -0
  37. package/packages/main-app-framework/assets/white-logo-D7bqAkJL.png +0 -0
  38. package/packages/main-app-framework/index-DLlWagE3.js +100 -0
  39. package/packages/main-app-framework/index-DLlWagE3.js.gz +0 -0
  40. package/packages/main-app-framework/index-DvSOhjci.js +16799 -0
  41. package/packages/main-app-framework/index-DvSOhjci.js.gz +0 -0
  42. package/{index-CtwGrzH9.js → packages/main-app-framework/index-qekI7fBd.js} +1 -1
  43. package/packages/main-app-framework/index.js +1 -1
  44. package/packages/main-app-framework/style.css +1 -1
  45. package/packages/main-app-framework/style.css.gz +0 -0
  46. package/packages/micro-frontend/index.js.gz +0 -0
  47. package/packages/style/style.css.gz +0 -0
  48. package/packages/theme/index.js.gz +0 -0
  49. package/style.css +1 -1
  50. package/style.css.gz +0 -0
  51. package/types/main-app-framework/business/video-link/open.d.ts +1 -0
  52. package/types/main-app-framework/i18n/index.d.ts +10 -0
  53. package/types/main-app-framework/init-config/get-project-config/api.d.ts +3 -0
  54. package/types/main-app-framework/init-config/get-project-config/index.d.ts +5 -0
  55. package/types/main-app-framework/init-config/get-project-config/station-reserve-entry.d.ts +64 -0
  56. package/types/main-app-framework/init-platform/api.d.ts +1 -0
  57. package/types/main-app-framework/init-sso/useTokenRefresh.d.ts +9 -0
  58. package/types/main-app-framework/utils/src/set-common-info.d.ts +11 -11
  59. package/index-BvMPIPcw.js.gz +0 -0
  60. package/index-E77gum55.js +0 -88
  61. package/index-E77gum55.js.gz +0 -0
  62. package/packages/main-app-framework/index-76Uhoeeg.js +0 -88
  63. package/packages/main-app-framework/index-76Uhoeeg.js.gz +0 -0
  64. package/packages/main-app-framework/index-B3BnT3-C.js +0 -16574
  65. package/packages/main-app-framework/index-B3BnT3-C.js.gz +0 -0
  66. package/types/create-das-web-app/get-web-config.d.ts +0 -1
@@ -18,17 +18,13 @@ export declare const setProjectInfo: (data: any) => void;
18
18
  export declare const setProjectMessage: (data?: any) => void;
19
19
  /** 清除项目数据 */
20
20
  export declare const clearProjectInfo: () => void;
21
- /** 存储标签页信息,如果传入对象则进行该项替换 */
21
+ /** 存储标签页信息,如果传入对象則進行該項替換 */
22
22
  export declare const setTabs: (options: any[]) => void;
23
- /** 清除标签页信息 */
24
- export declare const clearTabs: () => void;
25
23
  /**
26
24
  * 存储应用数据
27
25
  * @param options
28
26
  */
29
27
  export declare const setSubApps: (options: any[]) => void;
30
- /** 清除应用数据 */
31
- export declare const clearSubApps: () => void;
32
28
  /** 设置应用当前选中菜单 */
33
29
  export declare const setSubAppsCurrentMenuCode: (value: string) => void;
34
30
  /**
@@ -38,8 +34,6 @@ export declare const setSubAppsCurrentMenuCode: (value: string) => void;
38
34
  * @returns
39
35
  */
40
36
  export declare const setPermissionBtns: (data: any[], code: string) => any;
41
- /** 清除菜单数据 */
42
- export declare const clearPermissionBtns: () => void;
43
37
  /**
44
38
  * 存储面包屑显示、隐藏数据
45
39
  * @param flatMenuList 拍平的菜单list
@@ -47,8 +41,6 @@ export declare const clearPermissionBtns: () => void;
47
41
  * @returns
48
42
  */
49
43
  export declare const setBreadcrumb: (flatMenuList: any[], code: string) => any;
50
- /** 清除面包屑数据 */
51
- export declare const clearBreadcrumb: () => void;
52
44
  /**
53
45
  * 存储页签风格数据
54
46
  * @param flatMenuList 拍平的菜单list
@@ -56,11 +48,19 @@ export declare const clearBreadcrumb: () => void;
56
48
  * @returns
57
49
  */
58
50
  export declare const setTabStyle: (flatMenuList: any[], code: string) => any;
59
- /** 清除页签风格数据 */
60
- export declare const clearTabStyle: () => void;
61
51
  /** 存储设备实例数据 */
62
52
  export declare const setInstanceInfo: (data: {
63
53
  instanceInfo: any;
64
54
  }) => void;
55
+ /** 清除页签风格数据 */
56
+ export declare const clearTabStyle: () => void;
57
+ /** 清除面包屑数据 */
58
+ export declare const clearBreadcrumb: () => void;
59
+ /** 清除标签页信息 */
60
+ export declare const clearTabs: () => void;
61
+ /** 清除应用数据 */
62
+ export declare const clearSubApps: () => void;
63
+ /** 清除菜单数据 */
64
+ export declare const clearPermissionBtns: () => void;
65
65
  /** 关闭所有应用:清除所有portal数据 */
66
66
  export declare const clearPortal: () => void;
Binary file
package/index-E77gum55.js DELETED
@@ -1,88 +0,0 @@
1
- import { defineComponent as v, computed as p, withDirectives as U, createBlock as C, openBlock as A, unref as c, withCtx as S, createVNode as I, vShow as j } from "vue";
2
- import { layoutData as D } from "@das-fed/web/packages/layout/index";
3
- import { t as $ } from "@das-fed/web/packages/i18n/index";
4
- import { DasAppContainer as x } from "@das-fed/ui/packages/business-components/app-container/index";
5
- import { DasSpin as T } from "@das-fed/ui/packages/components/spin/index";
6
- import { getTabInfo as b } from "@das-fed/utils/common-info";
7
- import { setShowLayout as E } from "@das-fed/utils/common-tools";
8
- import { createService as L } from "@das-fed/utils/create-api-service";
9
- import { u as P, p as q, a as u, c as d, b as B, l as K, g as M, d as N } from "./index-BvMPIPcw.js";
10
- const O = "v1", V = L(`/api/justauth/client/${O}`), F = V.get("/visitor/kingdee/auth/user/auth_code"), ee = /* @__PURE__ */ v({
11
- __name: "index",
12
- setup(G) {
13
- const { beforeEntryApp: g, entryApp: m } = P(), h = p(() => q.value.skinStyle), w = p(() => !!D.menu.items.length), y = p(() => {
14
- if (!u.value || !u.value.length) return [];
15
- const t = d(u.value);
16
- return Array.isArray(t) ? t.length ? (t.forEach((r) => {
17
- r.apps = _(
18
- r.apps,
19
- // element.apps.filter((item: any) => item?.code && item.code !== 'dasaiassistant'),
20
- 4
21
- );
22
- }), t) : [] : [];
23
- }), _ = (t, r) => {
24
- const i = [];
25
- for (let e = 0; e < t.length; e += r)
26
- i.push(t.slice(e, e + r));
27
- return i;
28
- }, k = async (t, r = !0) => {
29
- if (!t) return;
30
- if (!sessionStorage.getItem("projectInfo")) {
31
- window.confirm($("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
32
- return;
33
- }
34
- const e = d(t);
35
- if (K.innerSet = r, e.routeUrl) {
36
- if (t.code === "Ioc") {
37
- window.open(e.routeUrl, "_blank");
38
- return;
39
- }
40
- if (t.code === "wojiacloud") {
41
- const o = sessionStorage.getItem("kingdee_token") || "";
42
- if (o) {
43
- const [n, a] = await F().run({ accessToken: o });
44
- if (a) {
45
- const s = (a == null ? void 0 : a.auth_code) ?? "";
46
- e.routeUrl = e.routeUrl.includes("?") ? `${e.routeUrl}&code=${s}` : `${e.routeUrl}?code=${s}`;
47
- }
48
- }
49
- }
50
- }
51
- const l = (t == null ? void 0 : t.openType) ?? 1, f = (t == null ? void 0 : t.type) ?? 1;
52
- if (l === 1) {
53
- if (!await g(t)) return;
54
- const n = b().preTab[t.code], a = (n == null ? void 0 : n.code) ?? "", s = { ...(n == null ? void 0 : n.query) ?? {} };
55
- m({ microApp: e, menuCode: a, route: { query: s } });
56
- }
57
- if (l === 2 && e.routeUrl) {
58
- let o = "";
59
- if (f === 1)
60
- o = e != null && e.applicationPath ? ("/" + e.applicationPath + "/" + e.routeUrl).replace(/\/\//g, "/") : ("/" + e.routeUrl).replace(/\/\//g, "/"), o = E(o);
61
- else if (f === 2) {
62
- const n = await M(e.routeUrl, (e == null ? void 0 : e.param) ?? []);
63
- o = N(n);
64
- }
65
- window.open(o, "_blank");
66
- }
67
- };
68
- return (t, r) => U((A(), C(c(T), {
69
- full: "",
70
- spinning: c(B)
71
- }, {
72
- default: S(() => [
73
- I(c(x), {
74
- theme: h.value,
75
- appCategorys: y.value,
76
- onOpenApp: k
77
- }, null, 8, ["theme", "appCategorys"])
78
- ]),
79
- _: 1
80
- /* STABLE */
81
- }, 8, ["spinning"])), [
82
- [j, !w.value]
83
- ]);
84
- }
85
- });
86
- export {
87
- ee as default
88
- };
Binary file
@@ -1,88 +0,0 @@
1
- import { defineComponent as v, computed as p, withDirectives as U, createBlock as C, openBlock as A, unref as c, withCtx as S, createVNode as I, vShow as j } from "vue";
2
- import { layoutData as D } from "@das-fed/web/packages/layout/index";
3
- import { t as $ } from "@das-fed/web/packages/i18n/index";
4
- import { DasAppContainer as x } from "@das-fed/ui/packages/business-components/app-container/index";
5
- import { DasSpin as T } from "@das-fed/ui/packages/components/spin/index";
6
- import { getTabInfo as b } from "@das-fed/utils/common-info";
7
- import { setShowLayout as E } from "@das-fed/utils/common-tools";
8
- import { createService as L } from "@das-fed/utils/create-api-service";
9
- import { u as P, p as q, a as u, c as d, b as B, l as K, g as M, d as N } from "./index-B3BnT3-C.js";
10
- const O = "v1", V = L(`/api/justauth/client/${O}`), F = V.get("/visitor/kingdee/auth/user/auth_code"), ee = /* @__PURE__ */ v({
11
- __name: "index",
12
- setup(G) {
13
- const { beforeEntryApp: g, entryApp: m } = P(), h = p(() => q.value.skinStyle), w = p(() => !!D.menu.items.length), y = p(() => {
14
- if (!u.value || !u.value.length) return [];
15
- const t = d(u.value);
16
- return Array.isArray(t) ? t.length ? (t.forEach((r) => {
17
- r.apps = _(
18
- r.apps,
19
- // element.apps.filter((item: any) => item?.code && item.code !== 'dasaiassistant'),
20
- 4
21
- );
22
- }), t) : [] : [];
23
- }), _ = (t, r) => {
24
- const i = [];
25
- for (let e = 0; e < t.length; e += r)
26
- i.push(t.slice(e, e + r));
27
- return i;
28
- }, k = async (t, r = !0) => {
29
- if (!t) return;
30
- if (!sessionStorage.getItem("projectInfo")) {
31
- window.confirm($("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
32
- return;
33
- }
34
- const e = d(t);
35
- if (K.innerSet = r, e.routeUrl) {
36
- if (t.code === "Ioc") {
37
- window.open(e.routeUrl, "_blank");
38
- return;
39
- }
40
- if (t.code === "wojiacloud") {
41
- const o = sessionStorage.getItem("kingdee_token") || "";
42
- if (o) {
43
- const [n, a] = await F().run({ accessToken: o });
44
- if (a) {
45
- const s = (a == null ? void 0 : a.auth_code) ?? "";
46
- e.routeUrl = e.routeUrl.includes("?") ? `${e.routeUrl}&code=${s}` : `${e.routeUrl}?code=${s}`;
47
- }
48
- }
49
- }
50
- }
51
- const l = (t == null ? void 0 : t.openType) ?? 1, f = (t == null ? void 0 : t.type) ?? 1;
52
- if (l === 1) {
53
- if (!await g(t)) return;
54
- const n = b().preTab[t.code], a = (n == null ? void 0 : n.code) ?? "", s = { ...(n == null ? void 0 : n.query) ?? {} };
55
- m({ microApp: e, menuCode: a, route: { query: s } });
56
- }
57
- if (l === 2 && e.routeUrl) {
58
- let o = "";
59
- if (f === 1)
60
- o = e != null && e.applicationPath ? ("/" + e.applicationPath + "/" + e.routeUrl).replace(/\/\//g, "/") : ("/" + e.routeUrl).replace(/\/\//g, "/"), o = E(o);
61
- else if (f === 2) {
62
- const n = await M(e.routeUrl, (e == null ? void 0 : e.param) ?? []);
63
- o = N(n);
64
- }
65
- window.open(o, "_blank");
66
- }
67
- };
68
- return (t, r) => U((A(), C(c(T), {
69
- full: "",
70
- spinning: c(B)
71
- }, {
72
- default: S(() => [
73
- I(c(x), {
74
- theme: h.value,
75
- appCategorys: y.value,
76
- onOpenApp: k
77
- }, null, 8, ["theme", "appCategorys"])
78
- ]),
79
- _: 1
80
- /* STABLE */
81
- }, 8, ["spinning"])), [
82
- [j, !w.value]
83
- ]);
84
- }
85
- });
86
- export {
87
- ee as default
88
- };