ng-inail-common 1.0.440 → 1.0.443

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.
@@ -2590,6 +2590,7 @@
2590
2590
  function TextareaComponent() {
2591
2591
  var _this = _super.call(this) || this;
2592
2592
  _this.valueChange = new i0.EventEmitter();
2593
+ _this.selfValidation = true;
2593
2594
  return _this;
2594
2595
  }
2595
2596
  /**
@@ -2657,7 +2658,7 @@
2657
2658
  * @return {?}
2658
2659
  */
2659
2660
  function () {
2660
- return (this.hasError || isNotEmptyOrNull(this.descError) || this.isTextTooLong()) === true;
2661
+ return (this.hasError || isNotEmptyOrNull(this.descError) || (this.isTextTooLong() && this.selfValidation)) === true;
2661
2662
  };
2662
2663
  /**
2663
2664
  * @return {?}
@@ -2688,7 +2689,7 @@
2688
2689
  * @return {?}
2689
2690
  */
2690
2691
  function () {
2691
- return (isEmptyOrNull(this.descError) && this.isTextTooLong())
2692
+ return (isEmptyOrNull(this.descError) && this.isTextTooLong() && this.selfValidation)
2692
2693
  ? "Il testo non può essere lungo di " + this.maxlength + " caratteri"
2693
2694
  : this.descError;
2694
2695
  };
@@ -2731,6 +2732,7 @@
2731
2732
  rows: [{ type: i0.Input }],
2732
2733
  cols: [{ type: i0.Input }],
2733
2734
  preventPasting: [{ type: i0.Input }],
2735
+ selfValidation: [{ type: i0.Input }],
2734
2736
  value: [{ type: i0.Input }]
2735
2737
  };
2736
2738
  return TextareaComponent;
@@ -10125,9 +10127,12 @@
10125
10127
  if (this.numberValue != undefined) {
10126
10128
  /** @type {?} */
10127
10129
  var nextInputValue = void 0;
10128
- // Eseguito durante la digitazione
10129
- if (this.hasFocus() && !focusIn) {
10130
- nextInputValue = ("" + this.inputValue).replace(DOT_REGEX, ',');
10130
+ // Eseguito quando il focus e' sull'elemento
10131
+ if (this.hasFocus()) {
10132
+ // focusIn serve per distinguere se si sta eseguendo il metodo durante la digitazione
10133
+ // oppure quando l'elemento prende il focus
10134
+ // (trick introdotto per visualizzare correttamente il valore in maschera)
10135
+ nextInputValue = ("" + (focusIn ? this.numberValue : this.inputValue)).replace(DOT_REGEX, ',');
10131
10136
  }
10132
10137
  else {
10133
10138
  if (this.numberValue === 0 && this.zeroVisibleValue != undefined) {