@das-fed/web 6.4.0-hot.36 → 6.4.0-hot.38

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 (64) hide show
  1. package/{index-pa8JpqiR.js → index-Do-hi0sT.js} +6392 -5785
  2. package/index-Do-hi0sT.js.gz +0 -0
  3. package/index-Ho3juDFP.js +10 -0
  4. package/index-ybkIe7Qx.js +87 -0
  5. package/index-ybkIe7Qx.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 +321 -232
  11. package/packages/layout/index.js.gz +0 -0
  12. package/packages/main-app-framework/{index-PIgnnyL3.js → index-By_I7kxF.js} +4148 -3649
  13. package/packages/main-app-framework/index-By_I7kxF.js.gz +0 -0
  14. package/packages/main-app-framework/index-D6tSxSCm.js +10 -0
  15. package/packages/main-app-framework/index-uy_tfCFy.js +87 -0
  16. package/packages/main-app-framework/index-uy_tfCFy.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 +111 -97
  21. package/packages/micro-frontend/index.js.gz +0 -0
  22. package/packages/style/style.css +1 -1
  23. package/packages/style/style.css.gz +0 -0
  24. package/style.css +1 -1
  25. package/style.css.gz +0 -0
  26. package/types/create-das-web-app/index.d.ts +1 -1
  27. package/types/i18n/index.d.ts +3 -3
  28. package/types/layout/store/index.d.ts +1 -1
  29. package/types/main-app-framework/business/alarm/use-alarm.d.ts +4 -4
  30. package/types/main-app-framework/business/message-notify/index.d.ts +1 -0
  31. package/types/main-app-framework/business/remote-control/apis.d.ts +2 -0
  32. package/types/main-app-framework/business/remote-control/utils.d.ts +7 -0
  33. package/types/main-app-framework/business/video-link/index.d.ts +3 -3
  34. package/types/main-app-framework/business/video-link/video-dialog/hooks/PlayerProvider.d.ts +3 -3
  35. package/types/main-app-framework/components/person-set-dialog/index.d.ts +1 -1
  36. package/types/main-app-framework/components/person-set-dialog/src/api.d.ts +2 -0
  37. package/types/main-app-framework/components/person-set-dialog/src/components/index.d.ts +1 -0
  38. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-builtIn-dialog.d.ts +6 -6
  39. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-notBuiltIn-dialog.d.ts +10 -10
  40. package/types/main-app-framework/i18n/index.d.ts +20 -0
  41. package/types/main-app-framework/index.d.ts +2 -2
  42. package/types/main-app-framework/init-config/get-nav-config/index.d.ts +4 -3
  43. package/types/main-app-framework/init-config/get-system-config/api.d.ts +2 -0
  44. package/types/main-app-framework/init-config/get-system-config/index.d.ts +6 -4
  45. package/types/main-app-framework/init-config/get-tenant-config/api.d.ts +3 -1
  46. package/types/main-app-framework/init-config/get-tenant-config/index.d.ts +2 -0
  47. package/types/main-app-framework/init-layout/hooks/nav-slots/index.d.ts +1 -0
  48. package/types/main-app-framework/init-layout/hooks/nav-slots/use-ai-helper.d.ts +4 -0
  49. package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +3 -3
  50. package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +2 -2
  51. package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +5 -5
  52. package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +3 -3
  53. package/types/main-app-framework/init-platform/index.d.ts +1 -1
  54. package/types/main-app-framework/utils/src/set-common-info.d.ts +2 -0
  55. package/types/micro-frontend/store.d.ts +5 -5
  56. package/types/theme/index.d.ts +1 -1
  57. package/index-BR2K2L20.js +0 -10
  58. package/index-CqHbFeJ4.js +0 -81
  59. package/index-CqHbFeJ4.js.gz +0 -0
  60. package/index-pa8JpqiR.js.gz +0 -0
  61. package/packages/main-app-framework/index-D-yLFNAt.js +0 -10
  62. package/packages/main-app-framework/index-PIgnnyL3.js.gz +0 -0
  63. package/packages/main-app-framework/index-gbopgvrS.js +0 -81
  64. package/packages/main-app-framework/index-gbopgvrS.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, openBlock as g, createElementBlock as I, Fragment as J, createBlock as V, 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, createCommentVNode as C, nextTick as oe, resolveComponent as ge, createElementVNode as $, normalizeClass as pe, normalizeStyle 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((L) => L.meta.isShow);
