@fluxhub/fluxhub-lib 1.0.210 → 1.0.212

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.
@@ -32,7 +32,7 @@ import { TranslateModule } from '@ngx-translate/core';
32
32
  import { DragulaService, DragulaModule } from 'ng2-dragula';
33
33
  import { MatDialogRef, MatDialog, DateAdapter, MAT_DATE_LOCALE, MatAutocompleteModule, MatButtonModule, MatButtonToggleModule, MatPaginatorModule, MatCardModule, MatCheckboxModule, MatChipsModule, MatDatepickerModule, MatGridListModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatProgressBarModule, MatProgressSpinnerModule, MatRadioModule, MatSelectModule, MatSidenavModule, MatSliderModule, MatSortModule, MatSlideToggleModule, MatSnackBarModule, MatTableModule, MatTabsModule, MatToolbarModule, MatTooltipModule, MatFormFieldModule, MatExpansionModule, MatStepperModule, MatDialogModule, MatNativeDateModule } from '@angular/material';
34
34
  import { ActivatedRoute, Router } from '@angular/router';
35
- import { Injectable, Component, Input, Output, EventEmitter, forwardRef, ViewChild, ElementRef, Inject, PLATFORM_ID, Directive, Pipe, ViewContainerRef, NgModule, defineInjectable, inject, HostListener } from '@angular/core';
35
+ import { Injectable, forwardRef, Component, Input, ViewChild, Output, EventEmitter, ElementRef, Directive, Inject, PLATFORM_ID, Pipe, ViewContainerRef, defineInjectable, NgModule, inject, HostListener } from '@angular/core';
36
36
  import { Http } from '@angular/http';
37
37
  import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
38
38
  import { ToastrService } from 'ngx-toastr';
@@ -2642,6 +2642,7 @@ class FHUploadComponent {
2642
2642
  this.limit_string = 'Il file di <size>MB supera il limite di 500MB';
2643
2643
  this.allegato_inserito = 'ALLEGATO INSERITO';
2644
2644
  this.inserire_descrizione = 'Descrizione Obbligatoria';
2645
+ this.lista_allegati = [];
2645
2646
  this.change = new EventEmitter();
2646
2647
  this.upload_ended = new EventEmitter();
2647
2648
  this.loading = false;
@@ -2652,11 +2653,9 @@ class FHUploadComponent {
2652
2653
  this.file_name = '';
2653
2654
  this.label = '';
2654
2655
  this.username = '';
2655
- this.progress_p = 0;
2656
2656
  this.b_edit_loaded = false;
2657
2657
  this.tipo = '';
2658
2658
  this.b_ini = false;
2659
- this.lista_allegati = [];
2660
2659
  this.uploader = new FileUploader({
2661
2660
  url: this.app_s.API_ENDPOINT + this.app_s.UPLOAD_ENDPOINT,
2662
2661
  'maxFileSize': 500 * 1024 * 1024
@@ -2818,7 +2817,7 @@ FHUploadComponent.decorators = [
2818
2817
  { type: Component, args: [{
2819
2818
  selector: 'FHUpload',
2820
2819
  template: `
2821
- aaaazzz
2820
+
2822
2821
  <div *ngIf="loading" fxLayout="row">
2823
2822
  WAIT
2824
2823
  </div>
@@ -2859,6 +2858,7 @@ FHUploadComponent.propDecorators = {
2859
2858
  limit_string: [{ type: Input }],
2860
2859
  allegato_inserito: [{ type: Input }],
2861
2860
  inserire_descrizione: [{ type: Input }],
2861
+ lista_allegati: [{ type: Input }],
2862
2862
  change: [{ type: Output }],
2863
2863
  upload_ended: [{ type: Output }]
2864
2864
  };
@@ -3368,8 +3368,6 @@ class FHUploadPanelComponent {
3368
3368
  this.arr_g[i].icon = iconf + '.svg';
3369
3369
  this.arr_g[i].can_delete = !this.access_control || this.arr_g[i].idp == this._appservice.user;
3370
3370
  }
3371
- if (this.upc == null)
3372
- this.upc.lista_allegati = this.arr_g;
3373
3371
  }
3374
3372
  });
3375
3373
  }
@@ -3383,7 +3381,7 @@ FHUploadPanelComponent.decorators = [
3383
3381
 
3384
3382
  <div fxLayout="column">
3385
3383
  <div [hidden]="!enabled">
3386
- <FHUpload [single]="b_False" (change)="ref_allegato()" #upc></FHUpload>
3384
+ <FHUpload [single]="b_False" [lista_allegati]="arr_g" (change)="ref_allegato()" #upc></FHUpload>
3387
3385
  <br></div>
3388
3386
 
3389
3387
  <table width="98%" class="fh_table">