@das-fed/web 6.4.0-dev.2 → 6.4.0-dev.21

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