@das-fed/upf-web 6.4.0-dev.124

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 (139) hide show
  1. package/esm-map.json +31 -0
  2. package/index-CjR1TTJr.js +10 -0
  3. package/index-DKGPO2ax.js +13946 -0
  4. package/index-DKGPO2ax.js.gz +0 -0
  5. package/index-Dbi0WqWP.js +87 -0
  6. package/index-Dbi0WqWP.js.gz +0 -0
  7. package/index.js +32 -0
  8. package/package.json +54 -0
  9. package/packages/create-das-web-app/config.js +1 -0
  10. package/packages/create-das-web-app/index.js +58 -0
  11. package/packages/create-das-web-app/index.js.gz +0 -0
  12. package/packages/i18n/config.js +1 -0
  13. package/packages/i18n/index.js +175 -0
  14. package/packages/i18n/index.js.gz +0 -0
  15. package/packages/layout/config.js +1 -0
  16. package/packages/layout/index.js +785 -0
  17. package/packages/layout/index.js.gz +0 -0
  18. package/packages/layout/style.css +7 -0
  19. package/packages/layout/style.css.gz +0 -0
  20. package/packages/main-app-framework/config.js +1 -0
  21. package/packages/main-app-framework/index-Bvyj8RXL.js +12454 -0
  22. package/packages/main-app-framework/index-Bvyj8RXL.js.gz +0 -0
  23. package/packages/main-app-framework/index-CT9S8561.js +87 -0
  24. package/packages/main-app-framework/index-CT9S8561.js.gz +0 -0
  25. package/packages/main-app-framework/index-DOmUEjbK.js +10 -0
  26. package/packages/main-app-framework/index.js +7 -0
  27. package/packages/main-app-framework/style.css +1 -0
  28. package/packages/main-app-framework/style.css.gz +0 -0
  29. package/packages/micro-frontend/config.js +1 -0
  30. package/packages/micro-frontend/index.js +848 -0
  31. package/packages/micro-frontend/index.js.gz +0 -0
  32. package/packages/micro-frontend/style.css +1 -0
  33. package/packages/style/config.js +1 -0
  34. package/packages/style/index.js +5 -0
  35. package/packages/style/style.css +1 -0
  36. package/packages/style/style.css.gz +0 -0
  37. package/packages/theme/config.js +1 -0
  38. package/packages/theme/index.js +75 -0
  39. package/packages/theme/index.js.gz +0 -0
  40. package/style.css +7 -0
  41. package/style.css.gz +0 -0
  42. package/types/create-das-web-app/index.d.ts +9 -0
  43. package/types/create-das-web-app/plugins/index.d.ts +4 -0
  44. package/types/create-das-web-app/router/index.d.ts +5 -0
  45. package/types/create-das-web-app/store/index.d.ts +2 -0
  46. package/types/i18n/global.d.ts +583 -0
  47. package/types/i18n/index.d.ts +23 -0
  48. package/types/index.d.ts +6 -0
  49. package/types/layout/index.d.ts +5 -0
  50. package/types/layout/store/iframe-view.d.ts +12 -0
  51. package/types/layout/store/index.d.ts +75 -0
  52. package/types/layout/store/menu.d.ts +18 -0
  53. package/types/layout/store/nav.d.ts +27 -0
  54. package/types/layout/store/overlay.d.ts +5 -0
  55. package/types/layout/store/tab.d.ts +18 -0
  56. package/types/main-app-framework/business/alarm/api.d.ts +34 -0
  57. package/types/main-app-framework/business/alarm/components/hooks/use-handle-alarm.d.ts +7 -0
  58. package/types/main-app-framework/business/alarm/use-alarm.d.ts +12 -0
  59. package/types/main-app-framework/business/index.d.ts +4 -0
  60. package/types/main-app-framework/business/message-notify/index.d.ts +2 -0
  61. package/types/main-app-framework/business/remote-control/apis.d.ts +8 -0
  62. package/types/main-app-framework/business/remote-control/createServiceConnection.d.ts +3 -0
  63. package/types/main-app-framework/business/remote-control/index.d.ts +1 -0
  64. package/types/main-app-framework/business/remote-control/utils.d.ts +7 -0
  65. package/types/main-app-framework/business/video-link/api.d.ts +30 -0
  66. package/types/main-app-framework/business/video-link/index.d.ts +6 -0
  67. package/types/main-app-framework/business/video-link/open.d.ts +4 -0
  68. package/types/main-app-framework/business/video-link/video-dialog/hooks/PlayerProvider.d.ts +4 -0
  69. package/types/main-app-framework/business/video-link/video-dialog/hooks/index.d.ts +6 -0
  70. package/types/main-app-framework/components/entry-page-tip/index.d.ts +3 -0
  71. package/types/main-app-framework/components/entry-page-tip/src/index.d.ts +1 -0
  72. package/types/main-app-framework/components/entry-page-tip/src/open.d.ts +5 -0
  73. package/types/main-app-framework/components/entry-page-tip/theme/index.d.ts +6 -0
  74. package/types/main-app-framework/components/iframe-page/index.d.ts +3 -0
  75. package/types/main-app-framework/components/index.d.ts +4 -0
  76. package/types/main-app-framework/components/person-set-dialog/index.d.ts +4 -0
  77. package/types/main-app-framework/components/person-set-dialog/src/api.d.ts +6 -0
  78. package/types/main-app-framework/components/person-set-dialog/src/components/index.d.ts +3 -0
  79. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/api.d.ts +20 -0
  80. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-builtIn-dialog.d.ts +19 -0
  81. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-notBuiltIn-dialog.d.ts +22 -0
  82. package/types/main-app-framework/components/watermark/index.d.ts +3 -0
  83. package/types/main-app-framework/components/watermark/src/api.d.ts +1 -0
  84. package/types/main-app-framework/constant/index.d.ts +6 -0
  85. package/types/main-app-framework/data-track/api.d.ts +2 -0
  86. package/types/main-app-framework/data-track/index.d.ts +2 -0
  87. package/types/main-app-framework/i18n/index.d.ts +538 -0
  88. package/types/main-app-framework/index.d.ts +29 -0
  89. package/types/main-app-framework/init-config/get-manu-config/api.d.ts +4 -0
  90. package/types/main-app-framework/init-config/get-manu-config/getInstanceInfo.d.ts +1 -0
  91. package/types/main-app-framework/init-config/get-manu-config/index.d.ts +47 -0
  92. package/types/main-app-framework/init-config/get-nav-config/api.d.ts +4 -0
  93. package/types/main-app-framework/init-config/get-nav-config/index.d.ts +6 -0
  94. package/types/main-app-framework/init-config/get-project-config/api.d.ts +5 -0
  95. package/types/main-app-framework/init-config/get-project-config/index.d.ts +1 -0
  96. package/types/main-app-framework/init-config/get-system-config/api.d.ts +12 -0
  97. package/types/main-app-framework/init-config/get-system-config/index.d.ts +13 -0
  98. package/types/main-app-framework/init-config/get-tenant-config/api.d.ts +8 -0
  99. package/types/main-app-framework/init-config/get-tenant-config/index.d.ts +8 -0
  100. package/types/main-app-framework/init-config/index.d.ts +5 -0
  101. package/types/main-app-framework/init-layout/apis/index.d.ts +2 -0
  102. package/types/main-app-framework/init-layout/hooks/nav-slots/index.d.ts +5 -0
  103. package/types/main-app-framework/init-layout/hooks/nav-slots/use-ai-helper.d.ts +4 -0
  104. package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +8 -0
  105. package/types/main-app-framework/init-layout/hooks/nav-slots/use-project.d.ts +1 -0
  106. package/types/main-app-framework/init-layout/hooks/nav-slots/use-search.d.ts +4 -0
  107. package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +4 -0
  108. package/types/main-app-framework/init-layout/hooks/use-entry-app.d.ts +11 -0
  109. package/types/main-app-framework/init-layout/hooks/use-entry-menu.d.ts +7 -0
  110. package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +9 -0
  111. package/types/main-app-framework/init-layout/hooks/use-menu.d.ts +1 -0
  112. package/types/main-app-framework/init-layout/hooks/use-nav.d.ts +1 -0
  113. package/types/main-app-framework/init-layout/hooks/use-route-reload-unload.d.ts +4 -0
  114. package/types/main-app-framework/init-layout/hooks/use-route-watcher.d.ts +3 -0
  115. package/types/main-app-framework/init-layout/hooks/use-system-confirm.d.ts +1 -0
  116. package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +5 -0
  117. package/types/main-app-framework/init-layout/index.d.ts +11 -0
  118. package/types/main-app-framework/init-layout/store/index.d.ts +4 -0
  119. package/types/main-app-framework/init-platform/api.d.ts +2 -0
  120. package/types/main-app-framework/init-platform/index.d.ts +4 -0
  121. package/types/main-app-framework/micro-apps/index.d.ts +3 -0
  122. package/types/main-app-framework/micro-apps/use-device-panel-watcher.d.ts +1 -0
  123. package/types/main-app-framework/micro-apps/use-iot-watcher.d.ts +1 -0
  124. package/types/main-app-framework/micro-apps/use-user-info-watcher.d.ts +3 -0
  125. package/types/main-app-framework/pages/app/api.d.ts +2 -0
  126. package/types/main-app-framework/utils/index.d.ts +3 -0
  127. package/types/main-app-framework/utils/src/get-portal-url/crypto.d.ts +14 -0
  128. package/types/main-app-framework/utils/src/get-portal-url/encrypt.d.ts +42 -0
  129. package/types/main-app-framework/utils/src/get-portal-url/generate-url.d.ts +4 -0
  130. package/types/main-app-framework/utils/src/get-portal-url/handle-portal-params.d.ts +2 -0
  131. package/types/main-app-framework/utils/src/get-portal-url/index.d.ts +2 -0
  132. package/types/main-app-framework/utils/src/get-portal-url/type.d.ts +16 -0
  133. package/types/main-app-framework/utils/src/layout-confirm.d.ts +12 -0
  134. package/types/main-app-framework/utils/src/set-common-info.d.ts +66 -0
  135. package/types/main-app-framework/utils/src/tools.d.ts +5 -0
  136. package/types/micro-frontend/bus.d.ts +33 -0
  137. package/types/micro-frontend/index.d.ts +7 -0
  138. package/types/micro-frontend/store.d.ts +5 -0
  139. package/types/theme/index.d.ts +13 -0
