@fluxhub/fluxhub-lib 9.0.152 → 9.0.153

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.
@@ -3788,17 +3788,19 @@ win_show_log_dett = __decorate([
3788
3788
  ], win_show_log_dett);
3789
3789
 
3790
3790
  let FHUploadComponent = class FHUploadComponent {
3791
- constructor(_dataService, toastr, dialog, app_s) {
3791
+ constructor(_dataService, toastr, dialog, app_s, uti) {
3792
3792
  this._dataService = _dataService;
3793
3793
  this.toastr = toastr;
3794
3794
  this.dialog = dialog;
3795
3795
  this.app_s = app_s;
3796
+ this.uti = uti;
3796
3797
  this.show_descri = true;
3797
3798
  this.enabled = true;
3798
3799
  this.single = true;
3799
3800
  this.descri_obb = false;
3800
3801
  this.programma_da_eseguire = "";
3801
3802
  this.label_attendere = "ATTENDERE UPLOAD IN CORSO";
3803
+ this.sovrascrivi_path = "";
3802
3804
  this.fixed_label = " (INSERISCI QUI LA DESCRIZIONE PRIMA DI CARICARE IL FILE)";
3803
3805
  this.limit_string = "Il file di <size>MB supera il limite di 500MB";
3804
3806
  this.allegato_inserito = "ALLEGATO INSERITO";
@@ -3807,6 +3809,7 @@ let FHUploadComponent = class FHUploadComponent {
3807
3809
  this.change = new EventEmitter();
3808
3810
  this.upload_ended = new EventEmitter();
3809
3811
  this.call_upload = new EventEmitter();
3812
+ this.id_component = '';
3810
3813
  this.multi_list = false;
3811
3814
  this.allow_delete = false;
3812
3815
  this.loading = false;
@@ -3826,6 +3829,7 @@ let FHUploadComponent = class FHUploadComponent {
3826
3829
  maxFileSize: 500 * 1024 * 1024,
3827
3830
  });
3828
3831
  this.id = null;
3832
+ this.id_component = this.uti.newGuid();
3829
3833
  this.username = this.app_s.user;
3830
3834
  this.uploader.onBeforeUploadItem = (item) => {
3831
3835
  item.withCredentials = false;
@@ -3951,13 +3955,24 @@ let FHUploadComponent = class FHUploadComponent {
3951
3955
  });
3952
3956
  }
3953
3957
  download_all() {
3954
- window.open(this.app_s.COMPANY_SITE_ROOT +
3955
- "/uploads/" +
3956
- this.App +
3957
- "/" +
3958
- this.K +
3959
- "/" +
3960
- this.file_name);
3958
+ if (this.sovrascrivi_path == '') {
3959
+ window.open(this.app_s.COMPANY_SITE_ROOT +
3960
+ "/uploads/" +
3961
+ this.App +
3962
+ "/" +
3963
+ this.K +
3964
+ "/" +
3965
+ this.file_name);
3966
+ }
3967
+ else {
3968
+ window.open(this.sovrascrivi_path +
3969
+ "/uploads/" +
3970
+ this.App +
3971
+ "/" +
3972
+ this.K +
3973
+ "/" +
3974
+ this.file_name);
3975
+ }
3961
3976
  }
3962
3977
  ch(fileItem) {
3963
3978
  if (this.descri_obb && this.descrizione == "") {
@@ -4051,7 +4066,8 @@ FHUploadComponent.ctorParameters = () => [
4051
4066
  { type: QueryService },
4052
4067
  { type: ToastrService },
4053
4068
  { type: MatDialog },
4054
- { type: AppService }
4069
+ { type: AppService },
4070
+ { type: UtilityService }
4055
4071
  ];
4056
4072
  __decorate([
4057
4073
  Input(),
@@ -4077,6 +4093,10 @@ __decorate([
4077
4093
  Input(),
4078
4094
  __metadata("design:type", String)
4079
4095
  ], FHUploadComponent.prototype, "label_attendere", void 0);
4096
+ __decorate([
4097
+ Input(),
4098
+ __metadata("design:type", String)
4099
+ ], FHUploadComponent.prototype, "sovrascrivi_path", void 0);
4080
4100
  __decorate([
4081
4101
  Input(),
4082
4102
  __metadata("design:type", String)
@@ -4163,11 +4183,11 @@ FHUploadComponent = __decorate([
4163
4183
  multiple
4164
4184
  ng2FileSelect
4165
4185
  [uploader]="uploader"
4166
- name="file-fh{{ App }}"
4167
- id="file-fh{{ App }}"
4186
+ name="file-fh{{ id_component }}"
4187
+ id="file-fh{{ id_component }}"
4168
4188
  class="inputfile inputfile-fh"
4169
4189
  />
4170
- <label for="file-fh{{ App }}" style="width:210px"
4190
+ <label for="file-fh{{ id_component }}" style="width:210px"
4171
4191
  ><svg
4172
4192
  xmlns="http://www.w3.org/2000/svg"
4173
4193
  width="20"
@@ -4217,7 +4237,7 @@ FHUploadComponent = __decorate([
4217
4237
  __metadata("design:paramtypes", [QueryService,
4218
4238
  ToastrService,
4219
4239
  MatDialog,
4220
- AppService])
4240
+ AppService, UtilityService])
4221
4241
  ], FHUploadComponent);
4222
4242
 
4223
4243
  let AuthenticationService = class AuthenticationService {