@das-fed/upf-web 6.4.0-hot.6 → 6.4.0-hot.8

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 (42) hide show
  1. package/es5.js +17640 -788
  2. package/esm-map.json +4 -1
  3. package/index-BfS5ZwdE.js +12613 -0
  4. package/index-BfS5ZwdE.js.gz +0 -0
  5. package/{packages/main-app-framework/index-C8tjINrY.js → index-C8iGOlyv.js} +1 -1
  6. package/index-DfI-VZvq.js +93 -0
  7. package/index-DfI-VZvq.js.gz +0 -0
  8. package/index.js +18 -16
  9. package/package.json +7 -6
  10. package/packages/create-das-web-app/es5.js +138 -254
  11. package/packages/create-das-web-app/index.js +67 -122
  12. package/packages/create-das-web-app/index.js.gz +0 -0
  13. package/packages/i18n/es5.js +206 -114
  14. package/packages/i18n/index.js +99 -60
  15. package/packages/i18n/index.js.gz +0 -0
  16. package/packages/main-app-framework/es5.js +14782 -785
  17. package/{index-CihmHNMg.js → packages/main-app-framework/index-4P5L5Fln.js} +1 -1
  18. package/packages/main-app-framework/index-BZpwzi0c.js +93 -0
  19. package/packages/main-app-framework/index-BZpwzi0c.js.gz +0 -0
  20. package/packages/main-app-framework/index-BfSkRApB.js +11147 -0
  21. package/packages/main-app-framework/index-BfSkRApB.js.gz +0 -0
  22. package/packages/main-app-framework/index.js +1 -1
  23. package/packages/main-app-framework/style.css +1 -1
  24. package/packages/main-app-framework/style.css.gz +0 -0
  25. package/style.css +1 -1
  26. package/style.css.gz +0 -0
  27. package/types/i18n/{microI18n.d.ts → getMicroI18nData.d.ts} +1 -2
  28. package/types/i18n/index.d.ts +3 -1
  29. package/types/main-app-framework/init-config/index.d.ts +0 -1
  30. package/types/main-app-framework/init-mframe/hooks/business/use-iot-hooks.d.ts +3 -0
  31. package/types/main-app-framework/init-mframe/hooks/use-layout.d.ts +1 -0
  32. package/types/main-app-framework/init-mframe/index.d.ts +1 -0
  33. package/index-BhEtGWg9.js +0 -87
  34. package/index-BhEtGWg9.js.gz +0 -0
  35. package/index-ClQkHyu0.js +0 -13991
  36. package/index-ClQkHyu0.js.gz +0 -0
  37. package/packages/main-app-framework/index-BotXvTrW.js +0 -87
  38. package/packages/main-app-framework/index-BotXvTrW.js.gz +0 -0
  39. package/packages/main-app-framework/index-qZN6TvxI.js +0 -12524
  40. package/packages/main-app-framework/index-qZN6TvxI.js.gz +0 -0
  41. package/types/main-app-framework/init-config/get-project-config/api.d.ts +0 -5
  42. package/types/main-app-framework/init-config/get-project-config/index.d.ts +0 -1
@@ -1,3 +1,4 @@
1
+ import { microI18nStore } from './getMicroI18nData';
1
2
  import { langType } from './type';
2
3
 
3
4
  declare const languageKey = "language";
@@ -25,4 +26,5 @@ declare const setLang: (lang: langType) => void;
25
26
  declare const getLang: () => import('vue').Ref<any, any>;
26
27
  export declare function getDateFormat(type: 'month' | 'date' | 'datetime' | 'time', lang: string): string;
27
28
  declare const loadLocale: (lang: string) => unknown;
28
- export { languageKey, initI18n, setI18nRule, getI18nRule, i18n, t, setLang, getLang, currentLang, setLangRule, customLangeData, loadLocale, };
29
+ declare const registerMicroI18nData: (i18nCodes?: string[], currentLang?: langType) => Promise<void>;
30
+ export { langType, languageKey, initI18n, setI18nRule, getI18nRule, i18n, t, setLang, getLang, currentLang, setLangRule, customLangeData, loadLocale, microI18nStore, registerMicroI18nData, };
@@ -1,5 +1,4 @@
1
1
  export * from './get-tenant-config';
2
2
  export * from './get-manu-config';
3
3
  export * from './get-nav-config';
4
- export * from './get-project-config';
5
4
  export * from './get-system-config';
