@das-fed/web 6.4.0-dev.11 → 6.4.0-dev.13

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