@fluxhub/fluxhub-lib 10.0.338 → 10.0.339

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.
@@ -3959,6 +3959,7 @@ class FHUploadComponent {
3959
3959
  maxFileSize: 500 * 1024 * 1024,
3960
3960
  });
3961
3961
  this.id = null;
3962
+ this.ver = -1;
3962
3963
  this.show_upload = true;
3963
3964
  this.id_component = this.uti.newGuid();
3964
3965
  this.username = this.app_s.user;
@@ -3993,6 +3994,7 @@ class FHUploadComponent {
3993
3994
  tipo: this.tipo,
3994
3995
  local_path: this.app_s.LOCAL_PATH,
3995
3996
  p1: this.programma_da_eseguire,
3997
+ ver: this.ver
3996
3998
  });
3997
3999
  }
3998
4000
  onFileDrop(o) {
@@ -4113,8 +4115,6 @@ class FHUploadComponent {
4113
4115
  }
4114
4116
  }
4115
4117
  ch(fileItem) {
4116
- console.log('ch');
4117
- console.log(this.descri_obb, this.descrizione);
4118
4118
  if (this.descri_obb && this.descrizione == "") {
4119
4119
  this.toastr.error(this.inserire_descrizione);
4120
4120
  return;
@@ -4134,6 +4134,7 @@ class FHUploadComponent {
4134
4134
  form.append("descrizione", this.descrizione);
4135
4135
  form.append("single", this.single);
4136
4136
  form.append("username", this.username);
4137
+ form.append("ver", this.ver);
4137
4138
  if (this.multi_list && this.show_upload)
4138
4139
  form.append("tipo", this.cmb_tipo.getDescri().split("-1").join(""));
4139
4140
  else
@@ -4154,11 +4155,12 @@ class FHUploadComponent {
4154
4155
  }
4155
4156
  this.uploader.uploadAll();
4156
4157
  }
4157
- init(p_app, p_k, p_label, p_tipo = "", programma_da_eseguire = "", allow_delete = false, all_g = false, show_upload = true) {
4158
+ init(p_app, p_k, p_label, p_tipo = "", programma_da_eseguire = "", allow_delete = false, all_g = false, show_upload = true, current_v = -1) {
4158
4159
  this.App = p_app;
4159
4160
  this.K = p_k;
4160
4161
  this.label = p_label;
4161
4162
  this.tipo = p_tipo;
4163
+ this.ver = current_v;
4162
4164
  this.b_ini = true;
4163
4165
  this.b_edit_loaded = false;
4164
4166
  this.descrizione = "";
@@ -4791,6 +4793,7 @@ class FHUploadPanelComponent {
4791
4793
  this.dialog = dialog;
4792
4794
  this.auth_s = auth_s;
4793
4795
  this.uti = uti;
4796
+ this.show_version = false;
4794
4797
  this.enabled = true;
4795
4798
  this.force_en = false;
4796
4799
  this.label = "";
@@ -4810,6 +4813,7 @@ class FHUploadPanelComponent {
4810
4813
  this.K = "";
4811
4814
  this.image_type = false;
4812
4815
  this.b_edit_loaded = false;
4816
+ this.current_v = -1;
4813
4817
  this.b_False = false;
4814
4818
  this.b_mobile = false;
4815
4819
  this.b_ini = false;
@@ -4817,6 +4821,10 @@ class FHUploadPanelComponent {
4817
4821
  this.multi_list = false;
4818
4822
  this.m_programma_da_eseguire = "";
4819
4823
  }
4824
+ set_curr_version(vx) {
4825
+ this.show_version = true;
4826
+ this.current_v = vx;
4827
+ }
4820
4828
  output_ris(o) {
4821
4829
  if (o == null)
4822
4830
  return;
@@ -4952,9 +4960,9 @@ class FHUploadPanelComponent {
4952
4960
  this.upc.single = false;
4953
4961
  this.b_mobile = this._appservice.getState().pageFullscreen;
4954
4962
  if (this.force_en)
4955
- this.upc.init(this.App, this.K, "Attachment Description", this.m_p_tipo, this.m_programma_da_eseguire);
4963
+ this.upc.init(this.App, this.K, "Attachment Description", this.m_p_tipo, this.m_programma_da_eseguire, false, false, true, this.current_v);
4956
4964
  else
4957
- this.upc.init(this.App, this.K, "Descrizione Allegato", this.m_p_tipo, this.m_programma_da_eseguire);
4965
+ this.upc.init(this.App, this.K, "Descrizione Allegato", this.m_p_tipo, this.m_programma_da_eseguire, false, false, true, this.current_v);
4958
4966
  if (this.m_p_tipo.indexOf("SELECT_") > -1) {
4959
4967
  this.multi_list = true;
4960
4968
  }
@@ -5134,7 +5142,8 @@ FHUploadPanelComponent.decorators = [
5134
5142
  <tr class="header">
5135
5143
  <th [fxShow.lt-sm]="false" style="width:40px"></th>
5136
5144
  <th style="width:50%">{{ force_en ? "Name" : "Nome" }}</th>
5137
- <th [fxShow.lt-sm]="false" style="width:60px;text-align:center">Dim.</th>
5145
+ <th [fxShow.lt-sm]="false" *ngIf="show_version" style="width:30px;text-align:center">Ver.</th>
5146
+ <th [fxShow.lt-sm]="false" style="width:30px;text-align:center">Dim.</th>
5138
5147
  <th [fxShow.lt-sm]="false" style="width:40%">
5139
5148
  {{ force_en ? "Description" : "Descrizione" }}
5140
5149
  </th>
@@ -5170,6 +5179,7 @@ FHUploadPanelComponent.decorators = [
5170
5179
  </div>
5171
5180
  </td>
5172
5181
  <td><button mat-stroked-button color="primary" (click)="download_all(app)">{{ app.Filename }}</button></td>
5182
+ <td style="text-align:center" *ngIf="show_version" [fxShow.lt-sm]="false">{{ app.v }}</td>
5173
5183
  <td style="text-align:center" [fxShow.lt-sm]="false">{{ app.Filesize }}</td>
5174
5184
  <td [fxShow.lt-sm]="false">
5175
5185
  <div fxLayout="row">
@@ -5285,7 +5295,8 @@ FHUploadPanelComponent.decorators = [
5285
5295
  <tr class="header">
5286
5296
  <th [fxShow.lt-sm]="false" style="width:40px"></th>
5287
5297
  <th [fxShow.lt-sm]="false" style="width:50%">{{ force_en ? "Name" : "Nome" }}</th>
5288
- <th [fxShow.lt-sm]="false" style="width:60px;text-align:center">Dim.</th>
5298
+ <th [fxShow.lt-sm]="false" *ngIf="show_version" style="width:30px;text-align:center">Ver.</th>
5299
+ <th [fxShow.lt-sm]="false" style="width:30px;text-align:center">Dim.</th>
5289
5300
 
5290
5301
  <th [fxShow.lt-sm]="false" style="width:20%">
5291
5302
  {{ force_en ? "Description" : "Descrizione" }}
@@ -5323,6 +5334,7 @@ FHUploadPanelComponent.decorators = [
5323
5334
  </td>
5324
5335
 
5325
5336
  <td [fxShow.lt-sm]="false"><button mat-stroked-button color="primary" (click)="download_all(app)">{{ app.Filename }}</button></td>
5337
+ <td style="text-align:center" *ngIf="show_version" [fxShow.lt-sm]="false">{{ app.v }}</td>
5326
5338
  <td [fxShow.lt-sm]="false" style="text-align:center">{{ app.Filesize }}</td>
5327
5339
  <td [fxShow.lt-sm]="false">
5328
5340
  <div fxLayout="row">