@das-fed/web 6.4.0-dev.2 → 6.4.0-dev.4

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