@das-fed/web 6.4.0-dev.4 → 6.4.0-dev.41

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