@das-fed/web 6.3.0-beta.8 → 6.4.0-beta.1

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 (108) hide show
  1. package/esm-map.json +10 -9
  2. package/index-CTiS2AQx.js +68 -0
  3. package/index-CTiS2AQx.js.gz +0 -0
  4. package/index-DZPzbqdK.js +10 -0
  5. package/index-DjsZCo03.js +70 -0
  6. package/index-DjsZCo03.js.gz +0 -0
  7. package/index-LVjuqzoG.js +11086 -0
  8. package/index-LVjuqzoG.js.gz +0 -0
  9. package/index.js +27 -2202
  10. package/package.json +11 -7
  11. package/packages/create-das-web-app/index.js +307 -289
  12. package/packages/create-das-web-app/index.js.gz +0 -0
  13. package/packages/i18n/index.js +29 -30
  14. package/packages/i18n/index.js.gz +0 -0
  15. package/packages/layout/index.js +302 -290
  16. package/packages/layout/index.js.gz +0 -0
  17. package/packages/layout/style.css +1 -1
  18. package/packages/layout/style.css.gz +0 -0
  19. package/packages/main-app-framework/index-2WWk8ggi.js +9022 -0
  20. package/packages/main-app-framework/index-2WWk8ggi.js.gz +0 -0
  21. package/packages/main-app-framework/index-BqkWKMMe.js +70 -0
  22. package/packages/main-app-framework/index-BqkWKMMe.js.gz +0 -0
  23. package/packages/main-app-framework/index-CRT8yHn-.js +10 -0
  24. package/packages/main-app-framework/index-Twj2RXRy.js +68 -0
  25. package/packages/main-app-framework/index-Twj2RXRy.js.gz +0 -0
  26. package/packages/main-app-framework/index.js +5 -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/index.js +174 -170
  30. package/packages/micro-frontend/index.js.gz +0 -0
  31. package/packages/style/index.js +5 -2
  32. package/packages/theme/index.js +38 -39
  33. package/packages/theme/index.js.gz +0 -0
  34. package/style.css +1 -1
  35. package/style.css.gz +0 -0
  36. package/types/create-das-web-app/index.d.ts +1 -1
  37. package/types/create-das-web-app/router/index.d.ts +2 -1
  38. package/types/i18n/index.d.ts +2 -2
  39. package/types/index.d.ts +1 -0
  40. package/types/layout/store/index.d.ts +1 -1
  41. package/types/main-app-framework/business/alarm/api.d.ts +34 -0
  42. package/types/main-app-framework/business/alarm/components/hooks/use-handle-alarm.d.ts +7 -0
  43. package/types/main-app-framework/business/alarm/use-alarm.d.ts +12 -0
  44. package/types/main-app-framework/business/index.d.ts +4 -0
  45. package/types/main-app-framework/business/message-notify/index.d.ts +1 -0
  46. package/types/main-app-framework/business/remote-control/apis.d.ts +6 -0
  47. package/types/main-app-framework/business/remote-control/createServiceConnection.d.ts +3 -0
  48. package/types/main-app-framework/business/remote-control/index.d.ts +1 -0
  49. package/types/main-app-framework/business/video-link/api.d.ts +28 -0
  50. package/types/main-app-framework/business/video-link/index.d.ts +6 -0
  51. package/types/main-app-framework/business/video-link/open.d.ts +4 -0
  52. package/types/main-app-framework/business/video-link/video-dialog/hooks/PlayerProvider.d.ts +4 -0
  53. package/types/main-app-framework/business/video-link/video-dialog/hooks/index.d.ts +6 -0
  54. package/types/main-app-framework/components/entry-page-tip/index.d.ts +3 -0
  55. package/types/main-app-framework/components/entry-page-tip/src/index.d.ts +1 -0
  56. package/types/main-app-framework/components/entry-page-tip/src/open.d.ts +5 -0
  57. package/types/main-app-framework/components/entry-page-tip/theme/index.d.ts +6 -0
  58. package/types/main-app-framework/components/index.d.ts +3 -0
  59. package/types/main-app-framework/components/person-set-dialog/index.d.ts +4 -0
  60. package/types/main-app-framework/components/person-set-dialog/src/api.d.ts +2 -0
  61. package/types/main-app-framework/components/watermark/index.d.ts +3 -0
  62. package/types/main-app-framework/components/watermark/src/api.d.ts +1 -0
  63. package/types/main-app-framework/constant/index.d.ts +6 -0
  64. package/types/main-app-framework/index.d.ts +28 -0
  65. package/types/main-app-framework/init-config/get-manu-config/api.d.ts +4 -0
  66. package/types/main-app-framework/init-config/get-manu-config/getInstanceInfo.d.ts +1 -0
  67. package/types/main-app-framework/init-config/get-manu-config/index.d.ts +47 -0
  68. package/types/main-app-framework/init-config/get-nav-config/api.d.ts +2 -0
  69. package/types/main-app-framework/init-config/get-nav-config/index.d.ts +4 -0
  70. package/types/main-app-framework/init-config/get-project-config/api.d.ts +4 -0
  71. package/types/main-app-framework/init-config/get-project-config/index.d.ts +1 -0
  72. package/types/main-app-framework/init-config/get-system-config/api.d.ts +8 -0
  73. package/types/main-app-framework/init-config/get-system-config/index.d.ts +11 -0
  74. package/types/main-app-framework/init-config/get-tenant-config/api.d.ts +6 -0
  75. package/types/main-app-framework/init-config/get-tenant-config/index.d.ts +6 -0
  76. package/types/main-app-framework/init-config/index.d.ts +5 -0
  77. package/types/main-app-framework/init-layout/apis/index.d.ts +2 -0
  78. package/types/main-app-framework/init-layout/hooks/nav-slots/index.d.ts +4 -0
  79. package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +8 -0
  80. package/types/main-app-framework/init-layout/hooks/nav-slots/use-project.d.ts +1 -0
  81. package/types/main-app-framework/init-layout/hooks/nav-slots/use-search.d.ts +4 -0
  82. package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +4 -0
  83. package/types/main-app-framework/init-layout/hooks/use-entry-app.d.ts +11 -0
  84. package/types/main-app-framework/init-layout/hooks/use-entry-menu.d.ts +7 -0
  85. package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +8 -0
  86. package/types/main-app-framework/init-layout/hooks/use-menu.d.ts +1 -0
  87. package/types/main-app-framework/init-layout/hooks/use-nav.d.ts +1 -0
  88. package/types/main-app-framework/init-layout/hooks/use-route-reload-unload.d.ts +4 -0
  89. package/types/main-app-framework/init-layout/hooks/use-route-watcher.d.ts +3 -0
  90. package/types/main-app-framework/init-layout/hooks/use-system-confirm.d.ts +1 -0
  91. package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +5 -0
  92. package/types/main-app-framework/init-layout/index.d.ts +11 -0
  93. package/types/main-app-framework/init-layout/store/index.d.ts +4 -0
  94. package/types/main-app-framework/init-platform/api.d.ts +2 -0
  95. package/types/main-app-framework/init-platform/index.d.ts +4 -0
  96. package/types/main-app-framework/micro-apps/index.d.ts +3 -0
  97. package/types/main-app-framework/micro-apps/use-device-panel-watcher.d.ts +1 -0
  98. package/types/main-app-framework/micro-apps/use-iot-watcher.d.ts +1 -0
  99. package/types/main-app-framework/micro-apps/use-user-info-watcher.d.ts +3 -0
  100. package/types/main-app-framework/pages/app/api.d.ts +2 -0
  101. package/types/main-app-framework/utils/index.d.ts +3 -0
  102. package/types/main-app-framework/utils/src/layout-confirm.d.ts +12 -0
  103. package/types/main-app-framework/utils/src/set-common-info.d.ts +62 -0
  104. package/types/main-app-framework/utils/src/tools.d.ts +1 -0
  105. package/types/micro-frontend/store.d.ts +5 -5
  106. package/types/theme/index.d.ts +1 -1
  107. package/index.js.gz +0 -0
  108. package/types/create-das-web-app/get-global-config.d.ts +0 -2
