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