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

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 (97) hide show
  1. package/esm-map.json +4 -1
  2. package/index-Cl3hnQ3N.js +10 -0
  3. package/index-D9P3JHvk.js +13944 -0
  4. package/index-D9P3JHvk.js.gz +0 -0
  5. package/index-oGm_kuA1.js +87 -0
  6. package/index-oGm_kuA1.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 +495 -465
  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-CPfHlpZl.js +12452 -0
  17. package/packages/main-app-framework/index-CPfHlpZl.js.gz +0 -0
  18. package/packages/main-app-framework/index-D0IwIvDd.js +10 -0
  19. package/packages/main-app-framework/index-DUMHs9Ne.js +87 -0
  20. package/packages/main-app-framework/index-DUMHs9Ne.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 +289 -275
  25. package/packages/micro-frontend/index.js.gz +0 -0
  26. package/packages/micro-frontend/style.css +1 -1
  27. package/packages/style/style.css +1 -1
  28. package/packages/style/style.css.gz +0 -0
  29. package/packages/theme/index.js.gz +0 -0
  30. package/style.css +2 -2
  31. package/style.css.gz +0 -0
  32. package/types/create-das-web-app/index.d.ts +1 -1
  33. package/types/i18n/global.d.ts +583 -0
  34. package/types/i18n/index.d.ts +7 -5
  35. package/types/layout/index.d.ts +1 -1
  36. package/types/layout/store/index.d.ts +7 -2
  37. package/types/layout/store/menu.d.ts +2 -0
  38. package/types/layout/store/nav.d.ts +2 -1
  39. package/types/layout/store/tab.d.ts +1 -0
  40. package/types/main-app-framework/business/alarm/use-alarm.d.ts +4 -4
  41. package/types/main-app-framework/business/message-notify/index.d.ts +1 -0
  42. package/types/main-app-framework/business/remote-control/apis.d.ts +2 -0
  43. package/types/main-app-framework/business/remote-control/utils.d.ts +7 -0
  44. package/types/main-app-framework/business/video-link/api.d.ts +2 -0
  45. package/types/main-app-framework/business/video-link/index.d.ts +3 -3
  46. package/types/main-app-framework/business/video-link/video-dialog/hooks/PlayerProvider.d.ts +3 -3
  47. package/types/main-app-framework/components/iframe-page/index.d.ts +3 -0
  48. package/types/main-app-framework/components/index.d.ts +1 -0
  49. package/types/main-app-framework/components/person-set-dialog/index.d.ts +1 -1
  50. package/types/main-app-framework/components/person-set-dialog/src/api.d.ts +4 -0
  51. package/types/main-app-framework/components/person-set-dialog/src/components/index.d.ts +3 -0
  52. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/api.d.ts +20 -0
  53. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-builtIn-dialog.d.ts +19 -0
  54. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-notBuiltIn-dialog.d.ts +22 -0
  55. package/types/main-app-framework/constant/index.d.ts +1 -1
  56. package/types/main-app-framework/data-track/api.d.ts +2 -0
  57. package/types/main-app-framework/data-track/index.d.ts +2 -0
  58. package/types/main-app-framework/i18n/index.d.ts +538 -0
  59. package/types/main-app-framework/index.d.ts +2 -1
  60. package/types/main-app-framework/init-config/get-nav-config/api.d.ts +2 -0
  61. package/types/main-app-framework/init-config/get-nav-config/index.d.ts +5 -3
  62. package/types/main-app-framework/init-config/get-project-config/api.d.ts +3 -2
  63. package/types/main-app-framework/init-config/get-system-config/api.d.ts +4 -0
  64. package/types/main-app-framework/init-config/get-system-config/index.d.ts +6 -4
  65. package/types/main-app-framework/init-config/get-tenant-config/api.d.ts +3 -1
  66. package/types/main-app-framework/init-config/get-tenant-config/index.d.ts +2 -0
  67. package/types/main-app-framework/init-layout/hooks/nav-slots/index.d.ts +1 -0
  68. package/types/main-app-framework/init-layout/hooks/nav-slots/use-ai-helper.d.ts +4 -0
  69. package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +3 -3
  70. package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +2 -2
  71. package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +5 -4
  72. package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +3 -3
  73. package/types/main-app-framework/init-platform/index.d.ts +1 -1
  74. package/types/main-app-framework/utils/src/get-portal-url/crypto.d.ts +14 -0
  75. package/types/main-app-framework/utils/src/get-portal-url/encrypt.d.ts +42 -0
  76. package/types/main-app-framework/utils/src/get-portal-url/generate-url.d.ts +4 -0
  77. package/types/main-app-framework/utils/src/get-portal-url/handle-portal-params.d.ts +2 -0
  78. package/types/main-app-framework/utils/src/get-portal-url/index.d.ts +2 -0
  79. package/types/main-app-framework/utils/src/get-portal-url/type.d.ts +16 -0
  80. package/types/main-app-framework/utils/src/set-common-info.d.ts +6 -2
  81. package/types/main-app-framework/utils/src/tools.d.ts +5 -1
  82. package/types/micro-frontend/store.d.ts +5 -5
  83. package/types/theme/index.d.ts +1 -1
  84. package/index-CNuui6rH.js +0 -71
  85. package/index-CNuui6rH.js.gz +0 -0
  86. package/index-D_CiHfGN.js +0 -10
  87. package/index-LTwaM8dS.js +0 -7079
  88. package/index-LTwaM8dS.js.gz +0 -0
  89. package/index-_67_4aoo.js +0 -68
  90. package/index-_67_4aoo.js.gz +0 -0
  91. package/packages/main-app-framework/index-Bnb7HNMb.js +0 -68
  92. package/packages/main-app-framework/index-Bnb7HNMb.js.gz +0 -0
  93. package/packages/main-app-framework/index-CBrBve1k.js +0 -10
  94. package/packages/main-app-framework/index-DF7V-TBl.js +0 -5770
  95. package/packages/main-app-framework/index-DF7V-TBl.js.gz +0 -0
  96. package/packages/main-app-framework/index-DOTMbc-l.js +0 -71
  97. 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 L, 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);
