@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.
@@ -5823,22 +5823,12 @@ var FHGridComponent = /** @class */ (function () {
5823
5823
  });
5824
5824
  var cmds = [];
5825
5825
  var str_fields = "";
5826
- var p_col = this.gridOptions.columnApi.getColumnState();
5827
- for (var i = 0; i < this.columnDefs.length; i++)
5828
- if (this.columnDefs[i] != null)
5829
- if (this.columnDefs[i].field != null)
5830
- if (this.columnDefs[i].headerName != null)
5831
- if (this.columnDefs[i].field != '')
5832
- if (this.columnDefs[i].headerName != '')
5833
- for (var j = 0; j < p_col.length; j++) {
5834
- if (this.columnDefs[i].field == p_col[j].colId) {
5835
- if (!p_col[j].hide) {
5836
- if (str_fields != '')
5837
- str_fields += ',';
5838
- str_fields += '[' + this.columnDefs[i].field + '] [' + this.columnDefs[i].headerName + ']';
5839
- }
5840
- }
5841
- }
5826
+ var p_col = this.gridOptions.columnApi.getAllDisplayedColumns();
5827
+ for (var j = 0; j < p_col.length; j++) {
5828
+ if (str_fields != '')
5829
+ str_fields += ',';
5830
+ str_fields += '[' + p_col[j].getColDef().field + '] [' + p_col[j].getColDef().headerName + ']';
5831
+ }
5842
5832
  if (this.fields.indexOf('DISTINCT') != -1)
5843
5833
  str_fields = 'DISTINCT ' + str_fields;
5844
5834
  cmds.push(this.officeService.operation("GB_XLS_APRI", "tpl_report.xlsx", "" + this.uiid_stampa + ".xlsx", this.xxopx++));
@@ -8038,7 +8028,9 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
8038
8028
  FHCurrencyFieldComponent.prototype.chg = function () {
8039
8029
  var _this = this;
8040
8030
  setTimeout(function () {
8031
+ console.log(' chg() -> ', _this.formattedAmount);
8041
8032
  _this.value = parseFloat(_this.formattedAmount.split('.').join('').split(',').join('.'));
8033
+ console.log('fine chg value -> ', _this.value);
8042
8034
  _this.onChange(_this.value);
8043
8035
  }, 50);
8044
8036
  };
@@ -8048,8 +8040,9 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
8048
8040
  // if (value !== this.innerValue) {
8049
8041
  this.innerValue = value;
8050
8042
  this.value = value;
8043
+ console.log(' writeValue() -> ', this.value);
8051
8044
  this.formattedAmount = this.transform(this.value, this.decimal);
8052
- //}
8045
+ console.log('fine writeValue -> ', this.formattedAmount);
8053
8046
  this.onChange(this.value);
8054
8047
  };
8055
8048
  FHCurrencyFieldComponent.prototype.registerOnChange = function (fn) {
@@ -8085,7 +8078,10 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
8085
8078
  integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, '.');
8086
8079
  if (integer == '')
8087
8080
  integer = '0';
8088
- return integer + fraction;
8081
+ if (fractionSize > 0)
8082
+ return integer + fraction;
8083
+ else
8084
+ return integer;
8089
8085
  };
8090
8086
  FHCurrencyFieldComponent.prototype.removeCurrencyPipeFormat = function (element) {
8091
8087
  try {