ng-inail-common 1.0.435 → 1.0.439

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.
@@ -10122,23 +10122,33 @@
10122
10122
  function () {
10123
10123
  if (this.numberValue != undefined) {
10124
10124
  /** @type {?} */
10125
- var nextInputValue = ("" + this.numberValue).replace(DOT_REGEX, ',');
10126
- if (!this.hasFocus()) {
10127
- /** @type {?} */
10128
- var a = nextInputValue.split(',');
10129
- if (this.showThousandsSeparator) {
10130
- while (THOUSANDS_REGEX.test(a[0])) {
10131
- a[0] = a[0].replace(THOUSANDS_REGEX, "$1.$2");
10132
- }
10133
- }
10134
- if (this.numberOfDecimals > 0) {
10135
- /** @type {?} */
10136
- var decimals = (a[1] != undefined ? a[1] : '') + "000000000000000000000";
10137
- a[1] = decimals.substring(0, this.numberOfDecimals);
10138
- nextInputValue = a.join(',');
10125
+ var nextInputValue = void 0;
10126
+ // Eseguito durante la digitazione
10127
+ if (this.hasFocus()) {
10128
+ nextInputValue = ("" + this.inputValue).replace(DOT_REGEX, ',');
10129
+ }
10130
+ else {
10131
+ if (this.numberValue === 0 && this.zeroVisibleValue != undefined) {
10132
+ nextInputValue = this.zeroVisibleValue;
10139
10133
  }
10140
10134
  else {
10141
- nextInputValue = a[0];
10135
+ nextInputValue = ("" + this.numberValue).replace(DOT_REGEX, ',');
10136
+ /** @type {?} */
10137
+ var a = nextInputValue.split(',');
10138
+ if (this.showThousandsSeparator) {
10139
+ while (THOUSANDS_REGEX.test(a[0])) {
10140
+ a[0] = a[0].replace(THOUSANDS_REGEX, "$1.$2");
10141
+ }
10142
+ }
10143
+ if (this.numberOfDecimals > 0) {
10144
+ /** @type {?} */
10145
+ var decimals = (a[1] != undefined ? a[1] : '') + "000000000000000000000";
10146
+ a[1] = decimals.substring(0, this.numberOfDecimals);
10147
+ nextInputValue = a.join(',');
10148
+ }
10149
+ else {
10150
+ nextInputValue = a[0];
10151
+ }
10142
10152
  }
10143
10153
  }
10144
10154
  this.inputValue = (nextInputValue + " " + (!this.hasFocus() ? this.getCurrencySymbol() : '')).trim();
@@ -10231,6 +10241,7 @@
10231
10241
  min: [{ type: i0.Input }],
10232
10242
  numberOfDecimals: [{ type: i0.Input }],
10233
10243
  placeholder: [{ type: i0.Input }],
10244
+ zeroVisibleValue: [{ type: i0.Input }],
10234
10245
  preventPasting: [{ type: i0.Input }],
10235
10246
  currency: [{ type: i0.Input }],
10236
10247
  selfValidation: [{ type: i0.Input }],