@@ -1,35 +1,34 @@
1
- import { reactive as i, ref as f, computed as g } from "vue";
2
- const r = i({}), u = i({}), s = f("zh-CN"), b = "dasI18n", l = (n, e) => {
3
- const t = e === "global", o = !t;
4
- for (const a in n)
5
- t && (u[a] = n[a]), o && (r[a] = n[a]);
6
- }, h = async (n) => {
7
- var o;
8
- const e = window[b];
9
- e && l(e, "global");
10
- const t = (o = n == null ? void 0 : n.i18n) == null ? void 0 : o.glob;
11
- if (t) {
12
- const a = Object.values(t).filter((c) => !!c).flat();
13
- for (const c of a)
14
- l(c);
15
- }
16
- }, m = (n, ...e) => g(() => {
17
- const t = u[n] || r[n] || n;
1
+ import { reactive as r, ref as b, computed as f } from "vue";
2
+ const g = r({}), u = r({}), l = b("zh-CN"), m = "dasI18n", i = (n, s) => {
3
+ const t = s === "global", a = !t;
4
+ for (const e in n)
5
+ t && (u[e] = n[e]), a && (g[e] = n[e]);
6
+ }, z = async (n) => {
7
+ var a, e;
8
+ const s = window[m];
9
+ s && i(s, "global");
10
+ let t = Object.assign(((a = n == null ? void 0 : n.i18n) == null ? void 0 : a.glob) || {});
11
+ (e = n == null ? void 0 : n.microApps) == null || e.map((c) => {
12
+ var o;
13
+ t = Object.assign(t, ((o = c.i18n) == null ? void 0 : o.glob) || {});
14
+ }), Object.values(t).filter((c) => !!c).flat().map((c) => i(c));
15
+ }, I = (n, ...s) => f(() => {
16
+ const t = u[n] || g[n] || n;
18
17
  if (t === n) return n;
19
- let o = t[s.value];
20
- return s.value === "zh-CN" && t["zh-cn"] && !t["zh-CN"] && (o = t["zh-cn"]), e.map((a, c) => {
21
- o = o.replace(`$${c}`, a);
22
- }), o;
23
- }), I = m, z = (n, ...e) => I(n, ...e).value, L = (n) => {
24
- s.value = n;
25
- }, C = () => s;
18
+ let a = t[l.value];
19
+ return l.value === "zh-CN" && t["zh-cn"] && !t["zh-CN"] && (a = t["zh-cn"]), s.map((e, c) => {
20
+ a = a.replace(`$${c}`, e);
21
+ }), a;
22
+ }), v = I, D = (n, ...s) => v(n, ...s).value, L = (n) => {
23
+ l.value = n;
24
+ }, C = () => l;
26
25
  export {
27
- s as currentLang,
28
- m as getI18nRule,
26
+ l as currentLang,
27
+ I as getI18nRule,
29
28
  C as getLang,
30
- I as i18n,
31
- h as initI18n,
32
- l as setI18nRule,
29
+ v as i18n,
30
+ z as initI18n,
31
+ i as setI18nRule,
33
32
  L as setLang,
34
- z as t
33
+ D as t
35
34
  };
Binary file