@fluxhub/fluxhub-lib 9.0.147 → 9.0.148

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.
@@ -3076,6 +3076,7 @@ var FHUploadComponent = /** @class */ (function () {
3076
3076
  this.b_edit_loaded = false;
3077
3077
  this.tipo = "";
3078
3078
  this.b_ini = false;
3079
+ this.last_result = {};
3079
3080
  this.uploader = new FileUploader({
3080
3081
  url: this.app_s.API_ENDPOINT + this.app_s.UPLOAD_ENDPOINT,
3081
3082
  maxFileSize: 500 * 1024 * 1024,
@@ -3093,12 +3094,13 @@ var FHUploadComponent = /** @class */ (function () {
3093
3094
  progressBar: true,
3094
3095
  });
3095
3096
  _this.ref_allegato();
3096
- _this.change.emit({
3097
+ _this.last_result = {
3097
3098
  item: item,
3098
3099
  response: response,
3099
3100
  status: status,
3100
- header: header,
3101
- });
3101
+ header: header
3102
+ };
3103
+ _this.change.emit(_this.last_result);
3102
3104
  }
3103
3105
  };
3104
3106
  }
@@ -3174,7 +3176,7 @@ var FHUploadComponent = /** @class */ (function () {
3174
3176
  _this.uploader.setOptions(uo);
3175
3177
  _this.uploader.onCompleteAll = function () {
3176
3178
  _this.loading = false;
3177
- _this.upload_ended.emit();
3179
+ _this.upload_ended.emit(_this.last_result);
3178
3180
  if (_this.dialogRef != null)
3179
3181
  if (_this.dialogRef.componentInstance != null) {
3180
3182
  _this.dialogRef.componentInstance.update_progess(100);