@das-fed/web 6.4.0-dev.3 → 6.4.0-dev.31

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