@das-fed/web 6.4.0-dev.7 → 6.4.0-dev.70
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.
- package/esm-map.json +4 -1
- package/index-Cn4teP61.js +13649 -0
- package/index-Cn4teP61.js.gz +0 -0
- package/index-D7_ubq4h.js +82 -0
- package/index-D7_ubq4h.js.gz +0 -0
- package/{packages/main-app-framework/index-Cg3QA-m6.js → index-DvteJZXR.js} +1 -1
- package/index.js +24 -21
- package/package.json +8 -6
- package/packages/create-das-web-app/index.js +48 -805
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/i18n/index.js +76 -31
- package/packages/i18n/index.js.gz +0 -0
- package/packages/layout/index.js +479 -441
- package/packages/layout/index.js.gz +0 -0
- package/packages/layout/style.css +2 -2
- package/packages/layout/style.css.gz +0 -0
- package/packages/main-app-framework/index-5xg7Vb1b.js +82 -0
- package/packages/main-app-framework/index-5xg7Vb1b.js.gz +0 -0
- package/packages/main-app-framework/index-CnqisfM0.js +12267 -0
- package/packages/main-app-framework/index-CnqisfM0.js.gz +0 -0
- package/{index-Bxc6TFIP.js → packages/main-app-framework/index-DWA8k2YZ.js} +1 -1
- package/packages/main-app-framework/index.js +3 -2
- package/packages/main-app-framework/style.css +1 -1
- package/packages/main-app-framework/style.css.gz +0 -0
- package/packages/micro-frontend/index.js +181 -164
- package/packages/micro-frontend/index.js.gz +0 -0
- package/packages/style/style.css +1 -1
- package/packages/style/style.css.gz +0 -0
- package/style.css +2 -2
- package/style.css.gz +0 -0
- package/types/create-das-web-app/index.d.ts +1 -1
- package/types/i18n/global.d.ts +118 -0
- package/types/i18n/index.d.ts +6 -4
- package/types/layout/index.d.ts +1 -1
- package/types/layout/store/index.d.ts +6 -1
- package/types/layout/store/menu.d.ts +2 -0
- package/types/layout/store/nav.d.ts +1 -0
- package/types/layout/store/tab.d.ts +1 -0
- package/types/main-app-framework/business/alarm/use-alarm.d.ts +4 -4
- package/types/main-app-framework/business/video-link/api.d.ts +2 -0
- package/types/main-app-framework/business/video-link/index.d.ts +3 -3
- package/types/main-app-framework/business/video-link/video-dialog/hooks/PlayerProvider.d.ts +3 -3
- package/types/main-app-framework/components/iframe-page/index.d.ts +3 -0
- package/types/main-app-framework/components/index.d.ts +1 -0
- package/types/main-app-framework/components/person-set-dialog/index.d.ts +1 -1
- package/types/main-app-framework/components/person-set-dialog/src/api.d.ts +2 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/index.d.ts +2 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/api.d.ts +20 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-builtIn-dialog.d.ts +19 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-notBuiltIn-dialog.d.ts +22 -0
- package/types/main-app-framework/constant/index.d.ts +1 -1
- package/types/main-app-framework/data-track/api.d.ts +2 -0
- package/types/main-app-framework/data-track/index.d.ts +2 -0
- package/types/main-app-framework/i18n/index.d.ts +513 -0
- package/types/main-app-framework/index.d.ts +2 -1
- package/types/main-app-framework/init-config/get-nav-config/api.d.ts +2 -0
- package/types/main-app-framework/init-config/get-nav-config/index.d.ts +4 -3
- package/types/main-app-framework/init-config/get-project-config/api.d.ts +3 -2
- package/types/main-app-framework/init-config/get-system-config/api.d.ts +2 -0
- package/types/main-app-framework/init-config/get-system-config/index.d.ts +4 -4
- package/types/main-app-framework/init-config/get-tenant-config/api.d.ts +1 -1
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +3 -3
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +2 -2
- package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +4 -4
- package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +3 -3
- package/types/main-app-framework/init-platform/index.d.ts +1 -1
- package/types/main-app-framework/utils/src/get-portal-url/crypto.d.ts +14 -0
- package/types/main-app-framework/utils/src/get-portal-url/encrypt.d.ts +42 -0
- package/types/main-app-framework/utils/src/get-portal-url/generate-url.d.ts +4 -0
- package/types/main-app-framework/utils/src/get-portal-url/handle-portal-params.d.ts +2 -0
- package/types/main-app-framework/utils/src/get-portal-url/index.d.ts +2 -0
- package/types/main-app-framework/utils/src/get-portal-url/type.d.ts +16 -0
- package/types/main-app-framework/utils/src/set-common-info.d.ts +4 -2
- package/types/main-app-framework/utils/src/tools.d.ts +5 -1
- package/types/micro-frontend/store.d.ts +5 -5
- package/types/theme/index.d.ts +1 -1
- package/index-BVFBG18b.js +0 -70
- package/index-BVFBG18b.js.gz +0 -0
- package/index-DjvYNTdd.js +0 -7952
- package/index-DjvYNTdd.js.gz +0 -0
- package/index-KF0qlXuZ.js +0 -68
- package/index-KF0qlXuZ.js.gz +0 -0
- package/packages/main-app-framework/index-B-mymH8S.js +0 -70
- package/packages/main-app-framework/index-B-mymH8S.js.gz +0 -0
- package/packages/main-app-framework/index-C0DqSXpB.js +0 -5915
- package/packages/main-app-framework/index-C0DqSXpB.js.gz +0 -0
- package/packages/main-app-framework/index-C7g0JYXU.js +0 -68
- package/packages/main-app-framework/index-C7g0JYXU.js.gz +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare enum InnerParamType {
|
|
2
|
+
USER_ACCOUNT = "USER_ACCOUNT",
|
|
3
|
+
USER_PHONE = "USER_PHONE",
|
|
4
|
+
USER_TOKEN = "USER_TOKEN",
|
|
5
|
+
CURRENT_PROJECT = "CURRENT_PROJECT",
|
|
6
|
+
USER_NAME = "USER_NAME",
|
|
7
|
+
USER_NICKNAME = "USER_NICKNAME"
|
|
8
|
+
}
|
|
9
|
+
export declare enum HTMLQueryParamType {
|
|
10
|
+
TEXT = "TEXT",
|
|
11
|
+
JSON = "JSON"
|
|
12
|
+
}
|
|
13
|
+
export type EncryptCallBackValue = {
|
|
14
|
+
value: null | string;
|
|
15
|
+
error: string | null;
|
|
16
|
+
};
|
|
@@ -5,13 +5,15 @@ export declare const setTenantInfo: (data?: any) => void;
|
|
|
5
5
|
/** 清除租户信息 */
|
|
6
6
|
export declare const clearTenantInfo: () => void;
|
|
7
7
|
/** 存储首页信息 */
|
|
8
|
-
export declare const setHomeInfo: (data?:
|
|
8
|
+
export declare const setHomeInfo: (data?: any) => void;
|
|
9
9
|
/** 存储favIcon */
|
|
10
|
-
export declare const setFavIcon: (data
|
|
10
|
+
export declare const setFavIcon: (data?: string) => void;
|
|
11
11
|
/** 清除首页信息 */
|
|
12
12
|
export declare const clearHomeInfo: () => void;
|
|
13
13
|
/** 存储项目信息 */
|
|
14
14
|
export declare const setProjectInfo: (data: any) => void;
|
|
15
|
+
/** 存储项目详细信息 */
|
|
16
|
+
export declare const setProjectMessage: (data?: any) => void;
|
|
15
17
|
/** 清除项目数据 */
|
|
16
18
|
export declare const clearProjectInfo: () => void;
|
|
17
19
|
/** 存储标签页信息,如果传入对象则进行该项替换 */
|
|
@@ -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>;
|
package/types/theme/index.d.ts
CHANGED
|
@@ -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-BVFBG18b.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-DjvYNTdd.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
|
-
};
|
package/index-BVFBG18b.js.gz
DELETED
|
Binary file
|