@das-fed/upf-web 6.4.0-dev.124

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 (139) hide show
  1. package/esm-map.json +31 -0
  2. package/index-CjR1TTJr.js +10 -0
  3. package/index-DKGPO2ax.js +13946 -0
  4. package/index-DKGPO2ax.js.gz +0 -0
  5. package/index-Dbi0WqWP.js +87 -0
  6. package/index-Dbi0WqWP.js.gz +0 -0
  7. package/index.js +32 -0
  8. package/package.json +54 -0
  9. package/packages/create-das-web-app/config.js +1 -0
  10. package/packages/create-das-web-app/index.js +58 -0
  11. package/packages/create-das-web-app/index.js.gz +0 -0
  12. package/packages/i18n/config.js +1 -0
  13. package/packages/i18n/index.js +175 -0
  14. package/packages/i18n/index.js.gz +0 -0
  15. package/packages/layout/config.js +1 -0
  16. package/packages/layout/index.js +785 -0
  17. package/packages/layout/index.js.gz +0 -0
  18. package/packages/layout/style.css +7 -0
  19. package/packages/layout/style.css.gz +0 -0
  20. package/packages/main-app-framework/config.js +1 -0
  21. package/packages/main-app-framework/index-Bvyj8RXL.js +12454 -0
  22. package/packages/main-app-framework/index-Bvyj8RXL.js.gz +0 -0
  23. package/packages/main-app-framework/index-CT9S8561.js +87 -0
  24. package/packages/main-app-framework/index-CT9S8561.js.gz +0 -0
  25. package/packages/main-app-framework/index-DOmUEjbK.js +10 -0
  26. package/packages/main-app-framework/index.js +7 -0
  27. package/packages/main-app-framework/style.css +1 -0
  28. package/packages/main-app-framework/style.css.gz +0 -0
  29. package/packages/micro-frontend/config.js +1 -0
  30. package/packages/micro-frontend/index.js +848 -0
  31. package/packages/micro-frontend/index.js.gz +0 -0
  32. package/packages/micro-frontend/style.css +1 -0
  33. package/packages/style/config.js +1 -0
  34. package/packages/style/index.js +5 -0
  35. package/packages/style/style.css +1 -0
  36. package/packages/style/style.css.gz +0 -0
  37. package/packages/theme/config.js +1 -0
  38. package/packages/theme/index.js +75 -0
  39. package/packages/theme/index.js.gz +0 -0
  40. package/style.css +7 -0
  41. package/style.css.gz +0 -0
  42. package/types/create-das-web-app/index.d.ts +9 -0
  43. package/types/create-das-web-app/plugins/index.d.ts +4 -0
  44. package/types/create-das-web-app/router/index.d.ts +5 -0
  45. package/types/create-das-web-app/store/index.d.ts +2 -0
  46. package/types/i18n/global.d.ts +583 -0
  47. package/types/i18n/index.d.ts +23 -0
  48. package/types/index.d.ts +6 -0
  49. package/types/layout/index.d.ts +5 -0
  50. package/types/layout/store/iframe-view.d.ts +12 -0
  51. package/types/layout/store/index.d.ts +75 -0
  52. package/types/layout/store/menu.d.ts +18 -0
  53. package/types/layout/store/nav.d.ts +27 -0
  54. package/types/layout/store/overlay.d.ts +5 -0
  55. package/types/layout/store/tab.d.ts +18 -0
  56. package/types/main-app-framework/business/alarm/api.d.ts +34 -0
  57. package/types/main-app-framework/business/alarm/components/hooks/use-handle-alarm.d.ts +7 -0
  58. package/types/main-app-framework/business/alarm/use-alarm.d.ts +12 -0
  59. package/types/main-app-framework/business/index.d.ts +4 -0
  60. package/types/main-app-framework/business/message-notify/index.d.ts +2 -0
  61. package/types/main-app-framework/business/remote-control/apis.d.ts +8 -0
  62. package/types/main-app-framework/business/remote-control/createServiceConnection.d.ts +3 -0
  63. package/types/main-app-framework/business/remote-control/index.d.ts +1 -0
  64. package/types/main-app-framework/business/remote-control/utils.d.ts +7 -0
  65. package/types/main-app-framework/business/video-link/api.d.ts +30 -0
  66. package/types/main-app-framework/business/video-link/index.d.ts +6 -0
  67. package/types/main-app-framework/business/video-link/open.d.ts +4 -0
  68. package/types/main-app-framework/business/video-link/video-dialog/hooks/PlayerProvider.d.ts +4 -0
  69. package/types/main-app-framework/business/video-link/video-dialog/hooks/index.d.ts +6 -0
  70. package/types/main-app-framework/components/entry-page-tip/index.d.ts +3 -0
  71. package/types/main-app-framework/components/entry-page-tip/src/index.d.ts +1 -0
  72. package/types/main-app-framework/components/entry-page-tip/src/open.d.ts +5 -0
  73. package/types/main-app-framework/components/entry-page-tip/theme/index.d.ts +6 -0
  74. package/types/main-app-framework/components/iframe-page/index.d.ts +3 -0
  75. package/types/main-app-framework/components/index.d.ts +4 -0
  76. package/types/main-app-framework/components/person-set-dialog/index.d.ts +4 -0
  77. package/types/main-app-framework/components/person-set-dialog/src/api.d.ts +6 -0
  78. package/types/main-app-framework/components/person-set-dialog/src/components/index.d.ts +3 -0
  79. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/api.d.ts +20 -0
  80. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-builtIn-dialog.d.ts +19 -0
  81. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-notBuiltIn-dialog.d.ts +22 -0
  82. package/types/main-app-framework/components/watermark/index.d.ts +3 -0
  83. package/types/main-app-framework/components/watermark/src/api.d.ts +1 -0
  84. package/types/main-app-framework/constant/index.d.ts +6 -0
  85. package/types/main-app-framework/data-track/api.d.ts +2 -0
  86. package/types/main-app-framework/data-track/index.d.ts +2 -0
  87. package/types/main-app-framework/i18n/index.d.ts +538 -0
  88. package/types/main-app-framework/index.d.ts +29 -0
  89. package/types/main-app-framework/init-config/get-manu-config/api.d.ts +4 -0
  90. package/types/main-app-framework/init-config/get-manu-config/getInstanceInfo.d.ts +1 -0
  91. package/types/main-app-framework/init-config/get-manu-config/index.d.ts +47 -0
  92. package/types/main-app-framework/init-config/get-nav-config/api.d.ts +4 -0
  93. package/types/main-app-framework/init-config/get-nav-config/index.d.ts +6 -0
  94. package/types/main-app-framework/init-config/get-project-config/api.d.ts +5 -0
  95. package/types/main-app-framework/init-config/get-project-config/index.d.ts +1 -0
  96. package/types/main-app-framework/init-config/get-system-config/api.d.ts +12 -0
  97. package/types/main-app-framework/init-config/get-system-config/index.d.ts +13 -0
  98. package/types/main-app-framework/init-config/get-tenant-config/api.d.ts +8 -0
  99. package/types/main-app-framework/init-config/get-tenant-config/index.d.ts +8 -0
  100. package/types/main-app-framework/init-config/index.d.ts +5 -0
  101. package/types/main-app-framework/init-layout/apis/index.d.ts +2 -0
  102. package/types/main-app-framework/init-layout/hooks/nav-slots/index.d.ts +5 -0
  103. package/types/main-app-framework/init-layout/hooks/nav-slots/use-ai-helper.d.ts +4 -0
  104. package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +8 -0
  105. package/types/main-app-framework/init-layout/hooks/nav-slots/use-project.d.ts +1 -0
  106. package/types/main-app-framework/init-layout/hooks/nav-slots/use-search.d.ts +4 -0
  107. package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +4 -0
  108. package/types/main-app-framework/init-layout/hooks/use-entry-app.d.ts +11 -0
  109. package/types/main-app-framework/init-layout/hooks/use-entry-menu.d.ts +7 -0
  110. package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +9 -0
  111. package/types/main-app-framework/init-layout/hooks/use-menu.d.ts +1 -0
  112. package/types/main-app-framework/init-layout/hooks/use-nav.d.ts +1 -0
  113. package/types/main-app-framework/init-layout/hooks/use-route-reload-unload.d.ts +4 -0
  114. package/types/main-app-framework/init-layout/hooks/use-route-watcher.d.ts +3 -0
  115. package/types/main-app-framework/init-layout/hooks/use-system-confirm.d.ts +1 -0
  116. package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +5 -0
  117. package/types/main-app-framework/init-layout/index.d.ts +11 -0
  118. package/types/main-app-framework/init-layout/store/index.d.ts +4 -0
  119. package/types/main-app-framework/init-platform/api.d.ts +2 -0
  120. package/types/main-app-framework/init-platform/index.d.ts +4 -0
  121. package/types/main-app-framework/micro-apps/index.d.ts +3 -0
  122. package/types/main-app-framework/micro-apps/use-device-panel-watcher.d.ts +1 -0
  123. package/types/main-app-framework/micro-apps/use-iot-watcher.d.ts +1 -0
  124. package/types/main-app-framework/micro-apps/use-user-info-watcher.d.ts +3 -0
  125. package/types/main-app-framework/pages/app/api.d.ts +2 -0
  126. package/types/main-app-framework/utils/index.d.ts +3 -0
  127. package/types/main-app-framework/utils/src/get-portal-url/crypto.d.ts +14 -0
  128. package/types/main-app-framework/utils/src/get-portal-url/encrypt.d.ts +42 -0
  129. package/types/main-app-framework/utils/src/get-portal-url/generate-url.d.ts +4 -0
  130. package/types/main-app-framework/utils/src/get-portal-url/handle-portal-params.d.ts +2 -0
  131. package/types/main-app-framework/utils/src/get-portal-url/index.d.ts +2 -0
  132. package/types/main-app-framework/utils/src/get-portal-url/type.d.ts +16 -0
  133. package/types/main-app-framework/utils/src/layout-confirm.d.ts +12 -0
  134. package/types/main-app-framework/utils/src/set-common-info.d.ts +66 -0
  135. package/types/main-app-framework/utils/src/tools.d.ts +5 -0
  136. package/types/micro-frontend/bus.d.ts +33 -0
  137. package/types/micro-frontend/index.d.ts +7 -0
  138. package/types/micro-frontend/store.d.ts +5 -0
  139. package/types/theme/index.d.ts +13 -0
