@das-fed/web 7.0.7-hot.18 → 7.0.7-hot.19

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 (30) hide show
  1. package/{index-BpLsqKPm.js → index-B4CwyFxz.js} +1 -1
  2. package/index-B4CwyFxz.js.gz +0 -0
  3. package/{packages/main-app-framework/index-hIRjIckX.js → index-BElJnB40.js} +1 -1
  4. package/{index-DQLGDm8x.js → index-Dqz5XyTL.js} +174 -174
  5. package/index-Dqz5XyTL.js.gz +0 -0
  6. package/index.js +1 -1
  7. package/package.json +6 -6
  8. package/packages/create-das-web-app/index.js.gz +0 -0
  9. package/packages/i18n/index.js.gz +0 -0
  10. package/packages/layout/index.js +167 -167
  11. package/packages/layout/index.js.gz +0 -0
  12. package/packages/layout/style.css.gz +0 -0
  13. package/packages/main-app-framework/{index-DaOM3wJB.js → index-DERXZ5By.js} +2614 -2614
  14. package/packages/main-app-framework/index-DERXZ5By.js.gz +0 -0
  15. package/packages/main-app-framework/{index-nZbuB31n.js → index-DLh60IDF.js} +1 -1
  16. package/packages/main-app-framework/index-DLh60IDF.js.gz +0 -0
  17. package/{index-Cue8Ni3b.js → packages/main-app-framework/index-tBEMWxBr.js} +1 -1
  18. package/packages/main-app-framework/index.js +1 -1
  19. package/packages/main-app-framework/style.css +1 -1
  20. package/packages/main-app-framework/style.css.gz +0 -0
  21. package/packages/micro-frontend/index.js +126 -126
  22. package/packages/micro-frontend/index.js.gz +0 -0
  23. package/packages/style/style.css.gz +0 -0
  24. package/packages/theme/index.js.gz +0 -0
  25. package/style.css +1 -1
  26. package/style.css.gz +0 -0
  27. package/index-BpLsqKPm.js.gz +0 -0
  28. package/index-DQLGDm8x.js.gz +0 -0
  29. package/packages/main-app-framework/index-DaOM3wJB.js.gz +0 -0
  30. package/packages/main-app-framework/index-nZbuB31n.js.gz +0 -0
@@ -1,5 +1,5 @@
1
1
  import '@das-fed/web/packages/layout/style.css';
2
- import { reactive as z, ref as H, defineComponent as q, computed as u, watch as te, createElementBlock as I, openBlock as g, Fragment as Y, createBlock as P, createCommentVNode as b, TransitionGroup as ye, normalizeProps as ne, mergeProps as ae, withCtx as K, renderList as le, withDirectives as j, resolveDynamicComponent as O, vShow as x, unref as w, nextTick as ce, resolveComponent as we, createElementVNode as $, normalizeStyle as be, normalizeClass as Le, renderSlot as N, createVNode as Z, Transition as ue, guardReactiveProps as ve, KeepAlive as de, h as ee, onBeforeMount as _e, onMounted as Ie, onUnmounted as Ce } from "vue";
2
+ import { reactive as z, ref as H, defineComponent as q, computed as u, watch as te, createElementBlock as I, openBlock as g, Fragment as Y, createBlock as P, createCommentVNode as b, TransitionGroup as ye, normalizeProps as ne, mergeProps as ae, withCtx as K, renderList as le, withDirectives as M, resolveDynamicComponent as O, vShow as j, unref as w, nextTick as ce, resolveComponent as we, createElementVNode as $, normalizeStyle as be, normalizeClass as Le, renderSlot as N, createVNode as Z, Transition as ue, guardReactiveProps as ve, KeepAlive as de, h as ee, onBeforeMount as Ie, onMounted as Ce, onUnmounted as _e } from "vue";
3
3
  import { useRouter as ke, useRoute as ge } from "vue-router";
4
4
  import { setHtmlMinWH as Te } from "@das-fed/utils/common-tools/setHtmlMinWH";
5
5
  import { createCeNav as Ae, createCeTabs as Ee, createCeMenu as Re } from "@das-fed/web-components/das-web-app";
