@fluxhub/fluxhub-lib 9.0.139 → 9.0.141

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.
@@ -1814,18 +1814,18 @@ let FHUploadS3Component = class FHUploadS3Component {
1814
1814
  this.tipo = "";
1815
1815
  this.b_ini = false;
1816
1816
  this.uploader = new FileUploader({
1817
- url: this.app_s.API_ENDPOINT + this.app_s.UPLOAD_ENDPOINT + '_new',
1817
+ url: this.app_s.API_ENDPOINT + this.app_s.UPLOAD_ENDPOINT + "_new",
1818
1818
  maxFileSize: 500 * 1024 * 1024,
1819
1819
  });
1820
1820
  this.id = null;
1821
- this.p_cod_doc = '';
1822
- this.p_section = '';
1823
- this.p_system_type = '';
1821
+ this.p_cod_doc = "";
1822
+ this.p_section = "";
1823
+ this.p_system_type = "";
1824
1824
  this.username = this.app_s.user;
1825
1825
  this.uploader.onBeforeUploadItem = (item) => {
1826
1826
  item.withCredentials = false;
1827
1827
  };
1828
- console.log('uploader ', this.app_s.API_ENDPOINT + this.app_s.UPLOAD_ENDPOINT + '_new');
1828
+ console.log("uploader ", this.app_s.API_ENDPOINT + this.app_s.UPLOAD_ENDPOINT + "_new");
1829
1829
  this.uploader.onCompleteItem = (item, response, status, header) => {
1830
1830
  if (status === 200) {
1831
1831
  this.descrizione = "";
@@ -1976,20 +1976,18 @@ let FHUploadS3Component = class FHUploadS3Component {
1976
1976
  form.append("single", this.single);
1977
1977
  form.append("username", this.username);
1978
1978
  form.append("system_type", this.p_system_type);
1979
- form.append('uiid', this.uti.newGuid());
1980
- form.append('doc_number', this.p_cod_doc);
1981
- form.append('repo_uiid', 'S3');
1982
- form.append('parent_doc_type', this.App);
1983
- form.append('parent_doc_rif', this.p_cod_doc);
1984
- form.append('parent_doc_uiid', this.K);
1985
- form.append('parent_doc_section', this.p_section);
1986
- form.append('version', 1);
1987
- form.append('status', 'PUBLISHED');
1988
- form.append('p_owner', this.app_s.user);
1989
- // if (this.multi_list)
1990
- // form.append("tipo", this.cmb_tipo.getDescri().split("-1").join(""));
1991
- // else form.append("tipo", this.tipo);
1992
- form.append("tipo", '');
1979
+ form.append("uiid", this.uti.newGuid());
1980
+ form.append("doc_number", this.p_cod_doc);
1981
+ form.append("repo_uiid", "S3");
1982
+ form.append("parent_doc_type", this.App);
1983
+ form.append("parent_doc_rif", this.p_cod_doc);
1984
+ form.append("parent_doc_uiid", this.K);
1985
+ console.log('onBuildItemForm!!!!!!!!!!!!!!!!!!!!!this.p_section ', this.p_section);
1986
+ form.append("parent_doc_section", this.p_section);
1987
+ form.append("version", 1);
1988
+ form.append("status", "PUBLISHED");
1989
+ form.append("p_owner", this.app_s.user);
1990
+ form.append("tipo", "");
1993
1991
  form.append("local_path", this.app_s.LOCAL_PATH);
1994
1992
  if (this.programma_da_eseguire != "")
1995
1993
  form.append("p1", this.programma_da_eseguire);
@@ -2129,7 +2127,7 @@ FHUploadS3Component = __decorate([
2129
2127
  Component({
2130
2128
  selector: "FHUploadS3",
2131
2129
  template: `
2132
- FHUPLOAD: {{p_section}}
2130
+
2133
2131
  <div *ngIf="loading" fxLayout="row">
2134
2132
  WAIT
2135
2133
  </div>
@@ -2176,11 +2174,11 @@ FHUploadS3Component = __decorate([
2176
2174
  multiple
2177
2175
  ng2FileSelect
2178
2176
  [uploader]="uploader"
2179
- name="file-fh{{ App }}"
2180
- id="file-fh{{ App }}"
2177
+ name="file-fh{{ App }}_{{ p_section }}"
2178
+ id="file-fh{{ App }}_{{ p_section }}"
2181
2179
  class="inputfile inputfile-fh"
2182
2180
  />
2183
- <label for="file-fh{{ App }}" style="width:210px"
2181
+ <label for="file-fh{{ App }}_{{ p_section }}" style="width:210px"
2184
2182
  ><svg
2185
2183
  xmlns="http://www.w3.org/2000/svg"
2186
2184
  width="20"
@@ -2230,7 +2228,8 @@ FHUploadS3Component = __decorate([
2230
2228
  __metadata("design:paramtypes", [QueryService,
2231
2229
  ToastrService,
2232
2230
  MatDialog,
2233
- AppService, UtilityService])
2231
+ AppService,
2232
+ UtilityService])
2234
2233
  ], FHUploadS3Component);
2235
2234
 
2236
2235
  class FSInput {
@@ -2673,18 +2672,21 @@ let FHUploadPanelS3Component = class FHUploadPanelS3Component {
2673
2672
  });
2674
2673
  }
2675
2674
  ngAfterViewInit() {
2676
- setTimeout(() => {
2677
- setTimeout(() => {
2678
- this.b_initt = true;
2679
- }, 700);
2680
- this.upc.single = false;
2681
- this.b_mobile = this._appservice.getState().pageFullscreen;
2682
- if (this.force_en)
2683
- this.upc.init(this.App, this.K, this.m_p_cod_doc, this.m_p_section, 'Attachment Description', this.m_p_system_type, this.m_programma_da_eseguire);
2684
- else
2685
- this.upc.init(this.App, this.K, this.m_p_cod_doc, this.m_p_section, 'Descrizione Allegato', this.m_p_system_type, this.m_programma_da_eseguire);
2686
- this.ref_allegato();
2687
- });
2675
+ }
2676
+ init_upload() {
2677
+ if (this.upc == null) {
2678
+ setTimeout(() => { this.init_upload(); }, 500);
2679
+ return;
2680
+ }
2681
+ this.upc.single = false;
2682
+ this.b_mobile = this._appservice.getState().pageFullscreen;
2683
+ console.log(this.App, this.K, this.m_p_cod_doc, this.m_p_section, 'Attachment Description', this.m_p_system_type, this.m_programma_da_eseguire);
2684
+ if (this.force_en)
2685
+ this.upc.init(this.App, this.K, this.m_p_cod_doc, this.m_p_section, 'Attachment Description', this.m_p_system_type, this.m_programma_da_eseguire);
2686
+ else
2687
+ this.upc.init(this.App, this.K, this.m_p_cod_doc, this.m_p_section, 'Descrizione Allegato', this.m_p_system_type, this.m_programma_da_eseguire);
2688
+ this.b_initt = true;
2689
+ this.ref_allegato();
2688
2690
  }
2689
2691
  init(p_app, p_k, p_cod_doc, p_section, p_system_type, programma_da_eseguire = "") {
2690
2692
  this.App = p_app;
@@ -2695,7 +2697,7 @@ let FHUploadPanelS3Component = class FHUploadPanelS3Component {
2695
2697
  this.m_p_section = p_section;
2696
2698
  this.m_p_system_type = p_system_type;
2697
2699
  this.m_programma_da_eseguire = programma_da_eseguire;
2698
- this.ngAfterViewInit();
2700
+ this.init_upload();
2699
2701
  }
2700
2702
  ref_allegato() {
2701
2703
  if (this.App == null)
@@ -2865,12 +2867,12 @@ FHUploadPanelS3Component = __decorate([
2865
2867
  Component({
2866
2868
  selector: "FHUploadPanelS3",
2867
2869
  template: `
2868
- UPLOADPANEL {{m_p_section}}
2870
+
2869
2871
  <div fxLayout="column">
2870
2872
  <h3 *ngIf="label != ''">{{ label }}</h3>
2871
2873
  <div fxLayout="column">
2872
2874
  <div [hidden]="!enabled">
2873
- {{m_p_section}}
2875
+
2874
2876
  <FHUploadS3
2875
2877
  [single]="b_False"
2876
2878
  [label_attendere]="