@@ -0,0 +1,3 @@
1
+ export declare const useIotHooks: (_options: Record<"microAppBus", any>) => {
2
+ routerBeforEnter: (options: Record<"toPath" | "params", any>) => any;
3
+ };
@@ -0,0 +1 @@
1
+ export declare const useMframeLayout: () => void;
@@ -0,0 +1 @@
1
+ export * from './hooks/use-layout';
package/index-BhEtGWg9.js DELETED
@@ -1,87 +0,0 @@
1
- import { defineComponent as k, computed as p, withDirectives as v, openBlock as U, createBlock as C, unref as c, withCtx as A, createVNode as S, vShow as I } from "vue";
2
- import { layoutData as j } from "@das-fed/upf-web/packages/layout/index";
3
- import { t as D } from "@das-fed/upf-web/packages/i18n/index";
4
- import { DasAppContainer as $ } from "@das-fed/upf-ui/packages/business-components/app-container/index";
5
- import { DasSpin as x } from "@das-fed/upf-ui/packages/components/spin/index";
6
- import { getTabInfo as T } from "@das-fed/upf-utils/common-info";
7
- import { setShowLayout as b } from "@das-fed/upf-utils/common-tools";
8
- import { createService as E } from "@das-fed/upf-utils/create-api-service";
9
- import { u as L, p as P, a as u, c as f, b as q, l as B, g as K, d as M } from "./index-ClQkHyu0.js";
10
- const N = "v1", O = E(`/api/justauth/client/${N}`), V = O.get("/visitor/kingdee/auth/user/auth_code"), z = /* @__PURE__ */ k({
11
- __name: "index",
12
- setup(F) {
13
- const { beforeEntryApp: d, entryApp: g } = L(), h = p(() => P.value.skinStyle), m = p(() => !!j.menu.items.length), w = p(() => {
14
- if (!u.value || !u.value.length) return [];
15
- const t = f(u.value);
16
- return Array.isArray(t) ? t.length ? (t.forEach((r) => {
17
- r.apps = y(
18
- r.apps.filter((o) => (o == null ? void 0 : o.code) && o.code !== "dasaiassistant"),
19
- 4
20
- );
21
- }), t) : [] : [];
22
- }), y = (t, r) => {
23
- const o = [];
24
- for (let a = 0; a < t.length; a += r)
25
- o.push(t.slice(a, a + r));
26
- return o;
27
- }, _ = async (t) => {
28
- if (!t) return;
29
- if (!sessionStorage.getItem("projectInfo")) {
30
- window.confirm(D("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
31
- return;
32
- }
33
- const o = f(t);
34
- if (B.innerSet = !0, o.routeUrl) {
35
- if (t.code === "Ioc") {
36
- window.open(o.routeUrl, "_blank");
37
- return;
38
- }
39
- if (t.code === "wojiacloud") {
40
- const e = sessionStorage.getItem("kingdee_token") || "";
41
- if (e) {
42
- const [n, s] = await V().run({ accessToken: e });
43
- if (s) {
44
- const i = (s == null ? void 0 : s.auth_code) ?? "";
45
- o.routeUrl = o.routeUrl.includes("?") ? `${o.routeUrl}&code=${i}` : `${o.routeUrl}?code=${i}`;
46
- }
47
- }
48
- }
49
- }
50
- const a = (t == null ? void 0 : t.openType) ?? 1, l = (t == null ? void 0 : t.type) ?? 1;
51
- if (a === 1) {
52
- if (!await d(t)) return;
53
- const n = T().preTab[t.code], s = (n == null ? void 0 : n.code) ?? "", i = { ...(n == null ? void 0 : n.query) ?? {} };
54
- g({ microApp: o, menuCode: s, route: { query: i } });
55
- }
56
- if (a === 2 && o.routeUrl) {
57
- let e = "";
58
- if (l === 1)
59
- e = o != null && o.applicationPath ? location.origin + "/" + o.applicationPath + o.routeUrl : location.origin + o.routeUrl, e = b(e);
60
- else if (l === 2) {
61
- const n = await K(o.routeUrl, (o == null ? void 0 : o.param) ?? []);
62
- e = M(n);
63
- }
64
- window.open(e, "_blank");
65
- }
66
- };
67
- return (t, r) => v((U(), C(c(x), {
68
- full: "",
69
- spinning: c(q)
70
- }, {
71
- default: A(() => [
72
- S(c($), {
73
- theme: h.value,
74
- appCategorys: w.value,
75
- onOpenApp: _
76
- }, null, 8, ["theme", "appCategorys"])
77
- ]),
78
- _: 1
79
- /* STABLE */
80
- }, 8, ["spinning"])), [
81
- [I, !m.value]
82
- ]);
83
- }
84
- });
85
- export {
86
- z as default
87
- };
Binary file