@das-fed/web 7.0.7-hot.18 → 7.0.7-hot.19

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 (30) hide show
  1. package/{index-BpLsqKPm.js → index-B4CwyFxz.js} +1 -1
  2. package/index-B4CwyFxz.js.gz +0 -0
  3. package/{packages/main-app-framework/index-hIRjIckX.js → index-BElJnB40.js} +1 -1
  4. package/{index-DQLGDm8x.js → index-Dqz5XyTL.js} +174 -174
  5. package/index-Dqz5XyTL.js.gz +0 -0
  6. package/index.js +1 -1
  7. package/package.json +6 -6
  8. package/packages/create-das-web-app/index.js.gz +0 -0
  9. package/packages/i18n/index.js.gz +0 -0
  10. package/packages/layout/index.js +167 -167
  11. package/packages/layout/index.js.gz +0 -0
  12. package/packages/layout/style.css.gz +0 -0
  13. package/packages/main-app-framework/{index-DaOM3wJB.js → index-DERXZ5By.js} +2614 -2614
  14. package/packages/main-app-framework/index-DERXZ5By.js.gz +0 -0
  15. package/packages/main-app-framework/{index-nZbuB31n.js → index-DLh60IDF.js} +1 -1
  16. package/packages/main-app-framework/index-DLh60IDF.js.gz +0 -0
  17. package/{index-Cue8Ni3b.js → packages/main-app-framework/index-tBEMWxBr.js} +1 -1
  18. package/packages/main-app-framework/index.js +1 -1
  19. package/packages/main-app-framework/style.css +1 -1
  20. package/packages/main-app-framework/style.css.gz +0 -0
  21. package/packages/micro-frontend/index.js +126 -126
  22. package/packages/micro-frontend/index.js.gz +0 -0
  23. package/packages/style/style.css.gz +0 -0
  24. package/packages/theme/index.js.gz +0 -0
  25. package/style.css +1 -1
  26. package/style.css.gz +0 -0
  27. package/index-BpLsqKPm.js.gz +0 -0
  28. package/index-DQLGDm8x.js.gz +0 -0
  29. package/packages/main-app-framework/index-DaOM3wJB.js.gz +0 -0
  30. package/packages/main-app-framework/index-nZbuB31n.js.gz +0 -0
@@ -1,5 +1,5 @@
1
1
  import '@das-fed/web/packages/micro-frontend/style.css';
2
- import { ref as w, watch as M, reactive as P, getCurrentScope as ue, onScopeDispose as de, getCurrentInstance as pe, onMounted as me, nextTick as ne, unref as I, defineComponent as x, computed as N, createElementBlock as D, openBlock as E, Fragment as $, renderList as fe, withDirectives as ve, createCommentVNode as he, createBlock as se, vShow as Ae, mergeProps as we, withCtx as T, createVNode as C, renderSlot as V, onActivated as ge } from "vue";
2
+ import { ref as w, watch as M, reactive as P, getCurrentScope as ue, onScopeDispose as de, getCurrentInstance as me, onMounted as pe, nextTick as ne, unref as I, defineComponent as x, computed as N, createElementBlock as D, openBlock as E, Fragment as $, renderList as fe, withDirectives as ve, createCommentVNode as he, createBlock as se, vShow as Ae, mergeProps as we, withCtx as T, createVNode as C, renderSlot as V, onActivated as ge } from "vue";
3
3
  import { DasWebLayout as ye, DasWebTabs as Me, DasWebMenu as Le, DasWebNav as _e } from "@das-fed/web/packages/layout/index";
4
4
  const z = w("/das-micro-app"), f = w([]), k = w(!1), O = w([]), F = w(!0);
5
5
  let v = null, h = null, _ = null;
