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