@das-fed/web 6.3.0-beta.8 → 6.4.0-beta.1

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