@fluxhub/fluxhub-lib 11.0.43 → 11.0.45
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 +16 -6
- 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/controls/fhgrid.js +1 -1
- package/esm2015/lib/wkf_engine_v2/wkf_header_bar.js +2 -1
- package/esm2015/lib/wkf_engine_v2/wkfdatiaggiuntivi.js +16 -6
- package/fesm2015/fluxhub-fluxhub-lib.js +16 -5
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/wkf_engine_v2/wkfdatiaggiuntivi.d.ts +3 -0
- package/package.json +1 -1
|
@@ -16699,7 +16699,7 @@
|
|
|
16699
16699
|
wkf_header_bar_v2.decorators = [
|
|
16700
16700
|
{ type: i0.Component, args: [{
|
|
16701
16701
|
selector: "wkf_header_bar_v2",
|
|
16702
|
-
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 *ngIf=\"(edit_button || force_save) && !in_carico\">\n <button\n mat-flat-button\n (click)=\"evt_salv()\"\n\n color=\"primary\" style=\"font-weight:bold\"\n >\n {{save_lbl}}</button\n ></div>\n\n\n <div>\n <button\n mat-flat-button\n (click)=\"prendi_in_carico()\"\n *ngIf=\"in_carico\"\n style=\"background-color:#709D66;color:#FFFFFF;font-weight:bold\"\n >\n {{prendi_in_carico_lbl | translate}}</button\n ></div>\n\n <div *ngIf=\"dt_agg!=null && dt_agg?.b_init_next\">\n\n <button\n mat-flat-button\n (click)=\"procedi()\"\n *ngIf=\"(edit_button && procedi_button) && !in_carico\"\n style=\"font-weight:bold\" [style.background-color]=\"dt_agg?.next_back_ground_color\" [style.color]=\"dt_agg?.next_label_color\"\n >\n {{dt_agg?.next_label | translate}}</button>\n </div>\n\n <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 <div *ngIf=\"assegna_a\">\n <button\n mat-flat-button\n (click)=\"evt_assegna_a()\"\n\n style=\"background-color:#709D66;color:#FFF;font-weight:bold\"\n >\n {{'Riassegna a'|translate}}</button\n ></div>\n\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 && show_commenti\"\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 && show_allegati\"\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 && show_logs\"\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 "
|
|
16702
|
+
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 *ngIf=\"(edit_button || force_save) && !in_carico\">\n <button\n mat-flat-button\n (click)=\"evt_salv()\"\n\n color=\"primary\" style=\"font-weight:bold\"\n >\n {{save_lbl}}</button\n ></div>\n\n\n <div>\n <button\n mat-flat-button\n (click)=\"prendi_in_carico()\"\n *ngIf=\"in_carico\"\n style=\"background-color:#709D66;color:#FFFFFF;font-weight:bold\"\n >\n {{prendi_in_carico_lbl | translate}}</button\n ></div>\n\n <div *ngIf=\"dt_agg!=null && dt_agg?.b_init_next\">\n\n <button\n mat-flat-button\n (click)=\"procedi()\"\n *ngIf=\"(edit_button && procedi_button) && !in_carico\"\n style=\"font-weight:bold\" [style.background-color]=\"dt_agg?.next_back_ground_color\" [style.color]=\"dt_agg?.next_label_color\"\n >\n {{dt_agg?.next_label | translate}}</button>\n </div>\n\n <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 <div *ngIf=\"assegna_a\">\n <button\n mat-flat-button\n (click)=\"evt_assegna_a()\"\n\n style=\"background-color:#709D66;color:#FFF;font-weight:bold\"\n >\n {{'Riassegna a'|translate}}</button\n ></div>\n\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 && show_commenti\"\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 && show_allegati\"\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 && show_logs\"\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 \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 "
|
|
16703
16703
|
},] }
|
|
16704
16704
|
];
|
|
16705
16705
|
wkf_header_bar_v2.ctorParameters = function () { return [
|
|
@@ -25294,6 +25294,9 @@
|
|
|
25294
25294
|
this.reset_form_v(this.tsr.instant(this.app_info.descrizione_breve) +
|
|
25295
25295
|
" - " +
|
|
25296
25296
|
this.tsr.instant("Nuova Richiesta"));
|
|
25297
|
+
if (this.custom_action != null) {
|
|
25298
|
+
this.custom_init_action(this.custom_action, this.custom_action_param);
|
|
25299
|
+
}
|
|
25297
25300
|
this.reset_counters_int(0, 0);
|
|
25298
25301
|
/*
|
|
25299
25302
|
dati_aggiuntivi.id_doc=id_documento;
|
|
@@ -25341,6 +25344,7 @@
|
|
|
25341
25344
|
dati_aggiuntivi_v2.prototype.reassigned_to = function (op) { };
|
|
25342
25345
|
dati_aggiuntivi_v2.prototype.after_save = function () { };
|
|
25343
25346
|
dati_aggiuntivi_v2.prototype.before_save = function () { };
|
|
25347
|
+
dati_aggiuntivi_v2.prototype.custom_init_action = function (op, p) { };
|
|
25344
25348
|
dati_aggiuntivi_v2.prototype.can_save = function () {
|
|
25345
25349
|
return true;
|
|
25346
25350
|
};
|
|
@@ -25469,21 +25473,27 @@
|
|
|
25469
25473
|
var _this = this;
|
|
25470
25474
|
if (this.app_s.user != null)
|
|
25471
25475
|
this.user_idp = this.app_s.user;
|
|
25472
|
-
console.log(
|
|
25476
|
+
// console.log(
|
|
25477
|
+
// "this.user_idp == null || this.m_route.params==null ",
|
|
25478
|
+
// this.user_idp,
|
|
25479
|
+
// this.m_route.params,
|
|
25480
|
+
// new Date()
|
|
25481
|
+
// );
|
|
25473
25482
|
if (this.user_idp == null || this.m_route.params == null) {
|
|
25474
25483
|
setTimeout(function () {
|
|
25475
25484
|
_this.init_engine();
|
|
25476
25485
|
}, 500);
|
|
25477
25486
|
return;
|
|
25478
25487
|
}
|
|
25479
|
-
console.log("init_engine", new Date());
|
|
25480
25488
|
this.init_user_i();
|
|
25481
25489
|
this.m_route.params.subscribe(function (params) {
|
|
25482
25490
|
var id = params["op"];
|
|
25483
25491
|
_this.id_applicativo = params["idapp"];
|
|
25484
25492
|
_this.id_documento = params["id_doc"];
|
|
25485
|
-
|
|
25486
|
-
_this.
|
|
25493
|
+
_this.custom_action = params["custom_action"];
|
|
25494
|
+
_this.custom_action_param = params["param"];
|
|
25495
|
+
_this.b_edit = id != "new" && id != "custom_action" ? true : false;
|
|
25496
|
+
console.log("🚀 ~ file: wkfdatiaggiuntivi.ts ~ line 2413 ~ dati_aggiuntivi_v2 ~ this.m_route.params.subscribe ~ this.b_edit", _this.b_edit);
|
|
25487
25497
|
_this.init_app_wkf();
|
|
25488
25498
|
if (!_this.b_edit)
|
|
25489
25499
|
if (_this.id_applicativo.indexOf("_") > -1) {
|
|
@@ -25498,7 +25508,7 @@
|
|
|
25498
25508
|
});
|
|
25499
25509
|
};
|
|
25500
25510
|
dati_aggiuntivi_v2.prototype.init_app_wkf = function () {
|
|
25501
|
-
console.log("init_app_wkf ", this.b_edit);
|
|
25511
|
+
// console.log("init_app_wkf ", this.b_edit);
|
|
25502
25512
|
if (!this.b_edit)
|
|
25503
25513
|
this.insert_doc();
|
|
25504
25514
|
else
|