@das-fed/web 6.4.0-test.1 → 6.4.0-test.2.1

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