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.
- package/bundles/ng-inail-common.umd.js +20 -14
- package/bundles/ng-inail-common.umd.js.map +1 -1
- package/bundles/ng-inail-common.umd.min.js +1 -1
- package/bundles/ng-inail-common.umd.min.js.map +1 -1
- package/esm2015/lib/components/ux/input-money/input-money.component.js +23 -15
- package/esm5/lib/components/ux/input-money/input-money.component.js +23 -15
- package/fesm2015/ng-inail-common.js +20 -14
- package/fesm2015/ng-inail-common.js.map +1 -1
- package/fesm5/ng-inail-common.js +20 -14
- package/fesm5/ng-inail-common.js.map +1 -1
- package/lib/components/ux/input-money/input-money.component.d.ts +1 -0
- package/ng-inail-common.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -10128,22 +10128,27 @@
|
|
|
10128
10128
|
nextInputValue = ("" + this.inputValue).replace(DOT_REGEX, ',');
|
|
10129
10129
|
}
|
|
10130
10130
|
else {
|
|
10131
|
-
|
|
10132
|
-
|
|
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 =
|
|
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 }],
|