@fluxhub/fluxhub-lib 10.0.94 → 10.0.96
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 +11 -3
- 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/wkf_header_bar.js +10 -6
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +5 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +13 -6
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/wkf_engine/wkf_header_bar.d.ts +2 -0
- package/lib/wkf_engine/wkfdatiaggiuntivi.d.ts +1 -1
- package/package.json +1 -1
|
@@ -15741,9 +15741,12 @@ class dati_aggiuntivi {
|
|
|
15741
15741
|
this.app_s.getState().wkf_doc_info.uiid_doc = this.m_obj.id_documento;
|
|
15742
15742
|
this.app_s.getState().wkf_doc_info.canale = this.m_obj.canale;
|
|
15743
15743
|
}
|
|
15744
|
-
evt_salv(rip_pulsanti = true) {
|
|
15744
|
+
evt_salv(rip_pulsanti = true, check_on_save = false) {
|
|
15745
15745
|
this.b_rip_pulsanti = rip_pulsanti;
|
|
15746
15746
|
this.btnprocedi = false;
|
|
15747
|
+
if (check_on_save)
|
|
15748
|
+
if (!this.ck_field())
|
|
15749
|
+
return;
|
|
15747
15750
|
this.salva();
|
|
15748
15751
|
}
|
|
15749
15752
|
salva() {
|
|
@@ -17468,7 +17471,9 @@ class wkf_header_bar {
|
|
|
17468
17471
|
this.edit_button = false;
|
|
17469
17472
|
this.respingi_button = false;
|
|
17470
17473
|
this.procedi_button = true;
|
|
17474
|
+
this.utility_button = true;
|
|
17471
17475
|
this.force_save = false;
|
|
17476
|
+
this.check_on_save = false;
|
|
17472
17477
|
this.admin_role = '[ZZZ_DIS_CC]';
|
|
17473
17478
|
this.sovra_path = '';
|
|
17474
17479
|
this.button_clicked = new EventEmitter();
|
|
@@ -17476,7 +17481,7 @@ class wkf_header_bar {
|
|
|
17476
17481
|
back() { this.button_clicked.emit('back'); if (this.dt_agg != null)
|
|
17477
17482
|
this.dt_agg.back(this.edit_button); }
|
|
17478
17483
|
evt_salv() { this.button_clicked.emit('evt_salv'); if (this.dt_agg != null)
|
|
17479
|
-
this.dt_agg.evt_salv(this.edit_button); }
|
|
17484
|
+
this.dt_agg.evt_salv(this.edit_button, this.check_on_save); }
|
|
17480
17485
|
respingi() { this.button_clicked.emit('respingi'); if (this.dt_agg != null)
|
|
17481
17486
|
this.dt_agg.respingi(); }
|
|
17482
17487
|
procedi() { this.button_clicked.emit('procedi'); if (this.dt_agg != null)
|
|
@@ -17550,12 +17555,12 @@ wkf_header_bar.decorators = [
|
|
|
17550
17555
|
<button
|
|
17551
17556
|
mat-flat-button
|
|
17552
17557
|
(click)="open_info()"
|
|
17553
|
-
*ngIf="!m_appService.getState().pageFullscreen"
|
|
17558
|
+
*ngIf="!m_appService.getState().pageFullscreen && utility_button"
|
|
17554
17559
|
>
|
|
17555
17560
|
<mat-icon>info_outline</mat-icon> Info Doc</button
|
|
17556
17561
|
>
|
|
17557
17562
|
<button
|
|
17558
|
-
mat-flat-button
|
|
17563
|
+
mat-flat-button *ngIf="utility_button"
|
|
17559
17564
|
[color]="(dt_agg?.comm_c ? dt_agg?.comm_c : 0 > 0) ? 'accent' : ''"
|
|
17560
17565
|
[matBadge]="dt_agg?.comm_c ? dt_agg?.comm_c : 0"
|
|
17561
17566
|
matBadgePosition="before"
|
|
@@ -17567,7 +17572,7 @@ wkf_header_bar.decorators = [
|
|
|
17567
17572
|
</div>
|
|
17568
17573
|
<div fxLayout="row">
|
|
17569
17574
|
<button
|
|
17570
|
-
mat-flat-button
|
|
17575
|
+
mat-flat-button *ngIf="utility_button"
|
|
17571
17576
|
[color]="(dt_agg?.all_c ? dt_agg?.all_c : 0 > 0) ? 'accent' : ''"
|
|
17572
17577
|
[matBadge]="dt_agg?.all_c ? dt_agg?.all_c : 0"
|
|
17573
17578
|
matBadgePosition="before"
|
|
@@ -17579,7 +17584,7 @@ wkf_header_bar.decorators = [
|
|
|
17579
17584
|
<button
|
|
17580
17585
|
mat-flat-button
|
|
17581
17586
|
(click)="open_wkf()"
|
|
17582
|
-
*ngIf="!m_appService.getState().pageFullscreen"
|
|
17587
|
+
*ngIf="!m_appService.getState().pageFullscreen && utility_button"
|
|
17583
17588
|
>
|
|
17584
17589
|
<mat-icon>transfer_within_a_station</mat-icon>Workflow
|
|
17585
17590
|
</button>
|
|
@@ -17597,7 +17602,9 @@ wkf_header_bar.propDecorators = {
|
|
|
17597
17602
|
edit_button: [{ type: Input }],
|
|
17598
17603
|
respingi_button: [{ type: Input }],
|
|
17599
17604
|
procedi_button: [{ type: Input }],
|
|
17605
|
+
utility_button: [{ type: Input }],
|
|
17600
17606
|
force_save: [{ type: Input }],
|
|
17607
|
+
check_on_save: [{ type: Input }],
|
|
17601
17608
|
admin_role: [{ type: Input }],
|
|
17602
17609
|
sovra_path: [{ type: Input }],
|
|
17603
17610
|
button_clicked: [{ type: Output }]
|