242
+ }
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);
238
259
  }
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({
260
+ }, Pe = ["name"], Se = ["name"], De = /* @__PURE__ */ Q({
254
261
  __name: "das-iframe-router-view",
255
262
  props: {
256
263
  needTransition: { type: Boolean },
@@ -258,83 +265,95 @@ const g = U({
258
265
  exclude: { default: () => [] }
259
266
  },
260
267
  setup(e) {
261
- const t = e, n = v(() => {
262
- const { mode: s = "", ...o } = {
268
+ const t = e, n = 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((I) => I.meta.isShow);
314
+ s && (s.meta.isShow = !1, await ie(), v.iframeView.triggerEventListener("onDeactivated", { route: s }));
315
+ const a = r.value.find((I) => I.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,
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(
336
+ Y,
318
337
  null,
319
338
  [
320
- s.needTransition ? (p(), A(
321
- de,
322
- Z(te({ key: 0 }, n.value)),
339
+ s.needTransition ? (g(), V(
340
+ ge,
341
+ ne(ae({ key: 0 }, n.value)),
323
342
  {
324
- default: O(() => [
325
- (p(!0), C(
326
- G,
343
+ default: W(() => [
344
+ (g(!0), C(
345
+ Y,
327
346
  null,
328
- re(h.value, ({ path: a, meta: f }) => V((p(), C("div", {
347
+ oe(f.value, ({ path: o, meta: m }) => D((g(), C("div", {
329
348
  class: "das-iframe-router-view",
330
- key: a,
331
- name: a
349
+ key: m.key,
350
+ name: o
332
351
  }, [
333
- (p(), A(H(f.componentInstance), {
334
- key: f.key
352
+ (g(), V(O(m.componentInstance), {
353
+ key: m.key
335
354
  }))
336
- ], 8, Ve)), [
337
- [P, f.componentInstance && a === b(i).path]
355
+ ], 8, Pe)), [
356
+ [M, m.componentInstance && o === b(d).path]
338
357
  ])),
339
358
  128
340
359
  /* KEYED_FRAGMENT */
@@ -345,20 +364,20 @@ const g = U({
345
364
  },
346
365
  16
347
366
  /* FULL_PROPS */
348
- )) : _("v-if", !0),
349
- s.needTransition ? _("v-if", !0) : (p(!0), C(
350
- G,
367
+ )) : L("v-if", !0),
368
+ s.needTransition ? L("v-if", !0) : (g(!0), C(
369
+ Y,
351
370
  { key: 1 },
352
- re(h.value, ({ path: a, meta: f }) => V((p(), C("div", {
371
+ oe(f.value, ({ path: o, meta: m }) => D((g(), C("div", {
353
372
  class: "das-iframe-router-view",
354
- key: a,
355
- name: a
373
+ key: m.key,
374
+ name: o
356
375
  }, [
357
- (p(), A(H(f.componentInstance), {
358
- key: f.key
376
+ (g(), V(O(m.componentInstance), {
377
+ key: m.key
359
378
  }))
360
- ], 8, Pe)), [
361
- [P, f.componentInstance && a === b(i).path]
379
+ ], 8, Se)), [
380
+ [M, m.componentInstance && o === b(d).path]
362
381
  ])),
363
382
  128
364
383
  /* KEYED_FRAGMENT */
@@ -368,30 +387,30 @@ const g = U({
368
387
  /* STABLE_FRAGMENT */
369
388
  ));
370
389
  }
371
- }), ve = (e, t) => {
390
+ }), he = (e, t) => {
372
391
  const n = e.__vccOpts || e;
373
- for (const [c, i] of t)
374
- n[c] = i;
392
+ for (const [l, d] of t)
393
+ n[l] = d;
375
394
  return n;
376
- }, De = /* @__PURE__ */ ve(Se, [["__scopeId", "data-v-71479406"]]), xe = { class: "das-web-app-container" }, Me = {
395
+ }, Me = /* @__PURE__ */ he(De, [["__scopeId", "data-v-6dd310c9"]]), je = { class: "das-web-app-container" }, xe = {
377
396
  key: 0,
378
397
  class: "das-web-app-header"
379
- }, je = { class: "das-web-app-main" }, $e = {
398
+ }, $e = { class: "das-web-app-main" }, He = {
380
399
  key: 0,
381
400
  class: "aside"
382
- }, Be = { class: "das-web-app-main-container" }, He = {
401
+ }, Be = { class: "das-web-app-main-container" }, Fe = {
383
402
  key: 0,
384
403
  class: "tab"
385
- }, Fe = { class: "das-web-app-main-content" }, Ne = { class: "banner" }, Oe = { class: "das-web-app-main-router-view" }, We = { style: { width: "100%", height: "100%" } }, Ue = {
404
+ }, Ne = { class: "das-web-app-main-content" }, Oe = { class: "banner" }, Ue = { class: "das-web-app-main-router-view" }, We = {
386
405
  key: 0,
387
406
  style: { width: "100%", height: "100%" }
388
- }, ze = {
407
+ }, Ke = {
389
408
  key: 1,
390
409
  style: { width: "100%", height: "100%" }
391
- }, Qe = { style: { width: "100%", height: "100%" } }, Ke = {
410
+ }, ze = { style: { width: "100%", height: "100%" } }, Qe = {
392
411
  class: "micro-app",
393
412
  style: { height: "100%", width: "100%" }
394
- }, qe = /* @__PURE__ */ z({
413
+ }, qe = /* @__PURE__ */ Q({
395
414
  __name: "das-web-layout",
396
415
  props: {
397
416
  needTransition: { type: Boolean, default: !0 },
@@ -401,212 +420,210 @@ const g = U({
401
420
  showTabs: { type: Boolean, default: !0 },
402
421
  routerViewVisible: { type: Boolean, default: !0 },
403
422
  excludeRoutes: {},
404
- routeKeepAliveVisible: { type: Boolean, default: !0 }
423
+ routeKeepAliveVisible: { type: Boolean, default: !0 },
424
+ pageKey: { default: "0" }
405
425
  },
406
426
  setup(e) {
407
427
  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(
428
+ ke(), Te(), Ae();
429
+ 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(() => ({
430
+ "das-web-app-overlay-show": T.value === !0,
431
+ "das-web-app-overlay-hide": T.value === !1,
432
+ "das-web-app-overlay-destroy": T.value === "destroy"
433
+ })), s = c(() => F.overlay.style ?? { backgroundColor: "rgba(0,0,0,0.5)" }), a = c(() => t.excludeRoutes), o = c(() => t.routeKeepAliveVisible);
434
+ te(
415
435
  () => [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;
436
+ ([_, j]) => {
437
+ const { showLayout: A = !0, showAside: x = !0, showTabs: u = !0, layout: p = {} } = _, {
438
+ showLayout: w = !0,
439
+ showAside: $ = !0,
440
+ showTabs: E = !0,
441
+ app: G
442
+ } = j;
443
+ Ce(p);
444
+ let re = !0, J = !0, X = !0;
445
+ (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
446
  }
427
447
  );
428
- const k = v(() => ({
448
+ const m = c(() => ({
429
449
  mode: "out-in",
430
450
  "enter-active-class": "animate__animated animate__fadeInLeft",
431
451
  ...t.transitionConfig || {}
432
452
  }));
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,
453
+ let I = /* @__PURE__ */ new Map();
454
+ const q = (_, j) => {
455
+ let A;
456
+ return I.has(j) ? A = I.get(j) : (A = {
457
+ name: j,
438
458
  render() {
439
- return X("div", { style: { width: "100%", height: "100%" } }, [X(I)]);
459
+ return ee("div", { style: { width: "100%", height: "100%" } }, [ee(_)]);
440
460
  }
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(
461
+ }, I.set(j, A)), ee(A);
462
+ }, B = c(() => F.visible.value);
463
+ return (_, j) => {
464
+ const A = pe("router-view");
465
+ return g(), C("div", je, [
466
+ D(H(
447
467
  "div",
448
468
  {
449
- class: fe(["das-web-app-overlay", s.value]),
450
- style: ge(o.value)
469
+ class: we(["das-web-app-overlay", S.value]),
470
+ style: ye(s.value)
451
471
  },
452
472
  null,
453
473
  6
454
474
  /* CLASS, STYLE */
455
475
  ), [
456
- [P, M.value]
476
+ [M, B.value]
457
477
  ]),
458
- h.value ? V((p(), C(
478
+ f.value ? D((g(), C(
459
479
  "div",
460
- Me,
480
+ xe,
461
481
  [
462
- B(I.$slots, "header", {}, void 0, !0)
482
+ N(_.$slots, "header", {}, void 0, !0)
463
483
  ],
464
484
  512
465
485
  /* NEED_PATCH */
466
486
  )), [
467
- [P, M.value]
468
- ]) : _("v-if", !0),
469
- D("div", je, [
470
- w.value ? V((p(), C(
487
+ [M, B.value]
488
+ ]) : L("v-if", !0),
489
+ H("div", $e, [
490
+ y.value ? D((g(), C(
471
491
  "div",
472
- $e,
492
+ He,
473
493
  [
474
- B(I.$slots, "aside", {}, void 0, !0)
494
+ N(_.$slots, "aside", {}, void 0, !0)
475
495
  ],
476
496
  512
477
497
  /* NEED_PATCH */
478
498
  )), [
479
- [P, M.value]
480
- ]) : _("v-if", !0),
481
- D("div", Be, [
482
- r.value ? V((p(), C(
499
+ [M, B.value]
500
+ ]) : L("v-if", !0),
501
+ H("div", Be, [
502
+ i.value ? D((g(), C(
483
503
  "div",
484
- He,
504
+ Fe,
485
505
  [
486
- B(I.$slots, "tab", {}, void 0, !0)
506
+ N(_.$slots, "tab", {}, void 0, !0)
487
507
  ],
488
508
  512
489
509
  /* NEED_PATCH */
490
510
  )), [
491
- [P, M.value]
492
- ]) : _("v-if", !0),
493
- D("div", Fe, [
494
- V(D(
511
+ [M, B.value]
512
+ ]) : L("v-if", !0),
513
+ H("div", Ne, [
514
+ D(H(
495
515
  "div",
496
- Ne,
516
+ Oe,
497
517
  [
498
- B(I.$slots, "banner", {}, void 0, !0)
518
+ N(_.$slots, "banner", {}, void 0, !0)
499
519
  ],
500
520
  512
501
521
  /* NEED_PATCH */
502
522
  ), [
503
- [P, M.value]
523
+ [M, B.value]
504
524
  ]),
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), {
525
+ H("div", Ue, [
526
+ D((g(), C("div", {
527
+ key: _.pageKey,
528
+ style: { width: "100%", height: "100%" }
529
+ }, [
530
+ N(_.$slots, "router-view", {}, () => [
531
+ L(" 有动画 "),
532
+ _.needTransition ? (g(), V(A, { key: 0 }, {
533
+ default: W(({ Component: x }) => [
534
+ Z(
535
+ le,
536
+ ne(ce(m.value)),
537
+ {
538
+ default: W(() => {
539
+ var u;
540
+ return [
541
+ b(n).meta.keepAlive ? (g(), V(ue, {
542
+ key: 0,
543
+ exclude: a.value
544
+ }, [
545
+ o.value && !((u = b(n).meta) != null && u.isIframe) ? (g(), V(O(q(x, b(n).path)), {
544
546
  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]
547
+ })) : L("v-if", !0)
548
+ ], 1032, ["exclude"])) : L("v-if", !0)
549
+ ];
550
+ }),
551
+ _: 2
552
+ /* DYNAMIC */
553
+ },
554
+ 1040
555
+ /* FULL_PROPS, DYNAMIC_SLOTS */
556
+ ),
557
+ Z(
558
+ le,
559
+ ne(ce(m.value)),
560
+ {
561
+ default: W(() => [
562
+ !b(n).meta.keepAlive && !b(n).meta.isIframe ? (g(), C("div", We, [
563
+ (g(), V(O(x), {
564
+ key: b(n).path
565
+ }))
566
+ ])) : L("v-if", !0)
567
+ ]),
568
+ _: 2
569
+ /* DYNAMIC */
570
+ },
571
+ 1040
572
+ /* FULL_PROPS, DYNAMIC_SLOTS */
573
+ )
574
+ ]),
575
+ _: 1
576
+ /* STABLE */
577
+ })) : L("v-if", !0),
578
+ L(" 无动画 "),
579
+ _.needTransition ? L("v-if", !0) : (g(), V(A, { key: 1 }, {
580
+ default: W(({ Component: x }) => [
581
+ b(n).meta.keepAlive ? (g(), V(ue, {
582
+ key: 0,
583
+ exclude: a.value
584
+ }, [
585
+ o.value && !b(n).meta.isIframe ? (g(), V(O(q(x, b(n).path)), {
586
+ key: b(n).path
587
+ })) : L("v-if", !0)
588
+ ], 1032, ["exclude"])) : L("v-if", !0),
589
+ !b(n).meta.keepAlive && !b(n).meta.isIframe ? (g(), C("div", Ke, [
590
+ (g(), V(O(x), {
591
+ key: b(n).path
592
+ }))
593
+ ])) : L("v-if", !0)
594
+ ]),
595
+ _: 1
596
+ /* STABLE */
597
+ })),
598
+ D(H(
599
+ "div",
600
+ ze,
601
+ [
602
+ Z(Me, {
603
+ exclude: a.value,
604
+ transitionConfig: m.value,
605
+ needTransition: _.needTransition
606
+ }, null, 8, ["exclude", "transitionConfig", "needTransition"])
607
+ ],
608
+ 512
609
+ /* NEED_PATCH */
610
+ ), [
611
+ [M, b(n).meta.isIframe]
612
+ ])
613
+ ], !0)
614
+ ])), [
615
+ [M, P.value]
599
616
  ]),
600
- V(D(
617
+ D(H(
601
618
  "div",
602
- Ke,
619
+ Qe,
603
620
  [
604
- B(I.$slots, "default", {}, void 0, !0)
621
+ N(_.$slots, "default", {}, void 0, !0)
605
622
  ],
606
623
  512
607
624
  /* NEED_PATCH */
608
625
  ), [
609
- [P, !E.value]
626
+ [M, !P.value]
610
627
  ])
611
628
  ])
612
629
  ])
@@ -615,141 +632,154 @@ const g = U({
615
632
  ]);
616
633
  };
617
634
  }
618
- }), at = /* @__PURE__ */ ve(qe, [["__scopeId", "data-v-47a099d6"]]), Ge = ["modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], rt = /* @__PURE__ */ z({
635
+ }), st = /* @__PURE__ */ he(qe, [["__scopeId", "data-v-e2af5217"]]), Ge = ["theme", "modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], at = /* @__PURE__ */ Q({
619
636
  __name: "das-web-nav",
620
637
  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;
638
+ 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(() => {
639
+ var u, p, w, $, E;
623
640
  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 }))
641
+ showAIHelper: ((u = t.config) == null ? void 0 : u.showAIHelper) ?? !1,
642
+ showFullScreen: ((p = t.config) == null ? void 0 : p.showFullScreen) ?? !1,
643
+ showChangeEnterprise: ((w = t.config) == null ? void 0 : w.showChangeEnterprise) ?? !1,
644
+ showSearch: (($ = t.config) == null ? void 0 : $.showSearch) ?? !0,
645
+ showProjectTree: ((E = t.config) == null ? void 0 : E.showProjectTree) ?? !0,
646
+ subAppList: f.value.map((G) => ({ code: G.value, name: G.label, ...G }))
629
647
  };
630
- }), w = v(() => {
631
- const l = i.value.find((d) => d.value === t.activeItem);
648
+ }), i = c(() => {
649
+ const u = r.value.find((p) => p.value === t.activeItem);
632
650
  return {
633
- activeInnerPagePath: (l == null ? void 0 : l.path) || "",
634
- innerPages: i.value.map((d) => ({ title: d.label, ...d }))
651
+ activeInnerPagePath: (u == null ? void 0 : u.path) || "",
652
+ innerPages: r.value.map((p) => ({ title: p.label, ...p }))
635
653
  };
636
- }), r = v(() => ({
654
+ }), P = c(() => ({
637
655
  projectStore: {
638
656
  projectTree: t.projects,
639
657
  currentProject: t.activeProject
640
658
  },
641
659
  ...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");
660
+ })), T = c(() => t.userInfo), S = c(() => t.searchConfig), s = async (u) => {
661
+ const p = u.detail[0], w = r.value.find((E) => p.value === E.value);
662
+ await v.nav.triggerEventListener("onItemClick", w) && v.nav.setActiveItem(w.value);
663
+ }, a = async (u) => {
664
+ const p = u.detail[0], w = f.value.find((E) => p === E.value);
665
+ await v.nav.triggerEventListener("onItemClick", w) && v.nav.setActiveItem(w.value);
666
+ }, o = async (u) => {
667
+ const p = u.detail[0], w = f.value.find((E) => p === E.value);
668
+ await v.nav.triggerEventListener("onItemRemove", w) && v.nav.removeItem(w.value);
669
+ }, m = async (u) => {
670
+ const [p, w] = u.detail;
671
+ !p || !await v.nav.triggerEventListener("onProjectChange", w) || v.nav.setActiveProject(w);
672
+ }, I = (u) => {
673
+ v.nav.triggerEventListener("onUserCommandChange", u.detail[0]);
674
+ }, q = (u) => {
675
+ v.nav.triggerEventListener("searchToPage", { item: u.detail[0], keyword: u.detail[1], cb: u.detail[2] });
676
+ }, B = (u) => {
677
+ v.nav.triggerEventListener("clearSearchList", { cb: u.detail[0] });
678
+ }, _ = (u) => {
679
+ v.nav.triggerEventListener("deleteSearchItem", { value: u.detail[0], cb: u.detail[1] });
680
+ }, j = () => {
681
+ v.nav.triggerEventListener("changeEnterpriseHandle");
682
+ }, A = () => {
683
+ v.nav.triggerEventListener("fullScreenHandle");
684
+ }, x = () => {
685
+ v.nav.triggerEventListener("openAI");
666
686
  };
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,
687
+ return be(() => {
688
+ v.nav.triggerEventListener("onBeforeMount", null, { autoRemove: !0 });
689
+ }), Le(() => {
690
+ v.nav.triggerEventListener("onMounted", null, { autoRemove: !0 });
691
+ }), _e(() => {
692
+ v.nav.triggerEventListener("onUnmounted", null, { autoRemove: !0 });
693
+ }), (u, p) => (g(), C("das-ce-nav", {
694
+ theme: n.value,
695
+ modelValue: d.value,
696
+ logoUrl: l.value,
697
+ config: y.value,
698
+ innerPagesConfig: i.value,
699
+ searchConfig: S.value,
700
+ projectTreeConfig: P.value,
701
+ userInfoConfig: T.value,
702
+ "on:userCommandHandle": I,
682
703
  "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
704
+ "on:handleTabClick": a,
705
+ "on:handleTabDelete": o,
706
+ "on:changeTreeHandle": m,
707
+ "on:searchToPage": q,
708
+ "on:clearSearchList": B,
709
+ "on:deleteSearchItem": _,
710
+ "on:changeEnterpriseHandle": j,
711
+ "on:fullScreen": A,
712
+ "on:openAI": x
691
713
  }, null, 40, Ge));
692
714
  }
693
- }), Je = ["modelValue", "data", "collapse", "fixedTopMenu", "subMenuAttrs"], ot = /* @__PURE__ */ z({
715
+ }), Je = ["theme", "modelValue", "data", "collapse", "fixedTopMenu", "subMenuAttrs"], rt = /* @__PURE__ */ Q({
694
716
  __name: "das-web-menu",
695
717
  props: {
696
718
  menuAttr: {}
697
719
  },
698
720
  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);
721
+ 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) => {
722
+ const a = s.detail[0], o = Ee(r.value).find((I) => a === I.id);
723
+ await v.menu.triggerEventListener("onItemClick", o) && v.menu.setActiveItem(o.id);
724
+ }, S = (s) => {
725
+ v.menu.setCollapse(s.detail[0]), v.menu.triggerEventListener("toggleCollapse", s.detail[0]);
702
726
  };
703
- return (L, s) => i.value.length > 0 ? (p(), C("das-ce-menu", te({
727
+ return (s, a) => r.value.length > 0 ? (g(), C("das-ce-menu", ae({
704
728
  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);
729
+ theme: l.value,
730
+ modelValue: y.value,
731
+ data: r.value,
732
+ collapse: i.value,
733
+ fixedTopMenu: f.value,
734
+ subMenuAttrs: P.value
735
+ }, d.value, {
736
+ onChange: T,
737
+ "on:toggleCollapse": S
738
+ }), null, 16, Je)) : L("v-if", !0);
711
739
  }
712
- }), Xe = ["modelValue", "options"], it = /* @__PURE__ */ z({
740
+ }), Xe = ["theme", "modelValue", "options"], ot = /* @__PURE__ */ Q({
713
741
  __name: "das-web-tabs",
714
742
  props: {
715
743
  tabsAttr: {}
716
744
  },
717
745
  setup(e) {
718
- const { tab: t } = $, n = e, c = v(() => n.tabsAttr || {}), i = v(() => t.items.map((s) => ({
746
+ const { tab: t } = F, n = e, l = c(() => n.tabsAttr || {}), d = c(() => t.theme), r = c(() => t.items.map((s) => ({
719
747
  ...s,
720
748
  key: s.value,
721
749
  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");
750
+ }))), f = c(() => t.activeItem || ""), y = async (s) => {
751
+ const a = s.detail[0], o = r.value.find((I) => a === I.value);
752
+ await v.tab.triggerEventListener("onItemClick", o) && v.tab.setActiveItem(o.value);
753
+ }, i = async (s) => {
754
+ const a = s.detail[0], o = r.value.find((I) => a === I.value);
755
+ await v.tab.triggerEventListener("onItemRemove", o) && v.tab.removeItem(o.value);
756
+ }, P = async (s) => {
757
+ await v.tab.triggerEventListener("onMenuClick", { type: s.detail[0], data: s.detail[1] });
758
+ }, T = async (s) => {
759
+ await v.tab.triggerEventListener("onPageRefresh", s.detail[0]);
760
+ }, S = () => {
761
+ v.tab.triggerEventListener("onToggleFullScreen");
734
762
  };
735
- return (s, o) => i.value.length > 0 ? (p(), C("das-ce-tabs", te({
763
+ return (s, a) => r.value.length > 0 ? (g(), C("das-ce-tabs", ae({
736
764
  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);
765
+ theme: d.value,
766
+ modelValue: f.value,
767
+ options: r.value
768
+ }, l.value, {
769
+ "on:tabClick": y,
770
+ "on:tabDelete": i,
771
+ "on:menuClick": P,
772
+ "on:pageRefresh": T,
773
+ "on:toggleFullScreen": S
774
+ }), null, 16, Xe)) : L("v-if", !0);
746
775
  }
747
776
  });
748
- F("@das-fed/web");
777
+ U("@das-fed/web");
749
778
  export {
750
- at as DasWebLayout,
751
- ot as DasWebMenu,
752
- rt as DasWebNav,
753
- it as DasWebTabs,
754
- m as layout
779
+ st as DasWebLayout,
780
+ rt as DasWebMenu,
781
+ at as DasWebNav,
782
+ ot as DasWebTabs,
783
+ v as layout,
784
+ F as layoutData
755
785
  };