@das-fed/web 6.4.0-dev.90 → 6.4.0-dev.91
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-DvGIIsEx.js → index-CsEX6zxA.js} +1 -1
- package/{index-BJu4FOHL.js → index-DXL5jYrG.js} +1 -1
- package/index-DXL5jYrG.js.gz +0 -0
- package/{index-DDEfyPCe.js → index-JQg--Cmc.js} +1768 -1761
- package/index-JQg--Cmc.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/layout/index.js +109 -105
- package/packages/layout/index.js.gz +0 -0
- package/packages/layout/style.css +1 -1
- package/packages/layout/style.css.gz +0 -0
- package/packages/main-app-framework/{index-DKuXwz6T.js → index-Bm_tLBXF.js} +1490 -1487
- package/packages/main-app-framework/index-Bm_tLBXF.js.gz +0 -0
- package/packages/main-app-framework/{index-CdlYQHy7.js → index-D1_j1bhg.js} +1 -1
- package/packages/main-app-framework/{index-FRYprZJ-.js → index-DdhcschT.js} +1 -1
- package/packages/main-app-framework/index-DdhcschT.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/packages/main-app-framework/style.css +1 -1
- package/packages/main-app-framework/style.css.gz +0 -0
- package/style.css +1 -1
- package/style.css.gz +0 -0
- package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +1 -0
- package/index-BJu4FOHL.js.gz +0 -0
- package/index-DDEfyPCe.js.gz +0 -0
- package/packages/main-app-framework/index-DKuXwz6T.js.gz +0 -0
- package/packages/main-app-framework/index-FRYprZJ-.js.gz +0 -0
|
Binary file
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as e, A as t, C as n, B as i, D as r, e as u, m as o, w as m, o as p, f as g, k as D, v as l, y as L, z as b, h as c, i as h, G as A, H as T, q as y, E as R, F as W, K as I, I as M, s as F, j as V, n as f, r as k, x as v, t as w } from "./index-
|
|
1
|
+
import { J as e, A as t, C as n, B as i, D as r, e as u, m as o, w as m, o as p, f as g, k as D, v as l, y as L, z as b, h as c, i as h, G as A, H as T, q as y, E as R, F as W, K as I, I as M, s as F, j as V, n as f, r as k, x as v, t as w } from "./index-JQg--Cmc.js";
|
|
2
2
|
export {
|
|
3
3
|
e as DasMainAppLayout,
|
|
4
4
|
t as DasWebLayout,
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/web",
|
|
3
|
-
"version": "6.4.0-dev.
|
|
3
|
+
"version": "6.4.0-dev.91",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@das-fed/ui": "6.4.0-dev.
|
|
8
|
-
"@das-fed/utils": "6.4.0-dev.
|
|
9
|
-
"@das-fed/web": "6.4.0-dev.
|
|
10
|
-
"@das-fed/web-components": "6.4.0-dev.
|
|
7
|
+
"@das-fed/ui": "6.4.0-dev.91",
|
|
8
|
+
"@das-fed/utils": "6.4.0-dev.91",
|
|
9
|
+
"@das-fed/web": "6.4.0-dev.91",
|
|
10
|
+
"@das-fed/web-components": "6.4.0-dev.91",
|
|
11
11
|
"@microsoft/signalr": "^8.0.7",
|
|
12
12
|
"@vueuse/core": "^9.13.0",
|
|
13
13
|
"animate.css": "^4.1.1",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"vue-router": "^4.4.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@das-fed/cli": "6.4.0-dev.
|
|
22
|
+
"@das-fed/cli": "6.4.0-dev.91",
|
|
23
23
|
"@types/crypto-js": "^4.2.2",
|
|
24
24
|
"@types/lodash": "^4.14.194",
|
|
25
25
|
"@types/lodash-es": "^4.17.12",
|
package/packages/layout/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '@das-fed/web/packages/layout/style.css';
|
|
2
|
-
import { reactive as
|
|
2
|
+
import { reactive as K, ref as O, defineComponent as z, computed as u, watch as Z, openBlock as g, createElementBlock as I, Fragment as J, createBlock as V, TransitionGroup as he, normalizeProps as ee, mergeProps as ne, withCtx as U, renderList as re, withDirectives as D, resolveDynamicComponent as N, vShow as M, unref as w, createCommentVNode as C, nextTick as oe, resolveComponent as ge, createElementVNode as $, normalizeClass as pe, normalizeStyle as ye, renderSlot as F, createVNode as X, Transition as ie, guardReactiveProps as le, KeepAlive as ce, h as Y, onBeforeMount as we, onMounted as be, onUnmounted as _e } from "vue";
|
|
3
3
|
import { useRouter as Le, useRoute as me } from "vue-router";
|
|
4
4
|
import { setHtmlMinWH as Ce } from "@das-fed/utils/common-tools/setHtmlMinWH";
|
|
5
5
|
import { createCeNav as Ie, createCeTabs as ke, createCeMenu as Te } from "@das-fed/web-components/das-web-app";
|
|
6
6
|
import { flatTree as Ee } from "@das-fed/utils/common-tools/nest-tree-format";
|
|
7
|
-
const h =
|
|
7
|
+
const h = K({
|
|
8
8
|
visible: !1,
|
|
9
9
|
theme: "default",
|
|
10
10
|
logo: "",
|
|
@@ -92,7 +92,7 @@ const h = z({
|
|
|
92
92
|
remove: l
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
}, A =
|
|
95
|
+
}, A = K({
|
|
96
96
|
theme: "default",
|
|
97
97
|
items: [],
|
|
98
98
|
collapse: !1,
|
|
@@ -145,32 +145,32 @@ const h = z({
|
|
|
145
145
|
remove: l
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
|
-
},
|
|
148
|
+
}, k = K({
|
|
149
149
|
theme: "default",
|
|
150
150
|
items: [],
|
|
151
151
|
eventListeners: {}
|
|
152
152
|
}), de = {
|
|
153
153
|
setItems: (e) => {
|
|
154
|
-
|
|
154
|
+
k.items = e;
|
|
155
155
|
},
|
|
156
|
-
getItems: () =>
|
|
156
|
+
getItems: () => k.items,
|
|
157
157
|
setTheme: (e) => {
|
|
158
|
-
|
|
158
|
+
k.theme = e;
|
|
159
159
|
},
|
|
160
160
|
removeItem: (e) => {
|
|
161
|
-
const t =
|
|
162
|
-
|
|
161
|
+
const t = k.items.filter((n) => n.value !== e);
|
|
162
|
+
k.items = t;
|
|
163
163
|
},
|
|
164
164
|
appendItem: (e) => {
|
|
165
|
-
const t =
|
|
166
|
-
t !== -1 ?
|
|
165
|
+
const t = k.items.findIndex((n) => n.value == e.value);
|
|
166
|
+
t !== -1 ? k.items.splice(t, 1, e) : k.items.push(e);
|
|
167
167
|
},
|
|
168
168
|
setActiveItem: (e) => {
|
|
169
|
-
|
|
169
|
+
k.activeItem = e;
|
|
170
170
|
},
|
|
171
171
|
triggerEventListener: (e, t, n) => {
|
|
172
172
|
var f;
|
|
173
|
-
const l =
|
|
173
|
+
const l = k.eventListeners, { autoRemove: d = !1 } = n || {}, r = [];
|
|
174
174
|
for (const y in l) {
|
|
175
175
|
const i = l[y];
|
|
176
176
|
i.type === e && r.push(
|
|
@@ -183,9 +183,9 @@ const h = z({
|
|
|
183
183
|
},
|
|
184
184
|
addEventListener: (e, t) => {
|
|
185
185
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
|
|
186
|
-
|
|
186
|
+
k.eventListeners[n] && delete k.eventListeners[n];
|
|
187
187
|
};
|
|
188
|
-
return
|
|
188
|
+
return k.eventListeners[n] = {
|
|
189
189
|
type: e,
|
|
190
190
|
handler: async (d) => {
|
|
191
191
|
try {
|
|
@@ -199,7 +199,7 @@ const h = z({
|
|
|
199
199
|
remove: l
|
|
200
200
|
};
|
|
201
201
|
}
|
|
202
|
-
}, W =
|
|
202
|
+
}, W = K({
|
|
203
203
|
eventListeners: {}
|
|
204
204
|
}), Re = {
|
|
205
205
|
triggerEventListener: (e, t, n) => {
|
|
@@ -233,7 +233,7 @@ const h = z({
|
|
|
233
233
|
remove: l
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
|
-
}, te =
|
|
236
|
+
}, te = K({
|
|
237
237
|
visible: !1,
|
|
238
238
|
style: {}
|
|
239
239
|
}), Ae = {
|
|
@@ -243,7 +243,7 @@ const h = z({
|
|
|
243
243
|
}, H = {
|
|
244
244
|
nav: h,
|
|
245
245
|
menu: A,
|
|
246
|
-
tab:
|
|
246
|
+
tab: k,
|
|
247
247
|
overlay: te,
|
|
248
248
|
iframeView: W,
|
|
249
249
|
visible: O(!0)
|
|
@@ -257,7 +257,7 @@ const h = z({
|
|
|
257
257
|
setTheme: (e) => {
|
|
258
258
|
ue.setTheme(e), ve.setTheme(e), de.setTheme(e);
|
|
259
259
|
}
|
|
260
|
-
}, Ve = ["name"], Pe = ["name"], Se = /* @__PURE__ */
|
|
260
|
+
}, Ve = ["name"], Pe = ["name"], Se = /* @__PURE__ */ z({
|
|
261
261
|
__name: "das-iframe-router-view",
|
|
262
262
|
props: {
|
|
263
263
|
needTransition: { type: Boolean },
|
|
@@ -310,9 +310,9 @@ const h = z({
|
|
|
310
310
|
}, T = async () => {
|
|
311
311
|
var o, m;
|
|
312
312
|
if (!r.value || !r.value.length) return;
|
|
313
|
-
const s = r.value.find((
|
|
313
|
+
const s = r.value.find((L) => L.meta.isShow);
|
|
314
314
|
s && (s.meta.isShow = !1, await oe(), v.iframeView.triggerEventListener("onDeactivated", { route: s }));
|
|
315
|
-
const a = r.value.find((
|
|
315
|
+
const a = r.value.find((L) => L.path === d.path);
|
|
316
316
|
a && ((o = a.meta) != null && o.isOpen || (a.meta.isOpen = !0), (m = a.meta) != null && m.isShow || (a.meta.isShow = !0), await oe(), v.iframeView.triggerEventListener("onActivated", { route: a }));
|
|
317
317
|
};
|
|
318
318
|
let S = 0;
|
|
@@ -332,15 +332,15 @@ const h = z({
|
|
|
332
332
|
r.value.forEach((a) => {
|
|
333
333
|
a.path === s && (a.meta.isOpen = !1);
|
|
334
334
|
});
|
|
335
|
-
}), (s, a) => (
|
|
336
|
-
s.needTransition ? (
|
|
335
|
+
}), (s, a) => (g(), I(J, null, [
|
|
336
|
+
s.needTransition ? (g(), V(he, ee(ne({ key: 0 }, n.value)), {
|
|
337
337
|
default: U(() => [
|
|
338
|
-
(
|
|
338
|
+
(g(!0), I(J, null, re(f.value, ({ path: o, meta: m }) => D((g(), I("div", {
|
|
339
339
|
class: "das-iframe-router-view",
|
|
340
340
|
key: m.key,
|
|
341
341
|
name: o
|
|
342
342
|
}, [
|
|
343
|
-
(
|
|
343
|
+
(g(), V(N(m.componentInstance), {
|
|
344
344
|
key: m.key
|
|
345
345
|
}))
|
|
346
346
|
], 8, Ve)), [
|
|
@@ -349,12 +349,12 @@ const h = z({
|
|
|
349
349
|
]),
|
|
350
350
|
_: 1
|
|
351
351
|
}, 16)) : C("", !0),
|
|
352
|
-
s.needTransition ? C("", !0) : (
|
|
352
|
+
s.needTransition ? C("", !0) : (g(!0), I(J, { key: 1 }, re(f.value, ({ path: o, meta: m }) => D((g(), I("div", {
|
|
353
353
|
class: "das-iframe-router-view",
|
|
354
354
|
key: m.key,
|
|
355
355
|
name: o
|
|
356
356
|
}, [
|
|
357
|
-
(
|
|
357
|
+
(g(), V(N(m.componentInstance), {
|
|
358
358
|
key: m.key
|
|
359
359
|
}))
|
|
360
360
|
], 8, Pe)), [
|
|
@@ -376,16 +376,16 @@ const h = z({
|
|
|
376
376
|
}, Be = { class: "das-web-app-main-container" }, He = {
|
|
377
377
|
key: 0,
|
|
378
378
|
class: "tab"
|
|
379
|
-
}, Fe = { class: "das-web-app-main-content" }, Ne = { class: "banner" }, Oe = { class: "das-web-app-main-router-view" }, Ue = {
|
|
379
|
+
}, Fe = { class: "das-web-app-main-content" }, Ne = { class: "banner" }, Oe = { class: "das-web-app-main-router-view" }, Ue = {
|
|
380
380
|
key: 0,
|
|
381
381
|
style: { width: "100%", height: "100%" }
|
|
382
|
-
},
|
|
382
|
+
}, We = {
|
|
383
383
|
key: 1,
|
|
384
384
|
style: { width: "100%", height: "100%" }
|
|
385
|
-
},
|
|
385
|
+
}, Ke = { style: { width: "100%", height: "100%" } }, ze = {
|
|
386
386
|
class: "micro-app",
|
|
387
387
|
style: { height: "100%", width: "100%" }
|
|
388
|
-
},
|
|
388
|
+
}, Qe = /* @__PURE__ */ z({
|
|
389
389
|
__name: "das-web-layout",
|
|
390
390
|
props: {
|
|
391
391
|
needTransition: { type: Boolean, default: !0 },
|
|
@@ -395,7 +395,8 @@ const h = z({
|
|
|
395
395
|
showTabs: { type: Boolean, default: !0 },
|
|
396
396
|
routerViewVisible: { type: Boolean, default: !0 },
|
|
397
397
|
excludeRoutes: {},
|
|
398
|
-
routeKeepAliveVisible: { type: Boolean, default: !0 }
|
|
398
|
+
routeKeepAliveVisible: { type: Boolean, default: !0 },
|
|
399
|
+
pageKey: { default: "0" }
|
|
399
400
|
},
|
|
400
401
|
setup(e) {
|
|
401
402
|
const t = e;
|
|
@@ -407,16 +408,16 @@ const h = z({
|
|
|
407
408
|
})), s = u(() => H.overlay.style ?? { backgroundColor: "rgba(0,0,0,0.5)" }), a = u(() => t.excludeRoutes), o = u(() => t.routeKeepAliveVisible);
|
|
408
409
|
Z(
|
|
409
410
|
() => [n.meta, n.query],
|
|
410
|
-
([
|
|
411
|
-
const { showLayout: R = !0, showAside: c = !0, showTabs:
|
|
411
|
+
([b, j]) => {
|
|
412
|
+
const { showLayout: R = !0, showAside: c = !0, showTabs: p = !0, layout: _ = {} } = b, {
|
|
412
413
|
showLayout: x = !0,
|
|
413
414
|
showAside: E = !0,
|
|
414
415
|
showTabs: se = !0,
|
|
415
|
-
app:
|
|
416
|
+
app: Xe
|
|
416
417
|
} = j;
|
|
417
|
-
Ce(
|
|
418
|
+
Ce(_);
|
|
418
419
|
let ae = !0, q = !0, G = !0;
|
|
419
|
-
(R === !1 || x === !1 || x === "false") && (ae = !1, q = !1, G = !1), (c === !1 || E === !1 || E === "false") && (q = !1), (
|
|
420
|
+
(R === !1 || x === !1 || x === "false") && (ae = !1, q = !1, G = !1), (c === !1 || E === !1 || E === "false") && (q = !1), (p === !1 || se === !1 || se === "false") && (G = !1), l.value = ae, d.value = q, r.value = G;
|
|
420
421
|
}
|
|
421
422
|
);
|
|
422
423
|
const m = u(() => ({
|
|
@@ -424,62 +425,65 @@ const h = z({
|
|
|
424
425
|
"enter-active-class": "animate__animated animate__fadeInLeft",
|
|
425
426
|
...t.transitionConfig || {}
|
|
426
427
|
}));
|
|
427
|
-
let
|
|
428
|
-
const
|
|
428
|
+
let L = /* @__PURE__ */ new Map();
|
|
429
|
+
const Q = (b, j) => {
|
|
429
430
|
let R;
|
|
430
|
-
return
|
|
431
|
+
return L.has(j) ? R = L.get(j) : (R = {
|
|
431
432
|
name: j,
|
|
432
433
|
render() {
|
|
433
|
-
return Y("div", { style: { width: "100%", height: "100%" } }, [Y(
|
|
434
|
+
return Y("div", { style: { width: "100%", height: "100%" } }, [Y(b)]);
|
|
434
435
|
}
|
|
435
|
-
},
|
|
436
|
+
}, L.set(j, R)), Y(R);
|
|
436
437
|
}, B = u(() => H.visible.value);
|
|
437
|
-
return (
|
|
438
|
+
return (b, j) => {
|
|
438
439
|
const R = ge("router-view");
|
|
439
|
-
return
|
|
440
|
+
return g(), I("div", Me, [
|
|
440
441
|
D($("div", {
|
|
441
442
|
class: pe(["das-web-app-overlay", S.value]),
|
|
442
443
|
style: ye(s.value)
|
|
443
444
|
}, null, 6), [
|
|
444
445
|
[M, B.value]
|
|
445
446
|
]),
|
|
446
|
-
f.value ? D((
|
|
447
|
-
F(
|
|
447
|
+
f.value ? D((g(), I("div", je, [
|
|
448
|
+
F(b.$slots, "header", {}, void 0, !0)
|
|
448
449
|
], 512)), [
|
|
449
450
|
[M, B.value]
|
|
450
451
|
]) : C("", !0),
|
|
451
452
|
$("div", xe, [
|
|
452
|
-
y.value ? D((
|
|
453
|
-
F(
|
|
453
|
+
y.value ? D((g(), I("div", $e, [
|
|
454
|
+
F(b.$slots, "aside", {}, void 0, !0)
|
|
454
455
|
], 512)), [
|
|
455
456
|
[M, B.value]
|
|
456
457
|
]) : C("", !0),
|
|
457
458
|
$("div", Be, [
|
|
458
|
-
i.value ? D((
|
|
459
|
-
F(
|
|
459
|
+
i.value ? D((g(), I("div", He, [
|
|
460
|
+
F(b.$slots, "tab", {}, void 0, !0)
|
|
460
461
|
], 512)), [
|
|
461
462
|
[M, B.value]
|
|
462
463
|
]) : C("", !0),
|
|
463
464
|
$("div", Fe, [
|
|
464
465
|
D($("div", Ne, [
|
|
465
|
-
F(
|
|
466
|
+
F(b.$slots, "banner", {}, void 0, !0)
|
|
466
467
|
], 512), [
|
|
467
468
|
[M, B.value]
|
|
468
469
|
]),
|
|
469
470
|
$("div", Oe, [
|
|
470
|
-
D(
|
|
471
|
-
|
|
472
|
-
|
|
471
|
+
D((g(), I("div", {
|
|
472
|
+
key: b.pageKey,
|
|
473
|
+
style: { width: "100%", height: "100%" }
|
|
474
|
+
}, [
|
|
475
|
+
F(b.$slots, "router-view", {}, () => [
|
|
476
|
+
b.needTransition ? (g(), V(R, { key: 0 }, {
|
|
473
477
|
default: U(({ Component: c }) => [
|
|
474
478
|
X(ie, ee(le(m.value)), {
|
|
475
479
|
default: U(() => {
|
|
476
|
-
var
|
|
480
|
+
var p;
|
|
477
481
|
return [
|
|
478
|
-
w(n).meta.keepAlive ? (
|
|
482
|
+
w(n).meta.keepAlive ? (g(), V(ce, {
|
|
479
483
|
key: 0,
|
|
480
484
|
exclude: a.value
|
|
481
485
|
}, [
|
|
482
|
-
o.value && !((
|
|
486
|
+
o.value && !((p = w(n).meta) != null && p.isIframe) ? (g(), V(N(Q(c, w(n).path)), {
|
|
483
487
|
key: w(n).path
|
|
484
488
|
})) : C("", !0)
|
|
485
489
|
], 1032, ["exclude"])) : C("", !0)
|
|
@@ -489,8 +493,8 @@ const h = z({
|
|
|
489
493
|
}, 1040),
|
|
490
494
|
X(ie, ee(le(m.value)), {
|
|
491
495
|
default: U(() => [
|
|
492
|
-
!w(n).meta.keepAlive && !w(n).meta.isIframe ? (
|
|
493
|
-
(
|
|
496
|
+
!w(n).meta.keepAlive && !w(n).meta.isIframe ? (g(), I("div", Ue, [
|
|
497
|
+
(g(), V(N(c), {
|
|
494
498
|
key: w(n).path
|
|
495
499
|
}))
|
|
496
500
|
])) : C("", !0)
|
|
@@ -500,39 +504,39 @@ const h = z({
|
|
|
500
504
|
]),
|
|
501
505
|
_: 1
|
|
502
506
|
})) : C("", !0),
|
|
503
|
-
|
|
507
|
+
b.needTransition ? C("", !0) : (g(), V(R, { key: 1 }, {
|
|
504
508
|
default: U(({ Component: c }) => [
|
|
505
|
-
w(n).meta.keepAlive ? (
|
|
509
|
+
w(n).meta.keepAlive ? (g(), V(ce, {
|
|
506
510
|
key: 0,
|
|
507
511
|
exclude: a.value
|
|
508
512
|
}, [
|
|
509
|
-
o.value && !w(n).meta.isIframe ? (
|
|
513
|
+
o.value && !w(n).meta.isIframe ? (g(), V(N(Q(c, w(n).path)), {
|
|
510
514
|
key: w(n).path
|
|
511
515
|
})) : C("", !0)
|
|
512
516
|
], 1032, ["exclude"])) : C("", !0),
|
|
513
|
-
!w(n).meta.keepAlive && !w(n).meta.isIframe ? (
|
|
514
|
-
(
|
|
517
|
+
!w(n).meta.keepAlive && !w(n).meta.isIframe ? (g(), I("div", We, [
|
|
518
|
+
(g(), V(N(c), {
|
|
515
519
|
key: w(n).path
|
|
516
520
|
}))
|
|
517
521
|
])) : C("", !0)
|
|
518
522
|
]),
|
|
519
523
|
_: 1
|
|
520
524
|
})),
|
|
521
|
-
D($("div",
|
|
525
|
+
D($("div", Ke, [
|
|
522
526
|
X(De, {
|
|
523
527
|
exclude: a.value,
|
|
524
528
|
transitionConfig: m.value,
|
|
525
|
-
needTransition:
|
|
529
|
+
needTransition: b.needTransition
|
|
526
530
|
}, null, 8, ["exclude", "transitionConfig", "needTransition"])
|
|
527
531
|
], 512), [
|
|
528
532
|
[M, w(n).meta.isIframe]
|
|
529
533
|
])
|
|
530
534
|
], !0)
|
|
531
|
-
]
|
|
535
|
+
])), [
|
|
532
536
|
[M, P.value]
|
|
533
537
|
]),
|
|
534
|
-
D($("div",
|
|
535
|
-
F(
|
|
538
|
+
D($("div", ze, [
|
|
539
|
+
F(b.$slots, "default", {}, void 0, !0)
|
|
536
540
|
], 512), [
|
|
537
541
|
[M, !P.value]
|
|
538
542
|
])
|
|
@@ -543,23 +547,23 @@ const h = z({
|
|
|
543
547
|
]);
|
|
544
548
|
};
|
|
545
549
|
}
|
|
546
|
-
}),
|
|
550
|
+
}), st = /* @__PURE__ */ fe(Qe, [["__scopeId", "data-v-e2af5217"]]), qe = ["theme", "modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], at = /* @__PURE__ */ z({
|
|
547
551
|
__name: "das-web-nav",
|
|
548
552
|
setup(e) {
|
|
549
|
-
const { nav: t } = H, n = u(() => t.theme), l = u(() => t.logo || ""), d = u(() => t.activeItem || ""), r = u(() => (t.items || []).filter((
|
|
550
|
-
var c,
|
|
553
|
+
const { nav: t } = H, n = u(() => t.theme), l = u(() => t.logo || ""), d = u(() => t.activeItem || ""), r = u(() => (t.items || []).filter((p) => p.fixed)), f = u(() => (t.items || []).filter((p) => !p.fixed)), y = u(() => {
|
|
554
|
+
var c, p, _, x;
|
|
551
555
|
return {
|
|
552
556
|
showFullScreen: ((c = t.config) == null ? void 0 : c.showFullScreen) ?? !1,
|
|
553
|
-
showChangeEnterprise: ((
|
|
554
|
-
showSearch: ((
|
|
557
|
+
showChangeEnterprise: ((p = t.config) == null ? void 0 : p.showChangeEnterprise) ?? !1,
|
|
558
|
+
showSearch: ((_ = t.config) == null ? void 0 : _.showSearch) ?? !0,
|
|
555
559
|
showProjectTree: ((x = t.config) == null ? void 0 : x.showProjectTree) ?? !0,
|
|
556
560
|
subAppList: f.value.map((E) => ({ code: E.value, name: E.label, ...E }))
|
|
557
561
|
};
|
|
558
562
|
}), i = u(() => {
|
|
559
|
-
const c = r.value.find((
|
|
563
|
+
const c = r.value.find((p) => p.value === t.activeItem);
|
|
560
564
|
return {
|
|
561
565
|
activeInnerPagePath: (c == null ? void 0 : c.path) || "",
|
|
562
|
-
innerPages: r.value.map((
|
|
566
|
+
innerPages: r.value.map((p) => ({ title: p.label, ...p }))
|
|
563
567
|
};
|
|
564
568
|
}), P = u(() => ({
|
|
565
569
|
projectStore: {
|
|
@@ -568,24 +572,24 @@ const h = z({
|
|
|
568
572
|
},
|
|
569
573
|
...t.projectConfig
|
|
570
574
|
})), T = u(() => t.userInfo), S = u(() => t.searchConfig), s = async (c) => {
|
|
571
|
-
const
|
|
572
|
-
await v.nav.triggerEventListener("onItemClick",
|
|
575
|
+
const p = c.detail[0], _ = r.value.find((E) => p.value === E.value);
|
|
576
|
+
await v.nav.triggerEventListener("onItemClick", _) && v.nav.setActiveItem(_.value);
|
|
573
577
|
}, a = async (c) => {
|
|
574
|
-
const
|
|
575
|
-
await v.nav.triggerEventListener("onItemClick",
|
|
578
|
+
const p = c.detail[0], _ = f.value.find((E) => p === E.value);
|
|
579
|
+
await v.nav.triggerEventListener("onItemClick", _) && v.nav.setActiveItem(_.value);
|
|
576
580
|
}, o = async (c) => {
|
|
577
|
-
const
|
|
578
|
-
await v.nav.triggerEventListener("onItemRemove",
|
|
581
|
+
const p = c.detail[0], _ = f.value.find((E) => p === E.value);
|
|
582
|
+
await v.nav.triggerEventListener("onItemRemove", _) && v.nav.removeItem(_.value);
|
|
579
583
|
}, m = async (c) => {
|
|
580
|
-
const [
|
|
581
|
-
!
|
|
582
|
-
},
|
|
584
|
+
const [p, _] = c.detail;
|
|
585
|
+
!p || !await v.nav.triggerEventListener("onProjectChange", _) || v.nav.setActiveProject(_);
|
|
586
|
+
}, L = (c) => {
|
|
583
587
|
v.nav.triggerEventListener("onUserCommandChange", c.detail[0]);
|
|
584
|
-
},
|
|
588
|
+
}, Q = (c) => {
|
|
585
589
|
v.nav.triggerEventListener("searchToPage", { item: c.detail[0], keyword: c.detail[1], cb: c.detail[2] });
|
|
586
590
|
}, B = (c) => {
|
|
587
591
|
v.nav.triggerEventListener("clearSearchList", { cb: c.detail[0] });
|
|
588
|
-
},
|
|
592
|
+
}, b = (c) => {
|
|
589
593
|
v.nav.triggerEventListener("deleteSearchItem", { value: c.detail[0], cb: c.detail[1] });
|
|
590
594
|
}, j = () => {
|
|
591
595
|
v.nav.triggerEventListener("changeEnterpriseHandle");
|
|
@@ -598,7 +602,7 @@ const h = z({
|
|
|
598
602
|
v.nav.triggerEventListener("onMounted", null, { autoRemove: !0 });
|
|
599
603
|
}), _e(() => {
|
|
600
604
|
v.nav.triggerEventListener("onUnmounted", null, { autoRemove: !0 });
|
|
601
|
-
}), (c,
|
|
605
|
+
}), (c, p) => (g(), I("das-ce-nav", {
|
|
602
606
|
theme: n.value,
|
|
603
607
|
modelValue: d.value,
|
|
604
608
|
logoUrl: l.value,
|
|
@@ -607,31 +611,31 @@ const h = z({
|
|
|
607
611
|
searchConfig: S.value,
|
|
608
612
|
projectTreeConfig: P.value,
|
|
609
613
|
userInfoConfig: T.value,
|
|
610
|
-
"on:userCommandHandle":
|
|
614
|
+
"on:userCommandHandle": L,
|
|
611
615
|
"on:changeInnerPage": s,
|
|
612
616
|
"on:handleTabClick": a,
|
|
613
617
|
"on:handleTabDelete": o,
|
|
614
618
|
"on:changeTreeHandle": m,
|
|
615
|
-
"on:searchToPage":
|
|
619
|
+
"on:searchToPage": Q,
|
|
616
620
|
"on:clearSearchList": B,
|
|
617
|
-
"on:deleteSearchItem":
|
|
621
|
+
"on:deleteSearchItem": b,
|
|
618
622
|
"on:changeEnterpriseHandle": j,
|
|
619
623
|
"on:fullScreen": R
|
|
620
|
-
}, null, 40,
|
|
624
|
+
}, null, 40, qe));
|
|
621
625
|
}
|
|
622
|
-
}),
|
|
626
|
+
}), Ge = ["theme", "modelValue", "data", "collapse", "fixedTopMenu", "subMenuAttrs"], rt = /* @__PURE__ */ z({
|
|
623
627
|
__name: "das-web-menu",
|
|
624
628
|
props: {
|
|
625
629
|
menuAttr: {}
|
|
626
630
|
},
|
|
627
631
|
setup(e) {
|
|
628
632
|
const { menu: t } = H, n = e, l = u(() => t.theme), d = u(() => n.menuAttr || {}), r = u(() => t.items), f = u(() => t.items.find((s) => s.fixed)), y = u(() => t.activeItem || ""), i = u(() => t.collapse || !1), P = u(() => ({ popupClassName: t.popupClassName ?? "" })), T = async (s) => {
|
|
629
|
-
const a = s.detail[0], o = Ee(r.value).find((
|
|
633
|
+
const a = s.detail[0], o = Ee(r.value).find((L) => a === L.id);
|
|
630
634
|
await v.menu.triggerEventListener("onItemClick", o) && v.menu.setActiveItem(o.id);
|
|
631
635
|
}, S = (s) => {
|
|
632
636
|
v.menu.setCollapse(s.detail[0]), v.menu.triggerEventListener("toggleCollapse", s.detail[0]);
|
|
633
637
|
};
|
|
634
|
-
return (s, a) => r.value.length > 0 ? (
|
|
638
|
+
return (s, a) => r.value.length > 0 ? (g(), I("das-ce-menu", ne({
|
|
635
639
|
key: 0,
|
|
636
640
|
theme: l.value,
|
|
637
641
|
modelValue: y.value,
|
|
@@ -642,9 +646,9 @@ const h = z({
|
|
|
642
646
|
}, d.value, {
|
|
643
647
|
onChange: T,
|
|
644
648
|
"on:toggleCollapse": S
|
|
645
|
-
}), null, 16,
|
|
649
|
+
}), null, 16, Ge)) : C("", !0);
|
|
646
650
|
}
|
|
647
|
-
}),
|
|
651
|
+
}), Je = ["theme", "modelValue", "options"], ot = /* @__PURE__ */ z({
|
|
648
652
|
__name: "das-web-tabs",
|
|
649
653
|
props: {
|
|
650
654
|
tabsAttr: {}
|
|
@@ -655,10 +659,10 @@ const h = z({
|
|
|
655
659
|
key: s.value,
|
|
656
660
|
tab: s.label
|
|
657
661
|
}))), f = u(() => t.activeItem || ""), y = async (s) => {
|
|
658
|
-
const a = s.detail[0], o = r.value.find((
|
|
662
|
+
const a = s.detail[0], o = r.value.find((L) => a === L.value);
|
|
659
663
|
await v.tab.triggerEventListener("onItemClick", o) && v.tab.setActiveItem(o.value);
|
|
660
664
|
}, i = async (s) => {
|
|
661
|
-
const a = s.detail[0], o = r.value.find((
|
|
665
|
+
const a = s.detail[0], o = r.value.find((L) => a === L.value);
|
|
662
666
|
await v.tab.triggerEventListener("onItemRemove", o) && v.tab.removeItem(o.value);
|
|
663
667
|
}, P = async (s) => {
|
|
664
668
|
await v.tab.triggerEventListener("onMenuClick", { type: s.detail[0], data: s.detail[1] });
|
|
@@ -667,7 +671,7 @@ const h = z({
|
|
|
667
671
|
}, S = () => {
|
|
668
672
|
v.tab.triggerEventListener("onToggleFullScreen");
|
|
669
673
|
};
|
|
670
|
-
return (s, a) => r.value.length > 0 ? (
|
|
674
|
+
return (s, a) => r.value.length > 0 ? (g(), I("das-ce-tabs", ne({
|
|
671
675
|
key: 0,
|
|
672
676
|
theme: d.value,
|
|
673
677
|
modelValue: f.value,
|
|
@@ -678,15 +682,15 @@ const h = z({
|
|
|
678
682
|
"on:menuClick": P,
|
|
679
683
|
"on:pageRefresh": T,
|
|
680
684
|
"on:toggleFullScreen": S
|
|
681
|
-
}), null, 16,
|
|
685
|
+
}), null, 16, Je)) : C("", !0);
|
|
682
686
|
}
|
|
683
687
|
});
|
|
684
688
|
O("@das-fed/web");
|
|
685
689
|
export {
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
+
st as DasWebLayout,
|
|
691
|
+
rt as DasWebMenu,
|
|
692
|
+
at as DasWebNav,
|
|
693
|
+
ot as DasWebTabs,
|
|
690
694
|
v as layout,
|
|
691
695
|
H as layoutData
|
|
692
696
|
};
|
|
Binary file
|