@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.
@@ -5956,22 +5956,12 @@
5956
5956
  });
5957
5957
  var cmds = [];
5958
5958
  var str_fields = "";
5959
- var p_col = this.gridOptions.columnApi.getColumnState();
5960
- for (var i = 0; i < this.columnDefs.length; i++)
5961
- if (this.columnDefs[i] != null)
5962
- if (this.columnDefs[i].field != null)
5963
- if (this.columnDefs[i].headerName != null)
5964
- if (this.columnDefs[i].field != '')
5965
- if (this.columnDefs[i].headerName != '')
5966
- for (var j = 0; j < p_col.length; j++) {
5967
- if (this.columnDefs[i].field == p_col[j].colId) {
5968
- if (!p_col[j].hide) {
5969
- if (str_fields != '')
5970
- str_fields += ',';
5971
- str_fields += '[' + this.columnDefs[i].field + '] [' + this.columnDefs[i].headerName + ']';
5972
- }
5973
- }
5974
- }
5959
+ var p_col = this.gridOptions.columnApi.getAllDisplayedColumns();
5960
+ for (var j = 0; j < p_col.length; j++) {
5961
+ if (str_fields != '')
5962
+ str_fields += ',';
5963
+ str_fields += '[' + p_col[j].getColDef().field + '] [' + p_col[j].getColDef().headerName + ']';
5964
+ }
5975
5965
  if (this.fields.indexOf('DISTINCT') != -1)
5976
5966
  str_fields = 'DISTINCT ' + str_fields;
5977
5967
  cmds.push(this.officeService.operation("GB_XLS_APRI", "tpl_report.xlsx", "" + this.uiid_stampa + ".xlsx", this.xxopx++));
@@ -8171,7 +8161,9 @@
8171
8161
  FHCurrencyFieldComponent.prototype.chg = function () {
8172
8162
  var _this = this;
8173
8163
  setTimeout(function () {
8164
+ console.log(' chg() -> ', _this.formattedAmount);
8174
8165
  _this.value = parseFloat(_this.formattedAmount.split('.').join('').split(',').join('.'));
8166
+ console.log('fine chg value -> ', _this.value);
8175
8167
  _this.onChange(_this.value);
8176
8168
  }, 50);
8177
8169
  };
@@ -8181,8 +8173,9 @@
8181
8173
  // if (value !== this.innerValue) {
8182
8174
  this.innerValue = value;
8183
8175
  this.value = value;
8176
+ console.log(' writeValue() -> ', this.value);
8184
8177
  this.formattedAmount = this.transform(this.value, this.decimal);
8185
- //}
8178
+ console.log('fine writeValue -> ', this.formattedAmount);
8186
8179
  this.onChange(this.value);
8187
8180
  };
8188
8181
  FHCurrencyFieldComponent.prototype.registerOnChange = function (fn) {
@@ -8211,6 +8204,7 @@
8211
8204
  };
8212
8205
  FHCurrencyFieldComponent.prototype.transform = function (value, fractionSize) {
8213
8206
  if (fractionSize === void 0) { fractionSize = 2; }
8207
+ console.log('ini trasform() -> ', value, fractionSize);
8214
8208
  var _a = __read((value || "").toString().split('.'), 2), integer = _a[0], _b = _a[1], fraction = _b === void 0 ? "" : _b;
8215
8209
  fraction = fractionSize > 0
8216
8210
  ? ',' + (fraction + '000000').substring(0, fractionSize)
@@ -8218,7 +8212,11 @@
8218
8212
  integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, '.');
8219
8213
  if (integer == '')
8220
8214
  integer = '0';
8221
- return integer + fraction;
8215
+ console.log('fine transform() -> ', value, fractionSize);
8216
+ if (fractionSize > 0)
8217
+ return integer + fraction;
8218
+ else
8219
+ return integer;
8222
8220
  };
8223
8221
  FHCurrencyFieldComponent.prototype.removeCurrencyPipeFormat = function (element) {
8224
8222
  try {