@das-fed/web 6.4.0-dev.124 → 6.4.0-dev.125

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 (50) hide show
  1. package/{packages/main-app-framework/index-CEUVvcoF.js → index-BiinQ8qC.js} +3 -4
  2. package/index-BiinQ8qC.js.gz +0 -0
  3. package/{index-BWv1vypU.js → index-D6gsmqTy.js} +4504 -4942
  4. package/index-D6gsmqTy.js.gz +0 -0
  5. package/index-yjiCIu21.js +10 -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 +103 -188
  11. package/packages/layout/index.js.gz +0 -0
  12. package/packages/layout/style.css.gz +0 -0
  13. package/{index-BmwigFuJ.js → packages/main-app-framework/index-C59SNYDx.js} +3 -4
  14. package/packages/main-app-framework/index-C59SNYDx.js.gz +0 -0
  15. package/packages/main-app-framework/{index-DGMsib08.js → index-Czrgf0sH.js} +2860 -3194
  16. package/packages/main-app-framework/index-Czrgf0sH.js.gz +0 -0
  17. package/packages/main-app-framework/index-DIxPIoNA.js +10 -0
  18. package/packages/main-app-framework/index.js +1 -1
  19. package/packages/main-app-framework/style.css.gz +0 -0
  20. package/packages/micro-frontend/index.js +97 -111
  21. package/packages/micro-frontend/index.js.gz +0 -0
  22. package/packages/style/style.css.gz +0 -0
  23. package/packages/theme/index.js.gz +0 -0
  24. package/style.css.gz +0 -0
  25. package/types/create-das-web-app/index.d.ts +1 -1
  26. package/types/i18n/index.d.ts +2 -2
  27. package/types/layout/store/index.d.ts +1 -1
  28. package/types/main-app-framework/business/alarm/use-alarm.d.ts +4 -4
  29. package/types/main-app-framework/business/video-link/index.d.ts +3 -3
  30. package/types/main-app-framework/business/video-link/video-dialog/hooks/PlayerProvider.d.ts +3 -3
  31. package/types/main-app-framework/components/person-set-dialog/index.d.ts +1 -1
  32. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-builtIn-dialog.d.ts +6 -6
  33. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-notBuiltIn-dialog.d.ts +10 -10
  34. package/types/main-app-framework/index.d.ts +2 -2
  35. package/types/main-app-framework/init-config/get-nav-config/index.d.ts +2 -2
  36. package/types/main-app-framework/init-config/get-system-config/index.d.ts +2 -2
  37. package/types/main-app-framework/init-layout/hooks/nav-slots/use-ai-helper.d.ts +1 -1
  38. package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +3 -3
  39. package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +2 -2
  40. package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +5 -5
  41. package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +3 -3
  42. package/types/main-app-framework/init-platform/index.d.ts +1 -1
  43. package/types/micro-frontend/store.d.ts +5 -5
  44. package/types/theme/index.d.ts +1 -1
  45. package/index-BWv1vypU.js.gz +0 -0
  46. package/index-B_hNKVK-.js +0 -10
  47. package/index-BmwigFuJ.js.gz +0 -0
  48. package/packages/main-app-framework/index-BsqHCDiq.js +0 -10
  49. package/packages/main-app-framework/index-CEUVvcoF.js.gz +0 -0
  50. package/packages/main-app-framework/index-DGMsib08.js.gz +0 -0
@@ -0,0 +1,10 @@
1
+ import { openBlock as e, createElementBlock as r } from "vue";
2
+ import { _ as c } from "./index-Czrgf0sH.js";
3
+ const o = {};
4
+ function t(n, _) {
5
+ return e(), r("div");
6
+ }
7
+ const a = /* @__PURE__ */ c(o, [["render", t]]);
8
+ export {
9
+ a as default
10
+ };
@@ -1,6 +1,6 @@
1
1
  import '@das-fed/web/packages/main-app-framework/style.css';
2
2
  import "vue";
3
- import { m as a } from "./index-DGMsib08.js";
3
+ import { m as a } from "./index-Czrgf0sH.js";
4
4
  import "@das-fed/web/packages/i18n/index";
