@das-fed/upf-web 6.4.0-dev.200 → 6.4.0-dev.202
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/es5.js +49 -49
- package/esm-map.json +10 -8
- package/front-end/i18n/front-end-page/dasweb_en-US.js +2 -2
- package/front-end/i18n/front-end-page/dasweb_zh-CN.js +2 -2
- package/front-end/i18n/front-end-page/dasweb_zh-MO.js +2 -2
- package/{index-DN3L_UYL.js → index-B3QSTHl8.js} +1 -1
- package/{index-D7Yosv5R.js → index-DvcXHpcr.js} +1 -1
- package/index-DvcXHpcr.js.gz +0 -0
- package/{index-Cwnxjz4B.js → index-L0ZWbpXA.js} +1247 -1217
- package/index-L0ZWbpXA.js.gz +0 -0
- package/index.js +19 -17
- package/package.json +6 -6
- package/packages/create-das-web-app/es5.js +33 -33
- package/packages/create-das-web-app/index.js +29 -29
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/i18n/es5.js +188 -111
- package/packages/i18n/index.js +87 -56
- package/packages/i18n/index.js.gz +0 -0
- package/types/i18n/index.d.ts +5 -2
- package/types/i18n/register.d.ts +3 -0
- package/index-Cwnxjz4B.js.gz +0 -0
- package/index-D7Yosv5R.js.gz +0 -0
|
Binary file
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { N as s, E as t, G as n, F as r, H as i, e as o, o as u, A as g, r as m, f as l, j as p, n as D, z as L, C as c, D as b, k as h, i as y, K as A, L as M, x as T, h as I, I as R, J as W, v as F, O as V, M as d, w as f, s as k, m as v, q as w, y as x, B as K, t as N } from "./index-L0ZWbpXA.js";
|
|
2
2
|
export {
|
|
3
3
|
s as DasMainAppLayout,
|
|
4
4
|
t as DasWebLayout,
|
|
@@ -7,28 +7,30 @@ export {
|
|
|
7
7
|
i as DasWebTabs,
|
|
8
8
|
o as createDasWebApp,
|
|
9
9
|
u as currentLang,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
g as currentTheme,
|
|
11
|
+
m as customLangeData,
|
|
12
|
+
l as getDateFormat,
|
|
13
|
+
p as getI18nRule,
|
|
14
14
|
D as getLang,
|
|
15
15
|
L as getThemeRule,
|
|
16
16
|
c as getVar,
|
|
17
17
|
b as getVarValue,
|
|
18
18
|
h as i18n,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
y as initI18n,
|
|
20
|
+
A as initMainApp,
|
|
21
|
+
M as initMicroApp,
|
|
22
|
+
T as initTheme,
|
|
23
|
+
I as languageKey,
|
|
23
24
|
R as layout,
|
|
24
25
|
W as layoutData,
|
|
25
26
|
F as loadLocale,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
V as mainAppFramework,
|
|
28
|
+
d as microFrontend,
|
|
29
|
+
f as registerMicroI18nData,
|
|
30
|
+
k as setI18nRule,
|
|
31
|
+
v as setLang,
|
|
32
|
+
w as setLangRule,
|
|
33
|
+
x as setTheme,
|
|
34
|
+
K as setThemeRule,
|
|
35
|
+
N as t
|
|
34
36
|
};
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/upf-web",
|
|
3
|
-
"version": "6.4.0-dev.
|
|
3
|
+
"version": "6.4.0-dev.202",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@das-fed/upf-ui": "6.4.0-dev.
|
|
8
|
-
"@das-fed/upf-utils": "6.4.0-dev.
|
|
9
|
-
"@das-fed/upf-web": "6.4.0-dev.
|
|
10
|
-
"@das-fed/upf-web-components": "6.4.0-dev.
|
|
7
|
+
"@das-fed/upf-ui": "6.4.0-dev.202",
|
|
8
|
+
"@das-fed/upf-utils": "6.4.0-dev.202",
|
|
9
|
+
"@das-fed/upf-web": "6.4.0-dev.202",
|
|
10
|
+
"@das-fed/upf-web-components": "6.4.0-dev.202",
|
|
11
11
|
"@microsoft/signalr": "^8.0.7",
|
|
12
12
|
"@vueuse/core": "^9.13.0",
|
|
13
13
|
"animate.css": "^4.1.1",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"vue-router": "^4.4.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@das-fed/upf-cli": "6.4.0-dev.
|
|
22
|
+
"@das-fed/upf-cli": "6.4.0-dev.202",
|
|
23
23
|
"@types/crypto-js": "^4.2.2",
|
|
24
24
|
"@types/lodash": "^4.14.194",
|
|
25
25
|
"@types/lodash-es": "^4.17.12",
|
|
@@ -14,31 +14,31 @@ function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(
|
|
|
14
14
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
15
15
|
var vue = require('vue');
|
|
16
16
|
var index = require('@das-fed/upf-web/packages/theme/index/es5');
|
|
17
|
-
var index$1 = require('@das-fed/upf-web/packages/i18n/index/es5');
|
|
18
17
|
var index$2 = require('@das-fed/upf-web/packages/layout/index/es5');
|
|
18
|
+
var index$1 = require('@das-fed/upf-web/packages/i18n/index/es5');
|
|
19
19
|
var pinia = require('pinia');
|
|
20
20
|
var $ = require('pinia-plugin-persistedstate');
|
|
21
21
|
var vueRouter = require('vue-router');
|
|
22
|
-
var
|
|
23
|
-
install: function install(e,
|
|
22
|
+
var k = {
|
|
23
|
+
install: function install(e, a) {
|
|
24
24
|
var l;
|
|
25
|
-
var c = (l =
|
|
26
|
-
c && Object.values(c).sort(function (t,
|
|
27
|
-
var _t$index,
|
|
28
|
-
return ((_t$index = t.index) !== null && _t$index !== void 0 ? _t$index : 0) - ((
|
|
25
|
+
var c = (l = a == null ? undefined : a.plugins) == null ? undefined : l.glob;
|
|
26
|
+
c && Object.values(c).sort(function (t, u) {
|
|
27
|
+
var _t$index, _u$index;
|
|
28
|
+
return ((_t$index = t.index) !== null && _t$index !== void 0 ? _t$index : 0) - ((_u$index = u.index) !== null && _u$index !== void 0 ? _u$index : 0);
|
|
29
29
|
}).filter(function (t) {
|
|
30
30
|
return t ? !!(t["default"] && t["default"].install || t.install) : false;
|
|
31
31
|
}).forEach(function (t) {
|
|
32
|
-
t["default"] && t["default"].install && e.use(t["default"],
|
|
32
|
+
t["default"] && t["default"].install && e.use(t["default"], a), t.install && e.use(t, a);
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
d = pinia.createPinia();
|
|
37
37
|
d.use($);
|
|
38
|
-
var
|
|
38
|
+
var y = function y(e) {
|
|
39
39
|
var _ref;
|
|
40
|
-
var h, b, p,
|
|
41
|
-
var
|
|
40
|
+
var h, b, p, g, A;
|
|
41
|
+
var a = (_ref = (h = e == null ? undefined : e.router) == null ? undefined : h.routerBase) !== null && _ref !== void 0 ? _ref : "/",
|
|
42
42
|
c = ((b = e == null ? undefined : e.router) == null ? undefined : b.options) || {};
|
|
43
43
|
var l = Object.assign(((p = e == null ? undefined : e.router) == null ? undefined : p.glob) || {});
|
|
44
44
|
var t = Object.values(l).filter(function (f) {
|
|
@@ -47,20 +47,20 @@ var D = function D(e) {
|
|
|
47
47
|
var _f$index, _m$index;
|
|
48
48
|
return ((_f$index = f.index) !== null && _f$index !== void 0 ? _f$index : 0) - ((_m$index = m.index) !== null && _m$index !== void 0 ? _m$index : 0);
|
|
49
49
|
}),
|
|
50
|
-
|
|
51
|
-
(
|
|
50
|
+
u = [];
|
|
51
|
+
(g = e == null ? undefined : e.microApps) == null || g.map(function (f) {
|
|
52
52
|
var R;
|
|
53
53
|
var m = Object.values(((R = f.router) == null ? undefined : R.glob) || {}).filter(function (r) {
|
|
54
54
|
return !!r;
|
|
55
|
-
}).flat().sort(function (r,
|
|
56
|
-
var _r$index,
|
|
57
|
-
return ((_r$index = r.index) !== null && _r$index !== void 0 ? _r$index : 0) - ((
|
|
55
|
+
}).flat().sort(function (r, o) {
|
|
56
|
+
var _r$index, _o$index;
|
|
57
|
+
return ((_r$index = r.index) !== null && _r$index !== void 0 ? _r$index : 0) - ((_o$index = o.index) !== null && _o$index !== void 0 ? _o$index : 0);
|
|
58
58
|
});
|
|
59
|
-
|
|
59
|
+
u.push.apply(u, _toConsumableArray(m.map(function (r) {
|
|
60
60
|
return _objectSpread(_objectSpread({}, r), {}, {
|
|
61
61
|
path: "/".concat(f.microAppName).concat(r.path)
|
|
62
62
|
});
|
|
63
|
-
}))),
|
|
63
|
+
}))), u.push.apply(u, _toConsumableArray(m.filter(function (r) {
|
|
64
64
|
return !!r.path;
|
|
65
65
|
}).filter(function (r) {
|
|
66
66
|
return r.path !== "";
|
|
@@ -78,20 +78,20 @@ var D = function D(e) {
|
|
|
78
78
|
};
|
|
79
79
|
})));
|
|
80
80
|
});
|
|
81
|
-
var s = ((
|
|
82
|
-
n = [].concat(_toConsumableArray(i(t, e)), _toConsumableArray(i(s, e)), _toConsumableArray(i(
|
|
81
|
+
var s = ((A = e == null ? undefined : e.router) == null ? undefined : A.routers) || [],
|
|
82
|
+
n = [].concat(_toConsumableArray(i(t, e)), _toConsumableArray(i(s, e)), _toConsumableArray(i(u, e)));
|
|
83
83
|
return {
|
|
84
84
|
router: vueRouter.createRouter(_objectSpread({
|
|
85
|
-
history: vueRouter.createWebHistory(
|
|
85
|
+
history: vueRouter.createWebHistory(a),
|
|
86
86
|
routes: n
|
|
87
87
|
}, c))
|
|
88
88
|
};
|
|
89
89
|
},
|
|
90
|
-
i = function i(e,
|
|
90
|
+
i = function i(e, a) {
|
|
91
91
|
return e.map(function (c) {
|
|
92
92
|
var _ref2, _l$keepAlive;
|
|
93
93
|
var l = c.meta || {};
|
|
94
|
-
return l.keepAlive = (_ref2 = (_l$keepAlive = l.keepAlive) !== null && _l$keepAlive !== void 0 ? _l$keepAlive :
|
|
94
|
+
return l.keepAlive = (_ref2 = (_l$keepAlive = l.keepAlive) !== null && _l$keepAlive !== void 0 ? _l$keepAlive : a == null ? undefined : a.keepAlive) !== null && _ref2 !== void 0 ? _ref2 : true, _objectSpread(_objectSpread({}, c), {}, {
|
|
95
95
|
meta: l
|
|
96
96
|
});
|
|
97
97
|
});
|
|
@@ -99,22 +99,22 @@ var D = function D(e) {
|
|
|
99
99
|
q = function q(e) {
|
|
100
100
|
var n;
|
|
101
101
|
e || (e = {});
|
|
102
|
-
var
|
|
103
|
-
Promise.all([index.initTheme(e), index$1.
|
|
104
|
-
|
|
102
|
+
var a = vue.ref(true);
|
|
103
|
+
Promise.all([index.initTheme(e), index$1.registerMicroI18nData(e)]).then(function () {
|
|
104
|
+
a.value = false;
|
|
105
105
|
});
|
|
106
106
|
var _ref3 = (e == null ? undefined : e.root) || {},
|
|
107
107
|
c = _ref3.container,
|
|
108
108
|
l = _ref3.component,
|
|
109
109
|
t = _ref3.props,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
var
|
|
113
|
-
s =
|
|
114
|
-
return
|
|
115
|
-
app:
|
|
110
|
+
u = vue.createApp(l || index$2.DasWebLayout, t);
|
|
111
|
+
u.use(k, e), u.use(d);
|
|
112
|
+
var _y = y(e),
|
|
113
|
+
s = _y.router;
|
|
114
|
+
return u.use(s), u.mount(c || "#app"), (n = window.top) != null && n.vueRouter || window.top && (window.top.vueRouter = s), {
|
|
115
|
+
app: u,
|
|
116
116
|
router: s,
|
|
117
|
-
loading:
|
|
117
|
+
loading: a,
|
|
118
118
|
store: d
|
|
119
119
|
};
|
|
120
120
|
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as v, createApp as x } from "vue";
|
|
2
2
|
import { initTheme as w } from "@das-fed/upf-web/packages/theme/index";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { DasWebLayout as O } from "@das-fed/upf-web/packages/layout/index";
|
|
4
|
+
import { registerMicroI18nData as P } from "@das-fed/upf-web/packages/i18n/index";
|
|
5
5
|
import { createPinia as W } from "pinia";
|
|
6
6
|
import $ from "pinia-plugin-persistedstate";
|
|
7
|
-
import { createRouter as j, createWebHistory as
|
|
8
|
-
const
|
|
9
|
-
install: (e,
|
|
7
|
+
import { createRouter as j, createWebHistory as D } from "vue-router";
|
|
8
|
+
const k = {
|
|
9
|
+
install: (e, a) => {
|
|
10
10
|
var l;
|
|
11
|
-
const c = (l =
|
|
12
|
-
c && Object.values(c).sort((t,
|
|
13
|
-
t.default && t.default.install && e.use(t.default,
|
|
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
14
|
});
|
|
15
15
|
}
|
|
16
16
|
}, d = W();
|
|
17
17
|
d.use($);
|
|
18
|
-
const
|
|
19
|
-
var h, b, p,
|
|
20
|
-
const
|
|
18
|
+
const y = (e) => {
|
|
19
|
+
var h, b, p, g, A;
|
|
20
|
+
const a = ((h = e == null ? void 0 : e.router) == null ? void 0 : h.routerBase) ?? "/", c = ((b = e == null ? void 0 : e.router) == null ? void 0 : b.options) || {};
|
|
21
21
|
let l = Object.assign(((p = e == null ? void 0 : e.router) == null ? void 0 : p.glob) || {});
|
|
22
|
-
const t = Object.values(l).filter((f) => !!f).flat().sort((f, m) => (f.index ?? 0) - (m.index ?? 0)),
|
|
23
|
-
(
|
|
22
|
+
const t = Object.values(l).filter((f) => !!f).flat().sort((f, m) => (f.index ?? 0) - (m.index ?? 0)), u = [];
|
|
23
|
+
(g = e == null ? void 0 : e.microApps) == null || g.map((f) => {
|
|
24
24
|
var R;
|
|
25
|
-
const m = Object.values(((R = f.router) == null ? void 0 : R.glob) || {}).filter((r) => !!r).flat().sort((r,
|
|
26
|
-
|
|
25
|
+
const m = Object.values(((R = f.router) == null ? void 0 : R.glob) || {}).filter((r) => !!r).flat().sort((r, o) => (r.index ?? 0) - (o.index ?? 0));
|
|
26
|
+
u.push(
|
|
27
27
|
...m.map((r) => ({ ...r, path: `/${f.microAppName}${r.path}` }))
|
|
28
|
-
),
|
|
28
|
+
), u.push(
|
|
29
29
|
...m.filter((r) => !!r.path).filter((r) => r.path !== "").filter((r) => r.path !== "/").filter((r) => !r.path.startsWith(`/${r.microAppName}`)).map((r) => ({
|
|
30
30
|
path: r.path,
|
|
31
31
|
redirect: `/${f.microAppName}${r.path}`,
|
|
@@ -33,26 +33,26 @@ const D = (e) => {
|
|
|
33
33
|
}))
|
|
34
34
|
);
|
|
35
35
|
});
|
|
36
|
-
const s = ((
|
|
36
|
+
const s = ((A = e == null ? void 0 : e.router) == null ? void 0 : A.routers) || [], n = [
|
|
37
37
|
...i(t, e),
|
|
38
38
|
...i(s, e),
|
|
39
|
-
...i(
|
|
39
|
+
...i(u, e)
|
|
40
40
|
];
|
|
41
|
-
return { router: j({ history:
|
|
42
|
-
}, i = (e,
|
|
41
|
+
return { router: j({ history: D(a), routes: n, ...c }) };
|
|
42
|
+
}, i = (e, a) => e.map((c) => {
|
|
43
43
|
const l = c.meta || {};
|
|
44
|
-
return l.keepAlive = l.keepAlive ?? (
|
|
44
|
+
return l.keepAlive = l.keepAlive ?? (a == null ? void 0 : a.keepAlive) ?? !0, { ...c, meta: l };
|
|
45
45
|
}), q = (e) => {
|
|
46
46
|
var n;
|
|
47
47
|
e || (e = {});
|
|
48
|
-
const
|
|
49
|
-
Promise.all([w(e),
|
|
50
|
-
|
|
48
|
+
const a = v(!0);
|
|
49
|
+
Promise.all([w(e), P(e)]).then(() => {
|
|
50
|
+
a.value = !1;
|
|
51
51
|
});
|
|
52
|
-
const { container: c, component: l, props: t } = (e == null ? void 0 : e.root) || {},
|
|
53
|
-
|
|
54
|
-
const { router: s } =
|
|
55
|
-
return
|
|
52
|
+
const { container: c, component: l, props: t } = (e == null ? void 0 : e.root) || {}, u = x(l || O, t);
|
|
53
|
+
u.use(k, e), u.use(d);
|
|
54
|
+
const { router: s } = y(e);
|
|
55
|
+
return u.use(s), u.mount(c || "#app"), (n = window.top) != null && n.vueRouter || window.top && (window.top.vueRouter = s), { app: u, router: s, loading: a, store: d };
|
|
56
56
|
};
|
|
57
57
|
export {
|
|
58
58
|
q as createDasWebApp
|
|
Binary file
|