@das-fed/web 6.4.0-beta.2 → 6.4.0-beta.20

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