@fluxhub/fluxhub-lib 19.0.202 → 19.0.204
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.
|
@@ -27452,6 +27452,7 @@ class win_recupera_doc_v2 {
|
|
|
27452
27452
|
datagrid;
|
|
27453
27453
|
title = "RECUPERA DOCUMENTO";
|
|
27454
27454
|
buttons = [];
|
|
27455
|
+
row_selected = false;
|
|
27455
27456
|
constructor(dialogRef, m_appService, toastr, _dataService, _tsr) {
|
|
27456
27457
|
this.dialogRef = dialogRef;
|
|
27457
27458
|
this.m_appService = m_appService;
|
|
@@ -27463,17 +27464,34 @@ class win_recupera_doc_v2 {
|
|
|
27463
27464
|
updateButtons() {
|
|
27464
27465
|
this.buttons = [
|
|
27465
27466
|
{
|
|
27466
|
-
text: '
|
|
27467
|
+
text: 'RECUPERA',
|
|
27467
27468
|
type: 'flat',
|
|
27468
27469
|
color: 'primary',
|
|
27470
|
+
returnValue: 'recupera',
|
|
27471
|
+
minWidth: 110,
|
|
27472
|
+
disabled: !this.row_selected
|
|
27473
|
+
},
|
|
27474
|
+
{
|
|
27475
|
+
text: 'CHIUDI',
|
|
27476
|
+
type: 'stroked',
|
|
27477
|
+
color: 'warn',
|
|
27469
27478
|
returnValue: 'close',
|
|
27470
27479
|
minWidth: 110
|
|
27471
27480
|
}
|
|
27472
27481
|
];
|
|
27473
27482
|
}
|
|
27483
|
+
onRowSelected() {
|
|
27484
|
+
this.row_selected = !!this.datagrid?.sRow;
|
|
27485
|
+
this.updateButtons();
|
|
27486
|
+
}
|
|
27474
27487
|
onBeforeClose(event) {
|
|
27475
27488
|
event.preventDefault();
|
|
27476
|
-
|
|
27489
|
+
if (event.returnValue === 'recupera') {
|
|
27490
|
+
this.edit(this.datagrid?.sRow);
|
|
27491
|
+
}
|
|
27492
|
+
else {
|
|
27493
|
+
this.close();
|
|
27494
|
+
}
|
|
27477
27495
|
}
|
|
27478
27496
|
close() {
|
|
27479
27497
|
this.dialogRef.close(null);
|
|
@@ -27544,6 +27562,7 @@ class win_recupera_doc_v2 {
|
|
|
27544
27562
|
vis
|
|
27545
27563
|
#dtm
|
|
27546
27564
|
(dclicked)="edit($event)"
|
|
27565
|
+
(clicked)="onRowSelected()"
|
|
27547
27566
|
g_width="100%"
|
|
27548
27567
|
g_height="100%"
|
|
27549
27568
|
grid_config_key="WKF_DOCUMENTS_RECOVERY"
|
|
@@ -27588,6 +27607,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
27588
27607
|
vis
|
|
27589
27608
|
#dtm
|
|
27590
27609
|
(dclicked)="edit($event)"
|
|
27610
|
+
(clicked)="onRowSelected()"
|
|
27591
27611
|
g_width="100%"
|
|
27592
27612
|
g_height="100%"
|
|
27593
27613
|
grid_config_key="WKF_DOCUMENTS_RECOVERY"
|
|
@@ -32235,9 +32255,17 @@ class FHWorkflowForm {
|
|
|
32235
32255
|
this.m_dataService.doQuery(p).subscribe();
|
|
32236
32256
|
}
|
|
32237
32257
|
save_alreadypressed = false;
|
|
32258
|
+
// True mentre un salvataggio/avanzamento e` in volo (round-trip su DB). La header
|
|
32259
|
+
// bar la usa per disabilitare Salva/Procedi/Respingi ed evitare doppi click che,
|
|
32260
|
+
// partendo mentre una save e` ancora in corso, corromperebbero lo stato
|
|
32261
|
+
// (oper/btnprocedi). Settata in save_agg, azzerata a fine salvataggio
|
|
32262
|
+
// (ok_insert_aggiuntivi) o su errore della query di salvataggio.
|
|
32263
|
+
b_saving = false;
|
|
32238
32264
|
salva() {
|
|
32239
32265
|
if (!this.can_save())
|
|
32240
32266
|
return;
|
|
32267
|
+
if (this.b_saving)
|
|
32268
|
+
return;
|
|
32241
32269
|
if (this.save_alreadypressed)
|
|
32242
32270
|
return;
|
|
32243
32271
|
this.save_alreadypressed = true;
|
|
@@ -33122,6 +33150,8 @@ class FHWorkflowForm {
|
|
|
33122
33150
|
respingi() {
|
|
33123
33151
|
if (!this.can_save())
|
|
33124
33152
|
return;
|
|
33153
|
+
if (this.b_saving)
|
|
33154
|
+
return;
|
|
33125
33155
|
this.oper = 'respingi';
|
|
33126
33156
|
this.btnprocedi = true;
|
|
33127
33157
|
this.update_status(false, false, null, null, 8);
|
|
@@ -33130,6 +33160,8 @@ class FHWorkflowForm {
|
|
|
33130
33160
|
procedi() {
|
|
33131
33161
|
if (!this.can_save())
|
|
33132
33162
|
return;
|
|
33163
|
+
if (this.b_saving)
|
|
33164
|
+
return;
|
|
33133
33165
|
this.oper = 'procedi';
|
|
33134
33166
|
this.btnprocedi = true;
|
|
33135
33167
|
this.update_status(false, false, null, null, 9);
|
|
@@ -33273,6 +33305,7 @@ class FHWorkflowForm {
|
|
|
33273
33305
|
}
|
|
33274
33306
|
b_edit_before = false;
|
|
33275
33307
|
save_agg() {
|
|
33308
|
+
this.b_saving = true;
|
|
33276
33309
|
this.before_save();
|
|
33277
33310
|
this.b_edit_before = this.b_edit && this.b_rip_pulsanti;
|
|
33278
33311
|
this.update_status(false, false, null, null, 12);
|
|
@@ -33336,9 +33369,15 @@ class FHWorkflowForm {
|
|
|
33336
33369
|
if (data.result_msg == 'OK') {
|
|
33337
33370
|
this.ok_insert_aggiuntivi();
|
|
33338
33371
|
}
|
|
33339
|
-
|
|
33372
|
+
else {
|
|
33373
|
+
this.b_saving = false;
|
|
33374
|
+
}
|
|
33375
|
+
else
|
|
33376
|
+
this.b_saving = false;
|
|
33377
|
+
}, (err) => { this.b_saving = false; });
|
|
33340
33378
|
}
|
|
33341
33379
|
ok_insert_aggiuntivi() {
|
|
33380
|
+
this.b_saving = false;
|
|
33342
33381
|
if (!this.btnprocedi) {
|
|
33343
33382
|
this.alert('DOCUMENTO SALVATO', 0);
|
|
33344
33383
|
this.after_save();
|
|
@@ -34348,6 +34387,7 @@ class FHWorkflowHeaderBar {
|
|
|
34348
34387
|
allegati_lbl = 'Allegati';
|
|
34349
34388
|
workflow_lbl = 'Workflow';
|
|
34350
34389
|
prendi_in_carico_lbl = 'Prendi in Carico';
|
|
34390
|
+
saving_lbl = 'Salvataggio...';
|
|
34351
34391
|
b_revisione = false;
|
|
34352
34392
|
admin_role = '[ZZZ_DIS_CC]';
|
|
34353
34393
|
sovra_path = '';
|
|
@@ -34437,6 +34477,7 @@ class FHWorkflowHeaderBar {
|
|
|
34437
34477
|
this.commenti_lbl = this._trs.instant('Commenti');
|
|
34438
34478
|
this.allegati_lbl = this._trs.instant('Allegati');
|
|
34439
34479
|
this.workflow_lbl = this._trs.instant('Workflow');
|
|
34480
|
+
this.saving_lbl = this._trs.instant('Salvataggio...');
|
|
34440
34481
|
});
|
|
34441
34482
|
}
|
|
34442
34483
|
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 +34541,24 @@ class FHWorkflowHeaderBar {
|
|
|
34500
34541
|
(click)="evt_salv()"
|
|
34501
34542
|
color="primary"
|
|
34502
34543
|
style="font-weight:bold"
|
|
34544
|
+
[disabled]="dt_agg?.b_saving"
|
|
34503
34545
|
>
|
|
34504
34546
|
{{ save_lbl | translate }}
|
|
34505
34547
|
</button>
|
|
34506
34548
|
</div>
|
|
34507
34549
|
|
|
34550
|
+
<!-- Indicatore di salvataggio in corso: i pulsanti azione possono sparire
|
|
34551
|
+
durante la save (update_status), lo spinner segnala comunque l'operazione. -->
|
|
34552
|
+
<div
|
|
34553
|
+
*ngIf="dt_agg?.b_saving"
|
|
34554
|
+
fxLayout="row"
|
|
34555
|
+
fxLayoutAlign="start center"
|
|
34556
|
+
fxLayoutGap="8px"
|
|
34557
|
+
>
|
|
34558
|
+
<mat-spinner [diameter]="22" color="primary"></mat-spinner>
|
|
34559
|
+
<span style="font-weight:500;color:#555;">{{ saving_lbl | translate }}</span>
|
|
34560
|
+
</div>
|
|
34561
|
+
|
|
34508
34562
|
<div>
|
|
34509
34563
|
<button
|
|
34510
34564
|
mat-flat-button
|
|
@@ -34522,6 +34576,7 @@ class FHWorkflowHeaderBar {
|
|
|
34522
34576
|
mat-flat-button
|
|
34523
34577
|
(click)="respingi()"
|
|
34524
34578
|
*ngIf="edit_button && respingi_button && !in_carico"
|
|
34579
|
+
[disabled]="dt_agg?.b_saving"
|
|
34525
34580
|
style="font-weight:bold"
|
|
34526
34581
|
[style.background-color]="
|
|
34527
34582
|
dt_agg.reject_back_ground_color + ' !important'
|
|
@@ -34535,6 +34590,7 @@ class FHWorkflowHeaderBar {
|
|
|
34535
34590
|
mat-flat-button
|
|
34536
34591
|
(click)="procedi()"
|
|
34537
34592
|
*ngIf="edit_button && procedi_button && !in_carico"
|
|
34593
|
+
[disabled]="dt_agg?.b_saving"
|
|
34538
34594
|
style="font-weight:bold"
|
|
34539
34595
|
[style.background-color]="
|
|
34540
34596
|
dt_agg.next_back_ground_color + ' !important'
|
|
@@ -34666,13 +34722,13 @@ class FHWorkflowHeaderBar {
|
|
|
34666
34722
|
</div>
|
|
34667
34723
|
</div>
|
|
34668
34724
|
</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"] }] });
|
|
34725
|
+
`, 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
34726
|
}
|
|
34671
34727
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHWorkflowHeaderBar, decorators: [{
|
|
34672
34728
|
type: Component,
|
|
34673
34729
|
args: [{
|
|
34674
34730
|
selector: 'FHWorkflowHeaderBar',
|
|
34675
|
-
imports: [TranslateModule, MatButtonModule, MatIconModule, CommonModule, MatBadgeModule, FlexLayoutModule],
|
|
34731
|
+
imports: [TranslateModule, MatButtonModule, MatIconModule, CommonModule, MatBadgeModule, FlexLayoutModule, MatProgressSpinnerModule],
|
|
34676
34732
|
template: `
|
|
34677
34733
|
<div
|
|
34678
34734
|
fxLayout="row"
|
|
@@ -34733,11 +34789,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
34733
34789
|
(click)="evt_salv()"
|
|
34734
34790
|
color="primary"
|
|
34735
34791
|
style="font-weight:bold"
|
|
34792
|
+
[disabled]="dt_agg?.b_saving"
|
|
34736
34793
|
>
|
|
34737
34794
|
{{ save_lbl | translate }}
|
|
34738
34795
|
</button>
|
|
34739
34796
|
</div>
|
|
34740
34797
|
|
|
34798
|
+
<!-- Indicatore di salvataggio in corso: i pulsanti azione possono sparire
|
|
34799
|
+
durante la save (update_status), lo spinner segnala comunque l'operazione. -->
|
|
34800
|
+
<div
|
|
34801
|
+
*ngIf="dt_agg?.b_saving"
|
|
34802
|
+
fxLayout="row"
|
|
34803
|
+
fxLayoutAlign="start center"
|
|
34804
|
+
fxLayoutGap="8px"
|
|
34805
|
+
>
|
|
34806
|
+
<mat-spinner [diameter]="22" color="primary"></mat-spinner>
|
|
34807
|
+
<span style="font-weight:500;color:#555;">{{ saving_lbl | translate }}</span>
|
|
34808
|
+
</div>
|
|
34809
|
+
|
|
34741
34810
|
<div>
|
|
34742
34811
|
<button
|
|
34743
34812
|
mat-flat-button
|
|
@@ -34755,6 +34824,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
34755
34824
|
mat-flat-button
|
|
34756
34825
|
(click)="respingi()"
|
|
34757
34826
|
*ngIf="edit_button && respingi_button && !in_carico"
|
|
34827
|
+
[disabled]="dt_agg?.b_saving"
|
|
34758
34828
|
style="font-weight:bold"
|
|
34759
34829
|
[style.background-color]="
|
|
34760
34830
|
dt_agg.reject_back_ground_color + ' !important'
|
|
@@ -34768,6 +34838,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
34768
34838
|
mat-flat-button
|
|
34769
34839
|
(click)="procedi()"
|
|
34770
34840
|
*ngIf="edit_button && procedi_button && !in_carico"
|
|
34841
|
+
[disabled]="dt_agg?.b_saving"
|
|
34771
34842
|
style="font-weight:bold"
|
|
34772
34843
|
[style.background-color]="
|
|
34773
34844
|
dt_agg.next_back_ground_color + ' !important'
|