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

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 (76) hide show
  1. package/esm-map.json +2 -1
  2. package/index-BJaVqwM1.js +7439 -0
  3. package/index-BJaVqwM1.js.gz +0 -0
  4. package/{index-D8XgnluX.js → index-BqdkqUh1.js} +1 -1
  5. package/index-DTXiRF91.js +75 -0
  6. package/index-DTXiRF91.js.gz +0 -0
  7. package/index.js +16 -15
  8. package/package.json +6 -6
  9. package/packages/create-das-web-app/config.js +1 -0
  10. package/packages/create-das-web-app/index.js +48 -802
  11. package/packages/create-das-web-app/index.js.gz +0 -0
  12. package/packages/i18n/config.js +1 -0
  13. package/packages/i18n/index.js +25 -24
  14. package/packages/i18n/index.js.gz +0 -0
  15. package/packages/layout/config.js +1 -0
  16. package/packages/layout/index.js +450 -406
  17. package/packages/layout/index.js.gz +0 -0
  18. package/packages/layout/style.css +2 -2
  19. package/packages/layout/style.css.gz +0 -0
  20. package/packages/main-app-framework/config.js +1 -0
  21. package/packages/main-app-framework/index-D3CMerRp.js +75 -0
  22. package/packages/main-app-framework/index-D3CMerRp.js.gz +0 -0
  23. package/packages/main-app-framework/index-DCoCFFJH.js +6097 -0
  24. package/packages/main-app-framework/index-DCoCFFJH.js.gz +0 -0
  25. package/packages/main-app-framework/{index-BkJc1lDT.js → index-GuLooLSc.js} +1 -1
  26. package/packages/main-app-framework/index.js +1 -1
  27. package/packages/main-app-framework/style.css +1 -1
  28. package/packages/main-app-framework/style.css.gz +0 -0
  29. package/packages/micro-frontend/config.js +1 -0
  30. package/packages/micro-frontend/index.js +180 -163
  31. package/packages/micro-frontend/index.js.gz +0 -0
  32. package/packages/micro-frontend/style.css +1 -1
  33. package/packages/style/config.js +1 -0
  34. package/packages/style/style.css +1 -1
  35. package/packages/style/style.css.gz +0 -0
  36. package/packages/theme/config.js +1 -0
  37. package/packages/theme/index.js.gz +0 -0
  38. package/style.css +2 -2
  39. package/style.css.gz +0 -0
  40. package/types/create-das-web-app/index.d.ts +1 -1
  41. package/types/i18n/index.d.ts +2 -2
  42. package/types/layout/index.d.ts +1 -1
  43. package/types/layout/store/index.d.ts +6 -1
  44. package/types/layout/store/menu.d.ts +2 -0
  45. package/types/layout/store/nav.d.ts +1 -0
  46. package/types/layout/store/tab.d.ts +1 -0
  47. package/types/main-app-framework/business/alarm/use-alarm.d.ts +4 -4
  48. package/types/main-app-framework/business/video-link/api.d.ts +2 -0
  49. package/types/main-app-framework/business/video-link/index.d.ts +3 -3
  50. package/types/main-app-framework/business/video-link/video-dialog/hooks/PlayerProvider.d.ts +3 -3
  51. package/types/main-app-framework/components/iframe-page/index.d.ts +3 -0
  52. package/types/main-app-framework/components/index.d.ts +1 -0
  53. package/types/main-app-framework/components/person-set-dialog/index.d.ts +1 -1
  54. package/types/main-app-framework/index.d.ts +1 -1
  55. package/types/main-app-framework/init-config/get-nav-config/api.d.ts +2 -0
  56. package/types/main-app-framework/init-config/get-nav-config/index.d.ts +4 -3
  57. package/types/main-app-framework/init-config/get-system-config/index.d.ts +3 -3
  58. package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +3 -3
  59. package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +2 -2
  60. package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +4 -4
  61. package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +3 -3
  62. package/types/main-app-framework/init-platform/index.d.ts +1 -1
  63. package/types/micro-frontend/store.d.ts +5 -5
  64. package/types/theme/index.d.ts +1 -1
  65. package/index--5iw3PcC.js +0 -7970
  66. package/index--5iw3PcC.js.gz +0 -0
  67. package/index-BSYJheVx.js +0 -68
  68. package/index-BSYJheVx.js.gz +0 -0
  69. package/index-C5zNxpQk.js +0 -70
  70. package/index-C5zNxpQk.js.gz +0 -0
  71. package/packages/main-app-framework/index-C_X3k7z0.js +0 -70
  72. package/packages/main-app-framework/index-C_X3k7z0.js.gz +0 -0
  73. package/packages/main-app-framework/index-D7pfTqeW.js +0 -5917
  74. package/packages/main-app-framework/index-D7pfTqeW.js.gz +0 -0
  75. package/packages/main-app-framework/index-MhsbUVtD.js +0 -68
  76. package/packages/main-app-framework/index-MhsbUVtD.js.gz +0 -0
@@ -1,8 +1,8 @@
1
1
  import '@das-fed/web/packages/micro-frontend/style.css';
