@fluxhub/fluxhub-lib 9.0.114 → 9.0.115
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 +26 -13
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +2 -2
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/wkf_engine/win_assegna.js +16 -8
- package/esm2015/lib/wkf_engine/win_insert_commento.js +1 -1
- package/esm2015/lib/wkf_engine/wkf_header_bar.js +12 -7
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +5 -6
- package/esm5/lib/wkf_engine/win_assegna.js +16 -8
- package/esm5/lib/wkf_engine/win_insert_commento.js +1 -1
- package/esm5/lib/wkf_engine/wkf_header_bar.js +8 -3
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +8 -8
- package/fesm2015/fluxhub-fluxhub-lib.js +27 -15
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +26 -13
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/wkf_engine/win_assegna.d.ts +2 -1
- package/lib/wkf_engine/wkf_header_bar.d.ts +1 -0
- package/lib/wkf_engine/wkfdatiaggiuntivi.d.ts +2 -1
- package/package.json +1 -1
|
@@ -9448,18 +9448,18 @@
|
|
|
9448
9448
|
}());
|
|
9449
9449
|
|
|
9450
9450
|
var win_assegna = /** @class */ (function () {
|
|
9451
|
-
function win_assegna(dialogRef, m_appService, toastr, _dataService) {
|
|
9451
|
+
function win_assegna(dialogRef, m_appService, toastr, _dataService, data) {
|
|
9452
9452
|
this.dialogRef = dialogRef;
|
|
9453
9453
|
this.m_appService = m_appService;
|
|
9454
9454
|
this.toastr = toastr;
|
|
9455
9455
|
this._dataService = _dataService;
|
|
9456
|
+
this.data = data;
|
|
9456
9457
|
this.lbl = "";
|
|
9457
9458
|
this.nota = "";
|
|
9458
9459
|
this.nota_commento = "";
|
|
9459
9460
|
this.title = "ASSEGNA DOCUMENTO";
|
|
9460
9461
|
this.comm_notrequired = 0;
|
|
9461
9462
|
this.comm_notrequired = this.m_appService.getState().wkf_doc_info.comm_notrequired;
|
|
9462
|
-
console.log(' this.comm_notrequired ', this.comm_notrequired);
|
|
9463
9463
|
this.title = this.m_appService.getState().wkf_doc_info.title;
|
|
9464
9464
|
this.lbl = this.m_appService.getState().wkf_doc_info.lbl;
|
|
9465
9465
|
this.arrAutori = this.m_appService.getState().wkf_doc_info.arrAutori;
|
|
@@ -9469,6 +9469,12 @@
|
|
|
9469
9469
|
}
|
|
9470
9470
|
if (this.comm_notrequired == 2)
|
|
9471
9471
|
this.nota_commento = " (COMMENTO NON OBBLIGATORIO)";
|
|
9472
|
+
if (data != null) {
|
|
9473
|
+
if (data.commento_default != null)
|
|
9474
|
+
this.nota = data.commento_default;
|
|
9475
|
+
if (data.comm_notrequired != null)
|
|
9476
|
+
this.comm_notrequired = data.comm_notrequired;
|
|
9477
|
+
}
|
|
9472
9478
|
}
|
|
9473
9479
|
win_assegna.prototype.close = function () { this.dialogRef.close(null); };
|
|
9474
9480
|
win_assegna.prototype.ok = function () {
|
|
@@ -9498,7 +9504,8 @@
|
|
|
9498
9504
|
{ type: dialog.MatDialogRef },
|
|
9499
9505
|
{ type: AppService },
|
|
9500
9506
|
{ type: ngxToastr.ToastrService },
|
|
9501
|
-
{ type: QueryService }
|
|
9507
|
+
{ type: QueryService },
|
|
9508
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
|
|
9502
9509
|
]; };
|
|
9503
9510
|
__decorate([
|
|
9504
9511
|
core.ViewChild('up'),
|
|
@@ -9508,7 +9515,8 @@
|
|
|
9508
9515
|
core.Component({
|
|
9509
9516
|
template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\"><img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"close()\" /> </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n\n <h4 mat-dialog-title>{{title}}\n </h4>\n <div mat-dialog-content fxLayout=\"column\" style=\"font-size: 15px;min-width: 750px\">\n <div style=\"width:100%;height:450px\">\n <FHPickUsers #up [users_list]=\"arrAutori\" [vis_buttons]=\"false\"></FHPickUsers>\n </div>\n <div *ngIf=\"comm_notrequired!=1\">\n <br>\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"><mat-label>Commento {{nota_commento}}</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"6\"></textarea>\n </mat-form-field>\n </div>\n\n </div>\n <br>\n <div style=\"width:100%;text-align:center;\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> OK</button> \n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"close()\">ANNULLA</button>\n </div>\n\n "
|
|
9510
9517
|
}),
|
|
9511
|
-
|
|
9518
|
+
__param(4, core.Inject(dialog.MAT_DIALOG_DATA)),
|
|
9519
|
+
__metadata("design:paramtypes", [dialog.MatDialogRef, AppService, ngxToastr.ToastrService, QueryService, Object])
|
|
9512
9520
|
], win_assegna);
|
|
9513
9521
|
return win_assegna;
|
|
9514
9522
|
}());
|
|
@@ -11589,6 +11597,7 @@
|
|
|
11589
11597
|
this.limite_salto_after = -1;
|
|
11590
11598
|
this.respingi_enabled = false;
|
|
11591
11599
|
this.oper = '';
|
|
11600
|
+
this.commento_default = '';
|
|
11592
11601
|
this.b_edit_before = false;
|
|
11593
11602
|
this.all_c = 0;
|
|
11594
11603
|
this.comm_c = 0;
|
|
@@ -11953,13 +11962,10 @@
|
|
|
11953
11962
|
return 0;
|
|
11954
11963
|
});
|
|
11955
11964
|
;
|
|
11956
|
-
var
|
|
11957
|
-
disableClose: true
|
|
11958
|
-
});
|
|
11959
|
-
setTimeout(function () {
|
|
11960
|
-
dialogRef_1.componentInstance.comm_notrequired = _this.nlevel.commenti_opzionali;
|
|
11965
|
+
var dialogRef = this.m_dialog.open(win_assegna, {
|
|
11966
|
+
disableClose: true, data: { commento_default: this.commento_default, comm_notrequired: this.nlevel.commenti_opzionali }
|
|
11961
11967
|
});
|
|
11962
|
-
|
|
11968
|
+
dialogRef.afterClosed().subscribe(function (result) {
|
|
11963
11969
|
if (result == "" || result == null) {
|
|
11964
11970
|
_this.edit_b(true);
|
|
11965
11971
|
if (_this.respingi_enabled)
|
|
@@ -12312,9 +12318,11 @@
|
|
|
12312
12318
|
this.resp_b(false);
|
|
12313
12319
|
this.salva();
|
|
12314
12320
|
};
|
|
12315
|
-
dati_aggiuntivi.prototype.procedi = function () {
|
|
12321
|
+
dati_aggiuntivi.prototype.procedi = function (commento_default) {
|
|
12322
|
+
if (commento_default === void 0) { commento_default = ''; }
|
|
12316
12323
|
this.oper = 'procedi';
|
|
12317
12324
|
this.btnprocedi = true;
|
|
12325
|
+
this.commento_default = commento_default;
|
|
12318
12326
|
this.edit_b(false);
|
|
12319
12327
|
this.resp_b(false);
|
|
12320
12328
|
if (!this.ck_field()) {
|
|
@@ -12987,6 +12995,7 @@
|
|
|
12987
12995
|
this.edit_button = false;
|
|
12988
12996
|
this.respingi_button = false;
|
|
12989
12997
|
this.procedi_button = true;
|
|
12998
|
+
this.commento_default = '';
|
|
12990
12999
|
}
|
|
12991
13000
|
wkf_header_bar.prototype.back = function () { if (this.dt_agg != null)
|
|
12992
13001
|
this.dt_agg.back(this.edit_button); };
|
|
@@ -12995,7 +13004,7 @@
|
|
|
12995
13004
|
wkf_header_bar.prototype.respingi = function () { if (this.dt_agg != null)
|
|
12996
13005
|
this.dt_agg.respingi(); };
|
|
12997
13006
|
wkf_header_bar.prototype.procedi = function () { if (this.dt_agg != null)
|
|
12998
|
-
this.dt_agg.procedi(); };
|
|
13007
|
+
this.dt_agg.procedi(this.commento_default); };
|
|
12999
13008
|
wkf_header_bar.prototype.open_info = function () { if (this.dt_agg != null)
|
|
13000
13009
|
this.dt_agg.open_info(); };
|
|
13001
13010
|
wkf_header_bar.prototype.open_commenti = function () { if (this.dt_agg != null)
|
|
@@ -13025,10 +13034,14 @@
|
|
|
13025
13034
|
core.Input(),
|
|
13026
13035
|
__metadata("design:type", Boolean)
|
|
13027
13036
|
], wkf_header_bar.prototype, "procedi_button", void 0);
|
|
13037
|
+
__decorate([
|
|
13038
|
+
core.Input(),
|
|
13039
|
+
__metadata("design:type", String)
|
|
13040
|
+
], wkf_header_bar.prototype, "commento_default", void 0);
|
|
13028
13041
|
wkf_header_bar = __decorate([
|
|
13029
13042
|
core.Component({
|
|
13030
13043
|
selector: 'wkf_header_bar',
|
|
13031
|
-
template: "\n\n <div fxLayout=\"row\" fxLayout.lt-md=\"column\">\n<div fxLayout=\"row\" fxLayoutGap=\"3px\" *ngIf=\"!m_appService.getState().pageFullscreen || edit_button || respingi_button\">\n<button mat-flat-button (click)=\"back()\" *ngIf=\"!m_appService.getState().pageFullscreen\">Indietro</button> \n <button mat-flat-button (click)=\"evt_salv()\" *ngIf=\"edit_button && !m_appService.getState().pageFullscreen\" color=\"primary\" >Salva</button> \n <button mat-flat-button (click)=\"procedi()\" *ngIf=\"edit_button && procedi_button\" color=\"accent\" >Procedi</button> \n <button mat-flat-button (click)=\"respingi()\" *ngIf=\"respingi_button\" color=\"warn\" >Respingi</button>\n<!-- <button mat-flat-button (click)=\"doEnd(900)\" color=\"warn\" >test</button> \n-->\n</div>\n \n<div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"16px\" fxLayoutGap.xs=\"3px\">\n <div fxLayout=\"row\" >\n<button mat-flat-button (click)=\"open_info()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>info_outline</mat-icon> Info Doc</button> \n<button mat-flat-button [color]=\"(dt_agg?.comm_c?dt_agg?.comm_c:0>0)?'accent':''\" [matBadge]=\"dt_agg?.comm_c?dt_agg?.comm_c:0\" matBadgePosition=\"before\" matBadgeColor=\"primary\" (click)=\"open_commenti()\"> <mat-icon>insert_comment</mat-icon>Commenti</button> </div> <div fxLayout=\"row\">\n<button mat-flat-button [color]=\"(dt_agg?.all_c?dt_agg?.all_c:0>0)?'accent':''\" [matBadge]=\"dt_agg?.all_c?dt_agg?.all_c:0\" matBadgePosition=\"before\" matBadgeColor=\"primary\" (click)=\"open_upload()\"> <mat-icon>attach_file</mat-icon>Allegati</button> \n
|
|
13044
|
+
template: "\n\n <div fxLayout=\"row\" fxLayout.lt-md=\"column\">\n<div fxLayout=\"row\" fxLayoutGap=\"3px\" *ngIf=\"!m_appService.getState().pageFullscreen || edit_button || respingi_button\">\n<button mat-flat-button (click)=\"back()\" *ngIf=\"!m_appService.getState().pageFullscreen\">Indietro</button> \n <button mat-flat-button (click)=\"evt_salv()\" *ngIf=\"edit_button && !m_appService.getState().pageFullscreen\" color=\"primary\" >Salva</button> \n <button mat-flat-button (click)=\"procedi()\" *ngIf=\"edit_button && procedi_button\" color=\"accent\" >Procedi</button> \n <button mat-flat-button (click)=\"respingi()\" *ngIf=\"respingi_button\" color=\"warn\" >Respingi</button>\n<!-- <button mat-flat-button (click)=\"doEnd(900)\" color=\"warn\" >test</button> \n-->\n</div>\n \n<div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"16px\" fxLayoutGap.xs=\"3px\">\n <div fxLayout=\"row\" >\n <button mat-flat-button (click)=\"open_info()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>info_outline</mat-icon> Info Doc</button> \n <button mat-flat-button [color]=\"(dt_agg?.comm_c?dt_agg?.comm_c:0>0)?'accent':''\" [matBadge]=\"dt_agg?.comm_c?dt_agg?.comm_c:0\" matBadgePosition=\"before\" matBadgeColor=\"primary\" (click)=\"open_commenti()\"> <mat-icon>insert_comment</mat-icon>Commenti</button> </div> <div fxLayout=\"row\">\n <button mat-flat-button [color]=\"(dt_agg?.all_c?dt_agg?.all_c:0>0)?'accent':''\" [matBadge]=\"dt_agg?.all_c?dt_agg?.all_c:0\" matBadgePosition=\"before\" matBadgeColor=\"primary\" (click)=\"open_upload()\"> <mat-icon>attach_file</mat-icon>Allegati</button> \n <button mat-flat-button (click)=\"open_wkf()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>transfer_within_a_station</mat-icon>Workflow</button></div>\n </div>\n</div>\n "
|
|
13032
13045
|
}),
|
|
13033
13046
|
__metadata("design:paramtypes", [AppService])
|
|
13034
13047
|
], wkf_header_bar);
|