@fluxhub/fluxhub-lib 10.0.169 → 10.0.171
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/fluxhub-fluxhub-lib.umd.js +13 -14
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhcurrencyfield.js +14 -14
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +1 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +13 -14
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/package.json +1 -1
|
@@ -12134,16 +12134,16 @@ class FHCurrencyFieldComponent {
|
|
|
12134
12134
|
else
|
|
12135
12135
|
this.value = parseFloat(this.value.split(".").join("").split(",").join("."));
|
|
12136
12136
|
}
|
|
12137
|
-
console.log("this.value ", this.value);
|
|
12137
|
+
// console.log("this.value ", this.value);
|
|
12138
12138
|
this.onChange(this.value);
|
|
12139
12139
|
}, 0);
|
|
12140
12140
|
}
|
|
12141
12141
|
writeValue(value) {
|
|
12142
|
-
console.log('inif ',
|
|
12142
|
+
// console.log('inif ',parseFloat(value), value,this.innerValue);
|
|
12143
12143
|
if (value == null)
|
|
12144
12144
|
value = 0;
|
|
12145
12145
|
if (parseFloat(value) !== this.innerValue) {
|
|
12146
|
-
console.log('typeof value ',
|
|
12146
|
+
// console.log('typeof value ',typeof value);
|
|
12147
12147
|
if (typeof value == "string")
|
|
12148
12148
|
if (this.decimal == 0 || value.indexOf(',') != -1) {
|
|
12149
12149
|
if (this.decimal == 0)
|
|
@@ -12153,9 +12153,9 @@ class FHCurrencyFieldComponent {
|
|
|
12153
12153
|
}
|
|
12154
12154
|
this.innerValue = value;
|
|
12155
12155
|
this.value = value;
|
|
12156
|
-
console.log('writeValue ini ',
|
|
12156
|
+
// console.log('writeValue ini ',this.value, this.formattedAmount);
|
|
12157
12157
|
this.formattedAmount = this.transform(this.value, this.decimal);
|
|
12158
|
-
console.log('writeValue fin ',
|
|
12158
|
+
// console.log('writeValue fin ',this.value, this.formattedAmount);
|
|
12159
12159
|
}
|
|
12160
12160
|
// this.onChange(this.value);
|
|
12161
12161
|
}
|
|
@@ -12175,22 +12175,22 @@ class FHCurrencyFieldComponent {
|
|
|
12175
12175
|
// else
|
|
12176
12176
|
// this.value = parseFloat(this.formattedAmount.split('.').join('').split(',').join('.'));
|
|
12177
12177
|
// this.writeValue(this.value);
|
|
12178
|
-
console.log('transformAmount ini ',
|
|
12178
|
+
// console.log('transformAmount ini ',this.value, this.formattedAmount);
|
|
12179
12179
|
this.formattedAmount = this.transform(this.value, this.decimal);
|
|
12180
|
-
console.log('transformAmount fin ',
|
|
12180
|
+
// console.log('transformAmount fin ',this.value, this.formattedAmount);
|
|
12181
12181
|
}, 0);
|
|
12182
12182
|
// Remove or comment this line if you dont want
|
|
12183
12183
|
// to show the formatted amount in the textbox.
|
|
12184
12184
|
// element.target.value = this.formattedAmount;
|
|
12185
12185
|
}
|
|
12186
12186
|
catch (e) {
|
|
12187
|
-
console.log(e);
|
|
12187
|
+
// console.log(e);
|
|
12188
12188
|
}
|
|
12189
12189
|
}
|
|
12190
12190
|
transform(value, fractionSize = 2) {
|
|
12191
|
-
console.log('trasform ',
|
|
12191
|
+
// console.log('trasform ',value);
|
|
12192
12192
|
let [integer, fraction = ""] = (value || "").toString().split(".");
|
|
12193
|
-
console.log('integer, fraction ',
|
|
12193
|
+
// console.log('integer, fraction ',integer, fraction);
|
|
12194
12194
|
fraction =
|
|
12195
12195
|
fractionSize > 0
|
|
12196
12196
|
? "," + (fraction + "000000").substring(0, fractionSize)
|
|
@@ -12198,7 +12198,7 @@ class FHCurrencyFieldComponent {
|
|
|
12198
12198
|
integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, ".");
|
|
12199
12199
|
if (integer == "")
|
|
12200
12200
|
integer = "0";
|
|
12201
|
-
console.log('trasform ',
|
|
12201
|
+
// console.log('trasform ',integer + fraction);
|
|
12202
12202
|
return integer + fraction;
|
|
12203
12203
|
}
|
|
12204
12204
|
focus_e($event) {
|
|
@@ -12209,7 +12209,7 @@ class FHCurrencyFieldComponent {
|
|
|
12209
12209
|
this.focus.emit(this.value);
|
|
12210
12210
|
}
|
|
12211
12211
|
catch (e) {
|
|
12212
|
-
console.log(e);
|
|
12212
|
+
// console.log(e);
|
|
12213
12213
|
}
|
|
12214
12214
|
}
|
|
12215
12215
|
setFocus() {
|
|
@@ -12232,7 +12232,7 @@ class FHCurrencyFieldComponent {
|
|
|
12232
12232
|
this.formattedAmount = this.transform(this.value, this.decimal);
|
|
12233
12233
|
}
|
|
12234
12234
|
catch (e) {
|
|
12235
|
-
console.log(e);
|
|
12235
|
+
// console.log(e);
|
|
12236
12236
|
}
|
|
12237
12237
|
}
|
|
12238
12238
|
}
|
|
@@ -16887,7 +16887,6 @@ class dati_aggiuntivi {
|
|
|
16887
16887
|
p.types.push(arr[i].types);
|
|
16888
16888
|
p.names.push(arr[i].names);
|
|
16889
16889
|
if (arr[i].values == null) {
|
|
16890
|
-
console.log('NULL', arr[i].names, arr[i].values);
|
|
16891
16890
|
arr[i].values = "dbnull";
|
|
16892
16891
|
}
|
|
16893
16892
|
else {
|