2
- import { ref as w, watch as y, reactive as O, getCurrentScope as oe, onScopeDispose as ce, unref as I, getCurrentInstance as le, onMounted as ue, nextTick as Z, defineComponent as x, computed as T, openBlock as E, createElementBlock as N, Fragment as $, renderList as de, withDirectives as pe, createBlock as ee, vShow as me, createCommentVNode as fe, mergeProps as ve, withCtx as C, renderSlot as V, createVNode as F, onActivated as Ae } from "vue";
3
- import { DasWebLayout as he, DasWebNav as we, DasWebMenu as ge, DasWebTabs as _e } from "@das-fed/web/packages/layout/index";
4
- const z = w("/das-micro-app"), f = w([]), k = w(!1), R = w([]), D = w(!0);
5
- let A = null, h = null, L = null;
2
+ import { ref as w, watch as M, reactive as C, getCurrentScope as ue, onScopeDispose as de, unref as I, getCurrentInstance as pe, onMounted as me, nextTick as ne, defineComponent as x, computed as D, openBlock as E, createElementBlock as N, Fragment as $, renderList as fe, withDirectives as ve, createBlock as re, vShow as he, createCommentVNode as Ae, mergeProps as we, withCtx as O, renderSlot as V, createVNode as T, onActivated as ge } from "vue";
3
+ import { DasWebLayout as ye, DasWebNav as Me, DasWebMenu as _e, DasWebTabs as Le } from "@das-fed/web/packages/layout/index";
4
+ const z = w("/das-micro-app"), f = w([]), k = w(!1), F = w([]), R = w(!0);
5
+ let h = null, A = null, L = null;
6
6
  const b = (e, t, n) => {
7
7
  var c, a, i, s;
8
8
  const r = f.value.find((o) => o.name === e);
@@ -14,53 +14,51 @@ const b = (e, t, n) => {
14
14
  (s = (i = r.dom) == null ? void 0 : i.contentWindow) == null || s.postMessage({ type: t, data: n }, r.entry);
15
15
  }
16
16
  }, q = (e, t) => {
17
- var a;
18
- const { __IN_DAS_MICRO_APP: n, __DAS_MAIN_APP_HREF: r } = window;
19
- if (!n || !r) return;
20
- const { origin: c } = new URL(r);
21
- (a = window.top) == null || a.postMessage({ type: e, data: t }, c);
22
- }, ye = () => {
23
- h || (h || (h = {}), window.addEventListener(
17
+ var r;
18
+ const { origin: n } = new URL(location.href);
19
+ (r = window.top) == null || r.postMessage({ type: e, data: t }, n);
20
+ }, be = () => {
21
+ A || (A || (A = {}), window.addEventListener(
24
22
  "message",
25
23
  (e) => {
26
24
  const { type: t, source: n } = e.data || {};
27
- if (n !== "react-devtools-content-script" && h[t])
28
- for (const r in h[t])
29
- h[t][r](e.data);
25
+ if (n !== "react-devtools-content-script" && A[t])
26
+ for (const r in A[t])
27
+ A[t][r](e.data);
30
28
  },
31
29
  !1
32
30
  ));
33
- }, Me = () => {
34
- A || (A || (A = {}), window.addEventListener(
31
+ }, Ie = () => {
32
+ h || (h || (h = {}), window.addEventListener(
35
33
  "message",
36
34
  (e) => {
37
35
  const { type: t } = e.data || {};
38
- if (A[t])
39
- for (const n in A[t])
40
- A[t][n](e.data);
36
+ if (h[t])
37
+ for (const n in h[t])
38
+ h[t][n](e.data);
41
39
  },
42
40
  !1
43
41
  ));
44
- }, Le = (e, t) => {
45
- Me();
42
+ }, Ee = (e, t) => {
43
+ Ie();
46
44
  const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8);
47
- return A[e] || (A[e] = {}), A[e][n] = t, {
45
+ return h[e] || (h[e] = {}), h[e][n] = t, {
48
46
  remove: () => {
49
- A[e] && A[e][n] && delete A[e][n];
47
+ h[e] && h[e][n] && delete h[e][n];
50
48
  }
51
49
  };
52
- }, be = (e, t) => {
53
- ye();
50
+ }, Se = (e, t) => {
51
+ be();
54
52
  const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8);
55
- return h[e] || (h[e] = {}), h[e][n] = t, {
53
+ return A[e] || (A[e] = {}), A[e][n] = t, {
56
54
  remove: () => {
57
- h[e] && h[e][n] && delete h[e][n];
55
+ A[e] && A[e][n] && delete A[e][n];
58
56
  }
59
57
  };
60
58
  }, Q = async (e) => {
61
59
  await Promise.all(
62
60
  f.value.filter((t) => t.loaded).map((t) => new Promise(async (n) => {
63
- t.dom || await new Promise((r) => y(() => t.dom, r)), setTimeout(() => {
61
+ t.dom || await new Promise((r) => M(() => t.dom, r)), setTimeout(() => {
64
62
  b(t.name, "sessionStorage", e), n(!0);
65
63
  }, 0);
66
64
  }))
@@ -86,7 +84,7 @@ const b = (e, t, n) => {
86
84
  },
87
85
  hideMicroApp: async (e) => {
88
86
  const t = f.value.find((n) => n.name === e);
89
- t && t.loaded && (t.dom || await new Promise((n) => y(() => t.dom, n)), b(e, "router", {
87
+ t && t.loaded && (t.dom || await new Promise((n) => M(() => t.dom, n)), b(e, "router", {
90
88
  cmd: "push",
91
89
  route: {
92
90
  name: "das-micro-app-ghost",
@@ -110,7 +108,7 @@ const b = (e, t, n) => {
110
108
  },
111
109
  setMicroAppRoute: async (e, t, n) => {
112
110
  const r = f.value.find((s) => s.name === t);
113
- if (!r || !r.loaded || !r.actived || (r.dom || await new Promise((s) => y(() => r.dom, s)), !r.actived)) return r;
111
+ if (!r || !r.loaded || !r.actived || (r.dom || await new Promise((s) => M(() => r.dom, s)), !r.actived)) return r;
114
112
  const c = n.path || n, a = n.query || {}, i = n.params || {};
115
113
  return e.push({
116
114
  path: `/${t}${c}`,
@@ -128,8 +126,8 @@ const b = (e, t, n) => {
128
126
  },
129
127
  sendMessageToMicroApp: b,
130
128
  sendMessageToMainApp: q,
131
- addEventListenerFromMainApp: Le,
132
- addEventListenerFromMicroApp: be,
129
+ addEventListenerFromMainApp: Ee,
130
+ addEventListenerFromMicroApp: Se,
133
131
  setMainAppOverlay: (e, t) => {
134
132
  q("bodyOverlay", { visible: e, style: t });
135
133
  },
@@ -170,17 +168,18 @@ const b = (e, t, n) => {
170
168
  },
171
169
  reloadMicroAppRoute: async (e, t) => {
172
170
  const n = f.value.find((r) => r.name === e);
173
- n && (!n.loaded || !n.actived || (n.dom || await new Promise((r) => y(() => n.dom, r)), b(e, "route", { cmd: "reload", path: t })));
171
+ n && (!n.loaded || !n.actived || (n.dom || await new Promise((r) => M(() => n.dom, r)), b(e, "route", { cmd: "reload", path: t })));
174
172
  },
175
173
  unloadMicroAppRoute: async (e, t) => {
176
174
  const n = f.value.find((r) => r.name === e);
177
- n && (!n.loaded || !n.actived || (n.dom || await new Promise((r) => y(() => n.dom, r)), b(e, "route", { cmd: "unload", path: t })));
175
+ n && (!n.loaded || !n.actived || (n.dom || await new Promise((r) => M(() => n.dom, r)), b(e, "route", { cmd: "unload", path: t })));
178
176
  },
179
177
  setMainAppLayoutVisible: (e) => {
180
178
  q("layoutVisible", { visible: e });
181
179
  }
182
- }, u = O({
180
+ }, l = C({
183
181
  visible: !1,
182
+ theme: "default",
184
183
  logo: "",
185
184
  items: [],
186
185
  projects: [],
@@ -190,51 +189,54 @@ const b = (e, t, n) => {
190
189
  // activeItem: '',
191
190
  // activeProject: {},
192
191
  eventListeners: {}
193
- }), Ie = {
192
+ }), j = {
194
193
  show: () => {
195
- u.visible = !0;
194
+ l.visible = !0;
196
195
  },
197
196
  hide: () => {
198
- u.visible = !1;
197
+ l.visible = !1;
199
198
  },
200
199
  setLogo: (e) => {
201
- u.logo = e;
200
+ l.logo = e;
201
+ },
202
+ setTheme: (e) => {
203
+ l.theme = e;
202
204
  },
203
205
  setItems: (e) => {
204
- u.visible || (u.visible = !0), u.items = e;
206
+ l.visible || (l.visible = !0), l.items = e;
205
207
  },
206
- getItems: () => u.items,
208
+ getItems: () => l.items,
207
209
  removeItem: (e) => {
208
- const t = u.items.filter((n) => n.value !== e);
209
- u.items = t;
210
+ const t = l.items.filter((n) => n.value !== e);
211
+ l.items = t;
210
212
  },
211
213
  appendItem: (e) => {
212
- u.visible || (u.visible = !0), !u.items.find((n) => n.value == e.value) && u.items.push(e);
214
+ l.visible || (l.visible = !0), !l.items.find((n) => n.value == e.value) && l.items.push(e);
213
215
  },
214
216
  setActiveItem: (e) => {
215
- u.activeItem = e;
217
+ l.activeItem = e;
216
218
  },
217
219
  setConfig: (e) => {
218
- u.config = e;
220
+ l.config = e;
219
221
  },
220
222
  setProjects: (e) => {
221
- u.projects = e;
223
+ l.projects = e;
222
224
  },
223
225
  setProjectConfig: (e) => {
224
- u.projectConfig = e;
226
+ l.projectConfig = e;
225
227
  },
226
228
  setActiveProject: (e) => {
227
- u.activeProject = e;
229
+ l.activeProject = e;
228
230
  },
229
231
  setUserInfo: (e) => {
230
- u.userInfo = e;
232
+ l.userInfo = e;
231
233
  },
232
234
  setSearchConfig: (e) => {
233
- u.searchConfig = e;
235
+ l.searchConfig = e;
234
236
  },
235
237
  triggerEventListener: (e, t, n) => {
236
238
  var i;
237
- const r = u.eventListeners, { autoRemove: c = !1 } = n || {}, a = [];
239
+ const r = l.eventListeners, { autoRemove: c = !1 } = n || {}, a = [];
238
240
  for (const s in r) {
239
241
  const o = r[s];
240
242
  o.type === e && a.push(
@@ -247,9 +249,9 @@ const b = (e, t, n) => {
247
249
  },
248
250
  addEventListener: (e, t) => {
249
251
  const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), r = () => {
250
- u.eventListeners[n] && delete u.eventListeners[n];
252
+ l.eventListeners[n] && delete l.eventListeners[n];
251
253
  };
252
- return u.eventListeners[n] = {
254
+ return l.eventListeners[n] = {
253
255
  type: e,
254
256
  handler: async (c) => {
255
257
  try {
@@ -263,23 +265,31 @@ const b = (e, t, n) => {
263
265
  remove: r
264
266
  };
265
267
  }
266
- }, _ = O({
268
+ }, g = C({
269
+ theme: "default",
267
270
  items: [],
271
+ collapse: !1,
268
272
  eventListeners: {}
269
- }), Ee = {
273
+ }), H = {
270
274
  setItems: (e) => {
271
- _.items = e;
275
+ g.items = e;
276
+ },
277
+ getItems: () => g.items,
278
+ setTheme: (e) => {
279
+ g.theme = e;
272
280
  },
273
- getItems: () => _.items,
274
281
  setActiveItem: (e) => {
275
- _.activeItem = e;
282
+ g.activeItem = e;
283
+ },
284
+ setCollapse: (e) => {
285
+ g.collapse = e;
276
286
  },
277
287
  setPopupClassName: (e) => {
278
- _.popupClassName = e;
288
+ g.popupClassName = e;
279
289
  },
280
290
  triggerEventListener: (e, t, n) => {
281
291
  var i;
282
- const r = _.eventListeners, { autoRemove: c = !1 } = n || {}, a = [];
292
+ const r = g.eventListeners, { autoRemove: c = !1 } = n || {}, a = [];
283
293
  for (const s in r) {
284
294
  const o = r[s];
285
295
  o.type === e && a.push(
@@ -292,9 +302,9 @@ const b = (e, t, n) => {
292
302
  },
293
303
  addEventListener: (e, t) => {
294
304
  const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), r = () => {
295
- _.eventListeners[n] && delete _.eventListeners[n];
305
+ g.eventListeners[n] && delete g.eventListeners[n];
296
306
  };
297
- return _.eventListeners[n] = {
307
+ return g.eventListeners[n] = {
298
308
  type: e,
299
309
  handler: async (c) => {
300
310
  try {
@@ -308,14 +318,18 @@ const b = (e, t, n) => {
308
318
  remove: r
309
319
  };
310
320
  }
311
- }, v = O({
321
+ }, v = C({
322
+ theme: "default",
312
323
  items: [],
313
324
  eventListeners: {}
314
- }), Se = {
325
+ }), U = {
315
326
  setItems: (e) => {
316
327
  v.items = e;
317
328
  },
318
329
  getItems: () => v.items,
330
+ setTheme: (e) => {
331
+ v.theme = e;
332
+ },
319
333
  removeItem: (e) => {
320
334
  const t = v.items.filter((n) => n.value !== e);
321
335
  v.items = t;
@@ -358,7 +372,7 @@ const b = (e, t, n) => {
358
372
  remove: r
359
373
  };
360
374
  }
361
- }, P = O({
375
+ }, P = C({
362
376
  eventListeners: {}
363
377
  }), Pe = {
364
378
  triggerEventListener: (e, t, n) => {
@@ -392,76 +406,79 @@ const b = (e, t, n) => {
392
406
  remove: r
393
407
  };
394
408
  }
395
- }, W = O({
409
+ }, W = C({
396
410
  visible: !1,
397
411
  style: {}
398
- }), Oe = {
412
+ }), Ce = {
399
413
  set: (e, t) => {
400
414
  W.visible = e, t || (t = {}), t.transition || (t.transition = "all 0.3s"), t && (W.style = t);
401
415
  }
402
- }, Ce = {
403
- nav: u,
404
- menu: _,
416
+ }, Oe = {
417
+ nav: l,
418
+ menu: g,
405
419
  tab: v,
406
420
  overlay: W,
407
421
  iframeView: P,
408
422
  visible: w(!0)
409
- }, j = {
410
- nav: Ie,
411
- menu: Ee,
412
- tab: Se,
413
- overlay: Oe,
423
+ }, G = {
424
+ nav: j,
425
+ menu: H,
426
+ tab: U,
427
+ overlay: Ce,
414
428
  iframeView: Pe,
415
- setVisible: (e) => Ce.visible.value = e
416
- }, te = (e, t) => {
429
+ setVisible: (e) => Oe.visible.value = e,
430
+ setTheme: (e) => {
431
+ j.setTheme(e), H.setTheme(e), U.setTheme(e);
432
+ }
433
+ }, se = (e, t) => {
417
434
  const n = e.__vccOpts || e;
418
435
  for (const [r, c] of t)
419
436
  n[r] = c;
420
437
  return n;
421
438
  };
422
- var H;
423
- const B = typeof window < "u", Fe = (e) => typeof e == "string", Re = () => {
439
+ var J;
440
+ const B = typeof window < "u", Te = (e) => typeof e == "string", Fe = () => {
424
441
  };
425
- B && ((H = window == null ? void 0 : window.navigator) != null && H.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
426
- function ne(e) {
442
+ B && ((J = window == null ? void 0 : window.navigator) != null && J.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
443
+ function ae(e) {
427
444
  return typeof e == "function" ? e() : I(e);
428
445
  }
429
- function De(e) {
446
+ function Re(e) {
430
447
  return e;
431
448
  }
432
- function re(e) {
433
- return oe() ? (ce(e), !0) : !1;
449
+ function ie(e) {
450
+ return ue() ? (de(e), !0) : !1;
434
451
  }
435
- function Te(e, t = !0) {
436
- le() ? ue(e) : t ? e() : Z(e);
452
+ function De(e, t = !0) {
453
+ pe() ? me(e) : t ? e() : ne(e);
437
454
  }
438
- function se(e) {
455
+ function oe(e) {
439
456
  var t;
440
- const n = ne(e);
457
+ const n = ae(e);
441
458
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
442
459
  }
443
460
  const Ne = B ? window : void 0, ke = B ? window.document : void 0;
444
461
  function xe(...e) {
445
462
  let t, n, r, c;
446
- if (Fe(e[0]) || Array.isArray(e[0]) ? ([n, r, c] = e, t = Ne) : [t, n, r, c] = e, !t)
447
- return Re;
463
+ if (Te(e[0]) || Array.isArray(e[0]) ? ([n, r, c] = e, t = Ne) : [t, n, r, c] = e, !t)
464
+ return Fe;
448
465
  Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
449
466
  const a = [], i = () => {
450
- a.forEach((l) => l()), a.length = 0;
451
- }, s = (l, g, m, M) => (l.addEventListener(g, m, M), () => l.removeEventListener(g, m, M)), o = y(() => [se(t), ne(c)], ([l, g]) => {
452
- i(), l && a.push(...n.flatMap((m) => r.map((M) => s(l, m, M, g))));
467
+ a.forEach((u) => u()), a.length = 0;
468
+ }, s = (u, y, m, _) => (u.addEventListener(y, m, _), () => u.removeEventListener(y, m, _)), o = M(() => [oe(t), ae(c)], ([u, y]) => {
469
+ i(), u && a.push(...n.flatMap((m) => r.map((_) => s(u, m, _, y))));
453
470
  }, { immediate: !0, flush: "post" }), p = () => {
454
471
  o(), i();
455
472
  };
456
- return re(p), p;
473
+ return ie(p), p;
457
474
  }
458
475
  function Ve(e, t = !1) {
459
476
  const n = w(), r = () => n.value = !!e();
460
- return r(), Te(r, t), n;
477
+ return r(), De(r, t), n;
461
478
  }
462
- const U = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, G = "__vueuse_ssr_handlers__";
463
- U[G] = U[G] || {};
464
- const J = [
479
+ const K = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, X = "__vueuse_ssr_handlers__";
480
+ K[X] = K[X] || {};
481
+ const Y = [
465
482
  [
466
483
  "requestFullscreen",
467
484
  "exitFullscreen",
@@ -505,49 +522,49 @@ const J = [
505
522
  ];
506
523
  function qe(e, t = {}) {
507
524
  const { document: n = ke, autoExit: r = !1 } = t, c = n == null ? void 0 : n.querySelector("html"), a = w(!1);
508
- let i = J[0];
525
+ let i = Y[0];
509
526
  const s = Ve(() => {
510
527
  if (n) {
511
- for (const S of J)
528
+ for (const S of Y)
512
529
  if (S[1] in n)
513
530
  return i = S, !0;
514
531
  } else
515
532
  return !1;
516
533
  return !1;
517
- }), [o, p, l, , g] = i;
534
+ }), [o, p, u, , y] = i;
518
535
  async function m() {
519
- s.value && (n != null && n[l] && await n[p](), a.value = !1);
536
+ s.value && (n != null && n[u] && await n[p](), a.value = !1);
520
537
  }
521
- async function M() {
538
+ async function _() {
522
539
  if (!s.value)
523
540
  return;
524
541
  await m();
525
- const S = se(c);
542
+ const S = oe(c);
526
543
  S && (await S[o](), a.value = !0);
527
544
  }
528
- async function ie() {
529
- a.value ? await m() : await M();
545
+ async function le() {
546
+ a.value ? await m() : await _();
530
547
  }
531
- return n && xe(n, g, () => {
532
- a.value = !!(n != null && n[l]);
533
- }, !1), r && re(m), {
548
+ return n && xe(n, y, () => {
549
+ a.value = !!(n != null && n[u]);
550
+ }, !1), r && ie(m), {
534
551
  isSupported: s,
535
552
  isFullscreen: a,
536
- enter: M,
553
+ enter: _,
537
554
  exit: m,
538
- toggle: ie
555
+ toggle: le
539
556
  };
540
557
  }
541
- var K;
558
+ var Z;
542
559
  (function(e) {
543
560
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
544
- })(K || (K = {}));
545
- var Qe = Object.defineProperty, X = Object.getOwnPropertySymbols, We = Object.prototype.hasOwnProperty, Be = Object.prototype.propertyIsEnumerable, Y = (e, t, n) => t in e ? Qe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, $e = (e, t) => {
561
+ })(Z || (Z = {}));
562
+ var Qe = Object.defineProperty, ee = Object.getOwnPropertySymbols, We = Object.prototype.hasOwnProperty, Be = Object.prototype.propertyIsEnumerable, te = (e, t, n) => t in e ? Qe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, $e = (e, t) => {
546
563
  for (var n in t || (t = {}))
547
- We.call(t, n) && Y(e, n, t[n]);
548
- if (X)
549
- for (var n of X(t))
550
- Be.call(t, n) && Y(e, n, t[n]);
564
+ We.call(t, n) && te(e, n, t[n]);
565
+ if (ee)
566
+ for (var n of ee(t))
567
+ Be.call(t, n) && te(e, n, t[n]);
551
568
  return e;
552
569
  };
553
570
  const ze = {
@@ -577,7 +594,7 @@ const ze = {
577
594
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
578
595
  };
579
596
  $e({
580
- linear: De
597
+ linear: Re
581
598
  }, ze);
582
599
  const je = ["src", "entry", "name"], He = /* @__PURE__ */ x({
583
600
  __name: "das-micro-app",
@@ -590,8 +607,8 @@ const je = ["src", "entry", "name"], He = /* @__PURE__ */ x({
590
607
  setup(e, { emit: t }) {
591
608
  const n = e, r = t, c = (s) => {
592
609
  r("onLoaded", s);
593
- }, a = T(() => n.actived);
594
- return y(() => a.value, (s) => {
610
+ }, a = D(() => n.actived);
611
+ return M(() => a.value, (s) => {
595
612
  s && r("onActivated"), s || r("onDeactivated");
596
613
  }), (s, o) => (E(), N("iframe", {
597
614
  class: "das-micro-app",
@@ -602,13 +619,13 @@ const je = ["src", "entry", "name"], He = /* @__PURE__ */ x({
602
619
  onLoad: c
603
620
  }, null, 40, je));
604
621
  }
605
- }), Ue = /* @__PURE__ */ te(He, [["__scopeId", "data-v-2266bab0"]]), Ge = /* @__PURE__ */ x({
622
+ }), Ue = /* @__PURE__ */ se(He, [["__scopeId", "data-v-8ae871f6"]]), Ge = /* @__PURE__ */ x({
606
623
  __name: "das-micro-apps",
607
624
  setup(e) {
608
625
  const t = w(null), n = async (a, i) => {
609
626
  const s = f.value.find((m) => m.name === i);
610
627
  if (!s) return;
611
- s.dom = a.target, await Z(), await new Promise((m) => setTimeout(m, 50));
628
+ s.dom = a.target, await ne(), await new Promise((m) => setTimeout(m, 50));
612
629
  const o = () => {
613
630
  const m = t.value.getBoundingClientRect() || {};
614
631
  return m.width = t.value.clientWidth, m.height = t.value.clientHeight, m;
@@ -619,17 +636,17 @@ const je = ["src", "entry", "name"], He = /* @__PURE__ */ x({
619
636
  entry: s.entry,
620
637
  name: s.name
621
638
  });
622
- const { dom: p, ...l } = s;
623
- d.triggerMicroAppLifeCycleListener("onLoaded", l), new ResizeObserver(() => {
639
+ const { dom: p, ...u } = s;
640
+ d.triggerMicroAppLifeCycleListener("onLoaded", u), new ResizeObserver(() => {
624
641
  d.sendMessageToMicroApp(i, "resize", o());
625
642
  }).observe(t.value), d.sendMessageToMicroApp(i, "setProxyMessageStatus", { visible: !0, parentHref: location.href }), d.sendMessageToMicroApp(i, "setProxSsoStatus", { visible: !0, parentHref: location.href });
626
643
  }, r = (a, i) => {
627
- const s = f.value.find((l) => l.name === i);
644
+ const s = f.value.find((u) => u.name === i);
628
645
  if (!s) return;
629
646
  const { dom: o, ...p } = s;
630
647
  d.sendMessageToMicroApp(i, "onActivated"), d.triggerMicroAppLifeCycleListener("onActivated", p);
631
648
  }, c = (a, i) => {
632
- const s = f.value.find((l) => l.name === i);
649
+ const s = f.value.find((u) => u.name === i);
633
650
  if (!s) return;
634
651
  const { dom: o, ...p } = s;
635
652
  d.sendMessageToMicroApp(i, "onDeactivated"), d.triggerMicroAppLifeCycleListener("onDeactivated", p);
@@ -645,11 +662,11 @@ const je = ["src", "entry", "name"], He = /* @__PURE__ */ x({
645
662
  (E(!0), N(
646
663
  $,
647
664
  null,
648
- de(I(f), (s) => (E(), N(
665
+ fe(I(f), (s) => (E(), N(
649
666
  $,
650
667
  null,
651
668
  [
652
- s.loaded ? pe((E(), ee(Ue, {
669
+ s.loaded ? ve((E(), re(Ue, {
653
670
  key: 0,
654
671
  src: s.src || "",
655
672
  name: s.name,
@@ -658,8 +675,8 @@ const je = ["src", "entry", "name"], He = /* @__PURE__ */ x({
658
675
  onOnActivated: (o) => r(o, s.name),
659
676
  onOnDeactivated: (o) => c(o, s.name)
660
677
  }, null, 8, ["src", "name", "actived", "onOnLoaded", "onOnActivated", "onOnDeactivated"])), [
661
- [me, s.actived]
662
- ]) : fe("v-if", !0)
678
+ [he, s.actived]
679
+ ]) : Ae("v-if", !0)
663
680
  ],
664
681
  64
665
682
  /* STABLE_FRAGMENT */
@@ -672,7 +689,7 @@ const je = ["src", "entry", "name"], He = /* @__PURE__ */ x({
672
689
  /* NEED_PATCH */
673
690
  ));
674
691
  }
675
- }), Je = /* @__PURE__ */ te(Ge, [["__scopeId", "data-v-2e3798bc"]]), Ze = /* @__PURE__ */ x({
692
+ }), Je = /* @__PURE__ */ se(Ge, [["__scopeId", "data-v-3abdb1e9"]]), Ze = /* @__PURE__ */ x({
676
693
  __name: "das-main-app-layout",
677
694
  props: {
678
695
  transitionConfig: { default: () => {
@@ -686,40 +703,40 @@ const je = ["src", "entry", "name"], He = /* @__PURE__ */ x({
686
703
  } }
687
704
  },
688
705
  setup(e) {
689
- const t = e, n = T(() => !k.value), r = T(() => ({
706
+ const t = e, n = D(() => !k.value), r = D(() => ({
690
707
  "enter-active-class": "animate__animated animate__fadeInLeft",
691
708
  ...t.transitionConfig
692
- })), c = T(() => ({ showLayout: t.showLayout, showAside: t.showAside, showTabs: t.showTabs }));
693
- return (a, i) => (E(), ee(I(he), ve({
709
+ })), c = D(() => ({ showLayout: t.showLayout, showAside: t.showAside, showTabs: t.showTabs }));
710
+ return (a, i) => (E(), re(I(ye), we({
694
711
  "transition-config": r.value,
695
712
  "router-view-visible": n.value
696
713
  }, c.value), {
697
- header: C(() => [
714
+ header: O(() => [
698
715
  V(a.$slots, "header", {}, () => [
699
- F(I(we))
716
+ T(I(Me))
700
717
  ])
701
718
  ]),
702
- aside: C(() => [
719
+ aside: O(() => [
703
720
  V(a.$slots, "aside", {}, () => [
704
- F(I(ge), { menuAttr: a.menuAttr }, null, 8, ["menuAttr"])
721
+ T(I(_e), { menuAttr: a.menuAttr }, null, 8, ["menuAttr"])
705
722
  ])
706
723
  ]),
707
- tab: C(() => [
724
+ tab: O(() => [
708
725
  V(a.$slots, "tab", {}, () => [
709
- F(I(_e), { tabsAttr: a.tabsAttr }, null, 8, ["tabsAttr"])
726
+ T(I(Le), { tabsAttr: a.tabsAttr }, null, 8, ["tabsAttr"])
710
727
  ])
711
728
  ]),
712
- default: C(() => [
713
- F(Je)
729
+ default: O(() => [
730
+ T(Je)
714
731
  ]),
715
732
  _: 3
716
733
  /* FORWARDED */
717
734
  }, 16, ["transition-config", "router-view-visible"]));
718
735
  }
719
- }), ae = /* @__PURE__ */ x({
736
+ }), ce = /* @__PURE__ */ x({
720
737
  __name: "das-micro-app-ghost",
721
738
  setup(e) {
722
- return Ae(() => {
739
+ return ge(() => {
723
740
  setTimeout(() => {
724
741
  document.documentElement.checkVisibility() && history.back();
725
742
  }, 300);
@@ -730,14 +747,14 @@ const je = ["src", "entry", "name"], He = /* @__PURE__ */ x({
730
747
  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: Ke(c.entry || c.name) })), t == null || t.addRoute({
731
748
  name: "das-micro-app",
732
749
  path: `${z.value}/:pathMatch(.*)*`,
733
- component: ae,
750
+ component: ce,
734
751
  meta: { isMicroApp: !0, keepAlive: !0 }
735
752
  }), d.addEventListenerFromMicroApp("bodyOverlay", (c) => {
736
753
  const { visible: a, style: i } = c.data;
737
- j.overlay.set(a, i);
754
+ G.overlay.set(a, i);
738
755
  }), d.addEventListenerFromMicroApp("layoutVisible", (c) => {
739
756
  const { visible: a } = c.data;
740
- j.setVisible(a);
757
+ G.setVisible(a);
741
758
  }), d.addEventListenerFromMicroApp("route", (c) => {
742
759
  const { name: a, cmd: i, path: s } = c.data;
743
760
  i === "reload" && d.reloadMicroAppRoute(a, s), i === "unload" && d.unloadMicroAppRoute(a, s);
@@ -757,11 +774,11 @@ const je = ["src", "entry", "name"], He = /* @__PURE__ */ x({
757
774
  t == null || t.addRoute({
758
775
  name: n,
759
776
  path: `/${n}/:pathMatch(.*)*`,
760
- component: ae,
777
+ component: ce,
761
778
  meta: { isMicroApp: !0, keepAlive: !0 }
762
779
  });
763
780
  const r = w(!1), c = w(!1), a = w("");
764
- y(
781
+ M(
765
782
  () => t.currentRoute.value,
766
783
  (i) => {
767
784
  if (r.value) {
@@ -772,7 +789,7 @@ const je = ["src", "entry", "name"], He = /* @__PURE__ */ x({
772
789
  c.value = !1;
773
790
  return;
774
791
  }
775
- const { path: s, query: o, params: p, meta: l } = i;
792
+ const { path: s, query: o, params: p, meta: u } = i;
776
793
  if (a.value.includes(i.path)) {
777
794
  a.value = "";
778
795
  return;
@@ -783,36 +800,36 @@ const je = ["src", "entry", "name"], He = /* @__PURE__ */ x({
783
800
  path: s,
784
801
  query: { ...o, microAppName: e.microAppName },
785
802
  params: p,
786
- meta: l
803
+ meta: u
787
804
  }
788
805
  });
789
806
  }
790
807
  ), d.addEventListenerFromMainApp("router", async (i) => {
791
- var l;
808
+ var u;
792
809
  const { cmd: s, route: o, microAppName: p = "" } = i.data;
793
- a.value = ("/" + p + o.path).replace(/\/\//g, "/"), (l = t == null ? void 0 : t[s]) == null || l.call(t, o);
810
+ a.value = ("/" + p + o.path).replace(/\/\//g, "/"), (u = t == null ? void 0 : t[s]) == null || u.call(t, o);
794
811
  }), d.addEventListenerFromMainApp("onLoaded", (i) => {
795
812
  const { href: s, microAppContainerRect: o } = i.data;
796
813
  window.__IN_DAS_MICRO_APP = !0, window.__DAS_MICRO_APP_NAME = e.microAppName, window.__DAS_MAIN_APP_HREF = s, window.__DAS_MICRO_APP_CONTAINER_RECT = o;
797
814
  }), d.addEventListenerFromMainApp("onDeactivated", (i) => {
798
- const { name: s = "", path: o, params: p = {}, query: l = {} } = t.currentRoute.value;
815
+ const { name: s = "", path: o, params: p = {}, query: u = {} } = t.currentRoute.value;
799
816
  c.value = !0, t == null || t.push({
800
817
  name: n,
801
- query: { microAppName: e.microAppName, fromQuery: JSON.stringify(l), fromPath: o },
818
+ query: { microAppName: e.microAppName, fromQuery: JSON.stringify(u), fromPath: o },
802
819
  params: p
803
820
  });
804
821
  }), d.addEventListenerFromMainApp("onActivated", (i) => {
805
- const { name: s = "", params: o = {}, query: p = {} } = t.currentRoute.value, { fromPath: l = "", fromQuery: g = "{}" } = p || {};
806
- r.value = !0, t == null || t.push({ path: l, query: JSON.parse(g), params: o });
822
+ const { name: s = "", params: o = {}, query: p = {} } = t.currentRoute.value, { fromPath: u = "", fromQuery: y = "{}" } = p || {};
823
+ r.value = !0, t == null || t.push({ path: u, query: JSON.parse(y), params: o });
807
824
  }), d.addEventListenerFromMainApp("sessionStorage", (i) => {
808
825
  const { cmd: s, key: o, value: p } = i.data;
809
826
  s === "setItem" && window.sessionStorage.setItem(o, p), s === "getItem" && window.sessionStorage.getItem(o), s === "removeItem" && window.sessionStorage.removeItem(o), s === "clear" && window.sessionStorage.clear();
810
827
  }), d.addEventListenerFromMainApp("route", (i) => {
811
828
  const { cmd: s, path: o } = i.data;
812
- s === "reload" && (R.value.push(o), D.value = !1, setTimeout(() => {
813
- D.value = !0, R.value = [];
814
- }, 300)), s === "unload" && (R.value.push(o), D.value = !1, setTimeout(() => {
815
- D.value = !0, R.value = [];
829
+ s === "reload" && (F.value.push(o), R.value = !1, setTimeout(() => {
830
+ R.value = !0, F.value = [];
831
+ }, 300)), s === "unload" && (F.value.push(o), R.value = !1, setTimeout(() => {
832
+ R.value = !0, F.value = [];
816
833
  }, 100));
817
834
  });
818
835
  };