@main-class/componentes 1.16.5 → 1.17.1

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.
@@ -4616,7 +4616,7 @@
4616
4616
  }
4617
4617
  var maskedValue = '';
4618
4618
  var valorRestante = value.replace(/\D/g, '').replace(/^0+/, '');
4619
- while (valorRestante.length < (mascara.length - mascara.indexOf(',')) + 1) {
4619
+ while (valorRestante.length < (mascara.length - mascara.indexOf(','))) {
4620
4620
  valorRestante = '0' + valorRestante;
4621
4621
  }
4622
4622
  for (var i = mascara.length - 1; i >= 0 && valorRestante.length; i--) {
@@ -4663,7 +4663,7 @@
4663
4663
  };
4664
4664
  MonetarioModelDirective.prototype.processValue = function (displayValue) {
4665
4665
  return this.keepMask ? displayValue :
4666
- monetarioMask(displayValue, '', '', '.', this.mascara);
4666
+ monetarioMask(displayValue, '', '', '.', this.$mascara);
4667
4667
  };
4668
4668
  Object.defineProperty(MonetarioModelDirective.prototype, "symbol", {
4669
4669
  set: function (symbol) {
@@ -4731,7 +4731,7 @@
4731
4731
  var value = this.value;
4732
4732
  var displayValue = null;
4733
4733
  if (value != null) {
4734
- displayValue = monetarioMask(value, this.symbol, this.thousandDivider, this.fractionalDivider, this.mascara);
4734
+ displayValue = monetarioMask(value, this.$symbol, this.$thousandDivider, this.$fractionalDivider, this.$mascara);
4735
4735
  value = this.processValue(displayValue);
4736
4736
  }
4737
4737
  this.delay().subscribe(function () {
@@ -4754,7 +4754,7 @@
4754
4754
  value = null;
4755
4755
  }
4756
4756
  else {
4757
- displayValue = monetarioMask(newValue, this.symbol, this.thousandDivider, this.fractionalDivider, this.mascara);
4757
+ displayValue = monetarioMask(newValue, this.$symbol, this.$thousandDivider, this.$fractionalDivider, this.$mascara);
4758
4758
  value = this.processValue(displayValue);
4759
4759
  }
4760
4760
  this.displayValue = displayValue;