@fluxhub/fluxhub-lib 9.0.11 → 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.
@@ -537,7 +537,7 @@
537
537
  UtilityService_1 = UtilityService;
538
538
  UtilityService.prototype.set_home_title = function (s) {
539
539
  var _this = this;
540
- setTimeout(function () { _this.app_s.getState().topnavTitle = s; }, 10);
540
+ setTimeout(function () { console.log('set_title->', s); _this.app_s.getState().topnavTitle = s; }, 100);
541
541
  };
542
542
  UtilityService.prototype.check_value_combo = function (obj_value, combo_value) {
543
543
  if (combo_value != null)
@@ -1702,7 +1702,7 @@
1702
1702
  ]; };
1703
1703
  FHConfirmComponent = __decorate([
1704
1704
  core.Component({
1705
- template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\"><img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"close()\" /> </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n\n <h1 mat-dialog-title>{{title}}</h1>\n <div mat-dialog-content style=\"font-size:12px\">{{msg}}</div>\n <div mat-dialog-actions>\n <button mat-button (click)=\"dialogRef.close(true)\" color=\"primary\">{{confirm_mgs}}</button>\n <button mat-button (click)=\"dialogRef.close(false)\" color=\"warn\">{{annulla_mgs}}</button>\n </div>\n ",
1705
+ template: "\n\n <h1 mat-dialog-title>{{title}}</h1>\n <div mat-dialog-content style=\"font-size:12px\">{{msg}}</div>\n <div mat-dialog-actions>\n <button mat-button (click)=\"dialogRef.close(true)\" color=\"primary\">{{confirm_mgs}}</button>\n <button mat-button (click)=\"dialogRef.close(false)\" color=\"warn\">{{annulla_mgs}}</button>\n </div>\n ",
1706
1706
  styles: ["\n "]
1707
1707
  }),
1708
1708
  __metadata("design:paramtypes", [dialog.MatDialogRef, AppService])
@@ -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) {
@@ -8218,7 +8211,10 @@
8218
8211
  integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, '.');
8219
8212
  if (integer == '')
8220
8213
  integer = '0';
8221
- return integer + fraction;
8214
+ if (fractionSize > 0)
8215
+ return integer + fraction;
8216
+ else
8217
+ return integer;
8222
8218
  };
8223
8219
  FHCurrencyFieldComponent.prototype.removeCurrencyPipeFormat = function (element) {
8224
8220
  try {