@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.
- package/{packages/main-app-framework/index-CEUVvcoF.js → index-BiinQ8qC.js} +3 -4
- package/index-BiinQ8qC.js.gz +0 -0
- package/{index-BWv1vypU.js → index-D6gsmqTy.js} +4504 -4942
- package/index-D6gsmqTy.js.gz +0 -0
- package/index-yjiCIu21.js +10 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/i18n/index.js.gz +0 -0
- package/packages/layout/index.js +103 -188
- package/packages/layout/index.js.gz +0 -0
- package/packages/layout/style.css.gz +0 -0
- package/{index-BmwigFuJ.js → packages/main-app-framework/index-C59SNYDx.js} +3 -4
- package/packages/main-app-framework/index-C59SNYDx.js.gz +0 -0
- package/packages/main-app-framework/{index-DGMsib08.js → index-Czrgf0sH.js} +2860 -3194
- package/packages/main-app-framework/index-Czrgf0sH.js.gz +0 -0
- package/packages/main-app-framework/index-DIxPIoNA.js +10 -0
- package/packages/main-app-framework/index.js +1 -1
- package/packages/main-app-framework/style.css.gz +0 -0
- package/packages/micro-frontend/index.js +97 -111
- package/packages/micro-frontend/index.js.gz +0 -0
- package/packages/style/style.css.gz +0 -0
- package/packages/theme/index.js.gz +0 -0
- package/style.css.gz +0 -0
- package/types/create-das-web-app/index.d.ts +1 -1
- package/types/i18n/index.d.ts +2 -2
- package/types/layout/store/index.d.ts +1 -1
- package/types/main-app-framework/business/alarm/use-alarm.d.ts +4 -4
- package/types/main-app-framework/business/video-link/index.d.ts +3 -3
- package/types/main-app-framework/business/video-link/video-dialog/hooks/PlayerProvider.d.ts +3 -3
- package/types/main-app-framework/components/person-set-dialog/index.d.ts +1 -1
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-builtIn-dialog.d.ts +6 -6
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-notBuiltIn-dialog.d.ts +10 -10
- package/types/main-app-framework/index.d.ts +2 -2
- package/types/main-app-framework/init-config/get-nav-config/index.d.ts +2 -2
- package/types/main-app-framework/init-config/get-system-config/index.d.ts +2 -2
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-ai-helper.d.ts +1 -1
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +3 -3
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +2 -2
- package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +5 -5
- package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +3 -3
- package/types/main-app-framework/init-platform/index.d.ts +1 -1
- package/types/micro-frontend/store.d.ts +5 -5
- package/types/theme/index.d.ts +1 -1
- package/index-BWv1vypU.js.gz +0 -0
- package/index-B_hNKVK-.js +0 -10
- package/index-BmwigFuJ.js.gz +0 -0
- package/packages/main-app-framework/index-BsqHCDiq.js +0 -10
- package/packages/main-app-framework/index-CEUVvcoF.js.gz +0 -0
- package/packages/main-app-framework/index-DGMsib08.js.gz +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -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
|
|
3
|
-
import { DasWebLayout as ye,
|
|
4
|
-
const
|
|
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
|
-
},
|
|
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
|
-
}),
|
|
204
|
+
}), j = {
|
|
205
205
|
show: () => {
|
|
206
|
-
|
|
206
|
+
l.visible = !0;
|
|
207
207
|
},
|
|
208
208
|
hide: () => {
|
|
209
|
-
|
|
209
|
+
l.visible = !1;
|
|
210
210
|
},
|
|
211
211
|
setLogo: (e) => {
|
|
212
|
-
|
|
212
|
+
l.logo = e;
|
|
213
213
|
},
|
|
214
214
|
setTheme: (e) => {
|
|
215
|
-
|
|
215
|
+
l.theme = e;
|
|
216
216
|
},
|
|
217
217
|
setItems: (e) => {
|
|
218
|
-
|
|
218
|
+
l.visible || (l.visible = !0), l.items = e;
|
|
219
219
|
},
|
|
220
|
-
getItems: () =>
|
|
220
|
+
getItems: () => l.items,
|
|
221
221
|
removeItem: (e) => {
|
|
222
|
-
const t =
|
|
223
|
-
|
|
222
|
+
const t = l.items.filter((n) => n.value !== e);
|
|
223
|
+
l.items = t;
|
|
224
224
|
},
|
|
225
225
|
appendItem: (e) => {
|
|
226
|
-
|
|
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
|
-
|
|
229
|
+
l.activeItem = e;
|
|
230
230
|
},
|
|
231
231
|
setConfig: (e) => {
|
|
232
|
-
|
|
232
|
+
l.config = e;
|
|
233
233
|
},
|
|
234
234
|
setProjects: (e) => {
|
|
235
|
-
|
|
235
|
+
l.projects = e;
|
|
236
236
|
},
|
|
237
237
|
setProjectConfig: (e) => {
|
|
238
|
-
|
|
238
|
+
l.projectConfig = e;
|
|
239
239
|
},
|
|
240
240
|
setActiveProject: (e) => {
|
|
241
|
-
|
|
241
|
+
l.activeProject = e;
|
|
242
242
|
},
|
|
243
243
|
setUserInfo: (e) => {
|
|
244
|
-
|
|
244
|
+
l.userInfo = e;
|
|
245
245
|
},
|
|
246
246
|
setSearchConfig: (e) => {
|
|
247
|
-
|
|
247
|
+
l.searchConfig = e;
|
|
248
248
|
},
|
|
249
249
|
triggerEventListener: (e, t, n) => {
|
|
250
250
|
var i;
|
|
251
|
-
const s =
|
|
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
|
-
|
|
264
|
+
l.eventListeners[n] && delete l.eventListeners[n];
|
|
265
265
|
};
|
|
266
|
-
return
|
|
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 =
|
|
280
|
+
}, g = T({
|
|
281
281
|
theme: "default",
|
|
282
282
|
items: [],
|
|
283
283
|
collapse: !1,
|
|
284
284
|
eventListeners: {}
|
|
285
|
-
}),
|
|
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 =
|
|
333
|
+
}, A = T({
|
|
334
334
|
theme: "default",
|
|
335
335
|
items: [],
|
|
336
336
|
eventListeners: {}
|
|
337
|
-
}),
|
|
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
|
-
},
|
|
387
|
+
}, P = T({
|
|
388
388
|
eventListeners: {}
|
|
389
389
|
}), Ce = {
|
|
390
390
|
triggerEventListener: (e, t, n) => {
|
|
391
391
|
var i;
|
|
392
|
-
const s =
|
|
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
|
-
|
|
405
|
+
P.eventListeners[n] && delete P.eventListeners[n];
|
|
406
406
|
};
|
|
407
|
-
return
|
|
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
|
-
},
|
|
421
|
+
}, B = T({
|
|
422
422
|
visible: !1,
|
|
423
423
|
style: {}
|
|
424
424
|
}), Oe = {
|
|
425
425
|
set: (e, t) => {
|
|
426
|
-
|
|
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:
|
|
432
|
-
menu:
|
|
433
|
-
tab:
|
|
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
|
-
|
|
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
|
|
452
|
+
const $ = typeof window < "u", Re = (e) => typeof e == "string", Ne = () => {
|
|
448
453
|
};
|
|
449
|
-
|
|
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 =
|
|
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((
|
|
475
|
-
}, r = (
|
|
476
|
-
i(),
|
|
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,
|
|
546
|
+
}), [o, p, u, , y] = i;
|
|
542
547
|
async function m() {
|
|
543
|
-
r.value && (n != null && n[
|
|
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[
|
|
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, ...
|
|
647
|
-
d.triggerMicroAppLifeCycleListener("onLoaded",
|
|
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((
|
|
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((
|
|
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
|
-
"
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
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:
|
|
708
|
+
header: C(() => [
|
|
722
709
|
V(a.$slots, "header", {}, () => [
|
|
723
|
-
|
|
710
|
+
O(I(Me))
|
|
724
711
|
])
|
|
725
712
|
]),
|
|
726
|
-
aside:
|
|
713
|
+
aside: C(() => [
|
|
727
714
|
V(a.$slots, "aside", {}, () => [
|
|
728
|
-
|
|
715
|
+
O(I(Le), { menuAttr: a.menuAttr }, null, 8, ["menuAttr"])
|
|
729
716
|
])
|
|
730
717
|
]),
|
|
731
|
-
tab:
|
|
718
|
+
tab: C(() => [
|
|
732
719
|
V(a.$slots, "tab", {}, () => [
|
|
733
|
-
|
|
720
|
+
O(I(_e), { tabsAttr: a.tabsAttr }, null, 8, ["tabsAttr"])
|
|
734
721
|
])
|
|
735
722
|
]),
|
|
736
|
-
default:
|
|
737
|
-
|
|
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 && (
|
|
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: `${
|
|
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:
|
|
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:
|
|
796
|
+
meta: u
|
|
811
797
|
}
|
|
812
798
|
});
|
|
813
799
|
}
|
|
814
800
|
), d.addEventListenerFromMainApp("router", async (i) => {
|
|
815
|
-
var
|
|
801
|
+
var u;
|
|
816
802
|
const { cmd: r, route: o, microAppName: p = "" } = i.data;
|
|
817
|
-
a.value = ("/" + p + o.path).replace(/\/\//g, "/"), (
|
|
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:
|
|
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(
|
|
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:
|
|
830
|
-
s.value = !0, t == null || t.push({ path:
|
|
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" && (
|
|
837
|
-
|
|
838
|
-
}, 300)), r === "unload" && (
|
|
839
|
-
|
|
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
|
|
6
|
+
loading: import('vue').Ref<any>;
|
|
7
7
|
store: import('pinia').Pinia;
|
|
8
8
|
};
|
|
9
9
|
export { createDasWebApp };
|
package/types/i18n/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const customLangeData: any;
|
|
2
|
-
declare const currentLang: import('vue').Ref<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
|
|
22
|
+
declare const getLang: () => import('vue').Ref<any>;
|
|
23
23
|
export { initI18n, setI18nRule, getI18nRule, i18n, t, setLang, getLang, currentLang, setLangRule, customLangeData };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
|
|
3
3
|
export declare const useAlarm: () => {
|
|
4
|
-
alarmSocket: Ref<any
|
|
5
|
-
alarmCount: Ref<any
|
|
6
|
-
audioObj: Ref<any
|
|
7
|
-
audioAlarmRef: Ref<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
|
|
3
|
-
deviceList: import('vue').Ref<any
|
|
4
|
-
videoSocket: import('vue').Ref<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
|
-
}, {}
|
|
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;
|
|
@@ -5,12 +5,12 @@ export declare const useBuiltInDialog: (options: {
|
|
|
5
5
|
information: Ref<any>;
|
|
6
6
|
validate: any;
|
|
7
7
|
}) => {
|
|
8
|
-
builtInDialog: Ref<any
|
|
9
|
-
$typeTree: any
|
|
10
|
-
treeId: Ref<any
|
|
11
|
-
treePath: Ref<any
|
|
12
|
-
keyword: Ref<any
|
|
13
|
-
treeData: Ref<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
|
|
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
|
|
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
|
|
6
|
-
personalConfig: import('vue').Ref<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
|
|
2
|
-
declare const appcategorys: import('vue').Ref<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
|
|
5
|
+
declare const homeInfo: import('vue').Ref<any>;
|
|
6
6
|
/** 获取首页配置 */
|
|
7
7
|
declare const getHomeConfig: () => unknown;
|
|
8
|
-
declare const personalMenuConfig: import('vue').Ref<any
|
|
8
|
+
declare const personalMenuConfig: import('vue').Ref<any>;
|
|
9
9
|
/** 获取 侧边栏风格、皮肤风格 配置 */
|
|
10
10
|
declare const getPersonalMenuConfig: () => unknown;
|
|
11
11
|
/** 获取个人语言设置详情 */
|
|
@@ -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
|
|
5
|
-
userId: import('vue').Ref<any
|
|
6
|
-
tenantId: import('vue').Ref<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
|
};
|