@das-fed/web 6.4.0-dev.4 → 6.4.0-dev.41
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 +2 -1
- package/index-BJaVqwM1.js +7439 -0
- package/index-BJaVqwM1.js.gz +0 -0
- package/{index-D8XgnluX.js → index-BqdkqUh1.js} +1 -1
- package/index-DTXiRF91.js +75 -0
- package/index-DTXiRF91.js.gz +0 -0
- package/index.js +16 -15
- package/package.json +6 -6
- package/packages/create-das-web-app/config.js +1 -0
- package/packages/create-das-web-app/index.js +48 -802
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/i18n/config.js +1 -0
- package/packages/i18n/index.js +25 -24
- package/packages/i18n/index.js.gz +0 -0
- package/packages/layout/config.js +1 -0
- package/packages/layout/index.js +450 -406
- 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/config.js +1 -0
- package/packages/main-app-framework/index-D3CMerRp.js +75 -0
- package/packages/main-app-framework/index-D3CMerRp.js.gz +0 -0
- package/packages/main-app-framework/index-DCoCFFJH.js +6097 -0
- package/packages/main-app-framework/index-DCoCFFJH.js.gz +0 -0
- package/packages/main-app-framework/{index-BkJc1lDT.js → index-GuLooLSc.js} +1 -1
- package/packages/main-app-framework/index.js +1 -1
- package/packages/main-app-framework/style.css +1 -1
- package/packages/main-app-framework/style.css.gz +0 -0
- package/packages/micro-frontend/config.js +1 -0
- package/packages/micro-frontend/index.js +180 -163
- package/packages/micro-frontend/index.js.gz +0 -0
- package/packages/micro-frontend/style.css +1 -1
- package/packages/style/config.js +1 -0
- package/packages/style/style.css +1 -1
- package/packages/style/style.css.gz +0 -0
- package/packages/theme/config.js +1 -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/index.d.ts +2 -2
- package/types/layout/index.d.ts +1 -1
- package/types/layout/store/index.d.ts +6 -1
- package/types/layout/store/menu.d.ts +2 -0
- package/types/layout/store/nav.d.ts +1 -0
- 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/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/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 +4 -3
- package/types/main-app-framework/init-config/get-system-config/index.d.ts +3 -3
- 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-initialization.d.ts +4 -4
- 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/micro-frontend/store.d.ts +5 -5
- package/types/theme/index.d.ts +1 -1
- package/index--5iw3PcC.js +0 -7970
- package/index--5iw3PcC.js.gz +0 -0
- package/index-BSYJheVx.js +0 -68
- package/index-BSYJheVx.js.gz +0 -0
- package/index-C5zNxpQk.js +0 -70
- package/index-C5zNxpQk.js.gz +0 -0
- package/packages/main-app-framework/index-C_X3k7z0.js +0 -70
- package/packages/main-app-framework/index-C_X3k7z0.js.gz +0 -0
- package/packages/main-app-framework/index-D7pfTqeW.js +0 -5917
- package/packages/main-app-framework/index-D7pfTqeW.js.gz +0 -0
- package/packages/main-app-framework/index-MhsbUVtD.js +0 -68
- package/packages/main-app-framework/index-MhsbUVtD.js.gz +0 -0
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
window.config = {}
|
package/packages/i18n/index.js
CHANGED
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
import { reactive as r, ref as
|
|
2
|
-
const g = r({}), u = r({}),
|
|
3
|
-
const t = s === "global",
|
|
4
|
-
for (const
|
|
5
|
-
t && (u[
|
|
1
|
+
import { reactive as r, ref as f, computed as b } from "vue";
|
|
2
|
+
const g = r({}), u = r({}), c = f("zh-CN"), m = "dasI18n", i = (n, s) => {
|
|
3
|
+
const t = s === "global", e = !t;
|
|
4
|
+
for (const a in n)
|
|
5
|
+
t && (u[a] = n[a]), e && (g[a] = n[a]);
|
|
6
6
|
}, z = async (n) => {
|
|
7
|
-
var
|
|
7
|
+
var e, a;
|
|
8
8
|
const s = window[m];
|
|
9
9
|
s && i(s, "global");
|
|
10
|
-
let t = Object.assign(((
|
|
11
|
-
(
|
|
10
|
+
let t = Object.assign(((e = n == null ? void 0 : n.i18n) == null ? void 0 : e.glob) || {});
|
|
11
|
+
(a = n == null ? void 0 : n.microApps) == null || a.map((l) => {
|
|
12
12
|
var o;
|
|
13
|
-
t = Object.assign(t, ((o =
|
|
14
|
-
}), Object.values(t).filter((
|
|
15
|
-
}, I = (n, ...s) =>
|
|
16
|
-
|
|
13
|
+
t = Object.assign(t, ((o = l.i18n) == null ? void 0 : o.glob) || {});
|
|
14
|
+
}), Object.values(t).filter((l) => !!l).flat().map((l) => i(l));
|
|
15
|
+
}, I = (n, ...s) => b(() => {
|
|
16
|
+
let t = u[n] || g[n] || n;
|
|
17
17
|
if (t === n) return n;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}),
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
typeof t == "string" && (t = { "zh-CN": t });
|
|
19
|
+
let e = t[c.value];
|
|
20
|
+
return c.value === "zh-CN" && t["zh-cn"] && !t["zh-CN"] && (e = t["zh-cn"]), s.map((a, l) => {
|
|
21
|
+
e = e.replace(`$${l}`, a);
|
|
22
|
+
}), e;
|
|
23
|
+
}), h = I, C = (n, ...s) => h(n, ...s).value, D = (n) => {
|
|
24
|
+
c.value = n;
|
|
25
|
+
}, L = () => c;
|
|
25
26
|
export {
|
|
26
|
-
|
|
27
|
+
c as currentLang,
|
|
27
28
|
I as getI18nRule,
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
L as getLang,
|
|
30
|
+
h as i18n,
|
|
30
31
|
z as initI18n,
|
|
31
32
|
i as setI18nRule,
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
D as setLang,
|
|
34
|
+
C as t
|
|
34
35
|
};
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
window.config = {}
|