@fluxhub/fluxhub-lib 10.0.570 → 10.0.571
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 +49 -30
- 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/wkfdatiaggiuntivi.js +24 -2
- package/esm2015/lib/wkf_engine_v2/wkf_header_bar.js +30 -13
- package/esm2015/lib/wkf_engine_v2/wkfdatiaggiuntivi.js +36 -30
- package/fesm2015/fluxhub-fluxhub-lib.js +69 -41
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/wkf_engine_v2/wkf_header_bar.d.ts +3 -0
- package/lib/wkf_engine_v2/wkfdatiaggiuntivi.d.ts +2 -0
- package/package.json +1 -1
|
@@ -16309,6 +16309,7 @@
|
|
|
16309
16309
|
this.custom_commands = [];
|
|
16310
16310
|
this.dt_agg = null;
|
|
16311
16311
|
this.edit_button = false;
|
|
16312
|
+
this.in_carico = false;
|
|
16312
16313
|
this.respingi_button = false;
|
|
16313
16314
|
this.procedi_button = true;
|
|
16314
16315
|
this.utility_button = true;
|
|
@@ -16324,6 +16325,7 @@
|
|
|
16324
16325
|
this.commenti_lbl = 'Commenti';
|
|
16325
16326
|
this.allegati_lbl = 'Allegati';
|
|
16326
16327
|
this.workflow_lbl = 'Workflow';
|
|
16328
|
+
this.prendi_in_carico_lbl = 'Prendi in Carico';
|
|
16327
16329
|
this.b_revisione = false;
|
|
16328
16330
|
this.admin_role = '[ZZZ_DIS_CC]';
|
|
16329
16331
|
this.sovra_path = '';
|
|
@@ -16348,6 +16350,11 @@
|
|
|
16348
16350
|
if (this.dt_agg != null)
|
|
16349
16351
|
this.dt_agg.evt_salv(this.edit_button, this.check_on_save);
|
|
16350
16352
|
};
|
|
16353
|
+
wkf_header_bar_v2.prototype.prendi_in_carico = function () {
|
|
16354
|
+
this.button_clicked.emit('prendi_in_c');
|
|
16355
|
+
if (this.dt_agg != null)
|
|
16356
|
+
this.dt_agg.prendi_in_carico();
|
|
16357
|
+
};
|
|
16351
16358
|
wkf_header_bar_v2.prototype.respingi = function () {
|
|
16352
16359
|
this.button_clicked.emit('respingi');
|
|
16353
16360
|
if (this.dt_agg != null)
|
|
@@ -16397,7 +16404,7 @@
|
|
|
16397
16404
|
wkf_header_bar_v2.decorators = [
|
|
16398
16405
|
{ type: i0.Component, args: [{
|
|
16399
16406
|
selector: "wkf_header_bar_v2",
|
|
16400
|
-
template: "\n <div fxLayout=\"row\" fxLayoutGap.lt-md=\"8px\" fxLayoutGap=\"15px\" fxLayout.lt-md=\"column\">\n <div\n fxLayout=\"row\"\n fxLayoutGap=\"16px\"\n fxLayoutGap.lt-md=\"8px\"\n *ngIf=\"\n !m_appService.getState().pageFullscreen ||\n edit_button ||\n respingi_button\n \"\n >\n <div>\n <button\n mat-flat-button\n (click)=\"back()\"\n *ngIf=\"!m_appService.getState().pageFullscreen\"\n >\n {{back_lbl}}</button\n ></div
|
|
16407
|
+
template: "\n <div fxLayout=\"row\" fxLayoutGap.lt-md=\"8px\" fxLayoutGap=\"15px\" fxLayout.lt-md=\"column\">\n <div\n fxLayout=\"row\"\n fxLayoutGap=\"16px\"\n fxLayoutGap.lt-md=\"8px\"\n *ngIf=\"\n !m_appService.getState().pageFullscreen ||\n edit_button ||\n respingi_button\n \"\n >\n <div>\n <button\n mat-flat-button\n (click)=\"back()\"\n *ngIf=\"!m_appService.getState().pageFullscreen\"\n >\n {{back_lbl}}</button\n ></div>\n <div>\n <button\n mat-flat-button\n (click)=\"evt_salv()\"\n *ngIf=\"(edit_button || force_save) && in_carico\"\n color=\"primary\"\n >\n {{save_lbl}}</button\n ></div><div>\n\n <div>\n <button\n mat-flat-button\n (click)=\"prendi_in_carico()\"\n *ngIf=\"(edit_button) && !in_carico\"\n style=\"background-color:#709D66\"\n >\n {{prendi_in_carico_lbl | translate}}</button\n ></div><div>\n\n <button\n mat-flat-button\n (click)=\"procedi()\"\n *ngIf=\"(edit_button && procedi_button) && in_carico\"\n color=\"accent\"\n >\n {{procedi_lbl | translate}}</button\n ></div><div *ngIf=\"(respingi_button) && in_carico\">\n <button\n mat-flat-button\n (click)=\"respingi()\"\n\n color=\"warn\"\n >\n {{respingi_lbl | translate}}\n </button>\n </div>\n <div *ngIf=\"(b_revisione) && in_carico\">\n <button\n mat-flat-button\n (click)=\"revisione()\"\n\n color=\"accent\"\n >\n {{revisione_lbl | translate}}\n </button>\n </div>\n <!-- <button mat-flat-button (click)=\"doEnd(900)\" color=\"warn\" >test</button> \n-->\n </div>\n \n <div\n fxLayout=\"row\"\n fxLayout.xs=\"column\"\n fxLayoutGap=\"16px\"\n fxLayoutGap.xs=\"8px\"\n >\n <div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <div>\n <button\n mat-flat-button\n (click)=\"open_info()\"\n *ngIf=\"!m_appService.getState().pageFullscreen && utility_button\"\n >\n <mat-icon>info_outline</mat-icon> {{info_doc_lbl | translate}}</button\n ></div>\n <div>\n <button\n mat-flat-button *ngIf=\"utility_button\"\n [color]=\"(dt_agg?.comm_c ? dt_agg?.comm_c : 0 > 0) ? 'accent' : ''\"\n [matBadge]=\"dt_agg?.comm_c ? dt_agg?.comm_c : 0\"\n matBadgePosition=\"before\"\n matBadgeColor=\"primary\"\n (click)=\"open_commenti()\"\n >\n <mat-icon>insert_comment</mat-icon> {{commenti_lbl | translate}}</button\n ></div>\n\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <div [hidden]=\"!download_button\">\n <button\n mat-flat-button *ngIf=\"utility_button\"\n [color]=\"(dt_agg?.all_c ? dt_agg?.all_c : 0 > 0) ? 'accent' : ''\"\n [matBadge]=\"dt_agg?.all_c ? dt_agg?.all_c : 0\"\n matBadgePosition=\"before\"\n matBadgeColor=\"primary\"\n (click)=\"open_upload()\"\n >\n <mat-icon>attach_file</mat-icon> {{allegati_lbl | translate}}</button\n ></div>\n\n <div>\n <button\n mat-flat-button\n (click)=\"open_wkf()\"\n *ngIf=\"!m_appService.getState().pageFullscreen && utility_button\"\n >\n <mat-icon>transfer_within_a_station</mat-icon> {{workflow_lbl | translate}}\n </button>\n </div>\n\n\n\n </div>\n </div>\n <div\n *ngIf=\"custom_commands.length > 0\"\n fxLayoutGap=\"10px\"\n fxLayout=\"row\"\n fxLayoutAlign=\"end center\"\n >\n <div *ngFor=\"let app of custom_commands\" fxLayout=\"row\"\n fxLayoutGap=\"5px\">\n <div><button [hidden]=\"app.hidden!=null && app.hidden\"\n mat-flat-button\n [color]=\"app.color\"\n (click)=\"exec_command(app.command)\"\n >\n <mat-icon *ngIf=\"app.icon != null\">{{ app.icon }}</mat-icon\n >{{ app.label | translate}}\n </button> </div>\n </div>\n </div>\n </div>\n "
|
|
16401
16408
|
},] }
|
|
16402
16409
|
];
|
|
16403
16410
|
wkf_header_bar_v2.ctorParameters = function () { return [
|
|
@@ -16408,6 +16415,7 @@
|
|
|
16408
16415
|
custom_commands: [{ type: i0.Input }],
|
|
16409
16416
|
dt_agg: [{ type: i0.Input }],
|
|
16410
16417
|
edit_button: [{ type: i0.Input }],
|
|
16418
|
+
in_carico: [{ type: i0.Input }],
|
|
16411
16419
|
respingi_button: [{ type: i0.Input }],
|
|
16412
16420
|
procedi_button: [{ type: i0.Input }],
|
|
16413
16421
|
utility_button: [{ type: i0.Input }],
|
|
@@ -21510,6 +21518,20 @@
|
|
|
21510
21518
|
};
|
|
21511
21519
|
return dati_aggiuntivi;
|
|
21512
21520
|
}());
|
|
21521
|
+
dati_aggiuntivi.decorators = [
|
|
21522
|
+
{ type: i0.Directive }
|
|
21523
|
+
];
|
|
21524
|
+
dati_aggiuntivi.ctorParameters = function () { return [
|
|
21525
|
+
{ type: AppService },
|
|
21526
|
+
{ type: AuthenticationService },
|
|
21527
|
+
{ type: QueryService },
|
|
21528
|
+
{ type: i3$1.Router },
|
|
21529
|
+
{ type: dialog.MatDialog },
|
|
21530
|
+
{ type: i3$1.ActivatedRoute },
|
|
21531
|
+
{ type: WkfService },
|
|
21532
|
+
{ type: UtilityService },
|
|
21533
|
+
{ type: core.TranslateService }
|
|
21534
|
+
]; };
|
|
21513
21535
|
dati_aggiuntivi.propDecorators = {
|
|
21514
21536
|
onResize: [{ type: i0.HostListener, args: ["window:resize", ["event"],] }]
|
|
21515
21537
|
};
|
|
@@ -22369,6 +22391,7 @@
|
|
|
22369
22391
|
this.m_fileservice = m_fileservice;
|
|
22370
22392
|
this.tsr = tsr;
|
|
22371
22393
|
this.m_obj = {};
|
|
22394
|
+
this.in_carico = false;
|
|
22372
22395
|
this.wkf_users_roles = '';
|
|
22373
22396
|
this.b_rip_pulsanti = true;
|
|
22374
22397
|
this.save_alreadypressed = false;
|
|
@@ -22482,8 +22505,6 @@
|
|
|
22482
22505
|
}
|
|
22483
22506
|
else
|
|
22484
22507
|
_this.alert("CODICE APPLICAZIONE NON VALIDO", 2);
|
|
22485
|
-
//this.stabilimento.setByValue(this.obj.stabilimento);
|
|
22486
|
-
//this.userRole.setByValue(this.obj.id_application);
|
|
22487
22508
|
}
|
|
22488
22509
|
});
|
|
22489
22510
|
});
|
|
@@ -22530,6 +22551,14 @@
|
|
|
22530
22551
|
return;
|
|
22531
22552
|
this.salva();
|
|
22532
22553
|
};
|
|
22554
|
+
dati_aggiuntivi_v2.prototype.prendi_in_carico = function () {
|
|
22555
|
+
this.in_carico = true;
|
|
22556
|
+
var p = new QParam();
|
|
22557
|
+
p.sql = "UPDATE_WKF_PRENDI_IN_CARICO";
|
|
22558
|
+
p.values = ['string', 'string', 'string'];
|
|
22559
|
+
p.types = [this.id_applicativo, this.id_documento, this.app_s.user_surname + ' ' + this.app_s.user_name];
|
|
22560
|
+
this.m_dataService.doQuery(p).subscribe();
|
|
22561
|
+
};
|
|
22533
22562
|
dati_aggiuntivi_v2.prototype.salva = function () {
|
|
22534
22563
|
var _this = this;
|
|
22535
22564
|
if (this.save_alreadypressed)
|
|
@@ -22627,32 +22656,6 @@
|
|
|
22627
22656
|
}
|
|
22628
22657
|
this.clevel = this.check_n_levels(this.clevel);
|
|
22629
22658
|
this.calcolanextandjump();
|
|
22630
|
-
//}
|
|
22631
|
-
/*
|
|
22632
|
-
console.log('this.oper ',this.oper);
|
|
22633
|
-
if (this.oper == "procedi") {
|
|
22634
|
-
this.clevel = this.check_n_levels(this.clevel);
|
|
22635
|
-
// if (this.clevel.livelli_jump == null) this.clevel.livelli_jump = "";
|
|
22636
|
-
// if (this.clevel.livelli_jump != "") {
|
|
22637
|
-
//console.log("selectLevel " + this.clevel.livelli_jump);
|
|
22638
|
-
this.selectLevel();
|
|
22639
|
-
return;
|
|
22640
|
-
//}
|
|
22641
|
-
|
|
22642
|
-
// this.calcolanextandjump();
|
|
22643
|
-
}
|
|
22644
|
-
if (this.oper == "respingi") {
|
|
22645
|
-
//if (this.clevel.livelli_down == null) this.clevel.livelli_down = "";
|
|
22646
|
-
if (this.clevel.livelli_down != "") {
|
|
22647
|
-
this.selectLevel(this.clevel.livelli_down);
|
|
22648
|
-
return;
|
|
22649
|
-
} else {
|
|
22650
|
-
this.alert(
|
|
22651
|
-
"Errore di configurazione pratica contattare ufficio IT [0x004]",
|
|
22652
|
-
1
|
|
22653
|
-
);
|
|
22654
|
-
}
|
|
22655
|
-
}*/
|
|
22656
22659
|
};
|
|
22657
22660
|
/*
|
|
22658
22661
|
selectLevel() {
|
|
@@ -22811,7 +22814,6 @@
|
|
|
22811
22814
|
}
|
|
22812
22815
|
cliv = liv;
|
|
22813
22816
|
}*/
|
|
22814
|
-
console.log('ck_after');
|
|
22815
22817
|
if (this.ck_after(liv)) {
|
|
22816
22818
|
this.calcola_destinari(o);
|
|
22817
22819
|
}
|
|
@@ -23966,6 +23968,9 @@
|
|
|
23966
23968
|
if (this.m_obj.autori == null)
|
|
23967
23969
|
this.m_obj.autori = "";
|
|
23968
23970
|
if (("," + this.m_obj.autori.toLowerCase() + ",").indexOf("," + this.user_idp.toLowerCase() + ",") != -1) {
|
|
23971
|
+
if (this.m_obj.autori != null)
|
|
23972
|
+
if (this.m_obj.autori.split(',') > 1)
|
|
23973
|
+
this.in_carico = true;
|
|
23969
23974
|
this.edit_b(true);
|
|
23970
23975
|
if (this.respingi_enabled)
|
|
23971
23976
|
this.resp_b(true);
|
|
@@ -24124,6 +24129,20 @@
|
|
|
24124
24129
|
};
|
|
24125
24130
|
return dati_aggiuntivi_v2;
|
|
24126
24131
|
}());
|
|
24132
|
+
dati_aggiuntivi_v2.decorators = [
|
|
24133
|
+
{ type: i0.Directive }
|
|
24134
|
+
];
|
|
24135
|
+
dati_aggiuntivi_v2.ctorParameters = function () { return [
|
|
24136
|
+
{ type: AppService },
|
|
24137
|
+
{ type: QueryService },
|
|
24138
|
+
{ type: i3$1.Router },
|
|
24139
|
+
{ type: dialog.MatDialog },
|
|
24140
|
+
{ type: i3$1.ActivatedRoute },
|
|
24141
|
+
{ type: WkfService },
|
|
24142
|
+
{ type: UtilityService },
|
|
24143
|
+
{ type: FileService },
|
|
24144
|
+
{ type: core.TranslateService }
|
|
24145
|
+
]; };
|
|
24127
24146
|
dati_aggiuntivi_v2.propDecorators = {
|
|
24128
24147
|
onResize: [{ type: i0.HostListener, args: ["window:resize", ["event"],] }]
|
|
24129
24148
|
};
|