jsuites 5.9.0 → 5.9.2

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.
Files changed (2) hide show
  1. package/dist/jsuites.js +6 -4
  2. package/package.json +1 -1
package/dist/jsuites.js CHANGED
@@ -2883,6 +2883,10 @@ function Mask() {
2883
2883
  fillWithBlanks = true;
2884
2884
  }
2885
2885
  } else if (type === 'text') {
2886
+ // Parse number
2887
+ if (typeof(value) === 'number') {
2888
+ value = value.toString();
2889
+ }
2886
2890
  } else {
2887
2891
  // Parse number
2888
2892
  if (typeof(value) === 'string' && jSuites.isNumeric(value)) {
@@ -2920,9 +2924,7 @@ function Mask() {
2920
2924
  t = parseFloat(n[0] + '.' + fraction + '1').toFixed(d);
2921
2925
  }
2922
2926
  } else {
2923
- if (value.toString().indexOf(d) !== -1) {
2924
- t = value.toFixed(0);
2925
- }
2927
+ t = value.toFixed(0);
2926
2928
  }
2927
2929
 
2928
2930
  // Handle scientific notation
@@ -12901,7 +12903,7 @@ var jsuites_jSuites = {
12901
12903
  ...dictionary,
12902
12904
  ...helpers,
12903
12905
  /** Current version */
12904
- version: '5.8.5',
12906
+ version: '5.9.2',
12905
12907
  /** Bind new extensions to Jsuites */
12906
12908
  setExtensions: function(o) {
12907
12909
  if (typeof(o) == 'object') {
package/package.json CHANGED
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "main": "dist/jsuites.js",
28
28
  "types": "dist/jsuites.d.ts",
29
- "version": "5.9.0",
29
+ "version": "5.9.2",
30
30
  "bugs": "https://github.com/jsuites/jsuites/issues",
31
31
  "homepage": "https://github.com/jsuites/jsuites",
32
32
  "docs": "https://jsuites.net",