@das-fed/web 7.1.0-seres.34 → 7.1.0-seres.36
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-C1ck-vmi.js → app-2CbrmoXZ.js} +3 -3
- package/app-2CbrmoXZ.js.gz +0 -0
- package/{index-CMGdtA5h.js → index-CZVFgewy.js} +4823 -4811
- package/index-CZVFgewy.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/layout/index.js +180 -180
- package/packages/layout/index.js.gz +0 -0
- package/packages/main-app-framework/{index-CImefvyo.js → app-Yalh1QXX.js} +3 -3
- package/packages/main-app-framework/app-Yalh1QXX.js.gz +0 -0
- package/packages/main-app-framework/{index-C3DFQfz9.js → index-C7K7q8RI.js} +4474 -4462
- package/packages/main-app-framework/index-C7K7q8RI.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/packages/main-app-framework/placeholder-page-Dx12wBc_.js +10 -0
- package/packages/main-app-framework/style.css +1 -1
- package/packages/main-app-framework/style.css.gz +0 -0
- package/packages/micro-frontend/index.js +128 -128
- package/packages/micro-frontend/index.js.gz +0 -0
- package/placeholder-page-j9M4jg3o.js +10 -0
- package/style.css +1 -1
- package/style.css.gz +0 -0
- package/index-C1ck-vmi.js.gz +0 -0
- package/index-CMGdtA5h.js.gz +0 -0
- package/index-D0dQeY0B.js +0 -10
- package/packages/main-app-framework/index-C3DFQfz9.js.gz +0 -0
- package/packages/main-app-framework/index-CFzuUhK2.js +0 -10
- package/packages/main-app-framework/index-CImefvyo.js.gz +0 -0
package/packages/layout/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@das-fed/web/packages/layout/style.css';
|
|
2
|
-
import { reactive as Q, ref as $, defineComponent as z, computed as
|
|
2
|
+
import { reactive as Q, ref as $, defineComponent as z, computed as u, watch as te, openBlock as g, createElementBlock as I, Fragment as Y, createBlock as V, TransitionGroup as we, normalizeProps as ne, mergeProps as ae, withCtx as W, renderList as ce, withDirectives as x, resolveDynamicComponent as N, vShow as D, unref as L, createCommentVNode as w, nextTick as ue, resolveComponent as be, createElementVNode as j, normalizeStyle as Le, normalizeClass as Ie, renderSlot as F, createVNode as Z, Transition as ve, guardReactiveProps as de, KeepAlive as me, h as ee, onBeforeMount as Ce, onMounted as _e, onUnmounted as ke } from "vue";
|
|
3
3
|
import { useRouter as Te, useRoute as pe } from "vue-router";
|
|
4
4
|
import { setHtmlMinWH as Ae } from "@das-fed/utils/common-tools/setHtmlMinWH";
|
|
5
5
|
import { createCeNav as Ee, createCeTabs as Re, createCeMenu as Ve } from "@das-fed/web-components/das-web-app";
|
|
@@ -34,11 +34,11 @@ const p = Q({
|
|
|
34
34
|
},
|
|
35
35
|
getItems: () => p.items,
|
|
36
36
|
removeItem: (e) => {
|
|
37
|
-
const t = p.items.filter((
|
|
37
|
+
const t = p.items.filter((n) => n.value !== e);
|
|
38
38
|
p.items = t;
|
|
39
39
|
},
|
|
40
40
|
appendItem: (e) => {
|
|
41
|
-
p.visible || (p.visible = !0), !p.items.find((
|
|
41
|
+
p.visible || (p.visible = !0), !p.items.find((n) => n.value == e.value) && p.items.push(e);
|
|
42
42
|
},
|
|
43
43
|
setActiveItem: (e) => {
|
|
44
44
|
p.activeItem = e;
|
|
@@ -61,9 +61,9 @@ const p = Q({
|
|
|
61
61
|
setSearchConfig: (e) => {
|
|
62
62
|
p.searchConfig = e;
|
|
63
63
|
},
|
|
64
|
-
triggerEventListener: (e, t,
|
|
64
|
+
triggerEventListener: (e, t, n) => {
|
|
65
65
|
var m;
|
|
66
|
-
const l = p.eventListeners, { autoRemove: d = !1 } =
|
|
66
|
+
const l = p.eventListeners, { autoRemove: d = !1 } = n || {}, r = [];
|
|
67
67
|
for (const b in l) {
|
|
68
68
|
const o = l[b];
|
|
69
69
|
o.type === e && r.push(
|
|
@@ -75,10 +75,10 @@ const p = Q({
|
|
|
75
75
|
return Promise.all(r).then(() => !0).catch(() => !1);
|
|
76
76
|
},
|
|
77
77
|
addEventListener: (e, t) => {
|
|
78
|
-
const
|
|
79
|
-
p.eventListeners[
|
|
78
|
+
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
|
|
79
|
+
p.eventListeners[n] && delete p.eventListeners[n];
|
|
80
80
|
};
|
|
81
|
-
return p.eventListeners[
|
|
81
|
+
return p.eventListeners[n] = {
|
|
82
82
|
type: e,
|
|
83
83
|
handler: async (d) => {
|
|
84
84
|
try {
|
|
@@ -114,9 +114,9 @@ const p = Q({
|
|
|
114
114
|
setPopupClassName: (e) => {
|
|
115
115
|
R.popupClassName = e;
|
|
116
116
|
},
|
|
117
|
-
triggerEventListener: (e, t,
|
|
117
|
+
triggerEventListener: (e, t, n) => {
|
|
118
118
|
var m;
|
|
119
|
-
const l = R.eventListeners, { autoRemove: d = !1 } =
|
|
119
|
+
const l = R.eventListeners, { autoRemove: d = !1 } = n || {}, r = [];
|
|
120
120
|
for (const b in l) {
|
|
121
121
|
const o = l[b];
|
|
122
122
|
o.type === e && r.push(
|
|
@@ -128,10 +128,10 @@ const p = Q({
|
|
|
128
128
|
return Promise.all(r).then(() => !0).catch(() => !1);
|
|
129
129
|
},
|
|
130
130
|
addEventListener: (e, t) => {
|
|
131
|
-
const
|
|
132
|
-
R.eventListeners[
|
|
131
|
+
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
|
|
132
|
+
R.eventListeners[n] && delete R.eventListeners[n];
|
|
133
133
|
};
|
|
134
|
-
return R.eventListeners[
|
|
134
|
+
return R.eventListeners[n] = {
|
|
135
135
|
type: e,
|
|
136
136
|
handler: async (d) => {
|
|
137
137
|
try {
|
|
@@ -145,32 +145,32 @@ const p = Q({
|
|
|
145
145
|
remove: l
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
|
-
},
|
|
148
|
+
}, _ = Q({
|
|
149
149
|
theme: "default",
|
|
150
150
|
items: [],
|
|
151
151
|
eventListeners: {}
|
|
152
152
|
}), ge = {
|
|
153
153
|
setItems: (e) => {
|
|
154
|
-
|
|
154
|
+
_.items = e;
|
|
155
155
|
},
|
|
156
|
-
getItems: () =>
|
|
156
|
+
getItems: () => _.items,
|
|
157
157
|
setTheme: (e) => {
|
|
158
|
-
|
|
158
|
+
_.theme = e;
|
|
159
159
|
},
|
|
160
160
|
removeItem: (e) => {
|
|
161
|
-
const t =
|
|
162
|
-
|
|
161
|
+
const t = _.items.filter((n) => n.value !== e);
|
|
162
|
+
_.items = t;
|
|
163
163
|
},
|
|
164
164
|
appendItem: (e) => {
|
|
165
|
-
const t =
|
|
166
|
-
t !== -1 ?
|
|
165
|
+
const t = _.items.findIndex((n) => n.value == e.value);
|
|
166
|
+
t !== -1 ? _.items.splice(t, 1, e) : _.items.push(e);
|
|
167
167
|
},
|
|
168
168
|
setActiveItem: (e) => {
|
|
169
|
-
|
|
169
|
+
_.activeItem = e;
|
|
170
170
|
},
|
|
171
|
-
triggerEventListener: (e, t,
|
|
171
|
+
triggerEventListener: (e, t, n) => {
|
|
172
172
|
var m;
|
|
173
|
-
const l =
|
|
173
|
+
const l = _.eventListeners, { autoRemove: d = !1 } = n || {}, r = [];
|
|
174
174
|
for (const b in l) {
|
|
175
175
|
const o = l[b];
|
|
176
176
|
o.type === e && r.push(
|
|
@@ -182,10 +182,10 @@ const p = Q({
|
|
|
182
182
|
return Promise.all(r).then(() => !0).catch(() => !1);
|
|
183
183
|
},
|
|
184
184
|
addEventListener: (e, t) => {
|
|
185
|
-
const
|
|
186
|
-
|
|
185
|
+
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
|
|
186
|
+
_.eventListeners[n] && delete _.eventListeners[n];
|
|
187
187
|
};
|
|
188
|
-
return
|
|
188
|
+
return _.eventListeners[n] = {
|
|
189
189
|
type: e,
|
|
190
190
|
handler: async (d) => {
|
|
191
191
|
try {
|
|
@@ -202,9 +202,9 @@ const p = Q({
|
|
|
202
202
|
}, K = Q({
|
|
203
203
|
eventListeners: {}
|
|
204
204
|
}), Se = {
|
|
205
|
-
triggerEventListener: (e, t,
|
|
205
|
+
triggerEventListener: (e, t, n) => {
|
|
206
206
|
var m;
|
|
207
|
-
const l = K.eventListeners, { autoRemove: d = !1 } =
|
|
207
|
+
const l = K.eventListeners, { autoRemove: d = !1 } = n || {}, r = [];
|
|
208
208
|
for (const b in l) {
|
|
209
209
|
const o = l[b];
|
|
210
210
|
o.type === e && r.push(
|
|
@@ -216,10 +216,10 @@ const p = Q({
|
|
|
216
216
|
return Promise.all(r).then(() => !0).catch(() => !1);
|
|
217
217
|
},
|
|
218
218
|
addEventListener: (e, t) => {
|
|
219
|
-
const
|
|
220
|
-
K.eventListeners[
|
|
219
|
+
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
|
|
220
|
+
K.eventListeners[n] && delete K.eventListeners[n];
|
|
221
221
|
};
|
|
222
|
-
return K.eventListeners[
|
|
222
|
+
return K.eventListeners[n] = {
|
|
223
223
|
type: e,
|
|
224
224
|
handler: async (d) => {
|
|
225
225
|
try {
|
|
@@ -236,14 +236,14 @@ const p = Q({
|
|
|
236
236
|
}, se = Q({
|
|
237
237
|
visible: !1,
|
|
238
238
|
style: {}
|
|
239
|
-
}),
|
|
239
|
+
}), xe = {
|
|
240
240
|
set: (e, t) => {
|
|
241
241
|
se.visible = e, t || (t = {}), t.transition || (t.transition = "all 0.3s"), t && (se.style = t);
|
|
242
242
|
}
|
|
243
243
|
}, B = {
|
|
244
244
|
nav: p,
|
|
245
245
|
menu: R,
|
|
246
|
-
tab:
|
|
246
|
+
tab: _,
|
|
247
247
|
overlay: se,
|
|
248
248
|
iframeView: K,
|
|
249
249
|
visible: $(!0)
|
|
@@ -251,13 +251,13 @@ const p = Q({
|
|
|
251
251
|
nav: fe,
|
|
252
252
|
menu: he,
|
|
253
253
|
tab: ge,
|
|
254
|
-
overlay:
|
|
254
|
+
overlay: xe,
|
|
255
255
|
iframeView: Se,
|
|
256
256
|
setVisible: (e) => B.visible.value = e,
|
|
257
257
|
setTheme: (e) => {
|
|
258
258
|
fe.setTheme(e), he.setTheme(e), ge.setTheme(e);
|
|
259
259
|
}
|
|
260
|
-
},
|
|
260
|
+
}, De = ["name"], Me = ["name"], je = /* @__PURE__ */ z({
|
|
261
261
|
__name: "das-iframe-router-view",
|
|
262
262
|
props: {
|
|
263
263
|
needTransition: { type: Boolean },
|
|
@@ -265,40 +265,40 @@ const p = Q({
|
|
|
265
265
|
exclude: { default: () => [] }
|
|
266
266
|
},
|
|
267
267
|
setup(e) {
|
|
268
|
-
const t = e,
|
|
269
|
-
const { mode:
|
|
268
|
+
const t = e, n = u(() => {
|
|
269
|
+
const { mode: s = "", ...a } = {
|
|
270
270
|
mode: "out-in",
|
|
271
271
|
"enter-active-class": "animate__animated animate__fadeInLeft",
|
|
272
272
|
...t.transitionConfig || {}
|
|
273
273
|
};
|
|
274
274
|
return a;
|
|
275
|
-
}), l = Te(), d = pe(), r = $([]), m =
|
|
275
|
+
}), l = Te(), d = pe(), r = $([]), m = u(() => r.value.filter((s) => {
|
|
276
276
|
var a;
|
|
277
|
-
return (a =
|
|
278
|
-
})), b = (
|
|
279
|
-
const a =
|
|
280
|
-
let i = a !== -1 ?
|
|
277
|
+
return (a = s.meta) == null ? void 0 : a.isOpen;
|
|
278
|
+
})), b = (s) => {
|
|
279
|
+
const a = s.lastIndexOf("-");
|
|
280
|
+
let i = a !== -1 ? s.substring(a + 1) : "";
|
|
281
281
|
i === "0" ? i = "1" : i = "0", m.value.forEach((f) => {
|
|
282
|
-
f.meta.key ===
|
|
282
|
+
f.meta.key === s && (f.meta.key = `${f.path}-${i}`);
|
|
283
283
|
});
|
|
284
284
|
};
|
|
285
285
|
te(
|
|
286
286
|
() => t.exclude,
|
|
287
|
-
(
|
|
288
|
-
if (!
|
|
289
|
-
const a = m.value.find((i) =>
|
|
287
|
+
(s) => {
|
|
288
|
+
if (!s || !s.length) return;
|
|
289
|
+
const a = m.value.find((i) => s.includes(i.path));
|
|
290
290
|
a && b(a.meta.key);
|
|
291
291
|
},
|
|
292
292
|
{ deep: !0 }
|
|
293
293
|
);
|
|
294
|
-
const o = async (
|
|
295
|
-
const a =
|
|
294
|
+
const o = async (s) => {
|
|
295
|
+
const a = s.component;
|
|
296
296
|
let i = null;
|
|
297
297
|
return typeof a == "function" ? i = (await a()).default : i = a, i;
|
|
298
298
|
}, P = async () => {
|
|
299
299
|
var a;
|
|
300
|
-
const
|
|
301
|
-
for (const i of
|
|
300
|
+
const s = l.options.routes;
|
|
301
|
+
for (const i of s)
|
|
302
302
|
if ((a = i == null ? void 0 : i.meta) != null && a.isIframe && !r.value.find((f) => f.path === i.path)) {
|
|
303
303
|
const f = await o(i);
|
|
304
304
|
r.value.push({
|
|
@@ -310,41 +310,41 @@ const p = Q({
|
|
|
310
310
|
}, T = async () => {
|
|
311
311
|
var i, f;
|
|
312
312
|
if (!r.value || !r.value.length) return;
|
|
313
|
-
const
|
|
314
|
-
|
|
313
|
+
const s = r.value.find((C) => C.meta.isShow);
|
|
314
|
+
s && (s.meta.isShow = !1, await ue(), v.iframeView.triggerEventListener("onDeactivated", { route: s }));
|
|
315
315
|
const a = r.value.find((C) => C.path === d.path);
|
|
316
|
-
a && ((i = a.meta) != null && i.isOpen || (a.meta.isOpen = !0), (f = a.meta) != null && f.isShow || (a.meta.isShow = !0), await
|
|
316
|
+
a && ((i = a.meta) != null && i.isOpen || (a.meta.isOpen = !0), (f = a.meta) != null && f.isShow || (a.meta.isShow = !0), await ue(), v.iframeView.triggerEventListener("onActivated", { route: a }));
|
|
317
317
|
};
|
|
318
318
|
let A = 0;
|
|
319
319
|
return te(
|
|
320
320
|
() => l.currentRoute.value,
|
|
321
321
|
() => {
|
|
322
|
-
const
|
|
323
|
-
|
|
322
|
+
const s = l.options.routes.length;
|
|
323
|
+
s !== A ? (P(), A = s) : T();
|
|
324
324
|
},
|
|
325
325
|
{ immediate: !0 }
|
|
326
326
|
), v.iframeView.addEventListener("onRefreshCurrentPage", () => {
|
|
327
|
-
m.value.forEach((
|
|
327
|
+
m.value.forEach((s) => {
|
|
328
328
|
var a;
|
|
329
|
-
(a =
|
|
329
|
+
(a = s.meta) != null && a.isShow && (s.meta.key.includes("0") ? s.meta.key = s.meta.key.replaceAll("0", "1") : s.meta.key = s.meta.key.replaceAll("1", "0"));
|
|
330
330
|
});
|
|
331
|
-
}), v.iframeView.addEventListener("onUnloadPage", (
|
|
331
|
+
}), v.iframeView.addEventListener("onUnloadPage", (s) => {
|
|
332
332
|
r.value.forEach((a) => {
|
|
333
|
-
a.path ===
|
|
333
|
+
a.path === s && (a.meta.isOpen = !1);
|
|
334
334
|
});
|
|
335
|
-
}), (
|
|
335
|
+
}), (s, a) => (g(), I(
|
|
336
336
|
Y,
|
|
337
337
|
null,
|
|
338
338
|
[
|
|
339
|
-
|
|
339
|
+
e.needTransition ? (g(), V(
|
|
340
340
|
we,
|
|
341
|
-
ne(ae({ key: 0 },
|
|
341
|
+
ne(ae({ key: 0 }, n.value)),
|
|
342
342
|
{
|
|
343
343
|
default: W(() => [
|
|
344
344
|
(g(!0), I(
|
|
345
345
|
Y,
|
|
346
346
|
null,
|
|
347
|
-
|
|
347
|
+
ce(m.value, ({ path: i, meta: f }) => x((g(), I("div", {
|
|
348
348
|
class: "das-iframe-router-view",
|
|
349
349
|
key: f.key,
|
|
350
350
|
name: i
|
|
@@ -352,8 +352,8 @@ const p = Q({
|
|
|
352
352
|
(g(), V(N(f.componentInstance), {
|
|
353
353
|
key: f.key
|
|
354
354
|
}))
|
|
355
|
-
], 8,
|
|
356
|
-
[
|
|
355
|
+
], 8, De)), [
|
|
356
|
+
[D, f.componentInstance && i === L(d).path]
|
|
357
357
|
])),
|
|
358
358
|
128
|
|
359
359
|
/* KEYED_FRAGMENT */
|
|
@@ -365,10 +365,10 @@ const p = Q({
|
|
|
365
365
|
16
|
|
366
366
|
/* FULL_PROPS */
|
|
367
367
|
)) : w("v-if", !0),
|
|
368
|
-
|
|
368
|
+
e.needTransition ? w("v-if", !0) : (g(!0), I(
|
|
369
369
|
Y,
|
|
370
370
|
{ key: 1 },
|
|
371
|
-
|
|
371
|
+
ce(m.value, ({ path: i, meta: f }) => x((g(), I("div", {
|
|
372
372
|
class: "das-iframe-router-view",
|
|
373
373
|
key: f.key,
|
|
374
374
|
name: i
|
|
@@ -376,8 +376,8 @@ const p = Q({
|
|
|
376
376
|
(g(), V(N(f.componentInstance), {
|
|
377
377
|
key: f.key
|
|
378
378
|
}))
|
|
379
|
-
], 8,
|
|
380
|
-
[
|
|
379
|
+
], 8, Me)), [
|
|
380
|
+
[D, f.componentInstance && i === L(d).path]
|
|
381
381
|
])),
|
|
382
382
|
128
|
|
383
383
|
/* KEYED_FRAGMENT */
|
|
@@ -388,11 +388,11 @@ const p = Q({
|
|
|
388
388
|
));
|
|
389
389
|
}
|
|
390
390
|
}), ye = (e, t) => {
|
|
391
|
-
const
|
|
391
|
+
const n = e.__vccOpts || e;
|
|
392
392
|
for (const [l, d] of t)
|
|
393
|
-
|
|
394
|
-
return
|
|
395
|
-
}, $e = /* @__PURE__ */ ye(
|
|
393
|
+
n[l] = d;
|
|
394
|
+
return n;
|
|
395
|
+
}, $e = /* @__PURE__ */ ye(je, [["__scopeId", "data-v-6dd310c9"]]), Be = { class: "das-web-app-container" }, He = {
|
|
396
396
|
key: 0,
|
|
397
397
|
class: "das-web-app-header"
|
|
398
398
|
}, Fe = { class: "das-web-app-main" }, Ne = {
|
|
@@ -431,105 +431,105 @@ const p = Q({
|
|
|
431
431
|
setup(e) {
|
|
432
432
|
const t = e;
|
|
433
433
|
Ee(), Re(), Ve();
|
|
434
|
-
const
|
|
434
|
+
const n = pe(), l = $(!0), d = $(!0), r = $(!0), m = u(() => l.value && t.showLayout), b = u(() => d.value && t.showLayout && t.showAside), o = u(() => l.value && t.showLayout && t.showTabs), P = u(() => t.routerViewVisible ?? !0), T = u(() => B.overlay.visible ?? !1), A = $(!0), s = u(() => A.value && B.visible.value), a = u(() => !m.value || t.ignoreLoading || !t.loading), i = u(() => ({
|
|
435
435
|
"das-web-app-overlay-show": T.value === !0,
|
|
436
436
|
"das-web-app-overlay-hide": T.value === !1,
|
|
437
437
|
"das-web-app-overlay-destroy": T.value === "destroy"
|
|
438
|
-
})), f =
|
|
438
|
+
})), f = u(() => B.overlay.style ?? { backgroundColor: "rgba(0,0,0,0.5)" }), C = u(() => t.excludeRoutes), q = u(() => t.routeKeepAliveVisible);
|
|
439
439
|
te(
|
|
440
|
-
() => [
|
|
441
|
-
([
|
|
442
|
-
const { layout:
|
|
440
|
+
() => [n.meta, n.query],
|
|
441
|
+
([k, S]) => {
|
|
442
|
+
const { layout: c = {}, showLayout: h = !0, showAside: y = !0, showTabs: M = !0 } = k, {
|
|
443
443
|
showLayout: E = !0,
|
|
444
444
|
showAside: H = !0,
|
|
445
445
|
showTabs: re = !0,
|
|
446
446
|
layoutVisible: oe = !0
|
|
447
447
|
} = S;
|
|
448
|
-
Ae(
|
|
448
|
+
Ae(c);
|
|
449
449
|
let ie = !0, J = !0, X = !0;
|
|
450
|
-
(h === !1 || E === !1 || E === "false") && (ie = !1, J = !1, X = !1), (y === !1 || H === !1 || H === "false") && (J = !1), (
|
|
450
|
+
(h === !1 || E === !1 || E === "false") && (ie = !1, J = !1, X = !1), (y === !1 || H === !1 || H === "false") && (J = !1), (M === !1 || re === !1 || re === "false") && (X = !1), l.value = ie, d.value = J, r.value = X;
|
|
451
451
|
let le = !0;
|
|
452
452
|
(oe === !1 || oe === "false") && (le = !1), A.value = le;
|
|
453
453
|
}
|
|
454
454
|
);
|
|
455
|
-
const O =
|
|
455
|
+
const O = u(() => ({
|
|
456
456
|
mode: "out-in",
|
|
457
457
|
"enter-active-class": "animate__animated animate__fadeInLeft",
|
|
458
458
|
...t.transitionConfig || {}
|
|
459
459
|
}));
|
|
460
460
|
let U = /* @__PURE__ */ new Map();
|
|
461
|
-
const G = (
|
|
462
|
-
if (!
|
|
463
|
-
let
|
|
464
|
-
return U.has(S) ?
|
|
461
|
+
const G = (k, S) => {
|
|
462
|
+
if (!k) return null;
|
|
463
|
+
let c;
|
|
464
|
+
return U.has(S) ? c = U.get(S) : (c = {
|
|
465
465
|
name: S,
|
|
466
466
|
render() {
|
|
467
|
-
return ee("div", { style: { width: "100%", height: "100%" } }, [ee(
|
|
467
|
+
return ee("div", { style: { width: "100%", height: "100%" } }, [ee(k)]);
|
|
468
468
|
}
|
|
469
|
-
}, U.set(S,
|
|
469
|
+
}, U.set(S, c)), ee(c);
|
|
470
470
|
};
|
|
471
|
-
return (
|
|
472
|
-
const
|
|
471
|
+
return (k, S) => {
|
|
472
|
+
const c = be("router-view");
|
|
473
473
|
return g(), I("div", Be, [
|
|
474
|
-
|
|
474
|
+
x(j(
|
|
475
475
|
"div",
|
|
476
476
|
{
|
|
477
|
-
class:
|
|
477
|
+
class: Ie(["das-web-app-overlay", i.value]),
|
|
478
478
|
style: Le(f.value)
|
|
479
479
|
},
|
|
480
480
|
null,
|
|
481
481
|
6
|
|
482
482
|
/* CLASS, STYLE */
|
|
483
483
|
), [
|
|
484
|
-
[
|
|
484
|
+
[D, s.value]
|
|
485
485
|
]),
|
|
486
|
-
m.value ?
|
|
486
|
+
m.value ? x((g(), I(
|
|
487
487
|
"div",
|
|
488
488
|
He,
|
|
489
489
|
[
|
|
490
|
-
F(
|
|
490
|
+
F(k.$slots, "header", {}, void 0, !0)
|
|
491
491
|
],
|
|
492
492
|
512
|
|
493
493
|
/* NEED_PATCH */
|
|
494
494
|
)), [
|
|
495
|
-
[
|
|
495
|
+
[D, s.value]
|
|
496
496
|
]) : w("v-if", !0),
|
|
497
|
-
|
|
498
|
-
b.value ?
|
|
497
|
+
j("div", Fe, [
|
|
498
|
+
b.value ? x((g(), I(
|
|
499
499
|
"div",
|
|
500
500
|
Ne,
|
|
501
501
|
[
|
|
502
|
-
F(
|
|
502
|
+
F(k.$slots, "aside", {}, void 0, !0)
|
|
503
503
|
],
|
|
504
504
|
512
|
|
505
505
|
/* NEED_PATCH */
|
|
506
506
|
)), [
|
|
507
|
-
[
|
|
507
|
+
[D, s.value]
|
|
508
508
|
]) : w("v-if", !0),
|
|
509
|
-
|
|
510
|
-
o.value ?
|
|
509
|
+
j("div", Oe, [
|
|
510
|
+
o.value ? x((g(), I(
|
|
511
511
|
"div",
|
|
512
512
|
Ue,
|
|
513
513
|
[
|
|
514
|
-
F(
|
|
514
|
+
F(k.$slots, "tab", {}, void 0, !0)
|
|
515
515
|
],
|
|
516
516
|
512
|
|
517
517
|
/* NEED_PATCH */
|
|
518
518
|
)), [
|
|
519
|
-
[
|
|
519
|
+
[D, s.value]
|
|
520
520
|
]) : w("v-if", !0),
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
F(
|
|
521
|
+
j("div", We, [
|
|
522
|
+
j("div", Ke, [
|
|
523
|
+
F(k.$slots, "banner", {}, void 0, !0)
|
|
524
524
|
]),
|
|
525
525
|
a.value ? (g(), I("div", Qe, [
|
|
526
|
-
|
|
527
|
-
key:
|
|
526
|
+
x((g(), I("div", {
|
|
527
|
+
key: e.pageKey,
|
|
528
528
|
style: { width: "100%", height: "100%" }
|
|
529
529
|
}, [
|
|
530
|
-
F(
|
|
530
|
+
F(k.$slots, "router-view", {}, () => [
|
|
531
531
|
w(" 有动画 "),
|
|
532
|
-
|
|
532
|
+
e.needTransition ? (g(), V(c, { key: 0 }, {
|
|
533
533
|
default: W(({ Component: h }) => [
|
|
534
534
|
Z(
|
|
535
535
|
ve,
|
|
@@ -538,12 +538,12 @@ const p = Q({
|
|
|
538
538
|
default: W(() => {
|
|
539
539
|
var y;
|
|
540
540
|
return [
|
|
541
|
-
|
|
541
|
+
L(n).meta.keepAlive ? (g(), V(me, {
|
|
542
542
|
key: 0,
|
|
543
543
|
exclude: C.value
|
|
544
544
|
}, [
|
|
545
|
-
q.value && !((y =
|
|
546
|
-
key:
|
|
545
|
+
q.value && !((y = L(n).meta) != null && y.isIframe) ? (g(), V(N(G(h, L(n).path)), {
|
|
546
|
+
key: L(n).fullPath
|
|
547
547
|
})) : w("v-if", !0)
|
|
548
548
|
], 1032, ["exclude"])) : w("v-if", !0)
|
|
549
549
|
];
|
|
@@ -559,9 +559,9 @@ const p = Q({
|
|
|
559
559
|
ne(de(O.value)),
|
|
560
560
|
{
|
|
561
561
|
default: W(() => [
|
|
562
|
-
!
|
|
562
|
+
!L(n).meta.keepAlive && !L(n).meta.isIframe ? (g(), I("div", ze, [
|
|
563
563
|
(g(), V(N(h), {
|
|
564
|
-
key:
|
|
564
|
+
key: L(n).fullPath
|
|
565
565
|
}))
|
|
566
566
|
])) : w("v-if", !0)
|
|
567
567
|
]),
|
|
@@ -576,54 +576,54 @@ const p = Q({
|
|
|
576
576
|
/* STABLE */
|
|
577
577
|
})) : w("v-if", !0),
|
|
578
578
|
w(" 无动画 "),
|
|
579
|
-
|
|
579
|
+
e.needTransition ? w("v-if", !0) : (g(), V(c, { key: 1 }, {
|
|
580
580
|
default: W(({ Component: h }) => [
|
|
581
|
-
|
|
581
|
+
L(n).meta.keepAlive ? (g(), V(me, {
|
|
582
582
|
key: 0,
|
|
583
583
|
exclude: C.value
|
|
584
584
|
}, [
|
|
585
|
-
q.value && !
|
|
586
|
-
key:
|
|
585
|
+
q.value && !L(n).meta.isIframe ? (g(), V(N(G(h, L(n).path)), {
|
|
586
|
+
key: L(n).fullPath
|
|
587
587
|
})) : w("v-if", !0)
|
|
588
588
|
], 1032, ["exclude"])) : w("v-if", !0),
|
|
589
|
-
!
|
|
589
|
+
!L(n).meta.keepAlive && !L(n).meta.isIframe ? (g(), I("div", qe, [
|
|
590
590
|
(g(), V(N(h), {
|
|
591
|
-
key:
|
|
591
|
+
key: L(n).fullPath
|
|
592
592
|
}))
|
|
593
593
|
])) : w("v-if", !0)
|
|
594
594
|
]),
|
|
595
595
|
_: 1
|
|
596
596
|
/* STABLE */
|
|
597
597
|
})),
|
|
598
|
-
|
|
598
|
+
x(j(
|
|
599
599
|
"div",
|
|
600
600
|
Ge,
|
|
601
601
|
[
|
|
602
602
|
Z($e, {
|
|
603
603
|
exclude: C.value,
|
|
604
604
|
transitionConfig: O.value,
|
|
605
|
-
needTransition:
|
|
605
|
+
needTransition: e.needTransition
|
|
606
606
|
}, null, 8, ["exclude", "transitionConfig", "needTransition"])
|
|
607
607
|
],
|
|
608
608
|
512
|
|
609
609
|
/* NEED_PATCH */
|
|
610
610
|
), [
|
|
611
|
-
[
|
|
611
|
+
[D, L(n).meta.isIframe]
|
|
612
612
|
])
|
|
613
613
|
], !0)
|
|
614
614
|
])), [
|
|
615
|
-
[
|
|
615
|
+
[D, P.value]
|
|
616
616
|
]),
|
|
617
|
-
|
|
617
|
+
x(j(
|
|
618
618
|
"div",
|
|
619
619
|
Je,
|
|
620
620
|
[
|
|
621
|
-
F(
|
|
621
|
+
F(k.$slots, "default", {}, void 0, !0)
|
|
622
622
|
],
|
|
623
623
|
512
|
|
624
624
|
/* NEED_PATCH */
|
|
625
625
|
), [
|
|
626
|
-
[
|
|
626
|
+
[D, !P.value]
|
|
627
627
|
])
|
|
628
628
|
])) : w("v-if", !0)
|
|
629
629
|
])
|
|
@@ -635,63 +635,63 @@ const p = Q({
|
|
|
635
635
|
}), ot = /* @__PURE__ */ ye(Xe, [["__scopeId", "data-v-687de0c1"]]), Ye = ["theme", "modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], it = /* @__PURE__ */ z({
|
|
636
636
|
__name: "das-web-nav",
|
|
637
637
|
setup(e) {
|
|
638
|
-
const { nav: t } = B,
|
|
639
|
-
var
|
|
638
|
+
const { nav: t } = B, n = u(() => t.theme), l = u(() => t.logo || ""), d = u(() => t.activeItem || ""), r = u(() => (t.items || []).filter((h) => h.fixed)), m = u(() => (t.items || []).filter((h) => !h.fixed)), b = u(() => {
|
|
639
|
+
var c, h, y, M, E;
|
|
640
640
|
return {
|
|
641
|
-
showAIHelper: ((
|
|
641
|
+
showAIHelper: ((c = t.config) == null ? void 0 : c.showAIHelper) ?? !1,
|
|
642
642
|
showFullScreen: ((h = t.config) == null ? void 0 : h.showFullScreen) ?? !1,
|
|
643
643
|
showChangeEnterprise: ((y = t.config) == null ? void 0 : y.showChangeEnterprise) ?? !1,
|
|
644
|
-
showSearch: ((
|
|
644
|
+
showSearch: ((M = t.config) == null ? void 0 : M.showSearch) ?? !0,
|
|
645
645
|
showProjectTree: ((E = t.config) == null ? void 0 : E.showProjectTree) ?? !0,
|
|
646
646
|
subAppList: m.value.map((H) => ({ code: H.value, name: H.label, ...H }))
|
|
647
647
|
};
|
|
648
|
-
}), o =
|
|
649
|
-
const
|
|
648
|
+
}), o = u(() => {
|
|
649
|
+
const c = r.value.find((h) => h.value === t.activeItem);
|
|
650
650
|
return {
|
|
651
|
-
activeInnerPagePath: (
|
|
651
|
+
activeInnerPagePath: (c == null ? void 0 : c.path) || "",
|
|
652
652
|
innerPages: r.value.map((h) => ({ title: h.label, ...h }))
|
|
653
653
|
};
|
|
654
|
-
}), P =
|
|
654
|
+
}), P = u(() => ({
|
|
655
655
|
projectStore: {
|
|
656
656
|
projectTree: t.projects,
|
|
657
657
|
currentProject: t.activeProject
|
|
658
658
|
},
|
|
659
659
|
...t.projectConfig
|
|
660
|
-
})), T =
|
|
661
|
-
const h =
|
|
660
|
+
})), T = u(() => t.userInfo), A = u(() => t.searchConfig), s = async (c) => {
|
|
661
|
+
const h = c.detail[0], y = r.value.find((E) => h.value === E.value);
|
|
662
662
|
await v.nav.triggerEventListener("onItemClick", y) && v.nav.setActiveItem(y.value);
|
|
663
|
-
}, a = async (
|
|
664
|
-
const h =
|
|
663
|
+
}, a = async (c) => {
|
|
664
|
+
const h = c.detail[0], y = m.value.find((E) => h === E.value);
|
|
665
665
|
await v.nav.triggerEventListener("onItemClick", y) && v.nav.setActiveItem(y.value);
|
|
666
|
-
}, i = async (
|
|
667
|
-
const h =
|
|
666
|
+
}, i = async (c) => {
|
|
667
|
+
const h = c.detail[0], y = m.value.find((E) => h === E.value);
|
|
668
668
|
await v.nav.triggerEventListener("onItemRemove", y) && v.nav.removeItem(y.value);
|
|
669
|
-
}, f = async (
|
|
670
|
-
const [h, y] =
|
|
669
|
+
}, f = async (c) => {
|
|
670
|
+
const [h, y] = c.detail;
|
|
671
671
|
!h || !await v.nav.triggerEventListener("onProjectChange", y) || v.nav.setActiveProject(y);
|
|
672
|
-
}, C = (
|
|
673
|
-
v.nav.triggerEventListener("onUserCommandChange",
|
|
674
|
-
}, q = (
|
|
675
|
-
v.nav.triggerEventListener("searchToPage", { item:
|
|
676
|
-
}, O = (
|
|
677
|
-
v.nav.triggerEventListener("clearSearchList", { cb:
|
|
678
|
-
}, U = (
|
|
679
|
-
v.nav.triggerEventListener("deleteSearchItem", { value:
|
|
672
|
+
}, C = (c) => {
|
|
673
|
+
v.nav.triggerEventListener("onUserCommandChange", c.detail[0]);
|
|
674
|
+
}, q = (c) => {
|
|
675
|
+
v.nav.triggerEventListener("searchToPage", { item: c.detail[0], keyword: c.detail[1], cb: c.detail[2] });
|
|
676
|
+
}, O = (c) => {
|
|
677
|
+
v.nav.triggerEventListener("clearSearchList", { cb: c.detail[0] });
|
|
678
|
+
}, U = (c) => {
|
|
679
|
+
v.nav.triggerEventListener("deleteSearchItem", { value: c.detail[0], cb: c.detail[1] });
|
|
680
680
|
}, G = () => {
|
|
681
681
|
v.nav.triggerEventListener("changeEnterpriseHandle");
|
|
682
|
-
},
|
|
682
|
+
}, k = () => {
|
|
683
683
|
v.nav.triggerEventListener("fullScreenHandle");
|
|
684
684
|
}, S = () => {
|
|
685
685
|
v.nav.triggerEventListener("openAI");
|
|
686
686
|
};
|
|
687
|
-
return
|
|
687
|
+
return Ce(() => {
|
|
688
688
|
v.nav.triggerEventListener("onBeforeMount", null, { autoRemove: !0 });
|
|
689
|
-
}),
|
|
689
|
+
}), _e(() => {
|
|
690
690
|
v.nav.triggerEventListener("onMounted", null, { autoRemove: !0 });
|
|
691
691
|
}), ke(() => {
|
|
692
692
|
v.nav.triggerEventListener("onUnmounted", null, { autoRemove: !0 });
|
|
693
|
-
}), (
|
|
694
|
-
theme:
|
|
693
|
+
}), (c, h) => (g(), I("das-ce-nav", {
|
|
694
|
+
theme: n.value,
|
|
695
695
|
modelValue: d.value,
|
|
696
696
|
logoUrl: l.value,
|
|
697
697
|
config: b.value,
|
|
@@ -700,7 +700,7 @@ const p = Q({
|
|
|
700
700
|
projectTreeConfig: P.value,
|
|
701
701
|
userInfoConfig: T.value,
|
|
702
702
|
"on:userCommandHandle": C,
|
|
703
|
-
"on:changeInnerPage":
|
|
703
|
+
"on:changeInnerPage": s,
|
|
704
704
|
"on:handleTabClick": a,
|
|
705
705
|
"on:handleTabDelete": i,
|
|
706
706
|
"on:changeTreeHandle": f,
|
|
@@ -708,7 +708,7 @@ const p = Q({
|
|
|
708
708
|
"on:clearSearchList": O,
|
|
709
709
|
"on:deleteSearchItem": U,
|
|
710
710
|
"on:changeEnterpriseHandle": G,
|
|
711
|
-
"on:fullScreen":
|
|
711
|
+
"on:fullScreen": k,
|
|
712
712
|
"on:openAI": S
|
|
713
713
|
}, null, 40, Ye));
|
|
714
714
|
}
|
|
@@ -718,13 +718,13 @@ const p = Q({
|
|
|
718
718
|
menuAttr: {}
|
|
719
719
|
},
|
|
720
720
|
setup(e) {
|
|
721
|
-
const { menu: t } = B,
|
|
722
|
-
const a =
|
|
721
|
+
const { menu: t } = B, n = e, l = u(() => t.theme), d = u(() => n.menuAttr || {}), r = u(() => t.items), m = u(() => t.items.find((s) => s.fixed)), b = u(() => t.activeItem || ""), o = u(() => t.collapse || !1), P = u(() => ({ popupClassName: t.popupClassName ?? "" })), T = async (s) => {
|
|
722
|
+
const a = s.detail[0], i = Pe(r.value).find((C) => a === C.id);
|
|
723
723
|
await v.menu.triggerEventListener("onItemClick", i) && v.menu.setActiveItem(i.id);
|
|
724
|
-
}, A = (
|
|
725
|
-
v.menu.setCollapse(
|
|
724
|
+
}, A = (s) => {
|
|
725
|
+
v.menu.setCollapse(s.detail[0]), v.menu.triggerEventListener("toggleCollapse", s.detail[0]);
|
|
726
726
|
};
|
|
727
|
-
return (
|
|
727
|
+
return (s, a) => r.value.length > 0 ? (g(), I("das-ce-menu", ae({
|
|
728
728
|
key: 0,
|
|
729
729
|
theme: l.value,
|
|
730
730
|
modelValue: b.value,
|
|
@@ -737,30 +737,30 @@ const p = Q({
|
|
|
737
737
|
"on:toggleCollapse": A
|
|
738
738
|
}), null, 16, Ze)) : w("v-if", !0);
|
|
739
739
|
}
|
|
740
|
-
}), et = ["theme", "modelValue", "options"],
|
|
740
|
+
}), et = ["theme", "modelValue", "options"], ct = /* @__PURE__ */ z({
|
|
741
741
|
__name: "das-web-tabs",
|
|
742
742
|
props: {
|
|
743
743
|
tabsAttr: {}
|
|
744
744
|
},
|
|
745
745
|
setup(e) {
|
|
746
|
-
const { tab: t } = B,
|
|
747
|
-
...
|
|
748
|
-
key:
|
|
749
|
-
tab:
|
|
750
|
-
}))), m =
|
|
751
|
-
const a =
|
|
746
|
+
const { tab: t } = B, n = e, l = u(() => n.tabsAttr || {}), d = u(() => t.theme), r = u(() => t.items.map((s) => ({
|
|
747
|
+
...s,
|
|
748
|
+
key: s.value,
|
|
749
|
+
tab: s.label
|
|
750
|
+
}))), m = u(() => t.activeItem || ""), b = async (s) => {
|
|
751
|
+
const a = s.detail[0], i = r.value.find((C) => a === C.value);
|
|
752
752
|
await v.tab.triggerEventListener("onItemClick", i) && v.tab.setActiveItem(i.value);
|
|
753
|
-
}, o = async (
|
|
754
|
-
const a =
|
|
753
|
+
}, o = async (s) => {
|
|
754
|
+
const a = s.detail[0], i = r.value.find((C) => a === C.value);
|
|
755
755
|
await v.tab.triggerEventListener("onItemRemove", i) && v.tab.removeItem(i.value);
|
|
756
|
-
}, P = async (
|
|
757
|
-
await v.tab.triggerEventListener("onMenuClick", { type:
|
|
758
|
-
}, T = async (
|
|
759
|
-
await v.tab.triggerEventListener("onPageRefresh",
|
|
756
|
+
}, P = async (s) => {
|
|
757
|
+
await v.tab.triggerEventListener("onMenuClick", { type: s.detail[0], data: s.detail[1] });
|
|
758
|
+
}, T = async (s) => {
|
|
759
|
+
await v.tab.triggerEventListener("onPageRefresh", s.detail[0]);
|
|
760
760
|
}, A = () => {
|
|
761
761
|
v.tab.triggerEventListener("onToggleFullScreen");
|
|
762
762
|
};
|
|
763
|
-
return (
|
|
763
|
+
return (s, a) => r.value.length > 0 ? (g(), I("das-ce-tabs", ae({
|
|
764
764
|
key: 0,
|
|
765
765
|
theme: d.value,
|
|
766
766
|
modelValue: m.value,
|
|
@@ -779,7 +779,7 @@ export {
|
|
|
779
779
|
ot as DasWebLayout,
|
|
780
780
|
lt as DasWebMenu,
|
|
781
781
|
it as DasWebNav,
|
|
782
|
-
|
|
782
|
+
ct as DasWebTabs,
|
|
783
783
|
v as layout,
|
|
784
784
|
B as layoutData
|
|
785
785
|
};
|