@das-fed/web 6.4.0-hot.5 → 6.4.0-hot.50

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 (86) hide show
  1. package/esm-map.json +4 -1
  2. package/index-C6EBmEp4.js +13464 -0
  3. package/index-C6EBmEp4.js.gz +0 -0
  4. package/index-D4Bu_emO.js +10 -0
  5. package/index-DoOQN3bh.js +86 -0
  6. package/index-DoOQN3bh.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 +172 -31
  11. package/packages/i18n/index.js.gz +0 -0
  12. package/packages/layout/index.js +473 -528
  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-B_VNr9Cx.js +10 -0
  17. package/packages/main-app-framework/index-DXkBo0db.js +86 -0
  18. package/packages/main-app-framework/index-DXkBo0db.js.gz +0 -0
  19. package/packages/main-app-framework/index-evPCaBEo.js +12076 -0
  20. package/packages/main-app-framework/index-evPCaBEo.js.gz +0 -0
  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 +296 -301
  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/i18n/global.d.ts +583 -0
  33. package/types/i18n/index.d.ts +5 -3
  34. package/types/layout/index.d.ts +1 -1
  35. package/types/layout/store/index.d.ts +6 -1
  36. package/types/layout/store/menu.d.ts +2 -0
  37. package/types/layout/store/nav.d.ts +2 -1
  38. package/types/layout/store/tab.d.ts +1 -0
  39. package/types/main-app-framework/business/message-notify/index.d.ts +1 -0
  40. package/types/main-app-framework/business/remote-control/apis.d.ts +2 -0
  41. package/types/main-app-framework/business/remote-control/utils.d.ts +7 -0
  42. package/types/main-app-framework/business/video-link/api.d.ts +2 -0
  43. package/types/main-app-framework/components/iframe-page/index.d.ts +3 -0
  44. package/types/main-app-framework/components/index.d.ts +1 -0
  45. package/types/main-app-framework/components/person-set-dialog/src/api.d.ts +4 -0
  46. package/types/main-app-framework/components/person-set-dialog/src/components/index.d.ts +3 -0
  47. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/api.d.ts +20 -0
  48. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-builtIn-dialog.d.ts +19 -0
  49. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-notBuiltIn-dialog.d.ts +22 -0
  50. package/types/main-app-framework/constant/index.d.ts +1 -1
  51. package/types/main-app-framework/data-track/api.d.ts +2 -0
  52. package/types/main-app-framework/data-track/index.d.ts +2 -0
  53. package/types/main-app-framework/i18n/index.d.ts +538 -0
  54. package/types/main-app-framework/index.d.ts +1 -0
  55. package/types/main-app-framework/init-config/get-nav-config/api.d.ts +2 -0
  56. package/types/main-app-framework/init-config/get-nav-config/index.d.ts +4 -2
  57. package/types/main-app-framework/init-config/get-project-config/api.d.ts +3 -2
  58. package/types/main-app-framework/init-config/get-system-config/api.d.ts +4 -0
  59. package/types/main-app-framework/init-config/get-system-config/index.d.ts +5 -3
  60. package/types/main-app-framework/init-config/get-tenant-config/api.d.ts +3 -1
  61. package/types/main-app-framework/init-config/get-tenant-config/index.d.ts +2 -0
  62. package/types/main-app-framework/init-layout/hooks/nav-slots/index.d.ts +1 -0
  63. package/types/main-app-framework/init-layout/hooks/nav-slots/use-ai-helper.d.ts +4 -0
  64. package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +1 -0
  65. package/types/main-app-framework/utils/src/get-portal-url/crypto.d.ts +14 -0
  66. package/types/main-app-framework/utils/src/get-portal-url/encrypt.d.ts +42 -0
  67. package/types/main-app-framework/utils/src/get-portal-url/generate-url.d.ts +4 -0
  68. package/types/main-app-framework/utils/src/get-portal-url/handle-portal-params.d.ts +2 -0
  69. package/types/main-app-framework/utils/src/get-portal-url/index.d.ts +2 -0
  70. package/types/main-app-framework/utils/src/get-portal-url/type.d.ts +16 -0
  71. package/types/main-app-framework/utils/src/set-common-info.d.ts +6 -2
  72. package/types/main-app-framework/utils/src/tools.d.ts +5 -1
  73. package/index-CNuui6rH.js +0 -71
  74. package/index-CNuui6rH.js.gz +0 -0
  75. package/index-D_CiHfGN.js +0 -10
  76. package/index-LTwaM8dS.js +0 -7079
  77. package/index-LTwaM8dS.js.gz +0 -0
  78. package/index-_67_4aoo.js +0 -68
  79. package/index-_67_4aoo.js.gz +0 -0
  80. package/packages/main-app-framework/index-Bnb7HNMb.js +0 -68
  81. package/packages/main-app-framework/index-Bnb7HNMb.js.gz +0 -0
  82. package/packages/main-app-framework/index-CBrBve1k.js +0 -10
  83. package/packages/main-app-framework/index-DF7V-TBl.js +0 -5770
  84. package/packages/main-app-framework/index-DF7V-TBl.js.gz +0 -0
  85. package/packages/main-app-framework/index-DOTMbc-l.js +0 -71
  86. 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 U, defineComponent as Q, computed as c, watch as te, createElementBlock as C, openBlock as g, Fragment as Y, createBlock as V, createCommentVNode as I, TransitionGroup as ge, normalizeProps as ne, mergeProps as ae, withCtx as W, renderList as oe, withDirectives as D, resolveDynamicComponent as O, vShow as M, unref as b, nextTick as ie, resolveComponent as pe, createElementVNode as H, normalizeStyle as ye, normalizeClass as we, renderSlot as N, createVNode as Z, Transition as le, guardReactiveProps as ce, KeepAlive as ue, h as ee, onBeforeMount as be, onMounted as Le, onUnmounted as _e } from "vue";
