ng-inail-common 1.0.439 → 1.0.441
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 +9 -4
- 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 +9 -5
- package/esm5/lib/components/ux/input-money/input-money.component.js +10 -5
- package/fesm2015/ng-inail-common.js +8 -4
- package/fesm2015/ng-inail-common.js.map +1 -1
- package/fesm5/ng-inail-common.js +9 -4
- package/fesm5/ng-inail-common.js.map +1 -1
- package/lib/components/ux/input-money/input-money.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -10114,18 +10114,23 @@
|
|
|
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
|
-
// Eseguito
|
|
10128
|
+
// Eseguito quando il focus e' sull'elemento
|
|
10127
10129
|
if (this.hasFocus()) {
|
|
10128
|
-
|
|
10130
|
+
// focusIn serve per distinguere se si sta eseguendo il metodo durante la digitazione
|
|
10131
|
+
// oppure quando l'elemento prende il focus
|
|
10132
|
+
// (trick introdotto per visualizzare correttamente il valore in maschera)
|
|
10133
|
+
nextInputValue = ("" + (focusIn ? this.numberValue : this.inputValue)).replace(DOT_REGEX, ',');
|
|
10129
10134
|
}
|
|
10130
10135
|
else {
|
|
10131
10136
|
if (this.numberValue === 0 && this.zeroVisibleValue != undefined) {
|
|
@@ -10162,7 +10167,7 @@
|
|
|
10162
10167
|
*/
|
|
10163
10168
|
function () {
|
|
10164
10169
|
var _this = this;
|
|
10165
|
-
this.impostaValoreVisibile();
|
|
10170
|
+
this.impostaValoreVisibile(true);
|
|
10166
10171
|
setTimeout(( /**
|
|
10167
10172
|
* @return {?}
|
|
10168
10173
|
*/function () { return _this.formControlElement.nativeElement.select(); }));
|