@das-fed/web 6.4.0-hot.9.1 → 6.4.0-test.10

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