@whitesev/pops 2.5.4 → 2.6.0

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 (59) hide show
  1. package/dist/index.amd.js +195 -161
  2. package/dist/index.amd.js.map +1 -1
  3. package/dist/index.amd.min.js +1 -1
  4. package/dist/index.amd.min.js.map +1 -1
  5. package/dist/index.cjs.js +195 -161
  6. package/dist/index.cjs.js.map +1 -1
  7. package/dist/index.cjs.min.js +1 -1
  8. package/dist/index.cjs.min.js.map +1 -1
  9. package/dist/index.esm.js +195 -161
  10. package/dist/index.esm.js.map +1 -1
  11. package/dist/index.esm.min.js +1 -1
  12. package/dist/index.esm.min.js.map +1 -1
  13. package/dist/index.iife.js +195 -161
  14. package/dist/index.iife.js.map +1 -1
  15. package/dist/index.iife.min.js +1 -1
  16. package/dist/index.iife.min.js.map +1 -1
  17. package/dist/index.system.js +195 -161
  18. package/dist/index.system.js.map +1 -1
  19. package/dist/index.system.min.js +1 -1
  20. package/dist/index.system.min.js.map +1 -1
  21. package/dist/index.umd.js +195 -161
  22. package/dist/index.umd.js.map +1 -1
  23. package/dist/index.umd.min.js +1 -1
  24. package/dist/index.umd.min.js.map +1 -1
  25. package/dist/types/src/Pops.d.ts +60 -20968
  26. package/dist/types/src/components/alert/index.d.ts +1 -1
  27. package/dist/types/src/components/confirm/index.d.ts +1 -1
  28. package/dist/types/src/components/drawer/index.d.ts +1 -1
  29. package/dist/types/src/components/folder/index.d.ts +1 -1
  30. package/dist/types/src/components/iframe/index.d.ts +2 -2
  31. package/dist/types/src/components/iframe/types/index.d.ts +6 -6
  32. package/dist/types/src/components/loading/index.d.ts +1 -1
  33. package/dist/types/src/components/panel/index.d.ts +4 -4
  34. package/dist/types/src/components/prompt/index.d.ts +1 -1
  35. package/dist/types/src/components/rightClickMenu/index.d.ts +134 -20954
  36. package/dist/types/src/components/rightClickMenu/types/index.d.ts +17 -1
  37. package/dist/types/src/handler/PopsHandler.d.ts +18 -17
  38. package/dist/types/src/types/button.d.ts +4 -4
  39. package/dist/types/src/types/event.d.ts +7 -7
  40. package/dist/types/src/utils/PopsInstanceUtils.d.ts +8 -8
  41. package/package.json +12 -12
  42. package/src/components/alert/index.ts +13 -13
  43. package/src/components/confirm/index.ts +15 -16
  44. package/src/components/drawer/index.ts +22 -22
  45. package/src/components/folder/index.ts +14 -14
  46. package/src/components/iframe/index.ts +19 -20
  47. package/src/components/iframe/types/index.ts +6 -6
  48. package/src/components/loading/index.ts +8 -8
  49. package/src/components/panel/index.css +12 -1
  50. package/src/components/panel/index.ts +11 -11
  51. package/src/components/prompt/index.ts +28 -29
  52. package/src/components/rightClickMenu/config.ts +3 -0
  53. package/src/components/rightClickMenu/index.css +3 -0
  54. package/src/components/rightClickMenu/index.ts +51 -19
  55. package/src/components/rightClickMenu/types/index.ts +17 -1
  56. package/src/handler/PopsHandler.ts +70 -68
  57. package/src/types/button.d.ts +4 -4
  58. package/src/types/event.d.ts +7 -7
  59. package/src/utils/PopsInstanceUtils.ts +28 -24
@@ -1,4 +1,4 @@
1
1
  import type { PopsAlertDetails } from "./types";
2
2
  export declare const PopsAlert: {
3
- init(details: PopsAlertDetails): Omit<import("../../types/event").PopsEventDetails, "function" | "type">;
3
+ init(details: PopsAlertDetails): Omit<import("../../types/event").PopsEventConfig, "function" | "type">;
4
4
  };
@@ -1,4 +1,4 @@
1
1
  import type { PopsConfirmDetails } from "./types";
2
2
  export declare const PopsConfirm: {
3
- init(details: PopsConfirmDetails): Omit<import("../../types/event").PopsEventDetails, "function" | "type">;
3
+ init(details: PopsConfirmDetails): Omit<import("../../types/event").PopsEventConfig, "function" | "type">;
4
4
  };
@@ -1,4 +1,4 @@
1
1
  import type { PopsDrawerDetails } from "./types";
2
2
  export declare const PopsDrawer: {
3
- init(details: PopsDrawerDetails): Omit<import("../../types/event").PopsEventDetails, "function" | "type">;
3
+ init(details: PopsDrawerDetails): Omit<import("../../types/event").PopsEventConfig, "function" | "type">;
4
4
  };
@@ -1,4 +1,4 @@
1
1
  import type { PopsFolderDetails } from "./types";
