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.
- package/bundles/ng-inail-common.umd.js +26 -15
- 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 +29 -16
- package/esm5/lib/components/ux/input-money/input-money.component.js +29 -16
- package/fesm2015/ng-inail-common.js +26 -15
- package/fesm2015/ng-inail-common.js.map +1 -1
- package/fesm5/ng-inail-common.js +26 -15
- 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
|
@@ -10122,23 +10122,33 @@
|
|
|
10122
10122
|
function () {
|
|
10123
10123
|
if (this.numberValue != undefined) {
|
|
10124
10124
|
/** @type {?} */
|
|
10125
|
-
var nextInputValue =
|
|
10126
|
-
|
|
10127
|
-
|
|
10128
|
-
|
|
10129
|
-
|
|
10130
|
-
|
|
10131
|
-
|
|
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 =
|
|
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 }],
|