@seniorsistemas/angular-components 16.3.6 → 16.3.7

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.
@@ -3955,7 +3955,6 @@
3955
3955
  _this.precision = 15;
3956
3956
  _this.scale = 0;
3957
3957
  _this.decimalSeparator = ",";
3958
- _this.thousandsSeparator = ".";
3959
3958
  _this.alignTo = ng2CurrencyMask.AlignmentOptions.LEFT;
3960
3959
  _this.allowNegative = true;
3961
3960
  return _this;
@@ -3994,10 +3993,11 @@
3994
3993
  * Update the options values according to the directive input values.
3995
3994
  */
3996
3995
  BignumberInputDirective.prototype.updateVariables = function () {
3996
+ var _a;
3997
3997
  this.options = {
3998
3998
  align: this.alignTo,
3999
3999
  decimalSeparator: this.decimalSeparator,
4000
- thousandsSeparator: this.thousandsSeparator,
4000
+ thousandsSeparator: (_a = this.thousandsSeparator) !== null && _a !== void 0 ? _a : ".",
4001
4001
  scale: this.scale || 0,
4002
4002
  prefix: "",
4003
4003
  suffix: "",
@@ -4009,8 +4009,9 @@
4009
4009
  * Responsible to calculate the field maximum length considering the separators.
4010
4010
  */
4011
4011
  BignumberInputDirective.prototype.calculateMaxLength = function () {
4012
+ var _a, _b;
4012
4013
  var decSepLength = this.decimalSeparator.length;
4013
- var thoSepLength = this.thousandsSeparator.length;
4014
+ var thoSepLength = (_b = (_a = this.thousandsSeparator) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 1;
4014
4015
  var maxLength = this.precision + (this.scale ? decSepLength : 0);
4015
4016
  maxLength += Math.ceil((this.precision - (this.scale ? this.scale : 0)) / 3 - 1) * thoSepLength;
4016
4017
  this._maxLength = maxLength;