ng-inail-common 1.0.438 → 1.0.440

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.
@@ -10114,36 +10114,43 @@
10114
10114
  this.impostaValoreVisibile();
10115
10115
  };
10116
10116
  /**
10117
+ * @param {?=} focusIn
10117
10118
  * @return {?}
10118
10119
  */
10119
10120
  InputMoneyComponent.prototype.impostaValoreVisibile = /**
10121
+ * @param {?=} focusIn
10120
10122
  * @return {?}
10121
10123
  */
10122
- function () {
10124
+ function (focusIn) {
10123
10125
  if (this.numberValue != undefined) {
10124
10126
  /** @type {?} */
10125
10127
  var nextInputValue = void 0;
10126
10128
  // Eseguito durante la digitazione
10127
- if (this.hasFocus()) {
10129
+ if (this.hasFocus() && !focusIn) {
10128
10130
  nextInputValue = ("" + this.inputValue).replace(DOT_REGEX, ',');
10129
10131
  }
10130
10132
  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(',');
10133
+ if (this.numberValue === 0 && this.zeroVisibleValue != undefined) {
10134
+ nextInputValue = this.zeroVisibleValue;
10144
10135
  }
10145
10136
  else {
10146
- nextInputValue = a[0];
10137
+ nextInputValue = ("" + this.numberValue).replace(DOT_REGEX, ',');
10138
+ /** @type {?} */
10139
+ var a = nextInputValue.split(',');
10140
+ if (this.showThousandsSeparator) {
10141
+ while (THOUSANDS_REGEX.test(a[0])) {
10142
+ a[0] = a[0].replace(THOUSANDS_REGEX, "$1.$2");
10143
+ }
10144
+ }
10145
+ if (this.numberOfDecimals > 0) {
10146
+ /** @type {?} */
10147
+ var decimals = (a[1] != undefined ? a[1] : '') + "000000000000000000000";
10148
+ a[1] = decimals.substring(0, this.numberOfDecimals);
10149
+ nextInputValue = a.join(',');
10150
+ }
10151
+ else {
10152
+ nextInputValue = a[0];
10153
+ }
10147
10154
  }
10148
10155
  }
10149
10156
  this.inputValue = (nextInputValue + " " + (!this.hasFocus() ? this.getCurrencySymbol() : '')).trim();
@@ -10157,7 +10164,7 @@
10157
10164
  */
10158
10165
  function () {
10159
10166
  var _this = this;
10160
- this.impostaValoreVisibile();
10167
+ this.impostaValoreVisibile(true);
10161
10168
  setTimeout(( /**
10162
10169
  * @return {?}
10163
10170
  */function () { return _this.formControlElement.nativeElement.select(); }));
@@ -10236,6 +10243,7 @@
10236
10243
  min: [{ type: i0.Input }],
10237
10244
  numberOfDecimals: [{ type: i0.Input }],
10238
10245
  placeholder: [{ type: i0.Input }],
10246
+ zeroVisibleValue: [{ type: i0.Input }],
10239
10247
  preventPasting: [{ type: i0.Input }],
10240
10248
  currency: [{ type: i0.Input }],
10241
10249
  selfValidation: [{ type: i0.Input }],