@das-fed/web 6.4.0-dev.87 → 6.4.0-dev.89
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/{packages/main-app-framework/index-Dwm8jT2b.js → index-BIh1Yqk9.js} +1 -2
- package/index-BIh1Yqk9.js.gz +0 -0
- package/{index-sbckWuBF.js → index-C6k_2sBs.js} +1 -1
- package/{index--CLho07d.js → index-Ey8PvOVx.js} +2063 -2553
- package/index-Ey8PvOVx.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/layout/index.js +136 -227
- package/packages/layout/index.js.gz +0 -0
- package/packages/main-app-framework/{index-Grg3xnzK.js → index-DZZ-7w6n.js} +1 -1
- package/{index-CsKz_lhX.js → packages/main-app-framework/index-lZGYwfDm.js} +1 -2
- package/packages/main-app-framework/index-lZGYwfDm.js.gz +0 -0
- package/packages/main-app-framework/{index-C-qgilHG.js → index-ztCi-Fxb.js} +1772 -2152
- package/packages/main-app-framework/index-ztCi-Fxb.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/packages/micro-frontend/index.js +19 -38
- package/packages/micro-frontend/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/main-app-framework/business/alarm/use-alarm.d.ts +4 -4
- package/types/main-app-framework/business/video-link/index.d.ts +3 -3
- package/types/main-app-framework/business/video-link/video-dialog/hooks/PlayerProvider.d.ts +3 -3
- package/types/main-app-framework/components/person-set-dialog/index.d.ts +1 -1
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-builtIn-dialog.d.ts +6 -6
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-notBuiltIn-dialog.d.ts +10 -10
- package/types/main-app-framework/index.d.ts +2 -2
- package/types/main-app-framework/init-config/get-nav-config/index.d.ts +2 -2
- package/types/main-app-framework/init-config/get-system-config/index.d.ts +2 -2
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +3 -3
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +2 -2
- package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +4 -4
- package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +3 -3
- package/types/main-app-framework/init-platform/index.d.ts +1 -1
- package/types/micro-frontend/store.d.ts +5 -5
- package/types/theme/index.d.ts +1 -1
- package/index--CLho07d.js.gz +0 -0
- package/index-CsKz_lhX.js.gz +0 -0
- package/packages/main-app-framework/index-C-qgilHG.js.gz +0 -0
- package/packages/main-app-framework/index-Dwm8jT2b.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-Ey8PvOVx.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.89",
|
|
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.89",
|
|
8
|
+
"@das-fed/utils": "6.4.0-dev.89",
|
|
9
|
+
"@das-fed/web": "6.4.0-dev.89",
|
|
10
|
+
"@das-fed/web-components": "6.4.0-dev.89",
|
|
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.89",
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import '@das-fed/web/packages/layout/style.css';
|
|
2
|
-
import { reactive as z, ref as O, defineComponent as Q, computed as u, watch as Z, openBlock as p, createElementBlock as k, 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
|
|
2
|
+
import { reactive as z, ref as O, defineComponent as Q, computed as u, watch as Z, openBlock as p, createElementBlock as k, 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";
|
|
@@ -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((_) => _.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((_) => _.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,43 +332,10 @@ const h = z({
|
|
|
332
332
|
r.value.forEach((a) => {
|
|
333
333
|
a.path === s && (a.meta.isOpen = !1);
|
|
334
334
|
});
|
|
335
|
-
}), (s, a) => (p(), k(
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
s.needTransition ? (p(), V(
|
|
340
|
-
he,
|
|
341
|
-
ee(ne({ key: 0 }, n.value)),
|
|
342
|
-
{
|
|
343
|
-
default: U(() => [
|
|
344
|
-
(p(!0), k(
|
|
345
|
-
J,
|
|
346
|
-
null,
|
|
347
|
-
re(f.value, ({ path: o, meta: m }) => D((p(), k("div", {
|
|
348
|
-
class: "das-iframe-router-view",
|
|
349
|
-
key: m.key,
|
|
350
|
-
name: o
|
|
351
|
-
}, [
|
|
352
|
-
(p(), V(N(m.componentInstance), {
|
|
353
|
-
key: m.key
|
|
354
|
-
}))
|
|
355
|
-
], 8, Ve)), [
|
|
356
|
-
[M, m.componentInstance && o === w(d).path]
|
|
357
|
-
])),
|
|
358
|
-
128
|
|
359
|
-
/* KEYED_FRAGMENT */
|
|
360
|
-
))
|
|
361
|
-
]),
|
|
362
|
-
_: 1
|
|
363
|
-
/* STABLE */
|
|
364
|
-
},
|
|
365
|
-
16
|
|
366
|
-
/* FULL_PROPS */
|
|
367
|
-
)) : b("v-if", !0),
|
|
368
|
-
s.needTransition ? b("v-if", !0) : (p(!0), k(
|
|
369
|
-
J,
|
|
370
|
-
{ key: 1 },
|
|
371
|
-
re(f.value, ({ path: o, meta: m }) => D((p(), k("div", {
|
|
335
|
+
}), (s, a) => (p(), k(J, null, [
|
|
336
|
+
s.needTransition ? (p(), V(he, ee(ne({ key: 0 }, n.value)), {
|
|
337
|
+
default: U(() => [
|
|
338
|
+
(p(!0), k(J, null, re(f.value, ({ path: o, meta: m }) => D((p(), k("div", {
|
|
372
339
|
class: "das-iframe-router-view",
|
|
373
340
|
key: m.key,
|
|
374
341
|
name: o
|
|
@@ -376,16 +343,24 @@ const h = z({
|
|
|
376
343
|
(p(), V(N(m.componentInstance), {
|
|
377
344
|
key: m.key
|
|
378
345
|
}))
|
|
379
|
-
], 8,
|
|
346
|
+
], 8, Ve)), [
|
|
380
347
|
[M, m.componentInstance && o === w(d).path]
|
|
381
|
-
])),
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
348
|
+
])), 128))
|
|
349
|
+
]),
|
|
350
|
+
_: 1
|
|
351
|
+
}, 16)) : C("", !0),
|
|
352
|
+
s.needTransition ? C("", !0) : (p(!0), k(J, { key: 1 }, re(f.value, ({ path: o, meta: m }) => D((p(), k("div", {
|
|
353
|
+
class: "das-iframe-router-view",
|
|
354
|
+
key: m.key,
|
|
355
|
+
name: o
|
|
356
|
+
}, [
|
|
357
|
+
(p(), V(N(m.componentInstance), {
|
|
358
|
+
key: m.key
|
|
359
|
+
}))
|
|
360
|
+
], 8, Pe)), [
|
|
361
|
+
[M, m.componentInstance && o === w(d).path]
|
|
362
|
+
])), 128))
|
|
363
|
+
], 64));
|
|
389
364
|
}
|
|
390
365
|
}), fe = (e, t) => {
|
|
391
366
|
const n = e.__vccOpts || e;
|
|
@@ -432,14 +407,14 @@ const h = z({
|
|
|
432
407
|
})), s = u(() => H.overlay.style ?? { backgroundColor: "rgba(0,0,0,0.5)" }), a = u(() => t.excludeRoutes), o = u(() => t.routeKeepAliveVisible);
|
|
433
408
|
Z(
|
|
434
409
|
() => [n.meta, n.query],
|
|
435
|
-
([
|
|
436
|
-
const { showLayout: R = !0, showAside: c = !0, showTabs: g = !0, layout:
|
|
410
|
+
([L, j]) => {
|
|
411
|
+
const { showLayout: R = !0, showAside: c = !0, showTabs: g = !0, layout: b = {} } = L, {
|
|
437
412
|
showLayout: x = !0,
|
|
438
413
|
showAside: E = !0,
|
|
439
414
|
showTabs: se = !0,
|
|
440
415
|
app: Ye
|
|
441
416
|
} = j;
|
|
442
|
-
Ce(
|
|
417
|
+
Ce(b);
|
|
443
418
|
let ae = !0, q = !0, G = !0;
|
|
444
419
|
(R === !1 || x === !1 || x === "false") && (ae = !1, q = !1, G = !1), (c === !1 || E === !1 || E === "false") && (q = !1), (g === !1 || se === !1 || se === "false") && (G = !1), l.value = ae, d.value = q, r.value = G;
|
|
445
420
|
}
|
|
@@ -449,182 +424,116 @@ const h = z({
|
|
|
449
424
|
"enter-active-class": "animate__animated animate__fadeInLeft",
|
|
450
425
|
...t.transitionConfig || {}
|
|
451
426
|
}));
|
|
452
|
-
let
|
|
453
|
-
const K = (
|
|
427
|
+
let _ = /* @__PURE__ */ new Map();
|
|
428
|
+
const K = (L, j) => {
|
|
454
429
|
let R;
|
|
455
|
-
return
|
|
430
|
+
return _.has(j) ? R = _.get(j) : (R = {
|
|
456
431
|
name: j,
|
|
457
432
|
render() {
|
|
458
|
-
return Y("div", { style: { width: "100%", height: "100%" } }, [Y(
|
|
433
|
+
return Y("div", { style: { width: "100%", height: "100%" } }, [Y(L)]);
|
|
459
434
|
}
|
|
460
|
-
},
|
|
435
|
+
}, _.set(j, R)), Y(R);
|
|
461
436
|
}, B = u(() => H.visible.value);
|
|
462
|
-
return (
|
|
437
|
+
return (L, j) => {
|
|
463
438
|
const R = ge("router-view");
|
|
464
439
|
return p(), k("div", Me, [
|
|
465
|
-
D($(
|
|
466
|
-
"
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
style: ye(s.value)
|
|
470
|
-
},
|
|
471
|
-
null,
|
|
472
|
-
6
|
|
473
|
-
/* CLASS, STYLE */
|
|
474
|
-
), [
|
|
440
|
+
D($("div", {
|
|
441
|
+
class: pe(["das-web-app-overlay", S.value]),
|
|
442
|
+
style: ye(s.value)
|
|
443
|
+
}, null, 6), [
|
|
475
444
|
[M, B.value]
|
|
476
445
|
]),
|
|
477
|
-
f.value ? D((p(), k(
|
|
478
|
-
"
|
|
479
|
-
|
|
480
|
-
[
|
|
481
|
-
F(C.$slots, "header", {}, void 0, !0)
|
|
482
|
-
],
|
|
483
|
-
512
|
|
484
|
-
/* NEED_PATCH */
|
|
485
|
-
)), [
|
|
446
|
+
f.value ? D((p(), k("div", je, [
|
|
447
|
+
F(L.$slots, "header", {}, void 0, !0)
|
|
448
|
+
], 512)), [
|
|
486
449
|
[M, B.value]
|
|
487
|
-
]) :
|
|
450
|
+
]) : C("", !0),
|
|
488
451
|
$("div", xe, [
|
|
489
|
-
y.value ? D((p(), k(
|
|
490
|
-
"
|
|
491
|
-
|
|
492
|
-
[
|
|
493
|
-
F(C.$slots, "aside", {}, void 0, !0)
|
|
494
|
-
],
|
|
495
|
-
512
|
|
496
|
-
/* NEED_PATCH */
|
|
497
|
-
)), [
|
|
452
|
+
y.value ? D((p(), k("div", $e, [
|
|
453
|
+
F(L.$slots, "aside", {}, void 0, !0)
|
|
454
|
+
], 512)), [
|
|
498
455
|
[M, B.value]
|
|
499
|
-
]) :
|
|
456
|
+
]) : C("", !0),
|
|
500
457
|
$("div", Be, [
|
|
501
|
-
i.value ? D((p(), k(
|
|
502
|
-
"
|
|
503
|
-
|
|
504
|
-
[
|
|
505
|
-
F(C.$slots, "tab", {}, void 0, !0)
|
|
506
|
-
],
|
|
507
|
-
512
|
|
508
|
-
/* NEED_PATCH */
|
|
509
|
-
)), [
|
|
458
|
+
i.value ? D((p(), k("div", He, [
|
|
459
|
+
F(L.$slots, "tab", {}, void 0, !0)
|
|
460
|
+
], 512)), [
|
|
510
461
|
[M, B.value]
|
|
511
|
-
]) :
|
|
462
|
+
]) : C("", !0),
|
|
512
463
|
$("div", Fe, [
|
|
513
|
-
D($(
|
|
514
|
-
"
|
|
515
|
-
|
|
516
|
-
[
|
|
517
|
-
F(C.$slots, "banner", {}, void 0, !0)
|
|
518
|
-
],
|
|
519
|
-
512
|
|
520
|
-
/* NEED_PATCH */
|
|
521
|
-
), [
|
|
464
|
+
D($("div", Ne, [
|
|
465
|
+
F(L.$slots, "banner", {}, void 0, !0)
|
|
466
|
+
], 512), [
|
|
522
467
|
[M, B.value]
|
|
523
468
|
]),
|
|
524
469
|
$("div", Oe, [
|
|
525
|
-
D($(
|
|
526
|
-
"
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
], 1032, ["exclude"])) : b("v-if", !0),
|
|
588
|
-
!w(n).meta.keepAlive && !w(n).meta.isIframe ? (p(), k("div", ze, [
|
|
589
|
-
(p(), V(N(c), {
|
|
590
|
-
key: w(n).path
|
|
591
|
-
}))
|
|
592
|
-
])) : b("v-if", !0)
|
|
593
|
-
]),
|
|
594
|
-
_: 1
|
|
595
|
-
/* STABLE */
|
|
596
|
-
})),
|
|
597
|
-
D($(
|
|
598
|
-
"div",
|
|
599
|
-
Qe,
|
|
600
|
-
[
|
|
601
|
-
X(De, {
|
|
602
|
-
exclude: a.value,
|
|
603
|
-
transitionConfig: m.value,
|
|
604
|
-
needTransition: C.needTransition
|
|
605
|
-
}, null, 8, ["exclude", "transitionConfig", "needTransition"])
|
|
606
|
-
],
|
|
607
|
-
512
|
|
608
|
-
/* NEED_PATCH */
|
|
609
|
-
), [
|
|
610
|
-
[M, w(n).meta.isIframe]
|
|
611
|
-
])
|
|
612
|
-
], !0)
|
|
613
|
-
],
|
|
614
|
-
512
|
|
615
|
-
/* NEED_PATCH */
|
|
616
|
-
), [
|
|
470
|
+
D($("div", Ue, [
|
|
471
|
+
F(L.$slots, "router-view", {}, () => [
|
|
472
|
+
L.needTransition ? (p(), V(R, { key: 0 }, {
|
|
473
|
+
default: U(({ Component: c }) => [
|
|
474
|
+
X(ie, ee(le(m.value)), {
|
|
475
|
+
default: U(() => {
|
|
476
|
+
var g;
|
|
477
|
+
return [
|
|
478
|
+
w(n).meta.keepAlive ? (p(), V(ce, {
|
|
479
|
+
key: 0,
|
|
480
|
+
exclude: a.value
|
|
481
|
+
}, [
|
|
482
|
+
o.value && !((g = w(n).meta) != null && g.isIframe) ? (p(), V(N(K(c, w(n).path)), {
|
|
483
|
+
key: w(n).path
|
|
484
|
+
})) : C("", !0)
|
|
485
|
+
], 1032, ["exclude"])) : C("", !0)
|
|
486
|
+
];
|
|
487
|
+
}),
|
|
488
|
+
_: 2
|
|
489
|
+
}, 1040),
|
|
490
|
+
X(ie, ee(le(m.value)), {
|
|
491
|
+
default: U(() => [
|
|
492
|
+
!w(n).meta.keepAlive && !w(n).meta.isIframe ? (p(), k("div", We, [
|
|
493
|
+
(p(), V(N(c), {
|
|
494
|
+
key: w(n).path
|
|
495
|
+
}))
|
|
496
|
+
])) : C("", !0)
|
|
497
|
+
]),
|
|
498
|
+
_: 2
|
|
499
|
+
}, 1040)
|
|
500
|
+
]),
|
|
501
|
+
_: 1
|
|
502
|
+
})) : C("", !0),
|
|
503
|
+
L.needTransition ? C("", !0) : (p(), V(R, { key: 1 }, {
|
|
504
|
+
default: U(({ Component: c }) => [
|
|
505
|
+
w(n).meta.keepAlive ? (p(), V(ce, {
|
|
506
|
+
key: 0,
|
|
507
|
+
exclude: a.value
|
|
508
|
+
}, [
|
|
509
|
+
o.value && !w(n).meta.isIframe ? (p(), V(N(K(c, w(n).path)), {
|
|
510
|
+
key: w(n).path
|
|
511
|
+
})) : C("", !0)
|
|
512
|
+
], 1032, ["exclude"])) : C("", !0),
|
|
513
|
+
!w(n).meta.keepAlive && !w(n).meta.isIframe ? (p(), k("div", ze, [
|
|
514
|
+
(p(), V(N(c), {
|
|
515
|
+
key: w(n).path
|
|
516
|
+
}))
|
|
517
|
+
])) : C("", !0)
|
|
518
|
+
]),
|
|
519
|
+
_: 1
|
|
520
|
+
})),
|
|
521
|
+
D($("div", Qe, [
|
|
522
|
+
X(De, {
|
|
523
|
+
exclude: a.value,
|
|
524
|
+
transitionConfig: m.value,
|
|
525
|
+
needTransition: L.needTransition
|
|
526
|
+
}, null, 8, ["exclude", "transitionConfig", "needTransition"])
|
|
527
|
+
], 512), [
|
|
528
|
+
[M, w(n).meta.isIframe]
|
|
529
|
+
])
|
|
530
|
+
], !0)
|
|
531
|
+
], 512), [
|
|
617
532
|
[M, P.value]
|
|
618
533
|
]),
|
|
619
|
-
D($(
|
|
620
|
-
"
|
|
621
|
-
|
|
622
|
-
[
|
|
623
|
-
F(C.$slots, "default", {}, void 0, !0)
|
|
624
|
-
],
|
|
625
|
-
512
|
|
626
|
-
/* NEED_PATCH */
|
|
627
|
-
), [
|
|
534
|
+
D($("div", Ke, [
|
|
535
|
+
F(L.$slots, "default", {}, void 0, !0)
|
|
536
|
+
], 512), [
|
|
628
537
|
[M, !P.value]
|
|
629
538
|
])
|
|
630
539
|
])
|
|
@@ -638,11 +547,11 @@ const h = z({
|
|
|
638
547
|
__name: "das-web-nav",
|
|
639
548
|
setup(e) {
|
|
640
549
|
const { nav: t } = H, n = u(() => t.theme), l = u(() => t.logo || ""), d = u(() => t.activeItem || ""), r = u(() => (t.items || []).filter((g) => g.fixed)), f = u(() => (t.items || []).filter((g) => !g.fixed)), y = u(() => {
|
|
641
|
-
var c, g,
|
|
550
|
+
var c, g, b, x;
|
|
642
551
|
return {
|
|
643
552
|
showFullScreen: ((c = t.config) == null ? void 0 : c.showFullScreen) ?? !1,
|
|
644
553
|
showChangeEnterprise: ((g = t.config) == null ? void 0 : g.showChangeEnterprise) ?? !1,
|
|
645
|
-
showSearch: ((
|
|
554
|
+
showSearch: ((b = t.config) == null ? void 0 : b.showSearch) ?? !0,
|
|
646
555
|
showProjectTree: ((x = t.config) == null ? void 0 : x.showProjectTree) ?? !0,
|
|
647
556
|
subAppList: f.value.map((E) => ({ code: E.value, name: E.label, ...E }))
|
|
648
557
|
};
|
|
@@ -659,24 +568,24 @@ const h = z({
|
|
|
659
568
|
},
|
|
660
569
|
...t.projectConfig
|
|
661
570
|
})), T = u(() => t.userInfo), S = u(() => t.searchConfig), s = async (c) => {
|
|
662
|
-
const g = c.detail[0],
|
|
663
|
-
await v.nav.triggerEventListener("onItemClick",
|
|
571
|
+
const g = c.detail[0], b = r.value.find((E) => g.value === E.value);
|
|
572
|
+
await v.nav.triggerEventListener("onItemClick", b) && v.nav.setActiveItem(b.value);
|
|
664
573
|
}, a = async (c) => {
|
|
665
|
-
const g = c.detail[0],
|
|
666
|
-
await v.nav.triggerEventListener("onItemClick",
|
|
574
|
+
const g = c.detail[0], b = f.value.find((E) => g === E.value);
|
|
575
|
+
await v.nav.triggerEventListener("onItemClick", b) && v.nav.setActiveItem(b.value);
|
|
667
576
|
}, o = async (c) => {
|
|
668
|
-
const g = c.detail[0],
|
|
669
|
-
await v.nav.triggerEventListener("onItemRemove",
|
|
577
|
+
const g = c.detail[0], b = f.value.find((E) => g === E.value);
|
|
578
|
+
await v.nav.triggerEventListener("onItemRemove", b) && v.nav.removeItem(b.value);
|
|
670
579
|
}, m = async (c) => {
|
|
671
|
-
const [g,
|
|
672
|
-
!g || !await v.nav.triggerEventListener("onProjectChange",
|
|
673
|
-
},
|
|
580
|
+
const [g, b] = c.detail;
|
|
581
|
+
!g || !await v.nav.triggerEventListener("onProjectChange", b) || v.nav.setActiveProject(b);
|
|
582
|
+
}, _ = (c) => {
|
|
674
583
|
v.nav.triggerEventListener("onUserCommandChange", c.detail[0]);
|
|
675
584
|
}, K = (c) => {
|
|
676
585
|
v.nav.triggerEventListener("searchToPage", { item: c.detail[0], keyword: c.detail[1], cb: c.detail[2] });
|
|
677
586
|
}, B = (c) => {
|
|
678
587
|
v.nav.triggerEventListener("clearSearchList", { cb: c.detail[0] });
|
|
679
|
-
},
|
|
588
|
+
}, L = (c) => {
|
|
680
589
|
v.nav.triggerEventListener("deleteSearchItem", { value: c.detail[0], cb: c.detail[1] });
|
|
681
590
|
}, j = () => {
|
|
682
591
|
v.nav.triggerEventListener("changeEnterpriseHandle");
|
|
@@ -698,14 +607,14 @@ const h = z({
|
|
|
698
607
|
searchConfig: S.value,
|
|
699
608
|
projectTreeConfig: P.value,
|
|
700
609
|
userInfoConfig: T.value,
|
|
701
|
-
"on:userCommandHandle":
|
|
610
|
+
"on:userCommandHandle": _,
|
|
702
611
|
"on:changeInnerPage": s,
|
|
703
612
|
"on:handleTabClick": a,
|
|
704
613
|
"on:handleTabDelete": o,
|
|
705
614
|
"on:changeTreeHandle": m,
|
|
706
615
|
"on:searchToPage": K,
|
|
707
616
|
"on:clearSearchList": B,
|
|
708
|
-
"on:deleteSearchItem":
|
|
617
|
+
"on:deleteSearchItem": L,
|
|
709
618
|
"on:changeEnterpriseHandle": j,
|
|
710
619
|
"on:fullScreen": R
|
|
711
620
|
}, null, 40, Ge));
|
|
@@ -717,7 +626,7 @@ const h = z({
|
|
|
717
626
|
},
|
|
718
627
|
setup(e) {
|
|
719
628
|
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) => {
|
|
720
|
-
const a = s.detail[0], o = Ee(r.value).find((
|
|
629
|
+
const a = s.detail[0], o = Ee(r.value).find((_) => a === _.id);
|
|
721
630
|
await v.menu.triggerEventListener("onItemClick", o) && v.menu.setActiveItem(o.id);
|
|
722
631
|
}, S = (s) => {
|
|
723
632
|
v.menu.setCollapse(s.detail[0]), v.menu.triggerEventListener("toggleCollapse", s.detail[0]);
|
|
@@ -733,7 +642,7 @@ const h = z({
|
|
|
733
642
|
}, d.value, {
|
|
734
643
|
onChange: T,
|
|
735
644
|
"on:toggleCollapse": S
|
|
736
|
-
}), null, 16, Je)) :
|
|
645
|
+
}), null, 16, Je)) : C("", !0);
|
|
737
646
|
}
|
|
738
647
|
}), Xe = ["theme", "modelValue", "options"], it = /* @__PURE__ */ Q({
|
|
739
648
|
__name: "das-web-tabs",
|
|
@@ -746,10 +655,10 @@ const h = z({
|
|
|
746
655
|
key: s.value,
|
|
747
656
|
tab: s.label
|
|
748
657
|
}))), f = u(() => t.activeItem || ""), y = async (s) => {
|
|
749
|
-
const a = s.detail[0], o = r.value.find((
|
|
658
|
+
const a = s.detail[0], o = r.value.find((_) => a === _.value);
|
|
750
659
|
await v.tab.triggerEventListener("onItemClick", o) && v.tab.setActiveItem(o.value);
|
|
751
660
|
}, i = async (s) => {
|
|
752
|
-
const a = s.detail[0], o = r.value.find((
|
|
661
|
+
const a = s.detail[0], o = r.value.find((_) => a === _.value);
|
|
753
662
|
await v.tab.triggerEventListener("onItemRemove", o) && v.tab.removeItem(o.value);
|
|
754
663
|
}, P = async (s) => {
|
|
755
664
|
await v.tab.triggerEventListener("onMenuClick", { type: s.detail[0], data: s.detail[1] });
|
|
@@ -769,7 +678,7 @@ const h = z({
|
|
|
769
678
|
"on:menuClick": P,
|
|
770
679
|
"on:pageRefresh": T,
|
|
771
680
|
"on:toggleFullScreen": S
|
|
772
|
-
}), null, 16, Xe)) :
|
|
681
|
+
}), null, 16, Xe)) : C("", !0);
|
|
773
682
|
}
|
|
774
683
|
});
|
|
775
684
|
O("@das-fed/web");
|
|
Binary file
|
|
@@ -6,7 +6,7 @@ import { DasSpin as x } from "@das-fed/ui/packages/components/spin/index";
|
|
|
6
6
|
import { getTabInfo as T } from "@das-fed/utils/common-info";
|
|
7
7
|
import { setShowLayout as b } from "@das-fed/utils/common-tools";
|
|
8
8
|
import { createService as E } from "@das-fed/utils/create-api-service";
|
|
9
|
-
import { u as L, p as P, a as u, c as f, b as q, l as B, g as K, d as M } from "./index
|
|
9
|
+
import { u as L, p as P, a as u, c as f, b as q, l as B, g as K, d as M } from "./index-ztCi-Fxb.js";
|
|
10
10
|
const N = "v1", O = E(`/api/justauth/client/${N}`), V = O.get("/visitor/kingdee/auth/user/auth_code"), z = /* @__PURE__ */ k({
|
|
11
11
|
__name: "index",
|
|
12
12
|
setup(F) {
|
|
@@ -71,7 +71,6 @@ const N = "v1", O = E(`/api/justauth/client/${N}`), V = O.get("/visitor/kingdee/
|
|
|
71
71
|
}, null, 8, ["theme", "appCategorys"])
|
|
72
72
|
]),
|
|
73
73
|
_: 1
|
|
74
|
-
/* STABLE */
|
|
75
74
|
}, 8, ["spinning"])), [
|
|
76
75
|
[I, !h.value]
|
|
77
76
|
]);
|
|
Binary file
|