@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/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.toString()[0] != "0" && focusToFixed.toString().length > 2) {
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));