@das-fed/web 6.3.0-beta.0 → 6.3.0-beta.10

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 (40) hide show
  1. package/esm-map.json +27 -0
  2. package/index.js +2078 -9818
  3. package/index.js.gz +0 -0
  4. package/package.json +32 -16
  5. package/packages/create-das-web-app/index.js +799 -0
  6. package/packages/create-das-web-app/index.js.gz +0 -0
  7. package/packages/i18n/index.js +35 -0
  8. package/packages/layout/index.js +736 -0
  9. package/packages/layout/index.js.gz +0 -0
  10. package/packages/layout/style.css +7 -0
  11. package/packages/layout/style.css.gz +0 -0
  12. package/packages/micro-frontend/index.js +820 -0
  13. package/packages/micro-frontend/index.js.gz +0 -0
  14. package/packages/micro-frontend/style.css +1 -0
  15. package/packages/style/index.js +2 -0
  16. package/packages/style/style.css +1 -0
  17. package/packages/style/style.css.gz +0 -0
  18. package/packages/theme/index.js +76 -0
  19. package/packages/theme/index.js.gz +0 -0
  20. package/style.css +2 -2
  21. package/style.css.gz +0 -0
  22. package/types/create-das-web-app/get-global-config.d.ts +2 -0
  23. package/types/create-das-web-app/index.d.ts +9 -0
  24. package/types/create-das-web-app/plugins/index.d.ts +4 -0
  25. package/types/create-das-web-app/router/index.d.ts +4 -0
  26. package/types/create-das-web-app/store/index.d.ts +2 -0
  27. package/types/i18n/index.d.ts +21 -0
  28. package/types/index.d.ts +5 -0
  29. package/types/layout/index.d.ts +5 -0
  30. package/types/layout/store/iframe-view.d.ts +12 -0
  31. package/types/layout/store/index.d.ts +70 -0
  32. package/types/layout/store/menu.d.ts +16 -0
  33. package/types/layout/store/nav.d.ts +26 -0
  34. package/types/layout/store/overlay.d.ts +5 -0
  35. package/types/layout/store/tab.d.ts +17 -0
  36. package/types/micro-frontend/bus.d.ts +33 -0
  37. package/types/micro-frontend/index.d.ts +7 -0
  38. package/types/micro-frontend/store.d.ts +5 -0
  39. package/types/theme/index.d.ts +13 -0
  40. package/index.umd.cjs +0 -41
