@fluxhub/fluxhub-lib 10.0.650 → 10.0.652
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 +33 -21
- 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/wkfdatiaggiuntivi.js +3 -1
- package/esm2015/lib/wkf_engine_v2/wkf_header_bar.js +15 -2
- package/esm2015/lib/wkf_engine_v2/wkfdatiaggiuntivi.js +29 -21
- package/fesm2015/fluxhub-fluxhub-lib.js +44 -21
- 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 +1 -0
- package/lib/wkf_engine_v2/wkfdatiaggiuntivi.d.ts +2 -1
- package/package.json +1 -1
|
@@ -16451,6 +16451,7 @@
|
|
|
16451
16451
|
this.check_on_save = false;
|
|
16452
16452
|
this.download_button = true;
|
|
16453
16453
|
this.edit_comments_in_logs = true;
|
|
16454
|
+
this.assegna_a = false;
|
|
16454
16455
|
this.back_lbl = 'Indietro';
|
|
16455
16456
|
this.save_lbl = 'Salva';
|
|
16456
16457
|
this.procedi_lbl = 'Procedi';
|
|
@@ -16540,7 +16541,7 @@
|
|
|
16540
16541
|
wkf_header_bar_v2.decorators = [
|
|
16541
16542
|
{ type: i0.Component, args: [{
|
|
16542
16543
|
selector: "wkf_header_bar_v2",
|
|
16543
|
-
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\" style=\"font-weight:bold\"\n >\n {{save_lbl}}</button\n ></div
|
|
16544
|
+
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\" style=\"font-weight:bold\"\n >\n {{save_lbl}}</button\n ></div>\n\n <button\n mat-flat-button\n (click)=\"evt_salv()\"\n *ngIf=\"(edit_button || force_save) && in_carico && assegna_a\"\n color=\"primary\" style=\"font-weight:bold\"\n >\n {{'Assegna a'|translate}}</button\n ></div>\n\n <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;color:#FFFFFF;font-weight:bold\"\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\" style=\"font-weight:bold\"\n >\n {{procedi_lbl | translate}}</button\n ></div><div *ngIf=\"(respingi_button) && !in_carico\">\n <button\n mat-flat-button\n (click)=\"respingi()\"\n style=\"font-weight:bold\"\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 "
|
|
16544
16545
|
},] }
|
|
16545
16546
|
];
|
|
16546
16547
|
wkf_header_bar_v2.ctorParameters = function () { return [
|
|
@@ -16559,6 +16560,7 @@
|
|
|
16559
16560
|
check_on_save: [{ type: i0.Input }],
|
|
16560
16561
|
download_button: [{ type: i0.Input }],
|
|
16561
16562
|
edit_comments_in_logs: [{ type: i0.Input }],
|
|
16563
|
+
assegna_a: [{ type: i0.Input }],
|
|
16562
16564
|
b_revisione: [{ type: i0.Input }],
|
|
16563
16565
|
admin_role: [{ type: i0.Input }],
|
|
16564
16566
|
sovra_path: [{ type: i0.Input }],
|
|
@@ -20062,6 +20064,7 @@
|
|
|
20062
20064
|
cliv = this.livs[i_1].livello;
|
|
20063
20065
|
}
|
|
20064
20066
|
liv = this.wkf_rule(cliv);
|
|
20067
|
+
console.log('this.wkf_rule ', cliv, liv);
|
|
20065
20068
|
var bfound = false;
|
|
20066
20069
|
for (var i_2 = 0; i_2 < this.livs.length; i_2++)
|
|
20067
20070
|
if (this.livs[i_2].notifica == 0 &&
|
|
@@ -20079,6 +20082,7 @@
|
|
|
20079
20082
|
liv = this.livs[i_3].livello;
|
|
20080
20083
|
break;
|
|
20081
20084
|
}
|
|
20085
|
+
console.log('this.nlevel ', cliv, liv);
|
|
20082
20086
|
var nl = liv;
|
|
20083
20087
|
var xnlevel = this.nlevel;
|
|
20084
20088
|
//if(btnSalva.label=="Inizia Workflow"){
|
|
@@ -22657,6 +22661,7 @@
|
|
|
22657
22661
|
this.limite_salto_after = -1;
|
|
22658
22662
|
this.transizione_info = {};
|
|
22659
22663
|
this.respingi_enabled = false;
|
|
22664
|
+
this.b_assenza_a = false;
|
|
22660
22665
|
this.ttw = 0;
|
|
22661
22666
|
this.email_bloccate = false;
|
|
22662
22667
|
this.oper = "";
|
|
@@ -22837,7 +22842,10 @@
|
|
|
22837
22842
|
};
|
|
22838
22843
|
dati_aggiuntivi_v2.prototype.prendi_in_carico = function () {
|
|
22839
22844
|
this.in_carico = false;
|
|
22840
|
-
this.
|
|
22845
|
+
if (this.m_obj.assegnati_paralleli != null)
|
|
22846
|
+
if (this.m_obj.assegnati_paralleli.split(',').length != 1)
|
|
22847
|
+
this.b_assenza_a = true;
|
|
22848
|
+
this.update_status(true, null, this.in_carico, this.b_assenza_a);
|
|
22841
22849
|
this.m_obj.autori = this.app_s.user;
|
|
22842
22850
|
var p = new QParam();
|
|
22843
22851
|
p.sql = "UPDATE_WKF_PRENDI_IN_CARICO";
|
|
@@ -23054,7 +23062,7 @@
|
|
|
23054
23062
|
dialogRef.afterClosed().subscribe(function (result) {
|
|
23055
23063
|
console.log('ris select level', result);
|
|
23056
23064
|
if (result == null) {
|
|
23057
|
-
_this.update_status(true, null, null);
|
|
23065
|
+
_this.update_status(true, null, null, null);
|
|
23058
23066
|
return;
|
|
23059
23067
|
}
|
|
23060
23068
|
_this.calcolanextandjump2(result);
|
|
@@ -23110,7 +23118,7 @@
|
|
|
23110
23118
|
this.calcola_destinari(o);
|
|
23111
23119
|
}
|
|
23112
23120
|
else {
|
|
23113
|
-
this.update_status(this.b_edit_before, null, null);
|
|
23121
|
+
this.update_status(this.b_edit_before, null, null, null);
|
|
23114
23122
|
}
|
|
23115
23123
|
};
|
|
23116
23124
|
dati_aggiuntivi_v2.prototype.calcola_destinari = function (o) {
|
|
@@ -23173,9 +23181,9 @@
|
|
|
23173
23181
|
});
|
|
23174
23182
|
dialogRef.afterClosed().subscribe(function (result) {
|
|
23175
23183
|
if (result == '' || result == null) {
|
|
23176
|
-
_this.update_status(true, false, null);
|
|
23184
|
+
_this.update_status(true, false, null, null);
|
|
23177
23185
|
if (_this.respingi_enabled)
|
|
23178
|
-
_this.update_status(true, true, null);
|
|
23186
|
+
_this.update_status(true, true, null, null);
|
|
23179
23187
|
return;
|
|
23180
23188
|
}
|
|
23181
23189
|
_this.exec_wkf(o, _this.nlevel, result.arrsel, result.nota, _this.transizione_info.create_ver);
|
|
@@ -23211,9 +23219,9 @@
|
|
|
23211
23219
|
});
|
|
23212
23220
|
dialogRef.afterClosed().subscribe(function (result) {
|
|
23213
23221
|
if (result == null || result == "abort") {
|
|
23214
|
-
_this.update_status(true, false, null);
|
|
23222
|
+
_this.update_status(true, false, null, null);
|
|
23215
23223
|
if (_this.respingi_enabled)
|
|
23216
|
-
_this.update_status(true, true, null);
|
|
23224
|
+
_this.update_status(true, true, null, null);
|
|
23217
23225
|
return;
|
|
23218
23226
|
}
|
|
23219
23227
|
_this.exec_wkf(o, _this.nlevel, arrAutori, result, _this.transizione_info.create_ver);
|
|
@@ -23490,17 +23498,17 @@
|
|
|
23490
23498
|
dati_aggiuntivi_v2.prototype.respingi = function () {
|
|
23491
23499
|
this.oper = "respingi";
|
|
23492
23500
|
this.btnprocedi = true;
|
|
23493
|
-
this.update_status(false, false, null);
|
|
23501
|
+
this.update_status(false, false, null, null);
|
|
23494
23502
|
this.salva();
|
|
23495
23503
|
};
|
|
23496
23504
|
dati_aggiuntivi_v2.prototype.procedi = function () {
|
|
23497
23505
|
this.oper = "procedi";
|
|
23498
23506
|
this.btnprocedi = true;
|
|
23499
|
-
this.update_status(false, false, null);
|
|
23507
|
+
this.update_status(false, false, null, null);
|
|
23500
23508
|
if (!this.ck_field()) {
|
|
23501
|
-
this.update_status(true, null, null);
|
|
23509
|
+
this.update_status(true, null, null, null);
|
|
23502
23510
|
if (this.respingi_enabled)
|
|
23503
|
-
this.update_status(true, true, null);
|
|
23511
|
+
this.update_status(true, true, null, null);
|
|
23504
23512
|
return;
|
|
23505
23513
|
}
|
|
23506
23514
|
this.salva();
|
|
@@ -23625,7 +23633,7 @@
|
|
|
23625
23633
|
var _this = this;
|
|
23626
23634
|
this.before_save();
|
|
23627
23635
|
this.b_edit_before = this.b_edit && this.b_rip_pulsanti;
|
|
23628
|
-
this.update_status(false, null, null);
|
|
23636
|
+
this.update_status(false, null, null, null);
|
|
23629
23637
|
var arr = this.getfieldvalues();
|
|
23630
23638
|
// console.log('arr',arr);
|
|
23631
23639
|
var p = new QParam();
|
|
@@ -23696,7 +23704,7 @@
|
|
|
23696
23704
|
if (!this.btnprocedi) {
|
|
23697
23705
|
this.alert("DOCUMENTO SALVATO", 0);
|
|
23698
23706
|
this.after_save();
|
|
23699
|
-
this.update_status(this.b_edit_before, null, null);
|
|
23707
|
+
this.update_status(this.b_edit_before, null, null, null);
|
|
23700
23708
|
if (!this.b_edit && !this.btnprocedi)
|
|
23701
23709
|
this.m_router.navigate([
|
|
23702
23710
|
this.app_info.modulo_swf,
|
|
@@ -23748,7 +23756,7 @@
|
|
|
23748
23756
|
dati_aggiuntivi_v2.prototype.ok_load_document = function (o) {
|
|
23749
23757
|
var _this = this;
|
|
23750
23758
|
this.m_obj = (JSON.parse(JSON.stringify(o)));
|
|
23751
|
-
this.update_status(false, null, null);
|
|
23759
|
+
this.update_status(false, null, null, null);
|
|
23752
23760
|
this.save_to_app_state();
|
|
23753
23761
|
var p = new QParam();
|
|
23754
23762
|
p.sql = "SELECT_WLIVELLIV2_2";
|
|
@@ -24006,7 +24014,7 @@
|
|
|
24006
24014
|
lvlb,
|
|
24007
24015
|
this.tsr.instant("Assegnata a") + ": " + s_auto,
|
|
24008
24016
|
"",
|
|
24009
|
-
|
|
24017
|
+
s,
|
|
24010
24018
|
this.getLvlDescri(String(lvlb), this.tsr.instant("Assegnata a") + ": " + s_auto),
|
|
24011
24019
|
this.getUsersList(s_auto, this.m_obj.assegnati_paralleli),
|
|
24012
24020
|
this.user_idp,
|
|
@@ -24023,7 +24031,7 @@
|
|
|
24023
24031
|
lvlb,
|
|
24024
24032
|
this.tsr.instant("Assegnata a") + ": " + s_auto,
|
|
24025
24033
|
"",
|
|
24026
|
-
|
|
24034
|
+
s,
|
|
24027
24035
|
this.getLvlDescri(String(lvlb), this.tsr.instant("Assegnata a") + ": " + s_auto),
|
|
24028
24036
|
this.getUsersList(s_auto, this.m_obj.assegnati_paralleli),
|
|
24029
24037
|
this.user_idp,
|
|
@@ -24262,7 +24270,7 @@
|
|
|
24262
24270
|
this.livs[i].context == "*ALLUSERS") {
|
|
24263
24271
|
// if (this.livs[i].abilita_indietro == 1) this.respingi_enabled = true;
|
|
24264
24272
|
// else this.respingi_enabled = false;
|
|
24265
|
-
this.update_status(true, null, null);
|
|
24273
|
+
this.update_status(true, null, null, null);
|
|
24266
24274
|
break;
|
|
24267
24275
|
}
|
|
24268
24276
|
}
|
|
@@ -24288,10 +24296,14 @@
|
|
|
24288
24296
|
if (this.m_obj.autori != null)
|
|
24289
24297
|
if (this.m_obj.autori.split(',').length != 1)
|
|
24290
24298
|
this.in_carico = true;
|
|
24291
|
-
|
|
24292
|
-
this.
|
|
24299
|
+
// if(!this.in_carico){
|
|
24300
|
+
if (this.m_obj.assegnati_paralleli != null)
|
|
24301
|
+
if (this.m_obj.assegnati_paralleli.split(',').length != 1)
|
|
24302
|
+
this.b_assenza_a = true;
|
|
24303
|
+
// }
|
|
24304
|
+
this.update_status(true, false, this.in_carico, this.b_assenza_a);
|
|
24293
24305
|
if (this.respingi_enabled)
|
|
24294
|
-
this.update_status(null, true, this.in_carico);
|
|
24306
|
+
this.update_status(null, true, this.in_carico, this.b_assenza_a);
|
|
24295
24307
|
}
|
|
24296
24308
|
this.r_count();
|
|
24297
24309
|
this.s_uto = '';
|