@fluxhub/fluxhub-lib 19.0.226 → 19.0.227

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.
@@ -27063,6 +27063,9 @@ class FHToolBarCustomAction {
27063
27063
  icon;
27064
27064
  hidden = false;
27065
27065
  primary = false;
27066
+ // Posizione nella barra. Se omessa: 'left' quando primary è true (retrocompatibile),
27067
+ // altrimenti 'right'.
27068
+ position;
27066
27069
  }
27067
27070
 
27068
27071
  class OfficeOperation {
@@ -35036,6 +35039,7 @@ class FHWorkflowHeaderBar {
35036
35039
  next_label_color = false;
35037
35040
  tipologiaAllegati = '';
35038
35041
  custom_commands_pri = [];
35042
+ custom_commands_mid = [];
35039
35043
  custom_commands_sec = [];
35040
35044
  back_lbl = 'Indietro';
35041
35045
  save_lbl = 'Salva';
@@ -35058,10 +35062,16 @@ class FHWorkflowHeaderBar {
35058
35062
  }
35059
35063
  set_custom_buttons() {
35060
35064
  this.custom_commands_pri = [];
35065
+ this.custom_commands_mid = [];
35061
35066
  this.custom_commands_sec = [];
35062
35067
  this.custom_commands.forEach((v) => {
35063
- if (v.primary || false)
35068
+ // Posizione esplicita se indicata; altrimenti retrocompatibile:
35069
+ // primary=true -> 'left', altrimenti -> 'right'.
35070
+ const pos = v.position ?? (v.primary ? 'left' : 'right');
35071
+ if (pos === 'left')
35064
35072
  this.custom_commands_pri.push(v);
35073
+ else if (pos === 'actions')
35074
+ this.custom_commands_mid.push(v);
35065
35075
  else
35066
35076
  this.custom_commands_sec.push(v);
35067
35077
  });
@@ -35249,6 +35259,22 @@ class FHWorkflowHeaderBar {
35249
35259
  {{ (dt_agg.reject_label||'Respingi') | translate }}
35250
35260
  </button>
35251
35261
  &nbsp;&nbsp;
35262
+ <!-- Pulsanti custom con position='actions': tra Respingi e Procedi
35263
+ (es. un pulsante da mostrare subito prima del tasto di avanzamento). -->
35264
+ <ng-container *ngIf="custom_commands_mid.length > 0">
35265
+ <ng-container *ngFor="let app of custom_commands_mid">
35266
+ <button
35267
+ [hidden]="app.hidden != null && app.hidden"
35268
+ mat-flat-button
35269
+ [color]="app.color"
35270
+ (click)="exec_command(app.command)"
35271
+ >
35272
+ <mat-icon *ngIf="app.icon != null">{{ app.icon }}</mat-icon
35273
+ >{{ app.label | translate }}
35274
+ </button>
35275
+ &nbsp;&nbsp;
35276
+ </ng-container>
35277
+ </ng-container>
35252
35278
  <button
35253
35279
  mat-flat-button
35254
35280
  (click)="procedi()"
@@ -35500,6 +35526,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
35500
35526
  {{ (dt_agg.reject_label||'Respingi') | translate }}
35501
35527
  </button>
35502
35528
  &nbsp;&nbsp;
35529
+ <!-- Pulsanti custom con position='actions': tra Respingi e Procedi
35530
+ (es. un pulsante da mostrare subito prima del tasto di avanzamento). -->
35531
+ <ng-container *ngIf="custom_commands_mid.length > 0">
35532
+ <ng-container *ngFor="let app of custom_commands_mid">
35533
+ <button
35534
+ [hidden]="app.hidden != null && app.hidden"
35535
+ mat-flat-button
35536
+ [color]="app.color"
35537
+ (click)="exec_command(app.command)"
35538
+ >
35539
+ <mat-icon *ngIf="app.icon != null">{{ app.icon }}</mat-icon
35540
+ >{{ app.label | translate }}
35541
+ </button>
35542
+ &nbsp;&nbsp;
35543
+ </ng-container>
35544
+ </ng-container>
35503
35545
  <button
35504
35546
  mat-flat-button
35505
35547
  (click)="procedi()"