@das-fed/web 6.4.0-hot.9.1 → 6.4.0-test.2

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