@das-fed/web 6.3.0-beta.10 → 6.3.0-beta.11
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/index.js +651 -644
- package/index.js.gz +0 -0
- package/package.json +5 -6
- package/packages/create-das-web-app/index.js +142 -139
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/layout/index.js +247 -243
- package/packages/layout/index.js.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/store/index.d.ts +1 -1
- package/types/micro-frontend/store.d.ts +5 -5
- package/types/theme/index.d.ts +1 -1
package/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { effectScope as
|
|
2
|
-
import { initTheme as
|
|
3
|
-
import { initI18n as
|
|
4
|
-
import { initMainApp as
|
|
5
|
-
import { DasWebLayout as
|
|
6
|
-
import { createRouter as
|
|
7
|
-
import { flatTree as
|
|
8
|
-
import { setHtmlMinWH as
|
|
9
|
-
import { createCeNav as
|
|
10
|
-
const
|
|
1
|
+
import { effectScope as Pt, ref as I, markRaw as lt, toRaw as Ae, watch as V, unref as b, createApp as kt, reactive as te, computed as p, defineComponent as Q, openBlock as g, createElementBlock as T, Fragment as pe, createBlock as R, TransitionGroup as Rt, normalizeProps as $e, mergeProps as Ee, withCtx as G, renderList as De, withDirectives as F, resolveDynamicComponent as ae, vShow as j, createCommentVNode as L, nextTick as Ie, resolveComponent as $t, createElementVNode as H, normalizeClass as Dt, normalizeStyle as Nt, renderSlot as z, createVNode as X, Transition as ze, guardReactiveProps as Ge, KeepAlive as Qe, h as Oe, onBeforeMount as Vt, onMounted as ut, onUnmounted as xt, onActivated as Ft, getCurrentScope as jt, onScopeDispose as Ut, getCurrentInstance as Ht } from "vue";
|
|
2
|
+
import { initTheme as Bt } from "@das-fed/web/packages/theme/index";
|
|
3
|
+
import { initI18n as Wt } from "@das-fed/web/packages/i18n/index";
|
|
4
|
+
import { initMainApp as zt, initMicroApp as Gt } from "@das-fed/web/packages/micro-frontend/index";
|
|
5
|
+
import { DasWebLayout as dt, DasWebNav as Qt, DasWebMenu as qt, DasWebTabs as Jt } from "@das-fed/web/packages/layout/index";
|
|
6
|
+
import { createRouter as Kt, createWebHistory as Yt, useRouter as Xt, useRoute as ft } from "vue-router";
|
|
7
|
+
import { flatTree as Zt } from "@das-fed/utils/common-tools/nest-tree-format";
|
|
8
|
+
import { setHtmlMinWH as Pe } from "@das-fed/utils/common-tools/setHtmlMinWH";
|
|
9
|
+
import { createCeNav as en, createCeTabs as tn, createCeMenu as nn } from "@das-fed/web-components";
|
|
10
|
+
const sn = {
|
|
11
11
|
install: (e, t) => {
|
|
12
12
|
var s;
|
|
13
13
|
const n = (s = t == null ? void 0 : t.plugins) == null ? void 0 : s.glob;
|
|
@@ -16,23 +16,23 @@ const rn = {
|
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
|
-
var
|
|
20
|
-
function
|
|
21
|
-
return
|
|
19
|
+
var rn = !1;
|
|
20
|
+
function an() {
|
|
21
|
+
return mt().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function mt() {
|
|
24
24
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
25
25
|
}
|
|
26
|
-
const
|
|
27
|
-
let
|
|
28
|
-
function
|
|
26
|
+
const on = typeof Proxy == "function", cn = "devtools-plugin:setup", ln = "plugin:settings:set";
|
|
27
|
+
let ne, Ne;
|
|
28
|
+
function un() {
|
|
29
29
|
var e;
|
|
30
|
-
return
|
|
30
|
+
return ne !== void 0 || (typeof window < "u" && window.performance ? (ne = !0, Ne = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (ne = !0, Ne = globalThis.perf_hooks.performance) : ne = !1), ne;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
return
|
|
32
|
+
function dn() {
|
|
33
|
+
return un() ? Ne.now() : Date.now();
|
|
34
34
|
}
|
|
35
|
-
class
|
|
35
|
+
class fn {
|
|
36
36
|
constructor(t, n) {
|
|
37
37
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
38
38
|
const s = {};
|
|
@@ -60,9 +60,9 @@ class mn {
|
|
|
60
60
|
a = i;
|
|
61
61
|
},
|
|
62
62
|
now() {
|
|
63
|
-
return
|
|
63
|
+
return dn();
|
|
64
64
|
}
|
|
65
|
-
}, n && n.on(
|
|
65
|
+
}, n && n.on(ln, (i, o) => {
|
|
66
66
|
i === this.plugin.id && this.fallbacks.setSettings(o);
|
|
67
67
|
}), this.proxiedOn = new Proxy({}, {
|
|
68
68
|
get: (i, o) => this.target ? this.target.on[o] : (...c) => {
|
|
@@ -94,12 +94,12 @@ class mn {
|
|
|
94
94
|
n.resolve(await this.target[n.method](...n.args));
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
const n = e, s =
|
|
97
|
+
function pt(e, t) {
|
|
98
|
+
const n = e, s = mt(), r = an(), a = on && n.enableEarlyProxy;
|
|
99
99
|
if (r && (s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
|
|
100
|
-
r.emit(
|
|
100
|
+
r.emit(cn, e, t);
|
|
101
101
|
else {
|
|
102
|
-
const i = a ? new
|
|
102
|
+
const i = a ? new fn(n, r) : null;
|
|
103
103
|
(s.__VUE_DEVTOOLS_PLUGINS__ = s.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
104
104
|
pluginDescriptor: n,
|
|
105
105
|
setupFn: t,
|
|
@@ -108,30 +108,30 @@ function vt(e, t) {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
/*!
|
|
111
|
-
* pinia v2.
|
|
112
|
-
* (c)
|
|
111
|
+
* pinia v2.2.0
|
|
112
|
+
* (c) 2024 Eduardo San Martin Morote
|
|
113
113
|
* @license MIT
|
|
114
114
|
*/
|
|
115
|
-
const
|
|
115
|
+
const mn = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
|
|
116
116
|
/* istanbul ignore next */
|
|
117
117
|
Symbol()
|
|
118
118
|
);
|
|
119
|
-
var
|
|
119
|
+
var Z;
|
|
120
120
|
(function(e) {
|
|
121
121
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
122
|
-
})(
|
|
123
|
-
const
|
|
124
|
-
function
|
|
122
|
+
})(Z || (Z = {}));
|
|
123
|
+
const vt = typeof window < "u", qe = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
|
|
124
|
+
function pn(e, { autoBom: t = !1 } = {}) {
|
|
125
125
|
return t && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function Fe(e, t, n) {
|
|
128
128
|
const s = new XMLHttpRequest();
|
|
129
129
|
s.open("GET", e), s.responseType = "blob", s.onload = function() {
|
|
130
|
-
|
|
130
|
+
wt(s.response, t, n);
|
|
131
131
|
}, s.onerror = function() {
|
|
132
132
|
}, s.send();
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function gt(e) {
|
|
135
135
|
const t = new XMLHttpRequest();
|
|
136
136
|
t.open("HEAD", e, !1);
|
|
137
137
|
try {
|
|
@@ -140,7 +140,7 @@ function ht(e) {
|
|
|
140
140
|
}
|
|
141
141
|
return t.status >= 200 && t.status <= 299;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function he(e) {
|
|
144
144
|
try {
|
|
145
145
|
e.dispatchEvent(new MouseEvent("click"));
|
|
146
146
|
} catch {
|
|
@@ -148,43 +148,43 @@ function ge(e) {
|
|
|
148
148
|
n.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(n);
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
const
|
|
151
|
+
const we = typeof navigator == "object" ? navigator : { userAgent: "" }, ht = /Macintosh/.test(we.userAgent) && /AppleWebKit/.test(we.userAgent) && !/Safari/.test(we.userAgent), wt = vt ? (
|
|
152
152
|
// Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
|
|
153
|
-
typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !
|
|
153
|
+
typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !ht ? vn : (
|
|
154
154
|
// Use msSaveOrOpenBlob as a second approach
|
|
155
|
-
"msSaveOrOpenBlob" in
|
|
155
|
+
"msSaveOrOpenBlob" in we ? gn : (
|
|
156
156
|
// Fallback to using FileReader and a popup
|
|
157
|
-
|
|
157
|
+
hn
|
|
158
158
|
)
|
|
159
159
|
)
|
|
160
160
|
) : () => {
|
|
161
161
|
};
|
|
162
|
-
function
|
|
162
|
+
function vn(e, t = "download", n) {
|
|
163
163
|
const s = document.createElement("a");
|
|
164
|
-
s.download = t, s.rel = "noopener", typeof e == "string" ? (s.href = e, s.origin !== location.origin ?
|
|
164
|
+
s.download = t, s.rel = "noopener", typeof e == "string" ? (s.href = e, s.origin !== location.origin ? gt(s.href) ? Fe(e, t, n) : (s.target = "_blank", he(s)) : he(s)) : (s.href = URL.createObjectURL(e), setTimeout(function() {
|
|
165
165
|
URL.revokeObjectURL(s.href);
|
|
166
166
|
}, 4e4), setTimeout(function() {
|
|
167
|
-
|
|
167
|
+
he(s);
|
|
168
168
|
}, 0));
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function gn(e, t = "download", n) {
|
|
171
171
|
if (typeof e == "string")
|
|
172
|
-
if (
|
|
173
|
-
|
|
172
|
+
if (gt(e))
|
|
173
|
+
Fe(e, t, n);
|
|
174
174
|
else {
|
|
175
175
|
const s = document.createElement("a");
|
|
176
176
|
s.href = e, s.target = "_blank", setTimeout(function() {
|
|
177
|
-
|
|
177
|
+
he(s);
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
180
|
else
|
|
181
|
-
navigator.msSaveOrOpenBlob(
|
|
181
|
+
navigator.msSaveOrOpenBlob(pn(e, n), t);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function hn(e, t, n, s) {
|
|
184
184
|
if (s = s || open("", "_blank"), s && (s.document.title = s.document.body.innerText = "downloading..."), typeof e == "string")
|
|
185
|
-
return
|
|
186
|
-
const r = e.type === "application/octet-stream", a = /constructor/i.test(String(
|
|
187
|
-
if ((i || r && a ||
|
|
185
|
+
return Fe(e, t, n);
|
|
186
|
+
const r = e.type === "application/octet-stream", a = /constructor/i.test(String(qe.HTMLElement)) || "safari" in qe, i = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
187
|
+
if ((i || r && a || ht) && typeof FileReader < "u") {
|
|
188
188
|
const o = new FileReader();
|
|
189
189
|
o.onloadend = function() {
|
|
190
190
|
let c = o.result;
|
|
@@ -199,51 +199,51 @@ function wn(e, t, n, s) {
|
|
|
199
199
|
}, 4e4);
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function E(e, t) {
|
|
203
203
|
const n = "🍍 " + e;
|
|
204
204
|
typeof __VUE_DEVTOOLS_TOAST__ == "function" && __VUE_DEVTOOLS_TOAST__(n, t);
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function je(e) {
|
|
207
207
|
return "_a" in e && "install" in e;
|
|
208
208
|
}
|
|
209
209
|
function _t() {
|
|
210
210
|
if (!("clipboard" in navigator))
|
|
211
|
-
return
|
|
211
|
+
return E("Your browser doesn't support the Clipboard API", "error"), !0;
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (
|
|
213
|
+
function yt(e) {
|
|
214
|
+
return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (E('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
|
|
215
215
|
}
|
|
216
|
-
async function
|
|
216
|
+
async function wn(e) {
|
|
217
217
|
if (!_t())
|
|
218
218
|
try {
|
|
219
|
-
await navigator.clipboard.writeText(JSON.stringify(e.state.value)),
|
|
219
|
+
await navigator.clipboard.writeText(JSON.stringify(e.state.value)), E("Global state copied to clipboard.");
|
|
220
220
|
} catch (t) {
|
|
221
|
-
if (
|
|
221
|
+
if (yt(t))
|
|
222
222
|
return;
|
|
223
|
-
|
|
223
|
+
E("Failed to serialize the state. Check the console for more details.", "error");
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
async function _n(e) {
|
|
227
227
|
if (!_t())
|
|
228
228
|
try {
|
|
229
|
-
|
|
229
|
+
bt(e, JSON.parse(await navigator.clipboard.readText())), E("Global state pasted from clipboard.");
|
|
230
230
|
} catch (t) {
|
|
231
|
-
if (
|
|
231
|
+
if (yt(t))
|
|
232
232
|
return;
|
|
233
|
-
|
|
233
|
+
E("Failed to deserialize the state from clipboard. Check the console for more details.", "error");
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
|
-
async function
|
|
236
|
+
async function yn(e) {
|
|
237
237
|
try {
|
|
238
|
-
|
|
238
|
+
wt(new Blob([JSON.stringify(e.state.value)], {
|
|
239
239
|
type: "text/plain;charset=utf-8"
|
|
240
240
|
}), "pinia-state.json");
|
|
241
241
|
} catch {
|
|
242
|
-
|
|
242
|
+
E("Failed to export the state as JSON. Check the console for more details.", "error");
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
let B;
|
|
246
|
-
function
|
|
246
|
+
function bn() {
|
|
247
247
|
B || (B = document.createElement("input"), B.type = "file", B.accept = ".json");
|
|
248
248
|
function e() {
|
|
249
249
|
return new Promise((t, n) => {
|
|
@@ -258,42 +258,42 @@ function An() {
|
|
|
258
258
|
}
|
|
259
259
|
return e;
|
|
260
260
|
}
|
|
261
|
-
async function
|
|
261
|
+
async function An(e) {
|
|
262
262
|
try {
|
|
263
|
-
const n = await
|
|
263
|
+
const n = await bn()();
|
|
264
264
|
if (!n)
|
|
265
265
|
return;
|
|
266
266
|
const { text: s, file: r } = n;
|
|
267
|
-
|
|
267
|
+
bt(e, JSON.parse(s)), E(`Global state imported from "${r.name}".`);
|
|
268
268
|
} catch {
|
|
269
|
-
|
|
269
|
+
E("Failed to import the state from JSON. Check the console for more details.", "error");
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function bt(e, t) {
|
|
273
273
|
for (const n in t) {
|
|
274
274
|
const s = e.state.value[n];
|
|
275
275
|
s ? Object.assign(s, t[n]) : e.state.value[n] = t[n];
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function x(e) {
|
|
279
279
|
return {
|
|
280
280
|
_custom: {
|
|
281
281
|
display: e
|
|
282
282
|
}
|
|
283
283
|
};
|
|
284
284
|
}
|
|
285
|
-
const
|
|
286
|
-
function
|
|
287
|
-
return
|
|
288
|
-
id:
|
|
289
|
-
label:
|
|
285
|
+
const At = "🍍 Pinia (root)", _e = "_root";
|
|
286
|
+
function In(e) {
|
|
287
|
+
return je(e) ? {
|
|
288
|
+
id: _e,
|
|
289
|
+
label: At
|
|
290
290
|
} : {
|
|
291
291
|
id: e.$id,
|
|
292
292
|
label: e.$id
|
|
293
293
|
};
|
|
294
294
|
}
|
|
295
|
-
function
|
|
296
|
-
if (
|
|
295
|
+
function Sn(e) {
|
|
296
|
+
if (je(e)) {
|
|
297
297
|
const n = Array.from(e._s.keys()), s = e._s;
|
|
298
298
|
return {
|
|
299
299
|
state: n.map((a) => ({
|
|
@@ -328,45 +328,45 @@ function Ln(e) {
|
|
|
328
328
|
value: e[n]
|
|
329
329
|
}))), t;
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function Ln(e) {
|
|
332
332
|
return e ? Array.isArray(e) ? e.reduce((t, n) => (t.keys.push(n.key), t.operations.push(n.type), t.oldValue[n.key] = n.oldValue, t.newValue[n.key] = n.newValue, t), {
|
|
333
333
|
oldValue: {},
|
|
334
334
|
keys: [],
|
|
335
335
|
operations: [],
|
|
336
336
|
newValue: {}
|
|
337
337
|
}) : {
|
|
338
|
-
operation:
|
|
339
|
-
key:
|
|
338
|
+
operation: x(e.type),
|
|
339
|
+
key: x(e.key),
|
|
340
340
|
oldValue: e.oldValue,
|
|
341
341
|
newValue: e.newValue
|
|
342
342
|
} : {};
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function En(e) {
|
|
345
345
|
switch (e) {
|
|
346
|
-
case
|
|
346
|
+
case Z.direct:
|
|
347
347
|
return "mutation";
|
|
348
|
-
case
|
|
348
|
+
case Z.patchFunction:
|
|
349
349
|
return "$patch";
|
|
350
|
-
case
|
|
350
|
+
case Z.patchObject:
|
|
351
351
|
return "$patch";
|
|
352
352
|
default:
|
|
353
353
|
return "unknown";
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
|
-
let
|
|
357
|
-
const
|
|
358
|
-
function
|
|
359
|
-
|
|
356
|
+
let oe = !0;
|
|
357
|
+
const ye = [], Y = "pinia:mutations", O = "pinia", { assign: Tn } = Object, Se = (e) => "🍍 " + e;
|
|
358
|
+
function Cn(e, t) {
|
|
359
|
+
pt({
|
|
360
360
|
id: "dev.esm.pinia",
|
|
361
361
|
label: "Pinia 🍍",
|
|
362
362
|
logo: "https://pinia.vuejs.org/logo.svg",
|
|
363
363
|
packageName: "pinia",
|
|
364
364
|
homepage: "https://pinia.vuejs.org",
|
|
365
|
-
componentStateTypes:
|
|
365
|
+
componentStateTypes: ye,
|
|
366
366
|
app: e
|
|
367
367
|
}, (n) => {
|
|
368
|
-
typeof n.now != "function" &&
|
|
369
|
-
id:
|
|
368
|
+
typeof n.now != "function" && E("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), n.addTimelineLayer({
|
|
369
|
+
id: Y,
|
|
370
370
|
label: "Pinia 🍍",
|
|
371
371
|
color: 15064968
|
|
372
372
|
}), n.addInspector({
|
|
@@ -378,7 +378,7 @@ function Mn(e, t) {
|
|
|
378
378
|
{
|
|
379
379
|
icon: "content_copy",
|
|
380
380
|
action: () => {
|
|
381
|
-
|
|
381
|
+
wn(t);
|
|
382
382
|
},
|
|
383
383
|
tooltip: "Serialize and copy the state"
|
|
384
384
|
},
|
|
@@ -392,14 +392,14 @@ function Mn(e, t) {
|
|
|
392
392
|
{
|
|
393
393
|
icon: "save",
|
|
394
394
|
action: () => {
|
|
395
|
-
|
|
395
|
+
yn(t);
|
|
396
396
|
},
|
|
397
397
|
tooltip: "Save the state as a JSON file"
|
|
398
398
|
},
|
|
399
399
|
{
|
|
400
400
|
icon: "folder_open",
|
|
401
401
|
action: async () => {
|
|
402
|
-
await
|
|
402
|
+
await An(t), n.sendInspectorTree(O), n.sendInspectorState(O);
|
|
403
403
|
},
|
|
404
404
|
tooltip: "Import the state from a JSON file"
|
|
405
405
|
}
|
|
@@ -410,7 +410,7 @@ function Mn(e, t) {
|
|
|
410
410
|
tooltip: 'Reset the state (with "$reset")',
|
|
411
411
|
action: (s) => {
|
|
412
412
|
const r = t._s.get(s);
|
|
413
|
-
r ? typeof r.$reset != "function" ?
|
|
413
|
+
r ? typeof r.$reset != "function" ? E(`Cannot reset "${s}" store because it doesn't have a "$reset" method implemented.`, "warn") : (r.$reset(), E(`Store "${s}" reset.`)) : E(`Cannot reset "${s}" store because it wasn't found.`, "warn");
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
]
|
|
@@ -420,12 +420,12 @@ function Mn(e, t) {
|
|
|
420
420
|
const i = s.componentInstance.proxy._pStores;
|
|
421
421
|
Object.values(i).forEach((o) => {
|
|
422
422
|
s.instanceData.state.push({
|
|
423
|
-
type:
|
|
423
|
+
type: Se(o.$id),
|
|
424
424
|
key: "state",
|
|
425
425
|
editable: !0,
|
|
426
426
|
value: o._isOptionsAPI ? {
|
|
427
427
|
_custom: {
|
|
428
|
-
value:
|
|
428
|
+
value: Ae(o.$state),
|
|
429
429
|
actions: [
|
|
430
430
|
{
|
|
431
431
|
icon: "restore",
|
|
@@ -439,7 +439,7 @@ function Mn(e, t) {
|
|
|
439
439
|
Object.keys(o.$state).reduce((c, l) => (c[l] = o.$state[l], c), {})
|
|
440
440
|
)
|
|
441
441
|
}), o._getters && o._getters.length && s.instanceData.state.push({
|
|
442
|
-
type:
|
|
442
|
+
type: Se(o.$id),
|
|
443
443
|
key: "getters",
|
|
444
444
|
editable: !1,
|
|
445
445
|
value: o._getters.reduce((c, l) => {
|
|
@@ -456,46 +456,46 @@ function Mn(e, t) {
|
|
|
456
456
|
}), n.on.getInspectorTree((s) => {
|
|
457
457
|
if (s.app === e && s.inspectorId === O) {
|
|
458
458
|
let r = [t];
|
|
459
|
-
r = r.concat(Array.from(t._s.values())), s.rootNodes = (s.filter ? r.filter((a) => "$id" in a ? a.$id.toLowerCase().includes(s.filter.toLowerCase()) :
|
|
459
|
+
r = r.concat(Array.from(t._s.values())), s.rootNodes = (s.filter ? r.filter((a) => "$id" in a ? a.$id.toLowerCase().includes(s.filter.toLowerCase()) : At.toLowerCase().includes(s.filter.toLowerCase())) : r).map(In);
|
|
460
460
|
}
|
|
461
|
-
}), n.on.getInspectorState((s) => {
|
|
461
|
+
}), globalThis.$pinia = t, n.on.getInspectorState((s) => {
|
|
462
462
|
if (s.app === e && s.inspectorId === O) {
|
|
463
|
-
const r = s.nodeId ===
|
|
463
|
+
const r = s.nodeId === _e ? t : t._s.get(s.nodeId);
|
|
464
464
|
if (!r)
|
|
465
465
|
return;
|
|
466
|
-
r && (s.state =
|
|
466
|
+
r && (s.nodeId !== _e && (globalThis.$store = Ae(r)), s.state = Sn(r));
|
|
467
467
|
}
|
|
468
468
|
}), n.on.editInspectorState((s, r) => {
|
|
469
469
|
if (s.app === e && s.inspectorId === O) {
|
|
470
|
-
const a = s.nodeId ===
|
|
470
|
+
const a = s.nodeId === _e ? t : t._s.get(s.nodeId);
|
|
471
471
|
if (!a)
|
|
472
|
-
return
|
|
472
|
+
return E(`store "${s.nodeId}" not found`, "error");
|
|
473
473
|
const { path: i } = s;
|
|
474
|
-
|
|
474
|
+
je(a) ? i.unshift("state") : (i.length !== 1 || !a._customProperties.has(i[0]) || i[0] in a.$state) && i.unshift("$state"), oe = !1, s.set(a, i, s.state.value), oe = !0;
|
|
475
475
|
}
|
|
476
476
|
}), n.on.editComponentState((s) => {
|
|
477
477
|
if (s.type.startsWith("🍍")) {
|
|
478
478
|
const r = s.type.replace(/^🍍\s*/, ""), a = t._s.get(r);
|
|
479
479
|
if (!a)
|
|
480
|
-
return
|
|
480
|
+
return E(`store "${r}" not found`, "error");
|
|
481
481
|
const { path: i } = s;
|
|
482
482
|
if (i[0] !== "state")
|
|
483
|
-
return
|
|
483
|
+
return E(`Invalid path for store "${r}":
|
|
484
484
|
${i}
|
|
485
485
|
Only state can be modified.`);
|
|
486
|
-
i[0] = "$state",
|
|
486
|
+
i[0] = "$state", oe = !1, s.set(a, i, s.state.value), oe = !0;
|
|
487
487
|
}
|
|
488
488
|
});
|
|
489
489
|
});
|
|
490
490
|
}
|
|
491
|
-
function
|
|
492
|
-
|
|
491
|
+
function Mn(e, t) {
|
|
492
|
+
ye.includes(Se(t.$id)) || ye.push(Se(t.$id)), pt({
|
|
493
493
|
id: "dev.esm.pinia",
|
|
494
494
|
label: "Pinia 🍍",
|
|
495
495
|
logo: "https://pinia.vuejs.org/logo.svg",
|
|
496
496
|
packageName: "pinia",
|
|
497
497
|
homepage: "https://pinia.vuejs.org",
|
|
498
|
-
componentStateTypes:
|
|
498
|
+
componentStateTypes: ye,
|
|
499
499
|
app: e,
|
|
500
500
|
settings: {
|
|
501
501
|
logStoreChanges: {
|
|
@@ -512,30 +512,30 @@ function On(e, t) {
|
|
|
512
512
|
}, (n) => {
|
|
513
513
|
const s = typeof n.now == "function" ? n.now.bind(n) : Date.now;
|
|
514
514
|
t.$onAction(({ after: i, onError: o, name: c, args: l }) => {
|
|
515
|
-
const u =
|
|
515
|
+
const u = It++;
|
|
516
516
|
n.addTimelineEvent({
|
|
517
|
-
layerId:
|
|
517
|
+
layerId: Y,
|
|
518
518
|
event: {
|
|
519
519
|
time: s(),
|
|
520
520
|
title: "🛫 " + c,
|
|
521
521
|
subtitle: "start",
|
|
522
522
|
data: {
|
|
523
|
-
store:
|
|
524
|
-
action:
|
|
523
|
+
store: x(t.$id),
|
|
524
|
+
action: x(c),
|
|
525
525
|
args: l
|
|
526
526
|
},
|
|
527
527
|
groupId: u
|
|
528
528
|
}
|
|
529
529
|
}), i((d) => {
|
|
530
|
-
|
|
531
|
-
layerId:
|
|
530
|
+
J = void 0, n.addTimelineEvent({
|
|
531
|
+
layerId: Y,
|
|
532
532
|
event: {
|
|
533
533
|
time: s(),
|
|
534
534
|
title: "🛬 " + c,
|
|
535
535
|
subtitle: "end",
|
|
536
536
|
data: {
|
|
537
|
-
store:
|
|
538
|
-
action:
|
|
537
|
+
store: x(t.$id),
|
|
538
|
+
action: x(c),
|
|
539
539
|
args: l,
|
|
540
540
|
result: d
|
|
541
541
|
},
|
|
@@ -543,16 +543,16 @@ function On(e, t) {
|
|
|
543
543
|
}
|
|
544
544
|
});
|
|
545
545
|
}), o((d) => {
|
|
546
|
-
|
|
547
|
-
layerId:
|
|
546
|
+
J = void 0, n.addTimelineEvent({
|
|
547
|
+
layerId: Y,
|
|
548
548
|
event: {
|
|
549
549
|
time: s(),
|
|
550
550
|
logType: "error",
|
|
551
551
|
title: "💥 " + c,
|
|
552
552
|
subtitle: "end",
|
|
553
553
|
data: {
|
|
554
|
-
store:
|
|
555
|
-
action:
|
|
554
|
+
store: x(t.$id),
|
|
555
|
+
action: x(c),
|
|
556
556
|
args: l,
|
|
557
557
|
error: d
|
|
558
558
|
},
|
|
@@ -561,9 +561,9 @@ function On(e, t) {
|
|
|
561
561
|
});
|
|
562
562
|
});
|
|
563
563
|
}, !0), t._customProperties.forEach((i) => {
|
|
564
|
-
|
|
565
|
-
n.notifyComponentUpdate(), n.sendInspectorState(O),
|
|
566
|
-
layerId:
|
|
564
|
+
V(() => b(t[i]), (o, c) => {
|
|
565
|
+
n.notifyComponentUpdate(), n.sendInspectorState(O), oe && n.addTimelineEvent({
|
|
566
|
+
layerId: Y,
|
|
567
567
|
event: {
|
|
568
568
|
time: s(),
|
|
569
569
|
title: "Change",
|
|
@@ -572,20 +572,20 @@ function On(e, t) {
|
|
|
572
572
|
newValue: o,
|
|
573
573
|
oldValue: c
|
|
574
574
|
},
|
|
575
|
-
groupId:
|
|
575
|
+
groupId: J
|
|
576
576
|
}
|
|
577
577
|
});
|
|
578
578
|
}, { deep: !0 });
|
|
579
579
|
}), t.$subscribe(({ events: i, type: o }, c) => {
|
|
580
|
-
if (n.notifyComponentUpdate(), n.sendInspectorState(O), !
|
|
580
|
+
if (n.notifyComponentUpdate(), n.sendInspectorState(O), !oe)
|
|
581
581
|
return;
|
|
582
582
|
const l = {
|
|
583
583
|
time: s(),
|
|
584
|
-
title:
|
|
585
|
-
data:
|
|
586
|
-
groupId:
|
|
584
|
+
title: En(o),
|
|
585
|
+
data: Tn({ store: x(t.$id) }, Ln(i)),
|
|
586
|
+
groupId: J
|
|
587
587
|
};
|
|
588
|
-
o ===
|
|
588
|
+
o === Z.patchFunction ? l.subtitle = "⤵️" : o === Z.patchObject ? l.subtitle = "🧩" : i && !Array.isArray(i) && (l.subtitle = i.type), i && (l.data["rawEvent(s)"] = {
|
|
589
589
|
_custom: {
|
|
590
590
|
display: "DebuggerEvent",
|
|
591
591
|
type: "object",
|
|
@@ -593,71 +593,74 @@ function On(e, t) {
|
|
|
593
593
|
value: i
|
|
594
594
|
}
|
|
595
595
|
}), n.addTimelineEvent({
|
|
596
|
-
layerId:
|
|
596
|
+
layerId: Y,
|
|
597
597
|
event: l
|
|
598
598
|
});
|
|
599
599
|
}, { detached: !0, flush: "sync" });
|
|
600
600
|
const r = t._hotUpdate;
|
|
601
|
-
t._hotUpdate =
|
|
601
|
+
t._hotUpdate = lt((i) => {
|
|
602
602
|
r(i), n.addTimelineEvent({
|
|
603
|
-
layerId:
|
|
603
|
+
layerId: Y,
|
|
604
604
|
event: {
|
|
605
605
|
time: s(),
|
|
606
606
|
title: "🔥 " + t.$id,
|
|
607
607
|
subtitle: "HMR update",
|
|
608
608
|
data: {
|
|
609
|
-
store:
|
|
610
|
-
info:
|
|
609
|
+
store: x(t.$id),
|
|
610
|
+
info: x("HMR update")
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
613
|
}), n.notifyComponentUpdate(), n.sendInspectorTree(O), n.sendInspectorState(O);
|
|
614
614
|
});
|
|
615
615
|
const { $dispose: a } = t;
|
|
616
616
|
t.$dispose = () => {
|
|
617
|
-
a(), n.notifyComponentUpdate(), n.sendInspectorTree(O), n.sendInspectorState(O), n.getSettings().logStoreChanges &&
|
|
618
|
-
}, n.notifyComponentUpdate(), n.sendInspectorTree(O), n.sendInspectorState(O), n.getSettings().logStoreChanges &&
|
|
617
|
+
a(), n.notifyComponentUpdate(), n.sendInspectorTree(O), n.sendInspectorState(O), n.getSettings().logStoreChanges && E(`Disposed "${t.$id}" store 🗑`);
|
|
618
|
+
}, n.notifyComponentUpdate(), n.sendInspectorTree(O), n.sendInspectorState(O), n.getSettings().logStoreChanges && E(`"${t.$id}" store installed 🆕`);
|
|
619
619
|
});
|
|
620
620
|
}
|
|
621
|
-
let
|
|
622
|
-
function
|
|
623
|
-
const s = t.reduce((r, a) => (r[a] =
|
|
621
|
+
let It = 0, J;
|
|
622
|
+
function Je(e, t, n) {
|
|
623
|
+
const s = t.reduce((r, a) => (r[a] = Ae(e)[a], r), {});
|
|
624
624
|
for (const r in s)
|
|
625
625
|
e[r] = function() {
|
|
626
|
-
const a =
|
|
626
|
+
const a = It, i = n ? new Proxy(e, {
|
|
627
627
|
get(...c) {
|
|
628
|
-
return
|
|
628
|
+
return J = a, Reflect.get(...c);
|
|
629
629
|
},
|
|
630
630
|
set(...c) {
|
|
631
|
-
return
|
|
631
|
+
return J = a, Reflect.set(...c);
|
|
632
632
|
}
|
|
633
633
|
}) : e;
|
|
634
|
-
|
|
634
|
+
J = a;
|
|
635
635
|
const o = s[r].apply(i, arguments);
|
|
636
|
-
return
|
|
636
|
+
return J = void 0, o;
|
|
637
637
|
};
|
|
638
638
|
}
|
|
639
|
-
function
|
|
640
|
-
if (t.$id.startsWith("__hot:"))
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
639
|
+
function On({ app: e, store: t, options: n }) {
|
|
640
|
+
if (!t.$id.startsWith("__hot:")) {
|
|
641
|
+
if (t._isOptionsAPI = !!n.state, !t._p._testing) {
|
|
642
|
+
Je(t, Object.keys(n.actions), t._isOptionsAPI);
|
|
643
|
+
const s = t._hotUpdate;
|
|
644
|
+
Ae(t)._hotUpdate = function(r) {
|
|
645
|
+
s.apply(this, arguments), Je(t, Object.keys(r._hmrPayload.actions), !!t._isOptionsAPI);
|
|
646
|
+
};
|
|
647
|
+
}
|
|
648
|
+
Mn(
|
|
649
|
+
e,
|
|
650
|
+
// FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
|
|
651
|
+
t
|
|
652
|
+
);
|
|
653
|
+
}
|
|
651
654
|
}
|
|
652
|
-
function
|
|
653
|
-
const e =
|
|
655
|
+
function Pn() {
|
|
656
|
+
const e = Pt(!0), t = e.run(() => I({}));
|
|
654
657
|
let n = [], s = [];
|
|
655
|
-
const r =
|
|
658
|
+
const r = lt({
|
|
656
659
|
install(a) {
|
|
657
|
-
r._a = a, a.provide(
|
|
660
|
+
r._a = a, a.provide(mn, r), a.config.globalProperties.$pinia = r, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && vt && Cn(a, r), s.forEach((i) => n.push(i)), s = [];
|
|
658
661
|
},
|
|
659
662
|
use(a) {
|
|
660
|
-
return !this._a && !
|
|
663
|
+
return !this._a && !rn ? s.push(a) : n.push(a), this;
|
|
661
664
|
},
|
|
662
665
|
_p: n,
|
|
663
666
|
// it's actually undefined here
|
|
@@ -667,35 +670,35 @@ function kn() {
|
|
|
667
670
|
_s: /* @__PURE__ */ new Map(),
|
|
668
671
|
state: t
|
|
669
672
|
});
|
|
670
|
-
return
|
|
673
|
+
return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof Proxy < "u" && r.use(On), r;
|
|
671
674
|
}
|
|
672
675
|
process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
|
|
673
676
|
/* istanbul ignore next */
|
|
674
677
|
Symbol()
|
|
675
678
|
);
|
|
676
|
-
function
|
|
679
|
+
function kn(e) {
|
|
677
680
|
return typeof e == "object" && e !== null;
|
|
678
681
|
}
|
|
679
|
-
function
|
|
680
|
-
return e =
|
|
682
|
+
function Ke(e, t) {
|
|
683
|
+
return e = kn(e) ? e : /* @__PURE__ */ Object.create(null), new Proxy(e, {
|
|
681
684
|
get(n, s, r) {
|
|
682
685
|
return s === "key" ? Reflect.get(n, s, r) : Reflect.get(n, s, r) || Reflect.get(t, s, r);
|
|
683
686
|
}
|
|
684
687
|
});
|
|
685
688
|
}
|
|
686
|
-
function
|
|
689
|
+
function Rn(e, t) {
|
|
687
690
|
return t.reduce((n, s) => n == null ? void 0 : n[s], e);
|
|
688
691
|
}
|
|
689
|
-
function
|
|
692
|
+
function $n(e, t, n) {
|
|
690
693
|
return t.slice(0, -1).reduce((s, r) => /^(__proto__)$/.test(r) ? {} : s[r] = s[r] || {}, e)[t[t.length - 1]] = n, e;
|
|
691
694
|
}
|
|
692
|
-
function
|
|
695
|
+
function Dn(e, t) {
|
|
693
696
|
return t.reduce((n, s) => {
|
|
694
697
|
const r = s.split(".");
|
|
695
|
-
return
|
|
698
|
+
return $n(n, r, Rn(e, r));
|
|
696
699
|
}, {});
|
|
697
700
|
}
|
|
698
|
-
function
|
|
701
|
+
function Nn(e, t) {
|
|
699
702
|
return (n) => {
|
|
700
703
|
var s;
|
|
701
704
|
try {
|
|
@@ -725,21 +728,21 @@ function Vn(e, t) {
|
|
|
725
728
|
}
|
|
726
729
|
};
|
|
727
730
|
}
|
|
728
|
-
function
|
|
731
|
+
function Ye(e, { storage: t, serializer: n, key: s, debug: r }) {
|
|
729
732
|
try {
|
|
730
733
|
const a = t == null ? void 0 : t.getItem(s);
|
|
731
734
|
a && e.$patch(n == null ? void 0 : n.deserialize(a));
|
|
732
735
|
} catch {
|
|
733
736
|
}
|
|
734
737
|
}
|
|
735
|
-
function
|
|
738
|
+
function Xe(e, { storage: t, serializer: n, key: s, paths: r, debug: a }) {
|
|
736
739
|
try {
|
|
737
|
-
const i = Array.isArray(r) ?
|
|
740
|
+
const i = Array.isArray(r) ? Dn(e, r) : e;
|
|
738
741
|
t.setItem(s, n.serialize(i));
|
|
739
742
|
} catch {
|
|
740
743
|
}
|
|
741
744
|
}
|
|
742
|
-
function
|
|
745
|
+
function Vn(e = {}) {
|
|
743
746
|
return (t) => {
|
|
744
747
|
const { auto: n = !1 } = e, {
|
|
745
748
|
options: { persist: s = n },
|
|
@@ -753,21 +756,21 @@ function xn(e = {}) {
|
|
|
753
756
|
o && Promise.resolve().then(() => o.$persist());
|
|
754
757
|
return;
|
|
755
758
|
}
|
|
756
|
-
const i = (Array.isArray(s) ? s.map((o) =>
|
|
759
|
+
const i = (Array.isArray(s) ? s.map((o) => Ke(o, e)) : [Ke(s, e)]).map(Nn(e, r)).filter(Boolean);
|
|
757
760
|
r.$persist = () => {
|
|
758
761
|
i.forEach((o) => {
|
|
759
|
-
|
|
762
|
+
Xe(r.$state, o);
|
|
760
763
|
});
|
|
761
764
|
}, r.$hydrate = ({ runHooks: o = !0 } = {}) => {
|
|
762
765
|
i.forEach((c) => {
|
|
763
766
|
const { beforeRestore: l, afterRestore: u } = c;
|
|
764
|
-
o && (l == null || l(t)),
|
|
767
|
+
o && (l == null || l(t)), Ye(r, c), o && (u == null || u(t));
|
|
765
768
|
});
|
|
766
769
|
}, i.forEach((o) => {
|
|
767
770
|
const { beforeRestore: c, afterRestore: l } = o;
|
|
768
|
-
c == null || c(t),
|
|
771
|
+
c == null || c(t), Ye(r, o), l == null || l(t), r.$subscribe(
|
|
769
772
|
(u, d) => {
|
|
770
|
-
|
|
773
|
+
Xe(d, o);
|
|
771
774
|
},
|
|
772
775
|
{
|
|
773
776
|
detached: !0
|
|
@@ -776,56 +779,56 @@ function xn(e = {}) {
|
|
|
776
779
|
});
|
|
777
780
|
};
|
|
778
781
|
}
|
|
779
|
-
var
|
|
780
|
-
const
|
|
781
|
-
|
|
782
|
-
const
|
|
782
|
+
var xn = Vn();
|
|
783
|
+
const Ve = Pn();
|
|
784
|
+
Ve.use(xn);
|
|
785
|
+
const Fn = (e) => {
|
|
783
786
|
var i, o, c;
|
|
784
787
|
const t = ((i = e == null ? void 0 : e.router) == null ? void 0 : i.routerBase) ?? "/", n = ((o = e == null ? void 0 : e.router) == null ? void 0 : o.options) || {}, r = Object.values(((c = e == null ? void 0 : e.router) == null ? void 0 : c.glob) || []).filter((l) => !!l).flat().sort((l, u) => (l.index ?? 0) - (u.index ?? 0)).map((l) => {
|
|
785
788
|
const u = l.meta || {};
|
|
786
789
|
return u.keepAlive = u.keepAlive ?? e.keepAlive ?? !0, { ...l, meta: u };
|
|
787
790
|
});
|
|
788
|
-
return { router:
|
|
789
|
-
},
|
|
790
|
-
e || (e = {}), e = { ...e, ...
|
|
791
|
-
const t =
|
|
792
|
-
Promise.all([
|
|
791
|
+
return { router: Kt({ history: Yt(t), routes: r, ...n }) };
|
|
792
|
+
}, jn = () => window.config || {}, er = (e) => {
|
|
793
|
+
e || (e = {}), e = { ...e, ...jn() };
|
|
794
|
+
const t = I(!0);
|
|
795
|
+
Promise.all([Bt(e), Wt(e)]).then(() => {
|
|
793
796
|
t.value = !1;
|
|
794
797
|
});
|
|
795
|
-
const { container: n, component: s, props: r } = (e == null ? void 0 : e.root) || {}, a =
|
|
796
|
-
a.use(
|
|
797
|
-
const { router: i } =
|
|
798
|
-
return e.microApps && e.microApps.length > 0 &&
|
|
799
|
-
},
|
|
798
|
+
const { container: n, component: s, props: r } = (e == null ? void 0 : e.root) || {}, a = kt(s || dt, r);
|
|
799
|
+
a.use(sn, e), a.use(Ve);
|
|
800
|
+
const { router: i } = Fn(e);
|
|
801
|
+
return e.microApps && e.microApps.length > 0 && zt(e, i), e.microAppName && Gt(e, i), a.use(i), a.mount(n || "#app"), { app: a, router: i, loading: t, store: Ve };
|
|
802
|
+
}, St = te({}), Lt = te({}), Le = I("zh-CN"), Un = "dasI18n", Ze = (e, t) => {
|
|
800
803
|
const n = t === "global", s = !n;
|
|
801
804
|
for (const r in e)
|
|
802
|
-
n && (
|
|
803
|
-
},
|
|
805
|
+
n && (Lt[r] = e[r]), s && (St[r] = e[r]);
|
|
806
|
+
}, tr = async (e) => {
|
|
804
807
|
var s;
|
|
805
|
-
const t = window[
|
|
806
|
-
t &&
|
|
808
|
+
const t = window[Un];
|
|
809
|
+
t && Ze(t, "global");
|
|
807
810
|
const n = (s = e == null ? void 0 : e.i18n) == null ? void 0 : s.glob;
|
|
808
811
|
if (n) {
|
|
809
812
|
const r = Object.values(n).filter((a) => !!a).flat();
|
|
810
813
|
for (const a of r)
|
|
811
|
-
|
|
814
|
+
Ze(a);
|
|
812
815
|
}
|
|
813
816
|
}, Hn = (e, ...t) => p(() => {
|
|
814
|
-
const n =
|
|
817
|
+
const n = Lt[e] || St[e] || e;
|
|
815
818
|
if (n === e) return e;
|
|
816
|
-
let s = n[
|
|
817
|
-
return
|
|
819
|
+
let s = n[Le.value];
|
|
820
|
+
return Le.value === "zh-CN" && n["zh-cn"] && !n["zh-CN"] && (s = n["zh-cn"]), t.map((r, a) => {
|
|
818
821
|
s = s.replace(`$${a}`, r);
|
|
819
822
|
}), s;
|
|
820
|
-
}),
|
|
821
|
-
|
|
822
|
-
},
|
|
823
|
+
}), Bn = Hn, nr = (e, ...t) => Bn(e, ...t).value, sr = (e) => {
|
|
824
|
+
Le.value = e;
|
|
825
|
+
}, rr = () => Le, ie = I("light"), le = I({
|
|
823
826
|
light: {},
|
|
824
827
|
dark: {}
|
|
825
|
-
}),
|
|
828
|
+
}), ue = I({
|
|
826
829
|
light: {},
|
|
827
830
|
dark: {}
|
|
828
|
-
}),
|
|
831
|
+
}), Wn = "dasTheme", ve = "das-theme", zn = (e) => {
|
|
829
832
|
let t = {
|
|
830
833
|
light: {},
|
|
831
834
|
dark: {}
|
|
@@ -841,7 +844,7 @@ const jn = (e) => {
|
|
|
841
844
|
}
|
|
842
845
|
return t;
|
|
843
846
|
};
|
|
844
|
-
function
|
|
847
|
+
function Gn(e) {
|
|
845
848
|
const t = "das-global-theme", n = "das-custom-theme";
|
|
846
849
|
if (!document.getElementById(n)) {
|
|
847
850
|
const r = document.createElement("style");
|
|
@@ -855,35 +858,35 @@ function Qn(e) {
|
|
|
855
858
|
let s = document.getElementById(n);
|
|
856
859
|
return e === "global" && (s = document.getElementById(t)), s.sheet;
|
|
857
860
|
}
|
|
858
|
-
const
|
|
861
|
+
const et = (e, t) => {
|
|
859
862
|
t || (t = "custom");
|
|
860
|
-
const n =
|
|
863
|
+
const n = Gn(t), s = zn(e);
|
|
861
864
|
for (const a in s) {
|
|
862
865
|
const i = s[a];
|
|
863
866
|
for (const o in i) {
|
|
864
|
-
const c = i[o], l = `${
|
|
867
|
+
const c = i[o], l = `${ve}-${a}`;
|
|
865
868
|
n.insertRule(`.${l} { ${o}:${c} } `, n.cssRules.length);
|
|
866
869
|
}
|
|
867
|
-
t === "global" && (
|
|
870
|
+
t === "global" && (ue.value[a] || (ue.value[a] = {}), ue.value[a] = { ...ue.value[a], ...i }), t === "custom" && (le.value[a] || (le.value[a] = {}), le.value[a] = { ...le.value[a], ...i });
|
|
868
871
|
}
|
|
869
|
-
const r = `${
|
|
872
|
+
const r = `${ve}-${ie.value}`;
|
|
870
873
|
document.body.classList.contains(r) || document.body.classList.add(r);
|
|
871
|
-
},
|
|
874
|
+
}, ar = async (e) => {
|
|
872
875
|
var s;
|
|
873
|
-
const t = window[
|
|
874
|
-
t &&
|
|
876
|
+
const t = window[Wn];
|
|
877
|
+
t && et(t, "global");
|
|
875
878
|
const n = (s = e == null ? void 0 : e.theme) == null ? void 0 : s.glob;
|
|
876
879
|
if (n) {
|
|
877
880
|
const r = Object.values(n).filter((a) => !!a).flat();
|
|
878
881
|
for (const a of r)
|
|
879
|
-
|
|
882
|
+
et(a);
|
|
880
883
|
}
|
|
881
|
-
},
|
|
882
|
-
document.body.classList.add(`${
|
|
883
|
-
},
|
|
884
|
+
}, or = (e) => {
|
|
885
|
+
document.body.classList.add(`${ve}-light`), e === "light" && document.body.classList.remove(`${ve}-${ie.value}`), ie.value = e, document.body.classList.add(`${ve}-${ie.value}`);
|
|
886
|
+
}, Qn = (e) => p(() => {
|
|
884
887
|
var t, n, s, r;
|
|
885
|
-
return ((n = (t =
|
|
886
|
-
}),
|
|
888
|
+
return ((n = (t = ue.value) == null ? void 0 : t[ie.value]) == null ? void 0 : n[e]) || ((r = (s = le.value) == null ? void 0 : s[ie.value]) == null ? void 0 : r[e]) || e;
|
|
889
|
+
}), ir = (e) => `var(${e})`, cr = Qn, y = te({
|
|
887
890
|
visible: !1,
|
|
888
891
|
logo: "",
|
|
889
892
|
items: [],
|
|
@@ -894,51 +897,51 @@ const tt = (e, t) => {
|
|
|
894
897
|
// activeItem: '',
|
|
895
898
|
// activeProject: {},
|
|
896
899
|
eventListeners: {}
|
|
897
|
-
}),
|
|
900
|
+
}), qn = {
|
|
898
901
|
show: () => {
|
|
899
|
-
|
|
902
|
+
y.visible = !0;
|
|
900
903
|
},
|
|
901
904
|
hide: () => {
|
|
902
|
-
|
|
905
|
+
y.visible = !1;
|
|
903
906
|
},
|
|
904
907
|
setLogo: (e) => {
|
|
905
|
-
|
|
908
|
+
y.logo = e;
|
|
906
909
|
},
|
|
907
910
|
setItems: (e) => {
|
|
908
|
-
|
|
911
|
+
y.visible || (y.visible = !0), y.items = e;
|
|
909
912
|
},
|
|
910
|
-
getItems: () =>
|
|
913
|
+
getItems: () => y.items,
|
|
911
914
|
removeItem: (e) => {
|
|
912
|
-
const t =
|
|
913
|
-
|
|
915
|
+
const t = y.items.filter((n) => n.value !== e);
|
|
916
|
+
y.items = t;
|
|
914
917
|
},
|
|
915
918
|
appendItem: (e) => {
|
|
916
|
-
|
|
919
|
+
y.visible || (y.visible = !0), !y.items.find((n) => n.value == e.value) && y.items.push(e);
|
|
917
920
|
},
|
|
918
921
|
setActiveItem: (e) => {
|
|
919
|
-
|
|
922
|
+
y.activeItem = e;
|
|
920
923
|
},
|
|
921
924
|
setConfig: (e) => {
|
|
922
|
-
|
|
925
|
+
y.config = e;
|
|
923
926
|
},
|
|
924
927
|
setProjects: (e) => {
|
|
925
|
-
|
|
928
|
+
y.projects = e;
|
|
926
929
|
},
|
|
927
930
|
setProjectConfig: (e) => {
|
|
928
|
-
|
|
931
|
+
y.projectConfig = e;
|
|
929
932
|
},
|
|
930
933
|
setActiveProject: (e) => {
|
|
931
|
-
|
|
934
|
+
y.activeProject = e;
|
|
932
935
|
},
|
|
933
936
|
setUserInfo: (e) => {
|
|
934
|
-
|
|
937
|
+
y.userInfo = e;
|
|
935
938
|
},
|
|
936
939
|
setSearchConfig: (e) => {
|
|
937
|
-
|
|
940
|
+
y.searchConfig = e;
|
|
938
941
|
},
|
|
939
942
|
triggerEventListener: (e, t, n) => {
|
|
940
943
|
var i;
|
|
941
|
-
const s =
|
|
944
|
+
const s = y.eventListeners, { autoRemove: r = !1 } = n || {}, a = [];
|
|
942
945
|
for (const o in s) {
|
|
943
946
|
const c = s[o];
|
|
944
947
|
c.type === e && a.push(
|
|
@@ -951,9 +954,9 @@ const tt = (e, t) => {
|
|
|
951
954
|
},
|
|
952
955
|
addEventListener: (e, t) => {
|
|
953
956
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), s = () => {
|
|
954
|
-
|
|
957
|
+
y.eventListeners[n] && delete y.eventListeners[n];
|
|
955
958
|
};
|
|
956
|
-
return
|
|
959
|
+
return y.eventListeners[n] = {
|
|
957
960
|
type: e,
|
|
958
961
|
handler: async (r) => {
|
|
959
962
|
try {
|
|
@@ -967,23 +970,23 @@ const tt = (e, t) => {
|
|
|
967
970
|
remove: s
|
|
968
971
|
};
|
|
969
972
|
}
|
|
970
|
-
},
|
|
973
|
+
}, W = te({
|
|
971
974
|
items: [],
|
|
972
975
|
eventListeners: {}
|
|
973
|
-
}),
|
|
976
|
+
}), Jn = {
|
|
974
977
|
setItems: (e) => {
|
|
975
|
-
|
|
978
|
+
W.items = e;
|
|
976
979
|
},
|
|
977
|
-
getItems: () =>
|
|
980
|
+
getItems: () => W.items,
|
|
978
981
|
setActiveItem: (e) => {
|
|
979
|
-
|
|
982
|
+
W.activeItem = e;
|
|
980
983
|
},
|
|
981
984
|
setPopupClassName: (e) => {
|
|
982
|
-
|
|
985
|
+
W.popupClassName = e;
|
|
983
986
|
},
|
|
984
987
|
triggerEventListener: (e, t, n) => {
|
|
985
988
|
var i;
|
|
986
|
-
const s =
|
|
989
|
+
const s = W.eventListeners, { autoRemove: r = !1 } = n || {}, a = [];
|
|
987
990
|
for (const o in s) {
|
|
988
991
|
const c = s[o];
|
|
989
992
|
c.type === e && a.push(
|
|
@@ -996,9 +999,9 @@ const tt = (e, t) => {
|
|
|
996
999
|
},
|
|
997
1000
|
addEventListener: (e, t) => {
|
|
998
1001
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), s = () => {
|
|
999
|
-
|
|
1002
|
+
W.eventListeners[n] && delete W.eventListeners[n];
|
|
1000
1003
|
};
|
|
1001
|
-
return
|
|
1004
|
+
return W.eventListeners[n] = {
|
|
1002
1005
|
type: e,
|
|
1003
1006
|
handler: async (r) => {
|
|
1004
1007
|
try {
|
|
@@ -1012,10 +1015,10 @@ const tt = (e, t) => {
|
|
|
1012
1015
|
remove: s
|
|
1013
1016
|
};
|
|
1014
1017
|
}
|
|
1015
|
-
}, k =
|
|
1018
|
+
}, k = te({
|
|
1016
1019
|
items: [],
|
|
1017
1020
|
eventListeners: {}
|
|
1018
|
-
}),
|
|
1021
|
+
}), Kn = {
|
|
1019
1022
|
setItems: (e) => {
|
|
1020
1023
|
k.items = e;
|
|
1021
1024
|
},
|
|
@@ -1062,12 +1065,12 @@ const tt = (e, t) => {
|
|
|
1062
1065
|
remove: s
|
|
1063
1066
|
};
|
|
1064
1067
|
}
|
|
1065
|
-
},
|
|
1068
|
+
}, de = te({
|
|
1066
1069
|
eventListeners: {}
|
|
1067
|
-
}),
|
|
1070
|
+
}), Yn = {
|
|
1068
1071
|
triggerEventListener: (e, t, n) => {
|
|
1069
1072
|
var i;
|
|
1070
|
-
const s =
|
|
1073
|
+
const s = de.eventListeners, { autoRemove: r = !1 } = n || {}, a = [];
|
|
1071
1074
|
for (const o in s) {
|
|
1072
1075
|
const c = s[o];
|
|
1073
1076
|
c.type === e && a.push(
|
|
@@ -1080,9 +1083,9 @@ const tt = (e, t) => {
|
|
|
1080
1083
|
},
|
|
1081
1084
|
addEventListener: (e, t) => {
|
|
1082
1085
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), s = () => {
|
|
1083
|
-
|
|
1086
|
+
de.eventListeners[n] && delete de.eventListeners[n];
|
|
1084
1087
|
};
|
|
1085
|
-
return
|
|
1088
|
+
return de.eventListeners[n] = {
|
|
1086
1089
|
type: e,
|
|
1087
1090
|
handler: async (r) => {
|
|
1088
1091
|
try {
|
|
@@ -1096,28 +1099,28 @@ const tt = (e, t) => {
|
|
|
1096
1099
|
remove: s
|
|
1097
1100
|
};
|
|
1098
1101
|
}
|
|
1099
|
-
},
|
|
1102
|
+
}, xe = te({
|
|
1100
1103
|
visible: !1,
|
|
1101
1104
|
style: {}
|
|
1102
|
-
}),
|
|
1105
|
+
}), Xn = {
|
|
1103
1106
|
set: (e, t) => {
|
|
1104
|
-
|
|
1107
|
+
xe.visible = e, t || (t = {}), t.transition || (t.transition = "all 0.3s"), t && (xe.style = t);
|
|
1105
1108
|
}
|
|
1106
|
-
},
|
|
1107
|
-
nav:
|
|
1108
|
-
menu:
|
|
1109
|
+
}, ee = {
|
|
1110
|
+
nav: y,
|
|
1111
|
+
menu: W,
|
|
1109
1112
|
tab: k,
|
|
1110
|
-
overlay:
|
|
1111
|
-
iframeView:
|
|
1112
|
-
visible:
|
|
1113
|
-
},
|
|
1114
|
-
nav:
|
|
1115
|
-
menu:
|
|
1116
|
-
tab:
|
|
1117
|
-
overlay:
|
|
1118
|
-
iframeView:
|
|
1119
|
-
setVisible: (e) =>
|
|
1120
|
-
},
|
|
1113
|
+
overlay: xe,
|
|
1114
|
+
iframeView: de,
|
|
1115
|
+
visible: I(!0)
|
|
1116
|
+
}, h = {
|
|
1117
|
+
nav: qn,
|
|
1118
|
+
menu: Jn,
|
|
1119
|
+
tab: Kn,
|
|
1120
|
+
overlay: Xn,
|
|
1121
|
+
iframeView: Yn,
|
|
1122
|
+
setVisible: (e) => ee.visible.value = e
|
|
1123
|
+
}, Zn = ["name"], es = ["name"], ts = /* @__PURE__ */ Q({
|
|
1121
1124
|
__name: "das-iframe-router-view",
|
|
1122
1125
|
props: {
|
|
1123
1126
|
needTransition: { type: Boolean },
|
|
@@ -1132,17 +1135,17 @@ const tt = (e, t) => {
|
|
|
1132
1135
|
...t.transitionConfig || {}
|
|
1133
1136
|
};
|
|
1134
1137
|
return f;
|
|
1135
|
-
}), s =
|
|
1138
|
+
}), s = Xt(), r = ft(), a = I([]), i = p(() => a.value.filter((d) => {
|
|
1136
1139
|
var f;
|
|
1137
1140
|
return (f = d.meta) == null ? void 0 : f.isOpen;
|
|
1138
1141
|
})), o = (d) => {
|
|
1139
1142
|
const f = d.lastIndexOf("-");
|
|
1140
1143
|
let m = f !== -1 ? d.substring(f + 1) : "";
|
|
1141
|
-
m === "0" ? m = "1" : m = "0", i.value.forEach((
|
|
1142
|
-
|
|
1144
|
+
m === "0" ? m = "1" : m = "0", i.value.forEach((w) => {
|
|
1145
|
+
w.meta.key === d && (w.meta.key = `${w.path}-${m}`);
|
|
1143
1146
|
});
|
|
1144
1147
|
};
|
|
1145
|
-
|
|
1148
|
+
V(
|
|
1146
1149
|
() => t.exclude,
|
|
1147
1150
|
(d) => {
|
|
1148
1151
|
if (!d || !d.length) return;
|
|
@@ -1160,48 +1163,48 @@ const tt = (e, t) => {
|
|
|
1160
1163
|
const d = s.options.routes;
|
|
1161
1164
|
for (const m of d)
|
|
1162
1165
|
if ((f = m == null ? void 0 : m.meta) != null && f.isIframe) {
|
|
1163
|
-
const
|
|
1166
|
+
const w = await c(m);
|
|
1164
1167
|
a.value.push({
|
|
1165
1168
|
...m,
|
|
1166
|
-
meta: { ...m.meta, key: `${m.path}-0`, componentInstance:
|
|
1169
|
+
meta: { ...m.meta, key: `${m.path}-0`, componentInstance: w, isOpen: !1, isShow: !1 }
|
|
1167
1170
|
});
|
|
1168
1171
|
}
|
|
1169
1172
|
u();
|
|
1170
1173
|
}, u = async () => {
|
|
1171
|
-
var m,
|
|
1174
|
+
var m, w;
|
|
1172
1175
|
if (!a.value || !a.value.length) return;
|
|
1173
|
-
const d = a.value.find((
|
|
1174
|
-
d && (d.meta.isShow = !1, await
|
|
1175
|
-
const f = a.value.find((
|
|
1176
|
-
f && ((m = f.meta) != null && m.isOpen || (f.meta.isOpen = !0), (
|
|
1176
|
+
const d = a.value.find((S) => S.meta.isShow);
|
|
1177
|
+
d && (d.meta.isShow = !1, await Ie(), h.iframeView.triggerEventListener("onDeactivated", { route: d }));
|
|
1178
|
+
const f = a.value.find((S) => S.path === r.path);
|
|
1179
|
+
f && ((m = f.meta) != null && m.isOpen || (f.meta.isOpen = !0), (w = f.meta) != null && w.isShow || (f.meta.isShow = !0), await Ie(), h.iframeView.triggerEventListener("onActivated", { route: f }));
|
|
1177
1180
|
};
|
|
1178
|
-
return l(),
|
|
1181
|
+
return l(), V(
|
|
1179
1182
|
() => r.path,
|
|
1180
1183
|
() => {
|
|
1181
1184
|
u();
|
|
1182
1185
|
}
|
|
1183
|
-
), (d, f) => (g(),
|
|
1184
|
-
|
|
1186
|
+
), (d, f) => (g(), T(
|
|
1187
|
+
pe,
|
|
1185
1188
|
null,
|
|
1186
1189
|
[
|
|
1187
1190
|
d.needTransition ? (g(), R(
|
|
1188
|
-
|
|
1189
|
-
|
|
1191
|
+
Rt,
|
|
1192
|
+
$e(Ee({ key: 0 }, n.value)),
|
|
1190
1193
|
{
|
|
1191
|
-
default:
|
|
1192
|
-
(g(!0),
|
|
1193
|
-
|
|
1194
|
+
default: G(() => [
|
|
1195
|
+
(g(!0), T(
|
|
1196
|
+
pe,
|
|
1194
1197
|
null,
|
|
1195
|
-
|
|
1198
|
+
De(i.value, ({ path: m, meta: w }) => F((g(), T("div", {
|
|
1196
1199
|
class: "das-iframe-router-view",
|
|
1197
1200
|
key: m,
|
|
1198
1201
|
name: m
|
|
1199
1202
|
}, [
|
|
1200
|
-
(g(), R(
|
|
1201
|
-
key:
|
|
1203
|
+
(g(), R(ae(w.componentInstance), {
|
|
1204
|
+
key: w.key
|
|
1202
1205
|
}))
|
|
1203
|
-
], 8,
|
|
1204
|
-
[
|
|
1206
|
+
], 8, Zn)), [
|
|
1207
|
+
[j, w.componentInstance && m === b(r).path]
|
|
1205
1208
|
])),
|
|
1206
1209
|
128
|
|
1207
1210
|
/* KEYED_FRAGMENT */
|
|
@@ -1212,20 +1215,20 @@ const tt = (e, t) => {
|
|
|
1212
1215
|
},
|
|
1213
1216
|
16
|
|
1214
1217
|
/* FULL_PROPS */
|
|
1215
|
-
)) :
|
|
1216
|
-
d.needTransition ?
|
|
1217
|
-
|
|
1218
|
+
)) : L("v-if", !0),
|
|
1219
|
+
d.needTransition ? L("v-if", !0) : (g(!0), T(
|
|
1220
|
+
pe,
|
|
1218
1221
|
{ key: 1 },
|
|
1219
|
-
|
|
1222
|
+
De(i.value, ({ path: m, meta: w }) => F((g(), T("div", {
|
|
1220
1223
|
class: "das-iframe-router-view",
|
|
1221
1224
|
key: m,
|
|
1222
1225
|
name: m
|
|
1223
1226
|
}, [
|
|
1224
|
-
(g(), R(
|
|
1225
|
-
key:
|
|
1227
|
+
(g(), R(ae(w.componentInstance), {
|
|
1228
|
+
key: w.key
|
|
1226
1229
|
}))
|
|
1227
|
-
], 8,
|
|
1228
|
-
[
|
|
1230
|
+
], 8, es)), [
|
|
1231
|
+
[j, w.componentInstance && m === b(r).path]
|
|
1229
1232
|
])),
|
|
1230
1233
|
128
|
|
1231
1234
|
/* KEYED_FRAGMENT */
|
|
@@ -1235,30 +1238,30 @@ const tt = (e, t) => {
|
|
|
1235
1238
|
/* STABLE_FRAGMENT */
|
|
1236
1239
|
));
|
|
1237
1240
|
}
|
|
1238
|
-
}),
|
|
1241
|
+
}), Te = (e, t) => {
|
|
1239
1242
|
const n = e.__vccOpts || e;
|
|
1240
1243
|
for (const [s, r] of t)
|
|
1241
1244
|
n[s] = r;
|
|
1242
1245
|
return n;
|
|
1243
|
-
},
|
|
1246
|
+
}, ns = /* @__PURE__ */ Te(ts, [["__scopeId", "data-v-71479406"]]), tt = I("/das-micro-app"), C = I([]), be = I(!1), fe = I([]), me = I(!0), ss = { class: "das-web-app-container" }, rs = {
|
|
1244
1247
|
key: 0,
|
|
1245
1248
|
class: "das-web-app-header"
|
|
1246
|
-
},
|
|
1249
|
+
}, as = { class: "das-web-app-main" }, os = {
|
|
1247
1250
|
key: 0,
|
|
1248
1251
|
class: "aside"
|
|
1249
|
-
},
|
|
1252
|
+
}, is = { class: "das-web-app-main-container" }, cs = {
|
|
1250
1253
|
key: 0,
|
|
1251
1254
|
class: "tab"
|
|
1252
|
-
},
|
|
1255
|
+
}, ls = { class: "das-web-app-main-content" }, us = { class: "banner" }, ds = { class: "das-web-app-main-router-view" }, fs = { style: { width: "100%", height: "100%" } }, ms = {
|
|
1253
1256
|
key: 0,
|
|
1254
1257
|
style: { width: "100%", height: "100%" }
|
|
1255
|
-
},
|
|
1258
|
+
}, ps = {
|
|
1256
1259
|
key: 1,
|
|
1257
1260
|
style: { width: "100%", height: "100%" }
|
|
1258
|
-
},
|
|
1261
|
+
}, vs = { style: { width: "100%", height: "100%" } }, gs = {
|
|
1259
1262
|
class: "micro-app",
|
|
1260
1263
|
style: { height: "100%", width: "100%" }
|
|
1261
|
-
},
|
|
1264
|
+
}, hs = /* @__PURE__ */ Q({
|
|
1262
1265
|
__name: "das-web-layout",
|
|
1263
1266
|
props: {
|
|
1264
1267
|
needTransition: { type: Boolean, default: !0 },
|
|
@@ -1270,125 +1273,125 @@ const tt = (e, t) => {
|
|
|
1270
1273
|
},
|
|
1271
1274
|
setup(e) {
|
|
1272
1275
|
const t = e;
|
|
1273
|
-
|
|
1274
|
-
const n =
|
|
1276
|
+
en(), tn(), nn();
|
|
1277
|
+
const n = ft(), s = I(!1), r = I(!1), a = I(!1), i = p(() => s.value && t.showLayout), o = p(() => r.value && t.showLayout && t.showAside), c = p(() => s.value && t.showLayout && t.showTabs), l = p(() => t.routerViewVisible ?? !0), u = p(() => ee.overlay.visible ?? !1), d = p(() => ({
|
|
1275
1278
|
"das-web-app-overlay-show": u.value === !0,
|
|
1276
1279
|
"das-web-app-overlay-hide": u.value === !1,
|
|
1277
1280
|
"das-web-app-overlay-destroy": u.value === "destroy"
|
|
1278
|
-
})), f = p(() =>
|
|
1279
|
-
|
|
1281
|
+
})), f = p(() => ee.overlay.style ?? { backgroundColor: "rgba(0,0,0,0.5)" }), m = p(() => fe.value), w = p(() => me.value);
|
|
1282
|
+
V(
|
|
1280
1283
|
() => [n.meta, n.query],
|
|
1281
|
-
([P,
|
|
1282
|
-
const { showLayout:
|
|
1283
|
-
showLayout:
|
|
1284
|
-
showAside:
|
|
1285
|
-
showTabs:
|
|
1286
|
-
app:
|
|
1287
|
-
} =
|
|
1288
|
-
window.__IN_DAS_MAIN_APP && (
|
|
1289
|
-
let We = !0,
|
|
1290
|
-
(
|
|
1284
|
+
([P, U]) => {
|
|
1285
|
+
const { showLayout: v = !0, showAside: _ = !0, showTabs: M = !0, layout: q = {} } = P, {
|
|
1286
|
+
showLayout: $ = !0,
|
|
1287
|
+
showAside: He = !0,
|
|
1288
|
+
showTabs: Be = !0,
|
|
1289
|
+
app: Ot
|
|
1290
|
+
} = U;
|
|
1291
|
+
window.__IN_DAS_MAIN_APP && (Ot ? Pe({ minHeight: "auto", minWidth: "auto" }) : Pe({ minHeight: "600px", minWidth: "1200px" })), window.__IN_DAS_MICRO_APP && Pe(q);
|
|
1292
|
+
let We = !0, Ce = !0, Me = !0;
|
|
1293
|
+
(v === !1 || $ === !1 || $ === "false") && (We = !1, Ce = !1, Me = !1), (_ === !1 || He === !1 || He === "false") && (Ce = !1), (M === !1 || Be === !1 || Be === "false") && (Me = !1), s.value = We, r.value = Ce, a.value = Me;
|
|
1291
1294
|
}
|
|
1292
1295
|
);
|
|
1293
|
-
const
|
|
1296
|
+
const S = p(() => ({
|
|
1294
1297
|
mode: "out-in",
|
|
1295
1298
|
"enter-active-class": "animate__animated animate__fadeInLeft",
|
|
1296
1299
|
...t.transitionConfig || {}
|
|
1297
1300
|
}));
|
|
1298
|
-
let
|
|
1299
|
-
const
|
|
1300
|
-
let
|
|
1301
|
-
return
|
|
1302
|
-
name:
|
|
1301
|
+
let ce = /* @__PURE__ */ new Map();
|
|
1302
|
+
const ge = (P, U) => {
|
|
1303
|
+
let v;
|
|
1304
|
+
return ce.has(U) ? v = ce.get(U) : (v = {
|
|
1305
|
+
name: U,
|
|
1303
1306
|
render() {
|
|
1304
|
-
return
|
|
1307
|
+
return Oe("div", { style: { width: "100%", height: "100%" } }, [Oe(P)]);
|
|
1305
1308
|
}
|
|
1306
|
-
},
|
|
1307
|
-
},
|
|
1308
|
-
return (P,
|
|
1309
|
-
const
|
|
1310
|
-
return g(),
|
|
1311
|
-
|
|
1309
|
+
}, ce.set(U, v)), Oe(v);
|
|
1310
|
+
}, K = p(() => ee.visible.value);
|
|
1311
|
+
return (P, U) => {
|
|
1312
|
+
const v = $t("router-view");
|
|
1313
|
+
return g(), T("div", ss, [
|
|
1314
|
+
F(H(
|
|
1312
1315
|
"div",
|
|
1313
1316
|
{
|
|
1314
|
-
class:
|
|
1315
|
-
style:
|
|
1317
|
+
class: Dt(["das-web-app-overlay", d.value]),
|
|
1318
|
+
style: Nt(f.value)
|
|
1316
1319
|
},
|
|
1317
1320
|
null,
|
|
1318
1321
|
6
|
|
1319
1322
|
/* CLASS, STYLE */
|
|
1320
1323
|
), [
|
|
1321
|
-
[
|
|
1324
|
+
[j, K.value]
|
|
1322
1325
|
]),
|
|
1323
|
-
i.value ?
|
|
1326
|
+
i.value ? F((g(), T(
|
|
1324
1327
|
"div",
|
|
1325
|
-
|
|
1328
|
+
rs,
|
|
1326
1329
|
[
|
|
1327
|
-
|
|
1330
|
+
z(P.$slots, "header", {}, void 0, !0)
|
|
1328
1331
|
],
|
|
1329
1332
|
512
|
|
1330
1333
|
/* NEED_PATCH */
|
|
1331
1334
|
)), [
|
|
1332
|
-
[
|
|
1333
|
-
]) :
|
|
1334
|
-
|
|
1335
|
-
o.value ?
|
|
1335
|
+
[j, K.value]
|
|
1336
|
+
]) : L("v-if", !0),
|
|
1337
|
+
H("div", as, [
|
|
1338
|
+
o.value ? F((g(), T(
|
|
1336
1339
|
"div",
|
|
1337
|
-
|
|
1340
|
+
os,
|
|
1338
1341
|
[
|
|
1339
|
-
|
|
1342
|
+
z(P.$slots, "aside", {}, void 0, !0)
|
|
1340
1343
|
],
|
|
1341
1344
|
512
|
|
1342
1345
|
/* NEED_PATCH */
|
|
1343
1346
|
)), [
|
|
1344
|
-
[
|
|
1345
|
-
]) :
|
|
1346
|
-
|
|
1347
|
-
c.value ?
|
|
1347
|
+
[j, K.value]
|
|
1348
|
+
]) : L("v-if", !0),
|
|
1349
|
+
H("div", is, [
|
|
1350
|
+
c.value ? F((g(), T(
|
|
1348
1351
|
"div",
|
|
1349
|
-
|
|
1352
|
+
cs,
|
|
1350
1353
|
[
|
|
1351
|
-
|
|
1354
|
+
z(P.$slots, "tab", {}, void 0, !0)
|
|
1352
1355
|
],
|
|
1353
1356
|
512
|
|
1354
1357
|
/* NEED_PATCH */
|
|
1355
1358
|
)), [
|
|
1356
|
-
[
|
|
1357
|
-
]) :
|
|
1358
|
-
|
|
1359
|
-
|
|
1359
|
+
[j, K.value]
|
|
1360
|
+
]) : L("v-if", !0),
|
|
1361
|
+
H("div", ls, [
|
|
1362
|
+
F(H(
|
|
1360
1363
|
"div",
|
|
1361
|
-
|
|
1364
|
+
us,
|
|
1362
1365
|
[
|
|
1363
|
-
|
|
1366
|
+
z(P.$slots, "banner", {}, void 0, !0)
|
|
1364
1367
|
],
|
|
1365
1368
|
512
|
|
1366
1369
|
/* NEED_PATCH */
|
|
1367
1370
|
), [
|
|
1368
|
-
[
|
|
1371
|
+
[j, K.value]
|
|
1369
1372
|
]),
|
|
1370
|
-
|
|
1371
|
-
|
|
1373
|
+
H("div", ds, [
|
|
1374
|
+
F(H(
|
|
1372
1375
|
"div",
|
|
1373
|
-
|
|
1376
|
+
fs,
|
|
1374
1377
|
[
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
P.needTransition ? (g(), R(
|
|
1378
|
-
default:
|
|
1379
|
-
|
|
1378
|
+
z(P.$slots, "router-view", {}, () => [
|
|
1379
|
+
L(" 有动画 "),
|
|
1380
|
+
P.needTransition ? (g(), R(v, { key: 0 }, {
|
|
1381
|
+
default: G(({ Component: _ }) => [
|
|
1382
|
+
X(
|
|
1380
1383
|
ze,
|
|
1381
|
-
|
|
1384
|
+
$e(Ge(S.value)),
|
|
1382
1385
|
{
|
|
1383
|
-
default:
|
|
1386
|
+
default: G(() => [
|
|
1384
1387
|
b(n).meta.keepAlive ? (g(), R(Qe, {
|
|
1385
1388
|
key: 0,
|
|
1386
1389
|
exclude: m.value
|
|
1387
1390
|
}, [
|
|
1388
|
-
|
|
1391
|
+
w.value && !b(n).meta.isIframe ? (g(), R(ae(ge(_, b(n).path)), {
|
|
1389
1392
|
key: b(n).path
|
|
1390
|
-
})) :
|
|
1391
|
-
], 1032, ["exclude"])) :
|
|
1393
|
+
})) : L("v-if", !0)
|
|
1394
|
+
], 1032, ["exclude"])) : L("v-if", !0)
|
|
1392
1395
|
]),
|
|
1393
1396
|
_: 2
|
|
1394
1397
|
/* DYNAMIC */
|
|
@@ -1396,16 +1399,16 @@ const tt = (e, t) => {
|
|
|
1396
1399
|
1040
|
|
1397
1400
|
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
1398
1401
|
),
|
|
1399
|
-
|
|
1402
|
+
X(
|
|
1400
1403
|
ze,
|
|
1401
|
-
|
|
1404
|
+
$e(Ge(S.value)),
|
|
1402
1405
|
{
|
|
1403
|
-
default:
|
|
1404
|
-
!b(n).meta.keepAlive && !b(n).meta.isIframe ? (g(),
|
|
1405
|
-
(g(), R(
|
|
1406
|
+
default: G(() => [
|
|
1407
|
+
!b(n).meta.keepAlive && !b(n).meta.isIframe ? (g(), T("div", ms, [
|
|
1408
|
+
(g(), R(ae(_), {
|
|
1406
1409
|
key: b(n).path
|
|
1407
1410
|
}))
|
|
1408
|
-
])) :
|
|
1411
|
+
])) : L("v-if", !0)
|
|
1409
1412
|
]),
|
|
1410
1413
|
_: 2
|
|
1411
1414
|
/* DYNAMIC */
|
|
@@ -1416,59 +1419,59 @@ const tt = (e, t) => {
|
|
|
1416
1419
|
]),
|
|
1417
1420
|
_: 1
|
|
1418
1421
|
/* STABLE */
|
|
1419
|
-
})) :
|
|
1420
|
-
|
|
1421
|
-
P.needTransition ?
|
|
1422
|
-
default:
|
|
1422
|
+
})) : L("v-if", !0),
|
|
1423
|
+
L(" 无动画 "),
|
|
1424
|
+
P.needTransition ? L("v-if", !0) : (g(), R(v, { key: 1 }, {
|
|
1425
|
+
default: G(({ Component: _ }) => [
|
|
1423
1426
|
b(n).meta.keepAlive ? (g(), R(Qe, {
|
|
1424
1427
|
key: 0,
|
|
1425
1428
|
exclude: m.value
|
|
1426
1429
|
}, [
|
|
1427
|
-
|
|
1430
|
+
w.value && !b(n).meta.isIframe ? (g(), R(ae(ge(_, b(n).path)), {
|
|
1428
1431
|
key: b(n).path
|
|
1429
|
-
})) :
|
|
1430
|
-
], 1032, ["exclude"])) :
|
|
1431
|
-
!b(n).meta.keepAlive && !b(n).meta.isIframe ? (g(),
|
|
1432
|
-
(g(), R(
|
|
1432
|
+
})) : L("v-if", !0)
|
|
1433
|
+
], 1032, ["exclude"])) : L("v-if", !0),
|
|
1434
|
+
!b(n).meta.keepAlive && !b(n).meta.isIframe ? (g(), T("div", ps, [
|
|
1435
|
+
(g(), R(ae(_), {
|
|
1433
1436
|
key: b(n).path
|
|
1434
1437
|
}))
|
|
1435
|
-
])) :
|
|
1438
|
+
])) : L("v-if", !0)
|
|
1436
1439
|
]),
|
|
1437
1440
|
_: 1
|
|
1438
1441
|
/* STABLE */
|
|
1439
1442
|
})),
|
|
1440
|
-
|
|
1443
|
+
F(H(
|
|
1441
1444
|
"div",
|
|
1442
|
-
|
|
1445
|
+
vs,
|
|
1443
1446
|
[
|
|
1444
|
-
|
|
1447
|
+
X(ns, {
|
|
1445
1448
|
exclude: m.value,
|
|
1446
|
-
transitionConfig:
|
|
1449
|
+
transitionConfig: S.value,
|
|
1447
1450
|
needTransition: P.needTransition
|
|
1448
1451
|
}, null, 8, ["exclude", "transitionConfig", "needTransition"])
|
|
1449
1452
|
],
|
|
1450
1453
|
512
|
|
1451
1454
|
/* NEED_PATCH */
|
|
1452
1455
|
), [
|
|
1453
|
-
[
|
|
1456
|
+
[j, b(n).meta.isIframe]
|
|
1454
1457
|
])
|
|
1455
1458
|
], !0)
|
|
1456
1459
|
],
|
|
1457
1460
|
512
|
|
1458
1461
|
/* NEED_PATCH */
|
|
1459
1462
|
), [
|
|
1460
|
-
[
|
|
1463
|
+
[j, l.value]
|
|
1461
1464
|
]),
|
|
1462
|
-
|
|
1465
|
+
F(H(
|
|
1463
1466
|
"div",
|
|
1464
|
-
|
|
1467
|
+
gs,
|
|
1465
1468
|
[
|
|
1466
|
-
|
|
1469
|
+
z(P.$slots, "default", {}, void 0, !0)
|
|
1467
1470
|
],
|
|
1468
1471
|
512
|
|
1469
1472
|
/* NEED_PATCH */
|
|
1470
1473
|
), [
|
|
1471
|
-
[
|
|
1474
|
+
[j, !l.value]
|
|
1472
1475
|
])
|
|
1473
1476
|
])
|
|
1474
1477
|
])
|
|
@@ -1477,22 +1480,23 @@ const tt = (e, t) => {
|
|
|
1477
1480
|
]);
|
|
1478
1481
|
};
|
|
1479
1482
|
}
|
|
1480
|
-
}),
|
|
1483
|
+
}), lr = /* @__PURE__ */ Te(hs, [["__scopeId", "data-v-0c14299d"]]), ws = ["modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], ur = /* @__PURE__ */ Q({
|
|
1481
1484
|
__name: "das-web-nav",
|
|
1482
1485
|
setup(e) {
|
|
1483
|
-
const { nav: t } =
|
|
1484
|
-
var v,
|
|
1486
|
+
const { nav: t } = ee, n = p(() => t.logo || ""), s = p(() => t.activeItem || ""), r = p(() => (t.items || []).filter((_) => _.fixed)), a = p(() => (t.items || []).filter((_) => !_.fixed)), i = p(() => {
|
|
1487
|
+
var v, _, M, q;
|
|
1485
1488
|
return {
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1489
|
+
showFullScreen: ((v = t.config) == null ? void 0 : v.showFullScreen) ?? !1,
|
|
1490
|
+
showChangeEnterprise: ((_ = t.config) == null ? void 0 : _.showChangeEnterprise) ?? !1,
|
|
1491
|
+
showSearch: ((M = t.config) == null ? void 0 : M.showSearch) ?? !0,
|
|
1492
|
+
showProjectTree: ((q = t.config) == null ? void 0 : q.showProjectTree) ?? !0,
|
|
1493
|
+
subAppList: a.value.map(($) => ({ code: $.value, name: $.label, ...$ }))
|
|
1490
1494
|
};
|
|
1491
1495
|
}), o = p(() => {
|
|
1492
|
-
const v = r.value.find((
|
|
1496
|
+
const v = r.value.find((_) => _.value === t.activeItem);
|
|
1493
1497
|
return {
|
|
1494
1498
|
activeInnerPagePath: (v == null ? void 0 : v.path) || "",
|
|
1495
|
-
innerPages: r.value.map((
|
|
1499
|
+
innerPages: r.value.map((_) => ({ title: _.label, ..._ }))
|
|
1496
1500
|
};
|
|
1497
1501
|
}), c = p(() => ({
|
|
1498
1502
|
projectStore: {
|
|
@@ -1501,35 +1505,37 @@ const tt = (e, t) => {
|
|
|
1501
1505
|
},
|
|
1502
1506
|
...t.projectConfig
|
|
1503
1507
|
})), l = p(() => t.userInfo), u = p(() => t.searchConfig), d = async (v) => {
|
|
1504
|
-
const
|
|
1505
|
-
await
|
|
1508
|
+
const _ = v.detail[0], M = r.value.find(($) => _.value === $.value);
|
|
1509
|
+
await h.nav.triggerEventListener("onItemClick", M) && h.nav.setActiveItem(M.value);
|
|
1506
1510
|
}, f = async (v) => {
|
|
1507
|
-
const
|
|
1508
|
-
await
|
|
1511
|
+
const _ = v.detail[0], M = a.value.find(($) => _ === $.value);
|
|
1512
|
+
await h.nav.triggerEventListener("onItemClick", M) && h.nav.setActiveItem(M.value);
|
|
1509
1513
|
}, m = async (v) => {
|
|
1510
|
-
const
|
|
1511
|
-
await
|
|
1512
|
-
},
|
|
1513
|
-
const [
|
|
1514
|
-
!
|
|
1515
|
-
},
|
|
1516
|
-
|
|
1517
|
-
},
|
|
1518
|
-
|
|
1519
|
-
},
|
|
1520
|
-
|
|
1521
|
-
},
|
|
1522
|
-
|
|
1514
|
+
const _ = v.detail[0], M = a.value.find(($) => _ === $.value);
|
|
1515
|
+
await h.nav.triggerEventListener("onItemRemove", M) && h.nav.removeItem(M.value);
|
|
1516
|
+
}, w = async (v) => {
|
|
1517
|
+
const [_, M] = v.detail;
|
|
1518
|
+
!_ || !await h.nav.triggerEventListener("onProjectChange", M) || h.nav.setActiveProject(M);
|
|
1519
|
+
}, S = (v) => {
|
|
1520
|
+
h.nav.triggerEventListener("onUserCommandChange", v.detail[0]);
|
|
1521
|
+
}, ce = (v) => {
|
|
1522
|
+
h.nav.triggerEventListener("searchToPage", { item: v.detail[0], keyword: v.detail[1], cb: v.detail[2] });
|
|
1523
|
+
}, ge = (v) => {
|
|
1524
|
+
h.nav.triggerEventListener("clearSearchList", { cb: v.detail[0] });
|
|
1525
|
+
}, K = (v) => {
|
|
1526
|
+
h.nav.triggerEventListener("deleteSearchItem", { value: v.detail[0], cb: v.detail[1] });
|
|
1523
1527
|
}, P = () => {
|
|
1524
|
-
|
|
1528
|
+
h.nav.triggerEventListener("changeEnterpriseHandle");
|
|
1529
|
+
}, U = () => {
|
|
1530
|
+
h.nav.triggerEventListener("fullScreenHandle");
|
|
1525
1531
|
};
|
|
1526
|
-
return
|
|
1527
|
-
|
|
1528
|
-
}),
|
|
1529
|
-
|
|
1530
|
-
}),
|
|
1531
|
-
|
|
1532
|
-
}), (v,
|
|
1532
|
+
return Vt(() => {
|
|
1533
|
+
h.nav.triggerEventListener("onBeforeMount", null, { autoRemove: !0 });
|
|
1534
|
+
}), ut(() => {
|
|
1535
|
+
h.nav.triggerEventListener("onMounted", null, { autoRemove: !0 });
|
|
1536
|
+
}), xt(() => {
|
|
1537
|
+
h.nav.triggerEventListener("onUnmounted", null, { autoRemove: !0 });
|
|
1538
|
+
}), (v, _) => (g(), T("das-ce-nav", {
|
|
1533
1539
|
modelValue: s.value,
|
|
1534
1540
|
logoUrl: n.value,
|
|
1535
1541
|
config: i.value,
|
|
@@ -1537,60 +1543,61 @@ const tt = (e, t) => {
|
|
|
1537
1543
|
searchConfig: u.value,
|
|
1538
1544
|
projectTreeConfig: c.value,
|
|
1539
1545
|
userInfoConfig: l.value,
|
|
1540
|
-
"on:userCommandHandle":
|
|
1546
|
+
"on:userCommandHandle": S,
|
|
1541
1547
|
"on:changeInnerPage": d,
|
|
1542
1548
|
"on:handleTabClick": f,
|
|
1543
1549
|
"on:handleTabDelete": m,
|
|
1544
|
-
"on:changeTreeHandle":
|
|
1545
|
-
"on:searchToPage":
|
|
1546
|
-
"on:clearSearchList":
|
|
1547
|
-
"on:deleteSearchItem":
|
|
1548
|
-
"on:changeEnterpriseHandle": P
|
|
1549
|
-
|
|
1550
|
+
"on:changeTreeHandle": w,
|
|
1551
|
+
"on:searchToPage": ce,
|
|
1552
|
+
"on:clearSearchList": ge,
|
|
1553
|
+
"on:deleteSearchItem": K,
|
|
1554
|
+
"on:changeEnterpriseHandle": P,
|
|
1555
|
+
"on:fullScreen": U
|
|
1556
|
+
}, null, 40, ws));
|
|
1550
1557
|
}
|
|
1551
|
-
}), _s = ["modelValue", "data", "collapse", "fixedTopMenu", "subMenuAttrs"],
|
|
1558
|
+
}), _s = ["modelValue", "data", "collapse", "fixedTopMenu", "subMenuAttrs"], dr = /* @__PURE__ */ Q({
|
|
1552
1559
|
__name: "das-web-menu",
|
|
1553
1560
|
props: {
|
|
1554
1561
|
menuAttr: {}
|
|
1555
1562
|
},
|
|
1556
1563
|
setup(e) {
|
|
1557
|
-
const { menu: t } =
|
|
1558
|
-
const d = u.detail[0], f =
|
|
1559
|
-
await
|
|
1564
|
+
const { menu: t } = ee, n = e, s = p(() => n.menuAttr || {}), r = p(() => t.items), a = p(() => t.items.find((u) => u.fixed)), i = p(() => t.activeItem || ""), o = p(() => t.collapse ?? !1), c = p(() => ({ popupClassName: t.popupClassName ?? "" })), l = async (u) => {
|
|
1565
|
+
const d = u.detail[0], f = Zt(r.value).find((w) => d === w.id);
|
|
1566
|
+
await h.menu.triggerEventListener("onItemClick", f) && h.menu.setActiveItem(f.id);
|
|
1560
1567
|
};
|
|
1561
|
-
return (u, d) => r.value.length > 0 ? (g(),
|
|
1568
|
+
return (u, d) => r.value.length > 0 ? (g(), T("das-ce-menu", Ee({
|
|
1562
1569
|
key: 0,
|
|
1563
1570
|
modelValue: i.value,
|
|
1564
1571
|
data: r.value,
|
|
1565
1572
|
collapse: o.value,
|
|
1566
1573
|
fixedTopMenu: a.value,
|
|
1567
1574
|
subMenuAttrs: c.value
|
|
1568
|
-
}, s.value, { onChange: l }), null, 16, _s)) :
|
|
1575
|
+
}, s.value, { onChange: l }), null, 16, _s)) : L("v-if", !0);
|
|
1569
1576
|
}
|
|
1570
|
-
}),
|
|
1577
|
+
}), ys = ["modelValue", "options"], fr = /* @__PURE__ */ Q({
|
|
1571
1578
|
__name: "das-web-tabs",
|
|
1572
1579
|
props: {
|
|
1573
1580
|
tabsAttr: {}
|
|
1574
1581
|
},
|
|
1575
1582
|
setup(e) {
|
|
1576
|
-
const { tab: t } =
|
|
1583
|
+
const { tab: t } = ee, n = e, s = p(() => n.tabsAttr || {}), r = p(() => t.items.map((d) => ({
|
|
1577
1584
|
...d,
|
|
1578
1585
|
key: d.value,
|
|
1579
1586
|
tab: d.label
|
|
1580
1587
|
}))), a = p(() => t.activeItem || ""), i = async (d) => {
|
|
1581
|
-
const f = d.detail[0], m = r.value.find((
|
|
1582
|
-
await
|
|
1588
|
+
const f = d.detail[0], m = r.value.find((S) => f === S.value);
|
|
1589
|
+
await h.tab.triggerEventListener("onItemClick", m) && h.tab.setActiveItem(m.value);
|
|
1583
1590
|
}, o = async (d) => {
|
|
1584
|
-
const f = d.detail[0], m = r.value.find((
|
|
1585
|
-
await
|
|
1591
|
+
const f = d.detail[0], m = r.value.find((S) => f === S.value);
|
|
1592
|
+
await h.tab.triggerEventListener("onItemRemove", m) && h.tab.removeItem(m.value);
|
|
1586
1593
|
}, c = async (d) => {
|
|
1587
|
-
await
|
|
1594
|
+
await h.tab.triggerEventListener("onMenuClick", { type: d.detail[0], data: d.detail[1] });
|
|
1588
1595
|
}, l = async (d) => {
|
|
1589
|
-
await
|
|
1596
|
+
await h.tab.triggerEventListener("onPageRefresh", d.detail[0]);
|
|
1590
1597
|
}, u = () => {
|
|
1591
|
-
|
|
1598
|
+
h.tab.triggerEventListener("onToggleFullScreen");
|
|
1592
1599
|
};
|
|
1593
|
-
return (d, f) => r.value.length > 0 ? (g(),
|
|
1600
|
+
return (d, f) => r.value.length > 0 ? (g(), T("das-ce-tabs", Ee({
|
|
1594
1601
|
key: 0,
|
|
1595
1602
|
modelValue: a.value,
|
|
1596
1603
|
options: r.value
|
|
@@ -1600,9 +1607,9 @@ const tt = (e, t) => {
|
|
|
1600
1607
|
"on:menuClick": c,
|
|
1601
1608
|
"on:pageRefresh": l,
|
|
1602
1609
|
"on:toggleFullScreen": u
|
|
1603
|
-
}), null, 16,
|
|
1610
|
+
}), null, 16, ys)) : L("v-if", !0);
|
|
1604
1611
|
}
|
|
1605
|
-
}),
|
|
1612
|
+
}), bs = ["src", "entry", "name"], As = /* @__PURE__ */ Q({
|
|
1606
1613
|
__name: "das-micro-app",
|
|
1607
1614
|
props: {
|
|
1608
1615
|
src: {},
|
|
@@ -1614,22 +1621,22 @@ const tt = (e, t) => {
|
|
|
1614
1621
|
const n = e, s = t, r = (o) => {
|
|
1615
1622
|
s("onLoaded", o);
|
|
1616
1623
|
}, a = p(() => n.actived);
|
|
1617
|
-
return
|
|
1624
|
+
return V(() => a.value, (o) => {
|
|
1618
1625
|
o && s("onActivated"), o || s("onDeactivated");
|
|
1619
|
-
}), (o, c) => (g(),
|
|
1626
|
+
}), (o, c) => (g(), T("iframe", {
|
|
1620
1627
|
class: "das-micro-app",
|
|
1621
1628
|
src: n.src,
|
|
1622
1629
|
entry: n.src,
|
|
1623
1630
|
name: n.name,
|
|
1624
1631
|
frameborder: "0",
|
|
1625
1632
|
onLoad: r
|
|
1626
|
-
}, null, 40,
|
|
1633
|
+
}, null, 40, bs));
|
|
1627
1634
|
}
|
|
1628
|
-
}),
|
|
1629
|
-
let
|
|
1630
|
-
const
|
|
1635
|
+
}), Is = /* @__PURE__ */ Te(As, [["__scopeId", "data-v-2266bab0"]]);
|
|
1636
|
+
let D = null, N = null, se = null;
|
|
1637
|
+
const re = (e, t, n) => {
|
|
1631
1638
|
var r, a, i, o;
|
|
1632
|
-
const s =
|
|
1639
|
+
const s = C.value.find((c) => c.name === e);
|
|
1633
1640
|
if (s) {
|
|
1634
1641
|
if (s.entry.startsWith("/") || s.entry.match(location.origin)) {
|
|
1635
1642
|
(a = (r = s.dom) == null ? void 0 : r.contentWindow) == null || a.postMessage({ type: t, data: n });
|
|
@@ -1637,69 +1644,69 @@ const se = (e, t, n) => {
|
|
|
1637
1644
|
}
|
|
1638
1645
|
(o = (i = s.dom) == null ? void 0 : i.contentWindow) == null || o.postMessage({ type: t, data: n }, s.entry);
|
|
1639
1646
|
}
|
|
1640
|
-
},
|
|
1647
|
+
}, ke = (e, t) => {
|
|
1641
1648
|
var a;
|
|
1642
1649
|
const { __IN_DAS_MICRO_APP: n, __DAS_MAIN_APP_HREF: s } = window;
|
|
1643
1650
|
if (!n || !s) return;
|
|
1644
1651
|
const { origin: r } = new URL(s);
|
|
1645
1652
|
(a = window.top) == null || a.postMessage({ type: e, data: t }, r);
|
|
1646
|
-
},
|
|
1647
|
-
|
|
1653
|
+
}, Ss = () => {
|
|
1654
|
+
N || (N || (N = {}), window.addEventListener(
|
|
1648
1655
|
"message",
|
|
1649
1656
|
(e) => {
|
|
1650
1657
|
const { type: t, source: n } = e.data || {};
|
|
1651
|
-
if (n !== "react-devtools-content-script" &&
|
|
1652
|
-
for (const s in
|
|
1653
|
-
|
|
1658
|
+
if (n !== "react-devtools-content-script" && N[t])
|
|
1659
|
+
for (const s in N[t])
|
|
1660
|
+
N[t][s](e.data);
|
|
1654
1661
|
},
|
|
1655
1662
|
!1
|
|
1656
1663
|
));
|
|
1657
|
-
},
|
|
1658
|
-
|
|
1664
|
+
}, Ls = () => {
|
|
1665
|
+
D || (D || (D = {}), window.addEventListener(
|
|
1659
1666
|
"message",
|
|
1660
1667
|
(e) => {
|
|
1661
1668
|
const { type: t } = e.data || {};
|
|
1662
|
-
if (
|
|
1663
|
-
for (const n in
|
|
1664
|
-
|
|
1669
|
+
if (D[t])
|
|
1670
|
+
for (const n in D[t])
|
|
1671
|
+
D[t][n](e.data);
|
|
1665
1672
|
},
|
|
1666
1673
|
!1
|
|
1667
1674
|
));
|
|
1668
|
-
},
|
|
1669
|
-
|
|
1675
|
+
}, Es = (e, t) => {
|
|
1676
|
+
Ls();
|
|
1670
1677
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8);
|
|
1671
|
-
return
|
|
1678
|
+
return D[e] || (D[e] = {}), D[e][n] = t, {
|
|
1672
1679
|
remove: () => {
|
|
1673
|
-
|
|
1680
|
+
D[e] && D[e][n] && delete D[e][n];
|
|
1674
1681
|
}
|
|
1675
1682
|
};
|
|
1676
|
-
},
|
|
1677
|
-
|
|
1683
|
+
}, Ts = (e, t) => {
|
|
1684
|
+
Ss();
|
|
1678
1685
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8);
|
|
1679
|
-
return
|
|
1686
|
+
return N[e] || (N[e] = {}), N[e][n] = t, {
|
|
1680
1687
|
remove: () => {
|
|
1681
|
-
|
|
1688
|
+
N[e] && N[e][n] && delete N[e][n];
|
|
1682
1689
|
}
|
|
1683
1690
|
};
|
|
1684
|
-
},
|
|
1691
|
+
}, Re = async (e) => {
|
|
1685
1692
|
await Promise.all(
|
|
1686
|
-
|
|
1687
|
-
t.dom || await new Promise((s) =>
|
|
1688
|
-
|
|
1693
|
+
C.value.filter((t) => t.loaded).map((t) => new Promise(async (n) => {
|
|
1694
|
+
t.dom || await new Promise((s) => V(() => t.dom, s)), setTimeout(() => {
|
|
1695
|
+
re(t.name, "sessionStorage", e), n(!0);
|
|
1689
1696
|
}, 0);
|
|
1690
1697
|
}))
|
|
1691
1698
|
);
|
|
1692
1699
|
}, A = {
|
|
1693
1700
|
loadMicroApp: (e) => {
|
|
1694
|
-
|
|
1695
|
-
const t =
|
|
1701
|
+
be.value = !0;
|
|
1702
|
+
const t = C.value.find((i) => i.name === e), n = C.value.find((i) => i.actived), s = !!t, r = !(t != null && t.loaded), a = t == null ? void 0 : t.actived;
|
|
1696
1703
|
if (!s) {
|
|
1697
1704
|
n && (n.actived = !1);
|
|
1698
1705
|
return;
|
|
1699
1706
|
}
|
|
1700
1707
|
if (t.isFirstActived = !0, r) {
|
|
1701
1708
|
t.src = t.entry;
|
|
1702
|
-
const i =
|
|
1709
|
+
const i = C.value.find((o) => o.actived);
|
|
1703
1710
|
i && (i.actived = !1), t.loaded = !0, t.actived = !0;
|
|
1704
1711
|
return;
|
|
1705
1712
|
}
|
|
@@ -1709,8 +1716,8 @@ const se = (e, t, n) => {
|
|
|
1709
1716
|
}
|
|
1710
1717
|
},
|
|
1711
1718
|
hideMicroApp: async (e) => {
|
|
1712
|
-
const t =
|
|
1713
|
-
t && t.loaded && (t.dom || await new Promise((n) =>
|
|
1719
|
+
const t = C.value.find((n) => n.name === e);
|
|
1720
|
+
t && t.loaded && (t.dom || await new Promise((n) => V(() => t.dom, n)), re(e, "router", {
|
|
1714
1721
|
cmd: "push",
|
|
1715
1722
|
route: {
|
|
1716
1723
|
name: "das-micro-app-ghost",
|
|
@@ -1719,22 +1726,22 @@ const se = (e, t, n) => {
|
|
|
1719
1726
|
}));
|
|
1720
1727
|
},
|
|
1721
1728
|
hideAllMicroApp: () => {
|
|
1722
|
-
|
|
1729
|
+
be.value = !1, C.value.map((e) => {
|
|
1723
1730
|
e.actived = !1;
|
|
1724
1731
|
});
|
|
1725
1732
|
},
|
|
1726
1733
|
unloadMicroApp: (e) => {
|
|
1727
|
-
const t =
|
|
1734
|
+
const t = C.value.find((n) => n.name === e);
|
|
1728
1735
|
t && (t.loaded = !1, t.actived = !1, t.dom = void 0);
|
|
1729
1736
|
},
|
|
1730
1737
|
unloadAllMicroApp: () => {
|
|
1731
|
-
|
|
1738
|
+
be.value = !1, C.value.map((e) => {
|
|
1732
1739
|
e.loaded = !1, e.actived = !1, e.dom = void 0;
|
|
1733
1740
|
});
|
|
1734
1741
|
},
|
|
1735
1742
|
setMicroAppRoute: async (e, t, n) => {
|
|
1736
|
-
const s =
|
|
1737
|
-
if (!s || !s.loaded || !s.actived || (s.dom || await new Promise((o) =>
|
|
1743
|
+
const s = C.value.find((o) => o.name === t);
|
|
1744
|
+
if (!s || !s.loaded || !s.actived || (s.dom || await new Promise((o) => V(() => s.dom, o)), !s.actived)) return s;
|
|
1738
1745
|
const r = n.path || n, a = n.query || {}, i = n.params || {};
|
|
1739
1746
|
return e.push({
|
|
1740
1747
|
path: `/${t}${r}`,
|
|
@@ -1743,40 +1750,40 @@ const se = (e, t, n) => {
|
|
|
1743
1750
|
params: i
|
|
1744
1751
|
}), setTimeout(() => {
|
|
1745
1752
|
const { isFirstActived: o } = s;
|
|
1746
|
-
|
|
1753
|
+
re(t, "router", {
|
|
1747
1754
|
cmd: o ? "replace" : "push",
|
|
1748
1755
|
route: n,
|
|
1749
1756
|
microAppName: t
|
|
1750
1757
|
}), o && (s.isFirstActived = !1);
|
|
1751
1758
|
}, 0), s;
|
|
1752
1759
|
},
|
|
1753
|
-
sendMessageToMicroApp:
|
|
1754
|
-
sendMessageToMainApp:
|
|
1755
|
-
addEventListenerFromMainApp:
|
|
1756
|
-
addEventListenerFromMicroApp:
|
|
1760
|
+
sendMessageToMicroApp: re,
|
|
1761
|
+
sendMessageToMainApp: ke,
|
|
1762
|
+
addEventListenerFromMainApp: Es,
|
|
1763
|
+
addEventListenerFromMicroApp: Ts,
|
|
1757
1764
|
setMainAppOverlay: (e, t) => {
|
|
1758
|
-
|
|
1765
|
+
ke("bodyOverlay", { visible: e, style: t });
|
|
1759
1766
|
},
|
|
1760
1767
|
sessionStorage: {
|
|
1761
1768
|
key: window.sessionStorage.key,
|
|
1762
1769
|
getItem: window.sessionStorage.getItem,
|
|
1763
1770
|
setItem: (e, t) => {
|
|
1764
|
-
window.sessionStorage.setItem(e, t),
|
|
1771
|
+
window.sessionStorage.setItem(e, t), Re({ cmd: "setItem", key: e, value: t });
|
|
1765
1772
|
},
|
|
1766
1773
|
removeItem: (e) => {
|
|
1767
|
-
window.sessionStorage.removeItem(e),
|
|
1774
|
+
window.sessionStorage.removeItem(e), Re({ cmd: "removeItem", key: e });
|
|
1768
1775
|
},
|
|
1769
1776
|
clear: () => {
|
|
1770
|
-
window.sessionStorage.clear(),
|
|
1777
|
+
window.sessionStorage.clear(), Re({ cmd: "clear" });
|
|
1771
1778
|
}
|
|
1772
1779
|
},
|
|
1773
1780
|
addMicroAppLifeCycleListener: (e, t) => {
|
|
1774
1781
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8);
|
|
1775
|
-
|
|
1782
|
+
se || (se = {});
|
|
1776
1783
|
const s = () => {
|
|
1777
|
-
|
|
1784
|
+
se[n] && delete se[n];
|
|
1778
1785
|
};
|
|
1779
|
-
return
|
|
1786
|
+
return se[n] = {
|
|
1780
1787
|
type: e,
|
|
1781
1788
|
handler: async (r) => await t(r),
|
|
1782
1789
|
remove: s
|
|
@@ -1784,7 +1791,7 @@ const se = (e, t, n) => {
|
|
|
1784
1791
|
},
|
|
1785
1792
|
triggerMicroAppLifeCycleListener: (e, t, n) => {
|
|
1786
1793
|
var a;
|
|
1787
|
-
const s =
|
|
1794
|
+
const s = se, { autoRemove: r = !1 } = n || {};
|
|
1788
1795
|
for (const i in s) {
|
|
1789
1796
|
const o = s[i];
|
|
1790
1797
|
o.type === e && ((a = o == null ? void 0 : o.handler) == null || a.call(o, t).then(() => {
|
|
@@ -1793,23 +1800,23 @@ const se = (e, t, n) => {
|
|
|
1793
1800
|
}
|
|
1794
1801
|
},
|
|
1795
1802
|
reloadMicroAppRoute: async (e, t) => {
|
|
1796
|
-
const n =
|
|
1797
|
-
n && (!n.loaded || !n.actived || (n.dom || await new Promise((s) =>
|
|
1803
|
+
const n = C.value.find((s) => s.name === e);
|
|
1804
|
+
n && (!n.loaded || !n.actived || (n.dom || await new Promise((s) => V(() => n.dom, s)), re(e, "route", { cmd: "reload", path: t })));
|
|
1798
1805
|
},
|
|
1799
1806
|
unloadMicroAppRoute: async (e, t) => {
|
|
1800
|
-
const n =
|
|
1801
|
-
n && (!n.loaded || !n.actived || (n.dom || await new Promise((s) =>
|
|
1807
|
+
const n = C.value.find((s) => s.name === e);
|
|
1808
|
+
n && (!n.loaded || !n.actived || (n.dom || await new Promise((s) => V(() => n.dom, s)), re(e, "route", { cmd: "unload", path: t })));
|
|
1802
1809
|
},
|
|
1803
1810
|
setMainAppLayoutVisible: (e) => {
|
|
1804
|
-
|
|
1811
|
+
ke("layoutVisible", { visible: e });
|
|
1805
1812
|
}
|
|
1806
|
-
},
|
|
1813
|
+
}, Cs = /* @__PURE__ */ Q({
|
|
1807
1814
|
__name: "das-micro-apps",
|
|
1808
1815
|
setup(e) {
|
|
1809
|
-
const t =
|
|
1810
|
-
const o =
|
|
1816
|
+
const t = I(null), n = async (a, i) => {
|
|
1817
|
+
const o = C.value.find((f) => f.name === i);
|
|
1811
1818
|
if (!o) return;
|
|
1812
|
-
o.dom = a.target, await
|
|
1819
|
+
o.dom = a.target, await Ie(), await new Promise((f) => setTimeout(f, 50));
|
|
1813
1820
|
const c = () => {
|
|
1814
1821
|
const f = t.value.getBoundingClientRect() || {};
|
|
1815
1822
|
return f.width = t.value.clientWidth, f.height = t.value.clientHeight, f;
|
|
@@ -1825,17 +1832,17 @@ const se = (e, t, n) => {
|
|
|
1825
1832
|
A.sendMessageToMicroApp(i, "resize", c());
|
|
1826
1833
|
}).observe(t.value), A.sendMessageToMicroApp(i, "setProxyMessageStatus", { visible: !0, parentHref: location.href }), A.sendMessageToMicroApp(i, "setProxSsoStatus", { visible: !0, parentHref: location.href });
|
|
1827
1834
|
}, s = (a, i) => {
|
|
1828
|
-
const o =
|
|
1835
|
+
const o = C.value.find((u) => u.name === i);
|
|
1829
1836
|
if (!o) return;
|
|
1830
1837
|
const { dom: c, ...l } = o;
|
|
1831
1838
|
A.sendMessageToMicroApp(i, "onActivated"), A.triggerMicroAppLifeCycleListener("onActivated", l);
|
|
1832
1839
|
}, r = (a, i) => {
|
|
1833
|
-
const o =
|
|
1840
|
+
const o = C.value.find((u) => u.name === i);
|
|
1834
1841
|
if (!o) return;
|
|
1835
1842
|
const { dom: c, ...l } = o;
|
|
1836
1843
|
A.sendMessageToMicroApp(i, "onDeactivated"), A.triggerMicroAppLifeCycleListener("onDeactivated", l);
|
|
1837
1844
|
};
|
|
1838
|
-
return (a, i) => (g(),
|
|
1845
|
+
return (a, i) => (g(), T(
|
|
1839
1846
|
"div",
|
|
1840
1847
|
{
|
|
1841
1848
|
ref_key: "containerRef",
|
|
@@ -1843,14 +1850,14 @@ const se = (e, t, n) => {
|
|
|
1843
1850
|
class: "das-micro-app-container"
|
|
1844
1851
|
},
|
|
1845
1852
|
[
|
|
1846
|
-
(g(!0),
|
|
1847
|
-
|
|
1853
|
+
(g(!0), T(
|
|
1854
|
+
pe,
|
|
1848
1855
|
null,
|
|
1849
|
-
|
|
1850
|
-
|
|
1856
|
+
De(b(C), (o) => (g(), T(
|
|
1857
|
+
pe,
|
|
1851
1858
|
null,
|
|
1852
1859
|
[
|
|
1853
|
-
o.loaded ?
|
|
1860
|
+
o.loaded ? F((g(), R(Is, {
|
|
1854
1861
|
key: 0,
|
|
1855
1862
|
src: o.src || "",
|
|
1856
1863
|
name: o.name,
|
|
@@ -1859,8 +1866,8 @@ const se = (e, t, n) => {
|
|
|
1859
1866
|
onOnActivated: (c) => s(c, o.name),
|
|
1860
1867
|
onOnDeactivated: (c) => r(c, o.name)
|
|
1861
1868
|
}, null, 8, ["src", "name", "actived", "onOnLoaded", "onOnActivated", "onOnDeactivated"])), [
|
|
1862
|
-
[
|
|
1863
|
-
]) :
|
|
1869
|
+
[j, o.actived]
|
|
1870
|
+
]) : L("v-if", !0)
|
|
1864
1871
|
],
|
|
1865
1872
|
64
|
|
1866
1873
|
/* STABLE_FRAGMENT */
|
|
@@ -1873,7 +1880,7 @@ const se = (e, t, n) => {
|
|
|
1873
1880
|
/* NEED_PATCH */
|
|
1874
1881
|
));
|
|
1875
1882
|
}
|
|
1876
|
-
}),
|
|
1883
|
+
}), Ms = /* @__PURE__ */ Te(Cs, [["__scopeId", "data-v-2e3798bc"]]), mr = /* @__PURE__ */ Q({
|
|
1877
1884
|
__name: "das-main-app-layout",
|
|
1878
1885
|
props: {
|
|
1879
1886
|
transitionConfig: {},
|
|
@@ -1884,89 +1891,89 @@ const se = (e, t, n) => {
|
|
|
1884
1891
|
tabsAttr: {}
|
|
1885
1892
|
},
|
|
1886
1893
|
setup(e) {
|
|
1887
|
-
const t = e, n = p(() => !
|
|
1894
|
+
const t = e, n = p(() => !be.value), s = p(() => t.showLayout ?? !0), r = p(() => t.showAside ?? !0), a = p(() => t.showTabs ?? !0), i = p(() => t.menuAttr ?? {}), o = p(() => t.tabsAttr ?? {}), c = p(() => ({
|
|
1888
1895
|
"enter-active-class": "animate__animated animate__fadeInLeft",
|
|
1889
1896
|
...t.transitionConfig || {}
|
|
1890
1897
|
})), l = p(() => ({ showLayout: s.value, showAside: r.value, showTabs: a.value }));
|
|
1891
|
-
return (u, d) => (g(), R(b(
|
|
1898
|
+
return (u, d) => (g(), R(b(dt), Ee({
|
|
1892
1899
|
"transition-config": c.value,
|
|
1893
1900
|
"router-view-visible": n.value
|
|
1894
1901
|
}, l.value), {
|
|
1895
|
-
header:
|
|
1896
|
-
|
|
1897
|
-
|
|
1902
|
+
header: G(() => [
|
|
1903
|
+
z(u.$slots, "header", {}, () => [
|
|
1904
|
+
X(b(Qt))
|
|
1898
1905
|
])
|
|
1899
1906
|
]),
|
|
1900
|
-
aside:
|
|
1901
|
-
|
|
1902
|
-
|
|
1907
|
+
aside: G(() => [
|
|
1908
|
+
z(u.$slots, "aside", {}, () => [
|
|
1909
|
+
X(b(qt), { menuAttr: i.value }, null, 8, ["menuAttr"])
|
|
1903
1910
|
])
|
|
1904
1911
|
]),
|
|
1905
|
-
tab:
|
|
1906
|
-
|
|
1907
|
-
|
|
1912
|
+
tab: G(() => [
|
|
1913
|
+
z(u.$slots, "tab", {}, () => [
|
|
1914
|
+
X(b(Jt), { tabsAttr: o.value }, null, 8, ["tabsAttr"])
|
|
1908
1915
|
])
|
|
1909
1916
|
]),
|
|
1910
|
-
default:
|
|
1911
|
-
|
|
1917
|
+
default: G(() => [
|
|
1918
|
+
X(Ms)
|
|
1912
1919
|
]),
|
|
1913
1920
|
_: 3
|
|
1914
1921
|
/* FORWARDED */
|
|
1915
1922
|
}, 16, ["transition-config", "router-view-visible"]));
|
|
1916
1923
|
}
|
|
1917
|
-
}),
|
|
1924
|
+
}), Et = /* @__PURE__ */ Q({
|
|
1918
1925
|
__name: "das-micro-app-ghost",
|
|
1919
1926
|
setup(e) {
|
|
1920
|
-
return
|
|
1927
|
+
return Ft(() => {
|
|
1921
1928
|
setTimeout(() => {
|
|
1922
1929
|
document.documentElement.checkVisibility() && history.back();
|
|
1923
1930
|
}, 300);
|
|
1924
1931
|
}), (t, n) => null;
|
|
1925
1932
|
}
|
|
1926
1933
|
});
|
|
1927
|
-
var
|
|
1928
|
-
const
|
|
1934
|
+
var nt;
|
|
1935
|
+
const Ue = typeof window < "u", Os = (e) => typeof e == "string", Ps = () => {
|
|
1929
1936
|
};
|
|
1930
|
-
|
|
1931
|
-
function
|
|
1937
|
+
Ue && ((nt = window == null ? void 0 : window.navigator) != null && nt.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
1938
|
+
function Tt(e) {
|
|
1932
1939
|
return typeof e == "function" ? e() : b(e);
|
|
1933
1940
|
}
|
|
1934
|
-
function
|
|
1941
|
+
function ks(e) {
|
|
1935
1942
|
return e;
|
|
1936
1943
|
}
|
|
1937
|
-
function
|
|
1938
|
-
return
|
|
1944
|
+
function Ct(e) {
|
|
1945
|
+
return jt() ? (Ut(e), !0) : !1;
|
|
1939
1946
|
}
|
|
1940
|
-
function
|
|
1941
|
-
Ht() ?
|
|
1947
|
+
function Rs(e, t = !0) {
|
|
1948
|
+
Ht() ? ut(e) : t ? e() : Ie(e);
|
|
1942
1949
|
}
|
|
1943
|
-
function
|
|
1950
|
+
function Mt(e) {
|
|
1944
1951
|
var t;
|
|
1945
|
-
const n =
|
|
1952
|
+
const n = Tt(e);
|
|
1946
1953
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
1947
1954
|
}
|
|
1948
|
-
const
|
|
1949
|
-
function
|
|
1955
|
+
const $s = Ue ? window : void 0, Ds = Ue ? window.document : void 0;
|
|
1956
|
+
function Ns(...e) {
|
|
1950
1957
|
let t, n, s, r;
|
|
1951
|
-
if (
|
|
1952
|
-
return
|
|
1958
|
+
if (Os(e[0]) || Array.isArray(e[0]) ? ([n, s, r] = e, t = $s) : [t, n, s, r] = e, !t)
|
|
1959
|
+
return Ps;
|
|
1953
1960
|
Array.isArray(n) || (n = [n]), Array.isArray(s) || (s = [s]);
|
|
1954
1961
|
const a = [], i = () => {
|
|
1955
1962
|
a.forEach((u) => u()), a.length = 0;
|
|
1956
|
-
}, o = (u, d, f, m) => (u.addEventListener(d, f, m), () => u.removeEventListener(d, f, m)), c =
|
|
1963
|
+
}, o = (u, d, f, m) => (u.addEventListener(d, f, m), () => u.removeEventListener(d, f, m)), c = V(() => [Mt(t), Tt(r)], ([u, d]) => {
|
|
1957
1964
|
i(), u && a.push(...n.flatMap((f) => s.map((m) => o(u, f, m, d))));
|
|
1958
1965
|
}, { immediate: !0, flush: "post" }), l = () => {
|
|
1959
1966
|
c(), i();
|
|
1960
1967
|
};
|
|
1961
|
-
return
|
|
1968
|
+
return Ct(l), l;
|
|
1962
1969
|
}
|
|
1963
|
-
function
|
|
1964
|
-
const n =
|
|
1965
|
-
return s(),
|
|
1970
|
+
function Vs(e, t = !1) {
|
|
1971
|
+
const n = I(), s = () => n.value = !!e();
|
|
1972
|
+
return s(), Rs(s, t), n;
|
|
1966
1973
|
}
|
|
1967
|
-
const
|
|
1968
|
-
rt
|
|
1969
|
-
const
|
|
1974
|
+
const st = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, rt = "__vueuse_ssr_handlers__";
|
|
1975
|
+
st[rt] = st[rt] || {};
|
|
1976
|
+
const at = [
|
|
1970
1977
|
[
|
|
1971
1978
|
"requestFullscreen",
|
|
1972
1979
|
"exitFullscreen",
|
|
@@ -2008,14 +2015,14 @@ const ot = [
|
|
|
2008
2015
|
"MSFullscreenError"
|
|
2009
2016
|
]
|
|
2010
2017
|
];
|
|
2011
|
-
function
|
|
2012
|
-
const { document: n =
|
|
2013
|
-
let i =
|
|
2014
|
-
const o =
|
|
2018
|
+
function xs(e, t = {}) {
|
|
2019
|
+
const { document: n = Ds, autoExit: s = !1 } = t, r = n == null ? void 0 : n.querySelector("html"), a = I(!1);
|
|
2020
|
+
let i = at[0];
|
|
2021
|
+
const o = Vs(() => {
|
|
2015
2022
|
if (n) {
|
|
2016
|
-
for (const
|
|
2017
|
-
if (
|
|
2018
|
-
return i =
|
|
2023
|
+
for (const S of at)
|
|
2024
|
+
if (S[1] in n)
|
|
2025
|
+
return i = S, !0;
|
|
2019
2026
|
} else
|
|
2020
2027
|
return !1;
|
|
2021
2028
|
return !1;
|
|
@@ -2027,35 +2034,35 @@ function Fs(e, t = {}) {
|
|
|
2027
2034
|
if (!o.value)
|
|
2028
2035
|
return;
|
|
2029
2036
|
await f();
|
|
2030
|
-
const
|
|
2031
|
-
|
|
2037
|
+
const S = Mt(r);
|
|
2038
|
+
S && (await S[c](), a.value = !0);
|
|
2032
2039
|
}
|
|
2033
|
-
async function
|
|
2040
|
+
async function w() {
|
|
2034
2041
|
a.value ? await f() : await m();
|
|
2035
2042
|
}
|
|
2036
|
-
return n &&
|
|
2043
|
+
return n && Ns(n, d, () => {
|
|
2037
2044
|
a.value = !!(n != null && n[u]);
|
|
2038
|
-
}, !1), s &&
|
|
2045
|
+
}, !1), s && Ct(f), {
|
|
2039
2046
|
isSupported: o,
|
|
2040
2047
|
isFullscreen: a,
|
|
2041
2048
|
enter: m,
|
|
2042
2049
|
exit: f,
|
|
2043
|
-
toggle:
|
|
2050
|
+
toggle: w
|
|
2044
2051
|
};
|
|
2045
2052
|
}
|
|
2046
|
-
var
|
|
2053
|
+
var ot;
|
|
2047
2054
|
(function(e) {
|
|
2048
2055
|
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
|
2049
|
-
})(
|
|
2050
|
-
var
|
|
2056
|
+
})(ot || (ot = {}));
|
|
2057
|
+
var Fs = Object.defineProperty, it = Object.getOwnPropertySymbols, js = Object.prototype.hasOwnProperty, Us = Object.prototype.propertyIsEnumerable, ct = (e, t, n) => t in e ? Fs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Hs = (e, t) => {
|
|
2051
2058
|
for (var n in t || (t = {}))
|
|
2052
|
-
|
|
2053
|
-
if (
|
|
2054
|
-
for (var n of
|
|
2055
|
-
|
|
2059
|
+
js.call(t, n) && ct(e, n, t[n]);
|
|
2060
|
+
if (it)
|
|
2061
|
+
for (var n of it(t))
|
|
2062
|
+
Us.call(t, n) && ct(e, n, t[n]);
|
|
2056
2063
|
return e;
|
|
2057
2064
|
};
|
|
2058
|
-
const
|
|
2065
|
+
const Bs = {
|
|
2059
2066
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
2060
2067
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
2061
2068
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -2082,26 +2089,26 @@ const Ws = {
|
|
|
2082
2089
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
2083
2090
|
};
|
|
2084
2091
|
Hs({
|
|
2085
|
-
linear:
|
|
2086
|
-
},
|
|
2087
|
-
const
|
|
2092
|
+
linear: ks
|
|
2093
|
+
}, Bs);
|
|
2094
|
+
const Ws = (e) => ["http://", "https://", "ws://", "wss://", "/"].find((n) => e.startsWith(n)) ? e : `/${e}`, pr = (e, t) => {
|
|
2088
2095
|
if (!(e != null && e.microApps) || !Array.isArray(e.microApps)) return;
|
|
2089
|
-
window.__IN_DAS_MAIN_APP = !0, e != null && e.microAppRouterPrefix && (
|
|
2096
|
+
window.__IN_DAS_MAIN_APP = !0, e != null && e.microAppRouterPrefix && (tt.value = e.microAppRouterPrefix), C.value = (e.microApps || []).filter((r) => !!r.name).map((r) => ({ ...r, entry: Ws(r.entry || r.name) })), t == null || t.addRoute({
|
|
2090
2097
|
name: "das-micro-app",
|
|
2091
|
-
path: `${
|
|
2092
|
-
component:
|
|
2098
|
+
path: `${tt.value}/:pathMatch(.*)*`,
|
|
2099
|
+
component: Et,
|
|
2093
2100
|
meta: { isMicroApp: !0, keepAlive: !0 }
|
|
2094
2101
|
}), A.addEventListenerFromMicroApp("bodyOverlay", (r) => {
|
|
2095
2102
|
const { visible: a, style: i } = r.data;
|
|
2096
|
-
|
|
2103
|
+
h.overlay.set(a, i);
|
|
2097
2104
|
}), A.addEventListenerFromMicroApp("layoutVisible", (r) => {
|
|
2098
2105
|
const { visible: a } = r.data;
|
|
2099
|
-
|
|
2106
|
+
h.setVisible(a);
|
|
2100
2107
|
}), A.addEventListenerFromMicroApp("route", (r) => {
|
|
2101
2108
|
const { name: a, cmd: i, path: o } = r.data;
|
|
2102
2109
|
i === "reload" && A.reloadMicroAppRoute(a, o), i === "unload" && A.unloadMicroAppRoute(a, o);
|
|
2103
2110
|
});
|
|
2104
|
-
const { enter: n, exit: s } =
|
|
2111
|
+
const { enter: n, exit: s } = xs();
|
|
2105
2112
|
A.addEventListenerFromMicroApp("fullscreen", (r) => {
|
|
2106
2113
|
const a = r.data;
|
|
2107
2114
|
a && n(), a || s();
|
|
@@ -2109,18 +2116,18 @@ const zs = (e) => ["http://", "https://", "ws://", "wss://", "/"].find((n) => e.
|
|
|
2109
2116
|
const { cmd: a, isAutoCloseApp: i } = r.data || {};
|
|
2110
2117
|
a === "reload" && (i !== void 0 && (window.__isAutoCloseApp = i), location.reload());
|
|
2111
2118
|
});
|
|
2112
|
-
},
|
|
2119
|
+
}, vr = (e, t) => {
|
|
2113
2120
|
if (!(e != null && e.microAppName)) return;
|
|
2114
2121
|
window.config.microAppName = e.microAppName, window.self !== window.top && e.microAppName && (window.__IN_DAS_MICRO_APP = !0);
|
|
2115
2122
|
const n = "das-micro-app-ghost";
|
|
2116
2123
|
t == null || t.addRoute({
|
|
2117
2124
|
name: n,
|
|
2118
2125
|
path: `/${n}/:pathMatch(.*)*`,
|
|
2119
|
-
component:
|
|
2126
|
+
component: Et,
|
|
2120
2127
|
meta: { isMicroApp: !0, keepAlive: !0 }
|
|
2121
2128
|
});
|
|
2122
|
-
const s =
|
|
2123
|
-
|
|
2129
|
+
const s = I(!1), r = I(!1), a = I("");
|
|
2130
|
+
V(
|
|
2124
2131
|
() => t.currentRoute.value,
|
|
2125
2132
|
(i) => {
|
|
2126
2133
|
if (s.value) {
|
|
@@ -2168,37 +2175,37 @@ const zs = (e) => ["http://", "https://", "ws://", "wss://", "/"].find((n) => e.
|
|
|
2168
2175
|
o === "setItem" && window.sessionStorage.setItem(c, l), o === "getItem" && window.sessionStorage.getItem(c), o === "removeItem" && window.sessionStorage.removeItem(c), o === "clear" && window.sessionStorage.clear();
|
|
2169
2176
|
}), A.addEventListenerFromMainApp("route", (i) => {
|
|
2170
2177
|
const { cmd: o, path: c } = i.data;
|
|
2171
|
-
o === "reload" && (
|
|
2172
|
-
|
|
2173
|
-
}, 300)), o === "unload" && (
|
|
2174
|
-
|
|
2178
|
+
o === "reload" && (fe.value.push(c), me.value = !1, setTimeout(() => {
|
|
2179
|
+
me.value = !0, fe.value = [];
|
|
2180
|
+
}, 300)), o === "unload" && (fe.value.push(c), me.value = !1, setTimeout(() => {
|
|
2181
|
+
me.value = !0, fe.value = [];
|
|
2175
2182
|
}, 100));
|
|
2176
2183
|
});
|
|
2177
2184
|
};
|
|
2178
2185
|
export {
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2186
|
+
mr as DasMainAppLayout,
|
|
2187
|
+
lr as DasWebLayout,
|
|
2188
|
+
dr as DasWebMenu,
|
|
2189
|
+
ur as DasWebNav,
|
|
2190
|
+
fr as DasWebTabs,
|
|
2191
|
+
er as createDasWebApp,
|
|
2192
|
+
Le as currentLang,
|
|
2193
|
+
ie as currentTheme,
|
|
2187
2194
|
Hn as getI18nRule,
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2195
|
+
rr as getLang,
|
|
2196
|
+
Qn as getThemeRule,
|
|
2197
|
+
ir as getVar,
|
|
2198
|
+
cr as getVarValue,
|
|
2199
|
+
Bn as i18n,
|
|
2200
|
+
tr as initI18n,
|
|
2201
|
+
pr as initMainApp,
|
|
2202
|
+
vr as initMicroApp,
|
|
2203
|
+
ar as initTheme,
|
|
2204
|
+
h as layout,
|
|
2198
2205
|
A as microFrontend,
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2206
|
+
Ze as setI18nRule,
|
|
2207
|
+
sr as setLang,
|
|
2208
|
+
or as setTheme,
|
|
2209
|
+
et as setThemeRule,
|
|
2210
|
+
nr as t
|
|
2204
2211
|
};
|