@fluxhub/fluxhub-lib 9.0.12 → 9.0.14
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 +16 -18
- 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 +11 -3
- package/esm2015/lib/controls/fhgrid.js +7 -17
- package/esm5/lib/controls/fhcurrencyfield.js +11 -3
- package/esm5/lib/controls/fhgrid.js +7 -17
- package/fesm2015/fluxhub-fluxhub-lib.js +16 -18
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +16 -18
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -6359,22 +6359,12 @@ let FHGridComponent = class FHGridComponent {
|
|
|
6359
6359
|
});
|
|
6360
6360
|
let cmds = [];
|
|
6361
6361
|
let str_fields = "";
|
|
6362
|
-
let p_col = this.gridOptions.columnApi.
|
|
6363
|
-
for (let
|
|
6364
|
-
if (
|
|
6365
|
-
|
|
6366
|
-
|
|
6367
|
-
|
|
6368
|
-
if (this.columnDefs[i].headerName != '')
|
|
6369
|
-
for (let j = 0; j < p_col.length; j++) {
|
|
6370
|
-
if (this.columnDefs[i].field == p_col[j].colId) {
|
|
6371
|
-
if (!p_col[j].hide) {
|
|
6372
|
-
if (str_fields != '')
|
|
6373
|
-
str_fields += ',';
|
|
6374
|
-
str_fields += '[' + this.columnDefs[i].field + '] [' + this.columnDefs[i].headerName + ']';
|
|
6375
|
-
}
|
|
6376
|
-
}
|
|
6377
|
-
}
|
|
6362
|
+
let p_col = this.gridOptions.columnApi.getAllDisplayedColumns();
|
|
6363
|
+
for (let j = 0; j < p_col.length; j++) {
|
|
6364
|
+
if (str_fields != '')
|
|
6365
|
+
str_fields += ',';
|
|
6366
|
+
str_fields += '[' + p_col[j].getColDef().field + '] [' + p_col[j].getColDef().headerName + ']';
|
|
6367
|
+
}
|
|
6378
6368
|
if (this.fields.indexOf('DISTINCT') != -1)
|
|
6379
6369
|
str_fields = 'DISTINCT ' + str_fields;
|
|
6380
6370
|
cmds.push(this.officeService.operation("GB_XLS_APRI", "tpl_report.xlsx", "" + this.uiid_stampa + ".xlsx", this.xxopx++));
|
|
@@ -8844,7 +8834,9 @@ let FHCurrencyFieldComponent = class FHCurrencyFieldComponent {
|
|
|
8844
8834
|
}
|
|
8845
8835
|
chg() {
|
|
8846
8836
|
setTimeout(() => {
|
|
8837
|
+
console.log(' chg() -> ', this.formattedAmount);
|
|
8847
8838
|
this.value = parseFloat(this.formattedAmount.split('.').join('').split(',').join('.'));
|
|
8839
|
+
console.log('fine chg value -> ', this.value);
|
|
8848
8840
|
this.onChange(this.value);
|
|
8849
8841
|
}, 50);
|
|
8850
8842
|
}
|
|
@@ -8854,8 +8846,9 @@ let FHCurrencyFieldComponent = class FHCurrencyFieldComponent {
|
|
|
8854
8846
|
// if (value !== this.innerValue) {
|
|
8855
8847
|
this.innerValue = value;
|
|
8856
8848
|
this.value = value;
|
|
8849
|
+
console.log(' writeValue() -> ', this.value);
|
|
8857
8850
|
this.formattedAmount = this.transform(this.value, this.decimal);
|
|
8858
|
-
|
|
8851
|
+
console.log('fine writeValue -> ', this.formattedAmount);
|
|
8859
8852
|
this.onChange(this.value);
|
|
8860
8853
|
}
|
|
8861
8854
|
registerOnChange(fn) {
|
|
@@ -8882,6 +8875,7 @@ let FHCurrencyFieldComponent = class FHCurrencyFieldComponent {
|
|
|
8882
8875
|
}
|
|
8883
8876
|
}
|
|
8884
8877
|
transform(value, fractionSize = 2) {
|
|
8878
|
+
console.log('ini trasform() -> ', value, fractionSize);
|
|
8885
8879
|
let [integer, fraction = ""] = (value || "").toString().split('.');
|
|
8886
8880
|
fraction = fractionSize > 0
|
|
8887
8881
|
? ',' + (fraction + '000000').substring(0, fractionSize)
|
|
@@ -8889,7 +8883,11 @@ let FHCurrencyFieldComponent = class FHCurrencyFieldComponent {
|
|
|
8889
8883
|
integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, '.');
|
|
8890
8884
|
if (integer == '')
|
|
8891
8885
|
integer = '0';
|
|
8892
|
-
|
|
8886
|
+
console.log('fine transform() -> ', value, fractionSize);
|
|
8887
|
+
if (fractionSize > 0)
|
|
8888
|
+
return integer + fraction;
|
|
8889
|
+
else
|
|
8890
|
+
return integer;
|
|
8893
8891
|
}
|
|
8894
8892
|
removeCurrencyPipeFormat(element) {
|
|
8895
8893
|
try {
|