314
- s && (s.meta.isShow = !1, await oe(), v.iframeView.triggerEventListener("onDeactivated", { route: s }));
315
- const a = r.value.find((L) => L.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,60 +332,85 @@ 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(J, null, [
336
- s.needTransition ? (g(), V(he, ee(ne({ key: 0 }, n.value)), {
337
- default: U(() => [
338
- (g(!0), I(J, null, re(f.value, ({ path: o, meta: m }) => D((g(), I("div", {
335
+ }), (s, a) => (g(), C(
336
+ Y,
337
+ null,
338
+ [
339
+ s.needTransition ? (g(), V(
340
+ ge,
341
+ ne(ae({ key: 0 }, n.value)),
342
+ {
343
+ default: W(() => [
344
+ (g(!0), C(
345
+ Y,
346
+ null,
347
+ oe(f.value, ({ path: o, meta: m }) => D((g(), C("div", {
348
+ class: "das-iframe-router-view",
349
+ key: m.key,
350
+ name: o
351
+ }, [
352
+ (g(), V(O(m.componentInstance), {
353
+ key: m.key
354
+ }))
355
+ ], 8, Pe)), [
356
+ [M, m.componentInstance && o === b(d).path]
357
+ ])),
358
+ 128
359
+ /* KEYED_FRAGMENT */
360
+ ))
361
+ ]),
362
+ _: 1
363
+ /* STABLE */
364
+ },
365
+ 16
366
+ /* FULL_PROPS */
367
+ )) : L("v-if", !0),
368
+ s.needTransition ? L("v-if", !0) : (g(!0), C(
369
+ Y,
370
+ { key: 1 },
371
+ oe(f.value, ({ path: o, meta: m }) => D((g(), C("div", {
339
372
  class: "das-iframe-router-view",
340
373
  key: m.key,
341
374
  name: o
342
375
  }, [
343
- (g(), V(N(m.componentInstance), {
376
+ (g(), V(O(m.componentInstance), {
344
377
  key: m.key
345
378
  }))
346
- ], 8, Ve)), [
347
- [M, m.componentInstance && o === w(d).path]
348
- ])), 128))
349
- ]),
350
- _: 1
351
- }, 16)) : C("", !0),
352
- s.needTransition ? C("", !0) : (g(!0), I(J, { key: 1 }, re(f.value, ({ path: o, meta: m }) => D((g(), I("div", {
353
- class: "das-iframe-router-view",
354
- key: m.key,
355
- name: o
356
- }, [
357
- (g(), V(N(m.componentInstance), {
358
- key: m.key
359
- }))
360
- ], 8, Pe)), [
361
- [M, m.componentInstance && o === w(d).path]
362
- ])), 128))
363
- ], 64));
379
+ ], 8, Se)), [
380
+ [M, m.componentInstance && o === b(d).path]
381
+ ])),
382
+ 128
383
+ /* KEYED_FRAGMENT */
384
+ ))
385
+ ],
386
+ 64
387
+ /* STABLE_FRAGMENT */
388
+ ));
364
389
  }
