sigesp 0.9.35-20230210 → 0.9.36-20230211
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/bundles/sigesp.umd.js +4 -3
- package/bundles/sigesp.umd.js.map +1 -1
- package/bundles/sigesp.umd.min.js +1 -1
- package/bundles/sigesp.umd.min.js.map +1 -1
- package/esm2015/lib/validation.service.js +4 -4
- package/fesm2015/sigesp.js +3 -3
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/validation.service.d.ts +1 -1
- package/package.json +1 -1
package/bundles/sigesp.umd.js
CHANGED
|
@@ -8115,7 +8115,7 @@
|
|
|
8115
8115
|
CurrencyService.prototype.returnNumber = function (event, decimal, thousands, amountDecimals) {
|
|
8116
8116
|
if (decimal === void 0) { decimal = ','; }
|
|
8117
8117
|
if (thousands === void 0) { thousands = '.'; }
|
|
8118
|
-
if (amountDecimals === void 0) { amountDecimals =
|
|
8118
|
+
if (amountDecimals === void 0) { amountDecimals = 0; }
|
|
8119
8119
|
if (!decimal || decimal.trim() == '') {
|
|
8120
8120
|
decimal = ',';
|
|
8121
8121
|
}
|
|
@@ -8128,7 +8128,7 @@
|
|
|
8128
8128
|
if (number.trim() == '') {
|
|
8129
8129
|
number = '0';
|
|
8130
8130
|
}
|
|
8131
|
-
return
|
|
8131
|
+
return +(parseFloat(number).toFixed(amountDecimals));
|
|
8132
8132
|
};
|
|
8133
8133
|
CurrencyService.prototype.validateCurrency = function (e, number, decimal, decimalAmount) {
|
|
8134
8134
|
if (decimal === void 0) { decimal = ','; }
|
|
@@ -8170,9 +8170,10 @@
|
|
|
8170
8170
|
}
|
|
8171
8171
|
return;
|
|
8172
8172
|
};
|
|
8173
|
-
CurrencyService.prototype.transformString = function (value, decimal, thousands) {
|
|
8173
|
+
CurrencyService.prototype.transformString = function (value, decimal, thousands, amountDecimals) {
|
|
8174
8174
|
if (decimal === void 0) { decimal = ','; }
|
|
8175
8175
|
if (thousands === void 0) { thousands = '.'; }
|
|
8176
|
+
if (amountDecimals === void 0) { amountDecimals = 5; }
|
|
8176
8177
|
if (!decimal || decimal.trim() == '') {
|
|
8177
8178
|
decimal = ',';
|
|
8178
8179
|
}
|