@das-fed/web 6.4.0-dev.9 → 6.4.0-dev.91

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 (79) hide show
  1. package/esm-map.json +4 -1
  2. package/{index-FqrjMxhu.js → index-CsEX6zxA.js} +1 -1
  3. package/index-DXL5jYrG.js +81 -0
  4. package/index-DXL5jYrG.js.gz +0 -0
  5. package/index-JQg--Cmc.js +13273 -0
  6. package/index-JQg--Cmc.js.gz +0 -0
  7. package/index.js +24 -21
  8. package/package.json +8 -6
  9. package/packages/create-das-web-app/index.js +48 -802
  10. package/packages/create-das-web-app/index.js.gz +0 -0
  11. package/packages/i18n/index.js +172 -31
  12. package/packages/i18n/index.js.gz +0 -0
  13. package/packages/layout/index.js +460 -507
  14. package/packages/layout/index.js.gz +0 -0
  15. package/packages/layout/style.css +2 -2
  16. package/packages/layout/style.css.gz +0 -0
  17. package/packages/main-app-framework/index-Bm_tLBXF.js +11907 -0
  18. package/packages/main-app-framework/index-Bm_tLBXF.js.gz +0 -0
  19. package/packages/main-app-framework/{index-CeWtWuF1.js → index-D1_j1bhg.js} +1 -1
  20. package/packages/main-app-framework/index-DdhcschT.js +81 -0
  21. package/packages/main-app-framework/index-DdhcschT.js.gz +0 -0
  22. package/packages/main-app-framework/index.js +3 -2
  23. package/packages/main-app-framework/style.css +1 -1
  24. package/packages/main-app-framework/style.css.gz +0 -0
  25. package/packages/micro-frontend/index.js +330 -338
  26. package/packages/micro-frontend/index.js.gz +0 -0
  27. package/packages/micro-frontend/style.css +1 -1
  28. package/packages/style/style.css +1 -1
  29. package/packages/style/style.css.gz +0 -0
  30. package/packages/theme/index.js.gz +0 -0
  31. package/style.css +2 -2
  32. package/style.css.gz +0 -0
  33. package/types/i18n/global.d.ts +583 -0
  34. package/types/i18n/index.d.ts +4 -2
  35. package/types/layout/index.d.ts +1 -1
  36. package/types/layout/store/index.d.ts +5 -0
  37. package/types/layout/store/menu.d.ts +2 -0
  38. package/types/layout/store/nav.d.ts +1 -0
  39. package/types/layout/store/tab.d.ts +1 -0
  40. package/types/main-app-framework/business/video-link/api.d.ts +2 -0
  41. package/types/main-app-framework/components/iframe-page/index.d.ts +3 -0
  42. package/types/main-app-framework/components/index.d.ts +1 -0
  43. package/types/main-app-framework/components/person-set-dialog/src/api.d.ts +2 -0
  44. package/types/main-app-framework/components/person-set-dialog/src/components/index.d.ts +2 -0
  45. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/api.d.ts +20 -0
  46. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-builtIn-dialog.d.ts +19 -0
  47. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-notBuiltIn-dialog.d.ts +22 -0
  48. package/types/main-app-framework/constant/index.d.ts +1 -1
  49. package/types/main-app-framework/data-track/api.d.ts +2 -0
  50. package/types/main-app-framework/data-track/index.d.ts +2 -0
  51. package/types/main-app-framework/i18n/index.d.ts +518 -0
  52. package/types/main-app-framework/index.d.ts +1 -0
  53. package/types/main-app-framework/init-config/get-nav-config/api.d.ts +2 -0
  54. package/types/main-app-framework/init-config/get-nav-config/index.d.ts +3 -2
  55. package/types/main-app-framework/init-config/get-project-config/api.d.ts +3 -2
  56. package/types/main-app-framework/init-config/get-system-config/api.d.ts +2 -0
  57. package/types/main-app-framework/init-config/get-system-config/index.d.ts +3 -3
  58. package/types/main-app-framework/init-config/get-tenant-config/api.d.ts +1 -1
  59. package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +1 -0
  60. package/types/main-app-framework/utils/src/get-portal-url/crypto.d.ts +14 -0
  61. package/types/main-app-framework/utils/src/get-portal-url/encrypt.d.ts +42 -0
  62. package/types/main-app-framework/utils/src/get-portal-url/generate-url.d.ts +4 -0
  63. package/types/main-app-framework/utils/src/get-portal-url/handle-portal-params.d.ts +2 -0
  64. package/types/main-app-framework/utils/src/get-portal-url/index.d.ts +2 -0
  65. package/types/main-app-framework/utils/src/get-portal-url/type.d.ts +16 -0
  66. package/types/main-app-framework/utils/src/set-common-info.d.ts +4 -2
  67. package/types/main-app-framework/utils/src/tools.d.ts +5 -1
  68. package/index-1rgcqPwr.js +0 -68
  69. package/index-1rgcqPwr.js.gz +0 -0
  70. package/index-Dj08Rzpl.js +0 -8094
  71. package/index-Dj08Rzpl.js.gz +0 -0
  72. package/index-kp3YC2yr.js +0 -70
  73. package/index-kp3YC2yr.js.gz +0 -0
  74. package/packages/main-app-framework/index-Bb93MzFY.js +0 -70
  75. package/packages/main-app-framework/index-Bb93MzFY.js.gz +0 -0
  76. package/packages/main-app-framework/index-BgnG17a9.js +0 -6041
  77. package/packages/main-app-framework/index-BgnG17a9.js.gz +0 -0
  78. package/packages/main-app-framework/index-CaRxqPOy.js +0 -68
  79. package/packages/main-app-framework/index-CaRxqPOy.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 K, ref as O, defineComponent as z, computed as u, watch as Z, openBlock as g, createElementBlock as I, 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 C, 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 = K({
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((n) => n.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((n) => n.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;
62
+ h.searchConfig = e;
59
63
  },
60
64
  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();
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();
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 n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
79
+ h.eventListeners[n] && delete h.eventListeners[n];
76
80
  };
77
- return g.eventListeners[n] = {
81
+ return h.eventListeners[n] = {
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
+ }, A = K({
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
+ A.items = e;
103
+ },
104
+ getItems: () => A.items,
105
+ setTheme: (e) => {
106
+ A.theme = e;
97
107
  },
98
- getItems: () => M.items,
99
108
  setActiveItem: (e) => {
100
- M.activeItem = e;
109
+ A.activeItem = e;
110
+ },
111
+ setCollapse: (e) => {
112
+ A.collapse = e;
101
113
  },
102
114
  setPopupClassName: (e) => {
103
- M.popupClassName = e;
115
+ A.popupClassName = e;
104
116
  },
105
117
  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();
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();
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 n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
132
+ A.eventListeners[n] && delete A.eventListeners[n];
121
133
  };
122
- return M.eventListeners[n] = {
134
+ return A.eventListeners[n] = {
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
+ }, k = K({
149
+ theme: "default",
137
150
  items: [],
138
151
  eventListeners: {}
139
- }), Re = {
152
+ }), de = {
140
153
  setItems: (e) => {
141
- T.items = e;
154
+ k.items = e;
155
+ },
156
+ getItems: () => k.items,
157
+ setTheme: (e) => {
158
+ k.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 = k.items.filter((n) => n.value !== e);
162
+ k.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 = k.items.findIndex((n) => n.value == e.value);
166
+ t !== -1 ? k.items.splice(t, 1, e) : k.items.push(e);
151
167
  },
152
168
  setActiveItem: (e) => {
153
- T.activeItem = e;
169
+ k.activeItem = e;
154
170
  },
155
171
  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();
172
+ var f;
173
+ const l = k.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();
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 n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
186
+ k.eventListeners[n] && delete k.eventListeners[n];
171
187
  };
172
- return T.eventListeners[n] = {
188
+ return k.eventListeners[n] = {
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
+ }, W = K({
187
203
  eventListeners: {}
188
- }), Ee = {
204
+ }), Re = {
189
205
  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();
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();
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 = () => {
219
+ const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
204
220
  W.eventListeners[n] && delete W.eventListeners[n];
205
221
  };
206
222
  return W.eventListeners[n] = {
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 = K({
221
237
  visible: !1,
222
238
  style: {}
223
- }), Pe = {
239
+ }), Ae = {
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: A,
246
+ tab: k,
231
247
  overlay: te,
232
248
  iframeView: W,
233
- visible: N(!0)
234
- }, m = {
235
- nav: Te,
236
- menu: Ae,
237
- tab: Re,
238
- overlay: Pe,
239
- iframeView: Ee,
240
- setVisible: (e) => $.visible.value = e
241
- }, Ve = ["name"], Se = ["name"], De = /* @__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__ */ z({
242
261
  __name: "das-iframe-router-view",
243
262
  props: {
244
263
  needTransition: { type: Boolean },
@@ -246,140 +265,127 @@ 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, n = u(() => {
269
+ const { mode: s = "", ...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;
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;
259
278
  })), 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}`);
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}`);
264
283
  });
265
284
  };
266
285
  Z(
267
286
  () => t.exclude,
268
287
  (s) => {
269
288
  if (!s || !s.length) return;
270
- const o = p.value.find((a) => s.includes(a.path));
271
- o && y(o.meta.key);
289
+ const a = f.value.find((o) => s.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 (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 }
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 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 }));
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,
306
- null,
307
- [
308
- s.needTransition ? (h(), R(
309
- fe,
310
- ee(ne({ key: 0 }, n.value)),
311
- {
312
- default: O(() => [
313
- (h(!0), C(
314
- G,
315
- null,
316
- oe(p.value, ({ path: a, meta: f }) => P((h(), C("div", {
317
- class: "das-iframe-router-view",
318
- key: a,
319
- name: a
320
- }, [
321
- (h(), R(B(f.componentInstance), {
322
- key: f.key
323
- }))
324
- ], 8, Ve)), [
325
- [V, f.componentInstance && a === b(i).path]
326
- ])),
327
- 128
328
- /* KEYED_FRAGMENT */
329
- ))
330
- ]),
331
- _: 1
332
- /* STABLE */
333
- },
334
- 16
335
- /* FULL_PROPS */
336
- )) : _("v-if", !0),
337
- s.needTransition ? _("v-if", !0) : (h(!0), C(
338
- G,
339
- { key: 1 },
340
- oe(p.value, ({ path: a, meta: f }) => P((h(), C("div", {
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) => (g(), I(J, null, [
336
+ s.needTransition ? (g(), V(he, ee(ne({ key: 0 }, n.value)), {
337
+ default: U(() => [
338
+ (g(!0), I(J, null, re(f.value, ({ path: o, meta: m }) => D((g(), I("div", {
341
339
  class: "das-iframe-router-view",
342
- key: a,
343
- name: a
340
+ key: m.key,
341
+ name: o
344
342
  }, [
345
- (h(), R(B(f.componentInstance), {
346
- key: f.key
343
+ (g(), V(N(m.componentInstance), {
344
+ key: m.key
347
345
  }))
348
- ], 8, Se)), [
349
- [V, f.componentInstance && a === b(i).path]
350
- ])),
351
- 128
352
- /* KEYED_FRAGMENT */
353
- ))
354
- ],
355
- 64
356
- /* STABLE_FRAGMENT */
357
- ));
346
+ ], 8, Ve)), [
347
+ [M, m.componentInstance && o === w(d).path]
348
+ ])), 128))
349
+ ]),
350
+ _: 1
351
+ }, 16)) : C("", !0),
352
+ s.needTransition ? C("", !0) : (g(!0), I(J, { key: 1 }, re(f.value, ({ path: o, meta: m }) => D((g(), I("div", {
353
+ class: "das-iframe-router-view",
354
+ key: m.key,
355
+ name: o
356
+ }, [
357
+ (g(), V(N(m.componentInstance), {
358
+ key: m.key
359
+ }))
360
+ ], 8, Pe)), [
361
+ [M, m.componentInstance && o === w(d).path]
362
+ ])), 128))
363
+ ], 64));
358
364
  }
359
- }), de = (e, t) => {
365
+ }), fe = (e, t) => {
360
366
  const n = e.__vccOpts || e;
361
- for (const [c, i] of t)
362
- n[c] = i;
367
+ for (const [l, d] of t)
368
+ n[l] = d;
363
369
  return n;
364
- }, Me = /* @__PURE__ */ de(De, [["__scopeId", "data-v-71479406"]]), xe = { class: "das-web-app-container" }, je = {
370
+ }, De = /* @__PURE__ */ fe(Se, [["__scopeId", "data-v-6dd310c9"]]), Me = { class: "das-web-app-container" }, je = {
365
371
  key: 0,
366
372
  class: "das-web-app-header"
367
- }, $e = { class: "das-web-app-main" }, He = {
373
+ }, xe = { class: "das-web-app-main" }, $e = {
368
374
  key: 0,
369
375
  class: "aside"
370
- }, Be = { class: "das-web-app-main-container" }, Ne = {
376
+ }, Be = { class: "das-web-app-main-container" }, He = {
371
377
  key: 0,
372
378
  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 = {
379
+ }, Fe = { class: "das-web-app-main-content" }, Ne = { class: "banner" }, Oe = { class: "das-web-app-main-router-view" }, Ue = {
374
380
  key: 0,
375
381
  style: { width: "100%", height: "100%" }
376
- }, Qe = {
382
+ }, We = {
377
383
  key: 1,
378
384
  style: { width: "100%", height: "100%" }
379
- }, Ke = { style: { width: "100%", height: "100%" } }, qe = {
385
+ }, Ke = { style: { width: "100%", height: "100%" } }, ze = {
380
386
  class: "micro-app",
381
387
  style: { height: "100%", width: "100%" }
382
- }, Ge = /* @__PURE__ */ z({
388
+ }, Qe = /* @__PURE__ */ z({
383
389
  __name: "das-web-layout",
384
390
  props: {
385
391
  needTransition: { type: Boolean, default: !0 },
@@ -389,212 +395,150 @@ const g = U({
389
395
  showTabs: { type: Boolean, default: !0 },
390
396
  routerViewVisible: { type: Boolean, default: !0 },
391
397
  excludeRoutes: {},
392
- routeKeepAliveVisible: { type: Boolean, default: !0 }
398
+ routeKeepAliveVisible: { type: Boolean, default: !0 },
399
+ pageKey: { default: "0" }
393
400
  },
394
401
  setup(e) {
395
402
  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);
403
+ Ie(), ke(), Te();
404
+ 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(() => ({
405
+ "das-web-app-overlay-show": T.value === !0,
406
+ "das-web-app-overlay-hide": T.value === !1,
407
+ "das-web-app-overlay-destroy": T.value === "destroy"
408
+ })), s = u(() => H.overlay.style ?? { backgroundColor: "rgba(0,0,0,0.5)" }), a = u(() => t.excludeRoutes), o = u(() => t.routeKeepAliveVisible);
402
409
  Z(
403
410
  () => [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;
411
+ ([b, j]) => {
412
+ const { showLayout: R = !0, showAside: c = !0, showTabs: p = !0, layout: _ = {} } = b, {
413
+ showLayout: x = !0,
414
+ showAside: E = !0,
415
+ showTabs: se = !0,
416
+ app: Xe
417
+ } = j;
418
+ Ce(_);
419
+ let ae = !0, q = !0, G = !0;
420
+ (R === !1 || x === !1 || x === "false") && (ae = !1, q = !1, G = !1), (c === !1 || E === !1 || E === "false") && (q = !1), (p === !1 || se === !1 || se === "false") && (G = !1), l.value = ae, d.value = q, r.value = G;
414
421
  }
415
422
  );
416
- const k = v(() => ({
423
+ const m = u(() => ({
417
424
  mode: "out-in",
418
425
  "enter-active-class": "animate__animated animate__fadeInLeft",
419
426
  ...t.transitionConfig || {}
420
427
  }));
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,
428
+ let L = /* @__PURE__ */ new Map();
429
+ const Q = (b, j) => {
430
+ let R;
431
+ return L.has(j) ? R = L.get(j) : (R = {
432
+ name: j,
426
433
  render() {
427
- return X("div", { style: { width: "100%", height: "100%" } }, [X(L)]);
434
+ return Y("div", { style: { width: "100%", height: "100%" } }, [Y(b)]);
428
435
  }
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(
435
- "div",
436
- {
437
- class: he(["das-web-app-overlay", s.value]),
438
- style: pe(o.value)
439
- },
440
- null,
441
- 6
442
- /* CLASS, STYLE */
443
- ), [
444
- [V, j.value]
436
+ }, L.set(j, R)), Y(R);
437
+ }, B = u(() => H.visible.value);
438
+ return (b, j) => {
439
+ const R = ge("router-view");
440
+ return g(), I("div", Me, [
441
+ D($("div", {
442
+ class: pe(["das-web-app-overlay", S.value]),
443
+ style: ye(s.value)
444
+ }, null, 6), [
445
+ [M, B.value]
445
446
  ]),
446
- p.value ? P((h(), C(
447
- "div",
448
- je,
449
- [
450
- H(L.$slots, "header", {}, void 0, !0)
451
- ],
452
- 512
453
- /* NEED_PATCH */
454
- )), [
455
- [V, j.value]
456
- ]) : _("v-if", !0),
457
- D("div", $e, [
458
- y.value ? P((h(), C(
459
- "div",
460
- He,
461
- [
462
- H(L.$slots, "aside", {}, void 0, !0)
463
- ],
464
- 512
465
- /* NEED_PATCH */
466
- )), [
467
- [V, j.value]
468
- ]) : _("v-if", !0),
469
- D("div", Be, [
470
- r.value ? P((h(), C(
471
- "div",
472
- Ne,
473
- [
474
- H(L.$slots, "tab", {}, void 0, !0)
475
- ],
476
- 512
477
- /* NEED_PATCH */
478
- )), [
479
- [V, j.value]
480
- ]) : _("v-if", !0),
481
- D("div", Fe, [
482
- P(D(
483
- "div",
484
- Oe,
485
- [
486
- H(L.$slots, "banner", {}, void 0, !0)
487
- ],
488
- 512
489
- /* NEED_PATCH */
490
- ), [
491
- [V, j.value]
447
+ f.value ? D((g(), I("div", je, [
448
+ F(b.$slots, "header", {}, void 0, !0)
449
+ ], 512)), [
450
+ [M, B.value]
451
+ ]) : C("", !0),
452
+ $("div", xe, [
453
+ y.value ? D((g(), I("div", $e, [
454
+ F(b.$slots, "aside", {}, void 0, !0)
455
+ ], 512)), [
456
+ [M, B.value]
457
+ ]) : C("", !0),
458
+ $("div", Be, [
459
+ i.value ? D((g(), I("div", He, [
460
+ F(b.$slots, "tab", {}, void 0, !0)
461
+ ], 512)), [
462
+ [M, B.value]
463
+ ]) : C("", !0),
464
+ $("div", Fe, [
465
+ D($("div", Ne, [
466
+ F(b.$slots, "banner", {}, void 0, !0)
467
+ ], 512), [
468
+ [M, B.value]
492
469
  ]),
493
- D("div", We, [
494
- P(D(
495
- "div",
496
- Ue,
497
- [
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)),
505
- {
506
- default: O(() => {
507
- var w;
508
- return [
509
- b(n).meta.keepAlive ? (h(), R(ue, {
510
- key: 0,
511
- exclude: a.value
512
- }, [
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)
517
- ];
518
- }),
519
- _: 2
520
- /* DYNAMIC */
521
- },
522
- 1040
523
- /* FULL_PROPS, DYNAMIC_SLOTS */
524
- ),
525
- J(
526
- le,
527
- ee(ce(k.value)),
528
- {
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
533
- }))
534
- ])) : _("v-if", !0)
535
- ]),
536
- _: 2
537
- /* DYNAMIC */
538
- },
539
- 1040
540
- /* FULL_PROPS, DYNAMIC_SLOTS */
541
- )
542
- ]),
543
- _: 1
544
- /* 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, {
550
- key: 0,
551
- exclude: a.value
552
- }, [
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
560
- }))
561
- ])) : _("v-if", !0)
562
- ]),
563
- _: 1
564
- /* STABLE */
565
- })),
566
- P(D(
567
- "div",
568
- Ke,
569
- [
570
- J(Me, {
571
- exclude: a.value,
572
- transitionConfig: k.value,
573
- needTransition: L.needTransition
574
- }, null, 8, ["exclude", "transitionConfig", "needTransition"])
575
- ],
576
- 512
577
- /* NEED_PATCH */
578
- ), [
579
- [V, b(n).meta.isIframe]
580
- ])
581
- ], !0)
582
- ],
583
- 512
584
- /* NEED_PATCH */
585
- ), [
586
- [V, E.value]
470
+ $("div", Oe, [
471
+ D((g(), I("div", {
472
+ key: b.pageKey,
473
+ style: { width: "100%", height: "100%" }
474
+ }, [
475
+ F(b.$slots, "router-view", {}, () => [
476
+ b.needTransition ? (g(), V(R, { key: 0 }, {
477
+ default: U(({ Component: c }) => [
478
+ X(ie, ee(le(m.value)), {
479
+ default: U(() => {
480
+ var p;
481
+ return [
482
+ w(n).meta.keepAlive ? (g(), V(ce, {
483
+ key: 0,
484
+ exclude: a.value
485
+ }, [
486
+ o.value && !((p = w(n).meta) != null && p.isIframe) ? (g(), V(N(Q(c, w(n).path)), {
487
+ key: w(n).path
488
+ })) : C("", !0)
489
+ ], 1032, ["exclude"])) : C("", !0)
490
+ ];
491
+ }),
492
+ _: 2
493
+ }, 1040),
494
+ X(ie, ee(le(m.value)), {
495
+ default: U(() => [
496
+ !w(n).meta.keepAlive && !w(n).meta.isIframe ? (g(), I("div", Ue, [
497
+ (g(), V(N(c), {
498
+ key: w(n).path
499
+ }))
500
+ ])) : C("", !0)
501
+ ]),
502
+ _: 2
503
+ }, 1040)
504
+ ]),
505
+ _: 1
506
+ })) : C("", !0),
507
+ b.needTransition ? C("", !0) : (g(), V(R, { key: 1 }, {
508
+ default: U(({ Component: c }) => [
509
+ w(n).meta.keepAlive ? (g(), V(ce, {
510
+ key: 0,
511
+ exclude: a.value
512
+ }, [
513
+ o.value && !w(n).meta.isIframe ? (g(), V(N(Q(c, w(n).path)), {
514
+ key: w(n).path
515
+ })) : C("", !0)
516
+ ], 1032, ["exclude"])) : C("", !0),
517
+ !w(n).meta.keepAlive && !w(n).meta.isIframe ? (g(), I("div", We, [
518
+ (g(), V(N(c), {
519
+ key: w(n).path
520
+ }))
521
+ ])) : C("", !0)
522
+ ]),
523
+ _: 1
524
+ })),
525
+ D($("div", Ke, [
526
+ X(De, {
527
+ exclude: a.value,
528
+ transitionConfig: m.value,
529
+ needTransition: b.needTransition
530
+ }, null, 8, ["exclude", "transitionConfig", "needTransition"])
531
+ ], 512), [
532
+ [M, w(n).meta.isIframe]
533
+ ])
534
+ ], !0)
535
+ ])), [
536
+ [M, P.value]
587
537
  ]),
588
- P(D(
589
- "div",
590
- qe,
591
- [
592
- H(L.$slots, "default", {}, void 0, !0)
593
- ],
594
- 512
595
- /* NEED_PATCH */
596
- ), [
597
- [V, !E.value]
538
+ D($("div", ze, [
539
+ F(b.$slots, "default", {}, void 0, !0)
540
+ ], 512), [
541
+ [M, !P.value]
598
542
  ])
599
543
  ])
600
544
  ])
@@ -603,141 +547,150 @@ const g = U({
603
547
  ]);
604
548
  };
605
549
  }
606
- }), at = /* @__PURE__ */ de(Ge, [["__scopeId", "data-v-1c818b3a"]]), Je = ["modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], rt = /* @__PURE__ */ z({
550
+ }), st = /* @__PURE__ */ fe(Qe, [["__scopeId", "data-v-e2af5217"]]), qe = ["theme", "modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], at = /* @__PURE__ */ z({
607
551
  __name: "das-web-nav",
608
552
  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;
553
+ const { nav: t } = H, n = u(() => t.theme), l = u(() => t.logo || ""), d = u(() => t.activeItem || ""), r = u(() => (t.items || []).filter((p) => p.fixed)), f = u(() => (t.items || []).filter((p) => !p.fixed)), y = u(() => {
554
+ var c, p, _, x;
611
555
  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,
556
+ showFullScreen: ((c = t.config) == null ? void 0 : c.showFullScreen) ?? !1,
557
+ showChangeEnterprise: ((p = t.config) == null ? void 0 : p.showChangeEnterprise) ?? !1,
558
+ showSearch: ((_ = t.config) == null ? void 0 : _.showSearch) ?? !0,
615
559
  showProjectTree: ((x = t.config) == null ? void 0 : x.showProjectTree) ?? !0,
616
- subAppList: u.value.map((A) => ({ code: A.value, name: A.label, ...A }))
560
+ subAppList: f.value.map((E) => ({ code: E.value, name: E.label, ...E }))
617
561
  };
618
- }), y = v(() => {
619
- const l = i.value.find((d) => d.value === t.activeItem);
562
+ }), i = u(() => {
563
+ const c = r.value.find((p) => p.value === t.activeItem);
620
564
  return {
621
- activeInnerPagePath: (l == null ? void 0 : l.path) || "",
622
- innerPages: i.value.map((d) => ({ title: d.label, ...d }))
565
+ activeInnerPagePath: (c == null ? void 0 : c.path) || "",
566
+ innerPages: r.value.map((p) => ({ title: p.label, ...p }))
623
567
  };
624
- }), r = v(() => ({
568
+ }), P = u(() => ({
625
569
  projectStore: {
626
570
  projectTree: t.projects,
627
571
  currentProject: t.activeProject
628
572
  },
629
573
  ...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");
574
+ })), T = u(() => t.userInfo), S = u(() => t.searchConfig), s = async (c) => {
575
+ const p = c.detail[0], _ = r.value.find((E) => p.value === E.value);
576
+ await v.nav.triggerEventListener("onItemClick", _) && v.nav.setActiveItem(_.value);
577
+ }, a = async (c) => {
578
+ const p = c.detail[0], _ = f.value.find((E) => p === E.value);
579
+ await v.nav.triggerEventListener("onItemClick", _) && v.nav.setActiveItem(_.value);
580
+ }, o = async (c) => {
581
+ const p = c.detail[0], _ = f.value.find((E) => p === E.value);
582
+ await v.nav.triggerEventListener("onItemRemove", _) && v.nav.removeItem(_.value);
583
+ }, m = async (c) => {
584
+ const [p, _] = c.detail;
585
+ !p || !await v.nav.triggerEventListener("onProjectChange", _) || v.nav.setActiveProject(_);
586
+ }, L = (c) => {
587
+ v.nav.triggerEventListener("onUserCommandChange", c.detail[0]);
588
+ }, Q = (c) => {
589
+ v.nav.triggerEventListener("searchToPage", { item: c.detail[0], keyword: c.detail[1], cb: c.detail[2] });
590
+ }, B = (c) => {
591
+ v.nav.triggerEventListener("clearSearchList", { cb: c.detail[0] });
592
+ }, b = (c) => {
593
+ v.nav.triggerEventListener("deleteSearchItem", { value: c.detail[0], cb: c.detail[1] });
594
+ }, j = () => {
595
+ v.nav.triggerEventListener("changeEnterpriseHandle");
596
+ }, R = () => {
597
+ v.nav.triggerEventListener("fullScreenHandle");
654
598
  };
655
599
  return we(() => {
656
- m.nav.triggerEventListener("onBeforeMount", null, { autoRemove: !0 });
657
- }), ye(() => {
658
- m.nav.triggerEventListener("onMounted", null, { autoRemove: !0 });
600
+ v.nav.triggerEventListener("onBeforeMount", null, { autoRemove: !0 });
659
601
  }), 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,
602
+ v.nav.triggerEventListener("onMounted", null, { autoRemove: !0 });
603
+ }), _e(() => {
604
+ v.nav.triggerEventListener("onUnmounted", null, { autoRemove: !0 });
605
+ }), (c, p) => (g(), I("das-ce-nav", {
606
+ theme: n.value,
607
+ modelValue: d.value,
608
+ logoUrl: l.value,
609
+ config: y.value,
610
+ innerPagesConfig: i.value,
611
+ searchConfig: S.value,
612
+ projectTreeConfig: P.value,
613
+ userInfoConfig: T.value,
614
+ "on:userCommandHandle": L,
670
615
  "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));
616
+ "on:handleTabClick": a,
617
+ "on:handleTabDelete": o,
618
+ "on:changeTreeHandle": m,
619
+ "on:searchToPage": Q,
620
+ "on:clearSearchList": B,
621
+ "on:deleteSearchItem": b,
622
+ "on:changeEnterpriseHandle": j,
623
+ "on:fullScreen": R
624
+ }, null, 40, qe));
680
625
  }
681
- }), Xe = ["modelValue", "data", "collapse", "fixedTopMenu", "subMenuAttrs"], ot = /* @__PURE__ */ z({
626
+ }), Ge = ["theme", "modelValue", "data", "collapse", "fixedTopMenu", "subMenuAttrs"], rt = /* @__PURE__ */ z({
682
627
  __name: "das-web-menu",
683
628
  props: {
684
629
  menuAttr: {}
685
630
  },
686
631
  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);
632
+ 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) => {
633
+ const a = s.detail[0], o = Ee(r.value).find((L) => a === L.id);
634
+ await v.menu.triggerEventListener("onItemClick", o) && v.menu.setActiveItem(o.id);
635
+ }, S = (s) => {
636
+ v.menu.setCollapse(s.detail[0]), v.menu.triggerEventListener("toggleCollapse", s.detail[0]);
690
637
  };
691
- return (I, s) => i.value.length > 0 ? (h(), C("das-ce-menu", ne({
638
+ return (s, a) => r.value.length > 0 ? (g(), I("das-ce-menu", ne({
692
639
  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);
640
+ theme: l.value,
641
+ modelValue: y.value,
642
+ data: r.value,
643
+ collapse: i.value,
644
+ fixedTopMenu: f.value,
645
+ subMenuAttrs: P.value
646
+ }, d.value, {
647
+ onChange: T,
648
+ "on:toggleCollapse": S
649
+ }), null, 16, Ge)) : C("", !0);
699
650
  }
700
- }), Ye = ["modelValue", "options"], it = /* @__PURE__ */ z({
651
+ }), Je = ["theme", "modelValue", "options"], ot = /* @__PURE__ */ z({
701
652
  __name: "das-web-tabs",
702
653
  props: {
703
654
  tabsAttr: {}
704
655
  },
705
656
  setup(e) {
706
- const { tab: t } = $, n = e, c = v(() => n.tabsAttr || {}), i = v(() => t.items.map((s) => ({
657
+ const { tab: t } = H, n = e, l = u(() => n.tabsAttr || {}), d = u(() => t.theme), r = u(() => t.items.map((s) => ({
707
658
  ...s,
708
659
  key: s.value,
709
660
  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");
661
+ }))), f = u(() => t.activeItem || ""), y = async (s) => {
662
+ const a = s.detail[0], o = r.value.find((L) => a === L.value);
663
+ await v.tab.triggerEventListener("onItemClick", o) && v.tab.setActiveItem(o.value);
664
+ }, i = async (s) => {
665
+ const a = s.detail[0], o = r.value.find((L) => a === L.value);
666
+ await v.tab.triggerEventListener("onItemRemove", o) && v.tab.removeItem(o.value);
667
+ }, P = async (s) => {
668
+ await v.tab.triggerEventListener("onMenuClick", { type: s.detail[0], data: s.detail[1] });
669
+ }, T = async (s) => {
670
+ await v.tab.triggerEventListener("onPageRefresh", s.detail[0]);
671
+ }, S = () => {
672
+ v.tab.triggerEventListener("onToggleFullScreen");
722
673
  };
723
- return (s, o) => i.value.length > 0 ? (h(), C("das-ce-tabs", ne({
674
+ return (s, a) => r.value.length > 0 ? (g(), I("das-ce-tabs", ne({
724
675
  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);
676
+ theme: d.value,
677
+ modelValue: f.value,
678
+ options: r.value
679
+ }, l.value, {
680
+ "on:tabClick": y,
681
+ "on:tabDelete": i,
682
+ "on:menuClick": P,
683
+ "on:pageRefresh": T,
684
+ "on:toggleFullScreen": S
685
+ }), null, 16, Je)) : C("", !0);
734
686
  }
735
687
  });
736
- N("@das-fed/web");
688
+ O("@das-fed/web");
737
689
  export {
738
- at as DasWebLayout,
739
- ot as DasWebMenu,
740
- rt as DasWebNav,
741
- it as DasWebTabs,
742
- m as layout
690
+ st as DasWebLayout,
691
+ rt as DasWebMenu,
692
+ at as DasWebNav,
693
+ ot as DasWebTabs,
694
+ v as layout,
695
+ H as layoutData
743
696
  };