@fluxhub/fluxhub-lib 9.0.4 → 9.0.5

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.
@@ -68,6 +68,7 @@ import { MatTooltipModule } from '@angular/material/tooltip';
68
68
  import { MatPaginatorModule } from '@angular/material/paginator';
69
69
  import { MatSortModule } from '@angular/material/sort';
70
70
  import { MatTableModule } from '@angular/material/table';
71
+ import { MatBadgeModule } from '@angular/material/badge';
71
72
 
72
73
  /**
73
74
  * App service
@@ -12015,14 +12016,14 @@ FHGridToolBarComponent = __decorate([
12015
12016
  <button mat-flat-button (click)="del_doc()" color="warn">
12016
12017
  <mat-icon>delete</mat-icon>&nbsp;&nbsp;&nbsp;{{'ELIMINA' | translate}}
12017
12018
  </button>
12018
- <div *ngFor="let app of custom_commands" ><button mat-flat-button [color]="app.color" (click)="exec_command(app.command)">{{app.label | translate}}</button>
12019
+ <div *ngFor="let app of custom_commands" ><button mat-flat-button [color]="app.color" (click)="exec_command(app.command)"><mat-icon *ngIf="app.icon!=null">{{app.icon}}</mat-icon>{{app.label | translate}}</button>
12019
12020
  </div>
12020
12021
  </div>
12021
12022
  </mat-toolbar>
12022
12023
  </div>
12023
12024
  <div *ngIf="type=='CUSTOM'" fxLayoutGap="3px" fxLayout="row" fxLayoutAlign="end center">
12024
12025
 
12025
- <div *ngFor="let app of custom_commands" ><button mat-flat-button [color]="app.color" (click)="exec_command(app.command)">{{app.label | translate}}</button>
12026
+ <div *ngFor="let app of custom_commands" ><button mat-flat-button [color]="app.color" (click)="exec_command(app.command)"><mat-icon *ngIf="app.icon!=null">{{app.icon}}</mat-icon>{{app.label | translate}}</button>
12026
12027
  </div>
12027
12028
  </div>
12028
12029
 
@@ -12051,8 +12052,8 @@ class dati_aggiuntivi {
12051
12052
  this.respingi_enabled = false;
12052
12053
  this.oper = '';
12053
12054
  this.b_edit_before = false;
12054
- this.all_c = "";
12055
- this.comm_c = "";
12055
+ this.all_c = 0;
12056
+ this.comm_c = 0;
12056
12057
  this.forza_canale = "";
12057
12058
  /*
12058
12059
  public open_allegati(){
@@ -12418,7 +12419,7 @@ class dati_aggiuntivi {
12418
12419
  dialogRef.componentInstance.comm_notrequired = this.nlevel.commenti_opzionali;
12419
12420
  });
12420
12421
  dialogRef.afterClosed().subscribe(result => {
12421
- if (result == "") {
12422
+ if (result == "" || result == null) {
12422
12423
  this.edit_b(true);
12423
12424
  if (this.respingi_enabled)
12424
12425
  this.resp_b(true);
@@ -12431,7 +12432,6 @@ class dati_aggiuntivi {
12431
12432
  }
12432
12433
  }
12433
12434
  back(edit_button) {
12434
- console.log('edit_button ', edit_button);
12435
12435
  if (!edit_button)
12436
12436
  this.m_router.navigate([this.app_info.modulo_swf]);
12437
12437
  else {
@@ -12971,12 +12971,10 @@ class dati_aggiuntivi {
12971
12971
  });
12972
12972
  }
12973
12973
  reset_counters_int(num_comm, num_all) {
12974
- this.all_c = "";
12975
- this.comm_c = "";
12976
12974
  if (num_comm > 0)
12977
- this.comm_c = " (" + num_comm + ")";
12975
+ this.comm_c = num_comm;
12978
12976
  if (num_all > 0)
12979
- this.all_c = " (" + num_all + ")";
12977
+ this.all_c = num_all;
12980
12978
  }
12981
12979
  set_canale_iniziale(c) {
12982
12980
  this.forza_canale = c;
@@ -13469,9 +13467,9 @@ wkf_header_bar = __decorate([
13469
13467
  <div fxLayout="row" fxLayout.xs="column" fxLayoutGap="3px" >
13470
13468
  <div fxLayout="row">
13471
13469
  <button mat-flat-button (click)="open_info()" *ngIf="!m_appService.getState().pageFullscreen"> <mat-icon>info_outline</mat-icon>&nbsp;&nbsp;Info Doc</button>&nbsp;&nbsp;
13472
- <button mat-flat-button (click)="open_commenti()"> <mat-icon>insert_comment</mat-icon>&nbsp;&nbsp;Commenti {{dt_agg?.comm_c}}</button>&nbsp;&nbsp;</div> <div fxLayout="row">
13473
- <button mat-flat-button (click)="open_upload()"> <mat-icon>attach_file</mat-icon>&nbsp;&nbsp;Allegati {{dt_agg?.all_c}}</button>&nbsp;&nbsp;
13474
- <button mat-flat-button (click)="open_wkf()" *ngIf="!m_appService.getState().pageFullscreen"> <mat-icon>transfer_within_a_station</mat-icon>&nbsp;&nbsp;Workflow</button></div>
13470
+ <button mat-flat-button color="accent" [matBadge]="dt_agg?.comm_c?dt_agg?.comm_c:0" matBadgePosition="before" matBadgeColor="primary" (click)="open_commenti()"> <mat-icon>insert_comment</mat-icon>Commenti</button>&nbsp;&nbsp;</div> <div fxLayout="row">
13471
+ <button mat-flat-button color="accent" [matBadge]="dt_agg?.all_c?dt_agg?.all_c:0" matBadgePosition="before" matBadgeColor="primary" (click)="open_upload()"> <mat-icon>attach_file</mat-icon>Allegati</button>&nbsp;&nbsp;
13472
+ <button mat-flat-button (click)="open_wkf()" *ngIf="!m_appService.getState().pageFullscreen"> <mat-icon>transfer_within_a_station</mat-icon>Workflow</button></div>
13475
13473
  </div>
13476
13474
  </div>
13477
13475
  `
@@ -15727,7 +15725,7 @@ let FluxhubLibModule = FluxhubLibModule_1 = class FluxhubLibModule {
15727
15725
  };
15728
15726
  FluxhubLibModule = FluxhubLibModule_1 = __decorate([
15729
15727
  NgModule({
15730
- imports: [TranslateModule, CdkTableModule,
15728
+ imports: [TranslateModule, CdkTableModule, MatBadgeModule,
15731
15729
  MatAutocompleteModule,
15732
15730
  MatDialogModule,
15733
15731
  MatButtonModule,