@@ -0,0 +1,16 @@
1
+ import { MenuEventType, MenuItem } from './type';
2
+
3
+ declare const menuData: any;
4
+ declare const menu: {
5
+ setItems: (menuItems: MenuItem[]) => void;
6
+ getItems: () => any;
7
+ setActiveItem: (value: string) => void;
8
+ setPopupClassName: (value: string) => void;
9
+ triggerEventListener: (type: MenuEventType, payload?: any, options?: {
10
+ autoRemove?: boolean;
11
+ }) => any;
12
+ addEventListener: (type: MenuEventType, cb: any) => {
13
+ remove: () => void;
14
+ };
15
+ };
16
+ export { menuData, menu };
@@ -0,0 +1,26 @@
1
+ import { NavMenuItem, NavEventType, NavConfig, NavSearchConfig, NavProjectItem, NavProjectConfig, NavUserInfo } from './type';
2
+
3
+ declare const navData: any;
4
+ declare const nav: {
5
+ show: () => void;
6
+ hide: () => void;
7
+ setLogo: (value: any) => void;
8
+ setItems: (value: NavMenuItem[]) => void;
9
+ getItems: () => any;
10
+ removeItem: (value: string) => void;
11
+ appendItem: (navItem: NavMenuItem) => void;
12
+ setActiveItem: (value: string) => void;
13
+ setConfig: (value: NavConfig) => void;
14
+ setProjects: (value: NavProjectItem[]) => void;
15
+ setProjectConfig: (value: NavProjectConfig) => void;
16
+ setActiveProject: (value: NavProjectItem) => void;
17
+ setUserInfo: (value: NavUserInfo) => void;
18
+ setSearchConfig: (value: NavSearchConfig) => void;
19
+ triggerEventListener: (type: NavEventType, payload?: any, options?: {
20
+ autoRemove?: boolean;
21
+ }) => any;
22
+ addEventListener: (type: NavEventType, cb: any) => {
23
+ remove: () => void;
24
+ };
25
+ };
26
+ export { navData, nav };
@@ -0,0 +1,5 @@
1
+ declare const overlayData: any;
2
+ declare const overlay: {
3
+ set: (visible: true | false | "destroy", style?: any) => void;
4
+ };
5
+ export { overlayData, overlay };
@@ -0,0 +1,17 @@
1
+ import { TabEventType, TabItem } from './type';
2
+
3
+ declare const tabData: any;
4
+ declare const tab: {
5
+ setItems: (items: TabItem[]) => void;
6
+ getItems: () => any;
7
+ removeItem: (value: string) => void;
8
+ appendItem: (tabItem: TabItem) => void;
9
+ setActiveItem: (value: string) => void;
10
+ triggerEventListener: (type: TabEventType, payload?: any, options?: {
11
+ autoRemove?: boolean;
12
+ }) => any;
13
+ addEventListener: (type: TabEventType, cb: any) => {
14
+ remove: () => void;
15
+ };
16
+ };
17
+ export { tabData, tab };
@@ -0,0 +1,33 @@
1
+ import { Router } from 'vue-router';
2
+ import { SendMessageToMainApp, SendMessageToMicroApp, AddEventListenerFromMainApp, AddEventListenerFromMicroApp } from './type';
3
+
4
+ declare const microFrontend: {
5
+ loadMicroApp: (name: string) => void;
6
+ hideMicroApp: (name: string) => any;
7
+ hideAllMicroApp: () => void;
8
+ unloadMicroApp: (name: string) => void;
9
+ unloadAllMicroApp: () => void;
10
+ setMicroAppRoute: (router: Router, name: string, route: any) => Promise<any>;
11
+ sendMessageToMicroApp: SendMessageToMicroApp;
12
+ sendMessageToMainApp: SendMessageToMainApp;
13
+ addEventListenerFromMainApp: AddEventListenerFromMainApp;
14
+ addEventListenerFromMicroApp: AddEventListenerFromMicroApp;
15
+ setMainAppOverlay: (visible: boolean, style?: any) => void;
16
+ sessionStorage: {
17
+ key: any;
18
+ getItem: any;
19
+ setItem: (key: string, value: string) => void;
20
+ removeItem: (key: string) => void;
21
+ clear: () => void;
22
+ };
23
+ addMicroAppLifeCycleListener: (type: "onLoaded" | "onActivated" | "onDeactivated", cb: any) => {
24
+ remove: () => void;
25
+ };
26
+ triggerMicroAppLifeCycleListener: (type: "onLoaded" | "onActivated" | "onDeactivated", payload?: any, options?: {
27
+ autoRemove?: boolean;
28
+ }) => void;
29
+ reloadMicroAppRoute: (name: string, path: string) => any;
30
+ unloadMicroAppRoute: (name: string, path: string) => any;
31
+ setMainAppLayoutVisible: (value: boolean) => void;
32
+ };
33
+ export { microFrontend };
@@ -0,0 +1,7 @@
1
+ import { default as DasMainAppLayout } from './das-main-app-layout.vue';
2
+ import { microFrontend } from './bus';
3
+ import { Router } from 'vue-router';
4
+
5
+ declare const initMainApp: (options?: any, router?: Router) => void;
6
+ declare const initMicroApp: (options?: any, router?: Router) => void;
7
+ export { initMainApp, initMicroApp, microFrontend, DasMainAppLayout };
@@ -0,0 +1,5 @@
1
+ export declare const microAppRouterPrefix: import('vue').Ref<any>;
2
+ export declare const microApps: import('vue').Ref<any>;
3
+ export declare const microAppVisible: import('vue').Ref<any>;
4
+ export declare const excludeRoutes: import('vue').Ref<any>;
5
+ export declare const routeKeepAliveVisible: import('vue').Ref<any>;
@@ -0,0 +1,13 @@
1
+ declare const currentTheme: import('vue').Ref<any>;
2
+ declare const setThemeRule: (data: any, type?: "global" | "custom") => void;
3
+ declare const initTheme: (opt?: any) => any;
4
+ declare const setTheme: (value: string) => void;
5
+ /** 获取css var实际值 */
6
+ declare const getThemeRule: (key: string) => import('vue').ComputedRef<any>;
7
+ /** 获取css var字符串 */
8
+ declare const getVar: (key: string) => string;
9
+ /** 获取css var实际值 */
10
+ declare const getVarValue: (key: string) => import('vue').ComputedRef<any>;
11
+ export { initTheme, setTheme, getThemeRule, currentTheme, setThemeRule, getVar, getVarValue };
12
+ declare const _default: {};
13
+ export default _default;