Binary file
@@ -0,0 +1,87 @@
1
+ import { defineComponent as k, computed as p, withDirectives as v, createBlock as U, openBlock 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-DKGPO2ax.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((C(), U(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
package/index.js ADDED
@@ -0,0 +1,32 @@
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-DKGPO2ax.js";
2
+ export {
3
+ e as DasMainAppLayout,
4
+ t as DasWebLayout,
5
+ n as DasWebMenu,
6
+ i as DasWebNav,
7
+ r as DasWebTabs,
8
+ u as createDasWebApp,
9
+ o as currentLang,
10
+ m as currentTheme,
11
+ p as customLangeData,
12
+ g as getI18nRule,
13
+ D as getLang,
14
+ l as getThemeRule,
15
+ L as getVar,
16
+ b as getVarValue,
17
+ c as i18n,
18
+ h as initI18n,
19
+ A as initMainApp,
20
+ T as initMicroApp,
21
+ y as initTheme,
22
+ R as layout,
23
+ W as layoutData,
24
+ I as mainAppFramework,
25
+ M as microFrontend,
26
+ F as setI18nRule,
27
+ V as setLang,
28
+ f as setLangRule,
29
+ k as setTheme,
30
+ v as setThemeRule,
31
+ w as t
32
+ };
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "@das-fed/upf-web",
3
+ "version": "6.4.0-dev.124",
4
+ "type": "module",
5
+ "main": "./index.js",
6
+ "dependencies": {
7
+ "@das-fed/upf-ui": "6.4.0-dev.124",
8
+ "@das-fed/upf-utils": "6.4.0-dev.124",
9
+ "@das-fed/upf-web": "6.4.0-dev.124",
10
+ "@das-fed/upf-web-components": "6.4.0-dev.124",
11
+ "@microsoft/signalr": "^8.0.7",
12
+ "@vueuse/core": "^9.13.0",
13
+ "animate.css": "^4.1.1",
14
+ "crypto-js": "^4.2.0",
15
+ "lodash": "^4.17.21",
16
+ "lodash-es": "^4.17.21",
17
+ "nanoid": "3.2.0",
18
+ "vue": "^3.4.31",
19
+ "vue-router": "^4.4.0"
20
+ },
21
+ "devDependencies": {
22
+ "@das-fed/upf-cli": "6.4.0-dev.124",
23
+ "@types/crypto-js": "^4.2.2",
24
+ "@types/lodash": "^4.14.194",
25
+ "@types/lodash-es": "^4.17.12",
26
+ "@vitejs/plugin-vue": "^5.1.0",
27
+ "consola": "^3.2.3",
28
+ "execa": "^9.3.0",
29
+ "minimist": "^1.2.8",
30
+ "pinia": "^2.1.7",
31
+ "pinia-plugin-persistedstate": "^3.2.1",
32
+ "rollup-plugin-visualizer": "^5.12.0",
33
+ "sass": "^1.77.6",
34
+ "ts-morph": "^21.0.1",
35
+ "typescript": "^5.5.3",
36
+ "vite": "^5.3.4",
37
+ "vite-plugin-dts": "^3.9.1",
38
+ "vue-tsc": "^1.8.27"
39
+ },
40
+ "peerDependencies": {
41
+ "vue": ">=3.4.21",
42
+ "vue-router": ">=4.2.5"
43
+ },
44
+ "sideEffects": [
45
+ "@das-fed/upf-utils/*"
46
+ ],
47
+ "publishConfig": {
48
+ "access": "public",
49
+ "registry": "https://registry.npmjs.org",
50
+ "main": "index.js",
51
+ "types": "./types/main.d.ts"
52
+ },
53
+ "types": "./types/index.d.ts"
54
+ }
@@ -0,0 +1 @@
1
+ window.config = {}
@@ -0,0 +1,58 @@
1
+ import { ref as x, createApp as O } from "vue";
2
+ import { initTheme as P } from "@das-fed/upf-web/packages/theme/index";
3
+ import { initI18n as W } from "@das-fed/upf-web/packages/i18n/index";
4
+ import { DasWebLayout as $ } from "@das-fed/upf-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);
14
+ });
15
+ }
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) => ({
30
+ path: r.path,
31
+ redirect: `/${f.microAppName}${r.path}`,
32
+ meta: { ...r.meta || {}, isMicroAppRouteRedirect: !0 }
33
+ }))
34
+ );
35
+ });
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)
40
+ ];
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) => {
46
+ e || (e = {});
47
+ const a = x(!0);
48
+ Promise.all([P(e), W(e)]).then(() => {
49
+ a.value = !1;
50
+ });
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 };
55
+ };
56
+ export {
57
+ w as createDasWebApp
58
+ };
@@ -0,0 +1 @@
1
+ window.config = {}
@@ -0,0 +1,175 @@
1
+ import { reactive as i, ref as s, computed as k } from "vue";
2
+ const _ = {
3
+ // 按钮
4
+ 详情: { "zh-CN": "详情", en: "Details", _appCode: "framework" },
5
+ 下载: { "zh-CN": "下载", en: "Download", _appCode: "framework" },
6
+ 审核: { "zh-CN": "审核", en: "Audit", _appCode: "framework" },
7
+ 通过: { "zh-CN": "通过", en: "Pass", _appCode: "framework" },
8
+ 驳回: { "zh-CN": "驳回", en: "Reject", _appCode: "framework" },
9
+ 分派: { "zh-CN": "分派", en: "Assign", _appCode: "framework" },
10
+ 处理: { "zh-CN": "处理", en: "Process", _appCode: "framework" },
11
+ 删除: { "zh-CN": "删除", en: "Delete", _appCode: "framework" },
12
+ 回复: { "zh-CN": "回复", en: "Reply", _appCode: "framework" },
13
+ 新增: { "zh-CN": "新增", en: "Add", _appCode: "framework" },
14
+ 批量删除: { "zh-CN": "批量删除", en: "Bulk Delete", _appCode: "framework" },
15
+ 提交: { "zh-CN": "提交", en: "Submit", _appCode: "framework" },
16
+ 查看记录: { "zh-CN": "查看记录", en: "Details", _appCode: "framework" },
17
+ 分享: { "zh-CN": "分享", en: "Share", _appCode: "framework" },
18
+ 取消: { "zh-CN": "取消", en: "Cancel", _appCode: "framework" },
19
+ 编辑: { "zh-CN": "编辑", en: "Edit", _appCode: "framework" },
20
+ 保存: { "zh-CN": "保存", en: "Save", _appCode: "framework" },
21
+ 确定: { "zh-CN": "确定", en: "OK", _appCode: "framework" },
22
+ 转单: { "zh-CN": "转单", en: "Transfer", _appCode: "framework" },
23
+ 挂起: { "zh-CN": "挂起", en: "Suspend", _appCode: "framework" },
24
+ 反馈: { "zh-CN": "反馈", en: "Feedback", _appCode: "framework" },
25
+ 撤回: { "zh-CN": "撤回", en: "Withdraw", _appCode: "framework" },
26
+ 继续处理: { "zh-CN": "继续处理", en: "Continue", _appCode: "framework" },
27
+ 评价: { "zh-CN": "评价", en: "Evaluate", _appCode: "framework" },
28
+ 重新处理: { "zh-CN": "重新处理", en: "Reprocess", _appCode: "framework" },
29
+ 处理确认: { "zh-CN": "处理确认", en: "Confirm", _appCode: "framework" },
30
+ 作废: { "zh-CN": "作废", en: "Nullify", _appCode: "framework" },
31
+ 回访: { "zh-CN": "回访", en: "Follow-up", _appCode: "framework" },
32
+ 设备总数: { "zh-CN": "设备总数", en: "Total Devices", _appCode: "framework" },
33
+ 在线数: { "zh-CN": "在线数", en: "Online", _appCode: "framework" },
34
+ 离线数: { "zh-CN": "离线数", en: "Offline", _appCode: "framework" },
35
+ 已停用: { "zh-CN": "已停用", en: "Disabled", _appCode: "framework" },
36
+ 未激活: { "zh-CN": "未激活", en: "Inactive", _appCode: "framework" },
37
+ 最近更新人: { "zh-CN": "最近更新人", en: "Last Updater", _appCode: "framework" },
38
+ 最近更新时间: { "zh-CN": "最近更新时间", en: "Last Updated Time", _appCode: "framework" },
39
+ 启用状态: { "zh-CN": "启用状态", en: "Status", _appCode: "framework" },
40
+ 必填: { "zh-CN": "必填", en: "Required", _appCode: "framework" },
41
+ 用户账号: { "zh-CN": "用户账号", en: "Account", _appCode: "framework" },
42
+ 用户密码: { "zh-CN": "用户密码", en: "Password", _appCode: "framework" },
43
+ 新增同级: { "zh-CN": "新增同级", en: "Add Sibling", _appCode: "framework" },
44
+ 新增子级: { "zh-CN": "新增子级", en: "Add Child", _appCode: "framework" },
45
+ // 全局流程状态
46
+ 处理中: { "zh-CN": "处理中", en: "Processing", _appCode: "framework" },
47
+ 出借中: { "zh-CN": "出借中", en: "Borrowing", _appCode: "framework" },
48
+ 审核中: { "zh-CN": "审核中", en: "Reviewing", _appCode: "framework" },
49
+ 退约审核中: { "zh-CN": "退约审核中", en: "Reviewing", _appCode: "framework" },
50
+ 通知我: { "zh-CN": "通知我", en: "Notice", _appCode: "framework" },
51
+ 我的待办: { "zh-CN": "我的待办", en: "To-do", _appCode: "framework" },
52
+ 待分派: { "zh-CN": "待分派", en: "Pending Assign", _appCode: "framework" },
53
+ 待处理: { "zh-CN": "待处理", en: "Pending Process", _appCode: "framework" },
54
+ 已挂起: { "zh-CN": "已挂起", en: "Suspended", _appCode: "framework" },
55
+ 待确认: { "zh-CN": "待确认", en: "Pending Confirm", _appCode: "framework" },
56
+ 待评价: { "zh-CN": "待评价", en: "Pending Evaluate", _appCode: "framework" },
57
+ 待提交: { "zh-CN": "待提交", en: "Pending Submit", _appCode: "framework" },
58
+ 待放行: { "zh-CN": "待放行", en: "Pending Release", _appCode: "framework" },
59
+ 超期: { "zh-CN": "超期", en: "Overdue", _appCode: "framework" },
60
+ 待审核: { "zh-CN": "待审核", en: "Pending Review", _appCode: "framework" },
61
+ 待借出: { "zh-CN": "待借出", en: "Pending borrow", _appCode: "framework" },
62
+ 待归还: { "zh-CN": "待归还", en: "Pending Return", _appCode: "framework" },
63
+ 待核实: { "zh-CN": "待核实", en: "Pending Verificate", _appCode: "framework" },
64
+ 待归档: { "zh-CN": "待归档", en: "Pending Archive", _appCode: "framework" },
65
+ 待复查: { "zh-CN": "待复查", en: "Pending Check", _appCode: "framework" },
66
+ 严重超期: { "zh-CN": "严重超期", en: "Severely Overdue", _appCode: "framework" },
67
+ 待审批: { "zh-CN": "待审批", en: "Pending Review", _appCode: "framework" },
68
+ 按时完成: { "zh-CN": "按时完成", en: "Completed On Time", _appCode: "framework" },
69
+ 逾期完成: { "zh-CN": "逾期完成", en: "Overdue Completion", _appCode: "framework" },
70
+ 审核通过: { "zh-CN": "审核通过", en: "Approved", _appCode: "framework" },
71
+ 已完成: { "zh-CN": "已完成", en: "Completed", _appCode: "framework" },
72
+ 已驳回: { "zh-CN": "已驳回", en: "Rejected", _appCode: "framework" },
73
+ 已放行: { "zh-CN": "已放行", en: "Released", _appCode: "framework" },
74
+ 按时归还: { "zh-CN": "按时归还", en: "Returned On Time", _appCode: "framework" },
75
+ "损坏/丢失": { "zh-CN": "损坏/丢失", en: "Damaged/Lost", _appCode: "framework" },
76
+ 已发布: { "zh-CN": "已发布", en: "Published", _appCode: "framework" },
77
+ 已归档: { "zh-CN": "已归档", en: "Archived", _appCode: "framework" },
78
+ 审核不通过: { "zh-CN": "审核不通过", en: "Rejected", _appCode: "framework" },
79
+ 已审核: { "zh-CN": "已审核", en: "Reviewed", _appCode: "framework" },
80
+ 已处理: { "zh-CN": "已处理", en: "Processed", _appCode: "framework" },
81
+ 逾期归还: { "zh-CN": "逾期归还", en: "Overdue Return", _appCode: "framework" },
82
+ 已失效: { "zh-CN": "已失效", en: "Expired", _appCode: "framework" },
83
+ 待支付: { "zh-CN": "待支付", en: "Pending Payment", _appCode: "framework" },
84
+ 已预定: { "zh-CN": "已预定", en: "Scheduled", _appCode: "framework" },
85
+ 已开始: { "zh-CN": "已开始", en: "In Progress", _appCode: "framework" },
86
+ 已结束: { "zh-CN": "已结束", en: "Ended", _appCode: "framework" },
87
+ 已取消: { "zh-CN": "已取消", en: "Cancelled", _appCode: "framework" },
88
+ 待退款: { "zh-CN": "待退款", en: "Pending Refund", _appCode: "framework" },
89
+ 告警中: { "zh-CN": "告警中", en: "Active", _appCode: "framework" },
90
+ 已恢复: { "zh-CN": "已恢复", en: "Restored", _appCode: "framework" },
91
+ 未处理: { "zh-CN": "未处理", en: "Unprocessed", _appCode: "framework" },
92
+ 未开始: { "zh-CN": "未开始", en: "Not Started", _appCode: "framework" },
93
+ 进行中: { "zh-CN": "进行中", en: "In Progress", _appCode: "framework" },
94
+ 待发起: { "zh-CN": "待发起", en: "Pending Submit", _appCode: "framework" },
95
+ 审核通过待生效: { "zh-CN": "审核通过待生效", en: "Pending take effect", _appCode: "framework" },
96
+ 生效中: { "zh-CN": "生效中", en: "In Effect", _appCode: "framework" },
97
+ 即将到期: { "zh-CN": "即将到期", en: "Expiring", _appCode: "framework" },
98
+ 已过期: { "zh-CN": "已过期", en: "Expired", _appCode: "framework" },
99
+ 已作废: { "zh-CN": "已作废", en: "Voided", _appCode: "framework" },
100
+ 已退约: { "zh-CN": "已退约", en: "Terminated", _appCode: "framework" },
101
+ 已终止: { "zh-CN": "已终止", en: "Ended", _appCode: "framework" },
102
+ 待接班: { "zh-CN": "待接班", en: "Pending take over", _appCode: "framework" },
103
+ 已撤回: { "zh-CN": "已撤回", en: "Withdrawn", _appCode: "framework" },
104
+ 待回访: { "zh-CN": "待回访", en: "Pending Follow-up", _appCode: "framework" },
105
+ 已回访: { "zh-CN": "已回访", en: "Followed-up", _appCode: "framework" },
106
+ 未成功回访: { "zh-CN": "未成功回访", en: "Unsuccessful Follow-up", _appCode: "framework" },
107
+ 免回访: { "zh-CN": "免回访", en: "Needless to Follow-up", _appCode: "framework" },
108
+ 回访完成: { "zh-CN": "回访完成", en: "Follow-up Complete", _appCode: "framework" },
109
+ 报事报修: { "zh-CN": "报事报修", en: "Repair Process", _appCode: "framework" },
110
+ "报事报修-用户确认": { "zh-CN": "报事报修-用户确认", en: "Repair Confirmation Process", _appCode: "framework" },
111
+ 投诉建议流程: { "zh-CN": "投诉建议流程", en: "Suggestion Process", _appCode: "framework" },
112
+ 有偿服务流程: { "zh-CN": "有偿服务流程", en: "Paid Service Process", _appCode: "framework" },
113
+ // 编辑、提交、保存、删除操作的toast
114
+ 保存成功: { "zh-CN": "保存成功", en: "Saved Successfully", _appCode: "framework" },
115
+ 保存失败: { "zh-CN": "保存失败", en: "Saved Failed", _appCode: "framework" },
116
+ 编辑成功: { "zh-CN": "编辑成功", en: "Edited Successfully", _appCode: "framework" },
117
+ 编辑失败: { "zh-CN": "编辑失败", en: "Edited Failed", _appCode: "framework" },
118
+ 删除成功: { "zh-CN": "删除成功", en: "Deleted Successfully", _appCode: "framework" },
119
+ 删除失败: { "zh-CN": "删除失败", en: "Deleted Failed", _appCode: "framework" },
120
+ 操作成功: { "zh-CN": "操作成功", en: "Operated Successfully", _appCode: "framework" },
121
+ 操作失败: { "zh-CN": "操作失败", en: "Operated Failed", _appCode: "framework" }
122
+ }, d = i({}), f = i({}), m = i({});
123
+ var N;
124
+ const l = (N = navigator.language) != null && N.toLowerCase().startsWith("zh") ? "zh-CN" : "en", t = s(l), c = "dasI18n", b = (e = {}, r) => {
125
+ const C = r === "global", n = !C, p = {};
126
+ for (const o in e)
127
+ for (const a in e[o])
128
+ p[a] || (p[a] = {}), p[a][o] = e[o][a] ?? "", C && (f[a] || (f[a] = {}), f[a][o] = p[a][o]), n && (d[a] || (d[a] = {}), d[a][o] = p[a][o]);
129
+ }, h = (e = {}, r) => {
130
+ var p;
131
+ const C = r === "global", n = !C;
132
+ for (const o in e)
133
+ if (C && !f[o] && (f[o] = e[o]), n) {
134
+ const a = (p = e[o]) != null && p._appCode ? e[o]._appCode.toLowerCase() : "";
135
+ a && (m[a] || (m[a] = {}), m[a][o] = e[o]), d[o] || (d[o] = e[o]);
136
+ }
137
+ }, R = async (e) => {
138
+ var p, o;
139
+ const r = document.documentElement;
140
+ r && r.setAttribute("lang", t.value);
141
+ const C = window[c];
142
+ C && h(C, "global"), h(_);
143
+ let n = Object.assign(((p = e == null ? void 0 : e.i18n) == null ? void 0 : p.glob) || {});
144
+ (o = e == null ? void 0 : e.microApps) == null || o.map((a) => {
145
+ var w;
146
+ n = Object.assign(n, ((w = a.i18n) == null ? void 0 : w.glob) || {});
147
+ }), Object.values(n).filter((a) => !!a).flat().map((a) => h(a));
148
+ }, u = (e) => {
149
+ let r = "";
150
+ const C = /\/([^\/]+)\/([^\/]+)\//, n = e.match(C);
151
+ return n && n.length >= 3 && (r = n[1] + "/" + n[2]), r ? r.toLowerCase() : "";
152
+ }, g = (e, ...r) => k(() => {
153
+ const C = u(location.pathname);
154
+ let n = m.framework ?? {}, p = m[C] ?? {}, o = f[e] || n[e] || p[e] || d[e] || e;
155
+ if (o === e) return e;
156
+ typeof o == "string" && (o = { "zh-CN": o });
157
+ let a = o[t.value];
158
+ return t.value === "zh-CN" && o["zh-cn"] && !o["zh-CN"] && (a = o["zh-cn"]), r.map((w, z) => {
159
+ a && (a = a.replace(`$${z}`, w));
160
+ }), a;
161
+ }), P = g, S = (e, ...r) => P(e, ...r).value, D = (e) => {
162
+ t.value = e;
163
+ }, L = () => t;
164
+ export {
165
+ t as currentLang,
166
+ d as customLangeData,
167
+ g as getI18nRule,
168
+ L as getLang,
169
+ P as i18n,
170
+ R as initI18n,
171
+ h as setI18nRule,
172
+ D as setLang,
173
+ b as setLangRule,
174
+ S as t
175
+ };
Binary file
@@ -0,0 +1 @@
1
+ window.config = {}