2
2
  export declare const PopsFolder: {
3
- init(details: PopsFolderDetails): Omit<import("../../types/event").PopsEventDetails, "function" | "type">;
3
+ init(details: PopsFolderDetails): Omit<import("../../types/event").PopsEventConfig, "function" | "type">;
4
4
  };
@@ -1,7 +1,7 @@
1
- import type { PopsEventDetails } from "../../types/event";
1
+ import type { PopsEventConfig } from "../../types/event";
2
2
  import type { PopsIframeDetails } from "./types";
3
3
  export declare const PopsIframe: {
4
- init(details: PopsIframeDetails): Omit<PopsEventDetails & {
4
+ init(details: PopsIframeDetails): Omit<PopsEventConfig & {
5
5
  iframeElement: HTMLIFrameElement;
6
6
  }, "function" | "type">;
7
7
  };
@@ -1,5 +1,5 @@
1
1
  import type { PopsTitleConfig, PopsDragConfig, PopsCommonConfig } from "../../../types/components";
2
- import type { PopsEventDetails } from "../../../types/event";
2
+ import type { PopsEventConfig } from "../../../types/event";
3
3
  /**
4
4
  * pops.iframe的按钮的点击回调参数event
5
5
  */
@@ -61,7 +61,7 @@ export interface PopsIframeDetails extends PopsTitleConfig, PopsDragConfig, Pops
61
61
  /**
62
62
  * 点击的回调函数
63
63
  */
64
- callback: (eventDetails: PopsEventDetails & {
64
+ callback: (eventConfig: PopsEventConfig & {
65
65
  iframeElement: HTMLIFrameElement;
66
66
  }, event: MouseEvent | PointerEvent) => void;
67
67
  };
@@ -72,7 +72,7 @@ export interface PopsIframeDetails extends PopsTitleConfig, PopsDragConfig, Pops
72
72
  /**
73
73
  * 点击的回调函数
74
74
  */
75
- callback: (eventDetails: PopsEventDetails & {
75
+ callback: (eventConfig: PopsEventConfig & {
76
76
  iframeElement: HTMLIFrameElement;
77
77
  }, event: MouseEvent | PointerEvent) => void;
78
78
  };
@@ -83,7 +83,7 @@ export interface PopsIframeDetails extends PopsTitleConfig, PopsDragConfig, Pops
83
83
  /**
84
84
  * 点击的回调函数
85
85
  */
86
- callback: (eventDetails: PopsEventDetails & {
86
+ callback: (eventConfig: PopsEventConfig & {
87
87
  iframeElement: HTMLIFrameElement;
88
88
  }, event: MouseEvent | PointerEvent) => void;
89
89
  };
@@ -94,7 +94,7 @@ export interface PopsIframeDetails extends PopsTitleConfig, PopsDragConfig, Pops
94
94
  /**
95
95
  * 点击的回调函数
96
96
  */
97
- callback: (eventDetails: PopsEventDetails & {
97
+ callback: (eventConfig: PopsEventConfig & {
98
98
  iframeElement: HTMLIFrameElement;
99
99
  }, event: MouseEvent | PointerEvent) => void;
100
100
  };
@@ -116,7 +116,7 @@ export interface PopsIframeDetails extends PopsTitleConfig, PopsDragConfig, Pops
116
116
  /**
117
117
  * 加载完毕的回调
118
118
  */
119
- loadEndCallBack?: (details: PopsEventDetails & {
119
+ loadEndCallBack?: (details: PopsEventConfig & {
120
120
  iframeElement: HTMLIFrameElement;
121
121
  }) => void;
122
122
  }
@@ -1,4 +1,4 @@
1
1
  import type { PopsLoadingDetails } from "./types";
2
2
  export declare const PopsLoading: {
3
- init(details: PopsLoadingDetails): Omit<Omit<import("../../types/event").PopsEventDetails, "$shadowContainer" | "$shadowRoot">, "function" | "type">;
3
+ init(details: PopsLoadingDetails): Omit<Omit<import("../../types/event").PopsEventConfig, "$shadowContainer" | "$shadowRoot">, "function" | "type">;
4
4
  };
@@ -10,10 +10,10 @@ export declare const PopsPanel: {
10
10
  guid: string;
11
11
  $shadowContainer: HTMLDivElement;
12
12
  $shadowRoot: ShadowRoot | HTMLElement;
13
- element: HTMLDivElement;
14
- animElement: HTMLDivElement;
15
- popsElement: HTMLDivElement;
16
- maskElement?: HTMLDivElement | undefined;
13
+ $el: HTMLDivElement;
14
+ $anim: HTMLDivElement;
15
+ $pops: HTMLDivElement;
16
+ $mask?: HTMLDivElement | undefined;
17
17
  mode: PopsType;
18
18
  };
19
19
  };
@@ -1,4 +1,4 @@
1
1
  import type { PopsPromptDetails } from "./types/index";
2
2
  export declare const PopsPrompt: {
3
- init(details: PopsPromptDetails): Omit<import("../../types/event").PopsEventDetails, "function" | "type">;
3
+ init(details: PopsPromptDetails): Omit<import("../../types/event").PopsEventConfig, "function" | "type">;
4
4
  };