@leafer-ui/event 1.12.1 → 1.12.3
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/package.json +3 -3
- package/src/MoveEvent.ts +4 -0
- package/src/UIEvent.ts +2 -0
- package/types/index.d.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer-ui/event",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.3",
|
|
4
4
|
"description": "@leafer-ui/event",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"leaferjs"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@leafer/core": "1.12.
|
|
25
|
+
"@leafer/core": "1.12.3"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@leafer/interface": "1.12.
|
|
28
|
+
"@leafer/interface": "1.12.3"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/src/MoveEvent.ts
CHANGED
|
@@ -10,7 +10,11 @@ export class MoveEvent extends DragEvent implements IMoveEvent {
|
|
|
10
10
|
|
|
11
11
|
static START = 'move.start'
|
|
12
12
|
static MOVE = 'move'
|
|
13
|
+
static DRAG_ANIMATE = 'move.drag_animate'
|
|
13
14
|
static END = 'move.end'
|
|
14
15
|
|
|
16
|
+
static PULL_DOWN = 'move.pull_down'
|
|
17
|
+
static REACH_BOTTOM = 'move.reach_bottom'
|
|
18
|
+
|
|
15
19
|
readonly moveType: 'drag' | 'move'
|
|
16
20
|
}
|
package/src/UIEvent.ts
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ declare class UIEvent extends Event implements IUIEvent {
|
|
|
18
18
|
readonly target: ILeaf;
|
|
19
19
|
readonly current: ILeaf;
|
|
20
20
|
readonly bubbles: boolean;
|
|
21
|
+
readonly time: number;
|
|
21
22
|
constructor(params: IUIEvent);
|
|
22
23
|
isHoldKeys(shortcutKeys?: IShortcutKeysCheck | IShortcutKeys): boolean;
|
|
23
24
|
getBoxPoint(relative?: ILeaf): IPointData;
|
|
@@ -106,7 +107,10 @@ declare class MoveEvent extends DragEvent implements IMoveEvent {
|
|
|
106
107
|
static BEFORE_MOVE: string;
|
|
107
108
|
static START: string;
|
|
108
109
|
static MOVE: string;
|
|
110
|
+
static DRAG_ANIMATE: string;
|
|
109
111
|
static END: string;
|
|
112
|
+
static PULL_DOWN: string;
|
|
113
|
+
static REACH_BOTTOM: string;
|
|
110
114
|
readonly moveType: 'drag' | 'move';
|
|
111
115
|
}
|
|
112
116
|
|