@fluxhub/fluxhub-lib 9.0.4 → 9.0.6

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
@@ -6961,7 +6962,7 @@ __decorate([
6961
6962
  FHGridComponent = __decorate([
6962
6963
  Component({
6963
6964
  selector: 'FHGrid',
6964
- template: "\r\n<div fxLayout=\"column\" fxFlexFill>\r\n\r\n <div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutAlign=\"center start\" fxLayoutGap=\"3px\" style=\"min-height: 55px\" [hidden]=\"!show_buttons\">\r\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"start center\" >\r\n <div>\r\n\t\t \t\t<h5>{{num_r}}&nbsp;{{label_elementi}}</h5>\r\n </div>\r\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n\r\n\t\t\t<div fxLayout=\"row\" fxLayoutAlign=\"start center\">\t<input matInput [placeholder]=\"trova_label\" (keydown)=\"keyDownFunctioncl($event)\" [(ngModel)]=\"ric_libera\"\r\n\t\t\t\t\t\t\t style=\"min-width:100px;max-width:180px;border:1px solid;min-height:30px\"></div>\r\n <div matTooltip=\"REMOVE FILTER\" matTooltipPosition=\"above\" *ngIf=\"show_pulisci_filtri\" >\r\n \t\t\t<button mat-flat-button (click)=\"pulisci_filtri()\" color=\"warn\">\r\n\t\t\t\t<mat-icon>filter_none</mat-icon>&nbsp;\r\n\t\t\t</button>\r\n </div>\r\n <div matTooltip=\"AUTO SIZE\" matTooltipPosition=\"above\">\r\n \t\t\t<button mat-flat-button (click)=\"autoSizeAll()\" color=\"primary\"\r\n *ngIf=\"show_buttons\">\r\n\t\t\t\t<mat-icon>compare_arrows</mat-icon>\r\n\t\t\t</button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"FIT SIZE\" matTooltipPosition=\"above\">\r\n\t \t\t<button mat-flat-button (click)=\"fitSizeAll()\" color=\"primary\"\r\n *ngIf=\"show_buttons\">\r\n\t\t\t\t<mat-icon>keyboard_tab</mat-icon>\r\n\t\t\t</button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"Refresh\" matTooltipPosition=\"above\">\r\n <button mat-flat-button (click)=\"Refresh()\" color=\"primary\"\r\n *ngIf=\"show_buttons\">\r\n <mat-icon>autorenew</mat-icon>\r\n </button>\r\n </div>\r\n <FHFilterComboBox fxHide fxShow.gt-sm [hidden]='!show_buttons' (selchange)=\"ch_config()\" (fillend)=\"fe_cfg()\" #gf init_fill=\"false\"></FHFilterComboBox>\r\n\t\t\t\t<div matTooltip=\"Modifica Preferenza\" matTooltipPosition=\"above\" *ngIf=\"curr_config!='-1'\">\r\n\t\t\t\t\t<button mat-icon-button *ngIf=\"show_buttons\"\r\n\t\t\t\t\t\t\t\t\tstyle=\"color:rgb(248, 105, 10)\">\r\n\t\t\t\t\t\t<mat-icon (click)=\"edit_config()\">save</mat-icon>\r\n </button>\r\n\t\t\t\t</div>\r\n <div matTooltip=\"Elimina Preferenza\" matTooltipPosition=\"above\" *ngIf=\"curr_config!='-1'\">\r\n <button mat-icon-button *ngIf=\"show_buttons\"\r\n style=\"color:rgb(248, 105, 10)\">\r\n <mat-icon (click)=\"elimina_config()\">delete</mat-icon>\r\n </button>\r\n\r\n </div>\r\n\t\t\t\t<div fxHide fxShow.gt-sm matTooltip=\"Crea Nuova Preferenza\" matTooltipPosition=\"above\">\r\n\t\t\t\t\t<button mat-icon-button style=\"color:rgb(16, 98, 16)\" *ngIf=\"show_buttons\">\r\n\t\t\t\t\t\t<mat-icon (click)=\"insert_config()\">library_add</mat-icon>\r\n\t\t\t\t\t</button>\r\n\t\t\t\t</div>\r\n\r\n <mat-slide-toggle fxHide fxShow.gt-sm [hidden]='!show_buttons' (click)=\"ck_flag()\" #toggle_mantieni>\r\n\t\t\t\t\t{{mantieni_impostazioni}}\r\n\t\t\t\t</mat-slide-toggle>\r\n\r\n\r\n \t&nbsp;\t<div fxHide fxShow.gt-sm matTooltip=\"HELP\" matTooltipPosition=\"above\">\r\n <button mat-flat-button (click)=\"help_window()\" color=\"primary\" *ngIf=\"show_buttons && show_help\" >\r\n\t\t\t<mat-icon>help</mat-icon>\r\n </button></div>&nbsp;&nbsp;&nbsp;&nbsp;\r\n\r\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"0\" *ngIf=\"abilita_export\" matTooltip=\"EXPORT PDF\" matTooltipPosition=\"above\">\r\n <img src=\"assets/icons/square-o/pdf.svg\" style=\"width:24px;height: 24px;cursor:pointer;\" (click)=\"print()\" alt=\"Export Excel\">\r\n </div>\r\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"0\" *ngIf=\"abilita_export\" matTooltip=\"EXPORT EXCEL\" matTooltipPosition=\"above\">\r\n <img src=\"assets/icons/square-o/xlsx.svg\" style=\"width:24px;height: 24px;cursor:pointer;\" (click)=\"export_excel()\" alt=\"Export Excel\">\r\n </div>\r\n\r\n </div>\r\n <div fxLayout=\"row\" fxLayoutAlign=\"end center\" style=\"width: 100%;\" *ngIf=\"enabled\">\r\n <FHGridToolBar (command)=\"docmd($event)\" [type]=\"toolbar_type\"\r\n\r\n [custom_commands]=\"toolbar_custom_commands\"\r\n [toolbar_wkfapp]=\"toolbar_wkfapp\"\r\n\r\n ></FHGridToolBar>\r\n\t\t</div>\r\n </div>\r\n\r\n <div fxLayout=\"row\" style=\"width:100%\" [fxFlex]=\"show_buttons ? 100:95\">\r\n<ag-grid-angular\r\n ref-agGrid\r\n style=\"width: 100%; height: 100%;\"\r\n id=\"myGrid\"\r\n\t\t\t\t\t\t\t\t (cellDoubleClicked)=\"onColumnEvent($event)\"\r\n (cellClicked)=\"onCellClicked($event)\"\r\n\t\t\t\t\t\t\t\t [headerHeight]=\"header_h\"\r\n [groupHeaderHeight]=\"header_h\"\r\n\r\n\t\t\t\t\t\t\t\t class=\"ag-theme-balham\"\r\n [singleClickEdit]=\"true\"\r\n [gridOptions]=\"gridOptions\"\r\n [columnDefs]=\"columnDefs\"\r\n\t\t\t\t\t\t\t\t [rowData]=\"rowData\"\r\n [getContextMenuItems]=\"abilita_export ? getContextMenuItems_e:getContextMenuItems_n_e\"\r\n\r\n (filterModified)=\"onFilterModified()\"\r\n\t\t\t\t\t\t\t\t (rowDoubleClicked)=\"onRowDClicked($event)\"\r\n\t\t\t\t\t\t\t\t (rowClicked)=\"onRowClicked($event)\"\r\n (columnVisible)=\"oncolumnEverythingChanged($event)\"\r\n\t\t\t\t\t\t\t\t (columnResized)=\"oncolumnEverythingChanged($event)\"\r\n\t\t\t\t\t\t\t\t (columnMoved)=\"oncolumnEverythingChanged($event)\"\r\n (cellValueChanged)=\"okr($event)\"\r\n\t\t\t\t\t\t\t\t (sortChanged)=\"onAfterSortChanged()\"\r\n [paginationPageSize]=\"num_per_pag\"\r\n (gridReady)=\"onReady($event)\">\r\n</ag-grid-angular>\r\n</div>\r\n</div>\r\n",
6965
+ template: "\r\n<div fxLayout=\"column\" fxFlexFill>\r\n\r\n <div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutAlign=\"center start\" fxLayoutGap=\"3px\" style=\"min-height: 55px\" [hidden]=\"!show_buttons\">\r\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"start center\" >\r\n <div>\r\n\t\t \t\t<h5>{{num_r}}&nbsp;{{label_elementi}}</h5>\r\n </div>\r\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n\r\n\t\t\t<div fxLayout=\"row\" fxLayoutAlign=\"start center\">\t<input matInput [placeholder]=\"trova_label\" (keydown)=\"keyDownFunctioncl($event)\" [(ngModel)]=\"ric_libera\"\r\n\t\t\t\t\t\t\t style=\"min-width:100px;max-width:180px;border:1px solid;min-height:30px\"></div>\r\n <div matTooltip=\"REMOVE FILTER\" matTooltipPosition=\"above\" *ngIf=\"show_pulisci_filtri\" >\r\n \t\t\t<button mat-flat-button (click)=\"pulisci_filtri()\" color=\"warn\">\r\n\t\t\t\t<mat-icon>filter_none</mat-icon>&nbsp;\r\n\t\t\t</button>\r\n </div>\r\n <div matTooltip=\"AUTO SIZE\" matTooltipPosition=\"above\">\r\n \t\t\t<button mat-flat-button (click)=\"autoSizeAll()\" color=\"primary\"\r\n *ngIf=\"show_buttons\">\r\n\t\t\t\t<mat-icon>compare_arrows</mat-icon>\r\n\t\t\t</button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"FIT SIZE\" matTooltipPosition=\"above\">\r\n\t \t\t<button mat-flat-button (click)=\"fitSizeAll()\" color=\"primary\"\r\n *ngIf=\"show_buttons\">\r\n\t\t\t\t<mat-icon>keyboard_tab</mat-icon>\r\n\t\t\t</button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"Refresh\" matTooltipPosition=\"above\">\r\n <button mat-flat-button (click)=\"Refresh()\" color=\"primary\"\r\n *ngIf=\"show_buttons\">\r\n <mat-icon>autorenew</mat-icon>\r\n </button>\r\n </div>\r\n <FHFilterComboBox fxHide fxShow.gt-sm [hidden]='!show_buttons || no_pref' (selchange)=\"ch_config()\" (fillend)=\"fe_cfg()\" #gf init_fill=\"false\"></FHFilterComboBox>\r\n\t\t\t\t<div matTooltip=\"Modifica Preferenza\" matTooltipPosition=\"above\" *ngIf=\"curr_config!='-1'\">\r\n\t\t\t\t\t<button mat-icon-button *ngIf=\"show_buttons && !no_pref\"\r\n\t\t\t\t\t\t\t\t\tstyle=\"color:rgb(248, 105, 10)\">\r\n\t\t\t\t\t\t<mat-icon (click)=\"edit_config()\">save</mat-icon>\r\n </button>\r\n\t\t\t\t</div>\r\n <div matTooltip=\"Elimina Preferenza\" matTooltipPosition=\"above\" *ngIf=\"curr_config!='-1'\">\r\n <button mat-icon-button *ngIf=\"show_buttons && !no_pref\"\r\n style=\"color:rgb(248, 105, 10)\">\r\n <mat-icon (click)=\"elimina_config()\">delete</mat-icon>\r\n </button>\r\n\r\n </div>\r\n\t\t\t\t<div fxHide fxShow.gt-sm matTooltip=\"Crea Nuova Preferenza\" matTooltipPosition=\"above\">\r\n\t\t\t\t\t<button mat-icon-button style=\"color:rgb(16, 98, 16)\" *ngIf=\"show_buttons && !no_pref\">\r\n\t\t\t\t\t\t<mat-icon (click)=\"insert_config()\">library_add</mat-icon>\r\n\t\t\t\t\t</button>\r\n\t\t\t\t</div>\r\n\r\n <mat-slide-toggle fxHide fxShow.gt-sm [hidden]='!show_buttons || no_pref' (click)=\"ck_flag()\" #toggle_mantieni>\r\n\t\t\t\t\t{{mantieni_impostazioni}}\r\n\t\t\t\t</mat-slide-toggle>\r\n\r\n\r\n \t&nbsp;\t<div fxHide fxShow.gt-sm matTooltip=\"HELP\" matTooltipPosition=\"above\">\r\n <button mat-flat-button (click)=\"help_window()\" color=\"primary\" *ngIf=\"show_buttons && show_help\" >\r\n\t\t\t<mat-icon>help</mat-icon>\r\n </button></div>&nbsp;&nbsp;&nbsp;&nbsp;\r\n\r\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"0\" *ngIf=\"abilita_export\" matTooltip=\"EXPORT PDF\" matTooltipPosition=\"above\">\r\n <img src=\"assets/icons/square-o/pdf.svg\" style=\"width:24px;height: 24px;cursor:pointer;\" (click)=\"print()\" alt=\"Export Excel\">\r\n </div>\r\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"0\" *ngIf=\"abilita_export\" matTooltip=\"EXPORT EXCEL\" matTooltipPosition=\"above\">\r\n <img src=\"assets/icons/square-o/xlsx.svg\" style=\"width:24px;height: 24px;cursor:pointer;\" (click)=\"export_excel()\" alt=\"Export Excel\">\r\n </div>\r\n\r\n </div>\r\n <div fxLayout=\"row\" fxLayoutAlign=\"end center\" style=\"width: 100%;\" *ngIf=\"enabled\">\r\n <FHGridToolBar (command)=\"docmd($event)\" [type]=\"toolbar_type\"\r\n\r\n [custom_commands]=\"toolbar_custom_commands\"\r\n [toolbar_wkfapp]=\"toolbar_wkfapp\"\r\n\r\n ></FHGridToolBar>\r\n\t\t</div>\r\n </div>\r\n\r\n <div fxLayout=\"row\" style=\"width:100%\" [fxFlex]=\"show_buttons ? 100:95\">\r\n<ag-grid-angular\r\n ref-agGrid\r\n style=\"width: 100%; height: 100%;\"\r\n id=\"myGrid\"\r\n\t\t\t\t\t\t\t\t (cellDoubleClicked)=\"onColumnEvent($event)\"\r\n (cellClicked)=\"onCellClicked($event)\"\r\n\t\t\t\t\t\t\t\t [headerHeight]=\"header_h\"\r\n [groupHeaderHeight]=\"header_h\"\r\n\r\n\t\t\t\t\t\t\t\t class=\"ag-theme-balham\"\r\n [singleClickEdit]=\"true\"\r\n [gridOptions]=\"gridOptions\"\r\n [columnDefs]=\"columnDefs\"\r\n\t\t\t\t\t\t\t\t [rowData]=\"rowData\"\r\n [getContextMenuItems]=\"abilita_export ? getContextMenuItems_e:getContextMenuItems_n_e\"\r\n\r\n (filterModified)=\"onFilterModified()\"\r\n\t\t\t\t\t\t\t\t (rowDoubleClicked)=\"onRowDClicked($event)\"\r\n\t\t\t\t\t\t\t\t (rowClicked)=\"onRowClicked($event)\"\r\n (columnVisible)=\"oncolumnEverythingChanged($event)\"\r\n\t\t\t\t\t\t\t\t (columnResized)=\"oncolumnEverythingChanged($event)\"\r\n\t\t\t\t\t\t\t\t (columnMoved)=\"oncolumnEverythingChanged($event)\"\r\n (cellValueChanged)=\"okr($event)\"\r\n\t\t\t\t\t\t\t\t (sortChanged)=\"onAfterSortChanged()\"\r\n [paginationPageSize]=\"num_per_pag\"\r\n (gridReady)=\"onReady($event)\">\r\n</ag-grid-angular>\r\n</div>\r\n</div>\r\n",
6965
6966
  styles: [`
6966
6967
 
6967
6968
  `]
@@ -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]="(dt_agg?.comm_c?dt_agg?.comm_c:0>0)?'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]="(dt_agg?.all_c?dt_agg?.all_c:0>0)?'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,