5
5
  export {
6
6
  a as mainAppFramework
@@ -1,7 +1,7 @@
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";
3
- import { DasWebLayout as ye, DasWebTabs as Me, DasWebMenu as Le, DasWebNav as _e } from "@das-fed/web/packages/layout/index";
4
- const z = w("/das-micro-app"), f = w([]), k = w(!1), O = w([]), F = w(!0);
2
+ import { ref as w, watch as M, reactive as T, getCurrentScope as ue, onScopeDispose as de, unref as I, getCurrentInstance as pe, onMounted as me, nextTick as ne, defineComponent as x, computed as N, openBlock as E, createElementBlock as D, Fragment as z, renderList as fe, withDirectives as ve, createBlock as se, vShow as he, createCommentVNode as Ae, mergeProps as we, withCtx as C, renderSlot as V, createVNode as O, onActivated as ge } from "vue";
3
+ import { DasWebLayout as ye, DasWebNav as Me, DasWebMenu as Le, DasWebTabs as _e } from "@das-fed/web/packages/layout/index";
4
+ const W = w("/das-micro-app"), f = w([]), k = w(!1), F = w([]), R = w(!0);
5
5
  let v = null, h = null, _ = null;
6
6
  const be = (e) => new Promise((t) => {
7
7
  const n = () => {
@@ -189,7 +189,7 @@ const be = (e) => new Promise((t) => {
189
189
  setMainAppLayoutVisible: (e) => {
190
190
  q("layoutVisible", { visible: e });
191
191
  }
192
- }, u = P({
192
+ }, l = T({
193
193
  visible: !1,
194
194
  theme: "default",
195
195
  logo: "",
@@ -201,54 +201,54 @@ const be = (e) => new Promise((t) => {
201
201
  // activeItem: '',
202
202
  // activeProject: {},
203
203
  eventListeners: {}
204
- }), W = {
204
+ }), j = {
205
205
  show: () => {
206
- u.visible = !0;
206
+ l.visible = !0;
207
207
  },
208
208
  hide: () => {
209
- u.visible = !1;
209
+ l.visible = !1;
210
210
  },
211
211
  setLogo: (e) => {
212
- u.logo = e;
212
+ l.logo = e;
213
213
  },
214
214
  setTheme: (e) => {
215
- u.theme = e;
215
+ l.theme = e;
216
216
  },
217
217
  setItems: (e) => {
218
- u.visible || (u.visible = !0), u.items = e;
218
+ l.visible || (l.visible = !0), l.items = e;
219
219
  },
220
- getItems: () => u.items,
220
+ getItems: () => l.items,
221
221
  removeItem: (e) => {
222
- const t = u.items.filter((n) => n.value !== e);
223
- u.items = t;
222
+ const t = l.items.filter((n) => n.value !== e);
223
+ l.items = t;
224
224
  },
225
225
  appendItem: (e) => {
226
- u.visible || (u.visible = !0), !u.items.find((n) => n.value == e.value) && u.items.push(e);
226
+ l.visible || (l.visible = !0), !l.items.find((n) => n.value == e.value) && l.items.push(e);
227
227
  },
228
228
  setActiveItem: (e) => {
229
- u.activeItem = e;
229
+ l.activeItem = e;
230
230
  },
231
231
  setConfig: (e) => {
232
- u.config = e;
232
+ l.config = e;
233
233
  },
234
234
  setProjects: (e) => {
235
- u.projects = e;
235
+ l.projects = e;
236
236
  },
237
237
  setProjectConfig: (e) => {
238
- u.projectConfig = e;
238
+ l.projectConfig = e;
239
239
  },
240
240
  setActiveProject: (e) => {
241
- u.activeProject = e;
241
+ l.activeProject = e;
242
242
  },
243
243
  setUserInfo: (e) => {
244
- u.userInfo = e;
244
+ l.userInfo = e;
245
245
  },
246
246
  setSearchConfig: (e) => {
247
- u.searchConfig = e;
247
+ l.searchConfig = e;
248
248
  },
249
249
  triggerEventListener: (e, t, n) => {
250
250
  var i;
251
- const s = u.eventListeners, { autoRemove: c = !1 } = n || {}, a = [];
251
+ const s = l.eventListeners, { autoRemove: c = !1 } = n || {}, a = [];
252
252
  for (const r in s) {
253
253
  const o = s[r];
254
254
  o.type === e && a.push(
@@ -261,9 +261,9 @@ const be = (e) => new Promise((t) => {
261
261
  },
262
262
  addEventListener: (e, t) => {
263
263
  const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), s = () => {
264
- u.eventListeners[n] && delete u.eventListeners[n];
264
+ l.eventListeners[n] && delete l.eventListeners[n];
265
265
  };
266
- return u.eventListeners[n] = {
266
+ return l.eventListeners[n] = {
267
267
  type: e,
268
268
  handler: async (c) => {
269
269
  try {
@@ -277,12 +277,12 @@ const be = (e) => new Promise((t) => {
277
277
  remove: s
278
278
  };
279
279
  }
280
- }, g = P({
280
+ }, g = T({
281
281
  theme: "default",
282
282
  items: [],
283
283
  collapse: !1,
284
284
  eventListeners: {}
285
- }), j = {
285
+ }), H = {
286
286
  setItems: (e) => {
287
287
  g.items = e;
288
288
  },
@@ -330,11 +330,11 @@ const be = (e) => new Promise((t) => {
330
330
  remove: s
331
331
  };
332
332
  }
333
- }, A = P({
333
+ }, A = T({
334
334
  theme: "default",
335
335
  items: [],
336
336
  eventListeners: {}
337
- }), H = {
337
+ }), U = {
338
338
  setItems: (e) => {
339
339
  A.items = e;
340
340
  },
@@ -384,12 +384,12 @@ const be = (e) => new Promise((t) => {
384
384
  remove: s
385
385
  };
386
386
  }
387
- }, R = P({
387
+ }, P = T({
388
388
  eventListeners: {}
389
389
  }), Ce = {
390
390
  triggerEventListener: (e, t, n) => {
391
391
  var i;
392
- const s = R.eventListeners, { autoRemove: c = !1 } = n || {}, a = [];
392
+ const s = P.eventListeners, { autoRemove: c = !1 } = n || {}, a = [];
393
393
  for (const r in s) {
394
394
  const o = s[r];
395
395
  o.type === e && a.push(
@@ -402,9 +402,9 @@ const be = (e) => new Promise((t) => {
402
402
  },
403
403
  addEventListener: (e, t) => {
404
404
  const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), s = () => {
405
- R.eventListeners[n] && delete R.eventListeners[n];
405
+ P.eventListeners[n] && delete P.eventListeners[n];
406
406
  };
407
- return R.eventListeners[n] = {
407
+ return P.eventListeners[n] = {
408
408
  type: e,
409
409
  handler: async (c) => {
410
410
  try {
@@ -418,24 +418,29 @@ const be = (e) => new Promise((t) => {
418
418
  remove: s
419
419
  };
420
420
  }
421
- }, U = P({
421
+ }, B = T({
422
422
  visible: !1,
423
423
  style: {}
424
424
  }), Oe = {
425
425
  set: (e, t) => {
426
- U.visible = e, t || (t = {}), t.transition || (t.transition = "all 0.3s"), t && (U.style = t);
426
+ B.visible = e, t || (t = {}), t.transition || (t.transition = "all 0.3s"), t && (B.style = t);
427
427
  }
428
428
  }, Fe = {
429
+ nav: l,
430
+ menu: g,
431
+ tab: A,
432
+ overlay: B,
433
+ iframeView: P,
429
434
  visible: w(!0)
430
435
  }, G = {
431
- nav: W,
432
- menu: j,
433
- tab: H,
436
+ nav: j,
437
+ menu: H,
438
+ tab: U,
434
439
  overlay: Oe,
435
440
  iframeView: Ce,
436
441
  setVisible: (e) => Fe.visible.value = e,
437
442
  setTheme: (e) => {
438
- W.setTheme(e), j.setTheme(e), H.setTheme(e);
443
+ j.setTheme(e), H.setTheme(e), U.setTheme(e);
439
444
  }
440
445
  }, re = (e, t) => {
441
446
  const n = e.__vccOpts || e;
@@ -444,9 +449,9 @@ const be = (e) => new Promise((t) => {
444
449
  return n;
445
450
  };
446
451
  var J;
447
- const B = typeof window < "u", Re = (e) => typeof e == "string", Ne = () => {
452
+ const $ = typeof window < "u", Re = (e) => typeof e == "string", Ne = () => {
448
453
  };
449
- B && ((J = window == null ? void 0 : window.navigator) != null && J.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
454
+ $ && ((J = window == null ? void 0 : window.navigator) != null && J.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
450
455
  function ae(e) {
451
456
  return typeof e == "function" ? e() : I(e);
452
457
  }
@@ -464,16 +469,16 @@ function oe(e) {
464
469
  const n = ae(e);
465
470
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
466
471
  }
467
- const xe = B ? window : void 0, Ve = B ? window.document : void 0;
472
+ const xe = $ ? window : void 0, Ve = $ ? window.document : void 0;
468
473
  function qe(...e) {
469
474
  let t, n, s, c;
470
475
  if (Re(e[0]) || Array.isArray(e[0]) ? ([n, s, c] = e, t = xe) : [t, n, s, c] = e, !t)
471
476
  return Ne;
472
477
  Array.isArray(n) || (n = [n]), Array.isArray(s) || (s = [s]);
473
478
  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))));
479
+ a.forEach((u) => u()), a.length = 0;
480
+ }, r = (u, y, m, L) => (u.addEventListener(y, m, L), () => u.removeEventListener(y, m, L)), o = M(() => [oe(t), ae(c)], ([u, y]) => {
481
+ i(), u && a.push(...n.flatMap((m) => s.map((L) => r(u, m, L, y))));
477
482
  }, { immediate: !0, flush: "post" }), p = () => {
478
483
  o(), i();
479
484
  };
@@ -538,9 +543,9 @@ function Be(e, t = {}) {
538
543
  } else
539
544
  return !1;
540
545
  return !1;
541
- }), [o, p, l, , y] = i;
546
+ }), [o, p, u, , y] = i;
542
547
  async function m() {
543
- r.value && (n != null && n[l] && await n[p](), a.value = !1);
548
+ r.value && (n != null && n[u] && await n[p](), a.value = !1);
544
549
  }
545
550
  async function L() {
546
551
  if (!r.value)
@@ -553,7 +558,7 @@ function Be(e, t = {}) {
553
558
  a.value ? await m() : await L();
554
559
  }
555
560
  return n && qe(n, y, () => {
556
- a.value = !!(n != null && n[l]);
561
+ a.value = !!(n != null && n[u]);
557
562
  }, !1), s && ie(m), {
558
563
  isSupported: r,
559
564
  isFullscreen: a,
@@ -643,58 +648,40 @@ const Ue = ["src", "entry", "name"], Ge = /* @__PURE__ */ x({
643
648
  entry: r.entry,
644
649
  name: r.name
645
650
  });
646
- const { dom: p, ...l } = r;
647
- d.triggerMicroAppLifeCycleListener("onLoaded", l), new ResizeObserver(() => {
651
+ const { dom: p, ...u } = r;
652
+ d.triggerMicroAppLifeCycleListener("onLoaded", u), new ResizeObserver(() => {
648
653
  d.sendMessageToMicroApp(i, "resize", o());
649
654
  }).observe(t.value), d.sendMessageToMicroApp(i, "setProxyMessageStatus", { visible: !0, parentHref: location.href }), d.sendMessageToMicroApp(i, "setProxSsoStatus", { visible: !0, parentHref: location.href });
650
655
  }, s = (a, i) => {
651
- const r = f.value.find((l) => l.name === i);
656
+ const r = f.value.find((u) => u.name === i);
652
657
  if (!r) return;
653
658
  const { dom: o, ...p } = r;
654
659
  d.sendMessageToMicroApp(i, "onActivated"), d.triggerMicroAppLifeCycleListener("onActivated", p);
655
660
  }, c = (a, i) => {
656
- const r = f.value.find((l) => l.name === i);
661
+ const r = f.value.find((u) => u.name === i);
657
662
  if (!r) return;
658
663
  const { dom: o, ...p } = r;
659
664
  d.sendMessageToMicroApp(i, "onDeactivated"), d.triggerMicroAppLifeCycleListener("onDeactivated", p);
660
665
  };
661
- return (a, i) => (E(), D(
662
- "div",
663
- {
664
- ref_key: "containerRef",
665
- ref: t,
666
- class: "das-micro-app-container"
667
- },
668
- [
669
- (E(!0), D(
670
- $,
671
- null,
672
- fe(I(f), (r) => (E(), D(
673
- $,
674
- null,
675
- [
676
- r.loaded ? ve((E(), se(Je, {
677
- key: 0,
678
- src: r.src || "",
679
- name: r.name,
680
- actived: r.actived,
681
- onOnLoaded: (o) => n(o, r.name),
682
- onOnActivated: (o) => s(o, r.name),
683
- onOnDeactivated: (o) => c(o, r.name)
684
- }, null, 8, ["src", "name", "actived", "onOnLoaded", "onOnActivated", "onOnDeactivated"])), [
685
- [Ae, r.actived]
686
- ]) : he("v-if", !0)
687
- ],
688
- 64
689
- /* STABLE_FRAGMENT */
690
- ))),
691
- 256
692
- /* UNKEYED_FRAGMENT */
693
- ))
694
- ],
695
- 512
696
- /* NEED_PATCH */
697
- ));
666
+ return (a, i) => (E(), D("div", {
667
+ ref_key: "containerRef",
668
+ ref: t,
669
+ class: "das-micro-app-container"
670
+ }, [
671
+ (E(!0), D(z, null, fe(I(f), (r) => (E(), D(z, null, [
672
+ r.loaded ? ve((E(), se(Je, {
673
+ key: 0,
674
+ src: r.src || "",
675
+ name: r.name,
676
+ actived: r.actived,
677
+ onOnLoaded: (o) => n(o, r.name),
678
+ onOnActivated: (o) => s(o, r.name),
679
+ onOnDeactivated: (o) => c(o, r.name)
680
+ }, null, 8, ["src", "name", "actived", "onOnLoaded", "onOnActivated", "onOnDeactivated"])), [
681
+ [he, r.actived]
682
+ ]) : Ae("", !0)
683
+ ], 64))), 256))
684
+ ], 512));
698
685
  }
699
686
  }), Xe = /* @__PURE__ */ re(Ke, [["__scopeId", "data-v-3abdb1e9"]]), tt = /* @__PURE__ */ x({
700
687
  __name: "das-main-app-layout",
@@ -718,26 +705,25 @@ const Ue = ["src", "entry", "name"], Ge = /* @__PURE__ */ x({
718
705
  "transition-config": s.value,
719
706
  "router-view-visible": n.value
720
707
  }, c.value), {
721
- header: T(() => [
708
+ header: C(() => [
722
709
  V(a.$slots, "header", {}, () => [
723
- C(I(_e))
710
+ O(I(Me))
724
711
  ])
725
712
  ]),
726
- aside: T(() => [
713
+ aside: C(() => [
727
714
  V(a.$slots, "aside", {}, () => [
728
- C(I(Le), { menuAttr: a.menuAttr }, null, 8, ["menuAttr"])
715
+ O(I(Le), { menuAttr: a.menuAttr }, null, 8, ["menuAttr"])
729
716
  ])
730
717
  ]),
731
- tab: T(() => [
718
+ tab: C(() => [
732
719
  V(a.$slots, "tab", {}, () => [
733
- C(I(Me), { tabsAttr: a.tabsAttr }, null, 8, ["tabsAttr"])
720
+ O(I(_e), { tabsAttr: a.tabsAttr }, null, 8, ["tabsAttr"])
734
721
  ])
735
722
  ]),
736
- default: T(() => [
737
- C(Xe)
723
+ default: C(() => [
724
+ O(Xe)
738
725
  ]),
739
726
  _: 3
740
- /* FORWARDED */
741
727
  }, 16, ["transition-config", "router-view-visible"]));
742
728
  }
743
729
  }), ce = /* @__PURE__ */ x({
@@ -751,9 +737,9 @@ const Ue = ["src", "entry", "name"], Ge = /* @__PURE__ */ x({
751
737
  }
752
738
  }), Ye = (e) => ["http://", "https://", "ws://", "wss://", "/"].find((n) => e.startsWith(n)) ? e : `/${e}`, nt = (e, t) => {
753
739
  if (!(e != null && e.microApps) || !Array.isArray(e.microApps)) return;
754
- window.__IN_DAS_MAIN_APP = !0, e != null && e.microAppRouterPrefix && (z.value = e.microAppRouterPrefix), f.value = (e.microApps || []).filter((c) => !!c.name).map((c) => ({ ...c, entry: Ye(c.entry || c.name) })), t == null || t.addRoute({
740
+ window.__IN_DAS_MAIN_APP = !0, e != null && e.microAppRouterPrefix && (W.value = e.microAppRouterPrefix), f.value = (e.microApps || []).filter((c) => !!c.name).map((c) => ({ ...c, entry: Ye(c.entry || c.name) })), t == null || t.addRoute({
755
741
  name: "das-micro-app",
756
- path: `${z.value}/:pathMatch(.*)*`,
742
+ path: `${W.value}/:pathMatch(.*)*`,
757
743
  component: ce,
758
744
  meta: { isMicroApp: !0, keepAlive: !0 }
759
745
  }), d.addEventListenerFromMicroApp("bodyOverlay", (c) => {
@@ -796,7 +782,7 @@ const Ue = ["src", "entry", "name"], Ge = /* @__PURE__ */ x({
796
782
  c.value = !1;
797
783
  return;
798
784
  }
799
- const { path: r, query: o, params: p, meta: l } = i;
785
+ const { path: r, query: o, params: p, meta: u } = i;
800
786
  if (a.value.includes(i.path)) {
801
787
  a.value = "";
802
788
  return;
@@ -807,36 +793,36 @@ const Ue = ["src", "entry", "name"], Ge = /* @__PURE__ */ x({
807
793
  path: r,
808
794
  query: { ...o, microAppName: e.microAppName },
809
795
  params: p,
810
- meta: l
796
+ meta: u
811
797
  }
812
798
  });
813
799
  }
814
800
  ), d.addEventListenerFromMainApp("router", async (i) => {
815
- var l;
801
+ var u;
816
802
  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);
803
+ a.value = ("/" + p + o.path).replace(/\/\//g, "/"), (u = t == null ? void 0 : t[r]) == null || u.call(t, o);
818
804
  }), d.addEventListenerFromMainApp("onLoaded", (i) => {
819
805
  const { href: r, microAppContainerRect: o } = i.data;
820
806
  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
807
  }), d.addEventListenerFromMainApp("onDeactivated", (i) => {
822
- const { name: r = "", path: o, params: p = {}, query: l = {} } = t.currentRoute.value;
808
+ const { name: r = "", path: o, params: p = {}, query: u = {} } = t.currentRoute.value;
823
809
  c.value = !0, t == null || t.push({
824
810
  name: n,
825
- query: { microAppName: e.microAppName, fromQuery: JSON.stringify(l), fromPath: o },
811
+ query: { microAppName: e.microAppName, fromQuery: JSON.stringify(u), fromPath: o },
826
812
  params: p
827
813
  });
828
814
  }), d.addEventListenerFromMainApp("onActivated", (i) => {
829
- const { name: r = "", params: o = {}, query: p = {} } = t.currentRoute.value, { fromPath: l = "", fromQuery: y = "{}" } = p || {};
830
- s.value = !0, t == null || t.push({ path: l, query: JSON.parse(y), params: o });
815
+ const { name: r = "", params: o = {}, query: p = {} } = t.currentRoute.value, { fromPath: u = "", fromQuery: y = "{}" } = p || {};
816
+ s.value = !0, t == null || t.push({ path: u, query: JSON.parse(y), params: o });
831
817
  }), d.addEventListenerFromMainApp("sessionStorage", (i) => {
832
818
  const { cmd: r, key: o, value: p } = i.data;
833
819
  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
820
  }), d.addEventListenerFromMainApp("route", (i) => {
835
821
  const { cmd: r, path: o } = i.data;
836
- r === "reload" && (O.value.push(o), F.value = !1, setTimeout(() => {
837
- F.value = !0, O.value = [];
838
- }, 300)), r === "unload" && (O.value.push(o), F.value = !1, setTimeout(() => {
839
- F.value = !0, O.value = [];
822
+ r === "reload" && (F.value.push(o), R.value = !1, setTimeout(() => {
823
+ R.value = !0, F.value = [];
824
+ }, 300)), r === "unload" && (F.value.push(o), R.value = !1, setTimeout(() => {
825
+ R.value = !0, F.value = [];
840
826
  }, 100));
841
827
  });
842
828
  };
Binary file
Binary file
Binary file
package/style.css.gz CHANGED
Binary file
@@ -3,7 +3,7 @@ import { DasWebAppOptions } from './type';
3
3
  declare const createDasWebApp: (options?: DasWebAppOptions) => {
4
4
  app: import('vue').App<Element>;
5
5
  router: import('vue-router').Router;
6
- loading: import('vue').Ref<any, any>;
6
+ loading: import('vue').Ref<any>;
7
7
  store: import('pinia').Pinia;
8
8
  };
9
9
  export { createDasWebApp };
@@ -1,5 +1,5 @@
1
1
  declare const customLangeData: any;
2
- declare const currentLang: import('vue').Ref<any, any>;
2
+ declare const currentLang: import('vue').Ref<any>;
3
3
  declare const setLangRule: (data?: any, type?: "global" | "custom") => void;
4
4
  declare const setI18nRule: (data?: any, type?: "global" | "custom") => void;
5
5
  declare const initI18n: (opt?: any) => any;
@@ -19,5 +19,5 @@ declare const i18n: (key: string, ...args: any[]) => import('vue').ComputedRef<s
19
19
  */
20
20
  declare const t: (key: string, ...args: any) => string;
21
21
  declare const setLang: (lang: "zh-CN" | "en") => void;
22
- declare const getLang: () => import('vue').Ref<any, any>;
22
+ declare const getLang: () => import('vue').Ref<any>;
23
23
  export { initI18n, setI18nRule, getI18nRule, i18n, t, setLang, getLang, currentLang, setLangRule, customLangeData };
@@ -4,7 +4,7 @@ declare const layoutData: {
4
4
  tab: any;
5
5
  overlay: any;
6
6
  iframeView: any;
7
- visible: import('vue').Ref<any, any>;
7
+ visible: import('vue').Ref<any>;
8
8
  };
9
9
  declare const layout: {
10
10
  nav: {
@@ -1,10 +1,10 @@
1
1
  import { Ref } from 'vue';
2
2
 
3
3
  export declare const useAlarm: () => {
4
- alarmSocket: Ref<any, any>;
5
- alarmCount: Ref<any, any>;
6
- audioObj: Ref<any, any>;
7
- audioAlarmRef: Ref<any, any>;
4
+ alarmSocket: Ref<any>;
5
+ alarmCount: Ref<any>;
6
+ audioObj: Ref<any>;
7
+ audioAlarmRef: Ref<any>;
8
8
  handleAlarmVue: () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
9
9
  [key: string]: any;
10
10
  }>;
@@ -1,6 +1,6 @@
1
1
  export declare const useVideoLink: () => {
2
- gridNum: import('vue').Ref<any, any>;
3
- deviceList: import('vue').Ref<any, any>;
4
- videoSocket: import('vue').Ref<any, any>;
2
+ gridNum: import('vue').Ref<any>;
3
+ deviceList: import('vue').Ref<any>;
4
+ videoSocket: import('vue').Ref<any>;
5
5
  connectLinkVideoSocket: () => any;
6
6
  };
@@ -1,4 +1,4 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, any, {} | {
2
- [x: string]: any;
3
- }, {}, {}, {}, string, any, true, {}, any>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, any, {
2
+ [x: string]: Record<string, any>;
3
+ }, {}>;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
1
  import { default as PersonSetDialog } from './src/index.vue';
2
2
 
3
- declare const PersonSetDialogRef: () => any;
3
+ declare const PersonSetDialogRef: () => import('vue').Ref<any>;
4
4
  export { PersonSetDialog, PersonSetDialogRef };
@@ -5,12 +5,12 @@ export declare const useBuiltInDialog: (options: {
5
5
  information: Ref<any>;
6
6
  validate: any;
7
7
  }) => {
8
- builtInDialog: Ref<any, any>;
9
- $typeTree: any;
10
- treeId: Ref<any, any>;
11
- treePath: Ref<any, any>;
12
- keyword: Ref<any, any>;
13
- treeData: Ref<any, any>;
8
+ builtInDialog: Ref<any>;
9
+ $typeTree: Ref<any>;
10
+ treeId: Ref<any>;
11
+ treePath: Ref<any>;
12
+ keyword: Ref<any>;
13
+ treeData: Ref<any>;
14
14
  openBuiltInDialog: () => void;
15
15
  loadChildNode: (nodeData: any) => unknown;
16
16
  search: (name: string) => unknown;
@@ -4,16 +4,16 @@ export declare const useNotBuiltInDialog: (options: {
4
4
  orgInfo: any;
5
5
  information: Ref<any>;
6
6
  }) => {
7
- loading: Ref<any, any>;
8
- urlDialog: Ref<any, any>;
9
- urlType: Ref<any, any>;
10
- urlTypeOptions: Ref<any, any>;
11
- tableData: Ref<any, any>;
12
- pageSize: Ref<any, any>;
13
- pageIndex: Ref<any, any>;
14
- totalCount: Ref<any, any>;
15
- tableFilter: Ref<any, any>;
16
- urlId: Ref<any, any>;
7
+ loading: Ref<any>;
8
+ urlDialog: Ref<any>;
9
+ urlType: Ref<any>;
10
+ urlTypeOptions: Ref<any>;
11
+ tableData: Ref<any>;
12
+ pageSize: Ref<any>;
13
+ pageIndex: Ref<any>;
14
+ totalCount: Ref<any>;
15
+ tableFilter: Ref<any>;
16
+ urlId: Ref<any>;
17
17
  openUrlDialog: () => void;
18
18
  tableChange: (val: string | number, row: any, index: number) => void;
19
19
  confirmUrl: () => void;
@@ -2,8 +2,8 @@ declare const mainAppFramework: {
2
2
  routes: {};
3
3
  Layout: any;
4
4
  data: {
5
- homeInfo: import('vue').Ref<any, any>;
6
- personalConfig: import('vue').Ref<any, any>;
5
+ homeInfo: import('vue').Ref<any>;
6
+ personalConfig: import('vue').Ref<any>;
7
7
  };
8
8
  hooks: {
9
9
  useEntryApp: () => {
@@ -1,5 +1,5 @@
1
- declare const appLoading: import('vue').Ref<any, any>;
2
- declare const appcategorys: import('vue').Ref<any, any>;
1
+ declare const appLoading: import('vue').Ref<any>;
2
+ declare const appcategorys: import('vue').Ref<any>;
3
3
  declare const apps: import('vue').ComputedRef<any>;
4
4
  declare const getNavConfig: () => unknown;
5
5
  declare const getFixedAppsConfig: () => unknown;
@@ -2,10 +2,10 @@
2
2
  declare const getLoginConfig: () => unknown;
3
3
  /** 获取平台配置 */
4
4
  declare const getPlatformConfig: () => unknown;
5
- declare const homeInfo: import('vue').Ref<any, any>;
5
+ declare const homeInfo: import('vue').Ref<any>;
6
6
  /** 获取首页配置 */
7
7
  declare const getHomeConfig: () => unknown;
8
- declare const personalMenuConfig: import('vue').Ref<any, any>;
8
+ declare const personalMenuConfig: import('vue').Ref<any>;
9
9
  /** 获取 侧边栏风格、皮肤风格 配置 */
10
10
  declare const getPersonalMenuConfig: () => unknown;
11
11
  /** 获取个人语言设置详情 */
@@ -1,4 +1,4 @@
1
1
  export declare const useAIHelper: () => {
2
- $aiPanel: import('vue').Ref<any, any>;
2
+ $aiPanel: import('vue').Ref<any>;
3
3
  toApp: (url: any) => void;
4
4
  };
@@ -1,8 +1,8 @@
1
1
  /** 系统配置===姚凯提供的 */
2
2
  export declare const getWithdefault: (payload?: any, payloadConfig?: import('@das-fed/utils/curring-http/type').CurringConfig) => import('@das-fed/utils/curring-http/type').CurringRes;
3
3
  export declare const useChangeEnterprise: () => {
4
- changeEnterprisesVisible: import('vue').Ref<any, any>;
5
- userId: import('vue').Ref<any, any>;
6
- tenantId: import('vue').Ref<any, any>;
4
+ changeEnterprisesVisible: import('vue').Ref<any>;
5
+ userId: import('vue').Ref<any>;
6
+ tenantId: import('vue').Ref<any>;
7
7
  changeEnterprise: (tenantId: string) => any;
8
8
  };