@das-fed/web 6.4.0-test.3.1 → 6.4.0-test.30
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/esm-map.json +2 -1
- package/index-DeKFYMKY.js +10 -0
- package/index-DgV7dEtR.js +82 -0
- package/index-DgV7dEtR.js.gz +0 -0
- package/index-g3DWTus2.js +13893 -0
- package/index-g3DWTus2.js.gz +0 -0
- package/index.js +19 -18
- package/package.json +8 -6
- package/packages/i18n/index.js +172 -37
- package/packages/i18n/index.js.gz +0 -0
- package/packages/layout/index.js +272 -278
- package/packages/layout/index.js.gz +0 -0
- package/packages/layout/style.css +2 -2
- package/packages/layout/style.css.gz +0 -0
- package/packages/main-app-framework/index-CGXiI8Px.js +82 -0
- package/packages/main-app-framework/index-CGXiI8Px.js.gz +0 -0
- package/packages/main-app-framework/index-CX-Rv9Hu.js +10 -0
- package/packages/main-app-framework/index-iFGtZyh-.js +12405 -0
- package/packages/main-app-framework/index-iFGtZyh-.js.gz +0 -0
- package/packages/main-app-framework/index.js +3 -2
- package/packages/main-app-framework/style.css +1 -1
- package/packages/main-app-framework/style.css.gz +0 -0
- package/packages/micro-frontend/index.js +266 -259
- package/packages/micro-frontend/index.js.gz +0 -0
- package/packages/style/style.css +1 -1
- package/packages/style/style.css.gz +0 -0
- package/style.css +2 -2
- package/style.css.gz +0 -0
- package/types/i18n/global.d.ts +583 -0
- package/types/i18n/index.d.ts +4 -3
- package/types/layout/store/index.d.ts +1 -1
- package/types/layout/store/nav.d.ts +1 -1
- package/types/main-app-framework/business/remote-control/apis.d.ts +2 -0
- package/types/main-app-framework/business/remote-control/utils.d.ts +7 -0
- package/types/main-app-framework/components/person-set-dialog/src/api.d.ts +4 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/index.d.ts +3 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/api.d.ts +20 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-builtIn-dialog.d.ts +19 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-notBuiltIn-dialog.d.ts +22 -0
- package/types/main-app-framework/constant/index.d.ts +1 -1
- package/types/main-app-framework/data-track/api.d.ts +2 -0
- package/types/main-app-framework/data-track/index.d.ts +2 -0
- package/types/main-app-framework/i18n/index.d.ts +538 -0
- package/types/main-app-framework/index.d.ts +1 -0
- package/types/main-app-framework/init-config/get-project-config/api.d.ts +3 -2
- package/types/main-app-framework/init-config/get-system-config/api.d.ts +4 -0
- package/types/main-app-framework/init-config/get-system-config/index.d.ts +5 -3
- package/types/main-app-framework/init-config/get-tenant-config/api.d.ts +1 -1
- package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +1 -0
- package/types/main-app-framework/utils/src/get-portal-url/crypto.d.ts +14 -0
- package/types/main-app-framework/utils/src/get-portal-url/encrypt.d.ts +42 -0
- package/types/main-app-framework/utils/src/get-portal-url/generate-url.d.ts +4 -0
- package/types/main-app-framework/utils/src/get-portal-url/handle-portal-params.d.ts +2 -0
- package/types/main-app-framework/utils/src/get-portal-url/index.d.ts +2 -0
- package/types/main-app-framework/utils/src/get-portal-url/type.d.ts +16 -0
- package/types/main-app-framework/utils/src/set-common-info.d.ts +4 -2
- package/types/main-app-framework/utils/src/tools.d.ts +5 -1
- package/i18n-collection/en.js +0 -93
- package/i18n-collection/zh-CN.js +0 -93
- package/index-BSt1lmGg.js +0 -10
- package/index-BWjO8i-G.js +0 -75
- package/index-BWjO8i-G.js.gz +0 -0
- package/index-D-p5feGf.js +0 -7446
- package/index-D-p5feGf.js.gz +0 -0
- package/packages/main-app-framework/index-C1k_cOnk.js +0 -6099
- package/packages/main-app-framework/index-C1k_cOnk.js.gz +0 -0
- package/packages/main-app-framework/index-Cd2KFU7P.js +0 -75
- package/packages/main-app-framework/index-Cd2KFU7P.js.gz +0 -0
- package/packages/main-app-framework/index-D-KaGWK2.js +0 -10
package/packages/layout/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '@das-fed/web/packages/layout/style.css';
|
|
2
|
-
import { reactive as
|
|
2
|
+
import { reactive as K, ref as O, defineComponent as z, computed as u, watch as Z, createElementBlock as I, openBlock as g, Fragment as J, createBlock as V, createCommentVNode as b, TransitionGroup as he, normalizeProps as ee, mergeProps as ne, withCtx as U, renderList as re, withDirectives as D, resolveDynamicComponent as N, vShow as M, unref as w, nextTick as oe, resolveComponent as ge, createElementVNode as $, normalizeStyle as pe, normalizeClass as ye, renderSlot as F, createVNode as X, Transition as ie, guardReactiveProps as le, KeepAlive as ce, h as Y, onBeforeMount as we, onMounted as be, onUnmounted as _e } from "vue";
|
|
3
3
|
import { useRouter as Le, useRoute as me } from "vue-router";
|
|
4
|
-
import { setHtmlMinWH as
|
|
5
|
-
import { createCeNav as
|
|
6
|
-
import { flatTree as
|
|
7
|
-
const h =
|
|
4
|
+
import { setHtmlMinWH as Ce } from "@das-fed/utils/common-tools/setHtmlMinWH";
|
|
5
|
+
import { createCeNav as Ie, createCeTabs as ke, createCeMenu as Te } from "@das-fed/web-components/das-web-app";
|
|
6
|
+
import { flatTree as Ee } from "@das-fed/utils/common-tools/nest-tree-format";
|
|
7
|
+
const h = K({
|
|
8
8
|
visible: !1,
|
|
9
9
|
theme: "default",
|
|
10
10
|
logo: "",
|
|
@@ -34,11 +34,11 @@ const h = z({
|
|
|
34
34
|
},
|
|
35
35
|
getItems: () => h.items,
|
|
36
36
|
removeItem: (e) => {
|
|
37
|
-
const t = h.items.filter((
|
|
37
|
+
const t = h.items.filter((n) => n.value !== e);
|
|
38
38
|
h.items = t;
|
|
39
39
|
},
|
|
40
40
|
appendItem: (e) => {
|
|
41
|
-
h.visible || (h.visible = !0), !h.items.find((
|
|
41
|
+
h.visible || (h.visible = !0), !h.items.find((n) => n.value == e.value) && h.items.push(e);
|
|
42
42
|
},
|
|
43
43
|
setActiveItem: (e) => {
|
|
44
44
|
h.activeItem = e;
|
|
@@ -61,9 +61,9 @@ const h = z({
|
|
|
61
61
|
setSearchConfig: (e) => {
|
|
62
62
|
h.searchConfig = e;
|
|
63
63
|
},
|
|
64
|
-
triggerEventListener: (e, t,
|
|
64
|
+
triggerEventListener: (e, t, n) => {
|
|
65
65
|
var f;
|
|
66
|
-
const l = h.eventListeners, { autoRemove: d = !1 } =
|
|
66
|
+
const l = h.eventListeners, { autoRemove: d = !1 } = n || {}, r = [];
|
|
67
67
|
for (const y in l) {
|
|
68
68
|
const i = l[y];
|
|
69
69
|
i.type === e && r.push(
|
|
@@ -75,10 +75,10 @@ const h = z({
|
|
|
75
75
|
return Promise.all(r).then(() => !0).catch(() => !1);
|
|
76
76
|
},
|
|
77
77
|
addEventListener: (e, t) => {
|
|
78
|
-
const
|
|
79
|
-
h.eventListeners[
|
|
78
|
+
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
|
|
79
|
+
h.eventListeners[n] && delete h.eventListeners[n];
|
|
80
80
|
};
|
|
81
|
-
return h.eventListeners[
|
|
81
|
+
return h.eventListeners[n] = {
|
|
82
82
|
type: e,
|
|
83
83
|
handler: async (d) => {
|
|
84
84
|
try {
|
|
@@ -92,31 +92,31 @@ const h = z({
|
|
|
92
92
|
remove: l
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
},
|
|
95
|
+
}, A = K({
|
|
96
96
|
theme: "default",
|
|
97
97
|
items: [],
|
|
98
98
|
collapse: !1,
|
|
99
99
|
eventListeners: {}
|
|
100
100
|
}), ve = {
|
|
101
101
|
setItems: (e) => {
|
|
102
|
-
|
|
102
|
+
A.items = e;
|
|
103
103
|
},
|
|
104
|
-
getItems: () =>
|
|
104
|
+
getItems: () => A.items,
|
|
105
105
|
setTheme: (e) => {
|
|
106
|
-
|
|
106
|
+
A.theme = e;
|
|
107
107
|
},
|
|
108
108
|
setActiveItem: (e) => {
|
|
109
|
-
|
|
109
|
+
A.activeItem = e;
|
|
110
110
|
},
|
|
111
111
|
setCollapse: (e) => {
|
|
112
|
-
|
|
112
|
+
A.collapse = e;
|
|
113
113
|
},
|
|
114
114
|
setPopupClassName: (e) => {
|
|
115
|
-
|
|
115
|
+
A.popupClassName = e;
|
|
116
116
|
},
|
|
117
|
-
triggerEventListener: (e, t,
|
|
117
|
+
triggerEventListener: (e, t, n) => {
|
|
118
118
|
var f;
|
|
119
|
-
const l =
|
|
119
|
+
const l = A.eventListeners, { autoRemove: d = !1 } = n || {}, r = [];
|
|
120
120
|
for (const y in l) {
|
|
121
121
|
const i = l[y];
|
|
122
122
|
i.type === e && r.push(
|
|
@@ -128,10 +128,10 @@ const h = z({
|
|
|
128
128
|
return Promise.all(r).then(() => !0).catch(() => !1);
|
|
129
129
|
},
|
|
130
130
|
addEventListener: (e, t) => {
|
|
131
|
-
const
|
|
132
|
-
|
|
131
|
+
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
|
|
132
|
+
A.eventListeners[n] && delete A.eventListeners[n];
|
|
133
133
|
};
|
|
134
|
-
return
|
|
134
|
+
return A.eventListeners[n] = {
|
|
135
135
|
type: e,
|
|
136
136
|
handler: async (d) => {
|
|
137
137
|
try {
|
|
@@ -145,32 +145,32 @@ const h = z({
|
|
|
145
145
|
remove: l
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
|
-
},
|
|
148
|
+
}, k = K({
|
|
149
149
|
theme: "default",
|
|
150
150
|
items: [],
|
|
151
151
|
eventListeners: {}
|
|
152
152
|
}), de = {
|
|
153
153
|
setItems: (e) => {
|
|
154
|
-
|
|
154
|
+
k.items = e;
|
|
155
155
|
},
|
|
156
|
-
getItems: () =>
|
|
156
|
+
getItems: () => k.items,
|
|
157
157
|
setTheme: (e) => {
|
|
158
|
-
|
|
158
|
+
k.theme = e;
|
|
159
159
|
},
|
|
160
160
|
removeItem: (e) => {
|
|
161
|
-
const t =
|
|
162
|
-
|
|
161
|
+
const t = k.items.filter((n) => n.value !== e);
|
|
162
|
+
k.items = t;
|
|
163
163
|
},
|
|
164
164
|
appendItem: (e) => {
|
|
165
|
-
const t =
|
|
166
|
-
t !== -1 ?
|
|
165
|
+
const t = k.items.findIndex((n) => n.value == e.value);
|
|
166
|
+
t !== -1 ? k.items.splice(t, 1, e) : k.items.push(e);
|
|
167
167
|
},
|
|
168
168
|
setActiveItem: (e) => {
|
|
169
|
-
|
|
169
|
+
k.activeItem = e;
|
|
170
170
|
},
|
|
171
|
-
triggerEventListener: (e, t,
|
|
171
|
+
triggerEventListener: (e, t, n) => {
|
|
172
172
|
var f;
|
|
173
|
-
const l =
|
|
173
|
+
const l = k.eventListeners, { autoRemove: d = !1 } = n || {}, r = [];
|
|
174
174
|
for (const y in l) {
|
|
175
175
|
const i = l[y];
|
|
176
176
|
i.type === e && r.push(
|
|
@@ -182,10 +182,10 @@ const h = z({
|
|
|
182
182
|
return Promise.all(r).then(() => !0).catch(() => !1);
|
|
183
183
|
},
|
|
184
184
|
addEventListener: (e, t) => {
|
|
185
|
-
const
|
|
186
|
-
|
|
185
|
+
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
|
|
186
|
+
k.eventListeners[n] && delete k.eventListeners[n];
|
|
187
187
|
};
|
|
188
|
-
return
|
|
188
|
+
return k.eventListeners[n] = {
|
|
189
189
|
type: e,
|
|
190
190
|
handler: async (d) => {
|
|
191
191
|
try {
|
|
@@ -199,12 +199,12 @@ const h = z({
|
|
|
199
199
|
remove: l
|
|
200
200
|
};
|
|
201
201
|
}
|
|
202
|
-
},
|
|
202
|
+
}, W = K({
|
|
203
203
|
eventListeners: {}
|
|
204
|
-
}),
|
|
205
|
-
triggerEventListener: (e, t,
|
|
204
|
+
}), Re = {
|
|
205
|
+
triggerEventListener: (e, t, n) => {
|
|
206
206
|
var f;
|
|
207
|
-
const l =
|
|
207
|
+
const l = W.eventListeners, { autoRemove: d = !1 } = n || {}, r = [];
|
|
208
208
|
for (const y in l) {
|
|
209
209
|
const i = l[y];
|
|
210
210
|
i.type === e && r.push(
|
|
@@ -216,10 +216,10 @@ const h = z({
|
|
|
216
216
|
return Promise.all(r).then(() => !0).catch(() => !1);
|
|
217
217
|
},
|
|
218
218
|
addEventListener: (e, t) => {
|
|
219
|
-
const
|
|
220
|
-
|
|
219
|
+
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
|
|
220
|
+
W.eventListeners[n] && delete W.eventListeners[n];
|
|
221
221
|
};
|
|
222
|
-
return
|
|
222
|
+
return W.eventListeners[n] = {
|
|
223
223
|
type: e,
|
|
224
224
|
handler: async (d) => {
|
|
225
225
|
try {
|
|
@@ -233,31 +233,31 @@ const h = z({
|
|
|
233
233
|
remove: l
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
|
-
}, te =
|
|
236
|
+
}, te = K({
|
|
237
237
|
visible: !1,
|
|
238
238
|
style: {}
|
|
239
|
-
}),
|
|
239
|
+
}), Ae = {
|
|
240
240
|
set: (e, t) => {
|
|
241
241
|
te.visible = e, t || (t = {}), t.transition || (t.transition = "all 0.3s"), t && (te.style = t);
|
|
242
242
|
}
|
|
243
243
|
}, H = {
|
|
244
244
|
nav: h,
|
|
245
|
-
menu:
|
|
246
|
-
tab:
|
|
245
|
+
menu: A,
|
|
246
|
+
tab: k,
|
|
247
247
|
overlay: te,
|
|
248
|
-
iframeView:
|
|
248
|
+
iframeView: W,
|
|
249
249
|
visible: O(!0)
|
|
250
250
|
}, v = {
|
|
251
251
|
nav: ue,
|
|
252
252
|
menu: ve,
|
|
253
253
|
tab: de,
|
|
254
|
-
overlay:
|
|
255
|
-
iframeView:
|
|
254
|
+
overlay: Ae,
|
|
255
|
+
iframeView: Re,
|
|
256
256
|
setVisible: (e) => H.visible.value = e,
|
|
257
257
|
setTheme: (e) => {
|
|
258
258
|
ue.setTheme(e), ve.setTheme(e), de.setTheme(e);
|
|
259
259
|
}
|
|
260
|
-
}, Ve = ["name"], Pe = ["name"], Se = /* @__PURE__ */
|
|
260
|
+
}, Ve = ["name"], Pe = ["name"], Se = /* @__PURE__ */ z({
|
|
261
261
|
__name: "das-iframe-router-view",
|
|
262
262
|
props: {
|
|
263
263
|
needTransition: { type: Boolean },
|
|
@@ -265,40 +265,40 @@ const h = z({
|
|
|
265
265
|
exclude: { default: () => [] }
|
|
266
266
|
},
|
|
267
267
|
setup(e) {
|
|
268
|
-
const t = e,
|
|
269
|
-
const { mode:
|
|
268
|
+
const t = e, n = u(() => {
|
|
269
|
+
const { mode: s = "", ...a } = {
|
|
270
270
|
mode: "out-in",
|
|
271
271
|
"enter-active-class": "animate__animated animate__fadeInLeft",
|
|
272
272
|
...t.transitionConfig || {}
|
|
273
273
|
};
|
|
274
274
|
return a;
|
|
275
|
-
}), l = Le(), d = me(), r = O([]), f = u(() => r.value.filter((
|
|
275
|
+
}), l = Le(), d = me(), r = O([]), f = u(() => r.value.filter((s) => {
|
|
276
276
|
var a;
|
|
277
|
-
return (a =
|
|
278
|
-
})), y = (
|
|
279
|
-
const a =
|
|
280
|
-
let o = a !== -1 ?
|
|
277
|
+
return (a = s.meta) == null ? void 0 : a.isOpen;
|
|
278
|
+
})), y = (s) => {
|
|
279
|
+
const a = s.lastIndexOf("-");
|
|
280
|
+
let o = a !== -1 ? s.substring(a + 1) : "";
|
|
281
281
|
o === "0" ? o = "1" : o = "0", f.value.forEach((m) => {
|
|
282
|
-
m.meta.key ===
|
|
282
|
+
m.meta.key === s && (m.meta.key = `${m.path}-${o}`);
|
|
283
283
|
});
|
|
284
284
|
};
|
|
285
285
|
Z(
|
|
286
286
|
() => t.exclude,
|
|
287
|
-
(
|
|
288
|
-
if (!
|
|
289
|
-
const a = f.value.find((o) =>
|
|
287
|
+
(s) => {
|
|
288
|
+
if (!s || !s.length) return;
|
|
289
|
+
const a = f.value.find((o) => s.includes(o.path));
|
|
290
290
|
a && y(a.meta.key);
|
|
291
291
|
},
|
|
292
292
|
{ deep: !0 }
|
|
293
293
|
);
|
|
294
|
-
const i = async (
|
|
295
|
-
const a =
|
|
294
|
+
const i = async (s) => {
|
|
295
|
+
const a = s.component;
|
|
296
296
|
let o = null;
|
|
297
297
|
return typeof a == "function" ? o = (await a()).default : o = a, o;
|
|
298
298
|
}, P = async () => {
|
|
299
299
|
var a;
|
|
300
|
-
const
|
|
301
|
-
for (const o of
|
|
300
|
+
const s = l.options.routes;
|
|
301
|
+
for (const o of s)
|
|
302
302
|
if ((a = o == null ? void 0 : o.meta) != null && a.isIframe && !r.value.find((m) => m.path === o.path)) {
|
|
303
303
|
const m = await i(o);
|
|
304
304
|
r.value.push({
|
|
@@ -310,50 +310,46 @@ const h = z({
|
|
|
310
310
|
}, T = async () => {
|
|
311
311
|
var o, m;
|
|
312
312
|
if (!r.value || !r.value.length) return;
|
|
313
|
-
const
|
|
314
|
-
|
|
315
|
-
const a = r.value.find((
|
|
313
|
+
const s = r.value.find((C) => C.meta.isShow);
|
|
314
|
+
s && (s.meta.isShow = !1, await oe(), v.iframeView.triggerEventListener("onDeactivated", { route: s }));
|
|
315
|
+
const a = r.value.find((C) => C.path === d.path);
|
|
316
316
|
a && ((o = a.meta) != null && o.isOpen || (a.meta.isOpen = !0), (m = a.meta) != null && m.isShow || (a.meta.isShow = !0), await oe(), v.iframeView.triggerEventListener("onActivated", { route: a }));
|
|
317
317
|
};
|
|
318
318
|
let S = 0;
|
|
319
319
|
return Z(
|
|
320
320
|
() => l.currentRoute.value,
|
|
321
321
|
() => {
|
|
322
|
-
const
|
|
323
|
-
|
|
322
|
+
const s = l.options.routes.length;
|
|
323
|
+
s !== S ? (P(), S = s) : T();
|
|
324
324
|
},
|
|
325
325
|
{ immediate: !0 }
|
|
326
326
|
), v.iframeView.addEventListener("onRefreshCurrentPage", () => {
|
|
327
|
-
f.value.forEach((
|
|
327
|
+
f.value.forEach((s) => {
|
|
328
328
|
var a;
|
|
329
|
-
(a =
|
|
329
|
+
(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"));
|
|
330
330
|
});
|
|
331
|
-
}), v.iframeView.addEventListener("
|
|
332
|
-
|
|
333
|
-
a.path ===
|
|
331
|
+
}), v.iframeView.addEventListener("onUnloadPage", (s) => {
|
|
332
|
+
r.value.forEach((a) => {
|
|
333
|
+
a.path === s && (a.meta.isOpen = !1);
|
|
334
334
|
});
|
|
335
|
-
}),
|
|
336
|
-
f.value.forEach((n) => {
|
|
337
|
-
n.meta.key.includes("0") ? n.meta.key = n.meta.key.replaceAll("0", "1") : n.meta.key = n.meta.key.replaceAll("1", "0");
|
|
338
|
-
});
|
|
339
|
-
}), (n, a) => (p(), I(
|
|
335
|
+
}), (s, a) => (g(), I(
|
|
340
336
|
J,
|
|
341
337
|
null,
|
|
342
338
|
[
|
|
343
|
-
|
|
339
|
+
s.needTransition ? (g(), V(
|
|
344
340
|
he,
|
|
345
|
-
ee(ne({ key: 0 },
|
|
341
|
+
ee(ne({ key: 0 }, n.value)),
|
|
346
342
|
{
|
|
347
|
-
default:
|
|
348
|
-
(
|
|
343
|
+
default: U(() => [
|
|
344
|
+
(g(!0), I(
|
|
349
345
|
J,
|
|
350
346
|
null,
|
|
351
|
-
re(f.value, ({ path: o, meta: m }) => D((
|
|
347
|
+
re(f.value, ({ path: o, meta: m }) => D((g(), I("div", {
|
|
352
348
|
class: "das-iframe-router-view",
|
|
353
349
|
key: m.key,
|
|
354
350
|
name: o
|
|
355
351
|
}, [
|
|
356
|
-
(
|
|
352
|
+
(g(), V(N(m.componentInstance), {
|
|
357
353
|
key: m.key
|
|
358
354
|
}))
|
|
359
355
|
], 8, Ve)), [
|
|
@@ -369,15 +365,15 @@ const h = z({
|
|
|
369
365
|
16
|
|
370
366
|
/* FULL_PROPS */
|
|
371
367
|
)) : b("v-if", !0),
|
|
372
|
-
|
|
368
|
+
s.needTransition ? b("v-if", !0) : (g(!0), I(
|
|
373
369
|
J,
|
|
374
370
|
{ key: 1 },
|
|
375
|
-
re(f.value, ({ path: o, meta: m }) => D((
|
|
371
|
+
re(f.value, ({ path: o, meta: m }) => D((g(), I("div", {
|
|
376
372
|
class: "das-iframe-router-view",
|
|
377
373
|
key: m.key,
|
|
378
374
|
name: o
|
|
379
375
|
}, [
|
|
380
|
-
(
|
|
376
|
+
(g(), V(N(m.componentInstance), {
|
|
381
377
|
key: m.key
|
|
382
378
|
}))
|
|
383
379
|
], 8, Pe)), [
|
|
@@ -392,11 +388,11 @@ const h = z({
|
|
|
392
388
|
));
|
|
393
389
|
}
|
|
394
390
|
}), fe = (e, t) => {
|
|
395
|
-
const
|
|
391
|
+
const n = e.__vccOpts || e;
|
|
396
392
|
for (const [l, d] of t)
|
|
397
|
-
|
|
398
|
-
return
|
|
399
|
-
}, De = /* @__PURE__ */ fe(Se, [["__scopeId", "data-v-
|
|
393
|
+
n[l] = d;
|
|
394
|
+
return n;
|
|
395
|
+
}, De = /* @__PURE__ */ fe(Se, [["__scopeId", "data-v-6dd310c9"]]), Me = { class: "das-web-app-container" }, je = {
|
|
400
396
|
key: 0,
|
|
401
397
|
class: "das-web-app-header"
|
|
402
398
|
}, xe = { class: "das-web-app-main" }, $e = {
|
|
@@ -405,16 +401,16 @@ const h = z({
|
|
|
405
401
|
}, Be = { class: "das-web-app-main-container" }, He = {
|
|
406
402
|
key: 0,
|
|
407
403
|
class: "tab"
|
|
408
|
-
}, Fe = { class: "das-web-app-main-content" }, Ne = { class: "banner" }, Oe = { class: "das-web-app-main-router-view" },
|
|
404
|
+
}, Fe = { class: "das-web-app-main-content" }, Ne = { class: "banner" }, Oe = { class: "das-web-app-main-router-view" }, Ue = {
|
|
409
405
|
key: 0,
|
|
410
406
|
style: { width: "100%", height: "100%" }
|
|
411
|
-
},
|
|
407
|
+
}, We = {
|
|
412
408
|
key: 1,
|
|
413
409
|
style: { width: "100%", height: "100%" }
|
|
414
|
-
},
|
|
410
|
+
}, Ke = { style: { width: "100%", height: "100%" } }, ze = {
|
|
415
411
|
class: "micro-app",
|
|
416
412
|
style: { height: "100%", width: "100%" }
|
|
417
|
-
},
|
|
413
|
+
}, Qe = /* @__PURE__ */ z({
|
|
418
414
|
__name: "das-web-layout",
|
|
419
415
|
props: {
|
|
420
416
|
needTransition: { type: Boolean, default: !0 },
|
|
@@ -424,28 +420,29 @@ const h = z({
|
|
|
424
420
|
showTabs: { type: Boolean, default: !0 },
|
|
425
421
|
routerViewVisible: { type: Boolean, default: !0 },
|
|
426
422
|
excludeRoutes: {},
|
|
427
|
-
routeKeepAliveVisible: { type: Boolean, default: !0 }
|
|
423
|
+
routeKeepAliveVisible: { type: Boolean, default: !0 },
|
|
424
|
+
pageKey: { default: "0" }
|
|
428
425
|
},
|
|
429
426
|
setup(e) {
|
|
430
427
|
const t = e;
|
|
431
|
-
|
|
432
|
-
const
|
|
428
|
+
Ie(), ke(), Te();
|
|
429
|
+
const n = me(), l = O(!1), d = O(!1), r = O(!1), f = u(() => l.value && t.showLayout), y = u(() => d.value && t.showLayout && t.showAside), i = u(() => l.value && t.showLayout && t.showTabs), P = u(() => t.routerViewVisible ?? !0), T = u(() => H.overlay.visible ?? !1), S = u(() => ({
|
|
433
430
|
"das-web-app-overlay-show": T.value === !0,
|
|
434
431
|
"das-web-app-overlay-hide": T.value === !1,
|
|
435
432
|
"das-web-app-overlay-destroy": T.value === "destroy"
|
|
436
|
-
})),
|
|
433
|
+
})), s = u(() => H.overlay.style ?? { backgroundColor: "rgba(0,0,0,0.5)" }), a = u(() => t.excludeRoutes), o = u(() => t.routeKeepAliveVisible);
|
|
437
434
|
Z(
|
|
438
|
-
() => [
|
|
439
|
-
([
|
|
440
|
-
const { showLayout:
|
|
435
|
+
() => [n.meta, n.query],
|
|
436
|
+
([_, j]) => {
|
|
437
|
+
const { showLayout: R = !0, showAside: c = !0, showTabs: p = !0, layout: L = {} } = _, {
|
|
441
438
|
showLayout: x = !0,
|
|
442
|
-
showAside:
|
|
439
|
+
showAside: E = !0,
|
|
443
440
|
showTabs: se = !0,
|
|
444
|
-
app:
|
|
441
|
+
app: Xe
|
|
445
442
|
} = j;
|
|
446
|
-
|
|
443
|
+
Ce(L);
|
|
447
444
|
let ae = !0, q = !0, G = !0;
|
|
448
|
-
(
|
|
445
|
+
(R === !1 || x === !1 || x === "false") && (ae = !1, q = !1, G = !1), (c === !1 || E === !1 || E === "false") && (q = !1), (p === !1 || se === !1 || se === "false") && (G = !1), l.value = ae, d.value = q, r.value = G;
|
|
449
446
|
}
|
|
450
447
|
);
|
|
451
448
|
const m = u(() => ({
|
|
@@ -453,24 +450,24 @@ const h = z({
|
|
|
453
450
|
"enter-active-class": "animate__animated animate__fadeInLeft",
|
|
454
451
|
...t.transitionConfig || {}
|
|
455
452
|
}));
|
|
456
|
-
let
|
|
457
|
-
const
|
|
458
|
-
let
|
|
459
|
-
return
|
|
453
|
+
let C = /* @__PURE__ */ new Map();
|
|
454
|
+
const Q = (_, j) => {
|
|
455
|
+
let R;
|
|
456
|
+
return C.has(j) ? R = C.get(j) : (R = {
|
|
460
457
|
name: j,
|
|
461
458
|
render() {
|
|
462
|
-
return Y("div", { style: { width: "100%", height: "100%" } }, [Y(
|
|
459
|
+
return Y("div", { style: { width: "100%", height: "100%" } }, [Y(_)]);
|
|
463
460
|
}
|
|
464
|
-
},
|
|
461
|
+
}, C.set(j, R)), Y(R);
|
|
465
462
|
}, B = u(() => H.visible.value);
|
|
466
|
-
return (
|
|
467
|
-
const
|
|
468
|
-
return
|
|
463
|
+
return (_, j) => {
|
|
464
|
+
const R = ge("router-view");
|
|
465
|
+
return g(), I("div", Me, [
|
|
469
466
|
D($(
|
|
470
467
|
"div",
|
|
471
468
|
{
|
|
472
|
-
class:
|
|
473
|
-
style:
|
|
469
|
+
class: ye(["das-web-app-overlay", S.value]),
|
|
470
|
+
style: pe(s.value)
|
|
474
471
|
},
|
|
475
472
|
null,
|
|
476
473
|
6
|
|
@@ -478,11 +475,11 @@ const h = z({
|
|
|
478
475
|
), [
|
|
479
476
|
[M, B.value]
|
|
480
477
|
]),
|
|
481
|
-
f.value ? D((
|
|
478
|
+
f.value ? D((g(), I(
|
|
482
479
|
"div",
|
|
483
480
|
je,
|
|
484
481
|
[
|
|
485
|
-
F(
|
|
482
|
+
F(_.$slots, "header", {}, void 0, !0)
|
|
486
483
|
],
|
|
487
484
|
512
|
|
488
485
|
/* NEED_PATCH */
|
|
@@ -490,11 +487,11 @@ const h = z({
|
|
|
490
487
|
[M, B.value]
|
|
491
488
|
]) : b("v-if", !0),
|
|
492
489
|
$("div", xe, [
|
|
493
|
-
y.value ? D((
|
|
490
|
+
y.value ? D((g(), I(
|
|
494
491
|
"div",
|
|
495
492
|
$e,
|
|
496
493
|
[
|
|
497
|
-
F(
|
|
494
|
+
F(_.$slots, "aside", {}, void 0, !0)
|
|
498
495
|
],
|
|
499
496
|
512
|
|
500
497
|
/* NEED_PATCH */
|
|
@@ -502,11 +499,11 @@ const h = z({
|
|
|
502
499
|
[M, B.value]
|
|
503
500
|
]) : b("v-if", !0),
|
|
504
501
|
$("div", Be, [
|
|
505
|
-
i.value ? D((
|
|
502
|
+
i.value ? D((g(), I(
|
|
506
503
|
"div",
|
|
507
504
|
He,
|
|
508
505
|
[
|
|
509
|
-
F(
|
|
506
|
+
F(_.$slots, "tab", {}, void 0, !0)
|
|
510
507
|
],
|
|
511
508
|
512
|
|
512
509
|
/* NEED_PATCH */
|
|
@@ -518,7 +515,7 @@ const h = z({
|
|
|
518
515
|
"div",
|
|
519
516
|
Ne,
|
|
520
517
|
[
|
|
521
|
-
F(
|
|
518
|
+
F(_.$slots, "banner", {}, void 0, !0)
|
|
522
519
|
],
|
|
523
520
|
512
|
|
524
521
|
/* NEED_PATCH */
|
|
@@ -526,105 +523,102 @@ const h = z({
|
|
|
526
523
|
[M, B.value]
|
|
527
524
|
]),
|
|
528
525
|
$("div", Oe, [
|
|
529
|
-
D(
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
512
|
|
619
|
-
/* NEED_PATCH */
|
|
620
|
-
), [
|
|
526
|
+
D((g(), I("div", {
|
|
527
|
+
key: _.pageKey,
|
|
528
|
+
style: { width: "100%", height: "100%" }
|
|
529
|
+
}, [
|
|
530
|
+
F(_.$slots, "router-view", {}, () => [
|
|
531
|
+
b(" 有动画 "),
|
|
532
|
+
_.needTransition ? (g(), V(R, { key: 0 }, {
|
|
533
|
+
default: U(({ Component: c }) => [
|
|
534
|
+
X(
|
|
535
|
+
ie,
|
|
536
|
+
ee(le(m.value)),
|
|
537
|
+
{
|
|
538
|
+
default: U(() => {
|
|
539
|
+
var p;
|
|
540
|
+
return [
|
|
541
|
+
w(n).meta.keepAlive ? (g(), V(ce, {
|
|
542
|
+
key: 0,
|
|
543
|
+
exclude: a.value
|
|
544
|
+
}, [
|
|
545
|
+
o.value && !((p = w(n).meta) != null && p.isIframe) ? (g(), V(N(Q(c, w(n).path)), {
|
|
546
|
+
key: w(n).path
|
|
547
|
+
})) : b("v-if", !0)
|
|
548
|
+
], 1032, ["exclude"])) : b("v-if", !0)
|
|
549
|
+
];
|
|
550
|
+
}),
|
|
551
|
+
_: 2
|
|
552
|
+
/* DYNAMIC */
|
|
553
|
+
},
|
|
554
|
+
1040
|
|
555
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
556
|
+
),
|
|
557
|
+
X(
|
|
558
|
+
ie,
|
|
559
|
+
ee(le(m.value)),
|
|
560
|
+
{
|
|
561
|
+
default: U(() => [
|
|
562
|
+
!w(n).meta.keepAlive && !w(n).meta.isIframe ? (g(), I("div", Ue, [
|
|
563
|
+
(g(), V(N(c), {
|
|
564
|
+
key: w(n).path
|
|
565
|
+
}))
|
|
566
|
+
])) : b("v-if", !0)
|
|
567
|
+
]),
|
|
568
|
+
_: 2
|
|
569
|
+
/* DYNAMIC */
|
|
570
|
+
},
|
|
571
|
+
1040
|
|
572
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
573
|
+
)
|
|
574
|
+
]),
|
|
575
|
+
_: 1
|
|
576
|
+
/* STABLE */
|
|
577
|
+
})) : b("v-if", !0),
|
|
578
|
+
b(" 无动画 "),
|
|
579
|
+
_.needTransition ? b("v-if", !0) : (g(), V(R, { key: 1 }, {
|
|
580
|
+
default: U(({ Component: c }) => [
|
|
581
|
+
w(n).meta.keepAlive ? (g(), V(ce, {
|
|
582
|
+
key: 0,
|
|
583
|
+
exclude: a.value
|
|
584
|
+
}, [
|
|
585
|
+
o.value && !w(n).meta.isIframe ? (g(), V(N(Q(c, w(n).path)), {
|
|
586
|
+
key: w(n).path
|
|
587
|
+
})) : b("v-if", !0)
|
|
588
|
+
], 1032, ["exclude"])) : b("v-if", !0),
|
|
589
|
+
!w(n).meta.keepAlive && !w(n).meta.isIframe ? (g(), I("div", We, [
|
|
590
|
+
(g(), V(N(c), {
|
|
591
|
+
key: w(n).path
|
|
592
|
+
}))
|
|
593
|
+
])) : b("v-if", !0)
|
|
594
|
+
]),
|
|
595
|
+
_: 1
|
|
596
|
+
/* STABLE */
|
|
597
|
+
})),
|
|
598
|
+
D($(
|
|
599
|
+
"div",
|
|
600
|
+
Ke,
|
|
601
|
+
[
|
|
602
|
+
X(De, {
|
|
603
|
+
exclude: a.value,
|
|
604
|
+
transitionConfig: m.value,
|
|
605
|
+
needTransition: _.needTransition
|
|
606
|
+
}, null, 8, ["exclude", "transitionConfig", "needTransition"])
|
|
607
|
+
],
|
|
608
|
+
512
|
|
609
|
+
/* NEED_PATCH */
|
|
610
|
+
), [
|
|
611
|
+
[M, w(n).meta.isIframe]
|
|
612
|
+
])
|
|
613
|
+
], !0)
|
|
614
|
+
])), [
|
|
621
615
|
[M, P.value]
|
|
622
616
|
]),
|
|
623
617
|
D($(
|
|
624
618
|
"div",
|
|
625
|
-
|
|
619
|
+
ze,
|
|
626
620
|
[
|
|
627
|
-
F(
|
|
621
|
+
F(_.$slots, "default", {}, void 0, !0)
|
|
628
622
|
],
|
|
629
623
|
512
|
|
630
624
|
/* NEED_PATCH */
|
|
@@ -638,23 +632,23 @@ const h = z({
|
|
|
638
632
|
]);
|
|
639
633
|
};
|
|
640
634
|
}
|
|
641
|
-
}),
|
|
635
|
+
}), st = /* @__PURE__ */ fe(Qe, [["__scopeId", "data-v-e2af5217"]]), qe = ["theme", "modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], at = /* @__PURE__ */ z({
|
|
642
636
|
__name: "das-web-nav",
|
|
643
637
|
setup(e) {
|
|
644
|
-
const { nav: t } = H,
|
|
645
|
-
var c,
|
|
638
|
+
const { nav: t } = H, n = u(() => t.theme), l = u(() => t.logo || ""), d = u(() => t.activeItem || ""), r = u(() => (t.items || []).filter((p) => p.fixed)), f = u(() => (t.items || []).filter((p) => !p.fixed)), y = u(() => {
|
|
639
|
+
var c, p, L, x;
|
|
646
640
|
return {
|
|
647
641
|
showFullScreen: ((c = t.config) == null ? void 0 : c.showFullScreen) ?? !1,
|
|
648
|
-
showChangeEnterprise: ((
|
|
649
|
-
showSearch: ((
|
|
642
|
+
showChangeEnterprise: ((p = t.config) == null ? void 0 : p.showChangeEnterprise) ?? !1,
|
|
643
|
+
showSearch: ((L = t.config) == null ? void 0 : L.showSearch) ?? !0,
|
|
650
644
|
showProjectTree: ((x = t.config) == null ? void 0 : x.showProjectTree) ?? !0,
|
|
651
|
-
subAppList: f.value.map((
|
|
645
|
+
subAppList: f.value.map((E) => ({ code: E.value, name: E.label, ...E }))
|
|
652
646
|
};
|
|
653
647
|
}), i = u(() => {
|
|
654
|
-
const c = r.value.find((
|
|
648
|
+
const c = r.value.find((p) => p.value === t.activeItem);
|
|
655
649
|
return {
|
|
656
650
|
activeInnerPagePath: (c == null ? void 0 : c.path) || "",
|
|
657
|
-
innerPages: r.value.map((
|
|
651
|
+
innerPages: r.value.map((p) => ({ title: p.label, ...p }))
|
|
658
652
|
};
|
|
659
653
|
}), P = u(() => ({
|
|
660
654
|
projectStore: {
|
|
@@ -662,29 +656,29 @@ const h = z({
|
|
|
662
656
|
currentProject: t.activeProject
|
|
663
657
|
},
|
|
664
658
|
...t.projectConfig
|
|
665
|
-
})), T = u(() => t.userInfo), S = u(() => t.searchConfig),
|
|
666
|
-
const
|
|
667
|
-
await v.nav.triggerEventListener("onItemClick",
|
|
659
|
+
})), T = u(() => t.userInfo), S = u(() => t.searchConfig), s = async (c) => {
|
|
660
|
+
const p = c.detail[0], L = r.value.find((E) => p.value === E.value);
|
|
661
|
+
await v.nav.triggerEventListener("onItemClick", L) && v.nav.setActiveItem(L.value);
|
|
668
662
|
}, a = async (c) => {
|
|
669
|
-
const
|
|
670
|
-
await v.nav.triggerEventListener("onItemClick",
|
|
663
|
+
const p = c.detail[0], L = f.value.find((E) => p === E.value);
|
|
664
|
+
await v.nav.triggerEventListener("onItemClick", L) && v.nav.setActiveItem(L.value);
|
|
671
665
|
}, o = async (c) => {
|
|
672
|
-
const
|
|
673
|
-
await v.nav.triggerEventListener("onItemRemove",
|
|
666
|
+
const p = c.detail[0], L = f.value.find((E) => p === E.value);
|
|
667
|
+
await v.nav.triggerEventListener("onItemRemove", L) && v.nav.removeItem(L.value);
|
|
674
668
|
}, m = async (c) => {
|
|
675
|
-
const [
|
|
676
|
-
!
|
|
677
|
-
},
|
|
669
|
+
const [p, L] = c.detail;
|
|
670
|
+
!p || !await v.nav.triggerEventListener("onProjectChange", L) || v.nav.setActiveProject(L);
|
|
671
|
+
}, C = (c) => {
|
|
678
672
|
v.nav.triggerEventListener("onUserCommandChange", c.detail[0]);
|
|
679
|
-
},
|
|
673
|
+
}, Q = (c) => {
|
|
680
674
|
v.nav.triggerEventListener("searchToPage", { item: c.detail[0], keyword: c.detail[1], cb: c.detail[2] });
|
|
681
675
|
}, B = (c) => {
|
|
682
676
|
v.nav.triggerEventListener("clearSearchList", { cb: c.detail[0] });
|
|
683
|
-
},
|
|
677
|
+
}, _ = (c) => {
|
|
684
678
|
v.nav.triggerEventListener("deleteSearchItem", { value: c.detail[0], cb: c.detail[1] });
|
|
685
679
|
}, j = () => {
|
|
686
680
|
v.nav.triggerEventListener("changeEnterpriseHandle");
|
|
687
|
-
},
|
|
681
|
+
}, R = () => {
|
|
688
682
|
v.nav.triggerEventListener("fullScreenHandle");
|
|
689
683
|
};
|
|
690
684
|
return we(() => {
|
|
@@ -693,8 +687,8 @@ const h = z({
|
|
|
693
687
|
v.nav.triggerEventListener("onMounted", null, { autoRemove: !0 });
|
|
694
688
|
}), _e(() => {
|
|
695
689
|
v.nav.triggerEventListener("onUnmounted", null, { autoRemove: !0 });
|
|
696
|
-
}), (c,
|
|
697
|
-
theme:
|
|
690
|
+
}), (c, p) => (g(), I("das-ce-nav", {
|
|
691
|
+
theme: n.value,
|
|
698
692
|
modelValue: d.value,
|
|
699
693
|
logoUrl: l.value,
|
|
700
694
|
config: y.value,
|
|
@@ -702,31 +696,31 @@ const h = z({
|
|
|
702
696
|
searchConfig: S.value,
|
|
703
697
|
projectTreeConfig: P.value,
|
|
704
698
|
userInfoConfig: T.value,
|
|
705
|
-
"on:userCommandHandle":
|
|
706
|
-
"on:changeInnerPage":
|
|
699
|
+
"on:userCommandHandle": C,
|
|
700
|
+
"on:changeInnerPage": s,
|
|
707
701
|
"on:handleTabClick": a,
|
|
708
702
|
"on:handleTabDelete": o,
|
|
709
703
|
"on:changeTreeHandle": m,
|
|
710
|
-
"on:searchToPage":
|
|
704
|
+
"on:searchToPage": Q,
|
|
711
705
|
"on:clearSearchList": B,
|
|
712
|
-
"on:deleteSearchItem":
|
|
706
|
+
"on:deleteSearchItem": _,
|
|
713
707
|
"on:changeEnterpriseHandle": j,
|
|
714
|
-
"on:fullScreen":
|
|
715
|
-
}, null, 40,
|
|
708
|
+
"on:fullScreen": R
|
|
709
|
+
}, null, 40, qe));
|
|
716
710
|
}
|
|
717
|
-
}),
|
|
711
|
+
}), Ge = ["theme", "modelValue", "data", "collapse", "fixedTopMenu", "subMenuAttrs"], rt = /* @__PURE__ */ z({
|
|
718
712
|
__name: "das-web-menu",
|
|
719
713
|
props: {
|
|
720
714
|
menuAttr: {}
|
|
721
715
|
},
|
|
722
716
|
setup(e) {
|
|
723
|
-
const { menu: t } = H,
|
|
724
|
-
const a =
|
|
717
|
+
const { menu: t } = H, n = e, l = u(() => t.theme), d = u(() => n.menuAttr || {}), r = u(() => t.items), f = u(() => t.items.find((s) => s.fixed)), y = u(() => t.activeItem || ""), i = u(() => t.collapse || !1), P = u(() => ({ popupClassName: t.popupClassName ?? "" })), T = async (s) => {
|
|
718
|
+
const a = s.detail[0], o = Ee(r.value).find((C) => a === C.id);
|
|
725
719
|
await v.menu.triggerEventListener("onItemClick", o) && v.menu.setActiveItem(o.id);
|
|
726
|
-
}, S = (
|
|
727
|
-
v.menu.setCollapse(
|
|
720
|
+
}, S = (s) => {
|
|
721
|
+
v.menu.setCollapse(s.detail[0]), v.menu.triggerEventListener("toggleCollapse", s.detail[0]);
|
|
728
722
|
};
|
|
729
|
-
return (
|
|
723
|
+
return (s, a) => r.value.length > 0 ? (g(), I("das-ce-menu", ne({
|
|
730
724
|
key: 0,
|
|
731
725
|
theme: l.value,
|
|
732
726
|
modelValue: y.value,
|
|
@@ -737,32 +731,32 @@ const h = z({
|
|
|
737
731
|
}, d.value, {
|
|
738
732
|
onChange: T,
|
|
739
733
|
"on:toggleCollapse": S
|
|
740
|
-
}), null, 16,
|
|
734
|
+
}), null, 16, Ge)) : b("v-if", !0);
|
|
741
735
|
}
|
|
742
|
-
}),
|
|
736
|
+
}), Je = ["theme", "modelValue", "options"], ot = /* @__PURE__ */ z({
|
|
743
737
|
__name: "das-web-tabs",
|
|
744
738
|
props: {
|
|
745
739
|
tabsAttr: {}
|
|
746
740
|
},
|
|
747
741
|
setup(e) {
|
|
748
|
-
const { tab: t } = H,
|
|
749
|
-
...
|
|
750
|
-
key:
|
|
751
|
-
tab:
|
|
752
|
-
}))), f = u(() => t.activeItem || ""), y = async (
|
|
753
|
-
const a =
|
|
742
|
+
const { tab: t } = H, n = e, l = u(() => n.tabsAttr || {}), d = u(() => t.theme), r = u(() => t.items.map((s) => ({
|
|
743
|
+
...s,
|
|
744
|
+
key: s.value,
|
|
745
|
+
tab: s.label
|
|
746
|
+
}))), f = u(() => t.activeItem || ""), y = async (s) => {
|
|
747
|
+
const a = s.detail[0], o = r.value.find((C) => a === C.value);
|
|
754
748
|
await v.tab.triggerEventListener("onItemClick", o) && v.tab.setActiveItem(o.value);
|
|
755
|
-
}, i = async (
|
|
756
|
-
const a =
|
|
749
|
+
}, i = async (s) => {
|
|
750
|
+
const a = s.detail[0], o = r.value.find((C) => a === C.value);
|
|
757
751
|
await v.tab.triggerEventListener("onItemRemove", o) && v.tab.removeItem(o.value);
|
|
758
|
-
}, P = async (
|
|
759
|
-
await v.tab.triggerEventListener("onMenuClick", { type:
|
|
760
|
-
}, T = async (
|
|
761
|
-
await v.tab.triggerEventListener("onPageRefresh",
|
|
752
|
+
}, P = async (s) => {
|
|
753
|
+
await v.tab.triggerEventListener("onMenuClick", { type: s.detail[0], data: s.detail[1] });
|
|
754
|
+
}, T = async (s) => {
|
|
755
|
+
await v.tab.triggerEventListener("onPageRefresh", s.detail[0]);
|
|
762
756
|
}, S = () => {
|
|
763
757
|
v.tab.triggerEventListener("onToggleFullScreen");
|
|
764
758
|
};
|
|
765
|
-
return (
|
|
759
|
+
return (s, a) => r.value.length > 0 ? (g(), I("das-ce-tabs", ne({
|
|
766
760
|
key: 0,
|
|
767
761
|
theme: d.value,
|
|
768
762
|
modelValue: f.value,
|
|
@@ -773,15 +767,15 @@ const h = z({
|
|
|
773
767
|
"on:menuClick": P,
|
|
774
768
|
"on:pageRefresh": T,
|
|
775
769
|
"on:toggleFullScreen": S
|
|
776
|
-
}), null, 16,
|
|
770
|
+
}), null, 16, Je)) : b("v-if", !0);
|
|
777
771
|
}
|
|
778
772
|
});
|
|
779
773
|
O("@das-fed/web");
|
|
780
774
|
export {
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
775
|
+
st as DasWebLayout,
|
|
776
|
+
rt as DasWebMenu,
|
|
777
|
+
at as DasWebNav,
|
|
778
|
+
ot as DasWebTabs,
|
|
785
779
|
v as layout,
|
|
786
780
|
H as layoutData
|
|
787
781
|
};
|