@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
|
@@ -9316,18 +9316,18 @@ var win_salva_annulla = /** @class */ (function () {
|
|
|
9316
9316
|
}());
|
|
9317
9317
|
|
|
9318
9318
|
var win_assegna = /** @class */ (function () {
|
|
9319
|
-
function win_assegna(dialogRef, m_appService, toastr, _dataService) {
|
|
9319
|
+
function win_assegna(dialogRef, m_appService, toastr, _dataService, data) {
|
|
9320
9320
|
this.dialogRef = dialogRef;
|
|
9321
9321
|
this.m_appService = m_appService;
|
|
9322
9322
|
this.toastr = toastr;
|
|
9323
9323
|
this._dataService = _dataService;
|
|
9324
|
+
this.data = data;
|
|
9324
9325
|
this.lbl = "";
|
|
9325
9326
|
this.nota = "";
|
|
9326
9327
|
this.nota_commento = "";
|
|
9327
9328
|
this.title = "ASSEGNA DOCUMENTO";
|
|
9328
9329
|
this.comm_notrequired = 0;
|
|
9329
9330
|
this.comm_notrequired = this.m_appService.getState().wkf_doc_info.comm_notrequired;
|
|
9330
|
-
console.log(' this.comm_notrequired ', this.comm_notrequired);
|
|
9331
9331
|
this.title = this.m_appService.getState().wkf_doc_info.title;
|
|
9332
9332
|
this.lbl = this.m_appService.getState().wkf_doc_info.lbl;
|
|
9333
9333
|
this.arrAutori = this.m_appService.getState().wkf_doc_info.arrAutori;
|
|
@@ -9337,6 +9337,12 @@ var win_assegna = /** @class */ (function () {
|
|
|
9337
9337
|
}
|
|
9338
9338
|
if (this.comm_notrequired == 2)
|
|
9339
9339
|
this.nota_commento = " (COMMENTO NON OBBLIGATORIO)";
|
|
9340
|
+
if (data != null) {
|
|
9341
|
+
if (data.commento_default != null)
|
|
9342
|
+
this.nota = data.commento_default;
|
|
9343
|
+
if (data.comm_notrequired != null)
|
|
9344
|
+
this.comm_notrequired = data.comm_notrequired;
|
|
9345
|
+
}
|
|
9340
9346
|
}
|
|
9341
9347
|
win_assegna.prototype.close = function () { this.dialogRef.close(null); };
|
|
9342
9348
|
win_assegna.prototype.ok = function () {
|
|
@@ -9366,7 +9372,8 @@ var win_assegna = /** @class */ (function () {
|
|
|
9366
9372
|
{ type: MatDialogRef },
|
|
9367
9373
|
{ type: AppService },
|
|
9368
9374
|
{ type: ToastrService },
|
|
9369
|
-
{ type: QueryService }
|
|
9375
|
+
{ type: QueryService },
|
|
9376
|
+
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
9370
9377
|
]; };
|
|
9371
9378
|
__decorate([
|
|
9372
9379
|
ViewChild('up'),
|
|
@@ -9376,7 +9383,8 @@ var win_assegna = /** @class */ (function () {
|
|
|
9376
9383
|
Component({
|
|
9377
9384
|
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 "
|
|
9378
9385
|
}),
|
|
9379
|
-
|
|
9386
|
+
__param(4, Inject(MAT_DIALOG_DATA)),
|
|
9387
|
+
__metadata("design:paramtypes", [MatDialogRef, AppService, ToastrService, QueryService, Object])
|
|
9380
9388
|
], win_assegna);
|
|
9381
9389
|
return win_assegna;
|
|
9382
9390
|
}());
|
|
@@ -11457,6 +11465,7 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
11457
11465
|
this.limite_salto_after = -1;
|
|
11458
11466
|
this.respingi_enabled = false;
|
|
11459
11467
|
this.oper = '';
|
|
11468
|
+
this.commento_default = '';
|
|
11460
11469
|
this.b_edit_before = false;
|
|
11461
11470
|
this.all_c = 0;
|
|
11462
11471
|
this.comm_c = 0;
|
|
@@ -11821,13 +11830,10 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
11821
11830
|
return 0;
|
|
11822
11831
|
});
|
|
11823
11832
|
;
|
|
11824
|
-
var
|
|
11825
|
-
disableClose: true
|
|
11826
|
-
});
|
|
11827
|
-
setTimeout(function () {
|
|
11828
|
-
dialogRef_1.componentInstance.comm_notrequired = _this.nlevel.commenti_opzionali;
|
|
11833
|
+
var dialogRef = this.m_dialog.open(win_assegna, {
|
|
11834
|
+
disableClose: true, data: { commento_default: this.commento_default, comm_notrequired: this.nlevel.commenti_opzionali }
|
|
11829
11835
|
});
|
|
11830
|
-
|
|
11836
|
+
dialogRef.afterClosed().subscribe(function (result) {
|
|
11831
11837
|
if (result == "" || result == null) {
|
|
11832
11838
|
_this.edit_b(true);
|
|
11833
11839
|
if (_this.respingi_enabled)
|
|
@@ -12180,9 +12186,11 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
12180
12186
|
this.resp_b(false);
|
|
12181
12187
|
this.salva();
|
|
12182
12188
|
};
|
|
12183
|
-
dati_aggiuntivi.prototype.procedi = function () {
|
|
12189
|
+
dati_aggiuntivi.prototype.procedi = function (commento_default) {
|
|
12190
|
+
if (commento_default === void 0) { commento_default = ''; }
|
|
12184
12191
|
this.oper = 'procedi';
|
|
12185
12192
|
this.btnprocedi = true;
|
|
12193
|
+
this.commento_default = commento_default;
|
|
12186
12194
|
this.edit_b(false);
|
|
12187
12195
|
this.resp_b(false);
|
|
12188
12196
|
if (!this.ck_field()) {
|
|
@@ -12855,6 +12863,7 @@ var wkf_header_bar = /** @class */ (function () {
|
|
|
12855
12863
|
this.edit_button = false;
|
|
12856
12864
|
this.respingi_button = false;
|
|
12857
12865
|
this.procedi_button = true;
|
|
12866
|
+
this.commento_default = '';
|
|
12858
12867
|
}
|
|
12859
12868
|
wkf_header_bar.prototype.back = function () { if (this.dt_agg != null)
|
|
12860
12869
|
this.dt_agg.back(this.edit_button); };
|
|
@@ -12863,7 +12872,7 @@ var wkf_header_bar = /** @class */ (function () {
|
|
|
12863
12872
|
wkf_header_bar.prototype.respingi = function () { if (this.dt_agg != null)
|
|
12864
12873
|
this.dt_agg.respingi(); };
|
|
12865
12874
|
wkf_header_bar.prototype.procedi = function () { if (this.dt_agg != null)
|
|
12866
|
-
this.dt_agg.procedi(); };
|
|
12875
|
+
this.dt_agg.procedi(this.commento_default); };
|
|
12867
12876
|
wkf_header_bar.prototype.open_info = function () { if (this.dt_agg != null)
|
|
12868
12877
|
this.dt_agg.open_info(); };
|
|
12869
12878
|
wkf_header_bar.prototype.open_commenti = function () { if (this.dt_agg != null)
|
|
@@ -12893,10 +12902,14 @@ var wkf_header_bar = /** @class */ (function () {
|
|
|
12893
12902
|
Input(),
|
|
12894
12903
|
__metadata("design:type", Boolean)
|
|
12895
12904
|
], wkf_header_bar.prototype, "procedi_button", void 0);
|
|
12905
|
+
__decorate([
|
|
12906
|
+
Input(),
|
|
12907
|
+
__metadata("design:type", String)
|
|
12908
|
+
], wkf_header_bar.prototype, "commento_default", void 0);
|
|
12896
12909
|
wkf_header_bar = __decorate([
|
|
12897
12910
|
Component({
|
|
12898
12911
|
selector: 'wkf_header_bar',
|
|
12899
|
-
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
|
|
12912
|
+
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 "
|
|
12900
12913
|
}),
|
|
12901
12914
|
__metadata("design:paramtypes", [AppService])
|
|
12902
12915
|
], wkf_header_bar);
|