@fluxhub/fluxhub-lib 9.0.12 → 9.0.13

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.
@@ -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.getColumnState();
6363
- for (let i = 0; i < this.columnDefs.length; i++)
6364
- if (this.columnDefs[i] != null)
6365
- if (this.columnDefs[i].field != null)
6366
- if (this.columnDefs[i].headerName != null)
6367
- if (this.columnDefs[i].field != '')
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) {
@@ -8889,7 +8882,10 @@ let FHCurrencyFieldComponent = class FHCurrencyFieldComponent {
8889
8882
  integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, '.');
8890
8883
  if (integer == '')
8891
8884
  integer = '0';
8892
- return integer + fraction;
8885
+ if (fractionSize > 0)
8886
+ return integer + fraction;
8887
+ else
8888
+ return integer;
8893
8889
  }
8894
8890
  removeCurrencyPipeFormat(element) {
8895
8891
  try {