@fluxhub/fluxhub-lib 9.0.139 → 9.0.140

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>
@@ -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,6 +2672,12 @@ let FHUploadPanelS3Component = class FHUploadPanelS3Component {
2673
2672
  });
2674
2673
  }
2675
2674
  ngAfterViewInit() {
2675
+ }
2676
+ init_upload() {
2677
+ if (this.upc == null) {
2678
+ setTimeout(() => { this.init_upload(); }, 500);
2679
+ return;
2680
+ }
2676
2681
  setTimeout(() => {
2677
2682
  setTimeout(() => {
2678
2683
  this.b_initt = true;
@@ -2695,7 +2700,7 @@ let FHUploadPanelS3Component = class FHUploadPanelS3Component {
2695
2700
  this.m_p_section = p_section;
2696
2701
  this.m_p_system_type = p_system_type;
2697
2702
  this.m_programma_da_eseguire = programma_da_eseguire;
2698
- this.ngAfterViewInit();
2703
+ this.init_upload();
2699
2704
  }
2700
2705
  ref_allegato() {
2701
2706
  if (this.App == null)
@@ -2865,12 +2870,12 @@ FHUploadPanelS3Component = __decorate([
2865
2870
  Component({
2866
2871
  selector: "FHUploadPanelS3",
2867
2872
  template: `
2868
- UPLOADPANEL {{m_p_section}}
2873
+
2869
2874
  <div fxLayout="column">
2870
2875
  <h3 *ngIf="label != ''">{{ label }}</h3>
2871
2876
  <div fxLayout="column">
2872
2877
  <div [hidden]="!enabled">
2873
- {{m_p_section}}
2878
+
2874
2879
  <FHUploadS3
2875
2880
  [single]="b_False"
2876
2881
  [label_attendere]="