@@ -0,0 +1,785 @@
1
+ import '@das-fed/upf-web/packages/layout/style.css';
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/upf-utils/common-tools/setHtmlMinWH";
5
+ import { createCeNav as ke, createCeTabs as Te, createCeMenu as Ae } from "@das-fed/upf-web-components/das-web-app";
6
+ import { flatTree as Ee } from "@das-fed/upf-utils/common-tools/nest-tree-format";
7
+ const h = z({
8
+ visible: !1,
9
+ theme: "default",
10
+ logo: "",
11
+ items: [],
12
+ projects: [],
13
+ userInfo: {},
14
+ config: {},
15
+ searchConfig: {},
16
+ // activeItem: '',
17
+ // activeProject: {},
18
+ eventListeners: {}
19
+ }), ve = {
20
+ show: () => {
21
+ h.visible = !0;
22
+ },
23
+ hide: () => {
24
+ h.visible = !1;
25
+ },
26
+ setLogo: (e) => {
27
+ h.logo = e;
28
+ },
29
+ setTheme: (e) => {
30
+ h.theme = e;
31
+ },
32
+ setItems: (e) => {
33
+ h.visible || (h.visible = !0), h.items = e;
34
+ },
35
+ getItems: () => h.items,
36
+ removeItem: (e) => {
37
+ const t = h.items.filter((n) => n.value !== e);
38
+ h.items = t;
39
+ },
40
+ appendItem: (e) => {
41
+ h.visible || (h.visible = !0), !h.items.find((n) => n.value == e.value) && h.items.push(e);
42
+ },
43
+ setActiveItem: (e) => {
44
+ h.activeItem = e;
45
+ },
46
+ setConfig: (e) => {
47
+ h.config = e;
48
+ },
49
+ setProjects: (e) => {
50
+ h.projects = e;
51
+ },
52
+ setProjectConfig: (e) => {
53
+ h.projectConfig = e;
54
+ },
55
+ setActiveProject: (e) => {
56
+ h.activeProject = e;
57
+ },
58
+ setUserInfo: (e) => {
59
+ h.userInfo = e;
60
+ },
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();
72
+ })
73
+ );
74
+ }
75
+ return Promise.all(r).then(() => !0).catch(() => !1);
76
+ },
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];
80
+ };
81
+ return h.eventListeners[n] = {
82
+ type: e,
83
+ handler: async (d) => {
84
+ try {
85
+ await t(d);
86
+ } catch (r) {
87
+ throw r;
88
+ }
89
+ },
90
+ remove: l
91
+ }, {
92
+ remove: l
93
+ };
94
+ }
95
+ }, R = z({
96
+ theme: "default",
97
+ items: [],
98
+ collapse: !1,
99
+ eventListeners: {}
100
+ }), de = {
101
+ setItems: (e) => {
102
+ R.items = e;
103
+ },
104
+ getItems: () => R.items,
105
+ setTheme: (e) => {
106
+ R.theme = e;
107
+ },
108
+ setActiveItem: (e) => {
109
+ R.activeItem = e;
110
+ },
111
+ setCollapse: (e) => {
112
+ R.collapse = e;
113
+ },
114
+ setPopupClassName: (e) => {
115
+ R.popupClassName = e;
116
+ },
117
+ triggerEventListener: (e, t, n) => {
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();
125
+ })
126
+ );
127
+ }
128
+ return Promise.all(r).then(() => !0).catch(() => !1);
129
+ },
130
+ addEventListener: (e, t) => {
131
+ const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
132
+ R.eventListeners[n] && delete R.eventListeners[n];
133
+ };
134
+ return R.eventListeners[n] = {
135
+ type: e,
136
+ handler: async (d) => {
137
+ try {
138
+ await t(d);
139
+ } catch (r) {
140
+ throw r;
141
+ }
142
+ },
143
+ remove: l
144
+ }, {
145
+ remove: l
146
+ };
147
+ }
148
+ }, k = z({
149
+ theme: "default",
150
+ items: [],
151
+ eventListeners: {}
152
+ }), me = {
153
+ setItems: (e) => {
154
+ k.items = e;
155
+ },
156
+ getItems: () => k.items,
157
+ setTheme: (e) => {
158
+ k.theme = e;
159
+ },
160
+ removeItem: (e) => {
161
+ const t = k.items.filter((n) => n.value !== e);
162
+ k.items = t;
163
+ },
164
+ appendItem: (e) => {
165
+ const t = k.items.findIndex((n) => n.value == e.value);
166
+ t !== -1 ? k.items.splice(t, 1, e) : k.items.push(e);
167
+ },
168
+ setActiveItem: (e) => {
169
+ k.activeItem = e;
170
+ },
171
+ triggerEventListener: (e, t, n) => {
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();
179
+ })
180
+ );
181
+ }
182
+ return Promise.all(r).then(() => !0).catch(() => !1);
183
+ },
184
+ addEventListener: (e, t) => {
185
+ const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
186
+ k.eventListeners[n] && delete k.eventListeners[n];
187
+ };
188
+ return k.eventListeners[n] = {
189
+ type: e,
190
+ handler: async (d) => {
191
+ try {
192
+ await t(d);
193
+ } catch (r) {
194
+ throw r;
195
+ }
196
+ },
197
+ remove: l
198
+ }, {
199
+ remove: l
200
+ };
201
+ }
202
+ }, K = z({
203
+ eventListeners: {}
204
+ }), Re = {
205
+ triggerEventListener: (e, t, n) => {
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();
213
+ })
214
+ );
215
+ }
216
+ return Promise.all(r).then(() => !0).catch(() => !1);
217
+ },
218
+ addEventListener: (e, t) => {
219
+ const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
220
+ K.eventListeners[n] && delete K.eventListeners[n];
221
+ };
222
+ return K.eventListeners[n] = {
223
+ type: e,
224
+ handler: async (d) => {
225
+ try {
226
+ await t(d);
227
+ } catch (r) {
228
+ throw r;
229
+ }
230
+ },
231
+ remove: l
232
+ }, {
233
+ remove: l
234
+ };
235
+ }
236
+ }, se = z({
237
+ visible: !1,
238
+ style: {}
239
+ }), Ve = {
240
+ set: (e, 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);
259
+ }
260
+ }, Pe = ["name"], Se = ["name"], De = /* @__PURE__ */ Q({
261
+ __name: "das-iframe-router-view",
262
+ props: {
263
+ needTransition: { type: Boolean },
264
+ transitionConfig: {},
265
+ exclude: { default: () => [] }
266
+ },
267
+ setup(e) {
268
+ const t = e, n = c(() => {
269
+ const { mode: s = "", ...a } = {
270
+ mode: "out-in",
271
+ "enter-active-class": "animate__animated animate__fadeInLeft",
272
+ ...t.transitionConfig || {}
273
+ };
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}`);
283
+ });
284
+ };
285
+ te(
286
+ () => t.exclude,
287
+ (s) => {
288
+ if (!s || !s.length) return;
289
+ const a = f.value.find((o) => s.includes(o.path));
290
+ a && y(a.meta.key);
291
+ },
292
+ { deep: !0 }
293
+ );
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 }
307
+ });
308
+ }
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 }));
317
+ };
318
+ let S = 0;
319
+ return te(
320
+ () => l.currentRoute.value,
321
+ () => {
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,
337
+ null,
338
+ [
339
+ s.needTransition ? (g(), V(
340
+ ge,
341
+ ne(ae({ key: 0 }, n.value)),
342
+ {
343
+ default: W(() => [
344
+ (g(!0), C(
345
+ Y,
346
+ null,
347
+ oe(f.value, ({ path: o, meta: m }) => D((g(), C("div", {
348
+ class: "das-iframe-router-view",
349
+ key: m.key,
350
+ name: o
351
+ }, [
352
+ (g(), V(O(m.componentInstance), {
353
+ key: m.key
354
+ }))
355
+ ], 8, Pe)), [
356
+ [M, m.componentInstance && o === b(d).path]
357
+ ])),
358
+ 128
359
+ /* KEYED_FRAGMENT */
360
+ ))
361
+ ]),
362
+ _: 1
363
+ /* STABLE */
364
+ },
365
+ 16
366
+ /* FULL_PROPS */
367
+ )) : L("v-if", !0),
368
+ s.needTransition ? L("v-if", !0) : (g(!0), C(
369
+ Y,
370
+ { key: 1 },
371
+ oe(f.value, ({ path: o, meta: m }) => D((g(), C("div", {
372
+ class: "das-iframe-router-view",
373
+ key: m.key,
374
+ name: o
375
+ }, [
376
+ (g(), V(O(m.componentInstance), {
377
+ key: m.key
378
+ }))
379
+ ], 8, Se)), [
380
+ [M, m.componentInstance && o === b(d).path]
381
+ ])),
382
+ 128
383
+ /* KEYED_FRAGMENT */
384
+ ))
385
+ ],
386
+ 64
387
+ /* STABLE_FRAGMENT */
388
+ ));
389
+ }
390
+ }), he = (e, t) => {
391
+ const n = e.__vccOpts || e;
392
+ for (const [l, d] of t)
393
+ n[l] = d;
394
+ return n;
395
+ }, Me = /* @__PURE__ */ he(De, [["__scopeId", "data-v-6dd310c9"]]), je = { class: "das-web-app-container" }, xe = {
396
+ key: 0,
397
+ class: "das-web-app-header"
398
+ }, $e = { class: "das-web-app-main" }, He = {
399
+ key: 0,
400
+ class: "aside"
401
+ }, Be = { class: "das-web-app-main-container" }, Fe = {
402
+ key: 0,
403
+ class: "tab"
404
+ }, Ne = { class: "das-web-app-main-content" }, Oe = { class: "banner" }, Ue = { class: "das-web-app-main-router-view" }, We = {
405
+ key: 0,
406
+ style: { width: "100%", height: "100%" }
407
+ }, Ke = {
408
+ key: 1,
409
+ style: { width: "100%", height: "100%" }
410
+ }, ze = { style: { width: "100%", height: "100%" } }, Qe = {
411
+ class: "micro-app",
412
+ style: { height: "100%", width: "100%" }
413
+ }, qe = /* @__PURE__ */ Q({
414
+ __name: "das-web-layout",
415
+ props: {
416
+ needTransition: { type: Boolean, default: !0 },
417
+ transitionConfig: {},
418
+ showLayout: { type: Boolean, default: !0 },
419
+ showAside: { type: Boolean, default: !0 },
420
+ showTabs: { type: Boolean, default: !0 },
421
+ routerViewVisible: { type: Boolean, default: !0 },
422
+ excludeRoutes: {},
423
+ routeKeepAliveVisible: { type: Boolean, default: !0 },
424
+ pageKey: { default: "0" }
425
+ },
426
+ setup(e) {
427
+ const t = e;
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(
435
+ () => [n.meta, n.query],
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;
446
+ }
447
+ );
448
+ const m = c(() => ({
449
+ mode: "out-in",
450
+ "enter-active-class": "animate__animated animate__fadeInLeft",
451
+ ...t.transitionConfig || {}
452
+ }));
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,
458
+ render() {
459
+ return ee("div", { style: { width: "100%", height: "100%" } }, [ee(_)]);
460
+ }
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(
467
+ "div",
468
+ {
469
+ class: we(["das-web-app-overlay", S.value]),
470
+ style: ye(s.value)
471
+ },
472
+ null,
473
+ 6
474
+ /* CLASS, STYLE */
475
+ ), [
476
+ [M, B.value]
477
+ ]),
478
+ f.value ? D((g(), C(
479
+ "div",
480
+ xe,
481
+ [
482
+ N(_.$slots, "header", {}, void 0, !0)
483
+ ],
484
+ 512
485
+ /* NEED_PATCH */
486
+ )), [
487
+ [M, B.value]
488
+ ]) : L("v-if", !0),
489
+ H("div", $e, [
490
+ y.value ? D((g(), C(
491
+ "div",
492
+ He,
493
+ [
494
+ N(_.$slots, "aside", {}, void 0, !0)
495
+ ],
496
+ 512
497
+ /* NEED_PATCH */
498
+ )), [
499
+ [M, B.value]
500
+ ]) : L("v-if", !0),
501
+ H("div", Be, [
502
+ i.value ? D((g(), C(
503
+ "div",
504
+ Fe,
505
+ [
506
+ N(_.$slots, "tab", {}, void 0, !0)
507
+ ],
508
+ 512
509
+ /* NEED_PATCH */
510
+ )), [
511
+ [M, B.value]
512
+ ]) : L("v-if", !0),
513
+ H("div", Ne, [
514
+ D(H(
515
+ "div",
516
+ Oe,
517
+ [
518
+ N(_.$slots, "banner", {}, void 0, !0)
519
+ ],
520
+ 512
521
+ /* NEED_PATCH */
522
+ ), [
523
+ [M, B.value]
524
+ ]),
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)), {
546
+ key: b(n).path
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]
616
+ ]),
617
+ D(H(
618
+ "div",
619
+ Qe,
620
+ [
621
+ N(_.$slots, "default", {}, void 0, !0)
622
+ ],
623
+ 512
624
+ /* NEED_PATCH */
625
+ ), [
626
+ [M, !P.value]
627
+ ])
628
+ ])
629
+ ])
630
+ ])
631
+ ])
632
+ ]);
633
+ };
634
+ }
635
+ }), st = /* @__PURE__ */ he(qe, [["__scopeId", "data-v-cc197012"]]), Ge = ["theme", "modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], at = /* @__PURE__ */ Q({
636
+ __name: "das-web-nav",
637
+ setup(e) {
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;
640
+ return {
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 }))
647
+ };
648
+ }), i = c(() => {
649
+ const u = r.value.find((p) => p.value === t.activeItem);
650
+ return {
651
+ activeInnerPagePath: (u == null ? void 0 : u.path) || "",
652
+ innerPages: r.value.map((p) => ({ title: p.label, ...p }))
653
+ };
654
+ }), P = c(() => ({
655
+ projectStore: {
656
+ projectTree: t.projects,
657
+ currentProject: t.activeProject
658
+ },
659
+ ...t.projectConfig
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");
686
+ };
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,
703
+ "on:changeInnerPage": 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
713
+ }, null, 40, Ge));
714
+ }
715
+ }), Je = ["theme", "modelValue", "data", "collapse", "fixedTopMenu", "subMenuAttrs"], rt = /* @__PURE__ */ Q({
716
+ __name: "das-web-menu",
717
+ props: {
718
+ menuAttr: {}
719
+ },
720
+ setup(e) {
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]);
726
+ };
727
+ return (s, a) => r.value.length > 0 ? (g(), C("das-ce-menu", ae({
728
+ key: 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);
739
+ }
740
+ }), Xe = ["theme", "modelValue", "options"], ot = /* @__PURE__ */ Q({
741
+ __name: "das-web-tabs",
742
+ props: {
743
+ tabsAttr: {}
744
+ },
745
+ setup(e) {
746
+ const { tab: t } = F, n = e, l = c(() => n.tabsAttr || {}), d = c(() => t.theme), r = c(() => t.items.map((s) => ({
747
+ ...s,
748
+ key: s.value,
749
+ tab: s.label
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");
762
+ };
763
+ return (s, a) => r.value.length > 0 ? (g(), C("das-ce-tabs", ae({
764
+ key: 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);
775
+ }
776
+ });
777
+ U("@das-fed/upf-web");
778
+ export {
779
+ st as DasWebLayout,
780
+ rt as DasWebMenu,
781
+ at as DasWebNav,
782
+ ot as DasWebTabs,
783
+ v as layout,
784
+ F as layoutData
785
+ };