@das-fed/upf-web 6.4.0-dev.172 → 6.4.0-dev.173
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 +1199 -0
- package/package.json +14 -7
- package/packages/create-das-web-app/es5.js +121 -0
- package/packages/i18n/es5.js +889 -0
- package/packages/layout/es5.js +1437 -0
- package/packages/main-app-framework/es5.js +1193 -0
- package/packages/micro-frontend/es5.js +1581 -0
- package/packages/style/es5.js +8 -0
- package/packages/theme/es5.js +130 -0
|
@@ -0,0 +1,1437 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
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); }
|
|
4
|
+
var _excluded = ["mode"];
|
|
5
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
6
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
8
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
9
|
+
function _regeneratorValues(e) { if (null != e) { var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"], r = 0; if (t) return t.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) return { next: function next() { return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e }; } }; } throw new TypeError(_typeof(e) + " is not iterable"); }
|
|
10
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
11
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
12
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
19
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
20
|
+
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
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); }
|
|
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); }
|
|
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); }); }; }
|
|
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({
|
|
31
|
+
visible: false,
|
|
32
|
+
theme: "default",
|
|
33
|
+
logo: "",
|
|
34
|
+
items: [],
|
|
35
|
+
projects: [],
|
|
36
|
+
userInfo: {},
|
|
37
|
+
config: {},
|
|
38
|
+
searchConfig: {},
|
|
39
|
+
// activeItem: '',
|
|
40
|
+
// activeProject: {},
|
|
41
|
+
eventListeners: {}
|
|
42
|
+
}),
|
|
43
|
+
ve = {
|
|
44
|
+
show: function show() {
|
|
45
|
+
h.visible = true;
|
|
46
|
+
},
|
|
47
|
+
hide: function hide() {
|
|
48
|
+
h.visible = false;
|
|
49
|
+
},
|
|
50
|
+
setLogo: function setLogo(e) {
|
|
51
|
+
h.logo = e;
|
|
52
|
+
},
|
|
53
|
+
setTheme: function setTheme(e) {
|
|
54
|
+
h.theme = e;
|
|
55
|
+
},
|
|
56
|
+
setItems: function setItems(e) {
|
|
57
|
+
h.visible || (h.visible = true), h.items = e;
|
|
58
|
+
},
|
|
59
|
+
getItems: function getItems() {
|
|
60
|
+
return h.items;
|
|
61
|
+
},
|
|
62
|
+
removeItem: function removeItem(e) {
|
|
63
|
+
var t = h.items.filter(function (n) {
|
|
64
|
+
return n.value !== e;
|
|
65
|
+
});
|
|
66
|
+
h.items = t;
|
|
67
|
+
},
|
|
68
|
+
appendItem: function appendItem(e) {
|
|
69
|
+
h.visible || (h.visible = true), !h.items.find(function (n) {
|
|
70
|
+
return n.value == e.value;
|
|
71
|
+
}) && h.items.push(e);
|
|
72
|
+
},
|
|
73
|
+
setActiveItem: function setActiveItem(e) {
|
|
74
|
+
h.activeItem = e;
|
|
75
|
+
},
|
|
76
|
+
setConfig: function setConfig(e) {
|
|
77
|
+
h.config = e;
|
|
78
|
+
},
|
|
79
|
+
setProjects: function setProjects(e) {
|
|
80
|
+
h.projects = e;
|
|
81
|
+
},
|
|
82
|
+
setProjectConfig: function setProjectConfig(e) {
|
|
83
|
+
h.projectConfig = e;
|
|
84
|
+
},
|
|
85
|
+
setActiveProject: function setActiveProject(e) {
|
|
86
|
+
h.activeProject = e;
|
|
87
|
+
},
|
|
88
|
+
setUserInfo: function setUserInfo(e) {
|
|
89
|
+
h.userInfo = e;
|
|
90
|
+
},
|
|
91
|
+
setSearchConfig: function setSearchConfig(e) {
|
|
92
|
+
h.searchConfig = e;
|
|
93
|
+
},
|
|
94
|
+
triggerEventListener: function triggerEventListener(e, t, n) {
|
|
95
|
+
var f;
|
|
96
|
+
var l = h.eventListeners,
|
|
97
|
+
_ref = n || {},
|
|
98
|
+
_ref$autoRemove = _ref.autoRemove,
|
|
99
|
+
d = _ref$autoRemove === void 0 ? false : _ref$autoRemove,
|
|
100
|
+
r = [];
|
|
101
|
+
var _loop = function _loop() {
|
|
102
|
+
var i = l[y];
|
|
103
|
+
i.type === e && r.push((f = i == null ? undefined : i.handler) == null ? undefined : f.call(i, t).then(function () {
|
|
104
|
+
d && i.remove();
|
|
105
|
+
}));
|
|
106
|
+
};
|
|
107
|
+
for (var y in l) {
|
|
108
|
+
_loop();
|
|
109
|
+
}
|
|
110
|
+
return Promise.all(r).then(function () {
|
|
111
|
+
return true;
|
|
112
|
+
})["catch"](function () {
|
|
113
|
+
return false;
|
|
114
|
+
});
|
|
115
|
+
},
|
|
116
|
+
addEventListener: function addEventListener(e, t) {
|
|
117
|
+
var n = (/* @__PURE__ */new Date()).getTime() + Math.random().toString(36).slice(-8),
|
|
118
|
+
l = function l() {
|
|
119
|
+
h.eventListeners[n] && delete h.eventListeners[n];
|
|
120
|
+
};
|
|
121
|
+
return h.eventListeners[n] = {
|
|
122
|
+
type: e,
|
|
123
|
+
handler: function () {
|
|
124
|
+
var _handler = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(d) {
|
|
125
|
+
var _t;
|
|
126
|
+
return _regenerator().w(function (_context) {
|
|
127
|
+
while (1) switch (_context.p = _context.n) {
|
|
128
|
+
case 0:
|
|
129
|
+
_context.p = 0;
|
|
130
|
+
_context.n = 1;
|
|
131
|
+
return t(d);
|
|
132
|
+
case 1:
|
|
133
|
+
_context.n = 3;
|
|
134
|
+
break;
|
|
135
|
+
case 2:
|
|
136
|
+
_context.p = 2;
|
|
137
|
+
_t = _context.v;
|
|
138
|
+
throw _t;
|
|
139
|
+
case 3:
|
|
140
|
+
return _context.a(2);
|
|
141
|
+
}
|
|
142
|
+
}, _callee, null, [[0, 2]]);
|
|
143
|
+
}));
|
|
144
|
+
function handler(_x) {
|
|
145
|
+
return _handler.apply(this, arguments);
|
|
146
|
+
}
|
|
147
|
+
return handler;
|
|
148
|
+
}(),
|
|
149
|
+
remove: l
|
|
150
|
+
}, {
|
|
151
|
+
remove: l
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
R = vue.reactive({
|
|
156
|
+
theme: "default",
|
|
157
|
+
items: [],
|
|
158
|
+
collapse: false,
|
|
159
|
+
eventListeners: {}
|
|
160
|
+
}),
|
|
161
|
+
de = {
|
|
162
|
+
setItems: function setItems(e) {
|
|
163
|
+
R.items = e;
|
|
164
|
+
},
|
|
165
|
+
getItems: function getItems() {
|
|
166
|
+
return R.items;
|
|
167
|
+
},
|
|
168
|
+
setTheme: function setTheme(e) {
|
|
169
|
+
R.theme = e;
|
|
170
|
+
},
|
|
171
|
+
setActiveItem: function setActiveItem(e) {
|
|
172
|
+
R.activeItem = e;
|
|
173
|
+
},
|
|
174
|
+
setCollapse: function setCollapse(e) {
|
|
175
|
+
R.collapse = e;
|
|
176
|
+
},
|
|
177
|
+
setPopupClassName: function setPopupClassName(e) {
|
|
178
|
+
R.popupClassName = e;
|
|
179
|
+
},
|
|
180
|
+
triggerEventListener: function triggerEventListener(e, t, n) {
|
|
181
|
+
var f;
|
|
182
|
+
var l = R.eventListeners,
|
|
183
|
+
_ref2 = n || {},
|
|
184
|
+
_ref2$autoRemove = _ref2.autoRemove,
|
|
185
|
+
d = _ref2$autoRemove === void 0 ? false : _ref2$autoRemove,
|
|
186
|
+
r = [];
|
|
187
|
+
var _loop2 = function _loop2() {
|
|
188
|
+
var i = l[y];
|
|
189
|
+
i.type === e && r.push((f = i == null ? undefined : i.handler) == null ? undefined : f.call(i, t).then(function () {
|
|
190
|
+
d && i.remove();
|
|
191
|
+
}));
|
|
192
|
+
};
|
|
193
|
+
for (var y in l) {
|
|
194
|
+
_loop2();
|
|
195
|
+
}
|
|
196
|
+
return Promise.all(r).then(function () {
|
|
197
|
+
return true;
|
|
198
|
+
})["catch"](function () {
|
|
199
|
+
return false;
|
|
200
|
+
});
|
|
201
|
+
},
|
|
202
|
+
addEventListener: function addEventListener(e, t) {
|
|
203
|
+
var n = (/* @__PURE__ */new Date()).getTime() + Math.random().toString(36).slice(-8),
|
|
204
|
+
l = function l() {
|
|
205
|
+
R.eventListeners[n] && delete R.eventListeners[n];
|
|
206
|
+
};
|
|
207
|
+
return R.eventListeners[n] = {
|
|
208
|
+
type: e,
|
|
209
|
+
handler: function () {
|
|
210
|
+
var _handler2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(d) {
|
|
211
|
+
var _t2;
|
|
212
|
+
return _regenerator().w(function (_context2) {
|
|
213
|
+
while (1) switch (_context2.p = _context2.n) {
|
|
214
|
+
case 0:
|
|
215
|
+
_context2.p = 0;
|
|
216
|
+
_context2.n = 1;
|
|
217
|
+
return t(d);
|
|
218
|
+
case 1:
|
|
219
|
+
_context2.n = 3;
|
|
220
|
+
break;
|
|
221
|
+
case 2:
|
|
222
|
+
_context2.p = 2;
|
|
223
|
+
_t2 = _context2.v;
|
|
224
|
+
throw _t2;
|
|
225
|
+
case 3:
|
|
226
|
+
return _context2.a(2);
|
|
227
|
+
}
|
|
228
|
+
}, _callee2, null, [[0, 2]]);
|
|
229
|
+
}));
|
|
230
|
+
function handler(_x2) {
|
|
231
|
+
return _handler2.apply(this, arguments);
|
|
232
|
+
}
|
|
233
|
+
return handler;
|
|
234
|
+
}(),
|
|
235
|
+
remove: l
|
|
236
|
+
}, {
|
|
237
|
+
remove: l
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
k = vue.reactive({
|
|
242
|
+
theme: "default",
|
|
243
|
+
items: [],
|
|
244
|
+
eventListeners: {}
|
|
245
|
+
}),
|
|
246
|
+
me = {
|
|
247
|
+
setItems: function setItems(e) {
|
|
248
|
+
k.items = e;
|
|
249
|
+
},
|
|
250
|
+
getItems: function getItems() {
|
|
251
|
+
return k.items;
|
|
252
|
+
},
|
|
253
|
+
setTheme: function setTheme(e) {
|
|
254
|
+
k.theme = e;
|
|
255
|
+
},
|
|
256
|
+
removeItem: function removeItem(e) {
|
|
257
|
+
var t = k.items.filter(function (n) {
|
|
258
|
+
return n.value !== e;
|
|
259
|
+
});
|
|
260
|
+
k.items = t;
|
|
261
|
+
},
|
|
262
|
+
appendItem: function appendItem(e) {
|
|
263
|
+
var t = k.items.findIndex(function (n) {
|
|
264
|
+
return n.value == e.value;
|
|
265
|
+
});
|
|
266
|
+
t !== -1 ? k.items.splice(t, 1, e) : k.items.push(e);
|
|
267
|
+
},
|
|
268
|
+
setActiveItem: function setActiveItem(e) {
|
|
269
|
+
k.activeItem = e;
|
|
270
|
+
},
|
|
271
|
+
triggerEventListener: function triggerEventListener(e, t, n) {
|
|
272
|
+
var f;
|
|
273
|
+
var l = k.eventListeners,
|
|
274
|
+
_ref3 = n || {},
|
|
275
|
+
_ref3$autoRemove = _ref3.autoRemove,
|
|
276
|
+
d = _ref3$autoRemove === void 0 ? false : _ref3$autoRemove,
|
|
277
|
+
r = [];
|
|
278
|
+
var _loop3 = function _loop3() {
|
|
279
|
+
var i = l[y];
|
|
280
|
+
i.type === e && r.push((f = i == null ? undefined : i.handler) == null ? undefined : f.call(i, t).then(function () {
|
|
281
|
+
d && i.remove();
|
|
282
|
+
}));
|
|
283
|
+
};
|
|
284
|
+
for (var y in l) {
|
|
285
|
+
_loop3();
|
|
286
|
+
}
|
|
287
|
+
return Promise.all(r).then(function () {
|
|
288
|
+
return true;
|
|
289
|
+
})["catch"](function () {
|
|
290
|
+
return false;
|
|
291
|
+
});
|
|
292
|
+
},
|
|
293
|
+
addEventListener: function addEventListener(e, t) {
|
|
294
|
+
var n = (/* @__PURE__ */new Date()).getTime() + Math.random().toString(36).slice(-8),
|
|
295
|
+
l = function l() {
|
|
296
|
+
k.eventListeners[n] && delete k.eventListeners[n];
|
|
297
|
+
};
|
|
298
|
+
return k.eventListeners[n] = {
|
|
299
|
+
type: e,
|
|
300
|
+
handler: function () {
|
|
301
|
+
var _handler3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(d) {
|
|
302
|
+
var _t3;
|
|
303
|
+
return _regenerator().w(function (_context3) {
|
|
304
|
+
while (1) switch (_context3.p = _context3.n) {
|
|
305
|
+
case 0:
|
|
306
|
+
_context3.p = 0;
|
|
307
|
+
_context3.n = 1;
|
|
308
|
+
return t(d);
|
|
309
|
+
case 1:
|
|
310
|
+
_context3.n = 3;
|
|
311
|
+
break;
|
|
312
|
+
case 2:
|
|
313
|
+
_context3.p = 2;
|
|
314
|
+
_t3 = _context3.v;
|
|
315
|
+
throw _t3;
|
|
316
|
+
case 3:
|
|
317
|
+
return _context3.a(2);
|
|
318
|
+
}
|
|
319
|
+
}, _callee3, null, [[0, 2]]);
|
|
320
|
+
}));
|
|
321
|
+
function handler(_x3) {
|
|
322
|
+
return _handler3.apply(this, arguments);
|
|
323
|
+
}
|
|
324
|
+
return handler;
|
|
325
|
+
}(),
|
|
326
|
+
remove: l
|
|
327
|
+
}, {
|
|
328
|
+
remove: l
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
K = vue.reactive({
|
|
333
|
+
eventListeners: {}
|
|
334
|
+
}),
|
|
335
|
+
Re = {
|
|
336
|
+
triggerEventListener: function triggerEventListener(e, t, n) {
|
|
337
|
+
var f;
|
|
338
|
+
var l = K.eventListeners,
|
|
339
|
+
_ref4 = n || {},
|
|
340
|
+
_ref4$autoRemove = _ref4.autoRemove,
|
|
341
|
+
d = _ref4$autoRemove === void 0 ? false : _ref4$autoRemove,
|
|
342
|
+
r = [];
|
|
343
|
+
var _loop4 = function _loop4() {
|
|
344
|
+
var i = l[y];
|
|
345
|
+
i.type === e && r.push((f = i == null ? undefined : i.handler) == null ? undefined : f.call(i, t).then(function () {
|
|
346
|
+
d && i.remove();
|
|
347
|
+
}));
|
|
348
|
+
};
|
|
349
|
+
for (var y in l) {
|
|
350
|
+
_loop4();
|
|
351
|
+
}
|
|
352
|
+
return Promise.all(r).then(function () {
|
|
353
|
+
return true;
|
|
354
|
+
})["catch"](function () {
|
|
355
|
+
return false;
|
|
356
|
+
});
|
|
357
|
+
},
|
|
358
|
+
addEventListener: function addEventListener(e, t) {
|
|
359
|
+
var n = (/* @__PURE__ */new Date()).getTime() + Math.random().toString(36).slice(-8),
|
|
360
|
+
l = function l() {
|
|
361
|
+
K.eventListeners[n] && delete K.eventListeners[n];
|
|
362
|
+
};
|
|
363
|
+
return K.eventListeners[n] = {
|
|
364
|
+
type: e,
|
|
365
|
+
handler: function () {
|
|
366
|
+
var _handler4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(d) {
|
|
367
|
+
var _t4;
|
|
368
|
+
return _regenerator().w(function (_context4) {
|
|
369
|
+
while (1) switch (_context4.p = _context4.n) {
|
|
370
|
+
case 0:
|
|
371
|
+
_context4.p = 0;
|
|
372
|
+
_context4.n = 1;
|
|
373
|
+
return t(d);
|
|
374
|
+
case 1:
|
|
375
|
+
_context4.n = 3;
|
|
376
|
+
break;
|
|
377
|
+
case 2:
|
|
378
|
+
_context4.p = 2;
|
|
379
|
+
_t4 = _context4.v;
|
|
380
|
+
throw _t4;
|
|
381
|
+
case 3:
|
|
382
|
+
return _context4.a(2);
|
|
383
|
+
}
|
|
384
|
+
}, _callee4, null, [[0, 2]]);
|
|
385
|
+
}));
|
|
386
|
+
function handler(_x4) {
|
|
387
|
+
return _handler4.apply(this, arguments);
|
|
388
|
+
}
|
|
389
|
+
return handler;
|
|
390
|
+
}(),
|
|
391
|
+
remove: l
|
|
392
|
+
}, {
|
|
393
|
+
remove: l
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
se = vue.reactive({
|
|
398
|
+
visible: false,
|
|
399
|
+
style: {}
|
|
400
|
+
}),
|
|
401
|
+
Ve = {
|
|
402
|
+
set: function set(e, t) {
|
|
403
|
+
se.visible = e, t || (t = {}), t.transition || (t.transition = "all 0.3s"), t && (se.style = t);
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
F = {
|
|
407
|
+
nav: h,
|
|
408
|
+
menu: R,
|
|
409
|
+
tab: k,
|
|
410
|
+
overlay: se,
|
|
411
|
+
iframeView: K,
|
|
412
|
+
visible: vue.ref(true)
|
|
413
|
+
},
|
|
414
|
+
v = {
|
|
415
|
+
nav: ve,
|
|
416
|
+
menu: de,
|
|
417
|
+
tab: me,
|
|
418
|
+
overlay: Ve,
|
|
419
|
+
iframeView: Re,
|
|
420
|
+
setVisible: function setVisible(e) {
|
|
421
|
+
return F.visible.value = e;
|
|
422
|
+
},
|
|
423
|
+
setTheme: function setTheme(e) {
|
|
424
|
+
ve.setTheme(e), de.setTheme(e), me.setTheme(e);
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
Pe = ["name"],
|
|
428
|
+
Se = ["name"],
|
|
429
|
+
De = /* @__PURE__ */vue.defineComponent({
|
|
430
|
+
__name: "das-iframe-router-view",
|
|
431
|
+
props: {
|
|
432
|
+
needTransition: {
|
|
433
|
+
type: Boolean
|
|
434
|
+
},
|
|
435
|
+
transitionConfig: {},
|
|
436
|
+
exclude: {
|
|
437
|
+
"default": function _default() {
|
|
438
|
+
return [];
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
setup: function setup(e) {
|
|
443
|
+
var t = e,
|
|
444
|
+
n = vue.computed(function () {
|
|
445
|
+
var _mode$enterActiveCl = _objectSpread({
|
|
446
|
+
mode: "out-in",
|
|
447
|
+
"enter-active-class": "animate__animated animate__fadeInLeft"
|
|
448
|
+
}, t.transitionConfig || {}),
|
|
449
|
+
_mode$enterActiveCl$m = _mode$enterActiveCl.mode,
|
|
450
|
+
s = _mode$enterActiveCl$m === void 0 ? "" : _mode$enterActiveCl$m,
|
|
451
|
+
a = _objectWithoutProperties(_mode$enterActiveCl, _excluded);
|
|
452
|
+
return a;
|
|
453
|
+
}),
|
|
454
|
+
l = vueRouter.useRouter(),
|
|
455
|
+
d = vueRouter.useRoute(),
|
|
456
|
+
r = vue.ref([]),
|
|
457
|
+
f = vue.computed(function () {
|
|
458
|
+
return r.value.filter(function (s) {
|
|
459
|
+
var a;
|
|
460
|
+
return (a = s.meta) == null ? undefined : a.isOpen;
|
|
461
|
+
});
|
|
462
|
+
}),
|
|
463
|
+
y = function y(s) {
|
|
464
|
+
var a = s.lastIndexOf("-");
|
|
465
|
+
var o = a !== -1 ? s.substring(a + 1) : "";
|
|
466
|
+
o === "0" ? o = "1" : o = "0", f.value.forEach(function (m) {
|
|
467
|
+
m.meta.key === s && (m.meta.key = "".concat(m.path, "-").concat(o));
|
|
468
|
+
});
|
|
469
|
+
};
|
|
470
|
+
vue.watch(function () {
|
|
471
|
+
return t.exclude;
|
|
472
|
+
}, function (s) {
|
|
473
|
+
if (!s || !s.length) return;
|
|
474
|
+
var a = f.value.find(function (o) {
|
|
475
|
+
return s.includes(o.path);
|
|
476
|
+
});
|
|
477
|
+
a && y(a.meta.key);
|
|
478
|
+
}, {
|
|
479
|
+
deep: true
|
|
480
|
+
});
|
|
481
|
+
var i = /*#__PURE__*/function () {
|
|
482
|
+
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(s) {
|
|
483
|
+
var a, o;
|
|
484
|
+
return _regenerator().w(function (_context5) {
|
|
485
|
+
while (1) switch (_context5.n) {
|
|
486
|
+
case 0:
|
|
487
|
+
a = s.component;
|
|
488
|
+
o = null;
|
|
489
|
+
if (!(typeof a == "function")) {
|
|
490
|
+
_context5.n = 2;
|
|
491
|
+
break;
|
|
492
|
+
}
|
|
493
|
+
_context5.n = 1;
|
|
494
|
+
return a();
|
|
495
|
+
case 1:
|
|
496
|
+
o = _context5.v["default"];
|
|
497
|
+
_context5.n = 3;
|
|
498
|
+
break;
|
|
499
|
+
case 2:
|
|
500
|
+
o = a;
|
|
501
|
+
case 3:
|
|
502
|
+
return _context5.a(2, o);
|
|
503
|
+
}
|
|
504
|
+
}, _callee5);
|
|
505
|
+
}));
|
|
506
|
+
return function i(_x5) {
|
|
507
|
+
return _ref5.apply(this, arguments);
|
|
508
|
+
};
|
|
509
|
+
}(),
|
|
510
|
+
P = /*#__PURE__*/function () {
|
|
511
|
+
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6() {
|
|
512
|
+
var a, s, _iterator, _step, _loop5, _t5;
|
|
513
|
+
return _regenerator().w(function (_context7) {
|
|
514
|
+
while (1) switch (_context7.p = _context7.n) {
|
|
515
|
+
case 0:
|
|
516
|
+
s = l.options.routes;
|
|
517
|
+
_iterator = _createForOfIteratorHelper(s);
|
|
518
|
+
_context7.p = 1;
|
|
519
|
+
_loop5 = /*#__PURE__*/_regenerator().m(function _loop5() {
|
|
520
|
+
var o, m;
|
|
521
|
+
return _regenerator().w(function (_context6) {
|
|
522
|
+
while (1) switch (_context6.n) {
|
|
523
|
+
case 0:
|
|
524
|
+
o = _step.value;
|
|
525
|
+
if (!((a = o == null ? undefined : o.meta) != null && a.isIframe && !r.value.find(function (m) {
|
|
526
|
+
return m.path === o.path;
|
|
527
|
+
}))) {
|
|
528
|
+
_context6.n = 2;
|
|
529
|
+
break;
|
|
530
|
+
}
|
|
531
|
+
_context6.n = 1;
|
|
532
|
+
return i(o);
|
|
533
|
+
case 1:
|
|
534
|
+
m = _context6.v;
|
|
535
|
+
r.value.push(_objectSpread(_objectSpread({}, o), {}, {
|
|
536
|
+
meta: _objectSpread(_objectSpread({}, o.meta), {}, {
|
|
537
|
+
key: "".concat(o.path, "-0"),
|
|
538
|
+
componentInstance: m,
|
|
539
|
+
isOpen: false,
|
|
540
|
+
isShow: false
|
|
541
|
+
})
|
|
542
|
+
}));
|
|
543
|
+
case 2:
|
|
544
|
+
return _context6.a(2);
|
|
545
|
+
}
|
|
546
|
+
}, _loop5);
|
|
547
|
+
});
|
|
548
|
+
_iterator.s();
|
|
549
|
+
case 2:
|
|
550
|
+
if ((_step = _iterator.n()).done) {
|
|
551
|
+
_context7.n = 4;
|
|
552
|
+
break;
|
|
553
|
+
}
|
|
554
|
+
return _context7.d(_regeneratorValues(_loop5()), 3);
|
|
555
|
+
case 3:
|
|
556
|
+
_context7.n = 2;
|
|
557
|
+
break;
|
|
558
|
+
case 4:
|
|
559
|
+
_context7.n = 6;
|
|
560
|
+
break;
|
|
561
|
+
case 5:
|
|
562
|
+
_context7.p = 5;
|
|
563
|
+
_t5 = _context7.v;
|
|
564
|
+
_iterator.e(_t5);
|
|
565
|
+
case 6:
|
|
566
|
+
_context7.p = 6;
|
|
567
|
+
_iterator.f();
|
|
568
|
+
return _context7.f(6);
|
|
569
|
+
case 7:
|
|
570
|
+
T();
|
|
571
|
+
case 8:
|
|
572
|
+
return _context7.a(2);
|
|
573
|
+
}
|
|
574
|
+
}, _callee6, null, [[1, 5, 6, 7]]);
|
|
575
|
+
}));
|
|
576
|
+
return function P() {
|
|
577
|
+
return _ref6.apply(this, arguments);
|
|
578
|
+
};
|
|
579
|
+
}(),
|
|
580
|
+
T = /*#__PURE__*/function () {
|
|
581
|
+
var _ref7 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7() {
|
|
582
|
+
var o, m, s, a, _t6, _t7;
|
|
583
|
+
return _regenerator().w(function (_context8) {
|
|
584
|
+
while (1) switch (_context8.n) {
|
|
585
|
+
case 0:
|
|
586
|
+
if (!(!r.value || !r.value.length)) {
|
|
587
|
+
_context8.n = 1;
|
|
588
|
+
break;
|
|
589
|
+
}
|
|
590
|
+
return _context8.a(2);
|
|
591
|
+
case 1:
|
|
592
|
+
s = r.value.find(function (I) {
|
|
593
|
+
return I.meta.isShow;
|
|
594
|
+
});
|
|
595
|
+
_t6 = s;
|
|
596
|
+
if (!_t6) {
|
|
597
|
+
_context8.n = 3;
|
|
598
|
+
break;
|
|
599
|
+
}
|
|
600
|
+
s.meta.isShow = false;
|
|
601
|
+
_context8.n = 2;
|
|
602
|
+
return vue.nextTick();
|
|
603
|
+
case 2:
|
|
604
|
+
v.iframeView.triggerEventListener("onDeactivated", {
|
|
605
|
+
route: s
|
|
606
|
+
});
|
|
607
|
+
case 3:
|
|
608
|
+
a = r.value.find(function (I) {
|
|
609
|
+
return I.path === d.path;
|
|
610
|
+
});
|
|
611
|
+
_t7 = a;
|
|
612
|
+
if (!_t7) {
|
|
613
|
+
_context8.n = 5;
|
|
614
|
+
break;
|
|
615
|
+
}
|
|
616
|
+
(o = a.meta) != null && o.isOpen || (a.meta.isOpen = true);
|
|
617
|
+
(m = a.meta) != null && m.isShow || (a.meta.isShow = true);
|
|
618
|
+
_context8.n = 4;
|
|
619
|
+
return vue.nextTick();
|
|
620
|
+
case 4:
|
|
621
|
+
v.iframeView.triggerEventListener("onActivated", {
|
|
622
|
+
route: a
|
|
623
|
+
});
|
|
624
|
+
case 5:
|
|
625
|
+
return _context8.a(2);
|
|
626
|
+
}
|
|
627
|
+
}, _callee7);
|
|
628
|
+
}));
|
|
629
|
+
return function T() {
|
|
630
|
+
return _ref7.apply(this, arguments);
|
|
631
|
+
};
|
|
632
|
+
}();
|
|
633
|
+
var S = 0;
|
|
634
|
+
return vue.watch(function () {
|
|
635
|
+
return l.currentRoute.value;
|
|
636
|
+
}, function () {
|
|
637
|
+
var s = l.options.routes.length;
|
|
638
|
+
s !== S ? (P(), S = s) : T();
|
|
639
|
+
}, {
|
|
640
|
+
immediate: true
|
|
641
|
+
}), v.iframeView.addEventListener("onRefreshCurrentPage", function () {
|
|
642
|
+
f.value.forEach(function (s) {
|
|
643
|
+
var a;
|
|
644
|
+
(a = s.meta) != null && a.isShow && (s.meta.key.includes("0") ? s.meta.key = s.meta.key.replaceAll("0", "1") : s.meta.key = s.meta.key.replaceAll("1", "0"));
|
|
645
|
+
});
|
|
646
|
+
}), v.iframeView.addEventListener("onUnloadPage", function (s) {
|
|
647
|
+
r.value.forEach(function (a) {
|
|
648
|
+
a.path === s && (a.meta.isOpen = false);
|
|
649
|
+
});
|
|
650
|
+
}), function (s, a) {
|
|
651
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [s.needTransition ? (vue.openBlock(), vue.createBlock(vue.TransitionGroup, vue.normalizeProps(vue.mergeProps({
|
|
652
|
+
key: 0
|
|
653
|
+
}, n.value)), {
|
|
654
|
+
"default": vue.withCtx(function () {
|
|
655
|
+
return [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(f.value, function (_ref8) {
|
|
656
|
+
var o = _ref8.path,
|
|
657
|
+
m = _ref8.meta;
|
|
658
|
+
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
659
|
+
"class": "das-iframe-router-view",
|
|
660
|
+
key: m.key,
|
|
661
|
+
name: o
|
|
662
|
+
}, [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(m.componentInstance), {
|
|
663
|
+
key: m.key
|
|
664
|
+
}))], 8, Pe)), [[vue.vShow, m.componentInstance && o === vue.unref(d).path]]);
|
|
665
|
+
}), 128
|
|
666
|
+
/* KEYED_FRAGMENT */))];
|
|
667
|
+
}),
|
|
668
|
+
_: 1
|
|
669
|
+
/* STABLE */
|
|
670
|
+
}, 16
|
|
671
|
+
/* FULL_PROPS */)) : vue.createCommentVNode("v-if", true), s.needTransition ? vue.createCommentVNode("v-if", true) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
|
|
672
|
+
key: 1
|
|
673
|
+
}, vue.renderList(f.value, function (_ref9) {
|
|
674
|
+
var o = _ref9.path,
|
|
675
|
+
m = _ref9.meta;
|
|
676
|
+
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
677
|
+
"class": "das-iframe-router-view",
|
|
678
|
+
key: m.key,
|
|
679
|
+
name: o
|
|
680
|
+
}, [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(m.componentInstance), {
|
|
681
|
+
key: m.key
|
|
682
|
+
}))], 8, Se)), [[vue.vShow, m.componentInstance && o === vue.unref(d).path]]);
|
|
683
|
+
}), 128
|
|
684
|
+
/* KEYED_FRAGMENT */))], 64
|
|
685
|
+
/* STABLE_FRAGMENT */);
|
|
686
|
+
};
|
|
687
|
+
}
|
|
688
|
+
}),
|
|
689
|
+
he = function he(e, t) {
|
|
690
|
+
var n = e.__vccOpts || e;
|
|
691
|
+
var _iterator2 = _createForOfIteratorHelper(t),
|
|
692
|
+
_step2;
|
|
693
|
+
try {
|
|
694
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
695
|
+
var _step2$value = _slicedToArray(_step2.value, 2),
|
|
696
|
+
l = _step2$value[0],
|
|
697
|
+
d = _step2$value[1];
|
|
698
|
+
n[l] = d;
|
|
699
|
+
}
|
|
700
|
+
} catch (err) {
|
|
701
|
+
_iterator2.e(err);
|
|
702
|
+
} finally {
|
|
703
|
+
_iterator2.f();
|
|
704
|
+
}
|
|
705
|
+
return n;
|
|
706
|
+
},
|
|
707
|
+
Me = /* @__PURE__ */he(De, [["__scopeId", "data-v-6dd310c9"]]),
|
|
708
|
+
je = {
|
|
709
|
+
"class": "das-web-app-container"
|
|
710
|
+
},
|
|
711
|
+
xe = {
|
|
712
|
+
key: 0,
|
|
713
|
+
"class": "das-web-app-header"
|
|
714
|
+
},
|
|
715
|
+
$e = {
|
|
716
|
+
"class": "das-web-app-main"
|
|
717
|
+
},
|
|
718
|
+
He = {
|
|
719
|
+
key: 0,
|
|
720
|
+
"class": "aside"
|
|
721
|
+
},
|
|
722
|
+
Be = {
|
|
723
|
+
"class": "das-web-app-main-container"
|
|
724
|
+
},
|
|
725
|
+
Fe = {
|
|
726
|
+
key: 0,
|
|
727
|
+
"class": "tab"
|
|
728
|
+
},
|
|
729
|
+
Ne = {
|
|
730
|
+
"class": "das-web-app-main-content"
|
|
731
|
+
},
|
|
732
|
+
Oe = {
|
|
733
|
+
"class": "banner"
|
|
734
|
+
},
|
|
735
|
+
Ue = {
|
|
736
|
+
"class": "das-web-app-main-router-view"
|
|
737
|
+
},
|
|
738
|
+
We = {
|
|
739
|
+
key: 0,
|
|
740
|
+
style: {
|
|
741
|
+
width: "100%",
|
|
742
|
+
height: "100%"
|
|
743
|
+
}
|
|
744
|
+
},
|
|
745
|
+
Ke = {
|
|
746
|
+
key: 1,
|
|
747
|
+
style: {
|
|
748
|
+
width: "100%",
|
|
749
|
+
height: "100%"
|
|
750
|
+
}
|
|
751
|
+
},
|
|
752
|
+
ze = {
|
|
753
|
+
style: {
|
|
754
|
+
width: "100%",
|
|
755
|
+
height: "100%"
|
|
756
|
+
}
|
|
757
|
+
},
|
|
758
|
+
Qe = {
|
|
759
|
+
"class": "micro-app",
|
|
760
|
+
style: {
|
|
761
|
+
height: "100%",
|
|
762
|
+
width: "100%"
|
|
763
|
+
}
|
|
764
|
+
},
|
|
765
|
+
qe = /* @__PURE__ */vue.defineComponent({
|
|
766
|
+
__name: "das-web-layout",
|
|
767
|
+
props: {
|
|
768
|
+
needTransition: {
|
|
769
|
+
type: Boolean,
|
|
770
|
+
"default": true
|
|
771
|
+
},
|
|
772
|
+
transitionConfig: {},
|
|
773
|
+
showLayout: {
|
|
774
|
+
type: Boolean,
|
|
775
|
+
"default": true
|
|
776
|
+
},
|
|
777
|
+
showAside: {
|
|
778
|
+
type: Boolean,
|
|
779
|
+
"default": true
|
|
780
|
+
},
|
|
781
|
+
showTabs: {
|
|
782
|
+
type: Boolean,
|
|
783
|
+
"default": true
|
|
784
|
+
},
|
|
785
|
+
routerViewVisible: {
|
|
786
|
+
type: Boolean,
|
|
787
|
+
"default": true
|
|
788
|
+
},
|
|
789
|
+
excludeRoutes: {},
|
|
790
|
+
routeKeepAliveVisible: {
|
|
791
|
+
type: Boolean,
|
|
792
|
+
"default": true
|
|
793
|
+
},
|
|
794
|
+
pageKey: {
|
|
795
|
+
"default": "0"
|
|
796
|
+
}
|
|
797
|
+
},
|
|
798
|
+
setup: function setup(e) {
|
|
799
|
+
var t = e;
|
|
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 () {
|
|
806
|
+
return l.value && t.showLayout;
|
|
807
|
+
}),
|
|
808
|
+
y = vue.computed(function () {
|
|
809
|
+
return d.value && t.showLayout && t.showAside;
|
|
810
|
+
}),
|
|
811
|
+
i = vue.computed(function () {
|
|
812
|
+
return l.value && t.showLayout && t.showTabs;
|
|
813
|
+
}),
|
|
814
|
+
P = vue.computed(function () {
|
|
815
|
+
var _t$routerViewVisible;
|
|
816
|
+
return (_t$routerViewVisible = t.routerViewVisible) !== null && _t$routerViewVisible !== void 0 ? _t$routerViewVisible : true;
|
|
817
|
+
}),
|
|
818
|
+
T = vue.computed(function () {
|
|
819
|
+
var _F$overlay$visible;
|
|
820
|
+
return (_F$overlay$visible = F.overlay.visible) !== null && _F$overlay$visible !== void 0 ? _F$overlay$visible : false;
|
|
821
|
+
}),
|
|
822
|
+
S = vue.computed(function () {
|
|
823
|
+
return {
|
|
824
|
+
"das-web-app-overlay-show": T.value === true,
|
|
825
|
+
"das-web-app-overlay-hide": T.value === false,
|
|
826
|
+
"das-web-app-overlay-destroy": T.value === "destroy"
|
|
827
|
+
};
|
|
828
|
+
}),
|
|
829
|
+
s = vue.computed(function () {
|
|
830
|
+
var _F$overlay$style;
|
|
831
|
+
return (_F$overlay$style = F.overlay.style) !== null && _F$overlay$style !== void 0 ? _F$overlay$style : {
|
|
832
|
+
backgroundColor: "rgba(0,0,0,0.5)"
|
|
833
|
+
};
|
|
834
|
+
}),
|
|
835
|
+
a = vue.computed(function () {
|
|
836
|
+
return t.excludeRoutes;
|
|
837
|
+
}),
|
|
838
|
+
o = vue.computed(function () {
|
|
839
|
+
return t.routeKeepAliveVisible;
|
|
840
|
+
});
|
|
841
|
+
vue.watch(function () {
|
|
842
|
+
return [n.meta, n.query];
|
|
843
|
+
}, function (_ref0) {
|
|
844
|
+
var _ref1 = _slicedToArray(_ref0, 2),
|
|
845
|
+
_ = _ref1[0],
|
|
846
|
+
j = _ref1[1];
|
|
847
|
+
var _$showLayout = _.showLayout,
|
|
848
|
+
A = _$showLayout === void 0 ? true : _$showLayout,
|
|
849
|
+
_$showAside = _.showAside,
|
|
850
|
+
x = _$showAside === void 0 ? true : _$showAside,
|
|
851
|
+
_$showTabs = _.showTabs,
|
|
852
|
+
u = _$showTabs === void 0 ? true : _$showTabs,
|
|
853
|
+
_$layout = _.layout,
|
|
854
|
+
p = _$layout === void 0 ? {} : _$layout,
|
|
855
|
+
_j$showLayout = j.showLayout,
|
|
856
|
+
w = _j$showLayout === void 0 ? true : _j$showLayout,
|
|
857
|
+
_j$showAside = j.showAside,
|
|
858
|
+
$ = _j$showAside === void 0 ? true : _j$showAside,
|
|
859
|
+
_j$showTabs = j.showTabs,
|
|
860
|
+
E = _j$showTabs === void 0 ? true : _j$showTabs,
|
|
861
|
+
G = j.app;
|
|
862
|
+
setHtmlMinWH.setHtmlMinWH(p);
|
|
863
|
+
var re = true,
|
|
864
|
+
J = true,
|
|
865
|
+
X = true;
|
|
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;
|
|
867
|
+
});
|
|
868
|
+
var m = vue.computed(function () {
|
|
869
|
+
return _objectSpread({
|
|
870
|
+
mode: "out-in",
|
|
871
|
+
"enter-active-class": "animate__animated animate__fadeInLeft"
|
|
872
|
+
}, t.transitionConfig || {});
|
|
873
|
+
});
|
|
874
|
+
var I = /* @__PURE__ */new Map();
|
|
875
|
+
var q = function q(_, j) {
|
|
876
|
+
var A;
|
|
877
|
+
return I.has(j) ? A = I.get(j) : (A = {
|
|
878
|
+
name: j,
|
|
879
|
+
render: function render() {
|
|
880
|
+
return vue.h("div", {
|
|
881
|
+
style: {
|
|
882
|
+
width: "100%",
|
|
883
|
+
height: "100%"
|
|
884
|
+
}
|
|
885
|
+
}, [vue.h(_)]);
|
|
886
|
+
}
|
|
887
|
+
}, I.set(j, A)), vue.h(A);
|
|
888
|
+
},
|
|
889
|
+
B = vue.computed(function () {
|
|
890
|
+
return F.visible.value;
|
|
891
|
+
});
|
|
892
|
+
return function (_, j) {
|
|
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)
|
|
897
|
+
}, null, 6
|
|
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", {
|
|
903
|
+
key: _.pageKey,
|
|
904
|
+
style: {
|
|
905
|
+
width: "100%",
|
|
906
|
+
height: "100%"
|
|
907
|
+
}
|
|
908
|
+
}, [vue.renderSlot(_.$slots, "router-view", {}, function () {
|
|
909
|
+
return [vue.createCommentVNode(" 有动画 "), _.needTransition ? (vue.openBlock(), vue.createBlock(A, {
|
|
910
|
+
key: 0
|
|
911
|
+
}, {
|
|
912
|
+
"default": vue.withCtx(function (_ref10) {
|
|
913
|
+
var x = _ref10.Component;
|
|
914
|
+
return [vue.createVNode(vue.Transition, vue.normalizeProps(vue.guardReactiveProps(m.value)), {
|
|
915
|
+
"default": vue.withCtx(function () {
|
|
916
|
+
var u;
|
|
917
|
+
return [vue.unref(n).meta.keepAlive ? (vue.openBlock(), vue.createBlock(vue.KeepAlive, {
|
|
918
|
+
key: 0,
|
|
919
|
+
exclude: a.value
|
|
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)];
|
|
923
|
+
}),
|
|
924
|
+
_: 2
|
|
925
|
+
/* DYNAMIC */
|
|
926
|
+
}, 1040
|
|
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)];
|
|
932
|
+
}),
|
|
933
|
+
_: 2
|
|
934
|
+
/* DYNAMIC */
|
|
935
|
+
}, 1040
|
|
936
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */)];
|
|
937
|
+
}),
|
|
938
|
+
_: 1
|
|
939
|
+
/* STABLE */
|
|
940
|
+
})) : vue.createCommentVNode("v-if", true), vue.createCommentVNode(" 无动画 "), _.needTransition ? vue.createCommentVNode("v-if", true) : (vue.openBlock(), vue.createBlock(A, {
|
|
941
|
+
key: 1
|
|
942
|
+
}, {
|
|
943
|
+
"default": vue.withCtx(function (_ref11) {
|
|
944
|
+
var x = _ref11.Component;
|
|
945
|
+
return [vue.unref(n).meta.keepAlive ? (vue.openBlock(), vue.createBlock(vue.KeepAlive, {
|
|
946
|
+
key: 0,
|
|
947
|
+
exclude: a.value
|
|
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)];
|
|
953
|
+
}),
|
|
954
|
+
_: 1
|
|
955
|
+
/* STABLE */
|
|
956
|
+
})), vue.withDirectives(vue.createElementVNode("div", ze, [vue.createVNode(Me, {
|
|
957
|
+
exclude: a.value,
|
|
958
|
+
transitionConfig: m.value,
|
|
959
|
+
needTransition: _.needTransition
|
|
960
|
+
}, null, 8, ["exclude", "transitionConfig", "needTransition"])], 512
|
|
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]])])])])])]);
|
|
964
|
+
};
|
|
965
|
+
}
|
|
966
|
+
}),
|
|
967
|
+
st = /* @__PURE__ */he(qe, [["__scopeId", "data-v-cc197012"]]),
|
|
968
|
+
Ge = ["theme", "modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"],
|
|
969
|
+
at = /* @__PURE__ */vue.defineComponent({
|
|
970
|
+
__name: "das-web-nav",
|
|
971
|
+
setup: function setup(e) {
|
|
972
|
+
var t = F.nav,
|
|
973
|
+
n = vue.computed(function () {
|
|
974
|
+
return t.theme;
|
|
975
|
+
}),
|
|
976
|
+
l = vue.computed(function () {
|
|
977
|
+
return t.logo || "";
|
|
978
|
+
}),
|
|
979
|
+
d = vue.computed(function () {
|
|
980
|
+
return t.activeItem || "";
|
|
981
|
+
}),
|
|
982
|
+
r = vue.computed(function () {
|
|
983
|
+
return (t.items || []).filter(function (p) {
|
|
984
|
+
return p.fixed;
|
|
985
|
+
});
|
|
986
|
+
}),
|
|
987
|
+
f = vue.computed(function () {
|
|
988
|
+
return (t.items || []).filter(function (p) {
|
|
989
|
+
return !p.fixed;
|
|
990
|
+
});
|
|
991
|
+
}),
|
|
992
|
+
y = vue.computed(function () {
|
|
993
|
+
var _ref12, _ref13, _ref14, _ref15, _ref16;
|
|
994
|
+
var u, p, w, $, E;
|
|
995
|
+
return {
|
|
996
|
+
showAIHelper: (_ref12 = (u = t.config) == null ? undefined : u.showAIHelper) !== null && _ref12 !== void 0 ? _ref12 : false,
|
|
997
|
+
showFullScreen: (_ref13 = (p = t.config) == null ? undefined : p.showFullScreen) !== null && _ref13 !== void 0 ? _ref13 : false,
|
|
998
|
+
showChangeEnterprise: (_ref14 = (w = t.config) == null ? undefined : w.showChangeEnterprise) !== null && _ref14 !== void 0 ? _ref14 : false,
|
|
999
|
+
showSearch: (_ref15 = ($ = t.config) == null ? undefined : $.showSearch) !== null && _ref15 !== void 0 ? _ref15 : true,
|
|
1000
|
+
showProjectTree: (_ref16 = (E = t.config) == null ? undefined : E.showProjectTree) !== null && _ref16 !== void 0 ? _ref16 : true,
|
|
1001
|
+
subAppList: f.value.map(function (G) {
|
|
1002
|
+
return _objectSpread({
|
|
1003
|
+
code: G.value,
|
|
1004
|
+
name: G.label
|
|
1005
|
+
}, G);
|
|
1006
|
+
})
|
|
1007
|
+
};
|
|
1008
|
+
}),
|
|
1009
|
+
i = vue.computed(function () {
|
|
1010
|
+
var u = r.value.find(function (p) {
|
|
1011
|
+
return p.value === t.activeItem;
|
|
1012
|
+
});
|
|
1013
|
+
return {
|
|
1014
|
+
activeInnerPagePath: (u == null ? undefined : u.path) || "",
|
|
1015
|
+
innerPages: r.value.map(function (p) {
|
|
1016
|
+
return _objectSpread({
|
|
1017
|
+
title: p.label
|
|
1018
|
+
}, p);
|
|
1019
|
+
})
|
|
1020
|
+
};
|
|
1021
|
+
}),
|
|
1022
|
+
P = vue.computed(function () {
|
|
1023
|
+
return _objectSpread({
|
|
1024
|
+
projectStore: {
|
|
1025
|
+
projectTree: t.projects,
|
|
1026
|
+
currentProject: t.activeProject
|
|
1027
|
+
}
|
|
1028
|
+
}, t.projectConfig);
|
|
1029
|
+
}),
|
|
1030
|
+
T = vue.computed(function () {
|
|
1031
|
+
return t.userInfo;
|
|
1032
|
+
}),
|
|
1033
|
+
S = vue.computed(function () {
|
|
1034
|
+
return t.searchConfig;
|
|
1035
|
+
}),
|
|
1036
|
+
s = /*#__PURE__*/function () {
|
|
1037
|
+
var _ref17 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8(u) {
|
|
1038
|
+
var p, w, _t8;
|
|
1039
|
+
return _regenerator().w(function (_context9) {
|
|
1040
|
+
while (1) switch (_context9.n) {
|
|
1041
|
+
case 0:
|
|
1042
|
+
p = u.detail[0], w = r.value.find(function (E) {
|
|
1043
|
+
return p.value === E.value;
|
|
1044
|
+
});
|
|
1045
|
+
_context9.n = 1;
|
|
1046
|
+
return v.nav.triggerEventListener("onItemClick", w);
|
|
1047
|
+
case 1:
|
|
1048
|
+
_t8 = _context9.v;
|
|
1049
|
+
if (!_t8) {
|
|
1050
|
+
_context9.n = 2;
|
|
1051
|
+
break;
|
|
1052
|
+
}
|
|
1053
|
+
v.nav.setActiveItem(w.value);
|
|
1054
|
+
case 2:
|
|
1055
|
+
return _context9.a(2);
|
|
1056
|
+
}
|
|
1057
|
+
}, _callee8);
|
|
1058
|
+
}));
|
|
1059
|
+
return function s(_x6) {
|
|
1060
|
+
return _ref17.apply(this, arguments);
|
|
1061
|
+
};
|
|
1062
|
+
}(),
|
|
1063
|
+
a = /*#__PURE__*/function () {
|
|
1064
|
+
var _ref18 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9(u) {
|
|
1065
|
+
var p, w, _t9;
|
|
1066
|
+
return _regenerator().w(function (_context0) {
|
|
1067
|
+
while (1) switch (_context0.n) {
|
|
1068
|
+
case 0:
|
|
1069
|
+
p = u.detail[0], w = f.value.find(function (E) {
|
|
1070
|
+
return p === E.value;
|
|
1071
|
+
});
|
|
1072
|
+
_context0.n = 1;
|
|
1073
|
+
return v.nav.triggerEventListener("onItemClick", w);
|
|
1074
|
+
case 1:
|
|
1075
|
+
_t9 = _context0.v;
|
|
1076
|
+
if (!_t9) {
|
|
1077
|
+
_context0.n = 2;
|
|
1078
|
+
break;
|
|
1079
|
+
}
|
|
1080
|
+
v.nav.setActiveItem(w.value);
|
|
1081
|
+
case 2:
|
|
1082
|
+
return _context0.a(2);
|
|
1083
|
+
}
|
|
1084
|
+
}, _callee9);
|
|
1085
|
+
}));
|
|
1086
|
+
return function a(_x7) {
|
|
1087
|
+
return _ref18.apply(this, arguments);
|
|
1088
|
+
};
|
|
1089
|
+
}(),
|
|
1090
|
+
o = /*#__PURE__*/function () {
|
|
1091
|
+
var _ref19 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(u) {
|
|
1092
|
+
var p, w, _t0;
|
|
1093
|
+
return _regenerator().w(function (_context1) {
|
|
1094
|
+
while (1) switch (_context1.n) {
|
|
1095
|
+
case 0:
|
|
1096
|
+
p = u.detail[0], w = f.value.find(function (E) {
|
|
1097
|
+
return p === E.value;
|
|
1098
|
+
});
|
|
1099
|
+
_context1.n = 1;
|
|
1100
|
+
return v.nav.triggerEventListener("onItemRemove", w);
|
|
1101
|
+
case 1:
|
|
1102
|
+
_t0 = _context1.v;
|
|
1103
|
+
if (!_t0) {
|
|
1104
|
+
_context1.n = 2;
|
|
1105
|
+
break;
|
|
1106
|
+
}
|
|
1107
|
+
v.nav.removeItem(w.value);
|
|
1108
|
+
case 2:
|
|
1109
|
+
return _context1.a(2);
|
|
1110
|
+
}
|
|
1111
|
+
}, _callee0);
|
|
1112
|
+
}));
|
|
1113
|
+
return function o(_x8) {
|
|
1114
|
+
return _ref19.apply(this, arguments);
|
|
1115
|
+
};
|
|
1116
|
+
}(),
|
|
1117
|
+
m = /*#__PURE__*/function () {
|
|
1118
|
+
var _ref20 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(u) {
|
|
1119
|
+
var _u$detail, p, w, _t1, _t10;
|
|
1120
|
+
return _regenerator().w(function (_context10) {
|
|
1121
|
+
while (1) switch (_context10.n) {
|
|
1122
|
+
case 0:
|
|
1123
|
+
_u$detail = _slicedToArray(u.detail, 2), p = _u$detail[0], w = _u$detail[1];
|
|
1124
|
+
_t1 = !p;
|
|
1125
|
+
if (_t1) {
|
|
1126
|
+
_context10.n = 2;
|
|
1127
|
+
break;
|
|
1128
|
+
}
|
|
1129
|
+
_context10.n = 1;
|
|
1130
|
+
return v.nav.triggerEventListener("onProjectChange", w);
|
|
1131
|
+
case 1:
|
|
1132
|
+
_t1 = !_context10.v;
|
|
1133
|
+
case 2:
|
|
1134
|
+
_t10 = _t1;
|
|
1135
|
+
if (_t10) {
|
|
1136
|
+
_context10.n = 3;
|
|
1137
|
+
break;
|
|
1138
|
+
}
|
|
1139
|
+
v.nav.setActiveProject(w);
|
|
1140
|
+
case 3:
|
|
1141
|
+
return _context10.a(2);
|
|
1142
|
+
}
|
|
1143
|
+
}, _callee1);
|
|
1144
|
+
}));
|
|
1145
|
+
return function m(_x9) {
|
|
1146
|
+
return _ref20.apply(this, arguments);
|
|
1147
|
+
};
|
|
1148
|
+
}(),
|
|
1149
|
+
I = function I(u) {
|
|
1150
|
+
v.nav.triggerEventListener("onUserCommandChange", u.detail[0]);
|
|
1151
|
+
},
|
|
1152
|
+
q = function q(u) {
|
|
1153
|
+
v.nav.triggerEventListener("searchToPage", {
|
|
1154
|
+
item: u.detail[0],
|
|
1155
|
+
keyword: u.detail[1],
|
|
1156
|
+
cb: u.detail[2]
|
|
1157
|
+
});
|
|
1158
|
+
},
|
|
1159
|
+
B = function B(u) {
|
|
1160
|
+
v.nav.triggerEventListener("clearSearchList", {
|
|
1161
|
+
cb: u.detail[0]
|
|
1162
|
+
});
|
|
1163
|
+
},
|
|
1164
|
+
_ = function _(u) {
|
|
1165
|
+
v.nav.triggerEventListener("deleteSearchItem", {
|
|
1166
|
+
value: u.detail[0],
|
|
1167
|
+
cb: u.detail[1]
|
|
1168
|
+
});
|
|
1169
|
+
},
|
|
1170
|
+
j = function j() {
|
|
1171
|
+
v.nav.triggerEventListener("changeEnterpriseHandle");
|
|
1172
|
+
},
|
|
1173
|
+
A = function A() {
|
|
1174
|
+
v.nav.triggerEventListener("fullScreenHandle");
|
|
1175
|
+
},
|
|
1176
|
+
x = function x() {
|
|
1177
|
+
v.nav.triggerEventListener("openAI");
|
|
1178
|
+
};
|
|
1179
|
+
return vue.onBeforeMount(function () {
|
|
1180
|
+
v.nav.triggerEventListener("onBeforeMount", null, {
|
|
1181
|
+
autoRemove: true
|
|
1182
|
+
});
|
|
1183
|
+
}), vue.onMounted(function () {
|
|
1184
|
+
v.nav.triggerEventListener("onMounted", null, {
|
|
1185
|
+
autoRemove: true
|
|
1186
|
+
});
|
|
1187
|
+
}), vue.onUnmounted(function () {
|
|
1188
|
+
v.nav.triggerEventListener("onUnmounted", null, {
|
|
1189
|
+
autoRemove: true
|
|
1190
|
+
});
|
|
1191
|
+
}), function (u, p) {
|
|
1192
|
+
return vue.openBlock(), vue.createElementBlock("das-ce-nav", {
|
|
1193
|
+
theme: n.value,
|
|
1194
|
+
modelValue: d.value,
|
|
1195
|
+
logoUrl: l.value,
|
|
1196
|
+
config: y.value,
|
|
1197
|
+
innerPagesConfig: i.value,
|
|
1198
|
+
searchConfig: S.value,
|
|
1199
|
+
projectTreeConfig: P.value,
|
|
1200
|
+
userInfoConfig: T.value,
|
|
1201
|
+
"on:userCommandHandle": I,
|
|
1202
|
+
"on:changeInnerPage": s,
|
|
1203
|
+
"on:handleTabClick": a,
|
|
1204
|
+
"on:handleTabDelete": o,
|
|
1205
|
+
"on:changeTreeHandle": m,
|
|
1206
|
+
"on:searchToPage": q,
|
|
1207
|
+
"on:clearSearchList": B,
|
|
1208
|
+
"on:deleteSearchItem": _,
|
|
1209
|
+
"on:changeEnterpriseHandle": j,
|
|
1210
|
+
"on:fullScreen": A,
|
|
1211
|
+
"on:openAI": x
|
|
1212
|
+
}, null, 40, Ge);
|
|
1213
|
+
};
|
|
1214
|
+
}
|
|
1215
|
+
}),
|
|
1216
|
+
Je = ["theme", "modelValue", "data", "collapse", "fixedTopMenu", "subMenuAttrs"],
|
|
1217
|
+
rt = /* @__PURE__ */vue.defineComponent({
|
|
1218
|
+
__name: "das-web-menu",
|
|
1219
|
+
props: {
|
|
1220
|
+
menuAttr: {}
|
|
1221
|
+
},
|
|
1222
|
+
setup: function setup(e) {
|
|
1223
|
+
var t = F.menu,
|
|
1224
|
+
n = e,
|
|
1225
|
+
l = vue.computed(function () {
|
|
1226
|
+
return t.theme;
|
|
1227
|
+
}),
|
|
1228
|
+
d = vue.computed(function () {
|
|
1229
|
+
return n.menuAttr || {};
|
|
1230
|
+
}),
|
|
1231
|
+
r = vue.computed(function () {
|
|
1232
|
+
return t.items;
|
|
1233
|
+
}),
|
|
1234
|
+
f = vue.computed(function () {
|
|
1235
|
+
return t.items.find(function (s) {
|
|
1236
|
+
return s.fixed;
|
|
1237
|
+
});
|
|
1238
|
+
}),
|
|
1239
|
+
y = vue.computed(function () {
|
|
1240
|
+
return t.activeItem || "";
|
|
1241
|
+
}),
|
|
1242
|
+
i = vue.computed(function () {
|
|
1243
|
+
return t.collapse || false;
|
|
1244
|
+
}),
|
|
1245
|
+
P = vue.computed(function () {
|
|
1246
|
+
var _t$popupClassName;
|
|
1247
|
+
return {
|
|
1248
|
+
popupClassName: (_t$popupClassName = t.popupClassName) !== null && _t$popupClassName !== void 0 ? _t$popupClassName : ""
|
|
1249
|
+
};
|
|
1250
|
+
}),
|
|
1251
|
+
T = /*#__PURE__*/function () {
|
|
1252
|
+
var _ref21 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10(s) {
|
|
1253
|
+
var a, o, _t11;
|
|
1254
|
+
return _regenerator().w(function (_context11) {
|
|
1255
|
+
while (1) switch (_context11.n) {
|
|
1256
|
+
case 0:
|
|
1257
|
+
a = s.detail[0], o = nestTreeFormat.flatTree(r.value).find(function (I) {
|
|
1258
|
+
return a === I.id;
|
|
1259
|
+
});
|
|
1260
|
+
_context11.n = 1;
|
|
1261
|
+
return v.menu.triggerEventListener("onItemClick", o);
|
|
1262
|
+
case 1:
|
|
1263
|
+
_t11 = _context11.v;
|
|
1264
|
+
if (!_t11) {
|
|
1265
|
+
_context11.n = 2;
|
|
1266
|
+
break;
|
|
1267
|
+
}
|
|
1268
|
+
v.menu.setActiveItem(o.id);
|
|
1269
|
+
case 2:
|
|
1270
|
+
return _context11.a(2);
|
|
1271
|
+
}
|
|
1272
|
+
}, _callee10);
|
|
1273
|
+
}));
|
|
1274
|
+
return function T(_x0) {
|
|
1275
|
+
return _ref21.apply(this, arguments);
|
|
1276
|
+
};
|
|
1277
|
+
}(),
|
|
1278
|
+
S = function S(s) {
|
|
1279
|
+
v.menu.setCollapse(s.detail[0]), v.menu.triggerEventListener("toggleCollapse", s.detail[0]);
|
|
1280
|
+
};
|
|
1281
|
+
return function (s, a) {
|
|
1282
|
+
return r.value.length > 0 ? (vue.openBlock(), vue.createElementBlock("das-ce-menu", vue.mergeProps({
|
|
1283
|
+
key: 0,
|
|
1284
|
+
theme: l.value,
|
|
1285
|
+
modelValue: y.value,
|
|
1286
|
+
data: r.value,
|
|
1287
|
+
collapse: i.value,
|
|
1288
|
+
fixedTopMenu: f.value,
|
|
1289
|
+
subMenuAttrs: P.value
|
|
1290
|
+
}, d.value, {
|
|
1291
|
+
onChange: T,
|
|
1292
|
+
"on:toggleCollapse": S
|
|
1293
|
+
}), null, 16, Je)) : vue.createCommentVNode("v-if", true);
|
|
1294
|
+
};
|
|
1295
|
+
}
|
|
1296
|
+
}),
|
|
1297
|
+
Xe = ["theme", "modelValue", "options"],
|
|
1298
|
+
ot = /* @__PURE__ */vue.defineComponent({
|
|
1299
|
+
__name: "das-web-tabs",
|
|
1300
|
+
props: {
|
|
1301
|
+
tabsAttr: {}
|
|
1302
|
+
},
|
|
1303
|
+
setup: function setup(e) {
|
|
1304
|
+
var t = F.tab,
|
|
1305
|
+
n = e,
|
|
1306
|
+
l = vue.computed(function () {
|
|
1307
|
+
return n.tabsAttr || {};
|
|
1308
|
+
}),
|
|
1309
|
+
d = vue.computed(function () {
|
|
1310
|
+
return t.theme;
|
|
1311
|
+
}),
|
|
1312
|
+
r = vue.computed(function () {
|
|
1313
|
+
return t.items.map(function (s) {
|
|
1314
|
+
return _objectSpread(_objectSpread({}, s), {}, {
|
|
1315
|
+
key: s.value,
|
|
1316
|
+
tab: s.label
|
|
1317
|
+
});
|
|
1318
|
+
});
|
|
1319
|
+
}),
|
|
1320
|
+
f = vue.computed(function () {
|
|
1321
|
+
return t.activeItem || "";
|
|
1322
|
+
}),
|
|
1323
|
+
y = /*#__PURE__*/function () {
|
|
1324
|
+
var _ref22 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee11(s) {
|
|
1325
|
+
var a, o, _t12;
|
|
1326
|
+
return _regenerator().w(function (_context12) {
|
|
1327
|
+
while (1) switch (_context12.n) {
|
|
1328
|
+
case 0:
|
|
1329
|
+
a = s.detail[0], o = r.value.find(function (I) {
|
|
1330
|
+
return a === I.value;
|
|
1331
|
+
});
|
|
1332
|
+
_context12.n = 1;
|
|
1333
|
+
return v.tab.triggerEventListener("onItemClick", o);
|
|
1334
|
+
case 1:
|
|
1335
|
+
_t12 = _context12.v;
|
|
1336
|
+
if (!_t12) {
|
|
1337
|
+
_context12.n = 2;
|
|
1338
|
+
break;
|
|
1339
|
+
}
|
|
1340
|
+
v.tab.setActiveItem(o.value);
|
|
1341
|
+
case 2:
|
|
1342
|
+
return _context12.a(2);
|
|
1343
|
+
}
|
|
1344
|
+
}, _callee11);
|
|
1345
|
+
}));
|
|
1346
|
+
return function y(_x1) {
|
|
1347
|
+
return _ref22.apply(this, arguments);
|
|
1348
|
+
};
|
|
1349
|
+
}(),
|
|
1350
|
+
i = /*#__PURE__*/function () {
|
|
1351
|
+
var _ref23 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee12(s) {
|
|
1352
|
+
var a, o, _t13;
|
|
1353
|
+
return _regenerator().w(function (_context13) {
|
|
1354
|
+
while (1) switch (_context13.n) {
|
|
1355
|
+
case 0:
|
|
1356
|
+
a = s.detail[0], o = r.value.find(function (I) {
|
|
1357
|
+
return a === I.value;
|
|
1358
|
+
});
|
|
1359
|
+
_context13.n = 1;
|
|
1360
|
+
return v.tab.triggerEventListener("onItemRemove", o);
|
|
1361
|
+
case 1:
|
|
1362
|
+
_t13 = _context13.v;
|
|
1363
|
+
if (!_t13) {
|
|
1364
|
+
_context13.n = 2;
|
|
1365
|
+
break;
|
|
1366
|
+
}
|
|
1367
|
+
v.tab.removeItem(o.value);
|
|
1368
|
+
case 2:
|
|
1369
|
+
return _context13.a(2);
|
|
1370
|
+
}
|
|
1371
|
+
}, _callee12);
|
|
1372
|
+
}));
|
|
1373
|
+
return function i(_x10) {
|
|
1374
|
+
return _ref23.apply(this, arguments);
|
|
1375
|
+
};
|
|
1376
|
+
}(),
|
|
1377
|
+
P = /*#__PURE__*/function () {
|
|
1378
|
+
var _ref24 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee13(s) {
|
|
1379
|
+
return _regenerator().w(function (_context14) {
|
|
1380
|
+
while (1) switch (_context14.n) {
|
|
1381
|
+
case 0:
|
|
1382
|
+
_context14.n = 1;
|
|
1383
|
+
return v.tab.triggerEventListener("onMenuClick", {
|
|
1384
|
+
type: s.detail[0],
|
|
1385
|
+
data: s.detail[1]
|
|
1386
|
+
});
|
|
1387
|
+
case 1:
|
|
1388
|
+
return _context14.a(2);
|
|
1389
|
+
}
|
|
1390
|
+
}, _callee13);
|
|
1391
|
+
}));
|
|
1392
|
+
return function P(_x11) {
|
|
1393
|
+
return _ref24.apply(this, arguments);
|
|
1394
|
+
};
|
|
1395
|
+
}(),
|
|
1396
|
+
T = /*#__PURE__*/function () {
|
|
1397
|
+
var _ref25 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee14(s) {
|
|
1398
|
+
return _regenerator().w(function (_context15) {
|
|
1399
|
+
while (1) switch (_context15.n) {
|
|
1400
|
+
case 0:
|
|
1401
|
+
_context15.n = 1;
|
|
1402
|
+
return v.tab.triggerEventListener("onPageRefresh", s.detail[0]);
|
|
1403
|
+
case 1:
|
|
1404
|
+
return _context15.a(2);
|
|
1405
|
+
}
|
|
1406
|
+
}, _callee14);
|
|
1407
|
+
}));
|
|
1408
|
+
return function T(_x12) {
|
|
1409
|
+
return _ref25.apply(this, arguments);
|
|
1410
|
+
};
|
|
1411
|
+
}(),
|
|
1412
|
+
S = function S() {
|
|
1413
|
+
v.tab.triggerEventListener("onToggleFullScreen");
|
|
1414
|
+
};
|
|
1415
|
+
return function (s, a) {
|
|
1416
|
+
return r.value.length > 0 ? (vue.openBlock(), vue.createElementBlock("das-ce-tabs", vue.mergeProps({
|
|
1417
|
+
key: 0,
|
|
1418
|
+
theme: d.value,
|
|
1419
|
+
modelValue: f.value,
|
|
1420
|
+
options: r.value
|
|
1421
|
+
}, l.value, {
|
|
1422
|
+
"on:tabClick": y,
|
|
1423
|
+
"on:tabDelete": i,
|
|
1424
|
+
"on:menuClick": P,
|
|
1425
|
+
"on:pageRefresh": T,
|
|
1426
|
+
"on:toggleFullScreen": S
|
|
1427
|
+
}), null, 16, Xe)) : vue.createCommentVNode("v-if", true);
|
|
1428
|
+
};
|
|
1429
|
+
}
|
|
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;
|