@@ -34,11 +34,11 @@ const h = z({
34
34
  },
35
35
  getItems: () => h.items,
36
36
  removeItem: (e) => {
37
- const t = h.items.filter((s) => s.value !== e);
37
+ const t = h.items.filter((n) => n.value !== e);
38
38
  h.items = t;
39
39
  },
40
40
  appendItem: (e) => {
41
- h.visible || (h.visible = !0), !h.items.find((s) => s.value == e.value) && h.items.push(e);
41
+ h.visible || (h.visible = !0), !h.items.find((n) => n.value == e.value) && h.items.push(e);
42
42
  },
43
43
  setActiveItem: (e) => {
44
44
  h.activeItem = e;
@@ -61,9 +61,9 @@ const h = z({
61
61
  setSearchConfig: (e) => {
62
62
  h.searchConfig = e;
63
63
  },
64
- triggerEventListener: (e, t, s) => {
64
+ triggerEventListener: (e, t, n) => {
65
65
  var f;
66
- const l = h.eventListeners, { autoRemove: d = !1 } = s || {}, r = [];
66
+ const l = h.eventListeners, { autoRemove: d = !1 } = n || {}, r = [];
67
67
  for (const y in l) {
68
68
  const o = l[y];
69
69
  o.type === e && r.push(
@@ -75,10 +75,10 @@ const h = z({
75
75
  return Promise.all(r).then(() => !0).catch(() => !1);
76
76
  },
77
77
  addEventListener: (e, t) => {
78
- const s = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
79
- h.eventListeners[s] && delete h.eventListeners[s];
78
+ const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
79
+ h.eventListeners[n] && delete h.eventListeners[n];
80
80
  };
81
- return h.eventListeners[s] = {
81
+ return h.eventListeners[n] = {
82
82
  type: e,
83
83
  handler: async (d) => {
84
84
  try {
@@ -114,9 +114,9 @@ const h = z({
114
114
  setPopupClassName: (e) => {
115
115
  V.popupClassName = e;
116
116
  },
117
- triggerEventListener: (e, t, s) => {
117
+ triggerEventListener: (e, t, n) => {
118
118
  var f;
119
- const l = V.eventListeners, { autoRemove: d = !1 } = s || {}, r = [];
119
+ const l = V.eventListeners, { autoRemove: d = !1 } = n || {}, r = [];
120
120
  for (const y in l) {
121
121
  const o = l[y];
122
122
  o.type === e && r.push(
@@ -128,10 +128,10 @@ const h = z({
128
128
  return Promise.all(r).then(() => !0).catch(() => !1);
129
129
  },
130
130
  addEventListener: (e, t) => {
131
- const s = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
132
- V.eventListeners[s] && delete V.eventListeners[s];
131
+ const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
132
+ V.eventListeners[n] && delete V.eventListeners[n];
133
133
  };
134
- return V.eventListeners[s] = {
134
+ return V.eventListeners[n] = {
135
135
  type: e,
136
136
  handler: async (d) => {
137
137
  try {
@@ -145,32 +145,32 @@ const h = z({
145
145
  remove: l
146
146
  };
147
147
  }
148
- }, k = z({
148
+ }, _ = z({
149
149
  theme: "default",
150
150
  items: [],
151
151
  eventListeners: {}
152
152
  }), he = {
153
153
  setItems: (e) => {
154
- k.items = e;
154
+ _.items = e;
155
155
  },
156
- getItems: () => k.items,
156
+ getItems: () => _.items,
157
157
  setTheme: (e) => {
158
- k.theme = e;
158
+ _.theme = e;
159
159
  },
160
160
  removeItem: (e) => {
161
- const t = k.items.filter((s) => s.value !== e);
162
- k.items = t;
161
+ const t = _.items.filter((n) => n.value !== e);
162
+ _.items = t;
163
163
  },
164
164
  appendItem: (e) => {
165
- const t = k.items.findIndex((s) => s.value == e.value);
166
- t !== -1 ? k.items.splice(t, 1, e) : k.items.push(e);
165
+ const t = _.items.findIndex((n) => n.value == e.value);
166
+ t !== -1 ? _.items.splice(t, 1, e) : _.items.push(e);
167
167
  },
168
168
  setActiveItem: (e) => {
169
- k.activeItem = e;
169
+ _.activeItem = e;
170
170
  },
171
- triggerEventListener: (e, t, s) => {
171
+ triggerEventListener: (e, t, n) => {
172
172
  var f;
173
- const l = k.eventListeners, { autoRemove: d = !1 } = s || {}, r = [];
173
+ const l = _.eventListeners, { autoRemove: d = !1 } = n || {}, r = [];
174
174
  for (const y in l) {
175
175
  const o = l[y];
176
176
  o.type === e && r.push(
@@ -182,10 +182,10 @@ const h = z({
182
182
  return Promise.all(r).then(() => !0).catch(() => !1);
183
183
  },
184
184
  addEventListener: (e, t) => {
185
- const s = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
186
- k.eventListeners[s] && delete k.eventListeners[s];
185
+ const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
186
+ _.eventListeners[n] && delete _.eventListeners[n];
187
187
  };
188
- return k.eventListeners[s] = {
188
+ return _.eventListeners[n] = {
189
189
  type: e,
190
190
  handler: async (d) => {
191
191
  try {
@@ -202,9 +202,9 @@ const h = z({
202
202
  }, Q = z({
203
203
  eventListeners: {}
204
204
  }), Pe = {
205
- triggerEventListener: (e, t, s) => {
205
+ triggerEventListener: (e, t, n) => {
206
206
  var f;
207
- const l = Q.eventListeners, { autoRemove: d = !1 } = s || {}, r = [];
207
+ const l = Q.eventListeners, { autoRemove: d = !1 } = n || {}, r = [];
208
208
  for (const y in l) {
209
209
  const o = l[y];
210
210
  o.type === e && r.push(
@@ -216,10 +216,10 @@ const h = z({
216
216
  return Promise.all(r).then(() => !0).catch(() => !1);
217
217
  },
218
218
  addEventListener: (e, t) => {
219
- const s = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
220
- Q.eventListeners[s] && delete Q.eventListeners[s];
219
+ const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
220
+ Q.eventListeners[n] && delete Q.eventListeners[n];
221
221
  };
222
- return Q.eventListeners[s] = {
222
+ return Q.eventListeners[n] = {
223
223
  type: e,
224
224
  handler: async (d) => {
225
225
  try {
@@ -243,7 +243,7 @@ const h = z({
243
243
  }, B = {
244
244
  nav: h,
245
245
  menu: V,
246
- tab: k,
246
+ tab: _,
247
247
  overlay: se,
248
248
  iframeView: Q,
249
249
  visible: H(!0)
@@ -257,7 +257,7 @@ const h = z({
257
257
  setTheme: (e) => {
258
258
  me.setTheme(e), fe.setTheme(e), he.setTheme(e);
259
259
  }
260
- }, De = ["name"], Me = ["name"], je = /* @__PURE__ */ q({
260
+ }, xe = ["name"], De = ["name"], Me = /* @__PURE__ */ q({
261
261
  __name: "das-iframe-router-view",
262
262
  props: {
263
263
  needTransition: { type: Boolean },
@@ -265,40 +265,40 @@ const h = z({
265
265
  exclude: { default: () => [] }
266
266
  },
267
267
  setup(e) {
268
- const t = e, s = u(() => {
269
- const { mode: n = "", ...a } = {
268
+ const t = e, n = u(() => {
269
+ const { mode: s = "", ...a } = {
270
270
  mode: "out-in",
271
271
  "enter-active-class": "animate__animated animate__fadeInLeft",
272
272
  ...t.transitionConfig || {}
273
273
  };
274
274
  return a;
275
- }), l = ke(), d = ge(), r = H([]), f = u(() => r.value.filter((n) => {
275
+ }), l = ke(), d = ge(), r = H([]), f = u(() => r.value.filter((s) => {
276
276
  var a;
277
- return (a = n.meta) == null ? void 0 : a.isOpen;
278
- })), y = (n) => {
279
- const a = n.lastIndexOf("-");
280
- let i = a !== -1 ? n.substring(a + 1) : "";
277
+ return (a = s.meta) == null ? void 0 : a.isOpen;
278
+ })), y = (s) => {
279
+ const a = s.lastIndexOf("-");
280
+ let i = a !== -1 ? s.substring(a + 1) : "";
281
281
  i === "0" ? i = "1" : i = "0", f.value.forEach((m) => {
282
- m.meta.key === n && (m.meta.key = `${m.path}-${i}`);
282
+ m.meta.key === s && (m.meta.key = `${m.path}-${i}`);
283
283
  });
284
284
  };
285
285
  te(
286
286
  () => t.exclude,
287
- (n) => {
288
- if (!n || !n.length) return;
289
- const a = f.value.find((i) => n.includes(i.path));
287
+ (s) => {
288
+ if (!s || !s.length) return;
289
+ const a = f.value.find((i) => s.includes(i.path));
290
290
  a && y(a.meta.key);
291
291
  },
292
292
  { deep: !0 }
293
293
  );
294
- const o = async (n) => {
295
- const a = n.component;
294
+ const o = async (s) => {
295
+ const a = s.component;
296
296
  let i = null;
297
297
  return typeof a == "function" ? i = (await a()).default : i = a, i;
298
298
  }, S = async () => {
299
299
  var a;
300
- const n = l.options.routes;
301
- for (const i of n)
300
+ const s = l.options.routes;
301
+ for (const i of s)
302
302
  if ((a = i == null ? void 0 : i.meta) != null && a.isIframe && !r.value.find((m) => m.path === i.path)) {
303
303
  const m = await o(i);
304
304
  r.value.push({
@@ -306,12 +306,12 @@ const h = z({
306
306
  meta: { ...i.meta, key: `${i.path}-0`, componentInstance: m, isOpen: !1, isShow: !1 }
307
307
  });
308
308
  }
309
- T();
310
- }, T = async () => {
309
+ k();
310
+ }, k = async () => {
311
311
  var i, m;
312
312
  if (!r.value || !r.value.length) return;
313
- const n = r.value.find((C) => C.meta.isShow);
314
- n && (n.meta.isShow = !1, await ce(), v.iframeView.triggerEventListener("onDeactivated", { route: n }));
313
+ const s = r.value.find((C) => C.meta.isShow);
314
+ s && (s.meta.isShow = !1, await ce(), v.iframeView.triggerEventListener("onDeactivated", { route: s }));
315
315
  const a = r.value.find((C) => C.path === d.path);
316
316
  a && ((i = a.meta) != null && i.isOpen || (a.meta.isOpen = !0), (m = a.meta) != null && m.isShow || (a.meta.isShow = !0), await ce(), v.iframeView.triggerEventListener("onActivated", { route: a }));
317
317
  };
@@ -319,32 +319,32 @@ const h = z({
319
319
  return te(
320
320
  () => l.currentRoute.value,
321
321
  () => {
322
- const n = l.options.routes.length;
323
- n !== A ? (S(), A = n) : T();
322
+ const s = l.options.routes.length;
323
+ s !== A ? (S(), A = s) : k();
324
324
  },
325
325
  { immediate: !0 }
326
326
  ), v.iframeView.addEventListener("onRefreshCurrentPage", () => {
327
- f.value.forEach((n) => {
327
+ f.value.forEach((s) => {
328
328
  var a;
329
- (a = n.meta) != null && a.isShow && (n.meta.key.includes("0") ? n.meta.key = n.meta.key.replaceAll("0", "1") : n.meta.key = n.meta.key.replaceAll("1", "0"));
329
+ (a = s.meta) != null && a.isShow && (s.meta.key.includes("0") ? s.meta.key = s.meta.key.replaceAll("0", "1") : s.meta.key = s.meta.key.replaceAll("1", "0"));
330
330
  });
331
- }), v.iframeView.addEventListener("onUnloadPage", (n) => {
331
+ }), v.iframeView.addEventListener("onUnloadPage", (s) => {
332
332
  r.value.forEach((a) => {
333
- a.path === n && (a.meta.isOpen = !1);
333
+ a.path === s && (a.meta.isOpen = !1);
334
334
  });
335
- }), (n, a) => (g(), I(
335
+ }), (s, a) => (g(), I(
336
336
  Y,
337
337
  null,
338
338
  [
339
- n.needTransition ? (g(), P(
339
+ e.needTransition ? (g(), P(
340
340
  ye,
341
- ne(ae({ key: 0 }, s.value)),
341
+ ne(ae({ key: 0 }, n.value)),
342
342
  {
343
343
  default: K(() => [
344
344
  (g(!0), I(
345
345
  Y,
346
346
  null,
347
- le(f.value, ({ path: i, meta: m }) => j((g(), I("div", {
347
+ le(f.value, ({ path: i, meta: m }) => M((g(), I("div", {
348
348
  class: "das-iframe-router-view",
349
349
  key: m.key,
350
350
  name: i
@@ -352,8 +352,8 @@ const h = z({
352
352
  (g(), P(O(m.componentInstance), {
353
353
  key: m.key
354
354
  }))
355
- ], 8, De)), [
356
- [x, m.componentInstance && i === w(d).path]
355
+ ], 8, xe)), [
356
+ [j, m.componentInstance && i === w(d).path]
357
357
  ])),
358
358
  128
359
359
  /* KEYED_FRAGMENT */
@@ -365,10 +365,10 @@ const h = z({
365
365
  16
366
366
  /* FULL_PROPS */
367
367
  )) : b("v-if", !0),
368
- n.needTransition ? b("v-if", !0) : (g(!0), I(
368
+ e.needTransition ? b("v-if", !0) : (g(!0), I(
369
369
  Y,
370
370
  { key: 1 },
371
- le(f.value, ({ path: i, meta: m }) => j((g(), I("div", {
371
+ le(f.value, ({ path: i, meta: m }) => M((g(), I("div", {
372
372
  class: "das-iframe-router-view",
373
373
  key: m.key,
374
374
  name: i
@@ -376,8 +376,8 @@ const h = z({
376
376
  (g(), P(O(m.componentInstance), {
377
377
  key: m.key
378
378
  }))
379
- ], 8, Me)), [
380
- [x, m.componentInstance && i === w(d).path]
379
+ ], 8, De)), [
380
+ [j, m.componentInstance && i === w(d).path]
381
381
  ])),
382
382
  128
383
383
  /* KEYED_FRAGMENT */
@@ -388,11 +388,11 @@ const h = z({
388
388
  ));
389
389
  }
390
390
  }), pe = (e, t) => {
391
- const s = e.__vccOpts || e;
391
+ const n = e.__vccOpts || e;
392
392
  for (const [l, d] of t)
393
- s[l] = d;
394
- return s;
395
- }, xe = /* @__PURE__ */ pe(je, [["__scopeId", "data-v-6dd310c9"]]), $e = { class: "das-web-app-container" }, He = {
393
+ n[l] = d;
394
+ return n;
395
+ }, je = /* @__PURE__ */ pe(Me, [["__scopeId", "data-v-6dd310c9"]]), $e = { class: "das-web-app-container" }, He = {
396
396
  key: 0,
397
397
  class: "das-web-app-header"
398
398
  }, Be = { class: "das-web-app-main" }, Fe = {
@@ -426,23 +426,23 @@ const h = z({
426
426
  setup(e) {
427
427
  const t = e;
428
428
  Ae(), Ee(), Re();
429
- const s = ge(), l = H(!0), d = H(!0), r = H(!0), f = u(() => l.value && t.showLayout), y = u(() => d.value && t.showLayout && t.showAside), o = u(() => l.value && t.showLayout && t.showTabs), S = u(() => t.routerViewVisible ?? !0), T = u(() => B.overlay.visible ?? !1), A = H(!0), n = u(() => A.value && B.visible.value), a = u(() => ({
430
- "das-web-app-overlay-show": T.value === !0,
431
- "das-web-app-overlay-hide": T.value === !1,
432
- "das-web-app-overlay-destroy": T.value === "destroy"
429
+ const n = ge(), l = H(!0), d = H(!0), r = H(!0), f = u(() => l.value && t.showLayout), y = u(() => d.value && t.showLayout && t.showAside), o = u(() => l.value && t.showLayout && t.showTabs), S = u(() => t.routerViewVisible ?? !0), k = u(() => B.overlay.visible ?? !1), A = H(!0), s = u(() => A.value && B.visible.value), a = u(() => ({
430
+ "das-web-app-overlay-show": k.value === !0,
431
+ "das-web-app-overlay-hide": k.value === !1,
432
+ "das-web-app-overlay-destroy": k.value === "destroy"
433
433
  })), i = u(() => B.overlay.style ?? { backgroundColor: "rgba(0,0,0,0.5)" }), m = u(() => t.excludeRoutes), C = u(() => t.routeKeepAliveVisible);
434
434
  te(
435
- () => [s.meta, s.query],
436
- ([L, D]) => {
437
- const { layout: E = {}, showLayout: c = !0, showAside: p = !0, showTabs: _ = !0 } = L, {
438
- showLayout: M = !0,
435
+ () => [n.meta, n.query],
436
+ ([T, x]) => {
437
+ const { layout: E = {}, showLayout: c = !0, showAside: p = !0, showTabs: L = !0 } = T, {
438
+ showLayout: D = !0,
439
439
  showAside: R = !0,
440
440
  showTabs: F = !0,
441
441
  layoutVisible: re = !0
442
- } = D;
442
+ } = x;
443
443
  Te(E);
444
444
  let oe = !0, J = !0, X = !0;
445
- (c === !1 || M === !1 || M === "false") && (oe = !1, J = !1, X = !1), (p === !1 || R === !1 || R === "false") && (J = !1), (_ === !1 || F === !1 || F === "false") && (X = !1), l.value = oe, d.value = J, r.value = X;
445
+ (c === !1 || D === !1 || D === "false") && (oe = !1, J = !1, X = !1), (p === !1 || R === !1 || R === "false") && (J = !1), (L === !1 || F === !1 || F === "false") && (X = !1), l.value = oe, d.value = J, r.value = X;
446
446
  let ie = !0;
447
447
  (re === !1 || re === "false") && (ie = !1), A.value = ie;
448
448
  }
@@ -453,19 +453,19 @@ const h = z({
453
453
  ...t.transitionConfig || {}
454
454
  }));
455
455
  let W = /* @__PURE__ */ new Map();
456
- const G = (L, D) => {
456
+ const G = (T, x) => {
457
457
  let E;
458
- return W.has(D) ? E = W.get(D) : (E = {
459
- name: D,
458
+ return W.has(x) ? E = W.get(x) : (E = {
459
+ name: x,
460
460
  render() {
461
- return ee("div", { style: { width: "100%", height: "100%" } }, [ee(L)]);
461
+ return ee("div", { style: { width: "100%", height: "100%" } }, [ee(T)]);
462
462
  }
463
- }, W.set(D, E)), ee(E);
463
+ }, W.set(x, E)), ee(E);
464
464
  };
465
- return (L, D) => {
465
+ return (T, x) => {
466
466
  const E = we("router-view");
467
467
  return g(), I("div", $e, [
468
- j($(
468
+ M($(
469
469
  "div",
470
470
  {
471
471
  class: Le(["das-web-app-overlay", a.value]),
@@ -475,55 +475,55 @@ const h = z({
475
475
  6
476
476
  /* CLASS, STYLE */
477
477
  ), [
478
- [x, n.value]
478
+ [j, s.value]
479
479
  ]),
480
- f.value ? j((g(), I(
480
+ f.value ? M((g(), I(
481
481
  "div",
482
482
  He,
483
483
  [
484
- N(L.$slots, "header", {}, void 0, !0)
484
+ N(T.$slots, "header", {}, void 0, !0)
485
485
  ],
486
486
  512
487
487
  /* NEED_PATCH */
488
488
  )), [
489
- [x, n.value]
489
+ [j, s.value]
490
490
  ]) : b("v-if", !0),
491
491
  $("div", Be, [
492
- y.value ? j((g(), I(
492
+ y.value ? M((g(), I(
493
493
  "div",
494
494
  Fe,
495
495
  [
496
- N(L.$slots, "aside", {}, void 0, !0)
496
+ N(T.$slots, "aside", {}, void 0, !0)
497
497
  ],
498
498
  512
499
499
  /* NEED_PATCH */
500
500
  )), [
501
- [x, n.value]
501
+ [j, s.value]
502
502
  ]) : b("v-if", !0),
503
503
  $("div", Ne, [
504
- o.value ? j((g(), I(
504
+ o.value ? M((g(), I(
505
505
  "div",
506
506
  Oe,
507
507
  [
508
- N(L.$slots, "tab", {}, void 0, !0)
508
+ N(T.$slots, "tab", {}, void 0, !0)
509
509
  ],
510
510
  512
511
511
  /* NEED_PATCH */
512
512
  )), [
513
- [x, n.value]
513
+ [j, s.value]
514
514
  ]) : b("v-if", !0),
515
515
  $("div", Ue, [
516
516
  $("div", We, [
517
- N(L.$slots, "banner", {}, void 0, !0)
517
+ N(T.$slots, "banner", {}, void 0, !0)
518
518
  ]),
519
519
  $("div", Ke, [
520
- j((g(), I("div", {
521
- key: L.pageKey,
520
+ M((g(), I("div", {
521
+ key: e.pageKey,
522
522
  style: { width: "100%", height: "100%" }
523
523
  }, [
524
- N(L.$slots, "router-view", {}, () => [
524
+ N(T.$slots, "router-view", {}, () => [
525
525
  b(" 有动画 "),
526
- L.needTransition ? (g(), P(E, { key: 0 }, {
526
+ e.needTransition ? (g(), P(E, { key: 0 }, {
527
527
  default: K(({ Component: c }) => [
528
528
  Z(
529
529
  ue,
@@ -532,12 +532,12 @@ const h = z({
532
532
  default: K(() => {
533
533
  var p;
534
534
  return [
535
- w(s).meta.keepAlive ? (g(), P(de, {
535
+ w(n).meta.keepAlive ? (g(), P(de, {
536
536
  key: 0,
537
537
  exclude: m.value
538
538
  }, [
539
- C.value && !((p = w(s).meta) != null && p.isIframe) ? (g(), P(O(G(c, w(s).path)), {
540
- key: w(s).path
539
+ C.value && !((p = w(n).meta) != null && p.isIframe) ? (g(), P(O(G(c, w(n).path)), {
540
+ key: w(n).path
541
541
  })) : b("v-if", !0)
542
542
  ], 1032, ["exclude"])) : b("v-if", !0)
543
543
  ];
@@ -553,9 +553,9 @@ const h = z({
553
553
  ne(ve(U.value)),
554
554
  {
555
555
  default: K(() => [
556
- !w(s).meta.keepAlive && !w(s).meta.isIframe ? (g(), I("div", Qe, [
556
+ !w(n).meta.keepAlive && !w(n).meta.isIframe ? (g(), I("div", Qe, [
557
557
  (g(), P(O(c), {
558
- key: w(s).path
558
+ key: w(n).path
559
559
  }))
560
560
  ])) : b("v-if", !0)
561
561
  ]),
@@ -570,54 +570,54 @@ const h = z({
570
570
  /* STABLE */
571
571
  })) : b("v-if", !0),
572
572
  b(" 无动画 "),
573
- L.needTransition ? b("v-if", !0) : (g(), P(E, { key: 1 }, {
573
+ e.needTransition ? b("v-if", !0) : (g(), P(E, { key: 1 }, {
574
574
  default: K(({ Component: c }) => [
575
- w(s).meta.keepAlive ? (g(), P(de, {
575
+ w(n).meta.keepAlive ? (g(), P(de, {
576
576
  key: 0,
577
577
  exclude: m.value
578
578
  }, [
579
- C.value && !w(s).meta.isIframe ? (g(), P(O(G(c, w(s).path)), {
580
- key: w(s).path
579
+ C.value && !w(n).meta.isIframe ? (g(), P(O(G(c, w(n).path)), {
580
+ key: w(n).path
581
581
  })) : b("v-if", !0)
582
582
  ], 1032, ["exclude"])) : b("v-if", !0),
583
- !w(s).meta.keepAlive && !w(s).meta.isIframe ? (g(), I("div", ze, [
583
+ !w(n).meta.keepAlive && !w(n).meta.isIframe ? (g(), I("div", ze, [
584
584
  (g(), P(O(c), {
585
- key: w(s).path
585
+ key: w(n).path
586
586
  }))
587
587
  ])) : b("v-if", !0)
588
588
  ]),
589
589
  _: 1
590
590
  /* STABLE */
591
591
  })),
592
- j($(
592
+ M($(
593
593
  "div",
594
594
  qe,
595
595
  [
596
- Z(xe, {
596
+ Z(je, {
597
597
  exclude: m.value,
598
598
  transitionConfig: U.value,
599
- needTransition: L.needTransition
599
+ needTransition: e.needTransition
600
600
  }, null, 8, ["exclude", "transitionConfig", "needTransition"])
601
601
  ],
602
602
  512
603
603
  /* NEED_PATCH */
604
604
  ), [
605
- [x, w(s).meta.isIframe]
605
+ [j, w(n).meta.isIframe]
606
606
  ])
607
607
  ], !0)
608
608
  ])), [
609
- [x, S.value]
609
+ [j, S.value]
610
610
  ]),
611
- j($(
611
+ M($(
612
612
  "div",
613
613
  Ge,
614
614
  [
615
- N(L.$slots, "default", {}, void 0, !0)
615
+ N(T.$slots, "default", {}, void 0, !0)
616
616
  ],
617
617
  512
618
618
  /* NEED_PATCH */
619
619
  ), [
620
- [x, !S.value]
620
+ [j, !S.value]
621
621
  ])
622
622
  ])
623
623
  ])
@@ -629,13 +629,13 @@ const h = z({
629
629
  }), rt = /* @__PURE__ */ pe(Je, [["__scopeId", "data-v-81dcca3b"]]), Xe = ["theme", "modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], ot = /* @__PURE__ */ q({
630
630
  __name: "das-web-nav",
631
631
  setup(e) {
632
- const { nav: t } = B, s = u(() => t.theme), l = u(() => t.logo || ""), d = u(() => t.activeItem || ""), r = u(() => (t.items || []).filter((p) => p.fixed)), f = u(() => (t.items || []).filter((p) => !p.fixed)), y = u(() => {
633
- var c, p, _, M, R;
632
+ const { nav: t } = B, n = u(() => t.theme), l = u(() => t.logo || ""), d = u(() => t.activeItem || ""), r = u(() => (t.items || []).filter((p) => p.fixed)), f = u(() => (t.items || []).filter((p) => !p.fixed)), y = u(() => {
633
+ var c, p, L, D, R;
634
634
  return {
635
635
  showAIHelper: ((c = t.config) == null ? void 0 : c.showAIHelper) ?? !1,
636
636
  showFullScreen: ((p = t.config) == null ? void 0 : p.showFullScreen) ?? !1,
637
- showChangeEnterprise: ((_ = t.config) == null ? void 0 : _.showChangeEnterprise) ?? !1,
638
- showSearch: ((M = t.config) == null ? void 0 : M.showSearch) ?? !0,
637
+ showChangeEnterprise: ((L = t.config) == null ? void 0 : L.showChangeEnterprise) ?? !1,
638
+ showSearch: ((D = t.config) == null ? void 0 : D.showSearch) ?? !0,
639
639
  showProjectTree: ((R = t.config) == null ? void 0 : R.showProjectTree) ?? !0,
640
640
  subAppList: f.value.map((F) => ({ code: F.value, name: F.label, ...F }))
641
641
  };
@@ -651,18 +651,18 @@ const h = z({
651
651
  currentProject: t.activeProject
652
652
  },
653
653
  ...t.projectConfig
654
- })), T = u(() => t.userInfo), A = u(() => t.searchConfig), n = async (c) => {
655
- const p = c.detail[0], _ = r.value.find((R) => p.value === R.value);
656
- await v.nav.triggerEventListener("onItemClick", _) && v.nav.setActiveItem(_.value);
654
+ })), k = u(() => t.userInfo), A = u(() => t.searchConfig), s = async (c) => {
655
+ const p = c.detail[0], L = r.value.find((R) => p.value === R.value);
656
+ await v.nav.triggerEventListener("onItemClick", L) && v.nav.setActiveItem(L.value);
657
657
  }, a = async (c) => {
658
- const p = c.detail[0], _ = f.value.find((R) => p === R.value);
659
- await v.nav.triggerEventListener("onItemClick", _) && v.nav.setActiveItem(_.value);
658
+ const p = c.detail[0], L = f.value.find((R) => p === R.value);
659
+ await v.nav.triggerEventListener("onItemClick", L) && v.nav.setActiveItem(L.value);
660
660
  }, i = async (c) => {
661
- const p = c.detail[0], _ = f.value.find((R) => p === R.value);
662
- await v.nav.triggerEventListener("onItemRemove", _) && v.nav.removeItem(_.value);
661
+ const p = c.detail[0], L = f.value.find((R) => p === R.value);
662
+ await v.nav.triggerEventListener("onItemRemove", L) && v.nav.removeItem(L.value);
663
663
  }, m = async (c) => {
664
- const [p, _] = c.detail;
665
- !p || !await v.nav.triggerEventListener("onProjectChange", _) || v.nav.setActiveProject(_);
664
+ const [p, L] = c.detail;
665
+ !p || !await v.nav.triggerEventListener("onProjectChange", L) || v.nav.setActiveProject(L);
666
666
  }, C = (c) => {
667
667
  v.nav.triggerEventListener("onUserCommandChange", c.detail[0]);
668
668
  }, U = (c) => {
@@ -671,38 +671,38 @@ const h = z({
671
671
  v.nav.triggerEventListener("clearSearchList", { cb: c.detail[0] });
672
672
  }, G = (c) => {
673
673
  v.nav.triggerEventListener("deleteSearchItem", { value: c.detail[0], cb: c.detail[1] });
674
- }, L = () => {
674
+ }, T = () => {
675
675
  v.nav.triggerEventListener("changeEnterpriseHandle");
676
- }, D = () => {
676
+ }, x = () => {
677
677
  v.nav.triggerEventListener("fullScreenHandle");
678
678
  }, E = () => {
679
679
  v.nav.triggerEventListener("openAI");
680
680
  };
681
- return _e(() => {
681
+ return Ie(() => {
682
682
  v.nav.triggerEventListener("onBeforeMount", null, { autoRemove: !0 });
683
- }), Ie(() => {
684
- v.nav.triggerEventListener("onMounted", null, { autoRemove: !0 });
685
683
  }), Ce(() => {
684
+ v.nav.triggerEventListener("onMounted", null, { autoRemove: !0 });
685
+ }), _e(() => {
686
686
  v.nav.triggerEventListener("onUnmounted", null, { autoRemove: !0 });
687
687
  }), (c, p) => (g(), I("das-ce-nav", {
688
- theme: s.value,
688
+ theme: n.value,
689
689
  modelValue: d.value,
690
690
  logoUrl: l.value,
691
691
  config: y.value,
692
692
  innerPagesConfig: o.value,
693
693
  searchConfig: A.value,
694
694
  projectTreeConfig: S.value,
695
- userInfoConfig: T.value,
695
+ userInfoConfig: k.value,
696
696
  "on:userCommandHandle": C,
697
- "on:changeInnerPage": n,
697
+ "on:changeInnerPage": s,
698
698
  "on:handleTabClick": a,
699
699
  "on:handleTabDelete": i,
700
700
  "on:changeTreeHandle": m,
701
701
  "on:searchToPage": U,
702
702
  "on:clearSearchList": W,
703
703
  "on:deleteSearchItem": G,
704
- "on:changeEnterpriseHandle": L,
705
- "on:fullScreen": D,
704
+ "on:changeEnterpriseHandle": T,
705
+ "on:fullScreen": x,
706
706
  "on:openAI": E
707
707
  }, null, 40, Xe));
708
708
  }
@@ -712,13 +712,13 @@ const h = z({
712
712
  menuAttr: {}
713
713
  },
714
714
  setup(e) {
715
- const { menu: t } = B, s = e, l = u(() => t.theme), d = u(() => s.menuAttr || {}), r = u(() => t.items), f = u(() => t.items.find((n) => n.fixed)), y = u(() => t.activeItem || ""), o = u(() => t.collapse || !1), S = u(() => ({ popupClassName: t.popupClassName ?? "" })), T = async (n) => {
716
- const a = n.detail[0], i = Ve(r.value).find((C) => a === C.id);
715
+ const { menu: t } = B, n = e, l = u(() => t.theme), d = u(() => n.menuAttr || {}), r = u(() => t.items), f = u(() => t.items.find((s) => s.fixed)), y = u(() => t.activeItem || ""), o = u(() => t.collapse || !1), S = u(() => ({ popupClassName: t.popupClassName ?? "" })), k = async (s) => {
716
+ const a = s.detail[0], i = Ve(r.value).find((C) => a === C.id);
717
717
  await v.menu.triggerEventListener("onItemClick", i) && v.menu.setActiveItem(i.id);
718
- }, A = (n) => {
719
- v.menu.setCollapse(n.detail[0]), v.menu.triggerEventListener("toggleCollapse", n.detail[0]);
718
+ }, A = (s) => {
719
+ v.menu.setCollapse(s.detail[0]), v.menu.triggerEventListener("toggleCollapse", s.detail[0]);
720
720
  };
721
- return (n, a) => r.value.length > 0 ? (g(), I("das-ce-menu", ae({
721
+ return (s, a) => r.value.length > 0 ? (g(), I("das-ce-menu", ae({
722
722
  key: 0,
723
723
  theme: l.value,
724
724
  modelValue: y.value,
@@ -727,7 +727,7 @@ const h = z({
727
727
  fixedTopMenu: f.value,
728
728
  subMenuAttrs: S.value
729
729
  }, d.value, {
730
- onChange: T,
730
+ onChange: k,
731
731
  "on:toggleCollapse": A
732
732
  }), null, 16, Ye)) : b("v-if", !0);
733
733
  }
@@ -737,24 +737,24 @@ const h = z({
737
737
  tabsAttr: {}
738
738
  },
739
739
  setup(e) {
740
- const { tab: t } = B, s = e, l = u(() => s.tabsAttr || {}), d = u(() => t.theme), r = u(() => t.items.map((n) => ({
741
- ...n,
742
- key: n.value,
743
- tab: n.label
744
- }))), f = u(() => t.activeItem || ""), y = async (n) => {
745
- const a = n.detail[0], i = r.value.find((C) => a === C.value);
740
+ const { tab: t } = B, n = e, l = u(() => n.tabsAttr || {}), d = u(() => t.theme), r = u(() => t.items.map((s) => ({
741
+ ...s,
742
+ key: s.value,
743
+ tab: s.label
744
+ }))), f = u(() => t.activeItem || ""), y = async (s) => {
745
+ const a = s.detail[0], i = r.value.find((C) => a === C.value);
746
746
  await v.tab.triggerEventListener("onItemClick", i) && v.tab.setActiveItem(i.value);
747
- }, o = async (n) => {
748
- const a = n.detail[0], i = r.value.find((C) => a === C.value);
747
+ }, o = async (s) => {
748
+ const a = s.detail[0], i = r.value.find((C) => a === C.value);
749
749
  await v.tab.triggerEventListener("onItemRemove", i) && v.tab.removeItem(i.value);
750
- }, S = async (n) => {
751
- await v.tab.triggerEventListener("onMenuClick", { type: n.detail[0], data: n.detail[1] });
752
- }, T = async (n) => {
753
- await v.tab.triggerEventListener("onPageRefresh", n.detail[0]);
750
+ }, S = async (s) => {
751
+ await v.tab.triggerEventListener("onMenuClick", { type: s.detail[0], data: s.detail[1] });
752
+ }, k = async (s) => {
753
+ await v.tab.triggerEventListener("onPageRefresh", s.detail[0]);
754
754
  }, A = () => {
755
755
  v.tab.triggerEventListener("onToggleFullScreen");
756
756
  };
757
- return (n, a) => r.value.length > 0 ? (g(), I("das-ce-tabs", ae({
757
+ return (s, a) => r.value.length > 0 ? (g(), I("das-ce-tabs", ae({
758
758
  key: 0,
759
759
  theme: d.value,
760
760
  modelValue: f.value,
@@ -763,7 +763,7 @@ const h = z({
763
763
  "on:tabClick": y,
764
764
  "on:tabDelete": o,
765
765
  "on:menuClick": S,
766
- "on:pageRefresh": T,
766
+ "on:pageRefresh": k,
767
767
  "on:toggleFullScreen": A
768
768
  }), null, 16, Ze)) : b("v-if", !0);
769
769
  }