3
+ import { useRouter as Ie, useRoute as fe } from "vue-router";
4
+ import { setHtmlMinWH as Ce } from "@das-fed/utils/common-tools/setHtmlMinWH";
5
+ import { createCeNav as ke, createCeTabs as Te, createCeMenu as Ae } 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
+ }), ve = {
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
+ }, R = z({
96
+ theme: "default",
96
97
  items: [],
98
+ collapse: !1,
97
99
  eventListeners: {}
98
- }), Te = {
100
+ }), de = {
99
101
  setItems: (e) => {
100
- setTimeout(() => {
101
- x.items = e;
102
- }, 200);
102
+ R.items = e;
103
+ },
104
+ getItems: () => R.items,
105
+ setTheme: (e) => {
106
+ R.theme = e;
103
107
  },
104
- getItems: () => x.items,
105
108
  setActiveItem: (e) => {
106
- setTimeout(() => {
107
- x.activeItem = e;
108
- }, 200);
109
+ R.activeItem = e;
110
+ },
111
+ setCollapse: (e) => {
112
+ R.collapse = e;
109
113
  },
110
114
  setPopupClassName: (e) => {
111
- x.popupClassName = e;
115
+ R.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 = R.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
+ R.eventListeners[n] && delete R.eventListeners[n];
129
133
  };
130
- return x.eventListeners[n] = {
134
+ return R.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
+ }, k = z({
149
+ theme: "default",
145
150
  items: [],
146
151
  eventListeners: {}
147
- }), Re = {
152
+ }), me = {
148
153
  setItems: (e) => {
149
- T.items = e;
154
+ k.items = e;
155
+ },
156
+ getItems: () => k.items,
157
+ setTheme: (e) => {
158
+ k.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 = k.items.filter((n) => n.value !== e);
162
+ k.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 = k.items.findIndex((n) => n.value == e.value);
166
+ t !== -1 ? k.items.splice(t, 1, e) : k.items.push(e);
161
167
  },
162
168
  setActiveItem: (e) => {
163
- setTimeout(() => {
164
- T.activeItem = e;
165
- }, 200);
169
+ k.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 = k.eventListeners, { autoRemove: d = !1 } = n || {}, r = [];
174
+ for (const y in l) {
175
+ const i = l[y];
176
+ i.type === e && r.push(
177
+ (f = i == null ? void 0 : i.handler) == null ? void 0 : f.call(i, t).then(() => {
178
+ d && i.remove();
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
+ k.eventListeners[n] && delete k.eventListeners[n];
183
187
  };
184
- return T.eventListeners[n] = {
188
+ return k.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
+ }, K = 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 = K.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 = () => {
216
- W.eventListeners[n] && delete W.eventListeners[n];
219
+ const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
220
+ K.eventListeners[n] && delete K.eventListeners[n];
217
221
  };
218
- return W.eventListeners[n] = {
222
+ return K.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
+ }, se = z({
233
237
  visible: !1,
234
238
  style: {}
235
- }), Ee = {
239
+ }), Ve = {
236
240
  set: (e, t) => {
237
- ee.visible = e, t || (t = {}), t.transition || (t.transition = "all 0.3s"), t && (ee.style = t);
241
+ se.visible = e, t || (t = {}), t.transition || (t.transition = "all 0.3s"), t && (se.style = t);
238
242
  }
239
- }, $ = {
240
- nav: g,
241
- menu: x,
242
- tab: T,
243
- overlay: ee,
244
- 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({
243
+ }, F = {
244
+ nav: h,
245
+ menu: R,
246
+ tab: k,
247
+ overlay: se,
248
+ iframeView: K,
249
+ visible: U(!0)
250
+ }, v = {
251
+ nav: ve,
252
+ menu: de,
253
+ tab: me,
254
+ overlay: Ve,
255
+ iframeView: Re,
256
+ setVisible: (e) => F.visible.value = e,
257
+ setTheme: (e) => {
258
+ ve.setTheme(e), de.setTheme(e), me.setTheme(e);
259
+ }
260
+ }, Pe = ["name"], Se = ["name"], De = /* @__PURE__ */ Q({
254
261
  __name: "das-iframe-router-view",
255
262
  props: {
256
263
  needTransition: { type: Boolean },
@@ -258,140 +265,127 @@ 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 = c(() => {
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 = Ie(), d = fe(), r = U([]), f = c(() => 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
+ te(
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((_) => _.meta.isShow);
314
+ s && (s.meta.isShow = !1, await ie(), v.iframeView.triggerEventListener("onDeactivated", { route: s }));
315
+ const a = r.value.find((_) => _.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 ie(), v.iframeView.triggerEventListener("onActivated", { route: a }));
310
317
  };
311
- return E(), Y(
312
- () => i.path,
318
+ let S = 0;
319
+ return te(
320
+ () => l.currentRoute.value,
313
321
  () => {
314
- L();
315
- }
316
- ), (s, o) => (p(), C(
317
- G,
318
- null,
319
- [
320
- s.needTransition ? (p(), A(
321
- de,
322
- Z(te({ key: 0 }, n.value)),
323
- {
324
- default: O(() => [
325
- (p(!0), C(
326
- G,
327
- null,
328
- re(h.value, ({ path: a, meta: f }) => V((p(), C("div", {
329
- class: "das-iframe-router-view",
330
- key: a,
331
- name: a
332
- }, [
333
- (p(), A(H(f.componentInstance), {
334
- key: f.key
335
- }))
336
- ], 8, Ve)), [
337
- [P, f.componentInstance && a === b(i).path]
338
- ])),
339
- 128
340
- /* KEYED_FRAGMENT */
341
- ))
342
- ]),
343
- _: 1
344
- /* STABLE */
345
- },
346
- 16
347
- /* FULL_PROPS */
348
- )) : _("v-if", !0),
349
- s.needTransition ? _("v-if", !0) : (p(!0), C(
350
- G,
351
- { key: 1 },
352
- re(h.value, ({ path: a, meta: f }) => V((p(), C("div", {
322
+ const s = l.options.routes.length;
323
+ s !== S ? (P(), S = s) : T();
324
+ },
325
+ { immediate: !0 }
326
+ ), v.iframeView.addEventListener("onRefreshCurrentPage", () => {
327
+ f.value.forEach((s) => {
328
+ var a;
329
+ (a = s.meta) != null && a.isShow && (s.meta.key.includes("0") ? s.meta.key = s.meta.key.replaceAll("0", "1") : s.meta.key = s.meta.key.replaceAll("1", "0"));
330
+ });
331
+ }), v.iframeView.addEventListener("onUnloadPage", (s) => {
332
+ r.value.forEach((a) => {
333
+ a.path === s && (a.meta.isOpen = !1);
334
+ });
335
+ }), (s, a) => (g(), C(Y, null, [
336
+ s.needTransition ? (g(), V(ge, ne(ae({ key: 0 }, n.value)), {
337
+ default: W(() => [
338
+ (g(!0), C(Y, null, oe(f.value, ({ path: o, meta: m }) => D((g(), C("div", {
353
339
  class: "das-iframe-router-view",
354
- key: a,
355
- name: a
340
+ key: m.key,
341
+ name: o
356
342
  }, [
357
- (p(), A(H(f.componentInstance), {
358
- key: f.key
343
+ (g(), V(O(m.componentInstance), {
344
+ key: m.key
359
345
  }))
360
346
  ], 8, Pe)), [
361
- [P, f.componentInstance && a === b(i).path]
362
- ])),
363
- 128
364
- /* KEYED_FRAGMENT */
365
- ))
366
- ],
367
- 64
368
- /* STABLE_FRAGMENT */
369
- ));
347
+ [M, m.componentInstance && o === b(d).path]
348
+ ])), 128))
349
+ ]),
350
+ _: 1
351
+ }, 16)) : I("", !0),
352
+ s.needTransition ? I("", !0) : (g(!0), C(Y, { key: 1 }, oe(f.value, ({ path: o, meta: m }) => D((g(), C("div", {
353
+ class: "das-iframe-router-view",
354
+ key: m.key,
355
+ name: o
356
+ }, [
357
+ (g(), V(O(m.componentInstance), {
358
+ key: m.key
359
+ }))
360
+ ], 8, Se)), [
361
+ [M, m.componentInstance && o === b(d).path]
362
+ ])), 128))
363
+ ], 64));
370
364
  }
371
- }), ve = (e, t) => {
365
+ }), he = (e, t) => {
372
366
  const n = e.__vccOpts || e;
373
- for (const [c, i] of t)
374
- n[c] = i;
367
+ for (const [l, d] of t)
368
+ n[l] = d;
375
369
  return n;
376
- }, De = /* @__PURE__ */ ve(Se, [["__scopeId", "data-v-71479406"]]), xe = { class: "das-web-app-container" }, Me = {
370
+ }, Me = /* @__PURE__ */ he(De, [["__scopeId", "data-v-6dd310c9"]]), je = { class: "das-web-app-container" }, xe = {
377
371
  key: 0,
378
372
  class: "das-web-app-header"
379
- }, je = { class: "das-web-app-main" }, $e = {
373
+ }, $e = { class: "das-web-app-main" }, He = {
380
374
  key: 0,
381
375
  class: "aside"
382
- }, Be = { class: "das-web-app-main-container" }, He = {
376
+ }, Be = { class: "das-web-app-main-container" }, Fe = {
383
377
  key: 0,
384
378
  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 = {
379
+ }, Ne = { class: "das-web-app-main-content" }, Oe = { class: "banner" }, Ue = { class: "das-web-app-main-router-view" }, We = {
386
380
  key: 0,
387
381
  style: { width: "100%", height: "100%" }
388
- }, ze = {
382
+ }, Ke = {
389
383
  key: 1,
390
384
  style: { width: "100%", height: "100%" }
391
- }, Qe = { style: { width: "100%", height: "100%" } }, Ke = {
385
+ }, ze = { style: { width: "100%", height: "100%" } }, Qe = {
392
386
  class: "micro-app",
393
387
  style: { height: "100%", width: "100%" }
394
- }, qe = /* @__PURE__ */ z({
388
+ }, qe = /* @__PURE__ */ Q({
395
389
  __name: "das-web-layout",
396
390
  props: {
397
391
  needTransition: { type: Boolean, default: !0 },
@@ -401,212 +395,150 @@ const g = U({
401
395
  showTabs: { type: Boolean, default: !0 },
402
396
  routerViewVisible: { type: Boolean, default: !0 },
403
397
  excludeRoutes: {},
404
- routeKeepAliveVisible: { type: Boolean, default: !0 }
398
+ routeKeepAliveVisible: { type: Boolean, default: !0 },
399
+ pageKey: { default: "0" }
405
400
  },
406
401
  setup(e) {
407
402
  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(
403
+ ke(), Te(), Ae();
404
+ const n = fe(), l = U(!1), d = U(!1), r = U(!1), f = c(() => l.value && t.showLayout), y = c(() => d.value && t.showLayout && t.showAside), i = c(() => l.value && t.showLayout && t.showTabs), P = c(() => t.routerViewVisible ?? !0), T = c(() => F.overlay.visible ?? !1), S = c(() => ({
405
+ "das-web-app-overlay-show": T.value === !0,
406
+ "das-web-app-overlay-hide": T.value === !1,
407
+ "das-web-app-overlay-destroy": T.value === "destroy"
408
+ })), s = c(() => F.overlay.style ?? { backgroundColor: "rgba(0,0,0,0.5)" }), a = c(() => t.excludeRoutes), o = c(() => t.routeKeepAliveVisible);
409
+ te(
415
410
  () => [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,
420
- showTabs: se = !0,
421
- 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;
411
+ ([L, j]) => {
412
+ const { showLayout: A = !0, showAside: x = !0, showTabs: u = !0, layout: p = {} } = L, {
413
+ showLayout: w = !0,
414
+ showAside: $ = !0,
415
+ showTabs: E = !0,
416
+ app: G
417
+ } = j;
418
+ Ce(p);
419
+ let re = !0, J = !0, X = !0;
420
+ (A === !1 || w === !1 || w === "false") && (re = !1, J = !1, X = !1), (x === !1 || $ === !1 || $ === "false") && (J = !1), (u === !1 || E === !1 || E === "false") && (X = !1), l.value = re, d.value = J, r.value = X;
426
421
  }
427
422
  );
428
- const k = v(() => ({
423
+ const m = c(() => ({
429
424
  mode: "out-in",
430
425
  "enter-active-class": "animate__animated animate__fadeInLeft",
431
426
  ...t.transitionConfig || {}
432
427
  }));
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,
428
+ let _ = /* @__PURE__ */ new Map();
429
+ const q = (L, j) => {
430
+ let A;
431
+ return _.has(j) ? A = _.get(j) : (A = {
432
+ name: j,
438
433
  render() {
439
- return X("div", { style: { width: "100%", height: "100%" } }, [X(I)]);
434
+ return ee("div", { style: { width: "100%", height: "100%" } }, [ee(L)]);
440
435
  }
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(
447
- "div",
448
- {
449
- class: fe(["das-web-app-overlay", s.value]),
450
- style: ge(o.value)
451
- },
452
- null,
453
- 6
454
- /* CLASS, STYLE */
455
- ), [
456
- [P, M.value]
436
+ }, _.set(j, A)), ee(A);
437
+ }, B = c(() => F.visible.value);
438
+ return (L, j) => {
439
+ const A = pe("router-view");
440
+ return g(), C("div", je, [
441
+ D(H("div", {
442
+ class: we(["das-web-app-overlay", S.value]),
443
+ style: ye(s.value)
444
+ }, null, 6), [
445
+ [M, B.value]
457
446
  ]),
458
- h.value ? V((p(), C(
459
- "div",
460
- Me,
461
- [
462
- B(I.$slots, "header", {}, void 0, !0)
463
- ],
464
- 512
465
- /* NEED_PATCH */
466
- )), [
467
- [P, M.value]
468
- ]) : _("v-if", !0),
469
- D("div", je, [
470
- w.value ? V((p(), C(
471
- "div",
472
- $e,
473
- [
474
- B(I.$slots, "aside", {}, void 0, !0)
475
- ],
476
- 512
477
- /* NEED_PATCH */
478
- )), [
479
- [P, M.value]
480
- ]) : _("v-if", !0),
481
- D("div", Be, [
482
- r.value ? V((p(), C(
483
- "div",
484
- He,
485
- [
486
- B(I.$slots, "tab", {}, void 0, !0)
487
- ],
488
- 512
489
- /* NEED_PATCH */
490
- )), [
491
- [P, M.value]
492
- ]) : _("v-if", !0),
493
- D("div", Fe, [
494
- V(D(
495
- "div",
496
- Ne,
497
- [
498
- B(I.$slots, "banner", {}, void 0, !0)
499
- ],
500
- 512
501
- /* NEED_PATCH */
502
- ), [
503
- [P, M.value]
447
+ f.value ? D((g(), C("div", xe, [
448
+ N(L.$slots, "header", {}, void 0, !0)
449
+ ], 512)), [
450
+ [M, B.value]
451
+ ]) : I("", !0),
452
+ H("div", $e, [
453
+ y.value ? D((g(), C("div", He, [
454
+ N(L.$slots, "aside", {}, void 0, !0)
455
+ ], 512)), [
456
+ [M, B.value]
457
+ ]) : I("", !0),
458
+ H("div", Be, [
459
+ i.value ? D((g(), C("div", Fe, [
460
+ N(L.$slots, "tab", {}, void 0, !0)
461
+ ], 512)), [
462
+ [M, B.value]
463
+ ]) : I("", !0),
464
+ H("div", Ne, [
465
+ D(H("div", Oe, [
466
+ N(L.$slots, "banner", {}, void 0, !0)
467
+ ], 512), [
468
+ [M, B.value]
504
469
  ]),
505
- D("div", Oe, [
506
- V(D(
507
- "div",
508
- We,
509
- [
510
- B(I.$slots, "router-view", {}, () => [
511
- _(" 有动画 "),
512
- I.needTransition ? (p(), A(l, { key: 0 }, {
513
- default: O(({ Component: d }) => [
514
- J(
515
- ie,
516
- Z(le(k.value)),
517
- {
518
- default: O(() => {
519
- var y;
520
- return [
521
- b(n).meta.keepAlive ? (p(), A(ce, {
522
- key: 0,
523
- exclude: a.value
524
- }, [
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)
529
- ];
530
- }),
531
- _: 2
532
- /* DYNAMIC */
533
- },
534
- 1040
535
- /* FULL_PROPS, DYNAMIC_SLOTS */
536
- ),
537
- J(
538
- ie,
539
- Z(le(k.value)),
540
- {
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
545
- }))
546
- ])) : _("v-if", !0)
547
- ]),
548
- _: 2
549
- /* DYNAMIC */
550
- },
551
- 1040
552
- /* FULL_PROPS, DYNAMIC_SLOTS */
553
- )
554
- ]),
555
- _: 1
556
- /* 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, {
562
- key: 0,
563
- exclude: a.value
564
- }, [
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
572
- }))
573
- ])) : _("v-if", !0)
574
- ]),
575
- _: 1
576
- /* STABLE */
577
- })),
578
- V(D(
579
- "div",
580
- Qe,
581
- [
582
- J(De, {
583
- exclude: a.value,
584
- transitionConfig: k.value,
585
- needTransition: I.needTransition
586
- }, null, 8, ["exclude", "transitionConfig", "needTransition"])
587
- ],
588
- 512
589
- /* NEED_PATCH */
590
- ), [
591
- [P, b(n).meta.isIframe]
592
- ])
593
- ], !0)
594
- ],
595
- 512
596
- /* NEED_PATCH */
597
- ), [
598
- [P, E.value]
470
+ H("div", Ue, [
471
+ D((g(), C("div", {
472
+ key: L.pageKey,
473
+ style: { width: "100%", height: "100%" }
474
+ }, [
475
+ N(L.$slots, "router-view", {}, () => [
476
+ L.needTransition ? (g(), V(A, { key: 0 }, {
477
+ default: W(({ Component: x }) => [
478
+ Z(le, ne(ce(m.value)), {
479
+ default: W(() => {
480
+ var u;
481
+ return [
482
+ b(n).meta.keepAlive ? (g(), V(ue, {
483
+ key: 0,
484
+ exclude: a.value
485
+ }, [
486
+ o.value && !((u = b(n).meta) != null && u.isIframe) ? (g(), V(O(q(x, b(n).path)), {
487
+ key: b(n).path
488
+ })) : I("", !0)
489
+ ], 1032, ["exclude"])) : I("", !0)
490
+ ];
491
+ }),
492
+ _: 2
493
+ }, 1040),
494
+ Z(le, ne(ce(m.value)), {
495
+ default: W(() => [
496
+ !b(n).meta.keepAlive && !b(n).meta.isIframe ? (g(), C("div", We, [
497
+ (g(), V(O(x), {
498
+ key: b(n).path
499
+ }))
500
+ ])) : I("", !0)
501
+ ]),
502
+ _: 2
503
+ }, 1040)
504
+ ]),
505
+ _: 1
506
+ })) : I("", !0),
507
+ L.needTransition ? I("", !0) : (g(), V(A, { key: 1 }, {
508
+ default: W(({ Component: x }) => [
509
+ b(n).meta.keepAlive ? (g(), V(ue, {
510
+ key: 0,
511
+ exclude: a.value
512
+ }, [
513
+ o.value && !b(n).meta.isIframe ? (g(), V(O(q(x, b(n).path)), {
514
+ key: b(n).path
515
+ })) : I("", !0)
516
+ ], 1032, ["exclude"])) : I("", !0),
517
+ !b(n).meta.keepAlive && !b(n).meta.isIframe ? (g(), C("div", Ke, [
518
+ (g(), V(O(x), {
519
+ key: b(n).path
520
+ }))
521
+ ])) : I("", !0)
522
+ ]),
523
+ _: 1
524
+ })),
525
+ D(H("div", ze, [
526
+ Z(Me, {
527
+ exclude: a.value,
528
+ transitionConfig: m.value,
529
+ needTransition: L.needTransition
530
+ }, null, 8, ["exclude", "transitionConfig", "needTransition"])
531
+ ], 512), [
532
+ [M, b(n).meta.isIframe]
533
+ ])
534
+ ], !0)
535
+ ])), [
536
+ [M, P.value]
599
537
  ]),
600
- V(D(
601
- "div",
602
- Ke,
603
- [
604
- B(I.$slots, "default", {}, void 0, !0)
605
- ],
606
- 512
607
- /* NEED_PATCH */
608
- ), [
609
- [P, !E.value]
538
+ D(H("div", Qe, [
539
+ N(L.$slots, "default", {}, void 0, !0)
540
+ ], 512), [
541
+ [M, !P.value]
610
542
  ])
611
543
  ])
612
544
  ])
@@ -615,141 +547,154 @@ const g = U({
615
547
  ]);
616
548
  };
617
549
  }
618
- }), at = /* @__PURE__ */ ve(qe, [["__scopeId", "data-v-47a099d6"]]), Ge = ["modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], rt = /* @__PURE__ */ z({
550
+ }), st = /* @__PURE__ */ he(qe, [["__scopeId", "data-v-e2af5217"]]), Ge = ["theme", "modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], at = /* @__PURE__ */ Q({
619
551
  __name: "das-web-nav",
620
552
  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;
553
+ const { nav: t } = F, n = c(() => t.theme), l = c(() => t.logo || ""), d = c(() => t.activeItem || ""), r = c(() => (t.items || []).filter((p) => p.fixed)), f = c(() => (t.items || []).filter((p) => !p.fixed)), y = c(() => {
554
+ var u, p, w, $, E;
623
555
  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 }))
556
+ showAIHelper: ((u = t.config) == null ? void 0 : u.showAIHelper) ?? !1,
557
+ showFullScreen: ((p = t.config) == null ? void 0 : p.showFullScreen) ?? !1,
558
+ showChangeEnterprise: ((w = t.config) == null ? void 0 : w.showChangeEnterprise) ?? !1,
559
+ showSearch: (($ = t.config) == null ? void 0 : $.showSearch) ?? !0,
560
+ showProjectTree: ((E = t.config) == null ? void 0 : E.showProjectTree) ?? !0,
561
+ subAppList: f.value.map((G) => ({ code: G.value, name: G.label, ...G }))
629
562
  };
630
- }), w = v(() => {
631
- const l = i.value.find((d) => d.value === t.activeItem);
563
+ }), i = c(() => {
564
+ const u = r.value.find((p) => p.value === t.activeItem);
632
565
  return {
633
- activeInnerPagePath: (l == null ? void 0 : l.path) || "",
634
- innerPages: i.value.map((d) => ({ title: d.label, ...d }))
566
+ activeInnerPagePath: (u == null ? void 0 : u.path) || "",
567
+ innerPages: r.value.map((p) => ({ title: p.label, ...p }))
635
568
  };
636
- }), r = v(() => ({
569
+ }), P = c(() => ({
637
570
  projectStore: {
638
571
  projectTree: t.projects,
639
572
  currentProject: t.activeProject
640
573
  },
641
574
  ...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");
575
+ })), T = c(() => t.userInfo), S = c(() => t.searchConfig), s = async (u) => {
576
+ const p = u.detail[0], w = r.value.find((E) => p.value === E.value);
577
+ await v.nav.triggerEventListener("onItemClick", w) && v.nav.setActiveItem(w.value);
578
+ }, a = async (u) => {
579
+ const p = u.detail[0], w = f.value.find((E) => p === E.value);
580
+ await v.nav.triggerEventListener("onItemClick", w) && v.nav.setActiveItem(w.value);
581
+ }, o = async (u) => {
582
+ const p = u.detail[0], w = f.value.find((E) => p === E.value);
583
+ await v.nav.triggerEventListener("onItemRemove", w) && v.nav.removeItem(w.value);
584
+ }, m = async (u) => {
585
+ const [p, w] = u.detail;
586
+ !p || !await v.nav.triggerEventListener("onProjectChange", w) || v.nav.setActiveProject(w);
587
+ }, _ = (u) => {
588
+ v.nav.triggerEventListener("onUserCommandChange", u.detail[0]);
589
+ }, q = (u) => {
590
+ v.nav.triggerEventListener("searchToPage", { item: u.detail[0], keyword: u.detail[1], cb: u.detail[2] });
591
+ }, B = (u) => {
592
+ v.nav.triggerEventListener("clearSearchList", { cb: u.detail[0] });
593
+ }, L = (u) => {
594
+ v.nav.triggerEventListener("deleteSearchItem", { value: u.detail[0], cb: u.detail[1] });
595
+ }, j = () => {
596
+ v.nav.triggerEventListener("changeEnterpriseHandle");
597
+ }, A = () => {
598
+ v.nav.triggerEventListener("fullScreenHandle");
599
+ }, x = () => {
600
+ v.nav.triggerEventListener("openAI");
666
601
  };
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,
602
+ return be(() => {
603
+ v.nav.triggerEventListener("onBeforeMount", null, { autoRemove: !0 });
604
+ }), Le(() => {
605
+ v.nav.triggerEventListener("onMounted", null, { autoRemove: !0 });
606
+ }), _e(() => {
607
+ v.nav.triggerEventListener("onUnmounted", null, { autoRemove: !0 });
608
+ }), (u, p) => (g(), C("das-ce-nav", {
609
+ theme: n.value,
610
+ modelValue: d.value,
611
+ logoUrl: l.value,
612
+ config: y.value,
613
+ innerPagesConfig: i.value,
614
+ searchConfig: S.value,
615
+ projectTreeConfig: P.value,
616
+ userInfoConfig: T.value,
617
+ "on:userCommandHandle": _,
682
618
  "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
619
+ "on:handleTabClick": a,
620
+ "on:handleTabDelete": o,
621
+ "on:changeTreeHandle": m,
622
+ "on:searchToPage": q,
623
+ "on:clearSearchList": B,
624
+ "on:deleteSearchItem": L,
625
+ "on:changeEnterpriseHandle": j,
626
+ "on:fullScreen": A,
627
+ "on:openAI": x
691
628
  }, null, 40, Ge));
692
629
  }
693
- }), Je = ["modelValue", "data", "collapse", "fixedTopMenu", "subMenuAttrs"], ot = /* @__PURE__ */ z({
630
+ }), Je = ["theme", "modelValue", "data", "collapse", "fixedTopMenu", "subMenuAttrs"], rt = /* @__PURE__ */ Q({
694
631
  __name: "das-web-menu",
695
632
  props: {
696
633
  menuAttr: {}
697
634
  },
698
635
  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);
636
+ const { menu: t } = F, n = e, l = c(() => t.theme), d = c(() => n.menuAttr || {}), r = c(() => t.items), f = c(() => t.items.find((s) => s.fixed)), y = c(() => t.activeItem || ""), i = c(() => t.collapse || !1), P = c(() => ({ popupClassName: t.popupClassName ?? "" })), T = async (s) => {
637
+ const a = s.detail[0], o = Ee(r.value).find((_) => a === _.id);
638
+ await v.menu.triggerEventListener("onItemClick", o) && v.menu.setActiveItem(o.id);
639
+ }, S = (s) => {
640
+ v.menu.setCollapse(s.detail[0]), v.menu.triggerEventListener("toggleCollapse", s.detail[0]);
702
641
  };
703
- return (L, s) => i.value.length > 0 ? (p(), C("das-ce-menu", te({
642
+ return (s, a) => r.value.length > 0 ? (g(), C("das-ce-menu", ae({
704
643
  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);
644
+ theme: l.value,
645
+ modelValue: y.value,
646
+ data: r.value,
647
+ collapse: i.value,
648
+ fixedTopMenu: f.value,
649
+ subMenuAttrs: P.value
650
+ }, d.value, {
651
+ onChange: T,
652
+ "on:toggleCollapse": S
653
+ }), null, 16, Je)) : I("", !0);
711
654
  }
712
- }), Xe = ["modelValue", "options"], it = /* @__PURE__ */ z({
655
+ }), Xe = ["theme", "modelValue", "options"], ot = /* @__PURE__ */ Q({
713
656
  __name: "das-web-tabs",
714
657
  props: {
715
658
  tabsAttr: {}
716
659
  },
717
660
  setup(e) {
718
- const { tab: t } = $, n = e, c = v(() => n.tabsAttr || {}), i = v(() => t.items.map((s) => ({
661
+ const { tab: t } = F, n = e, l = c(() => n.tabsAttr || {}), d = c(() => t.theme), r = c(() => t.items.map((s) => ({
719
662
  ...s,
720
663
  key: s.value,
721
664
  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");
665
+ }))), f = c(() => t.activeItem || ""), y = async (s) => {
666
+ const a = s.detail[0], o = r.value.find((_) => a === _.value);
667
+ await v.tab.triggerEventListener("onItemClick", o) && v.tab.setActiveItem(o.value);
668
+ }, i = async (s) => {
669
+ const a = s.detail[0], o = r.value.find((_) => a === _.value);
670
+ await v.tab.triggerEventListener("onItemRemove", o) && v.tab.removeItem(o.value);
671
+ }, P = async (s) => {
672
+ await v.tab.triggerEventListener("onMenuClick", { type: s.detail[0], data: s.detail[1] });
673
+ }, T = async (s) => {
674
+ await v.tab.triggerEventListener("onPageRefresh", s.detail[0]);
675
+ }, S = () => {
676
+ v.tab.triggerEventListener("onToggleFullScreen");
734
677
  };
735
- return (s, o) => i.value.length > 0 ? (p(), C("das-ce-tabs", te({
678
+ return (s, a) => r.value.length > 0 ? (g(), C("das-ce-tabs", ae({
736
679
  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);
680
+ theme: d.value,
681
+ modelValue: f.value,
682
+ options: r.value
683
+ }, l.value, {
684
+ "on:tabClick": y,
685
+ "on:tabDelete": i,
686
+ "on:menuClick": P,
687
+ "on:pageRefresh": T,
688
+ "on:toggleFullScreen": S
689
+ }), null, 16, Xe)) : I("", !0);
746
690
  }
747
691
  });
748
- F("@das-fed/web");
692
+ U("@das-fed/web");
749
693
  export {
750
- at as DasWebLayout,
751
- ot as DasWebMenu,
752
- rt as DasWebNav,
753
- it as DasWebTabs,
754
- m as layout
694
+ st as DasWebLayout,
695
+ rt as DasWebMenu,
696
+ at as DasWebNav,
697
+ ot as DasWebTabs,
698
+ v as layout,
699
+ F as layoutData
755
700
  };