@das-fed/upf-web 6.4.0-dev.173 → 6.4.0-dev.175
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es5.js +17 -17
- package/package.json +6 -6
- package/packages/create-das-web-app/es5.js +14 -16
- package/packages/i18n/es5.js +33 -99
- package/packages/layout/es5.js +125 -132
- package/packages/main-app-framework/es5.js +14 -14
- package/packages/micro-frontend/es5.js +59 -64
- package/packages/style/es5.js +2 -7
- package/packages/theme/es5.js +6 -18
package/packages/layout/es5.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
2
|
var _excluded = ["mode"];
|
|
5
3
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
@@ -21,13 +19,13 @@ function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present,
|
|
|
21
19
|
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { if (r) i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n;else { var o = function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); }; o("next", 0), o("throw", 1), o("return", 2); } }, _regeneratorDefine2(e, r, n, t); }
|
|
22
20
|
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
23
21
|
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
var h =
|
|
22
|
+
import '@das-fed/upf-web/packages/layout/style.css';
|
|
23
|
+
import { reactive, ref, defineComponent, computed, onBeforeMount, onMounted, onUnmounted, openBlock, createElementBlock, mergeProps, createCommentVNode, watch, resolveComponent, withDirectives, createElementVNode, normalizeClass, normalizeStyle, vShow, renderSlot, createBlock, withCtx, createVNode, Transition, normalizeProps, guardReactiveProps, unref, KeepAlive, resolveDynamicComponent, h as h$1, Fragment, TransitionGroup, renderList, nextTick } from 'vue';
|
|
24
|
+
import { useRoute, useRouter } from 'vue-router';
|
|
25
|
+
import { setHtmlMinWH } from '@das-fed/upf-utils/common-tools/setHtmlMinWH';
|
|
26
|
+
import { createCeNav, createCeTabs, createCeMenu } from '@das-fed/upf-web-components/das-web-app';
|
|
27
|
+
import { flatTree } from '@das-fed/upf-utils/common-tools/nest-tree-format';
|
|
28
|
+
var h = reactive({
|
|
31
29
|
visible: false,
|
|
32
30
|
theme: "default",
|
|
33
31
|
logo: "",
|
|
@@ -152,7 +150,7 @@ var h = vue.reactive({
|
|
|
152
150
|
};
|
|
153
151
|
}
|
|
154
152
|
},
|
|
155
|
-
R =
|
|
153
|
+
R = reactive({
|
|
156
154
|
theme: "default",
|
|
157
155
|
items: [],
|
|
158
156
|
collapse: false,
|
|
@@ -238,7 +236,7 @@ var h = vue.reactive({
|
|
|
238
236
|
};
|
|
239
237
|
}
|
|
240
238
|
},
|
|
241
|
-
k =
|
|
239
|
+
k = reactive({
|
|
242
240
|
theme: "default",
|
|
243
241
|
items: [],
|
|
244
242
|
eventListeners: {}
|
|
@@ -329,7 +327,7 @@ var h = vue.reactive({
|
|
|
329
327
|
};
|
|
330
328
|
}
|
|
331
329
|
},
|
|
332
|
-
K =
|
|
330
|
+
K = reactive({
|
|
333
331
|
eventListeners: {}
|
|
334
332
|
}),
|
|
335
333
|
Re = {
|
|
@@ -394,7 +392,7 @@ var h = vue.reactive({
|
|
|
394
392
|
};
|
|
395
393
|
}
|
|
396
394
|
},
|
|
397
|
-
se =
|
|
395
|
+
se = reactive({
|
|
398
396
|
visible: false,
|
|
399
397
|
style: {}
|
|
400
398
|
}),
|
|
@@ -409,7 +407,7 @@ var h = vue.reactive({
|
|
|
409
407
|
tab: k,
|
|
410
408
|
overlay: se,
|
|
411
409
|
iframeView: K,
|
|
412
|
-
visible:
|
|
410
|
+
visible: ref(true)
|
|
413
411
|
},
|
|
414
412
|
v = {
|
|
415
413
|
nav: ve,
|
|
@@ -426,7 +424,7 @@ var h = vue.reactive({
|
|
|
426
424
|
},
|
|
427
425
|
Pe = ["name"],
|
|
428
426
|
Se = ["name"],
|
|
429
|
-
De = /* @__PURE__ */
|
|
427
|
+
De = /* @__PURE__ */defineComponent({
|
|
430
428
|
__name: "das-iframe-router-view",
|
|
431
429
|
props: {
|
|
432
430
|
needTransition: {
|
|
@@ -441,7 +439,7 @@ var h = vue.reactive({
|
|
|
441
439
|
},
|
|
442
440
|
setup: function setup(e) {
|
|
443
441
|
var t = e,
|
|
444
|
-
n =
|
|
442
|
+
n = computed(function () {
|
|
445
443
|
var _mode$enterActiveCl = _objectSpread({
|
|
446
444
|
mode: "out-in",
|
|
447
445
|
"enter-active-class": "animate__animated animate__fadeInLeft"
|
|
@@ -451,10 +449,10 @@ var h = vue.reactive({
|
|
|
451
449
|
a = _objectWithoutProperties(_mode$enterActiveCl, _excluded);
|
|
452
450
|
return a;
|
|
453
451
|
}),
|
|
454
|
-
l =
|
|
455
|
-
d =
|
|
456
|
-
r =
|
|
457
|
-
f =
|
|
452
|
+
l = useRouter(),
|
|
453
|
+
d = useRoute(),
|
|
454
|
+
r = ref([]),
|
|
455
|
+
f = computed(function () {
|
|
458
456
|
return r.value.filter(function (s) {
|
|
459
457
|
var a;
|
|
460
458
|
return (a = s.meta) == null ? undefined : a.isOpen;
|
|
@@ -467,7 +465,7 @@ var h = vue.reactive({
|
|
|
467
465
|
m.meta.key === s && (m.meta.key = "".concat(m.path, "-").concat(o));
|
|
468
466
|
});
|
|
469
467
|
};
|
|
470
|
-
|
|
468
|
+
watch(function () {
|
|
471
469
|
return t.exclude;
|
|
472
470
|
}, function (s) {
|
|
473
471
|
if (!s || !s.length) return;
|
|
@@ -599,7 +597,7 @@ var h = vue.reactive({
|
|
|
599
597
|
}
|
|
600
598
|
s.meta.isShow = false;
|
|
601
599
|
_context8.n = 2;
|
|
602
|
-
return
|
|
600
|
+
return nextTick();
|
|
603
601
|
case 2:
|
|
604
602
|
v.iframeView.triggerEventListener("onDeactivated", {
|
|
605
603
|
route: s
|
|
@@ -616,7 +614,7 @@ var h = vue.reactive({
|
|
|
616
614
|
(o = a.meta) != null && o.isOpen || (a.meta.isOpen = true);
|
|
617
615
|
(m = a.meta) != null && m.isShow || (a.meta.isShow = true);
|
|
618
616
|
_context8.n = 4;
|
|
619
|
-
return
|
|
617
|
+
return nextTick();
|
|
620
618
|
case 4:
|
|
621
619
|
v.iframeView.triggerEventListener("onActivated", {
|
|
622
620
|
route: a
|
|
@@ -631,7 +629,7 @@ var h = vue.reactive({
|
|
|
631
629
|
};
|
|
632
630
|
}();
|
|
633
631
|
var S = 0;
|
|
634
|
-
return
|
|
632
|
+
return watch(function () {
|
|
635
633
|
return l.currentRoute.value;
|
|
636
634
|
}, function () {
|
|
637
635
|
var s = l.options.routes.length;
|
|
@@ -648,38 +646,38 @@ var h = vue.reactive({
|
|
|
648
646
|
a.path === s && (a.meta.isOpen = false);
|
|
649
647
|
});
|
|
650
648
|
}), function (s, a) {
|
|
651
|
-
return
|
|
649
|
+
return openBlock(), createElementBlock(Fragment, null, [s.needTransition ? (openBlock(), createBlock(TransitionGroup, normalizeProps(mergeProps({
|
|
652
650
|
key: 0
|
|
653
651
|
}, n.value)), {
|
|
654
|
-
"default":
|
|
655
|
-
return [(
|
|
652
|
+
"default": withCtx(function () {
|
|
653
|
+
return [(openBlock(true), createElementBlock(Fragment, null, renderList(f.value, function (_ref8) {
|
|
656
654
|
var o = _ref8.path,
|
|
657
655
|
m = _ref8.meta;
|
|
658
|
-
return
|
|
656
|
+
return withDirectives((openBlock(), createElementBlock("div", {
|
|
659
657
|
"class": "das-iframe-router-view",
|
|
660
658
|
key: m.key,
|
|
661
659
|
name: o
|
|
662
|
-
}, [(
|
|
660
|
+
}, [(openBlock(), createBlock(resolveDynamicComponent(m.componentInstance), {
|
|
663
661
|
key: m.key
|
|
664
|
-
}))], 8, Pe)), [[
|
|
662
|
+
}))], 8, Pe)), [[vShow, m.componentInstance && o === unref(d).path]]);
|
|
665
663
|
}), 128
|
|
666
664
|
/* KEYED_FRAGMENT */))];
|
|
667
665
|
}),
|
|
668
666
|
_: 1
|
|
669
667
|
/* STABLE */
|
|
670
668
|
}, 16
|
|
671
|
-
/* FULL_PROPS */)) :
|
|
669
|
+
/* FULL_PROPS */)) : createCommentVNode("v-if", true), s.needTransition ? createCommentVNode("v-if", true) : (openBlock(true), createElementBlock(Fragment, {
|
|
672
670
|
key: 1
|
|
673
|
-
},
|
|
671
|
+
}, renderList(f.value, function (_ref9) {
|
|
674
672
|
var o = _ref9.path,
|
|
675
673
|
m = _ref9.meta;
|
|
676
|
-
return
|
|
674
|
+
return withDirectives((openBlock(), createElementBlock("div", {
|
|
677
675
|
"class": "das-iframe-router-view",
|
|
678
676
|
key: m.key,
|
|
679
677
|
name: o
|
|
680
|
-
}, [(
|
|
678
|
+
}, [(openBlock(), createBlock(resolveDynamicComponent(m.componentInstance), {
|
|
681
679
|
key: m.key
|
|
682
|
-
}))], 8, Se)), [[
|
|
680
|
+
}))], 8, Se)), [[vShow, m.componentInstance && o === unref(d).path]]);
|
|
683
681
|
}), 128
|
|
684
682
|
/* KEYED_FRAGMENT */))], 64
|
|
685
683
|
/* STABLE_FRAGMENT */);
|
|
@@ -762,7 +760,7 @@ var h = vue.reactive({
|
|
|
762
760
|
width: "100%"
|
|
763
761
|
}
|
|
764
762
|
},
|
|
765
|
-
qe = /* @__PURE__ */
|
|
763
|
+
qe = /* @__PURE__ */defineComponent({
|
|
766
764
|
__name: "das-web-layout",
|
|
767
765
|
props: {
|
|
768
766
|
needTransition: {
|
|
@@ -797,48 +795,48 @@ var h = vue.reactive({
|
|
|
797
795
|
},
|
|
798
796
|
setup: function setup(e) {
|
|
799
797
|
var t = e;
|
|
800
|
-
|
|
801
|
-
var n =
|
|
802
|
-
l =
|
|
803
|
-
d =
|
|
804
|
-
r =
|
|
805
|
-
f =
|
|
798
|
+
createCeNav(), createCeTabs(), createCeMenu();
|
|
799
|
+
var n = useRoute(),
|
|
800
|
+
l = ref(false),
|
|
801
|
+
d = ref(false),
|
|
802
|
+
r = ref(false),
|
|
803
|
+
f = computed(function () {
|
|
806
804
|
return l.value && t.showLayout;
|
|
807
805
|
}),
|
|
808
|
-
y =
|
|
806
|
+
y = computed(function () {
|
|
809
807
|
return d.value && t.showLayout && t.showAside;
|
|
810
808
|
}),
|
|
811
|
-
i =
|
|
809
|
+
i = computed(function () {
|
|
812
810
|
return l.value && t.showLayout && t.showTabs;
|
|
813
811
|
}),
|
|
814
|
-
P =
|
|
812
|
+
P = computed(function () {
|
|
815
813
|
var _t$routerViewVisible;
|
|
816
814
|
return (_t$routerViewVisible = t.routerViewVisible) !== null && _t$routerViewVisible !== void 0 ? _t$routerViewVisible : true;
|
|
817
815
|
}),
|
|
818
|
-
T =
|
|
816
|
+
T = computed(function () {
|
|
819
817
|
var _F$overlay$visible;
|
|
820
818
|
return (_F$overlay$visible = F.overlay.visible) !== null && _F$overlay$visible !== void 0 ? _F$overlay$visible : false;
|
|
821
819
|
}),
|
|
822
|
-
S =
|
|
820
|
+
S = computed(function () {
|
|
823
821
|
return {
|
|
824
822
|
"das-web-app-overlay-show": T.value === true,
|
|
825
823
|
"das-web-app-overlay-hide": T.value === false,
|
|
826
824
|
"das-web-app-overlay-destroy": T.value === "destroy"
|
|
827
825
|
};
|
|
828
826
|
}),
|
|
829
|
-
s =
|
|
827
|
+
s = computed(function () {
|
|
830
828
|
var _F$overlay$style;
|
|
831
829
|
return (_F$overlay$style = F.overlay.style) !== null && _F$overlay$style !== void 0 ? _F$overlay$style : {
|
|
832
830
|
backgroundColor: "rgba(0,0,0,0.5)"
|
|
833
831
|
};
|
|
834
832
|
}),
|
|
835
|
-
a =
|
|
833
|
+
a = computed(function () {
|
|
836
834
|
return t.excludeRoutes;
|
|
837
835
|
}),
|
|
838
|
-
o =
|
|
836
|
+
o = computed(function () {
|
|
839
837
|
return t.routeKeepAliveVisible;
|
|
840
838
|
});
|
|
841
|
-
|
|
839
|
+
watch(function () {
|
|
842
840
|
return [n.meta, n.query];
|
|
843
841
|
}, function (_ref0) {
|
|
844
842
|
var _ref1 = _slicedToArray(_ref0, 2),
|
|
@@ -859,13 +857,13 @@ var h = vue.reactive({
|
|
|
859
857
|
_j$showTabs = j.showTabs,
|
|
860
858
|
E = _j$showTabs === void 0 ? true : _j$showTabs,
|
|
861
859
|
G = j.app;
|
|
862
|
-
setHtmlMinWH
|
|
860
|
+
setHtmlMinWH(p);
|
|
863
861
|
var re = true,
|
|
864
862
|
J = true,
|
|
865
863
|
X = true;
|
|
866
864
|
(A === false || w === false || w === "false") && (re = false, J = false, X = false), (x === false || $ === false || $ === "false") && (J = false), (u === false || E === false || E === "false") && (X = false), l.value = re, d.value = J, r.value = X;
|
|
867
865
|
});
|
|
868
|
-
var m =
|
|
866
|
+
var m = computed(function () {
|
|
869
867
|
return _objectSpread({
|
|
870
868
|
mode: "out-in",
|
|
871
869
|
"enter-active-class": "animate__animated animate__fadeInLeft"
|
|
@@ -877,58 +875,58 @@ var h = vue.reactive({
|
|
|
877
875
|
return I.has(j) ? A = I.get(j) : (A = {
|
|
878
876
|
name: j,
|
|
879
877
|
render: function render() {
|
|
880
|
-
return
|
|
878
|
+
return h$1("div", {
|
|
881
879
|
style: {
|
|
882
880
|
width: "100%",
|
|
883
881
|
height: "100%"
|
|
884
882
|
}
|
|
885
|
-
}, [
|
|
883
|
+
}, [h$1(_)]);
|
|
886
884
|
}
|
|
887
|
-
}, I.set(j, A)),
|
|
885
|
+
}, I.set(j, A)), h$1(A);
|
|
888
886
|
},
|
|
889
|
-
B =
|
|
887
|
+
B = computed(function () {
|
|
890
888
|
return F.visible.value;
|
|
891
889
|
});
|
|
892
890
|
return function (_, j) {
|
|
893
|
-
var A =
|
|
894
|
-
return
|
|
895
|
-
"class":
|
|
896
|
-
style:
|
|
891
|
+
var A = resolveComponent("router-view");
|
|
892
|
+
return openBlock(), createElementBlock("div", je, [withDirectives(createElementVNode("div", {
|
|
893
|
+
"class": normalizeClass(["das-web-app-overlay", S.value]),
|
|
894
|
+
style: normalizeStyle(s.value)
|
|
897
895
|
}, null, 6
|
|
898
|
-
/* CLASS, STYLE */), [[
|
|
899
|
-
/* NEED_PATCH */)), [[
|
|
900
|
-
/* NEED_PATCH */)), [[
|
|
901
|
-
/* NEED_PATCH */)), [[
|
|
902
|
-
/* NEED_PATCH */), [[
|
|
896
|
+
/* CLASS, STYLE */), [[vShow, B.value]]), f.value ? withDirectives((openBlock(), createElementBlock("div", xe, [renderSlot(_.$slots, "header", {}, undefined, true)], 512
|
|
897
|
+
/* NEED_PATCH */)), [[vShow, B.value]]) : createCommentVNode("v-if", true), createElementVNode("div", $e, [y.value ? withDirectives((openBlock(), createElementBlock("div", He, [renderSlot(_.$slots, "aside", {}, undefined, true)], 512
|
|
898
|
+
/* NEED_PATCH */)), [[vShow, B.value]]) : createCommentVNode("v-if", true), createElementVNode("div", Be, [i.value ? withDirectives((openBlock(), createElementBlock("div", Fe, [renderSlot(_.$slots, "tab", {}, undefined, true)], 512
|
|
899
|
+
/* NEED_PATCH */)), [[vShow, B.value]]) : createCommentVNode("v-if", true), createElementVNode("div", Ne, [withDirectives(createElementVNode("div", Oe, [renderSlot(_.$slots, "banner", {}, undefined, true)], 512
|
|
900
|
+
/* NEED_PATCH */), [[vShow, B.value]]), createElementVNode("div", Ue, [withDirectives((openBlock(), createElementBlock("div", {
|
|
903
901
|
key: _.pageKey,
|
|
904
902
|
style: {
|
|
905
903
|
width: "100%",
|
|
906
904
|
height: "100%"
|
|
907
905
|
}
|
|
908
|
-
}, [
|
|
909
|
-
return [
|
|
906
|
+
}, [renderSlot(_.$slots, "router-view", {}, function () {
|
|
907
|
+
return [createCommentVNode(" 有动画 "), _.needTransition ? (openBlock(), createBlock(A, {
|
|
910
908
|
key: 0
|
|
911
909
|
}, {
|
|
912
|
-
"default":
|
|
910
|
+
"default": withCtx(function (_ref10) {
|
|
913
911
|
var x = _ref10.Component;
|
|
914
|
-
return [
|
|
915
|
-
"default":
|
|
912
|
+
return [createVNode(Transition, normalizeProps(guardReactiveProps(m.value)), {
|
|
913
|
+
"default": withCtx(function () {
|
|
916
914
|
var u;
|
|
917
|
-
return [
|
|
915
|
+
return [unref(n).meta.keepAlive ? (openBlock(), createBlock(KeepAlive, {
|
|
918
916
|
key: 0,
|
|
919
917
|
exclude: a.value
|
|
920
|
-
}, [o.value && !((u =
|
|
921
|
-
key:
|
|
922
|
-
})) :
|
|
918
|
+
}, [o.value && !((u = unref(n).meta) != null && u.isIframe) ? (openBlock(), createBlock(resolveDynamicComponent(q(x, unref(n).path)), {
|
|
919
|
+
key: unref(n).path
|
|
920
|
+
})) : createCommentVNode("v-if", true)], 1032, ["exclude"])) : createCommentVNode("v-if", true)];
|
|
923
921
|
}),
|
|
924
922
|
_: 2
|
|
925
923
|
/* DYNAMIC */
|
|
926
924
|
}, 1040
|
|
927
|
-
/* FULL_PROPS, DYNAMIC_SLOTS */),
|
|
928
|
-
"default":
|
|
929
|
-
return [!
|
|
930
|
-
key:
|
|
931
|
-
}))])) :
|
|
925
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */), createVNode(Transition, normalizeProps(guardReactiveProps(m.value)), {
|
|
926
|
+
"default": withCtx(function () {
|
|
927
|
+
return [!unref(n).meta.keepAlive && !unref(n).meta.isIframe ? (openBlock(), createElementBlock("div", We, [(openBlock(), createBlock(resolveDynamicComponent(x), {
|
|
928
|
+
key: unref(n).path
|
|
929
|
+
}))])) : createCommentVNode("v-if", true)];
|
|
932
930
|
}),
|
|
933
931
|
_: 2
|
|
934
932
|
/* DYNAMIC */
|
|
@@ -937,59 +935,59 @@ var h = vue.reactive({
|
|
|
937
935
|
}),
|
|
938
936
|
_: 1
|
|
939
937
|
/* STABLE */
|
|
940
|
-
})) :
|
|
938
|
+
})) : createCommentVNode("v-if", true), createCommentVNode(" 无动画 "), _.needTransition ? createCommentVNode("v-if", true) : (openBlock(), createBlock(A, {
|
|
941
939
|
key: 1
|
|
942
940
|
}, {
|
|
943
|
-
"default":
|
|
941
|
+
"default": withCtx(function (_ref11) {
|
|
944
942
|
var x = _ref11.Component;
|
|
945
|
-
return [
|
|
943
|
+
return [unref(n).meta.keepAlive ? (openBlock(), createBlock(KeepAlive, {
|
|
946
944
|
key: 0,
|
|
947
945
|
exclude: a.value
|
|
948
|
-
}, [o.value && !
|
|
949
|
-
key:
|
|
950
|
-
})) :
|
|
951
|
-
key:
|
|
952
|
-
}))])) :
|
|
946
|
+
}, [o.value && !unref(n).meta.isIframe ? (openBlock(), createBlock(resolveDynamicComponent(q(x, unref(n).path)), {
|
|
947
|
+
key: unref(n).path
|
|
948
|
+
})) : createCommentVNode("v-if", true)], 1032, ["exclude"])) : createCommentVNode("v-if", true), !unref(n).meta.keepAlive && !unref(n).meta.isIframe ? (openBlock(), createElementBlock("div", Ke, [(openBlock(), createBlock(resolveDynamicComponent(x), {
|
|
949
|
+
key: unref(n).path
|
|
950
|
+
}))])) : createCommentVNode("v-if", true)];
|
|
953
951
|
}),
|
|
954
952
|
_: 1
|
|
955
953
|
/* STABLE */
|
|
956
|
-
})),
|
|
954
|
+
})), withDirectives(createElementVNode("div", ze, [createVNode(Me, {
|
|
957
955
|
exclude: a.value,
|
|
958
956
|
transitionConfig: m.value,
|
|
959
957
|
needTransition: _.needTransition
|
|
960
958
|
}, null, 8, ["exclude", "transitionConfig", "needTransition"])], 512
|
|
961
|
-
/* NEED_PATCH */), [[
|
|
962
|
-
}, true)])), [[
|
|
963
|
-
/* NEED_PATCH */), [[
|
|
959
|
+
/* NEED_PATCH */), [[vShow, unref(n).meta.isIframe]])];
|
|
960
|
+
}, true)])), [[vShow, P.value]]), withDirectives(createElementVNode("div", Qe, [renderSlot(_.$slots, "default", {}, undefined, true)], 512
|
|
961
|
+
/* NEED_PATCH */), [[vShow, !P.value]])])])])])]);
|
|
964
962
|
};
|
|
965
963
|
}
|
|
966
964
|
}),
|
|
967
965
|
st = /* @__PURE__ */he(qe, [["__scopeId", "data-v-cc197012"]]),
|
|
968
966
|
Ge = ["theme", "modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"],
|
|
969
|
-
at = /* @__PURE__ */
|
|
967
|
+
at = /* @__PURE__ */defineComponent({
|
|
970
968
|
__name: "das-web-nav",
|
|
971
969
|
setup: function setup(e) {
|
|
972
970
|
var t = F.nav,
|
|
973
|
-
n =
|
|
971
|
+
n = computed(function () {
|
|
974
972
|
return t.theme;
|
|
975
973
|
}),
|
|
976
|
-
l =
|
|
974
|
+
l = computed(function () {
|
|
977
975
|
return t.logo || "";
|
|
978
976
|
}),
|
|
979
|
-
d =
|
|
977
|
+
d = computed(function () {
|
|
980
978
|
return t.activeItem || "";
|
|
981
979
|
}),
|
|
982
|
-
r =
|
|
980
|
+
r = computed(function () {
|
|
983
981
|
return (t.items || []).filter(function (p) {
|
|
984
982
|
return p.fixed;
|
|
985
983
|
});
|
|
986
984
|
}),
|
|
987
|
-
f =
|
|
985
|
+
f = computed(function () {
|
|
988
986
|
return (t.items || []).filter(function (p) {
|
|
989
987
|
return !p.fixed;
|
|
990
988
|
});
|
|
991
989
|
}),
|
|
992
|
-
y =
|
|
990
|
+
y = computed(function () {
|
|
993
991
|
var _ref12, _ref13, _ref14, _ref15, _ref16;
|
|
994
992
|
var u, p, w, $, E;
|
|
995
993
|
return {
|
|
@@ -1006,7 +1004,7 @@ var h = vue.reactive({
|
|
|
1006
1004
|
})
|
|
1007
1005
|
};
|
|
1008
1006
|
}),
|
|
1009
|
-
i =
|
|
1007
|
+
i = computed(function () {
|
|
1010
1008
|
var u = r.value.find(function (p) {
|
|
1011
1009
|
return p.value === t.activeItem;
|
|
1012
1010
|
});
|
|
@@ -1019,7 +1017,7 @@ var h = vue.reactive({
|
|
|
1019
1017
|
})
|
|
1020
1018
|
};
|
|
1021
1019
|
}),
|
|
1022
|
-
P =
|
|
1020
|
+
P = computed(function () {
|
|
1023
1021
|
return _objectSpread({
|
|
1024
1022
|
projectStore: {
|
|
1025
1023
|
projectTree: t.projects,
|
|
@@ -1027,10 +1025,10 @@ var h = vue.reactive({
|
|
|
1027
1025
|
}
|
|
1028
1026
|
}, t.projectConfig);
|
|
1029
1027
|
}),
|
|
1030
|
-
T =
|
|
1028
|
+
T = computed(function () {
|
|
1031
1029
|
return t.userInfo;
|
|
1032
1030
|
}),
|
|
1033
|
-
S =
|
|
1031
|
+
S = computed(function () {
|
|
1034
1032
|
return t.searchConfig;
|
|
1035
1033
|
}),
|
|
1036
1034
|
s = /*#__PURE__*/function () {
|
|
@@ -1176,20 +1174,20 @@ var h = vue.reactive({
|
|
|
1176
1174
|
x = function x() {
|
|
1177
1175
|
v.nav.triggerEventListener("openAI");
|
|
1178
1176
|
};
|
|
1179
|
-
return
|
|
1177
|
+
return onBeforeMount(function () {
|
|
1180
1178
|
v.nav.triggerEventListener("onBeforeMount", null, {
|
|
1181
1179
|
autoRemove: true
|
|
1182
1180
|
});
|
|
1183
|
-
}),
|
|
1181
|
+
}), onMounted(function () {
|
|
1184
1182
|
v.nav.triggerEventListener("onMounted", null, {
|
|
1185
1183
|
autoRemove: true
|
|
1186
1184
|
});
|
|
1187
|
-
}),
|
|
1185
|
+
}), onUnmounted(function () {
|
|
1188
1186
|
v.nav.triggerEventListener("onUnmounted", null, {
|
|
1189
1187
|
autoRemove: true
|
|
1190
1188
|
});
|
|
1191
1189
|
}), function (u, p) {
|
|
1192
|
-
return
|
|
1190
|
+
return openBlock(), createElementBlock("das-ce-nav", {
|
|
1193
1191
|
theme: n.value,
|
|
1194
1192
|
modelValue: d.value,
|
|
1195
1193
|
logoUrl: l.value,
|
|
@@ -1214,7 +1212,7 @@ var h = vue.reactive({
|
|
|
1214
1212
|
}
|
|
1215
1213
|
}),
|
|
1216
1214
|
Je = ["theme", "modelValue", "data", "collapse", "fixedTopMenu", "subMenuAttrs"],
|
|
1217
|
-
rt = /* @__PURE__ */
|
|
1215
|
+
rt = /* @__PURE__ */defineComponent({
|
|
1218
1216
|
__name: "das-web-menu",
|
|
1219
1217
|
props: {
|
|
1220
1218
|
menuAttr: {}
|
|
@@ -1222,27 +1220,27 @@ var h = vue.reactive({
|
|
|
1222
1220
|
setup: function setup(e) {
|
|
1223
1221
|
var t = F.menu,
|
|
1224
1222
|
n = e,
|
|
1225
|
-
l =
|
|
1223
|
+
l = computed(function () {
|
|
1226
1224
|
return t.theme;
|
|
1227
1225
|
}),
|
|
1228
|
-
d =
|
|
1226
|
+
d = computed(function () {
|
|
1229
1227
|
return n.menuAttr || {};
|
|
1230
1228
|
}),
|
|
1231
|
-
r =
|
|
1229
|
+
r = computed(function () {
|
|
1232
1230
|
return t.items;
|
|
1233
1231
|
}),
|
|
1234
|
-
f =
|
|
1232
|
+
f = computed(function () {
|
|
1235
1233
|
return t.items.find(function (s) {
|
|
1236
1234
|
return s.fixed;
|
|
1237
1235
|
});
|
|
1238
1236
|
}),
|
|
1239
|
-
y =
|
|
1237
|
+
y = computed(function () {
|
|
1240
1238
|
return t.activeItem || "";
|
|
1241
1239
|
}),
|
|
1242
|
-
i =
|
|
1240
|
+
i = computed(function () {
|
|
1243
1241
|
return t.collapse || false;
|
|
1244
1242
|
}),
|
|
1245
|
-
P =
|
|
1243
|
+
P = computed(function () {
|
|
1246
1244
|
var _t$popupClassName;
|
|
1247
1245
|
return {
|
|
1248
1246
|
popupClassName: (_t$popupClassName = t.popupClassName) !== null && _t$popupClassName !== void 0 ? _t$popupClassName : ""
|
|
@@ -1254,7 +1252,7 @@ var h = vue.reactive({
|
|
|
1254
1252
|
return _regenerator().w(function (_context11) {
|
|
1255
1253
|
while (1) switch (_context11.n) {
|
|
1256
1254
|
case 0:
|
|
1257
|
-
a = s.detail[0], o =
|
|
1255
|
+
a = s.detail[0], o = flatTree(r.value).find(function (I) {
|
|
1258
1256
|
return a === I.id;
|
|
1259
1257
|
});
|
|
1260
1258
|
_context11.n = 1;
|
|
@@ -1279,7 +1277,7 @@ var h = vue.reactive({
|
|
|
1279
1277
|
v.menu.setCollapse(s.detail[0]), v.menu.triggerEventListener("toggleCollapse", s.detail[0]);
|
|
1280
1278
|
};
|
|
1281
1279
|
return function (s, a) {
|
|
1282
|
-
return r.value.length > 0 ? (
|
|
1280
|
+
return r.value.length > 0 ? (openBlock(), createElementBlock("das-ce-menu", mergeProps({
|
|
1283
1281
|
key: 0,
|
|
1284
1282
|
theme: l.value,
|
|
1285
1283
|
modelValue: y.value,
|
|
@@ -1290,12 +1288,12 @@ var h = vue.reactive({
|
|
|
1290
1288
|
}, d.value, {
|
|
1291
1289
|
onChange: T,
|
|
1292
1290
|
"on:toggleCollapse": S
|
|
1293
|
-
}), null, 16, Je)) :
|
|
1291
|
+
}), null, 16, Je)) : createCommentVNode("v-if", true);
|
|
1294
1292
|
};
|
|
1295
1293
|
}
|
|
1296
1294
|
}),
|
|
1297
1295
|
Xe = ["theme", "modelValue", "options"],
|
|
1298
|
-
ot = /* @__PURE__ */
|
|
1296
|
+
ot = /* @__PURE__ */defineComponent({
|
|
1299
1297
|
__name: "das-web-tabs",
|
|
1300
1298
|
props: {
|
|
1301
1299
|
tabsAttr: {}
|
|
@@ -1303,13 +1301,13 @@ var h = vue.reactive({
|
|
|
1303
1301
|
setup: function setup(e) {
|
|
1304
1302
|
var t = F.tab,
|
|
1305
1303
|
n = e,
|
|
1306
|
-
l =
|
|
1304
|
+
l = computed(function () {
|
|
1307
1305
|
return n.tabsAttr || {};
|
|
1308
1306
|
}),
|
|
1309
|
-
d =
|
|
1307
|
+
d = computed(function () {
|
|
1310
1308
|
return t.theme;
|
|
1311
1309
|
}),
|
|
1312
|
-
r =
|
|
1310
|
+
r = computed(function () {
|
|
1313
1311
|
return t.items.map(function (s) {
|
|
1314
1312
|
return _objectSpread(_objectSpread({}, s), {}, {
|
|
1315
1313
|
key: s.value,
|
|
@@ -1317,7 +1315,7 @@ var h = vue.reactive({
|
|
|
1317
1315
|
});
|
|
1318
1316
|
});
|
|
1319
1317
|
}),
|
|
1320
|
-
f =
|
|
1318
|
+
f = computed(function () {
|
|
1321
1319
|
return t.activeItem || "";
|
|
1322
1320
|
}),
|
|
1323
1321
|
y = /*#__PURE__*/function () {
|
|
@@ -1413,7 +1411,7 @@ var h = vue.reactive({
|
|
|
1413
1411
|
v.tab.triggerEventListener("onToggleFullScreen");
|
|
1414
1412
|
};
|
|
1415
1413
|
return function (s, a) {
|
|
1416
|
-
return r.value.length > 0 ? (
|
|
1414
|
+
return r.value.length > 0 ? (openBlock(), createElementBlock("das-ce-tabs", mergeProps({
|
|
1417
1415
|
key: 0,
|
|
1418
1416
|
theme: d.value,
|
|
1419
1417
|
modelValue: f.value,
|
|
@@ -1424,14 +1422,9 @@ var h = vue.reactive({
|
|
|
1424
1422
|
"on:menuClick": P,
|
|
1425
1423
|
"on:pageRefresh": T,
|
|
1426
1424
|
"on:toggleFullScreen": S
|
|
1427
|
-
}), null, 16, Xe)) :
|
|
1425
|
+
}), null, 16, Xe)) : createCommentVNode("v-if", true);
|
|
1428
1426
|
};
|
|
1429
1427
|
}
|
|
1430
1428
|
});
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
exports.DasWebMenu = rt;
|
|
1434
|
-
exports.DasWebNav = at;
|
|
1435
|
-
exports.DasWebTabs = ot;
|
|
1436
|
-
exports.layout = v;
|
|
1437
|
-
exports.layoutData = F;
|
|
1429
|
+
ref("@das-fed/upf-web");
|
|
1430
|
+
export { st as DasWebLayout, rt as DasWebMenu, at as DasWebNav, ot as DasWebTabs, v as layout, F as layoutData };
|