@das-fed/web 6.4.0-hot.6 → 6.4.0-hot.61
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-BfwALCed.js +88 -0
- package/index-BfwALCed.js.gz +0 -0
- package/index-C8ZCkxTL.js +10 -0
- package/index-CxCebyO1.js +18068 -0
- package/index-CxCebyO1.js.gz +0 -0
- package/index.js +24 -21
- package/package.json +8 -6
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/i18n/index.js +172 -31
- package/packages/i18n/index.js.gz +0 -0
- package/packages/layout/index.js +495 -465
- 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-37UoNHkf.js +88 -0
- package/packages/main-app-framework/index-37UoNHkf.js.gz +0 -0
- package/packages/main-app-framework/index-DkanyGyv.js +16576 -0
- package/packages/main-app-framework/index-DkanyGyv.js.gz +0 -0
- package/packages/main-app-framework/index-wKB2TvCR.js +10 -0
- 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 +289 -275
- package/packages/micro-frontend/index.js.gz +0 -0
- package/packages/micro-frontend/style.css +1 -1
- package/packages/style/style.css +1 -1
- package/packages/style/style.css.gz +0 -0
- package/packages/theme/index.js.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 +583 -0
- package/types/i18n/index.d.ts +7 -5
- package/types/layout/index.d.ts +1 -1
- package/types/layout/store/index.d.ts +7 -2
- package/types/layout/store/menu.d.ts +2 -0
- package/types/layout/store/nav.d.ts +2 -1
- 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/message-notify/index.d.ts +1 -0
- package/types/main-app-framework/business/remote-control/apis.d.ts +2 -0
- package/types/main-app-framework/business/remote-control/utils.d.ts +7 -0
- 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 +4 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/index.d.ts +3 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/api.d.ts +26 -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 +558 -0
- package/types/main-app-framework/index.d.ts +3 -2
- package/types/main-app-framework/init-config/get-manu-config/index.d.ts +1 -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 +6 -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 +4 -0
- package/types/main-app-framework/init-config/get-system-config/index.d.ts +6 -4
- package/types/main-app-framework/init-config/get-tenant-config/api.d.ts +3 -1
- package/types/main-app-framework/init-config/get-tenant-config/index.d.ts +2 -0
- package/types/main-app-framework/init-layout/hooks/nav-slots/index.d.ts +1 -0
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-ai-helper.d.ts +5 -0
- 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-entry-app.d.ts +1 -1
- package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +4 -4
- package/types/main-app-framework/init-layout/hooks/use-route-watcher.d.ts +1 -3
- 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 +6 -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-C-ieIBXO.js +0 -10
- package/index-C8k4wrGJ.js +0 -68
- package/index-C8k4wrGJ.js.gz +0 -0
- package/index-CicbdbyR.js +0 -71
- package/index-CicbdbyR.js.gz +0 -0
- package/index-CwfFnT6z.js +0 -7083
- package/index-CwfFnT6z.js.gz +0 -0
- package/packages/main-app-framework/index-Bcz8SW2I.js +0 -10
- package/packages/main-app-framework/index-CfM1liO6.js +0 -68
- package/packages/main-app-framework/index-CfM1liO6.js.gz +0 -0
- package/packages/main-app-framework/index-DRQHVvCk.js +0 -5774
- package/packages/main-app-framework/index-DRQHVvCk.js.gz +0 -0
- package/packages/main-app-framework/index-E1pACiHI.js +0 -71
- package/packages/main-app-framework/index-E1pACiHI.js.gz +0 -0
package/esm-map.json
CHANGED
|
@@ -24,5 +24,8 @@
|
|
|
24
24
|
"setThemeRule": "/packages/theme/index",
|
|
25
25
|
"getVar": "/packages/theme/index",
|
|
26
26
|
"getVarValue": "/packages/theme/index",
|
|
27
|
-
"mainAppFramework": "/packages/main-app-framework/index"
|
|
27
|
+
"mainAppFramework": "/packages/main-app-framework/index",
|
|
28
|
+
"layoutData": "/packages/layout/index",
|
|
29
|
+
"setLangRule": "/packages/i18n/index",
|
|
30
|
+
"customLangeData": "/packages/i18n/index"
|
|
28
31
|
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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-CxCebyO1.js";
|
|
10
|
+
const O = "v1", V = L(`/api/justauth/client/${O}`), F = V.get("/visitor/kingdee/auth/user/auth_code"), oo = /* @__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 s = [];
|
|
25
|
+
for (let o = 0; o < t.length; o += r)
|
|
26
|
+
s.push(t.slice(o, o + r));
|
|
27
|
+
return s;
|
|
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 o = d(t);
|
|
35
|
+
if (K.innerSet = r, o.routeUrl) {
|
|
36
|
+
if (t.code === "Ioc") {
|
|
37
|
+
window.open(o.routeUrl, "_blank");
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
if (t.code === "wojiacloud") {
|
|
41
|
+
const e = sessionStorage.getItem("kingdee_token") || "";
|
|
42
|
+
if (e) {
|
|
43
|
+
const [n, a] = await F().run({ accessToken: e });
|
|
44
|
+
if (a) {
|
|
45
|
+
const i = (a == null ? void 0 : a.auth_code) ?? "";
|
|
46
|
+
o.routeUrl = o.routeUrl.includes("?") ? `${o.routeUrl}&code=${i}` : `${o.routeUrl}?code=${i}`;
|
|
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) ?? "", i = { ...(n == null ? void 0 : n.query) ?? {} };
|
|
55
|
+
m({ microApp: o, menuCode: a, route: { query: i } });
|
|
56
|
+
}
|
|
57
|
+
if (l === 2 && o.routeUrl) {
|
|
58
|
+
let e = "";
|
|
59
|
+
if (f === 1)
|
|
60
|
+
e = o != null && o.applicationPath ? location.origin + "/" + o.applicationPath + o.routeUrl : location.origin + o.routeUrl, e = E(e);
|
|
61
|
+
else if (f === 2) {
|
|
62
|
+
const n = await M(o.routeUrl, (o == null ? void 0 : o.param) ?? []);
|
|
63
|
+
e = N(n);
|
|
64
|
+
}
|
|
65
|
+
window.open(e, "_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
|
+
oo as default
|
|
88
|
+
};
|
|
Binary file
|