@depay/widgets 7.14.2 → 7.14.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/README.md +45 -7
- package/dist/esm/index.bundle.js +19 -27
- package/dist/esm/index.js +6 -1
- package/dist/umd/index.bundle.js +19 -27
- package/dist/umd/index.js +6 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1660,7 +1660,12 @@ var round = (function (input) {
|
|
|
1660
1660
|
focusToFixed = parseFloat(_float).toFixed(1).replace('.', '');
|
|
1661
1661
|
}
|
|
1662
1662
|
|
|
1663
|
-
if (focusToFixed
|
|
1663
|
+
if (focusToFixed == '099' && parseInt(inputAsFloat.toFixed(0)) == 0) {
|
|
1664
|
+
focusToFixed = direction == 'up' ? '100' : '990';
|
|
1665
|
+
return parseFloat(digitsAfterDecimal.replace(/\d{3}$/, focusToFixed));
|
|
1666
|
+
} else if (focusToFixed == '100' && parseInt(inputAsFloat.toFixed(0)) == 0) {
|
|
1667
|
+
return parseFloat(digitsAfterDecimal.replace(/\d{4}$/, focusToFixed));
|
|
1668
|
+
} else if (focusToFixed.toString()[0] != "0" && focusToFixed.toString().length > 2) {
|
|
1664
1669
|
return parseInt(inputAsFloat.toFixed(0));
|
|
1665
1670
|
} else {
|
|
1666
1671
|
return parseFloat(digitsAfterDecimal.replace(/\d{3}$/, focusToFixed));
|