@fluxhub/fluxhub-lib 10.0.555 → 10.0.558

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.
@@ -16351,6 +16351,11 @@ class FHGridToolBarComponent {
16351
16351
  this.sRow = null;
16352
16352
  this.command = new EventEmitter();
16353
16353
  }
16354
+ ngAfterViewInit() {
16355
+ for (let i = 0; i < this.custom_commands.length; i++)
16356
+ if (this.custom_commands[i].type == null)
16357
+ this.custom_commands[i].type = 'button';
16358
+ }
16354
16359
  refresh_access(wkfx) {
16355
16360
  this.toolbar_wkfapp = wkfx;
16356
16361
  }
@@ -16560,7 +16565,7 @@ FHGridToolBarComponent.decorators = [
16560
16565
  {{elimina_label | translate}}
16561
16566
 
16562
16567
  </button>
16563
- <div *ngFor="let app of custom_commands" fxLayout="row" fxLayoutGap="10px">
16568
+ <div *ngFor="let app of custom_commands" fxLayout="column" fxLayoutGap="5px">
16564
16569
  <div *ngIf="app.type == 'button' || app.type == null">
16565
16570
  <button [hidden]="app.hidden!=null && app.hidden"
16566
16571
  mat-flat-button
@@ -16738,6 +16743,7 @@ class dati_aggiuntivi {
16738
16743
  this.all_c = 0;
16739
16744
  this.comm_c = 0;
16740
16745
  this.forza_canale = "";
16746
+ this.forza_canale_curr = "";
16741
16747
  /*
16742
16748
  public open_allegati(){
16743
16749
 
@@ -16850,6 +16856,7 @@ class dati_aggiuntivi {
16850
16856
  doApprova() {
16851
16857
  this.b_respingi = false;
16852
16858
  this.over_canale_iniz();
16859
+ this.over_canale_curr();
16853
16860
  let liv = 0;
16854
16861
  this.nlevel = null;
16855
16862
  if (this.m_obj.stato == 0) {
@@ -18009,6 +18016,7 @@ class dati_aggiuntivi {
18009
18016
  this.livs = r;
18010
18017
  this.apply_over_load();
18011
18018
  this.over_canale_iniz();
18019
+ this.over_canale_curr();
18012
18020
  if (this.m_obj.stato <= 10)
18013
18021
  for (var i = 0; i < this.livs.length; i++)
18014
18022
  if (this.livs[i].idp.toUpperCase() == this.user_idp.toUpperCase() ||
@@ -18074,6 +18082,24 @@ class dati_aggiuntivi {
18074
18082
  this.m_obj.canale = this.forza_canale;
18075
18083
  this.c_canale = this.forza_canale;
18076
18084
  }
18085
+ over_canale_curr() {
18086
+ if (this.forza_canale_curr == "")
18087
+ return;
18088
+ if (this.m_obj.stato == null)
18089
+ return;
18090
+ let min_liv = 0;
18091
+ for (let i = 0; i < this.livs.length; i++)
18092
+ if (this.livs[i].livello == this.m_obj.stato) {
18093
+ min_liv = this.livs[i].livello;
18094
+ }
18095
+ for (let i = 0; i < this.livs.length; i++)
18096
+ if (this.livs[i].livello == min_liv) {
18097
+ this.livs[i].gruppo_parallelo = this.forza_canale_curr;
18098
+ }
18099
+ if (this.m_obj.stato < 20)
18100
+ this.m_obj.canale = this.forza_canale_curr;
18101
+ this.c_canale = this.forza_canale_curr;
18102
+ }
18077
18103
  ck_canale_multiplo() {
18078
18104
  let liv = 0;
18079
18105
  let min_liv = 0;