@fluxhub/fluxhub-lib 11.0.60 → 11.0.62
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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +18 -1
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/wkf_engine_v2/wkf_header_bar.js +60 -18
- package/esm2015/lib/wkf_engine_v2/wkfdatiaggiuntivi.js +2 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +60 -17
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/wkf_engine_v2/wkf_header_bar.d.ts +3 -0
- package/package.json +1 -1
|
@@ -25922,6 +25922,7 @@ class dati_aggiuntivi_v2 {
|
|
|
25922
25922
|
else
|
|
25923
25923
|
sv.push("");
|
|
25924
25924
|
}
|
|
25925
|
+
console.log('sv ', sv);
|
|
25925
25926
|
if (sv.length <= 1) {
|
|
25926
25927
|
this.c_canale = sv[0];
|
|
25927
25928
|
this.create_new_document();
|
|
@@ -26518,6 +26519,8 @@ class wkf_header_bar_v2 {
|
|
|
26518
26519
|
this.assegna_a = false;
|
|
26519
26520
|
this.next_label = false;
|
|
26520
26521
|
this.next_label_color = false;
|
|
26522
|
+
this.custom_commands_pri = [];
|
|
26523
|
+
this.custom_commands_sec = [];
|
|
26521
26524
|
this.back_lbl = 'Indietro';
|
|
26522
26525
|
this.save_lbl = 'Salva';
|
|
26523
26526
|
this.procedi_lbl = 'Procedi';
|
|
@@ -26534,10 +26537,23 @@ class wkf_header_bar_v2 {
|
|
|
26534
26537
|
this.command = new EventEmitter();
|
|
26535
26538
|
this.comment_inserted = new EventEmitter();
|
|
26536
26539
|
this.button_clicked = new EventEmitter();
|
|
26540
|
+
if (this.custom_commands != null)
|
|
26541
|
+
if (this.custom_commands.length > 0)
|
|
26542
|
+
this.set_custom_buttons();
|
|
26537
26543
|
}
|
|
26538
26544
|
exec_command(command) {
|
|
26539
26545
|
this.command.emit({ cmd: command });
|
|
26540
26546
|
}
|
|
26547
|
+
set_custom_buttons() {
|
|
26548
|
+
this.custom_commands_pri = [];
|
|
26549
|
+
this.custom_commands_sec = [];
|
|
26550
|
+
this.custom_commands.forEach((v) => {
|
|
26551
|
+
if ((v.primary || false))
|
|
26552
|
+
this.custom_commands_pri.push(v);
|
|
26553
|
+
else
|
|
26554
|
+
this.custom_commands_sec.push(v);
|
|
26555
|
+
});
|
|
26556
|
+
}
|
|
26541
26557
|
revisione() { this.button_clicked.emit('revisione'); if (this.dt_agg != null)
|
|
26542
26558
|
this.dt_agg.revisione(); }
|
|
26543
26559
|
back() { this.button_clicked.emit('back'); if (this.dt_agg != null)
|
|
@@ -26597,6 +26613,31 @@ wkf_header_bar_v2.decorators = [
|
|
|
26597
26613
|
>
|
|
26598
26614
|
{{back_lbl}}</button
|
|
26599
26615
|
></div>
|
|
26616
|
+
|
|
26617
|
+
|
|
26618
|
+
<div
|
|
26619
|
+
*ngIf="custom_commands_pri.length > 0"
|
|
26620
|
+
fxLayoutGap="10px"
|
|
26621
|
+
fxLayout="row"
|
|
26622
|
+
fxLayoutAlign="end center"
|
|
26623
|
+
>
|
|
26624
|
+
|
|
26625
|
+
<div *ngFor="let app of custom_commands_pri" fxLayout="row"
|
|
26626
|
+
fxLayoutGap="5px">
|
|
26627
|
+
<div><button [hidden]="app.hidden!=null && app.hidden"
|
|
26628
|
+
mat-flat-button
|
|
26629
|
+
[color]="app.color"
|
|
26630
|
+
|
|
26631
|
+
(click)="exec_command(app.command)"
|
|
26632
|
+
>
|
|
26633
|
+
<mat-icon *ngIf="app.icon != null">{{ app.icon }}</mat-icon
|
|
26634
|
+
>{{ app.label | translate}}
|
|
26635
|
+
</button>
|
|
26636
|
+
</div>
|
|
26637
|
+
</div>
|
|
26638
|
+
</div>
|
|
26639
|
+
|
|
26640
|
+
|
|
26600
26641
|
<div *ngIf="(edit_button || force_save) && !in_carico">
|
|
26601
26642
|
<button
|
|
26602
26643
|
mat-flat-button
|
|
@@ -26719,25 +26760,27 @@ wkf_header_bar_v2.decorators = [
|
|
|
26719
26760
|
|
|
26720
26761
|
</div>
|
|
26721
26762
|
</div>
|
|
26722
|
-
|
|
26723
|
-
|
|
26724
|
-
|
|
26725
|
-
|
|
26726
|
-
|
|
26727
|
-
>
|
|
26728
|
-
|
|
26729
|
-
<div *ngFor="let app of custom_commands" fxLayout="row"
|
|
26730
|
-
fxLayoutGap="5px">
|
|
26731
|
-
<div><button [hidden]="app.hidden!=null && app.hidden"
|
|
26732
|
-
mat-flat-button
|
|
26733
|
-
[color]="app.color"
|
|
26734
|
-
(click)="exec_command(app.command)"
|
|
26763
|
+
<div
|
|
26764
|
+
*ngIf="custom_commands_sec.length > 0"
|
|
26765
|
+
fxLayoutGap="10px"
|
|
26766
|
+
fxLayout="row"
|
|
26767
|
+
fxLayoutAlign="end center"
|
|
26735
26768
|
>
|
|
26736
|
-
|
|
26737
|
-
|
|
26738
|
-
|
|
26769
|
+
|
|
26770
|
+
<div *ngFor="let app of custom_commands_sec" fxLayout="row"
|
|
26771
|
+
fxLayoutGap="5px">
|
|
26772
|
+
<div><button [hidden]="app.hidden!=null && app.hidden"
|
|
26773
|
+
mat-flat-button
|
|
26774
|
+
[color]="app.color"
|
|
26775
|
+
|
|
26776
|
+
(click)="exec_command(app.command)"
|
|
26777
|
+
>
|
|
26778
|
+
<mat-icon *ngIf="app.icon != null">{{ app.icon }}</mat-icon
|
|
26779
|
+
>{{ app.label | translate}}
|
|
26780
|
+
</button>
|
|
26781
|
+
</div>
|
|
26782
|
+
</div>
|
|
26739
26783
|
</div>
|
|
26740
|
-
</div>
|
|
26741
26784
|
</div>
|
|
26742
26785
|
`
|
|
26743
26786
|
},] }
|