@fluxhub/fluxhub-lib 19.0.202 → 19.0.203
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.
|
@@ -32235,9 +32235,17 @@ class FHWorkflowForm {
|
|
|
32235
32235
|
this.m_dataService.doQuery(p).subscribe();
|
|
32236
32236
|
}
|
|
32237
32237
|
save_alreadypressed = false;
|
|
32238
|
+
// True mentre un salvataggio/avanzamento e` in volo (round-trip su DB). La header
|
|
32239
|
+
// bar la usa per disabilitare Salva/Procedi/Respingi ed evitare doppi click che,
|
|
32240
|
+
// partendo mentre una save e` ancora in corso, corromperebbero lo stato
|
|
32241
|
+
// (oper/btnprocedi). Settata in save_agg, azzerata a fine salvataggio
|
|
32242
|
+
// (ok_insert_aggiuntivi) o su errore della query di salvataggio.
|
|
32243
|
+
b_saving = false;
|
|
32238
32244
|
salva() {
|
|
32239
32245
|
if (!this.can_save())
|
|
32240
32246
|
return;
|
|
32247
|
+
if (this.b_saving)
|
|
32248
|
+
return;
|
|
32241
32249
|
if (this.save_alreadypressed)
|
|
32242
32250
|
return;
|
|
32243
32251
|
this.save_alreadypressed = true;
|
|
@@ -33122,6 +33130,8 @@ class FHWorkflowForm {
|
|
|
33122
33130
|
respingi() {
|
|
33123
33131
|
if (!this.can_save())
|
|
33124
33132
|
return;
|
|
33133
|
+
if (this.b_saving)
|
|
33134
|
+
return;
|
|
33125
33135
|
this.oper = 'respingi';
|
|
33126
33136
|
this.btnprocedi = true;
|
|
33127
33137
|
this.update_status(false, false, null, null, 8);
|
|
@@ -33130,6 +33140,8 @@ class FHWorkflowForm {
|
|
|
33130
33140
|
procedi() {
|
|
33131
33141
|
if (!this.can_save())
|
|
33132
33142
|
return;
|
|
33143
|
+
if (this.b_saving)
|
|
33144
|
+
return;
|
|
33133
33145
|
this.oper = 'procedi';
|
|
33134
33146
|
this.btnprocedi = true;
|
|
33135
33147
|
this.update_status(false, false, null, null, 9);
|
|
@@ -33273,6 +33285,7 @@ class FHWorkflowForm {
|
|
|
33273
33285
|
}
|
|
33274
33286
|
b_edit_before = false;
|
|
33275
33287
|
save_agg() {
|
|
33288
|
+
this.b_saving = true;
|
|
33276
33289
|
this.before_save();
|
|
33277
33290
|
this.b_edit_before = this.b_edit && this.b_rip_pulsanti;
|
|
33278
33291
|
this.update_status(false, false, null, null, 12);
|
|
@@ -33336,9 +33349,15 @@ class FHWorkflowForm {
|
|
|
33336
33349
|
if (data.result_msg == 'OK') {
|
|
33337
33350
|
this.ok_insert_aggiuntivi();
|
|
33338
33351
|
}
|
|
33339
|
-
|
|
33352
|
+
else {
|
|
33353
|
+
this.b_saving = false;
|
|
33354
|
+
}
|
|
33355
|
+
else
|
|
33356
|
+
this.b_saving = false;
|
|
33357
|
+
}, (err) => { this.b_saving = false; });
|
|
33340
33358
|
}
|
|
33341
33359
|
ok_insert_aggiuntivi() {
|
|
33360
|
+
this.b_saving = false;
|
|
33342
33361
|
if (!this.btnprocedi) {
|
|
33343
33362
|
this.alert('DOCUMENTO SALVATO', 0);
|
|
33344
33363
|
this.after_save();
|
|
@@ -34348,6 +34367,7 @@ class FHWorkflowHeaderBar {
|
|
|
34348
34367
|
allegati_lbl = 'Allegati';
|
|
34349
34368
|
workflow_lbl = 'Workflow';
|
|
34350
34369
|
prendi_in_carico_lbl = 'Prendi in Carico';
|
|
34370
|
+
saving_lbl = 'Salvataggio...';
|
|
34351
34371
|
b_revisione = false;
|
|
34352
34372
|
admin_role = '[ZZZ_DIS_CC]';
|
|
34353
34373
|
sovra_path = '';
|
|
@@ -34437,6 +34457,7 @@ class FHWorkflowHeaderBar {
|
|
|
34437
34457
|
this.commenti_lbl = this._trs.instant('Commenti');
|
|
34438
34458
|
this.allegati_lbl = this._trs.instant('Allegati');
|
|
34439
34459
|
this.workflow_lbl = this._trs.instant('Workflow');
|
|
34460
|
+
this.saving_lbl = this._trs.instant('Salvataggio...');
|
|
34440
34461
|
});
|
|
34441
34462
|
}
|
|
34442
34463
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHWorkflowHeaderBar, deps: [{ token: AppService }, { token: i3.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -34500,11 +34521,24 @@ class FHWorkflowHeaderBar {
|
|
|
34500
34521
|
(click)="evt_salv()"
|
|
34501
34522
|
color="primary"
|
|
34502
34523
|
style="font-weight:bold"
|
|
34524
|
+
[disabled]="dt_agg?.b_saving"
|
|
34503
34525
|
>
|
|
34504
34526
|
{{ save_lbl | translate }}
|
|
34505
34527
|
</button>
|
|
34506
34528
|
</div>
|
|
34507
34529
|
|
|
34530
|
+
<!-- Indicatore di salvataggio in corso: i pulsanti azione possono sparire
|
|
34531
|
+
durante la save (update_status), lo spinner segnala comunque l'operazione. -->
|
|
34532
|
+
<div
|
|
34533
|
+
*ngIf="dt_agg?.b_saving"
|
|
34534
|
+
fxLayout="row"
|
|
34535
|
+
fxLayoutAlign="start center"
|
|
34536
|
+
fxLayoutGap="8px"
|
|
34537
|
+
>
|
|
34538
|
+
<mat-spinner [diameter]="22" color="primary"></mat-spinner>
|
|
34539
|
+
<span style="font-weight:500;color:#555;">{{ saving_lbl | translate }}</span>
|
|
34540
|
+
</div>
|
|
34541
|
+
|
|
34508
34542
|
<div>
|
|
34509
34543
|
<button
|
|
34510
34544
|
mat-flat-button
|
|
@@ -34522,6 +34556,7 @@ class FHWorkflowHeaderBar {
|
|
|
34522
34556
|
mat-flat-button
|
|
34523
34557
|
(click)="respingi()"
|
|
34524
34558
|
*ngIf="edit_button && respingi_button && !in_carico"
|
|
34559
|
+
[disabled]="dt_agg?.b_saving"
|
|
34525
34560
|
style="font-weight:bold"
|
|
34526
34561
|
[style.background-color]="
|
|
34527
34562
|
dt_agg.reject_back_ground_color + ' !important'
|
|
@@ -34535,6 +34570,7 @@ class FHWorkflowHeaderBar {
|
|
|
34535
34570
|
mat-flat-button
|
|
34536
34571
|
(click)="procedi()"
|
|
34537
34572
|
*ngIf="edit_button && procedi_button && !in_carico"
|
|
34573
|
+
[disabled]="dt_agg?.b_saving"
|
|
34538
34574
|
style="font-weight:bold"
|
|
34539
34575
|
[style.background-color]="
|
|
34540
34576
|
dt_agg.next_back_ground_color + ' !important'
|
|
@@ -34666,13 +34702,13 @@ class FHWorkflowHeaderBar {
|
|
|
34666
34702
|
</div>
|
|
34667
34703
|
</div>
|
|
34668
34704
|
</div>
|
|
34669
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i8$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatBadgeModule }, { kind: "directive", type: i6$4.MatBadge, selector: "[matBadge]", inputs: ["matBadgeColor", "matBadgeOverlap", "matBadgeDisabled", "matBadgePosition", "matBadge", "matBadgeDescription", "matBadgeSize", "matBadgeHidden"] }, { kind: "ngmodule", type: FlexLayoutModule }, { kind: "directive", type: i9$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i9$1.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i9$1.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }] });
|
|
34705
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i8$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatBadgeModule }, { kind: "directive", type: i6$4.MatBadge, selector: "[matBadge]", inputs: ["matBadgeColor", "matBadgeOverlap", "matBadgeDisabled", "matBadgePosition", "matBadge", "matBadgeDescription", "matBadgeSize", "matBadgeHidden"] }, { kind: "ngmodule", type: FlexLayoutModule }, { kind: "directive", type: i9$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i9$1.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i9$1.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i9.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }] });
|
|
34670
34706
|
}
|
|
34671
34707
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHWorkflowHeaderBar, decorators: [{
|
|
34672
34708
|
type: Component,
|
|
34673
34709
|
args: [{
|
|
34674
34710
|
selector: 'FHWorkflowHeaderBar',
|
|
34675
|
-
imports: [TranslateModule, MatButtonModule, MatIconModule, CommonModule, MatBadgeModule, FlexLayoutModule],
|
|
34711
|
+
imports: [TranslateModule, MatButtonModule, MatIconModule, CommonModule, MatBadgeModule, FlexLayoutModule, MatProgressSpinnerModule],
|
|
34676
34712
|
template: `
|
|
34677
34713
|
<div
|
|
34678
34714
|
fxLayout="row"
|
|
@@ -34733,11 +34769,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
34733
34769
|
(click)="evt_salv()"
|
|
34734
34770
|
color="primary"
|
|
34735
34771
|
style="font-weight:bold"
|
|
34772
|
+
[disabled]="dt_agg?.b_saving"
|
|
34736
34773
|
>
|
|
34737
34774
|
{{ save_lbl | translate }}
|
|
34738
34775
|
</button>
|
|
34739
34776
|
</div>
|
|
34740
34777
|
|
|
34778
|
+
<!-- Indicatore di salvataggio in corso: i pulsanti azione possono sparire
|
|
34779
|
+
durante la save (update_status), lo spinner segnala comunque l'operazione. -->
|
|
34780
|
+
<div
|
|
34781
|
+
*ngIf="dt_agg?.b_saving"
|
|
34782
|
+
fxLayout="row"
|
|
34783
|
+
fxLayoutAlign="start center"
|
|
34784
|
+
fxLayoutGap="8px"
|
|
34785
|
+
>
|
|
34786
|
+
<mat-spinner [diameter]="22" color="primary"></mat-spinner>
|
|
34787
|
+
<span style="font-weight:500;color:#555;">{{ saving_lbl | translate }}</span>
|
|
34788
|
+
</div>
|
|
34789
|
+
|
|
34741
34790
|
<div>
|
|
34742
34791
|
<button
|
|
34743
34792
|
mat-flat-button
|
|
@@ -34755,6 +34804,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
34755
34804
|
mat-flat-button
|
|
34756
34805
|
(click)="respingi()"
|
|
34757
34806
|
*ngIf="edit_button && respingi_button && !in_carico"
|
|
34807
|
+
[disabled]="dt_agg?.b_saving"
|
|
34758
34808
|
style="font-weight:bold"
|
|
34759
34809
|
[style.background-color]="
|
|
34760
34810
|
dt_agg.reject_back_ground_color + ' !important'
|
|
@@ -34768,6 +34818,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
34768
34818
|
mat-flat-button
|
|
34769
34819
|
(click)="procedi()"
|
|
34770
34820
|
*ngIf="edit_button && procedi_button && !in_carico"
|
|
34821
|
+
[disabled]="dt_agg?.b_saving"
|
|
34771
34822
|
style="font-weight:bold"
|
|
34772
34823
|
[style.background-color]="
|
|
34773
34824
|
dt_agg.next_back_ground_color + ' !important'
|