@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
Binary file
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as r } from "vue";
2
- import { _ as c } from "./index-B3BnT3-C.js";
2
+ import { _ as c } from "./index-8eYS921_.js";
3
3
  const o = {};
4
4
  function t(n, _) {
5
5
  return r(), e("div");
@@ -0,0 +1,100 @@
1
+ import { defineComponent as C, computed as p, createElementBlock as S, openBlock as A, Fragment as I, createElementVNode as j, withDirectives as D, createVNode as d, unref as c, withCtx as E, vShow as P } from "vue";
2
+ import { layoutData as $ } from "@das-fed/web/packages/layout/index";
3
+ import { t as b } 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 L } from "@das-fed/utils/common-info";
7
+ import { setShowLayout as q } from "@das-fed/utils/common-tools";
8
+ import { createService as B } from "@das-fed/utils/create-api-service";
9
+ import { u as N, p as R, a as l, c as m, b as V, l as F, g as K, d as M } from "./index-8eYS921_.js";
10
+ const O = "v1", G = B(`/api/justauth/client/${O}`), H = G.get("/visitor/kingdee/auth/user/auth_code"), ne = /* @__PURE__ */ C({
11
+ __name: "index",
12
+ setup(J) {
13
+ const { beforeEntryApp: g, entryApp: h } = N(), w = () => {
14
+ const e = sessionStorage.getItem("iwmStationReservePath") || "/";
15
+ window.__isAutoCloseApp = !1, location.href = e;
16
+ }, _ = p(() => R.value.skinStyle), y = p(() => !!$.menu.items.length), k = p(() => {
17
+ if (!l.value || !l.value.length) return [];
18
+ const e = m(l.value);
19
+ return Array.isArray(e) ? e.length ? (e.forEach((r) => {
20
+ r.apps = v(
21
+ r.apps,
22
+ // element.apps.filter((item: any) => item?.code && item.code !== 'dasaiassistant'),
23
+ 4
24
+ );
25
+ }), e) : [] : [];
26
+ }), v = (e, r) => {
27
+ const i = [];
28
+ for (let t = 0; t < e.length; t += r)
29
+ i.push(e.slice(t, t + r));
30
+ return i;
31
+ }, U = async (e, r = !0) => {
32
+ if (!e) return;
33
+ if (!sessionStorage.getItem("projectInfo")) {
34
+ window.confirm(b("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
35
+ return;
36
+ }
37
+ const t = m(e);
38
+ if (F.innerSet = r, t.routeUrl) {
39
+ if (e.code === "Ioc") {
40
+ window.open(t.routeUrl, "_blank");
41
+ return;
42
+ }
43
+ if (e.code === "wojiacloud") {
44
+ const o = sessionStorage.getItem("kingdee_token") || "";
45
+ if (o) {
46
+ const [n, a] = await H().run({ accessToken: o });
47
+ if (a) {
48
+ const s = (a == null ? void 0 : a.auth_code) ?? "";
49
+ t.routeUrl = t.routeUrl.includes("?") ? `${t.routeUrl}&code=${s}` : `${t.routeUrl}?code=${s}`;
50
+ }
51
+ }
52
+ }
53
+ }
54
+ const u = (e == null ? void 0 : e.openType) ?? 1, f = (e == null ? void 0 : e.type) ?? 1;
55
+ if (u === 1) {
56
+ if (!await g(e)) return;
57
+ const n = L().preTab[e.code], a = (n == null ? void 0 : n.code) ?? "", s = { ...(n == null ? void 0 : n.query) ?? {} };
58
+ h({ microApp: t, menuCode: a, route: { query: s } });
59
+ }
60
+ if (u === 2 && t.routeUrl) {
61
+ let o = "";
62
+ if (f === 1)
63
+ o = t != null && t.applicationPath ? ("/" + t.applicationPath + "/" + t.routeUrl).replace(/\/\//g, "/") : ("/" + t.routeUrl).replace(/\/\//g, "/"), o = q(o);
64
+ else if (f === 2) {
65
+ const n = await K(t.routeUrl, (t == null ? void 0 : t.param) ?? []);
66
+ o = M(n);
67
+ }
68
+ window.open(o, "_blank");
69
+ }
70
+ };
71
+ return (e, r) => (A(), S(
72
+ I,
73
+ null,
74
+ [
75
+ j("button", { onClick: w }, "测试跳转到工位预定"),
76
+ D(d(c(T), {
77
+ full: "",
78
+ spinning: c(V)
79
+ }, {
80
+ default: E(() => [
81
+ d(c(x), {
82
+ theme: _.value,
83
+ appCategorys: k.value,
84
+ onOpenApp: U
85
+ }, null, 8, ["theme", "appCategorys"])
86
+ ]),
87
+ _: 1
88
+ /* STABLE */
89
+ }, 8, ["spinning"]), [
90
+ [P, !y.value]
91
+ ])
92
+ ],
93
+ 64
94
+ /* STABLE_FRAGMENT */
95
+ ));
96
+ }
97
+ });
98
+ export {
99
+ ne as default
100
+ };
Binary file
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { J as e, A as t, C as n, B as i, D as r, e as u, m as o, w as m, o as p, f as g, k as D, v as l, y as L, z as b, h as c, i as h, G as A, H as T, q as y, E as R, F as W, K as I, I as M, s as F, j as V, n as f, r as k, x as v, t as w } from "./index-BvMPIPcw.js";
1
+ import { J as e, A as t, C as n, B as i, D as r, e as u, m as o, w as m, o as p, f as g, k as D, v as l, y as L, z as b, h as c, i as h, G as A, H as T, q as y, E as R, F as W, K as I, I as M, s as F, j as V, n as f, r as k, x as v, t as w } from "./index-8eYS921_.js";
2
2
  export {
3
3
  e as DasMainAppLayout,
4
4
  t as DasWebLayout,
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@das-fed/web",
3
- "version": "7.0.7-hot.6",
3
+ "version": "7.0.7-hot.60",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "dependencies": {
7
- "@das-fed/ui": "7.0.7-hot.6",
8
- "@das-fed/utils": "7.0.7-hot.6",
9
- "@das-fed/web": "7.0.7-hot.6",
10
- "@das-fed/web-components": "7.0.7-hot.6",
7
+ "@das-fed/ui": "7.0.7-hot.60",
8
+ "@das-fed/utils": "7.0.7-hot.60",
9
+ "@das-fed/web": "7.0.7-hot.60",
10
+ "@das-fed/web-components": "7.0.7-hot.60",
11
11
  "@microsoft/signalr": "^8.0.7",
12
12
  "@vueuse/core": "^9.13.0",
13
13
  "animate.css": "^4.1.1",
@@ -19,10 +19,11 @@
19
19
  "vue-router": "^4.4.0"
20
20
  },
21
21
  "devDependencies": {
22
- "@das-fed/cli": "7.0.7-hot.6",
22
+ "@das-fed/cli": "7.0.7-hot.60",
23
23
  "@types/crypto-js": "^4.2.2",
24
24
  "@types/lodash": "^4.14.194",
25
25
  "@types/lodash-es": "^4.17.12",
26
+ "@types/js-cookie": "^3.0.6",
26
27
  "@vitejs/plugin-vue": "^5.1.0",
27
28
  "consola": "^3.2.3",
28
29
  "execa": "^9.3.0",
@@ -35,14 +36,17 @@
35
36
  "typescript": "^5.5.3",
36
37
  "vite": "^5.3.4",
37
38
  "vite-plugin-dts": "^3.9.1",
38
- "vue-tsc": "^1.8.27"
39
+ "vue-tsc": "^1.8.27",
40
+ "js-cookie": "^3.0.5"
39
41
  },
40
42
  "peerDependencies": {
41
43
  "vue": ">=3.4.21",
42
44
  "vue-router": ">=4.2.5"
43
45
  },
44
46
  "sideEffects": [
45
- "@das-fed/utils/*"
47
+ "@das-fed/utils/*",
48
+ "./packages/style/*",
49
+ "./packages/**/*.css"
46
50
  ],
47
51
  "publishConfig": {
48
52
  "access": "public",
@@ -1,62 +1,58 @@
1
- import { ref as v, createApp as w } from "vue";
2
- import { initTheme as x } from "@das-fed/web/packages/theme/index";
3
- import { initI18n as j } from "@das-fed/web/packages/i18n/index";
4
- import { DasWebLayout as W } from "@das-fed/web/packages/layout/index";
5
- import { createPinia as $ } from "pinia";
6
- import O from "pinia-plugin-persistedstate";
7
- import { createRouter as P, createWebHistory as k } from "vue-router";
8
- import { getConfig as y } from "@das-fed/utils/config";
9
- const C = {
10
- install: (e, t) => {
11
- var u;
12
- const c = (u = t == null ? void 0 : t.plugins) == null ? void 0 : u.glob;
13
- c && Object.values(c).sort((a, l) => (a.index ?? 0) - (l.index ?? 0)).filter((a) => a ? !!(a.default && a.default.install || a.install) : !1).forEach((a) => {
14
- a.default && a.default.install && e.use(a.default, t), a.install && e.use(a, t);
1
+ import { ref as x, createApp as O } from "vue";
2
+ import { initTheme as P } from "@das-fed/web/packages/theme/index";
3
+ import { initI18n as W } from "@das-fed/web/packages/i18n/index";
4
+ import { DasWebLayout as $ } from "@das-fed/web/packages/layout/index";
5
+ import { createPinia as j } from "pinia";
6
+ import k from "pinia-plugin-persistedstate";
7
+ import { createRouter as y, createWebHistory as D } from "vue-router";
8
+ const N = {
9
+ install: (e, a) => {
10
+ var l;
11
+ const c = (l = a == null ? void 0 : a.plugins) == null ? void 0 : l.glob;
12
+ c && Object.values(c).sort((t, u) => (t.index ?? 0) - (u.index ?? 0)).filter((t) => t ? !!(t.default && t.default.install || t.install) : !1).forEach((t) => {
13
+ t.default && t.default.install && e.use(t.default, a), t.install && e.use(t, a);
15
14
  });
16
15
  }
17
- }, m = $();
18
- m.use(O);
19
- const D = (e) => {
20
- var b, d, o, g, h;
21
- const t = ((b = e == null ? void 0 : e.router) == null ? void 0 : b.routerBase) ?? "/", c = ((d = e == null ? void 0 : e.router) == null ? void 0 : d.options) || {};
22
- let u = Object.assign(((o = e == null ? void 0 : e.router) == null ? void 0 : o.glob) || {});
23
- const a = Object.values(u).filter((s) => !!s).flat().sort((s, n) => (s.index ?? 0) - (n.index ?? 0)), l = [];
24
- (g = e == null ? void 0 : e.microApps) == null || g.map((s) => {
25
- var A;
26
- const n = Object.values(((A = s.router) == null ? void 0 : A.glob) || {}).filter((r) => !!r).flat().sort((r, R) => (r.index ?? 0) - (R.index ?? 0));
27
- l.push(
28
- ...n.map((r) => ({ ...r, path: `/${s.microAppName}${r.path}` }))
29
- ), l.push(
30
- ...n.filter((r) => !!r.path).filter((r) => r.path !== "").filter((r) => r.path !== "/").filter((r) => !r.path.startsWith(`/${r.microAppName}`)).map((r) => ({
16
+ }, d = j();
17
+ d.use(k);
18
+ const B = (e) => {
19
+ var i, h, b, A, g;
20
+ const a = ((i = e == null ? void 0 : e.router) == null ? void 0 : i.routerBase) ?? "/", c = ((h = e == null ? void 0 : e.router) == null ? void 0 : h.options) || {};
21
+ let l = Object.assign(((b = e == null ? void 0 : e.router) == null ? void 0 : b.glob) || {});
22
+ const t = Object.values(l).filter((f) => !!f).flat().sort((f, m) => (f.index ?? 0) - (m.index ?? 0)), u = [];
23
+ (A = e == null ? void 0 : e.microApps) == null || A.map((f) => {
24
+ var p;
25
+ const m = Object.values(((p = f.router) == null ? void 0 : p.glob) || {}).filter((r) => !!r).flat().sort((r, v) => (r.index ?? 0) - (v.index ?? 0));
26
+ u.push(
27
+ ...m.map((r) => ({ ...r, path: `/${f.microAppName}${r.path}` }))
28
+ ), u.push(
29
+ ...m.filter((r) => !!r.path).filter((r) => r.path !== "").filter((r) => r.path !== "/").filter((r) => !r.path.startsWith(`/${r.microAppName}`)).map((r) => ({
31
30
  path: r.path,
32
- redirect: `/${s.microAppName}${r.path}`,
31
+ redirect: `/${f.microAppName}${r.path}`,
33
32
  meta: { ...r.meta || {}, isMicroAppRouteRedirect: !0 }
34
33
  }))
35
34
  );
36
35
  });
37
- const f = ((h = e == null ? void 0 : e.router) == null ? void 0 : h.routers) || [], p = [
38
- ...i(a, e),
39
- ...i(f, e),
40
- ...i(l, e)
36
+ const s = ((g = e == null ? void 0 : e.router) == null ? void 0 : g.routers) || [], R = [
37
+ ...n(t, e),
38
+ ...n(s, e),
39
+ ...n(u, e)
41
40
  ];
42
- return { router: P({ history: k(t), routes: p, ...c }) };
43
- }, i = (e, t) => e.map((c) => {
44
- const u = c.meta || {};
45
- return u.keepAlive = u.keepAlive ?? (t == null ? void 0 : t.keepAlive) ?? !0, { ...c, meta: u };
46
- }), N = async () => {
47
- const { baseURL: e = "" } = y(), t = await fetch(`${e}/oss/resource/front-end/web/_config/config.json`), { disableSaveToken: c = !1 } = await t.json(), u = { disableSaveToken: c };
48
- window.webConfig = u;
49
- }, _ = (e) => {
41
+ return { router: y({ history: D(a), routes: R, ...c }) };
42
+ }, n = (e, a) => e.map((c) => {
43
+ const l = c.meta || {};
44
+ return l.keepAlive = l.keepAlive ?? (a == null ? void 0 : a.keepAlive) ?? !0, { ...c, meta: l };
45
+ }), w = (e) => {
50
46
  e || (e = {});
51
- const t = v(!0);
52
- Promise.all([N(), x(e), j(e)]).then(() => {
53
- t.value = !1;
47
+ const a = x(!0);
48
+ Promise.all([P(e), W(e)]).then(() => {
49
+ a.value = !1;
54
50
  });
55
- const { container: c, component: u, props: a } = (e == null ? void 0 : e.root) || {}, l = w(u || W, a);
56
- l.use(C, e), l.use(m);
57
- const { router: f } = D(e);
58
- return l.use(f), l.mount(c || "#app"), { app: l, router: f, loading: t, store: m };
51
+ const { container: c, component: l, props: t } = (e == null ? void 0 : e.root) || {}, u = O(l || $, t);
52
+ u.use(N, e), u.use(d);
53
+ const { router: s } = B(e);
54
+ return u.use(s), u.mount(c || "#app"), { app: u, router: s, loading: a, store: d };
59
55
  };
60
56
  export {
61
- _ as createDasWebApp
57
+ w as createDasWebApp
62
58
  };
Binary file