jpf 3.0.21 → 4.0.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/View.d.ts +29 -0
- package/dist/View.js +96 -0
- package/dist/View.js.map +1 -0
- package/dist/ViewModel.d.ts +61 -0
- package/dist/ViewModel.js +404 -0
- package/dist/ViewModel.js.map +1 -0
- package/dist/attributes.d.ts +37 -0
- package/dist/attributes.js +3 -0
- package/dist/attributes.js.map +1 -0
- package/dist/event.d.ts +59 -0
- package/dist/event.js +29 -0
- package/dist/event.js.map +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/style.d.ts +330 -329
- package/dist/style.js +9 -1
- package/dist/style.js.map +1 -1
- package/dist/types.d.ts +1 -3
- package/dist/userAgent.js +6 -9
- package/dist/userAgent.js.map +1 -1
- package/package.json +12 -9
- package/dist/eventListener.d.ts +0 -30
- package/dist/eventListener.js +0 -13
- package/dist/eventListener.js.map +0 -1
- package/dist/uiElement.d.ts +0 -89
- package/dist/uiElement.js +0 -631
- package/dist/uiElement.js.map +0 -1
package/dist/event.d.ts
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export declare const mouseEvents: {
|
|
2
|
+
contextmenu: boolean;
|
|
3
|
+
mousedown: boolean;
|
|
4
|
+
mouseenter: boolean;
|
|
5
|
+
mouseleave: boolean;
|
|
6
|
+
mousemove: boolean;
|
|
7
|
+
mouseout: boolean;
|
|
8
|
+
mouseover: boolean;
|
|
9
|
+
mouseup: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const touchEvents: {
|
|
12
|
+
touchcancel: boolean;
|
|
13
|
+
touchend: boolean;
|
|
14
|
+
touchmove: boolean;
|
|
15
|
+
touchstart: boolean;
|
|
16
|
+
longtap: boolean;
|
|
17
|
+
swipeleft: boolean;
|
|
18
|
+
swiperight: boolean;
|
|
19
|
+
swipeup: boolean;
|
|
20
|
+
swipedown: boolean;
|
|
21
|
+
};
|
|
22
|
+
export declare function isGlobalEvent(event: keyof UiElementEventMap): boolean;
|
|
23
|
+
export interface UiElementEventMap extends HTMLElementEventMap {
|
|
24
|
+
"tap": Event;
|
|
25
|
+
"dbltap": Event;
|
|
26
|
+
"longtap": Event;
|
|
27
|
+
"swipeleft": Event;
|
|
28
|
+
"swiperight": Event;
|
|
29
|
+
"swipeup": Event;
|
|
30
|
+
"swipedown": Event;
|
|
31
|
+
"textInput": Event;
|
|
32
|
+
}
|
|
33
|
+
interface IMouseEventListener extends IEventListener {
|
|
34
|
+
listener: (event: MouseEvent) => void;
|
|
35
|
+
}
|
|
36
|
+
interface IFocusEventListener extends IEventListener {
|
|
37
|
+
listener: (event: FocusEvent) => void;
|
|
38
|
+
}
|
|
39
|
+
export interface IGenericEventListener extends IEventListener {
|
|
40
|
+
listener: (event: Event) => void;
|
|
41
|
+
}
|
|
42
|
+
interface IEventListener {
|
|
43
|
+
options?: IEventListenerOptions;
|
|
44
|
+
}
|
|
45
|
+
export interface EventListeners {
|
|
46
|
+
click?: IMouseEventListener;
|
|
47
|
+
focusout?: IFocusEventListener;
|
|
48
|
+
}
|
|
49
|
+
declare type EventKey = "Enter" | "ArrowDown" | "ArrowUp" | "ArrowLeft" | "ArrowRight";
|
|
50
|
+
export interface IEventListenerOptions extends AddEventListenerOptions {
|
|
51
|
+
eventKey?: EventKey;
|
|
52
|
+
altKey?: boolean;
|
|
53
|
+
shiftKey?: boolean;
|
|
54
|
+
ctrlKey?: boolean;
|
|
55
|
+
mouseLeft?: boolean;
|
|
56
|
+
mouseMiddle?: boolean;
|
|
57
|
+
mouseRight?: boolean;
|
|
58
|
+
}
|
|
59
|
+
export {};
|
package/dist/event.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isGlobalEvent = exports.touchEvents = exports.mouseEvents = void 0;
|
|
4
|
+
exports.mouseEvents = {
|
|
5
|
+
contextmenu: true,
|
|
6
|
+
mousedown: true,
|
|
7
|
+
mouseenter: true,
|
|
8
|
+
mouseleave: true,
|
|
9
|
+
mousemove: true,
|
|
10
|
+
mouseout: true,
|
|
11
|
+
mouseover: true,
|
|
12
|
+
mouseup: true
|
|
13
|
+
};
|
|
14
|
+
exports.touchEvents = {
|
|
15
|
+
touchcancel: true,
|
|
16
|
+
touchend: true,
|
|
17
|
+
touchmove: true,
|
|
18
|
+
touchstart: true,
|
|
19
|
+
longtap: true,
|
|
20
|
+
swipeleft: true,
|
|
21
|
+
swiperight: true,
|
|
22
|
+
swipeup: true,
|
|
23
|
+
swipedown: true
|
|
24
|
+
};
|
|
25
|
+
function isGlobalEvent(event) {
|
|
26
|
+
return !(exports.mouseEvents[event] || exports.touchEvents[event]);
|
|
27
|
+
}
|
|
28
|
+
exports.isGlobalEvent = isGlobalEvent;
|
|
29
|
+
//# sourceMappingURL=event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event.js","sourceRoot":"","sources":["../src/event.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IACvB,WAAW,EAAE,IAAI;IACjB,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,IAAI;IACf,OAAO,EAAE,IAAI;CAChB,CAAC;AAEW,QAAA,WAAW,GAAG;IACvB,WAAW,EAAE,IAAI;IACjB,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,IAAI;CAClB,CAAC;AAEF,SAAgB,aAAa,CAAC,KAA8B;IACxD,OAAO,CAAC,CAAC,mBAAW,CAAC,KAAK,CAAC,IAAI,mBAAW,CAAC,KAAK,CAAC,CAAC,CAAC;AACvD,CAAC;AAFD,sCAEC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as Types from "./types";
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
2
|
+
export * from "./attributes";
|
|
3
|
+
export * from "./event";
|
|
4
|
+
export * from "./View";
|
|
4
5
|
export * from "./style";
|
|
5
6
|
export { userAgent } from "./userAgent";
|
|
6
7
|
export { Types };
|
package/dist/index.js
CHANGED
|
@@ -11,10 +11,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.Types = exports.userAgent = void 0;
|
|
14
|
-
|
|
14
|
+
const Types = require("./types");
|
|
15
15
|
exports.Types = Types;
|
|
16
|
-
__exportStar(require("./
|
|
17
|
-
__exportStar(require("./
|
|
16
|
+
__exportStar(require("./attributes"), exports);
|
|
17
|
+
__exportStar(require("./event"), exports);
|
|
18
|
+
__exportStar(require("./View"), exports);
|
|
18
19
|
__exportStar(require("./style"), exports);
|
|
19
20
|
var userAgent_1 = require("./userAgent");
|
|
20
21
|
Object.defineProperty(exports, "userAgent", { enumerable: true, get: function () { return userAgent_1.userAgent; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,iCAAgC;AAOvB,sBAAK;AALd,+CAA6B;AAC7B,0CAAwB;AACxB,yCAAuB;AACvB,0CAAwB;AACxB,yCAAwC;AAA/B,sGAAA,SAAS,OAAA"}
|