@syncfusion/ej2-base 31.1.17 → 31.1.22
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/bin/syncfusion-license.js +1 -1
- package/dist/ej2-base.min.js +3 -3
- package/dist/ej2-base.umd.min.js +3 -3
- package/dist/ej2-base.umd.min.js.map +1 -1
- package/dist/es6/ej2-base.es2015.js +5 -1
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +5 -1
- package/dist/es6/ej2-base.es5.js.map +1 -1
- package/dist/global/ej2-base.min.js +3 -3
- package/dist/global/ej2-base.min.js.map +1 -1
- package/dist/global/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/intl/number-formatter.d.ts +1 -0
- package/src/intl/number-formatter.js +5 -1
- package/styles/bds-lite.css +1 -1
- package/styles/bds.css +1 -1
- package/styles/definition/_bds.scss +1 -1
package/dist/es6/ej2-base.es5.js
CHANGED
|
@@ -6041,6 +6041,10 @@ var NumberFormat$1 = /** @__PURE__ @class */ (function () {
|
|
|
6041
6041
|
* @param {NumberFormatOptions} [option] ?
|
|
6042
6042
|
* @returns {string} ?
|
|
6043
6043
|
*/
|
|
6044
|
+
NumberFormat.roundTo = function (value, digits) {
|
|
6045
|
+
var factor = Math.pow(10, digits);
|
|
6046
|
+
return (Math.round(value * factor) / factor).toFixed(digits);
|
|
6047
|
+
};
|
|
6044
6048
|
NumberFormat.processFraction = function (value, min, max, option) {
|
|
6045
6049
|
var temp = (value + '').split('.')[1];
|
|
6046
6050
|
var length = temp ? temp.length : 0;
|
|
@@ -6059,7 +6063,7 @@ var NumberFormat$1 = /** @__PURE__ @class */ (function () {
|
|
|
6059
6063
|
return value.toFixed(min);
|
|
6060
6064
|
}
|
|
6061
6065
|
else if (!isNullOrUndefined(max) && (length > max || max === 0)) {
|
|
6062
|
-
return
|
|
6066
|
+
return this.roundTo(value, max);
|
|
6063
6067
|
}
|
|
6064
6068
|
var str = value + '';
|
|
6065
6069
|
if (str[0] === '0' && option && option.format === '###.00') {
|