@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.
- package/dist/index.amd.js +195 -161
- package/dist/index.amd.js.map +1 -1
- package/dist/index.amd.min.js +1 -1
- package/dist/index.amd.min.js.map +1 -1
- package/dist/index.cjs.js +195 -161
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs.min.js +1 -1
- package/dist/index.cjs.min.js.map +1 -1
- package/dist/index.esm.js +195 -161
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.esm.min.js.map +1 -1
- package/dist/index.iife.js +195 -161
- package/dist/index.iife.js.map +1 -1
- package/dist/index.iife.min.js +1 -1
- package/dist/index.iife.min.js.map +1 -1
- package/dist/index.system.js +195 -161
- package/dist/index.system.js.map +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/dist/index.umd.js +195 -161
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/types/src/Pops.d.ts +60 -20968
- package/dist/types/src/components/alert/index.d.ts +1 -1
- package/dist/types/src/components/confirm/index.d.ts +1 -1
- package/dist/types/src/components/drawer/index.d.ts +1 -1
- package/dist/types/src/components/folder/index.d.ts +1 -1
- package/dist/types/src/components/iframe/index.d.ts +2 -2
- package/dist/types/src/components/iframe/types/index.d.ts +6 -6
- package/dist/types/src/components/loading/index.d.ts +1 -1
- package/dist/types/src/components/panel/index.d.ts +4 -4
- package/dist/types/src/components/prompt/index.d.ts +1 -1
- package/dist/types/src/components/rightClickMenu/index.d.ts +134 -20954
- package/dist/types/src/components/rightClickMenu/types/index.d.ts +17 -1
- package/dist/types/src/handler/PopsHandler.d.ts +18 -17
- package/dist/types/src/types/button.d.ts +4 -4
- package/dist/types/src/types/event.d.ts +7 -7
- package/dist/types/src/utils/PopsInstanceUtils.d.ts +8 -8
- package/package.json +12 -12
- package/src/components/alert/index.ts +13 -13
- package/src/components/confirm/index.ts +15 -16
- package/src/components/drawer/index.ts +22 -22
- package/src/components/folder/index.ts +14 -14
- package/src/components/iframe/index.ts +19 -20
- package/src/components/iframe/types/index.ts +6 -6
- package/src/components/loading/index.ts +8 -8
- package/src/components/panel/index.css +12 -1
- package/src/components/panel/index.ts +11 -11
- package/src/components/prompt/index.ts +28 -29
- package/src/components/rightClickMenu/config.ts +3 -0
- package/src/components/rightClickMenu/index.css +3 -0
- package/src/components/rightClickMenu/index.ts +51 -19
- package/src/components/rightClickMenu/types/index.ts +17 -1
- package/src/handler/PopsHandler.ts +70 -68
- package/src/types/button.d.ts +4 -4
- package/src/types/event.d.ts +7 -7
- 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").
|
|
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").
|
|
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").
|
|
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").
|
|
3
|
+
init(details: PopsFolderDetails): Omit<import("../../types/event").PopsEventConfig, "function" | "type">;
|
|
4
4
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
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<
|
|
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 {
|
|
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: (
|
|
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: (
|
|
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: (
|
|
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: (
|
|
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:
|
|
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").
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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").
|
|
3
|
+
init(details: PopsPromptDetails): Omit<import("../../types/event").PopsEventConfig, "function" | "type">;
|
|
4
4
|
};
|