@fluxhub/fluxhub-lib 11.0.1 → 11.0.2
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 +21 -1
- 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_v2/wkf_header_bar.js +20 -5
- package/esm2015/lib/wkf_engine_v2/wkfdatiaggiuntivi.js +16 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +34 -4
- 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 +2 -0
- package/lib/wkf_engine_v2/wkfdatiaggiuntivi.d.ts +2 -0
- package/package.json +1 -1
|
@@ -16534,6 +16534,8 @@
|
|
|
16534
16534
|
this.download_button = true;
|
|
16535
16535
|
this.edit_comments_in_logs = true;
|
|
16536
16536
|
this.assegna_a = false;
|
|
16537
|
+
this.next_label = false;
|
|
16538
|
+
this.next_label_color = false;
|
|
16537
16539
|
this.back_lbl = 'Indietro';
|
|
16538
16540
|
this.save_lbl = 'Salva';
|
|
16539
16541
|
this.procedi_lbl = 'Procedi';
|
|
@@ -16629,7 +16631,7 @@
|
|
|
16629
16631
|
wkf_header_bar_v2.decorators = [
|
|
16630
16632
|
{ type: i0.Component, args: [{
|
|
16631
16633
|
selector: "wkf_header_bar_v2",
|
|
16632
|
-
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
|
|
16634
|
+
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 <div *ngIf=\"dt_agg==null\">\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>\n <div *ngIf=\"dt_agg!=null\">\n <button\n mat-flat-button\n (click)=\"procedi()\"\n *ngIf=\"(edit_button && procedi_button) && !in_carico\"\n color=\"accent\" style=\"font-weight:bold\" [style.background-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\"\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 "
|
|
16633
16635
|
},] }
|
|
16634
16636
|
];
|
|
16635
16637
|
wkf_header_bar_v2.ctorParameters = function () { return [
|
|
@@ -16649,6 +16651,8 @@
|
|
|
16649
16651
|
download_button: [{ type: i0.Input }],
|
|
16650
16652
|
edit_comments_in_logs: [{ type: i0.Input }],
|
|
16651
16653
|
assegna_a: [{ type: i0.Input }],
|
|
16654
|
+
next_label: [{ type: i0.Input }],
|
|
16655
|
+
next_label_color: [{ type: i0.Input }],
|
|
16652
16656
|
b_revisione: [{ type: i0.Input }],
|
|
16653
16657
|
admin_role: [{ type: i0.Input }],
|
|
16654
16658
|
sovra_path: [{ type: i0.Input }],
|
|
@@ -23043,6 +23047,8 @@
|
|
|
23043
23047
|
this.m_fileservice = m_fileservice;
|
|
23044
23048
|
this.tsr = tsr;
|
|
23045
23049
|
this.m_obj = {};
|
|
23050
|
+
this.next_label = "Procedi";
|
|
23051
|
+
this.next_label_color = "#ffd740";
|
|
23046
23052
|
this.sort_field = "";
|
|
23047
23053
|
this.in_carico = false;
|
|
23048
23054
|
this.wkf_users_roles = "";
|
|
@@ -24961,6 +24967,7 @@
|
|
|
24961
24967
|
this.load_document();
|
|
24962
24968
|
};
|
|
24963
24969
|
dati_aggiuntivi_v2.prototype.return_edit = function () {
|
|
24970
|
+
var _this = this;
|
|
24964
24971
|
for (var i = 0; i < this.livs.length; i++)
|
|
24965
24972
|
if (this.livs[i].step == this.m_obj.stato) {
|
|
24966
24973
|
if (this.livs[i].abilita_indietro == 1)
|
|
@@ -24986,6 +24993,19 @@
|
|
|
24986
24993
|
if (this.respingi_enabled)
|
|
24987
24994
|
this.update_status(null, true, this.in_carico, this.b_assengna_a, 17);
|
|
24988
24995
|
}
|
|
24996
|
+
var p = new QParam();
|
|
24997
|
+
p.sql = "SELECT_WKF_PROC_CONFIG";
|
|
24998
|
+
p.values = [this.id_applicativo, this.id_documento];
|
|
24999
|
+
p.types = ["string", "string"];
|
|
25000
|
+
this.m_dataService.doQuery(p).subscribe(function (data) {
|
|
25001
|
+
if (data != null)
|
|
25002
|
+
if (data.result_msg == "OK") {
|
|
25003
|
+
if (data.result_data.length > 0) {
|
|
25004
|
+
_this.next_label = data.result_data[0].next_label;
|
|
25005
|
+
_this.next_label_color = data.result_data[0].next_label_color;
|
|
25006
|
+
}
|
|
25007
|
+
}
|
|
25008
|
+
});
|
|
24989
25009
|
this.r_count();
|
|
24990
25010
|
this.s_uto = "";
|
|
24991
25011
|
var aut = this.m_obj.autori.split(",");
|