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