@das-fed/web 6.4.0-dev.7 → 6.4.0-dev.71

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