@@ -10,12 +10,12 @@ const be = (e) => new Promise((t) => {
10
10
  };
11
11
  n();
12
12
  }), b = (e, t, n, s) => {
13
- var i;
14
- const { awaitListener: c = !1 } = s || {}, { origin: a } = new URL(location.href);
13
+ var a;
14
+ const { awaitListener: c = !1 } = s || {}, { origin: i } = new URL(location.href);
15
15
  c ? be(t).then(() => {
16
16
  var r;
17
- (r = window.self) == null || r.postMessage({ type: t, data: n }, a);
18
- }) : (i = window.self) == null || i.postMessage({ type: t, data: n }, a);
17
+ (r = window.self) == null || r.postMessage({ type: t, data: n }, i);
18
+ }) : (a = window.self) == null || a.postMessage({ type: t, data: n }, i);
19
19
  }, Ie = (e) => new Promise((t) => {
20
20
  const n = () => {
21
21
  if (h != null && h[e]) return t();
@@ -23,12 +23,12 @@ const be = (e) => new Promise((t) => {
23
23
  };
24
24
  n();
25
25
  }), q = (e, t, n) => {
26
- var a;
26
+ var i;
27
27
  const { awaitListener: s = !1 } = n || {}, { origin: c } = new URL(location.href);
28
28
  s ? Ie(e).then(() => {
29
- var i;
30
- (i = window.self) == null || i.postMessage({ type: e, data: t }, c);
31
- }) : (a = window.self) == null || a.postMessage({ type: e, data: t }, c);
29
+ var a;
30
+ (a = window.self) == null || a.postMessage({ type: e, data: t }, c);
31
+ }) : (i = window.self) == null || i.postMessage({ type: e, data: t }, c);
32
32
  }, Ee = () => {
33
33
  h || (h || (h = {}), window.addEventListener(
34
34
  "message",
@@ -78,18 +78,18 @@ const be = (e) => new Promise((t) => {
78
78
  }, d = {
79
79
  loadMicroApp: (e) => {
80
80
  k.value = !0;
81
- const t = f.value.find((i) => i.name === e), n = f.value.find((i) => i.actived), s = !!t, c = !(t != null && t.loaded), a = t == null ? void 0 : t.actived;
81
+ const t = f.value.find((a) => a.name === e), n = f.value.find((a) => a.actived), s = !!t, c = !(t != null && t.loaded), i = t == null ? void 0 : t.actived;
82
82
  if (!s) {
83
83
  n && (n.actived = !1);
84
84
  return;
85
85
  }
86
86
  if (t.isFirstActived = !0, c) {
87
87
  t.src = t.entry;
88
- const i = f.value.find((r) => r.actived);
89
- i && (i.actived = !1), t.loaded = !0, t.actived = !0;
88
+ const a = f.value.find((r) => r.actived);
89
+ a && (a.actived = !1), t.loaded = !0, t.actived = !0;
90
90
  return;
91
91
  }
92
- if (!a) {
92
+ if (!i) {
93
93
  n && (n.actived = !1), t.actived = !0;
94
94
  return;
95
95
  }
@@ -121,12 +121,12 @@ const be = (e) => new Promise((t) => {
121
121
  setMicroAppRoute: async (e, t, n) => {
122
122
  const s = f.value.find((r) => r.name === t);
123
123
  if (!s || !s.loaded || !s.actived || (s.dom || await new Promise((r) => M(() => s.dom, r)), !s.actived)) return s;
124
- const c = n.path || n, a = n.query || {}, i = n.params || {};
124
+ const c = n.path || n, i = n.query || {}, a = n.params || {};
125
125
  return e.push({
126
126
  path: `/${t}${c}`,
127
- query: a,
127
+ query: i,
128
128
  // @ts-ignore
129
- params: i
129
+ params: a
130
130
  }), setTimeout(() => {
131
131
  const { isFirstActived: r } = s;
132
132
  b(t, "router", {
@@ -169,11 +169,11 @@ const be = (e) => new Promise((t) => {
169
169
  }, { remove: s };
170
170
  },
171
171
  triggerMicroAppLifeCycleListener: (e, t, n) => {
172
- var a;
172
+ var i;
173
173
  const s = _, { autoRemove: c = !1 } = n || {};
174
- for (const i in s) {
175
- const r = s[i];
176
- r.type === e && ((a = r == null ? void 0 : r.handler) == null || a.call(r, t).then(() => {
174
+ for (const a in s) {
175
+ const r = s[a];
176
+ r.type === e && ((i = r == null ? void 0 : r.handler) == null || i.call(r, t).then(() => {
177
177
  c && r.remove();
178
178
  }));
179
179
  }
@@ -247,17 +247,17 @@ const be = (e) => new Promise((t) => {
247
247
  u.searchConfig = e;
248
248
  },
249
249
  triggerEventListener: (e, t, n) => {
250
- var i;
251
- const s = u.eventListeners, { autoRemove: c = !1 } = n || {}, a = [];
250
+ var a;
251
+ const s = u.eventListeners, { autoRemove: c = !1 } = n || {}, i = [];
252
252
  for (const r in s) {
253
253
  const o = s[r];
254
- o.type === e && a.push(
255
- (i = o == null ? void 0 : o.handler) == null ? void 0 : i.call(o, t).then(() => {
254
+ o.type === e && i.push(
255
+ (a = o == null ? void 0 : o.handler) == null ? void 0 : a.call(o, t).then(() => {
256
256
  c && o.remove();
257
257
  })
258
258
  );
259
259
  }
260
- return Promise.all(a).then(() => !0).catch(() => !1);
260
+ return Promise.all(i).then(() => !0).catch(() => !1);
261
261
  },
262
262
  addEventListener: (e, t) => {
263
263
  const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), s = () => {
@@ -268,8 +268,8 @@ const be = (e) => new Promise((t) => {
268
268
  handler: async (c) => {
269
269
  try {
270
270
  await t(c);
271
- } catch (a) {
272
- throw a;
271
+ } catch (i) {
272
+ throw i;
273
273
  }
274
274
  },
275
275
  remove: s
@@ -300,17 +300,17 @@ const be = (e) => new Promise((t) => {
300
300
  g.popupClassName = e;
301
301
  },
302
302
  triggerEventListener: (e, t, n) => {
303
- var i;
304
- const s = g.eventListeners, { autoRemove: c = !1 } = n || {}, a = [];
303
+ var a;
304
+ const s = g.eventListeners, { autoRemove: c = !1 } = n || {}, i = [];
305
305
  for (const r in s) {
306
306
  const o = s[r];
307
- o.type === e && a.push(
308
- (i = o == null ? void 0 : o.handler) == null ? void 0 : i.call(o, t).then(() => {
307
+ o.type === e && i.push(
308
+ (a = o == null ? void 0 : o.handler) == null ? void 0 : a.call(o, t).then(() => {
309
309
  c && o.remove();
310
310
  })
311
311
  );
312
312
  }
313
- return Promise.all(a).then(() => !0).catch(() => !1);
313
+ return Promise.all(i).then(() => !0).catch(() => !1);
314
314
  },
315
315
  addEventListener: (e, t) => {
316
316
  const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), s = () => {
@@ -321,8 +321,8 @@ const be = (e) => new Promise((t) => {
321
321
  handler: async (c) => {
322
322
  try {
323
323
  await t(c);
324
- } catch (a) {
325
- throw a;
324
+ } catch (i) {
325
+ throw i;
326
326
  }
327
327
  },
328
328
  remove: s
@@ -354,17 +354,17 @@ const be = (e) => new Promise((t) => {
354
354
  A.activeItem = e;
355
355
  },
356
356
  triggerEventListener: (e, t, n) => {
357
- var i;
358
- const s = A.eventListeners, { autoRemove: c = !1 } = n || {}, a = [];
357
+ var a;
358
+ const s = A.eventListeners, { autoRemove: c = !1 } = n || {}, i = [];
359
359
  for (const r in s) {
360
360
  const o = s[r];
361
- o.type === e && a.push(
362
- (i = o == null ? void 0 : o.handler) == null ? void 0 : i.call(o, t).then(() => {
361
+ o.type === e && i.push(
362
+ (a = o == null ? void 0 : o.handler) == null ? void 0 : a.call(o, t).then(() => {
363
363
  c && o.remove();
364
364
  })
365
365
  );
366
366
  }
367
- return Promise.all(a).then(() => !0).catch(() => !1);
367
+ return Promise.all(i).then(() => !0).catch(() => !1);
368
368
  },
369
369
  addEventListener: (e, t) => {
370
370
  const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), s = () => {
@@ -375,8 +375,8 @@ const be = (e) => new Promise((t) => {
375
375
  handler: async (c) => {
376
376
  try {
377
377
  await t(c);
378
- } catch (a) {
379
- throw a;
378
+ } catch (i) {
379
+ throw i;
380
380
  }
381
381
  },
382
382
  remove: s
@@ -388,17 +388,17 @@ const be = (e) => new Promise((t) => {
388
388
  eventListeners: {}
389
389
  }), Ce = {
390
390
  triggerEventListener: (e, t, n) => {
391
- var i;
392
- const s = R.eventListeners, { autoRemove: c = !1 } = n || {}, a = [];
391
+ var a;
392
+ const s = R.eventListeners, { autoRemove: c = !1 } = n || {}, i = [];
393
393
  for (const r in s) {
394
394
  const o = s[r];
395
- o.type === e && a.push(
396
- (i = o == null ? void 0 : o.handler) == null ? void 0 : i.call(o, t).then(() => {
395
+ o.type === e && i.push(
396
+ (a = o == null ? void 0 : o.handler) == null ? void 0 : a.call(o, t).then(() => {
397
397
  c && o.remove();
398
398
  })
399
399
  );
400
400
  }
401
- return Promise.all(a).then(() => !0).catch(() => !1);
401
+ return Promise.all(i).then(() => !0).catch(() => !1);
402
402
  },
403
403
  addEventListener: (e, t) => {
404
404
  const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), s = () => {
@@ -409,8 +409,8 @@ const be = (e) => new Promise((t) => {
409
409
  handler: async (c) => {
410
410
  try {
411
411
  await t(c);
412
- } catch (a) {
413
- throw a;
412
+ } catch (i) {
413
+ throw i;
414
414
  }
415
415
  },
416
416
  remove: s
@@ -457,7 +457,7 @@ function ie(e) {
457
457
  return ue() ? (de(e), !0) : !1;
458
458
  }
459
459
  function ke(e, t = !0) {
460
- pe() ? me(e) : t ? e() : ne(e);
460
+ me() ? pe(e) : t ? e() : ne(e);
461
461
  }
462
462
  function oe(e) {
463
463
  var t;
@@ -470,14 +470,14 @@ function qe(...e) {
470
470
  if (Re(e[0]) || Array.isArray(e[0]) ? ([n, s, c] = e, t = xe) : [t, n, s, c] = e, !t)
471
471
  return Ne;
472
472
  Array.isArray(n) || (n = [n]), Array.isArray(s) || (s = [s]);
473
- const a = [], i = () => {
474
- a.forEach((l) => l()), a.length = 0;
475
- }, r = (l, y, m, L) => (l.addEventListener(y, m, L), () => l.removeEventListener(y, m, L)), o = M(() => [oe(t), ae(c)], ([l, y]) => {
476
- i(), l && a.push(...n.flatMap((m) => s.map((L) => r(l, m, L, y))));
477
- }, { immediate: !0, flush: "post" }), p = () => {
478
- o(), i();
473
+ const i = [], a = () => {
474
+ i.forEach((l) => l()), i.length = 0;
475
+ }, r = (l, y, p, L) => (l.addEventListener(y, p, L), () => l.removeEventListener(y, p, L)), o = M(() => [oe(t), ae(c)], ([l, y]) => {
476
+ a(), l && i.push(...n.flatMap((p) => s.map((L) => r(l, p, L, y))));
477
+ }, { immediate: !0, flush: "post" }), m = () => {
478
+ o(), a();
479
479
  };
480
- return ie(p), p;
480
+ return ie(m), m;
481
481
  }
482
482
  function Qe(e, t = !1) {
483
483
  const n = w(), s = () => n.value = !!e();
@@ -528,37 +528,37 @@ const Y = [
528
528
  ]
529
529
  ];
530
530
  function Be(e, t = {}) {
531
- const { document: n = Ve, autoExit: s = !1 } = t, c = n == null ? void 0 : n.querySelector("html"), a = w(!1);
532
- let i = Y[0];
531
+ const { document: n = Ve, autoExit: s = !1 } = t, c = n == null ? void 0 : n.querySelector("html"), i = w(!1);
532
+ let a = Y[0];
533
533
  const r = Qe(() => {
534
534
  if (n) {
535
535
  for (const S of Y)
536
536
  if (S[1] in n)
537
- return i = S, !0;
537
+ return a = S, !0;
538
538
  } else
539
539
  return !1;
540
540
  return !1;
541
- }), [o, p, l, , y] = i;
542
- async function m() {
543
- r.value && (n != null && n[l] && await n[p](), a.value = !1);
541
+ }), [o, m, l, , y] = a;
542
+ async function p() {
543
+ r.value && (n != null && n[l] && await n[m](), i.value = !1);
544
544
  }
545
545
  async function L() {
546
546
  if (!r.value)
547
547
  return;
548
- await m();
548
+ await p();
549
549
  const S = oe(c);
550
- S && (await S[o](), a.value = !0);
550
+ S && (await S[o](), i.value = !0);
551
551
  }
552
552
  async function le() {
553
- a.value ? await m() : await L();
553
+ i.value ? await p() : await L();
554
554
  }
555
555
  return n && qe(n, y, () => {
556
- a.value = !!(n != null && n[l]);
557
- }, !1), s && ie(m), {
556
+ i.value = !!(n != null && n[l]);
557
+ }, !1), s && ie(p), {
558
558
  isSupported: r,
559
- isFullscreen: a,
559
+ isFullscreen: i,
560
560
  enter: L,
561
- exit: m,
561
+ exit: p,
562
562
  toggle: le
563
563
  };
564
564
  }
@@ -614,8 +614,8 @@ const Ue = ["src", "entry", "name"], Ge = /* @__PURE__ */ x({
614
614
  setup(e, { emit: t }) {
615
615
  const n = e, s = t, c = (r) => {
616
616
  s("onLoaded", r);
617
- }, a = N(() => n.actived);
618
- return M(() => a.value, (r) => {
617
+ }, i = N(() => n.actived);
618
+ return M(() => i.value, (r) => {
619
619
  r && s("onActivated"), r || s("onDeactivated");
620
620
  }), (r, o) => (E(), D("iframe", {
621
621
  class: "das-micro-app",
@@ -629,36 +629,36 @@ const Ue = ["src", "entry", "name"], Ge = /* @__PURE__ */ x({
629
629
  }), Je = /* @__PURE__ */ re(Ge, [["__scopeId", "data-v-8ae871f6"]]), Ke = /* @__PURE__ */ x({
630
630
  __name: "das-micro-apps",
631
631
  setup(e) {
632
- const t = w(null), n = async (a, i) => {
633
- const r = f.value.find((m) => m.name === i);
632
+ const t = w(null), n = async (i, a) => {
633
+ const r = f.value.find((p) => p.name === a);
634
634
  if (!r) return;
635
- r.dom = a.target, await ne(), await new Promise((m) => setTimeout(m, 50));
635
+ r.dom = i.target, await ne(), await new Promise((p) => setTimeout(p, 50));
636
636
  const o = () => {
637
- const m = t.value.getBoundingClientRect() || {};
638
- return m.width = t.value.clientWidth, m.height = t.value.clientHeight, m;
637
+ const p = t.value.getBoundingClientRect() || {};
638
+ return p.width = t.value.clientWidth, p.height = t.value.clientHeight, p;
639
639
  };
640
- d.sendMessageToMicroApp(i, "onLoaded", {
640
+ d.sendMessageToMicroApp(a, "onLoaded", {
641
641
  href: location.href,
642
642
  microAppContainerRect: o(),
643
643
  entry: r.entry,
644
644
  name: r.name
645
645
  });
646
- const { dom: p, ...l } = r;
646
+ const { dom: m, ...l } = r;
647
647
  d.triggerMicroAppLifeCycleListener("onLoaded", l), new ResizeObserver(() => {
648
- d.sendMessageToMicroApp(i, "resize", o());
649
- }).observe(t.value), d.sendMessageToMicroApp(i, "setProxyMessageStatus", { visible: !0, parentHref: location.href }), d.sendMessageToMicroApp(i, "setProxSsoStatus", { visible: !0, parentHref: location.href });
650
- }, s = (a, i) => {
651
- const r = f.value.find((l) => l.name === i);
648
+ d.sendMessageToMicroApp(a, "resize", o());
649
+ }).observe(t.value), d.sendMessageToMicroApp(a, "setProxyMessageStatus", { visible: !0, parentHref: location.href }), d.sendMessageToMicroApp(a, "setProxSsoStatus", { visible: !0, parentHref: location.href });
650
+ }, s = (i, a) => {
651
+ const r = f.value.find((l) => l.name === a);
652
652
  if (!r) return;
653
- const { dom: o, ...p } = r;
654
- d.sendMessageToMicroApp(i, "onActivated"), d.triggerMicroAppLifeCycleListener("onActivated", p);
655
- }, c = (a, i) => {
656
- const r = f.value.find((l) => l.name === i);
653
+ const { dom: o, ...m } = r;
654
+ d.sendMessageToMicroApp(a, "onActivated"), d.triggerMicroAppLifeCycleListener("onActivated", m);
655
+ }, c = (i, a) => {
656
+ const r = f.value.find((l) => l.name === a);
657
657
  if (!r) return;
658
- const { dom: o, ...p } = r;
659
- d.sendMessageToMicroApp(i, "onDeactivated"), d.triggerMicroAppLifeCycleListener("onDeactivated", p);
658
+ const { dom: o, ...m } = r;
659
+ d.sendMessageToMicroApp(a, "onDeactivated"), d.triggerMicroAppLifeCycleListener("onDeactivated", m);
660
660
  };
661
- return (a, i) => (E(), D(
661
+ return (i, a) => (E(), D(
662
662
  "div",
663
663
  {
664
664
  ref_key: "containerRef",
@@ -714,23 +714,23 @@ const Ue = ["src", "entry", "name"], Ge = /* @__PURE__ */ x({
714
714
  "enter-active-class": "animate__animated animate__fadeInLeft",
715
715
  ...t.transitionConfig
716
716
  })), c = N(() => ({ showLayout: t.showLayout, showAside: t.showAside, showTabs: t.showTabs }));
717
- return (a, i) => (E(), se(I(ye), we({
717
+ return (i, a) => (E(), se(I(ye), we({
718
718
  "transition-config": s.value,
719
719
  "router-view-visible": n.value
720
720
  }, c.value), {
721
721
  header: T(() => [
722
- V(a.$slots, "header", {}, () => [
722
+ V(i.$slots, "header", {}, () => [
723
723
  C(I(_e))
724
724
  ])
725
725
  ]),
726
726
  aside: T(() => [
727
- V(a.$slots, "aside", {}, () => [
728
- C(I(Le), { menuAttr: a.menuAttr }, null, 8, ["menuAttr"])
727
+ V(i.$slots, "aside", {}, () => [
728
+ C(I(Le), { menuAttr: e.menuAttr }, null, 8, ["menuAttr"])
729
729
  ])
730
730
  ]),
731
731
  tab: T(() => [
732
- V(a.$slots, "tab", {}, () => [
733
- C(I(Me), { tabsAttr: a.tabsAttr }, null, 8, ["tabsAttr"])
732
+ V(i.$slots, "tab", {}, () => [
733
+ C(I(Me), { tabsAttr: e.tabsAttr }, null, 8, ["tabsAttr"])
734
734
  ])
735
735
  ]),
736
736
  default: T(() => [
@@ -757,22 +757,22 @@ const Ue = ["src", "entry", "name"], Ge = /* @__PURE__ */ x({
757
757
  component: ce,
758
758
  meta: { isMicroApp: !0, keepAlive: !0 }
759
759
  }), d.addEventListenerFromMicroApp("bodyOverlay", (c) => {
760
- const { visible: a, style: i } = c.data;
761
- G.overlay.set(a, i);
760
+ const { visible: i, style: a } = c.data;
761
+ G.overlay.set(i, a);
762
762
  }), d.addEventListenerFromMicroApp("layoutVisible", (c) => {
763
- const { visible: a } = c.data;
764
- G.setVisible(a);
763
+ const { visible: i } = c.data;
764
+ G.setVisible(i);
765
765
  }), d.addEventListenerFromMicroApp("route", (c) => {
766
- const { name: a, cmd: i, path: r } = c.data;
767
- i === "reload" && d.reloadMicroAppRoute(a, r), i === "unload" && d.unloadMicroAppRoute(a, r);
766
+ const { name: i, cmd: a, path: r } = c.data;
767
+ a === "reload" && d.reloadMicroAppRoute(i, r), a === "unload" && d.unloadMicroAppRoute(i, r);
768
768
  });
769
769
  const { enter: n, exit: s } = Be();
770
770
  d.addEventListenerFromMicroApp("fullscreen", (c) => {
771
- const a = c.data;
772
- a && n(), a || s();
771
+ const i = c.data;
772
+ i && n(), i || s();
773
773
  }), d.addEventListenerFromMicroApp("location", (c) => {
774
- const { cmd: a, isAutoCloseApp: i } = c.data || {};
775
- a === "reload" && (i !== void 0 && (window.__isAutoCloseApp = i), location.reload());
774
+ const { cmd: i, isAutoCloseApp: a } = c.data || {};
775
+ i === "reload" && (a !== void 0 && (window.__isAutoCloseApp = a), location.reload());
776
776
  });
777
777
  }, st = (e, t) => {
778
778
  if (!(e != null && e.microAppName)) return;
@@ -784,10 +784,10 @@ const Ue = ["src", "entry", "name"], Ge = /* @__PURE__ */ x({
784
784
  component: ce,
785
785
  meta: { isMicroApp: !0, keepAlive: !0 }
786
786
  });
787
- const s = w(!1), c = w(!1), a = w("");
787
+ const s = w(!1), c = w(!1), i = w("");
788
788
  M(
789
789
  () => t.currentRoute.value,
790
- (i) => {
790
+ (a) => {
791
791
  if (s.value) {
792
792
  s.value = !1;
793
793
  return;
@@ -796,9 +796,9 @@ const Ue = ["src", "entry", "name"], Ge = /* @__PURE__ */ x({
796
796
  c.value = !1;
797
797
  return;
798
798
  }
799
- const { path: r, query: o, params: p, meta: l } = i;
800
- if (a.value.includes(i.path)) {
801
- a.value = "";
799
+ const { path: r, query: o, params: m, meta: l } = a;
800
+ if (i.value.includes(a.path)) {
801
+ i.value = "";
802
802
  return;
803
803
  }
804
804
  d.sendMessageToMainApp("router", {
@@ -806,33 +806,33 @@ const Ue = ["src", "entry", "name"], Ge = /* @__PURE__ */ x({
806
806
  route: {
807
807
  path: r,
808
808
  query: { ...o, microAppName: e.microAppName },
809
- params: p,
809
+ params: m,
810
810
  meta: l
811
811
  }
812
812
  });
813
813
  }
814
- ), d.addEventListenerFromMainApp("router", async (i) => {
814
+ ), d.addEventListenerFromMainApp("router", async (a) => {
815
815
  var l;
816
- const { cmd: r, route: o, microAppName: p = "" } = i.data;
817
- a.value = ("/" + p + o.path).replace(/\/\//g, "/"), (l = t == null ? void 0 : t[r]) == null || l.call(t, o);
818
- }), d.addEventListenerFromMainApp("onLoaded", (i) => {
819
- const { href: r, microAppContainerRect: o } = i.data;
816
+ const { cmd: r, route: o, microAppName: m = "" } = a.data;
817
+ i.value = ("/" + m + o.path).replace(/\/\//g, "/"), (l = t == null ? void 0 : t[r]) == null || l.call(t, o);
818
+ }), d.addEventListenerFromMainApp("onLoaded", (a) => {
819
+ const { href: r, microAppContainerRect: o } = a.data;
820
820
  window.__IN_DAS_MICRO_APP = !0, window.__DAS_MICRO_APP_NAME = e.microAppName, window.__DAS_MAIN_APP_HREF = r, window.__DAS_MICRO_APP_CONTAINER_RECT = o;
821
- }), d.addEventListenerFromMainApp("onDeactivated", (i) => {
822
- const { name: r = "", path: o, params: p = {}, query: l = {} } = t.currentRoute.value;
821
+ }), d.addEventListenerFromMainApp("onDeactivated", (a) => {
822
+ const { name: r = "", path: o, params: m = {}, query: l = {} } = t.currentRoute.value;
823
823
  c.value = !0, t == null || t.push({
824
824
  name: n,
825
825
  query: { microAppName: e.microAppName, fromQuery: JSON.stringify(l), fromPath: o },
826
- params: p
826
+ params: m
827
827
  });
828
- }), d.addEventListenerFromMainApp("onActivated", (i) => {
829
- const { name: r = "", params: o = {}, query: p = {} } = t.currentRoute.value, { fromPath: l = "", fromQuery: y = "{}" } = p || {};
828
+ }), d.addEventListenerFromMainApp("onActivated", (a) => {
829
+ const { name: r = "", params: o = {}, query: m = {} } = t.currentRoute.value, { fromPath: l = "", fromQuery: y = "{}" } = m || {};
830
830
  s.value = !0, t == null || t.push({ path: l, query: JSON.parse(y), params: o });
831
- }), d.addEventListenerFromMainApp("sessionStorage", (i) => {
832
- const { cmd: r, key: o, value: p } = i.data;
833
- r === "setItem" && window.sessionStorage.setItem(o, p), r === "getItem" && window.sessionStorage.getItem(o), r === "removeItem" && window.sessionStorage.removeItem(o), r === "clear" && window.sessionStorage.clear();
834
- }), d.addEventListenerFromMainApp("route", (i) => {
835
- const { cmd: r, path: o } = i.data;
831
+ }), d.addEventListenerFromMainApp("sessionStorage", (a) => {
832
+ const { cmd: r, key: o, value: m } = a.data;
833
+ r === "setItem" && window.sessionStorage.setItem(o, m), r === "getItem" && window.sessionStorage.getItem(o), r === "removeItem" && window.sessionStorage.removeItem(o), r === "clear" && window.sessionStorage.clear();
834
+ }), d.addEventListenerFromMainApp("route", (a) => {
835
+ const { cmd: r, path: o } = a.data;
836
836
  r === "reload" && (O.value.push(o), F.value = !1, setTimeout(() => {
837
837
  F.value = !0, O.value = [];
838
838
  }, 300)), r === "unload" && (O.value.push(o), F.value = !1, setTimeout(() => {
Binary file
Binary file
Binary file