@vaadin/number-field
Advanced tools
Comparing version 23.0.0-alpha1 to 23.0.0-alpha2
{ | ||
"name": "@vaadin/number-field", | ||
"version": "23.0.0-alpha1", | ||
"version": "23.0.0-alpha2", | ||
"publishConfig": { | ||
@@ -35,8 +35,8 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/component-base": "23.0.0-alpha1", | ||
"@vaadin/field-base": "23.0.0-alpha1", | ||
"@vaadin/input-container": "23.0.0-alpha1", | ||
"@vaadin/vaadin-lumo-styles": "23.0.0-alpha1", | ||
"@vaadin/vaadin-material-styles": "23.0.0-alpha1", | ||
"@vaadin/vaadin-themable-mixin": "23.0.0-alpha1" | ||
"@vaadin/component-base": "23.0.0-alpha2", | ||
"@vaadin/field-base": "23.0.0-alpha2", | ||
"@vaadin/input-container": "23.0.0-alpha2", | ||
"@vaadin/vaadin-lumo-styles": "23.0.0-alpha2", | ||
"@vaadin/vaadin-material-styles": "23.0.0-alpha2", | ||
"@vaadin/vaadin-themable-mixin": "23.0.0-alpha2" | ||
}, | ||
@@ -48,3 +48,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "fbcb07328fdf88260e3b461088d207426b21c710" | ||
"gitHead": "070f586dead02ca41b66717820c647f48bf1665f" | ||
} |
@@ -304,9 +304,7 @@ /** | ||
incr = 0; | ||
} else if (this._getIncrement(1, value - this.step) > this.max) { | ||
value -= 2 * this.step; | ||
// FIXME(yuriy): find a proper solution to make correct step back | ||
} else { | ||
// FIXME(yuriy): find a proper solution to make correct step back | ||
if (this._getIncrement(1, value - this.step) > this.max) { | ||
value -= 2 * this.step; | ||
} else { | ||
value -= this.step; | ||
} | ||
value -= this.step; | ||
} | ||
@@ -352,5 +350,4 @@ } | ||
return (currentValue - (margin || step)) / multiplier; | ||
} else { | ||
return currentValue / multiplier; | ||
} | ||
return currentValue / multiplier; | ||
} | ||
@@ -368,3 +365,3 @@ | ||
if (!isNaN(number)) { | ||
return Math.pow(10, this._getDecimalCount(number)); | ||
return 10 ** this._getDecimalCount(number); | ||
} | ||
@@ -379,5 +376,4 @@ } | ||
return this.max == null || this._getIncrement(incr, value) <= this.max; | ||
} else { | ||
return this._getIncrement(incr, value) <= this.max && this._getIncrement(incr, value) >= this.min; | ||
} | ||
return this._getIncrement(incr, value) <= this.max && this._getIncrement(incr, value) >= this.min; | ||
} | ||
@@ -477,5 +473,4 @@ | ||
return this.inputElement.checkValidity(); | ||
} else { | ||
return !this.invalid; | ||
} | ||
return !this.invalid; | ||
} | ||
@@ -482,0 +477,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29
133
33116
597
+ Added@vaadin/component-base@23.0.0-alpha2(transitive)
+ Added@vaadin/field-base@23.0.0-alpha2(transitive)
+ Added@vaadin/icon@23.0.0-alpha2(transitive)
+ Added@vaadin/input-container@23.0.0-alpha2(transitive)
+ Added@vaadin/vaadin-lumo-styles@23.0.0-alpha2(transitive)
+ Added@vaadin/vaadin-material-styles@23.0.0-alpha2(transitive)
+ Added@vaadin/vaadin-themable-mixin@23.0.0-alpha2(transitive)
- Removed@vaadin/component-base@23.0.0-alpha1(transitive)
- Removed@vaadin/field-base@23.0.0-alpha1(transitive)
- Removed@vaadin/icon@23.0.0-alpha1(transitive)
- Removed@vaadin/input-container@23.0.0-alpha1(transitive)
- Removed@vaadin/vaadin-lumo-styles@23.0.0-alpha1(transitive)
- Removed@vaadin/vaadin-material-styles@23.0.0-alpha1(transitive)
- Removed@vaadin/vaadin-themable-mixin@23.0.0-alpha1(transitive)