@vaadin/component-base 25.4.0-alpha4 → 25.4.0-alpha5
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 +4 -4
- package/src/define.js +1 -1
- package/src/gestures.js +2 -2
- package/src/warnings.d.ts +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/component-base",
|
|
3
|
-
"version": "25.4.0-
|
|
3
|
+
"version": "25.4.0-alpha5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@polymer/polymer": "^3.0.0",
|
|
42
|
-
"@vaadin/chai-plugins": "25.4.0-
|
|
43
|
-
"@vaadin/test-runner-commands": "25.4.0-
|
|
42
|
+
"@vaadin/chai-plugins": "25.4.0-alpha5",
|
|
43
|
+
"@vaadin/test-runner-commands": "25.4.0-alpha5",
|
|
44
44
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
45
45
|
"sinon": "^22.0.0"
|
|
46
46
|
},
|
|
47
47
|
"customElements": "custom-elements.json",
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "65e9c9e49c0a723b08ee91b9aae8b901e91a3597"
|
|
49
49
|
}
|
package/src/define.js
CHANGED
|
@@ -13,7 +13,7 @@ function dashToCamelCase(dash) {
|
|
|
13
13
|
|
|
14
14
|
const experimentalMap = {};
|
|
15
15
|
|
|
16
|
-
export function defineCustomElement(CustomElement, version = '25.4.0-
|
|
16
|
+
export function defineCustomElement(CustomElement, version = '25.4.0-alpha5') {
|
|
17
17
|
Object.defineProperty(CustomElement, 'version', {
|
|
18
18
|
get() {
|
|
19
19
|
return version;
|
package/src/gestures.js
CHANGED
|
@@ -808,8 +808,8 @@ function trackFire(info, target, touch) {
|
|
|
808
808
|
if (!target) {
|
|
809
809
|
return;
|
|
810
810
|
}
|
|
811
|
-
const secondlast = info.moves
|
|
812
|
-
const lastmove = info.moves
|
|
811
|
+
const secondlast = info.moves.at(-2);
|
|
812
|
+
const lastmove = info.moves.at(-1);
|
|
813
813
|
const dx = lastmove.x - info.x;
|
|
814
814
|
const dy = lastmove.y - info.y;
|
|
815
815
|
let ddx,
|
package/src/warnings.d.ts
CHANGED
|
@@ -8,3 +8,8 @@
|
|
|
8
8
|
* Issues a warning in the browser console if it has not been issued before.
|
|
9
9
|
*/
|
|
10
10
|
export declare function issueWarning(warning: string): void;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Clears all issued warnings. Only intended for testing purposes.
|
|
14
|
+
*/
|
|
15
|
+
export declare function clearWarnings(): void;
|