ng-inail-common 1.0.438 → 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.
@@ -10128,22 +10128,27 @@
10128
10128
  nextInputValue = ("" + this.inputValue).replace(DOT_REGEX, ',');
10129
10129
  }
10130
10130
  else {
10131
- nextInputValue = ("" + this.numberValue).replace(DOT_REGEX, ',');
10132
- /** @type {?} */
10133
- var a = nextInputValue.split(',');
10134
- if (this.showThousandsSeparator) {
10135
- while (THOUSANDS_REGEX.test(a[0])) {
10136
- a[0] = a[0].replace(THOUSANDS_REGEX, "$1.$2");
10137
- }
10138
- }
10139
- if (this.numberOfDecimals > 0) {
10140
- /** @type {?} */
10141
- var decimals = (a[1] != undefined ? a[1] : '') + "000000000000000000000";
10142
- a[1] = decimals.substring(0, this.numberOfDecimals);
10143
- nextInputValue = a.join(',');
10131
+ if (this.numberValue === 0 && this.zeroVisibleValue != undefined) {
10132
+ nextInputValue = this.zeroVisibleValue;
10144
10133
  }
10145
10134
  else {
10146
- 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
+ }
10147
10152
  }
10148
10153
  }
10149
10154
  this.inputValue = (nextInputValue + " " + (!this.hasFocus() ? this.getCurrencySymbol() : '')).trim();
@@ -10236,6 +10241,7 @@
10236
10241
  min: [{ type: i0.Input }],
10237
10242
  numberOfDecimals: [{ type: i0.Input }],
10238
10243
  placeholder: [{ type: i0.Input }],
10244
+ zeroVisibleValue: [{ type: i0.Input }],
10239
10245
  preventPasting: [{ type: i0.Input }],
10240
10246
  currency: [{ type: i0.Input }],
10241
10247
  selfValidation: [{ type: i0.Input }],