365
- }), fe = (e, t) => {
390
+ }), he = (e, t) => {
366
391
  const n = e.__vccOpts || e;
367
392
  for (const [l, d] of t)
368
393
  n[l] = d;
369
394
  return n;
370
- }, 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 = {
371
396
  key: 0,
372
397
  class: "das-web-app-header"
373
- }, xe = { class: "das-web-app-main" }, $e = {
398
+ }, $e = { class: "das-web-app-main" }, He = {
374
399
  key: 0,
375
400
  class: "aside"
376
- }, Be = { class: "das-web-app-main-container" }, He = {
401
+ }, Be = { class: "das-web-app-main-container" }, Fe = {
377
402
  key: 0,
378
403
  class: "tab"
379
- }, 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 = {
380
405
  key: 0,
381
406
  style: { width: "100%", height: "100%" }
382
- }, We = {
407
+ }, Ke = {
383
408
  key: 1,
384
409
  style: { width: "100%", height: "100%" }
385
- }, Ke = { style: { width: "100%", height: "100%" } }, ze = {
410
+ }, ze = { style: { width: "100%", height: "100%" } }, Qe = {
386
411
  class: "micro-app",
387
412
  style: { height: "100%", width: "100%" }
388
- }, Qe = /* @__PURE__ */ z({
413
+ }, qe = /* @__PURE__ */ Q({
389
414
  __name: "das-web-layout",
390
415
  props: {
391
416
  needTransition: { type: Boolean, default: !0 },
@@ -400,144 +425,204 @@ const h = K({
400
425
  },
401
426
  setup(e) {
402
427
  const t = e;
403
- Ie(), ke(), Te();
404
- 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(() => ({
405
430
  "das-web-app-overlay-show": T.value === !0,
406
431
  "das-web-app-overlay-hide": T.value === !1,
407
432
  "das-web-app-overlay-destroy": T.value === "destroy"
408
- })), s = u(() => H.overlay.style ?? { backgroundColor: "rgba(0,0,0,0.5)" }), a = u(() => t.excludeRoutes), o = u(() => t.routeKeepAliveVisible);
409
- Z(
433
+ })), s = c(() => F.overlay.style ?? { backgroundColor: "rgba(0,0,0,0.5)" }), a = c(() => t.excludeRoutes), o = c(() => t.routeKeepAliveVisible);
434
+ te(
410
435
  () => [n.meta, n.query],
411
- ([b, j]) => {
412
- const { showLayout: R = !0, showAside: c = !0, showTabs: p = !0, layout: _ = {} } = b, {
413
- showLayout: x = !0,
414
- showAside: E = !0,
415
- showTabs: se = !0,
416
- app: Xe
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
417
442
  } = j;
418
- Ce(_);
419
- let ae = !0, q = !0, G = !0;
420
- (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;
421
446
  }
422
447
  );
423
- const m = u(() => ({
448
+ const m = c(() => ({
424
449
  mode: "out-in",
425
450
  "enter-active-class": "animate__animated animate__fadeInLeft",
426
451
  ...t.transitionConfig || {}
427
452
  }));
428
- let L = /* @__PURE__ */ new Map();
429
- const Q = (b, j) => {
430
- let R;
431
- return L.has(j) ? R = L.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 = {
432
457
  name: j,
433
458
  render() {
434
- return Y("div", { style: { width: "100%", height: "100%" } }, [Y(b)]);
459
+ return ee("div", { style: { width: "100%", height: "100%" } }, [ee(_)]);
435
460
  }
436
- }, L.set(j, R)), Y(R);
437
- }, B = u(() => H.visible.value);
438
- return (b, j) => {
439
- const R = ge("router-view");
440
- return g(), I("div", Me, [
441
- D($("div", {
442
- class: pe(["das-web-app-overlay", S.value]),
443
- style: ye(s.value)
444
- }, null, 6), [
461
+ }, I.set(j, A)), ee(A);
462
+ }, B = c(() => F.visible.value);
463
+ return (_, j) => {
464
+ const A = pe("router-view");
465
+ return g(), C("div", je, [
466
+ D(H(
467
+ "div",
468
+ {
469
+ class: we(["das-web-app-overlay", S.value]),
470
+ style: ye(s.value)
471
+ },
472
+ null,
473
+ 6
474
+ /* CLASS, STYLE */
475
+ ), [
445
476
  [M, B.value]
446
477
  ]),
447
- f.value ? D((g(), I("div", je, [
448
- F(b.$slots, "header", {}, void 0, !0)
449
- ], 512)), [
478
+ f.value ? D((g(), C(
479
+ "div",
480
+ xe,
481
+ [
482
+ N(_.$slots, "header", {}, void 0, !0)
483
+ ],
484
+ 512
485
+ /* NEED_PATCH */
486
+ )), [
450
487
  [M, B.value]
451
- ]) : C("", !0),
452
- $("div", xe, [
453
- y.value ? D((g(), I("div", $e, [
454
- F(b.$slots, "aside", {}, void 0, !0)
455
- ], 512)), [
488
+ ]) : L("v-if", !0),
489
+ H("div", $e, [
490
+ y.value ? D((g(), C(
491
+ "div",
492
+ He,
493
+ [
494
+ N(_.$slots, "aside", {}, void 0, !0)
495
+ ],
496
+ 512
497
+ /* NEED_PATCH */
498
+ )), [
456
499
  [M, B.value]
457
- ]) : C("", !0),
458
- $("div", Be, [
459
- i.value ? D((g(), I("div", He, [
460
- F(b.$slots, "tab", {}, void 0, !0)
461
- ], 512)), [
500
+ ]) : L("v-if", !0),
501
+ H("div", Be, [
502
+ i.value ? D((g(), C(
503
+ "div",
504
+ Fe,
505
+ [
506
+ N(_.$slots, "tab", {}, void 0, !0)
507
+ ],
508
+ 512
509
+ /* NEED_PATCH */
510
+ )), [
462
511
  [M, B.value]
463
- ]) : C("", !0),
464
- $("div", Fe, [
465
- D($("div", Ne, [
466
- F(b.$slots, "banner", {}, void 0, !0)
467
- ], 512), [
512
+ ]) : L("v-if", !0),
513
+ H("div", Ne, [
514
+ D(H(
515
+ "div",
516
+ Oe,
517
+ [
518
+ N(_.$slots, "banner", {}, void 0, !0)
519
+ ],
520
+ 512
521
+ /* NEED_PATCH */
522
+ ), [
468
523
  [M, B.value]
469
524
  ]),
470
- $("div", Oe, [
471
- D((g(), I("div", {
472
- key: b.pageKey,
525
+ H("div", Ue, [
526
+ D((g(), C("div", {
527
+ key: _.pageKey,
473
528
  style: { width: "100%", height: "100%" }
474
529
  }, [
475
- F(b.$slots, "router-view", {}, () => [
476
- b.needTransition ? (g(), V(R, { key: 0 }, {
477
- default: U(({ Component: c }) => [
478
- X(ie, ee(le(m.value)), {
479
- default: U(() => {
480
- var p;
481
- return [
482
- w(n).meta.keepAlive ? (g(), V(ce, {
483
- key: 0,
484
- exclude: a.value
485
- }, [
486
- o.value && !((p = w(n).meta) != null && p.isIframe) ? (g(), V(N(Q(c, w(n).path)), {
487
- key: w(n).path
488
- })) : C("", !0)
489
- ], 1032, ["exclude"])) : C("", !0)
490
- ];
491
- }),
492
- _: 2
493
- }, 1040),
494
- X(ie, ee(le(m.value)), {
495
- default: U(() => [
496
- !w(n).meta.keepAlive && !w(n).meta.isIframe ? (g(), I("div", Ue, [
497
- (g(), V(N(c), {
498
- key: w(n).path
499
- }))
500
- ])) : C("", !0)
501
- ]),
502
- _: 2
503
- }, 1040)
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
+ {
538
+ default: W(() => {
539
+ var u;
540
+ return [
541
+ b(n).meta.keepAlive ? (g(), V(ue, {
542
+ key: 0,
543
+ exclude: a.value
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)
549
+ ];
550
+ }),
551
+ _: 2
552
+ /* DYNAMIC */
553
+ },
554
+ 1040
555
+ /* FULL_PROPS, DYNAMIC_SLOTS */
556
+ ),
557
+ Z(
558
+ le,
559
+ ne(ce(m.value)),
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
565
+ }))
566
+ ])) : L("v-if", !0)
567
+ ]),
568
+ _: 2
569
+ /* DYNAMIC */
570
+ },
571
+ 1040
572
+ /* FULL_PROPS, DYNAMIC_SLOTS */
573
+ )
504
574
  ]),
505
575
  _: 1
506
- })) : C("", !0),
507
- b.needTransition ? C("", !0) : (g(), V(R, { key: 1 }, {
508
- default: U(({ Component: c }) => [
509
- w(n).meta.keepAlive ? (g(), V(ce, {
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, {
510
582
  key: 0,
511
583
  exclude: a.value
512
584
  }, [
513
- o.value && !w(n).meta.isIframe ? (g(), V(N(Q(c, w(n).path)), {
514
- key: w(n).path
515
- })) : C("", !0)
516
- ], 1032, ["exclude"])) : C("", !0),
517
- !w(n).meta.keepAlive && !w(n).meta.isIframe ? (g(), I("div", We, [
518
- (g(), V(N(c), {
519
- 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
520
592
  }))
521
- ])) : C("", !0)
593
+ ])) : L("v-if", !0)
522
594
  ]),
523
595
  _: 1
596
+ /* STABLE */
524
597
  })),
525
- D($("div", Ke, [
526
- X(De, {
527
- exclude: a.value,
528
- transitionConfig: m.value,
529
- needTransition: b.needTransition
530
- }, null, 8, ["exclude", "transitionConfig", "needTransition"])
531
- ], 512), [
532
- [M, w(n).meta.isIframe]
598
+ D(H(
599
+ "div",
600
+ ze,
601
+ [
602
+ Z(Me, {
603
+ exclude: a.value,
604
+ transitionConfig: m.value,
605
+ needTransition: _.needTransition
606
+ }, null, 8, ["exclude", "transitionConfig", "needTransition"])
607
+ ],
608
+ 512
609
+ /* NEED_PATCH */
610
+ ), [
611
+ [M, b(n).meta.isIframe]
533
612
  ])
534
613
  ], !0)
535
614
  ])), [
536
615
  [M, P.value]
537
616
  ]),
538
- D($("div", ze, [
539
- F(b.$slots, "default", {}, void 0, !0)
540
- ], 512), [
617
+ D(H(
618
+ "div",
619
+ Qe,
620
+ [
621
+ N(_.$slots, "default", {}, void 0, !0)
622
+ ],
623
+ 512
624
+ /* NEED_PATCH */
625
+ ), [
541
626
  [M, !P.value]
542
627
  ])
543
628
  ])
@@ -547,62 +632,65 @@ const h = K({
547
632
  ]);
548
633
  };
549
634
  }
550
- }), 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({
551
636
  __name: "das-web-nav",
552
637
  setup(e) {
553
- 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(() => {
554
- var c, p, _, 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;
555
640
  return {
556
- showFullScreen: ((c = t.config) == null ? void 0 : c.showFullScreen) ?? !1,
557
- showChangeEnterprise: ((p = t.config) == null ? void 0 : p.showChangeEnterprise) ?? !1,
558
- showSearch: ((_ = t.config) == null ? void 0 : _.showSearch) ?? !0,
559
- showProjectTree: ((x = t.config) == null ? void 0 : x.showProjectTree) ?? !0,
560
- 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 }))
561
647
  };
562
- }), i = u(() => {
563
- const c = r.value.find((p) => p.value === t.activeItem);
648
+ }), i = c(() => {
649
+ const u = r.value.find((p) => p.value === t.activeItem);
564
650
  return {
565
- activeInnerPagePath: (c == null ? void 0 : c.path) || "",
651
+ activeInnerPagePath: (u == null ? void 0 : u.path) || "",
566
652
  innerPages: r.value.map((p) => ({ title: p.label, ...p }))
567
653
  };
568
- }), P = u(() => ({
654
+ }), P = c(() => ({
569
655
  projectStore: {
570
656
  projectTree: t.projects,
571
657
  currentProject: t.activeProject
572
658
  },
573
659
  ...t.projectConfig
574
- })), T = u(() => t.userInfo), S = u(() => t.searchConfig), s = async (c) => {
575
- const p = c.detail[0], _ = r.value.find((E) => p.value === E.value);
576
- await v.nav.triggerEventListener("onItemClick", _) && v.nav.setActiveItem(_.value);
577
- }, a = async (c) => {
578
- const p = c.detail[0], _ = f.value.find((E) => p === E.value);
579
- await v.nav.triggerEventListener("onItemClick", _) && v.nav.setActiveItem(_.value);
580
- }, o = async (c) => {
581
- const p = c.detail[0], _ = f.value.find((E) => p === E.value);
582
- await v.nav.triggerEventListener("onItemRemove", _) && v.nav.removeItem(_.value);
583
- }, m = async (c) => {
584
- const [p, _] = c.detail;
585
- !p || !await v.nav.triggerEventListener("onProjectChange", _) || v.nav.setActiveProject(_);
586
- }, L = (c) => {
587
- v.nav.triggerEventListener("onUserCommandChange", c.detail[0]);
588
- }, Q = (c) => {
589
- v.nav.triggerEventListener("searchToPage", { item: c.detail[0], keyword: c.detail[1], cb: c.detail[2] });
590
- }, B = (c) => {
591
- v.nav.triggerEventListener("clearSearchList", { cb: c.detail[0] });
592
- }, b = (c) => {
593
- 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] });
594
680
  }, j = () => {
595
681
  v.nav.triggerEventListener("changeEnterpriseHandle");
596
- }, R = () => {
682
+ }, A = () => {
597
683
  v.nav.triggerEventListener("fullScreenHandle");
684
+ }, x = () => {
685
+ v.nav.triggerEventListener("openAI");
598
686
  };
599
- return we(() => {
687
+ return be(() => {
600
688
  v.nav.triggerEventListener("onBeforeMount", null, { autoRemove: !0 });
601
- }), be(() => {
689
+ }), Le(() => {
602
690
  v.nav.triggerEventListener("onMounted", null, { autoRemove: !0 });
603
691
  }), _e(() => {
604
692
  v.nav.triggerEventListener("onUnmounted", null, { autoRemove: !0 });
605
- }), (c, p) => (g(), I("das-ce-nav", {
693
+ }), (u, p) => (g(), C("das-ce-nav", {
606
694
  theme: n.value,
607
695
  modelValue: d.value,
608
696
  logoUrl: l.value,
@@ -611,31 +699,32 @@ const h = K({
611
699
  searchConfig: S.value,
612
700
  projectTreeConfig: P.value,
613
701
  userInfoConfig: T.value,
614
- "on:userCommandHandle": L,
702
+ "on:userCommandHandle": I,
615
703
  "on:changeInnerPage": s,
616
704
  "on:handleTabClick": a,
617
705
  "on:handleTabDelete": o,
618
706
  "on:changeTreeHandle": m,
619
- "on:searchToPage": Q,
707
+ "on:searchToPage": q,
620
708
  "on:clearSearchList": B,
621
- "on:deleteSearchItem": b,
709
+ "on:deleteSearchItem": _,
622
710
  "on:changeEnterpriseHandle": j,
623
- "on:fullScreen": R
624
- }, null, 40, qe));
711
+ "on:fullScreen": A,
712
+ "on:openAI": x
713
+ }, null, 40, Ge));
625
714
  }
626
- }), Ge = ["theme", "modelValue", "data", "collapse", "fixedTopMenu", "subMenuAttrs"], rt = /* @__PURE__ */ z({
715
+ }), Je = ["theme", "modelValue", "data", "collapse", "fixedTopMenu", "subMenuAttrs"], rt = /* @__PURE__ */ Q({
627
716
  __name: "das-web-menu",
628
717
  props: {
629
718
  menuAttr: {}
630
719
  },
631
720
  setup(e) {
632
- 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) => {
633
- const a = s.detail[0], o = Ee(r.value).find((L) => a === L.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);
634
723
  await v.menu.triggerEventListener("onItemClick", o) && v.menu.setActiveItem(o.id);
635
724
  }, S = (s) => {
636
725
  v.menu.setCollapse(s.detail[0]), v.menu.triggerEventListener("toggleCollapse", s.detail[0]);
637
726
  };
638
- 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({
639
728
  key: 0,
640
729
  theme: l.value,
641
730
  modelValue: y.value,
@@ -646,23 +735,23 @@ const h = K({
646
735
  }, d.value, {
647
736
  onChange: T,
648
737
  "on:toggleCollapse": S
649
- }), null, 16, Ge)) : C("", !0);
738
+ }), null, 16, Je)) : L("v-if", !0);
650
739
  }
651
- }), Je = ["theme", "modelValue", "options"], ot = /* @__PURE__ */ z({
740
+ }), Xe = ["theme", "modelValue", "options"], ot = /* @__PURE__ */ Q({
652
741
  __name: "das-web-tabs",
653
742
  props: {
654
743
  tabsAttr: {}
655
744
  },
656
745
  setup(e) {
657
- 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) => ({
658
747
  ...s,
659
748
  key: s.value,
660
749
  tab: s.label
661
- }))), f = u(() => t.activeItem || ""), y = async (s) => {
662
- const a = s.detail[0], o = r.value.find((L) => a === L.value);
750
+ }))), f = c(() => t.activeItem || ""), y = async (s) => {
751
+ const a = s.detail[0], o = r.value.find((I) => a === I.value);
663
752
  await v.tab.triggerEventListener("onItemClick", o) && v.tab.setActiveItem(o.value);
664
753
  }, i = async (s) => {
665
- const a = s.detail[0], o = r.value.find((L) => a === L.value);
754
+ const a = s.detail[0], o = r.value.find((I) => a === I.value);
666
755
  await v.tab.triggerEventListener("onItemRemove", o) && v.tab.removeItem(o.value);
667
756
  }, P = async (s) => {
668
757
  await v.tab.triggerEventListener("onMenuClick", { type: s.detail[0], data: s.detail[1] });
@@ -671,7 +760,7 @@ const h = K({
671
760
  }, S = () => {
672
761
  v.tab.triggerEventListener("onToggleFullScreen");
673
762
  };
674
- 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({
675
764
  key: 0,
676
765
  theme: d.value,
677
766
  modelValue: f.value,
@@ -682,15 +771,15 @@ const h = K({
682
771
  "on:menuClick": P,
683
772
  "on:pageRefresh": T,
684
773
  "on:toggleFullScreen": S
685
- }), null, 16, Je)) : C("", !0);
774
+ }), null, 16, Xe)) : L("v-if", !0);
686
775
  }
687
776
  });
688
- O("@das-fed/web");
777
+ U("@das-fed/web");
689
778
  export {
690
779
  st as DasWebLayout,
691
780
  rt as DasWebMenu,
692
781
  at as DasWebNav,
693
782
  ot as DasWebTabs,
694
783
  v as layout,
695
- H as layoutData
784
+ F as layoutData
696
785
  };