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