@das-fed/web 6.3.0-beta.9 → 6.4.0-beta.2
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 +11 -10
- package/index-CTiS2AQx.js +68 -0
- package/index-CTiS2AQx.js.gz +0 -0
- package/index-DZPzbqdK.js +10 -0
- package/index-DjsZCo03.js +70 -0
- package/index-DjsZCo03.js.gz +0 -0
- package/index-LVjuqzoG.js +11086 -0
- package/index-LVjuqzoG.js.gz +0 -0
- package/index.js +27 -2202
- package/package.json +10 -6
- package/packages/create-das-web-app/index.js +307 -289
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/i18n/index.js +29 -30
- package/packages/i18n/index.js.gz +0 -0
- package/packages/layout/index.js +302 -290
- package/packages/layout/index.js.gz +0 -0
- package/packages/layout/style.css +1 -1
- package/packages/layout/style.css.gz +0 -0
- package/packages/main-app-framework/index-2WWk8ggi.js +9022 -0
- package/packages/main-app-framework/index-2WWk8ggi.js.gz +0 -0
- package/packages/main-app-framework/index-BqkWKMMe.js +70 -0
- package/packages/main-app-framework/index-BqkWKMMe.js.gz +0 -0
- package/packages/main-app-framework/index-CRT8yHn-.js +10 -0
- package/packages/main-app-framework/index-Twj2RXRy.js +68 -0
- package/packages/main-app-framework/index-Twj2RXRy.js.gz +0 -0
- package/packages/main-app-framework/index.js +5 -0
- package/packages/main-app-framework/style.css +1 -0
- package/packages/main-app-framework/style.css.gz +0 -0
- package/packages/micro-frontend/index.js +174 -170
- package/packages/micro-frontend/index.js.gz +0 -0
- package/packages/style/index.js +5 -2
- package/packages/theme/index.js +38 -39
- package/packages/theme/index.js.gz +0 -0
- package/style.css +1 -1
- package/style.css.gz +0 -0
- package/types/create-das-web-app/index.d.ts +1 -1
- package/types/create-das-web-app/router/index.d.ts +2 -1
- package/types/i18n/index.d.ts +2 -2
- package/types/index.d.ts +1 -0
- package/types/layout/store/index.d.ts +1 -1
- package/types/main-app-framework/business/alarm/api.d.ts +34 -0
- package/types/main-app-framework/business/alarm/components/hooks/use-handle-alarm.d.ts +7 -0
- package/types/main-app-framework/business/alarm/use-alarm.d.ts +12 -0
- package/types/main-app-framework/business/index.d.ts +4 -0
- package/types/main-app-framework/business/message-notify/index.d.ts +1 -0
- package/types/main-app-framework/business/remote-control/apis.d.ts +6 -0
- package/types/main-app-framework/business/remote-control/createServiceConnection.d.ts +3 -0
- package/types/main-app-framework/business/remote-control/index.d.ts +1 -0
- package/types/main-app-framework/business/video-link/api.d.ts +28 -0
- package/types/main-app-framework/business/video-link/index.d.ts +6 -0
- package/types/main-app-framework/business/video-link/open.d.ts +4 -0
- package/types/main-app-framework/business/video-link/video-dialog/hooks/PlayerProvider.d.ts +4 -0
- package/types/main-app-framework/business/video-link/video-dialog/hooks/index.d.ts +6 -0
- package/types/main-app-framework/components/entry-page-tip/index.d.ts +3 -0
- package/types/main-app-framework/components/entry-page-tip/src/index.d.ts +1 -0
- package/types/main-app-framework/components/entry-page-tip/src/open.d.ts +5 -0
- package/types/main-app-framework/components/entry-page-tip/theme/index.d.ts +6 -0
- package/types/main-app-framework/components/index.d.ts +3 -0
- package/types/main-app-framework/components/person-set-dialog/index.d.ts +4 -0
- package/types/main-app-framework/components/person-set-dialog/src/api.d.ts +2 -0
- package/types/main-app-framework/components/watermark/index.d.ts +3 -0
- package/types/main-app-framework/components/watermark/src/api.d.ts +1 -0
- package/types/main-app-framework/constant/index.d.ts +6 -0
- package/types/main-app-framework/index.d.ts +28 -0
- package/types/main-app-framework/init-config/get-manu-config/api.d.ts +4 -0
- package/types/main-app-framework/init-config/get-manu-config/getInstanceInfo.d.ts +1 -0
- package/types/main-app-framework/init-config/get-manu-config/index.d.ts +47 -0
- 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 -0
- package/types/main-app-framework/init-config/get-project-config/api.d.ts +4 -0
- package/types/main-app-framework/init-config/get-project-config/index.d.ts +1 -0
- package/types/main-app-framework/init-config/get-system-config/api.d.ts +8 -0
- package/types/main-app-framework/init-config/get-system-config/index.d.ts +11 -0
- package/types/main-app-framework/init-config/get-tenant-config/api.d.ts +6 -0
- package/types/main-app-framework/init-config/get-tenant-config/index.d.ts +6 -0
- package/types/main-app-framework/init-config/index.d.ts +5 -0
- package/types/main-app-framework/init-layout/apis/index.d.ts +2 -0
- package/types/main-app-framework/init-layout/hooks/nav-slots/index.d.ts +4 -0
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +8 -0
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-project.d.ts +1 -0
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-search.d.ts +4 -0
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +4 -0
- package/types/main-app-framework/init-layout/hooks/use-entry-app.d.ts +11 -0
- package/types/main-app-framework/init-layout/hooks/use-entry-menu.d.ts +7 -0
- package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +8 -0
- package/types/main-app-framework/init-layout/hooks/use-menu.d.ts +1 -0
- package/types/main-app-framework/init-layout/hooks/use-nav.d.ts +1 -0
- package/types/main-app-framework/init-layout/hooks/use-route-reload-unload.d.ts +4 -0
- package/types/main-app-framework/init-layout/hooks/use-route-watcher.d.ts +3 -0
- package/types/main-app-framework/init-layout/hooks/use-system-confirm.d.ts +1 -0
- package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +5 -0
- package/types/main-app-framework/init-layout/index.d.ts +11 -0
- package/types/main-app-framework/init-layout/store/index.d.ts +4 -0
- package/types/main-app-framework/init-platform/api.d.ts +2 -0
- package/types/main-app-framework/init-platform/index.d.ts +4 -0
- package/types/main-app-framework/micro-apps/index.d.ts +3 -0
- package/types/main-app-framework/micro-apps/use-device-panel-watcher.d.ts +1 -0
- package/types/main-app-framework/micro-apps/use-iot-watcher.d.ts +1 -0
- package/types/main-app-framework/micro-apps/use-user-info-watcher.d.ts +3 -0
- package/types/main-app-framework/pages/app/api.d.ts +2 -0
- package/types/main-app-framework/utils/index.d.ts +3 -0
- package/types/main-app-framework/utils/src/layout-confirm.d.ts +12 -0
- package/types/main-app-framework/utils/src/set-common-info.d.ts +62 -0
- package/types/main-app-framework/utils/src/tools.d.ts +1 -0
- package/types/micro-frontend/store.d.ts +5 -5
- package/types/theme/index.d.ts +1 -1
- package/index.js.gz +0 -0
- package/types/create-das-web-app/get-global-config.d.ts +0 -2
package/esm-map.json
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
+
"createDasWebApp": "/packages/create-das-web-app/index",
|
|
3
|
+
"DasWebLayout": "/packages/layout/index",
|
|
4
|
+
"DasWebNav": "/packages/layout/index",
|
|
5
|
+
"DasWebMenu": "/packages/layout/index",
|
|
6
|
+
"DasWebTabs": "/packages/layout/index",
|
|
7
|
+
"layout": "/packages/layout/index",
|
|
8
|
+
"initMainApp": "/packages/micro-frontend/index",
|
|
9
|
+
"initMicroApp": "/packages/micro-frontend/index",
|
|
10
|
+
"microFrontend": "/packages/micro-frontend/index",
|
|
11
|
+
"DasMainAppLayout": "/packages/micro-frontend/index",
|
|
2
12
|
"initI18n": "/packages/i18n/index",
|
|
3
13
|
"setI18nRule": "/packages/i18n/index",
|
|
4
14
|
"getI18nRule": "/packages/i18n/index",
|
|
@@ -14,14 +24,5 @@
|
|
|
14
24
|
"setThemeRule": "/packages/theme/index",
|
|
15
25
|
"getVar": "/packages/theme/index",
|
|
16
26
|
"getVarValue": "/packages/theme/index",
|
|
17
|
-
"
|
|
18
|
-
"DasWebNav": "/packages/layout/index",
|
|
19
|
-
"DasWebMenu": "/packages/layout/index",
|
|
20
|
-
"DasWebTabs": "/packages/layout/index",
|
|
21
|
-
"layout": "/packages/layout/index",
|
|
22
|
-
"initMainApp": "/packages/micro-frontend/index",
|
|
23
|
-
"initMicroApp": "/packages/micro-frontend/index",
|
|
24
|
-
"microFrontend": "/packages/micro-frontend/index",
|
|
25
|
-
"DasMainAppLayout": "/packages/micro-frontend/index",
|
|
26
|
-
"createDasWebApp": "/packages/create-das-web-app/index"
|
|
27
|
+
"mainAppFramework": "/packages/main-app-framework/index"
|
|
27
28
|
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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-LVjuqzoG.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
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { defineComponent as w, computed as _, openBlock as y, createBlock as k, unref as p, withCtx as U, createVNode as C } from "vue";
|
|
2
|
+
import { DasAppContainer as v } from "@das-fed/ui/packages/business-components/app-container/index";
|
|
3
|
+
import { DasSpin as A } 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/api-services";
|
|
6
|
+
import { u as S, a as c, l, b as x, c as $, d as D } from "./index-LVjuqzoG.js";
|
|
7
|
+
const E = "v1", L = j(`/api/justauth/client/${E}`), T = L.get("/visitor/kingdee/auth/user/auth_code"), V = /* @__PURE__ */ w({
|
|
8
|
+
__name: "index",
|
|
9
|
+
setup(b) {
|
|
10
|
+
const { beforeEntryApp: f, entryApp: d } = S(), g = _(() => {
|
|
11
|
+
if (!c.value || !c.value.length) return [];
|
|
12
|
+
const o = l.cloneDeep(c.value);
|
|
13
|
+
return 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.cloneDeep(o);
|
|
26
|
+
if ($.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, s] = await T().run({ accessToken: t });
|
|
35
|
+
if (s) {
|
|
36
|
+
const i = (s == null ? void 0 : s.auth_code) ?? "";
|
|
37
|
+
e.routeUrl = e.routeUrl.includes("?") ? `${e.routeUrl}&code=${i}` : `${e.routeUrl}?code=${i}`;
|
|
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], s = (a == null ? void 0 : a.code) ?? "", i = { ...(a == null ? void 0 : a.query) ?? {} };
|
|
46
|
+
d({ microApp: e, menuCode: s, route: { query: i } });
|
|
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 = D(e.routeUrl)), window.open(t, "_blank");
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
return (o, n) => (y(), k(p(A), {
|
|
54
|
+
full: "",
|
|
55
|
+
spinning: p(x)
|
|
56
|
+
}, {
|
|
57
|
+
default: U(() => [
|
|
58
|
+
C(p(v), {
|
|
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
|