@fluxhub/fluxhub-lib 10.0.619 → 10.0.621
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 +15 -6
- 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/controls/win_pick_list.js +4 -4
- package/esm2015/lib/wkf_engine/win_log.js +13 -8
- package/esm2015/lib/wkf_engine/wkf_header_bar.js +4 -2
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +3 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +18 -10
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/wkf_engine/win_log.d.ts +3 -1
- package/lib/wkf_engine/wkf_header_bar.d.ts +1 -0
- package/lib/wkf_engine/wkfdatiaggiuntivi.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2554,7 +2554,7 @@
|
|
|
2554
2554
|
fh_win_picklist.decorators = [
|
|
2555
2555
|
{ type: i0.Component, args: [{
|
|
2556
2556
|
selector: "FHPickList",
|
|
2557
|
-
template: "\n <div fxLayout=\"column\" fxLayoutGap=\"15px\" style=\"min-width:1000px\" fxFlex>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <div fxLayout=\"column\" fxFlex=\"45\">\n <div style=\"width:100%;height:450px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table sel_r\">\n <thead>\n <tr>\n <th>{{'VALORI SELEZIONABILI' | translate}}</th>\n </tr>\n </thead>\n\n <tbody>\n <tr style=\"background-color:#FFF !important\">\n <td>\n <input\n [(ngModel)]=\"fltr_user\"\n (ngModelChange)=\"filtra()\"\n style=\"padding:8px;margin:15px auto;width:100%;\"\n placeholder=\"Ricerca...\"\n />\n </td>\n </tr>\n <tr\n *ngFor=\"\n let u of value_list_sel;\n let odd = odd;\n let even = even\n \"\n\n (click)=\"addTo(u)\"\n (dblclick)=\"do_add()\"\n class=\"selector\"\n\n [ngClass]=\"{ active: selectedAdd == u }\"\n >\n <td [ngClass]=\"{ odd: odd, even: even }\" style=\"cursor:pointer\">{{ u.descrizione_valore | translate }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div\n fxLayout=\"column\" fxFlex=\"10\" fxLayoutAlign=\"center center\"\n style=\"height: 450px; position: relative; margin:0 .5em; padding-left: .5em; padding-right: .5em; border-left: 1px solid rgba(191, 191, 191, 0.5); border-right: 1px solid rgba(191, 191, 191, 0.5);\"\n >\n <div fxLayoutAlign=\"center center\" fxLayout=\"column\"\n\n >\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_add()\"\n [disabled]=\"!option\"\n >\n <mat-icon>arrow_forward</mat-icon>\n </button>\n <br /><br />\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_rem()\"\n [disabled]=\"option\"\n >\n <mat-icon>delete</mat-icon>\n </button> <br *ngIf=\"!single_sel\" /><br *ngIf=\"!single_sel\"/> <br *ngIf=\"!single_sel\"/><br *ngIf=\"!single_sel\"/>\n <button *ngIf=\"!single_sel\"\n mat-flat-button\n color=\"primary\"\n (click)=\"add_all()\"\n [disabled]=\"value_list_sel.length
|
|
2557
|
+
template: "\n <div fxLayout=\"column\" fxLayoutGap=\"15px\" style=\"min-width:1000px\" fxFlex>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <div fxLayout=\"column\" fxFlex=\"45\">\n <div style=\"width:100%;height:450px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table sel_r\">\n <thead>\n <tr>\n <th>{{'VALORI SELEZIONABILI' | translate}}</th>\n </tr>\n </thead>\n\n <tbody>\n <tr style=\"background-color:#FFF !important\">\n <td>\n <input\n [(ngModel)]=\"fltr_user\"\n (ngModelChange)=\"filtra()\"\n style=\"padding:8px;margin:15px auto;width:100%;\"\n placeholder=\"Ricerca...\"\n />\n </td>\n </tr>\n <tr\n *ngFor=\"\n let u of value_list_sel;\n let odd = odd;\n let even = even\n \"\n\n (click)=\"addTo(u)\"\n (dblclick)=\"do_add()\"\n class=\"selector\"\n\n [ngClass]=\"{ active: selectedAdd == u }\"\n >\n <td [ngClass]=\"{ odd: odd, even: even }\" style=\"cursor:pointer\">{{ u.descrizione_valore | translate }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div\n fxLayout=\"column\" fxFlex=\"10\" fxLayoutAlign=\"center center\"\n style=\"height: 450px; position: relative; margin:0 .5em; padding-left: .5em; padding-right: .5em; border-left: 1px solid rgba(191, 191, 191, 0.5); border-right: 1px solid rgba(191, 191, 191, 0.5);\"\n >\n <div fxLayoutAlign=\"center center\" fxLayout=\"column\"\n\n >\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_add()\"\n [disabled]=\"!option\"\n >\n <mat-icon>arrow_forward</mat-icon>\n </button>\n <br /><br />\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_rem()\"\n [disabled]=\"option\"\n >\n <mat-icon>delete</mat-icon>\n </button> <br *ngIf=\"!single_sel\" /><br *ngIf=\"!single_sel\"/> <br *ngIf=\"!single_sel\"/><br *ngIf=\"!single_sel\"/>\n <button *ngIf=\"!single_sel\"\n mat-flat-button\n color=\"primary\"\n (click)=\"add_all()\"\n [disabled]=\"value_list_sel.length==0\"\n >\n Sel. Tutti\n </button> <br *ngIf=\"!single_sel\"/>\n <button *ngIf=\"!single_sel\"\n mat-flat-button\n color=\"primary\"\n (click)=\"rem_all()\"\n [disabled]=\"value_sel.length==0\"\n >\n Desel. Tutti\n </button>\n </div>\n </div>\n <div fxLayout=\"column\" fxFlex=\"45\">\n <div style=\"width:100%;height:450px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table sel_r\">\n <thead>\n <tr>\n <th>{{'VALORI SELEZIONATI'}}</th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let u of value_sel; let odd = odd; let even = even\"\n (mouseover)=\"selectedRemove = u\"\n [ngClass]=\"{ odd: odd, even: even }\"\n (click)=\"removeTo(u)\"\n (dblclick)=\"do_rem()\"\n class=\"selector\"\n [ngClass]=\"{ active: selectedRemove == u }\"\n >\n <td [ngClass]=\"{ odd: odd, even: even }\" style=\"cursor:pointer\">{{ u.descrizione_valore | translate }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <br /><br />\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" fxLayoutGap=\"5px\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">Ok</button\n > \n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"dialogRef.close()\"\n >\n {{'Annulla' | translate}}\n </button>\n </div>\n </div>\n ",
|
|
2558
2558
|
styles: ["\n .mat-dialog-content\u00A0{\u00A0\u00A0max-height:\u00A0unset\u00A0!important;\u00A0}\n .selector {\n cursor: hand;\n }\n "]
|
|
2559
2559
|
},] }
|
|
2560
2560
|
];
|
|
@@ -11105,7 +11105,7 @@
|
|
|
11105
11105
|
]; };
|
|
11106
11106
|
|
|
11107
11107
|
var win_log = /** @class */ (function () {
|
|
11108
|
-
function win_log(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf, m_file) {
|
|
11108
|
+
function win_log(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf, m_file, data) {
|
|
11109
11109
|
this.dialogRef = dialogRef;
|
|
11110
11110
|
this.m_dialogRef = m_dialogRef;
|
|
11111
11111
|
this.m_appService = m_appService;
|
|
@@ -11113,6 +11113,7 @@
|
|
|
11113
11113
|
this._dataService = _dataService;
|
|
11114
11114
|
this.m_wkf = m_wkf;
|
|
11115
11115
|
this.m_file = m_file;
|
|
11116
|
+
this.data = data;
|
|
11116
11117
|
this.ossv = false;
|
|
11117
11118
|
this.not_comm = false;
|
|
11118
11119
|
this.not_comm_disabled = false;
|
|
@@ -11126,10 +11127,13 @@
|
|
|
11126
11127
|
this.b_edit = false;
|
|
11127
11128
|
this.b_ins = false;
|
|
11128
11129
|
this.edit_id = 0;
|
|
11130
|
+
this.c_edit = true;
|
|
11129
11131
|
this.lettori = "";
|
|
11130
11132
|
this.subject = "";
|
|
11131
11133
|
this.link = "";
|
|
11132
11134
|
this.codice_doc = "";
|
|
11135
|
+
if (data.c_edit != null)
|
|
11136
|
+
this.c_edit = data.c_edit;
|
|
11133
11137
|
}
|
|
11134
11138
|
win_log.prototype.ric_all = function () {
|
|
11135
11139
|
this.refresh_list();
|
|
@@ -11440,7 +11444,7 @@
|
|
|
11440
11444
|
}());
|
|
11441
11445
|
win_log.decorators = [
|
|
11442
11446
|
{ type: i0.Component, args: [{
|
|
11443
|
-
template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\n src=\"assets/icons/x.png\"\n style=\"cursor: pointer;\"\n (click)=\"close()\"\n />\n </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\" />\n\n <div\n style=\"font-size: 12px\"\n [style.height]=\"m_appService.getState().body_h - 130 + 'px'\"\n >\n <mat-tab-group\n #zz\n style=\"width:100%\"\n [style.height]=\"m_appService.getState().body_h - 140 + 'px'\"\n >\n <mat-tab label=\"WORKFLOW\" *ngIf=\"b_flussook\">\n <div [style.height]=\"m_appService.getState().body_h - 160 + 'px'\">\n <div style=\"width:100%;height:100%\" id=\"canvas\"></div>\n </div>\n </mat-tab>\n\n <mat-tab label=\"LOGS\">\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"center end\"\n fxFlex=\"90\"\n *ngIf=\"!b_edit && commenti_insert\"\n >\n <button mat-flat-button color=\"accent\" (click)=\"ins()\">\n <mat-icon>note_add</mat-icon>\n {{'INSERISCI' | translate}}</button\n > \n </div>\n\n <div fxLayout=\"column\" *ngIf=\"b_edit\">\n <br />\n <mat-form-field\n *ngIf=\"b_edit\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{'Commento' | translate}}</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"12\"></textarea>\n </mat-form-field>\n\n <div *ngIf=\"b_edit\" fxLayoutAlign=\"center center\" fxLayout=\"row\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">OK</button\n > \n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"annulla()\"\n >\n {{'ANNULLA' | translate}}</button\n > \n <mat-checkbox\n [disabled]=\"not_comm_disabled\"\n [(ngModel)]=\"not_comm\"\n [hidden]=\"\n notifica_commenti == 0 ||\n (notifica_commenti == 1 && lettori == '')\n \"\n >\n {{'Notifica Interessati' | translate}}\n\n </mat-checkbox>\n </div>\n <br /><br />\n </div>\n <table *ngIf=\"!b_edit\" class=\"fh_table\" style=\"width:90%\">\n <thead>\n <tr>\n <th width=\"15%\">{{'Data' | translate}}</th>\n <th width=\"15%\">{{'Utente' | translate}}</th>\n <th>{{'Operazione' | translate}}</th>\n <td></td>\n <td></td>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"\n let app of logs;\n let odd = odd;\n let even = even;\n index as i\n \"\n [ngClass]=\"{ odd: odd, even: even }\"\n >\n <td>{{ app.data_creazione | date: \"dd/MM/yyyy HH:mm:ss\" }}</td>\n <td>{{ app.nc }}</td>\n <td [innerHTML]=\"app.v_commento\"></td>\n <td>\n <mat-icon\n [matTooltip]=\"app.dest_notif\"\n *ngIf=\"app.dest_notif != null && app.dest_notif != ''\"\n >mail</mat-icon\n >\n </td>\n <td>\n <mat-icon\n *ngIf=\"\n i == 0 &&\n app.creatore ==\n m_appService.getState().wkf_doc_info.curr_user\n \"\n (click)=\"edit_comm(app)\"\n >edit\n </mat-icon>\n </td>\n </tr>\n </tbody>\n </table>\n </mat-tab>\n </mat-tab-group>\n </div>\n ",
|
|
11447
|
+
template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\n src=\"assets/icons/x.png\"\n style=\"cursor: pointer;\"\n (click)=\"close()\"\n />\n </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\" />\n\n <div\n style=\"font-size: 12px\"\n [style.height]=\"m_appService.getState().body_h - 130 + 'px'\"\n >\n <mat-tab-group\n #zz\n style=\"width:100%\"\n [style.height]=\"m_appService.getState().body_h - 140 + 'px'\"\n >\n <mat-tab label=\"WORKFLOW\" *ngIf=\"b_flussook\">\n <div [style.height]=\"m_appService.getState().body_h - 160 + 'px'\">\n <div style=\"width:100%;height:100%\" id=\"canvas\"></div>\n </div>\n </mat-tab>\n\n <mat-tab label=\"LOGS\">\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"center end\"\n fxFlex=\"90\"\n *ngIf=\"!b_edit && commenti_insert && c_edit\"\n >\n <button mat-flat-button color=\"accent\" (click)=\"ins()\">\n <mat-icon>note_add</mat-icon>\n {{'INSERISCI' | translate}}</button\n > \n </div>\n\n <div fxLayout=\"column\" *ngIf=\"b_edit\">\n <br />\n <mat-form-field\n *ngIf=\"b_edit\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{'Commento' | translate}}</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"12\"></textarea>\n </mat-form-field>\n\n <div *ngIf=\"b_edit\" fxLayoutAlign=\"center center\" fxLayout=\"row\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">OK</button\n > \n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"annulla()\"\n >\n {{'ANNULLA' | translate}}</button\n > \n <mat-checkbox\n [disabled]=\"not_comm_disabled\"\n [(ngModel)]=\"not_comm\"\n [hidden]=\"\n notifica_commenti == 0 ||\n (notifica_commenti == 1 && lettori == '')\n \"\n >\n {{'Notifica Interessati' | translate}}\n\n </mat-checkbox>\n </div>\n <br /><br />\n </div>\n <table *ngIf=\"!b_edit\" class=\"fh_table\" style=\"width:90%\">\n <thead>\n <tr>\n <th width=\"15%\">{{'Data' | translate}}</th>\n <th width=\"15%\">{{'Utente' | translate}}</th>\n <th>{{'Operazione' | translate}}</th>\n <td></td>\n <td *ngIf=\"c_edit\"></td>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"\n let app of logs;\n let odd = odd;\n let even = even;\n index as i\n \"\n [ngClass]=\"{ odd: odd, even: even }\"\n >\n <td>{{ app.data_creazione | date: \"dd/MM/yyyy HH:mm:ss\" }}</td>\n <td>{{ app.nc }}</td>\n <td [innerHTML]=\"app.v_commento\"></td>\n <td>\n <mat-icon\n [matTooltip]=\"app.dest_notif\"\n *ngIf=\"app.dest_notif != null && app.dest_notif != ''\"\n >mail</mat-icon\n >\n </td>\n <td *ngIf=\"c_edit\">\n <mat-icon\n *ngIf=\"\n i == 0 &&\n app.creatore ==\n m_appService.getState().wkf_doc_info.curr_user\n \"\n (click)=\"edit_comm(app)\"\n >edit\n </mat-icon>\n </td>\n </tr>\n </tbody>\n </table>\n </mat-tab>\n </mat-tab-group>\n </div>\n ",
|
|
11444
11448
|
styles: [""]
|
|
11445
11449
|
},] }
|
|
11446
11450
|
];
|
|
@@ -11451,7 +11455,8 @@
|
|
|
11451
11455
|
{ type: i3.ToastrService },
|
|
11452
11456
|
{ type: QueryService },
|
|
11453
11457
|
{ type: WkfService },
|
|
11454
|
-
{ type: FileService }
|
|
11458
|
+
{ type: FileService },
|
|
11459
|
+
{ type: undefined, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
|
|
11455
11460
|
]; };
|
|
11456
11461
|
win_log.propDecorators = {
|
|
11457
11462
|
zz: [{ type: i0.ViewChild, args: ["zz",] }]
|
|
@@ -12846,6 +12851,7 @@
|
|
|
12846
12851
|
this.command = new i0.EventEmitter();
|
|
12847
12852
|
this.admin_role = '[ZZZ_DIS_CC]';
|
|
12848
12853
|
this.sovra_path = '';
|
|
12854
|
+
this.edit_comments_in_logs = true;
|
|
12849
12855
|
this.back_lbl = 'Indietro';
|
|
12850
12856
|
this.save_lbl = 'Salva';
|
|
12851
12857
|
this.procedi_lbl = 'Procedi';
|
|
@@ -12898,7 +12904,7 @@
|
|
|
12898
12904
|
wkf_header_bar.prototype.open_wkf = function () {
|
|
12899
12905
|
this.button_clicked.emit('open_wkf');
|
|
12900
12906
|
if (this.dt_agg != null)
|
|
12901
|
-
this.dt_agg.open_wkf();
|
|
12907
|
+
this.dt_agg.open_wkf(false, this.edit_comments_in_logs);
|
|
12902
12908
|
};
|
|
12903
12909
|
wkf_header_bar.prototype.ngAfterViewInit = function () {
|
|
12904
12910
|
var _this = this;
|
|
@@ -12939,6 +12945,7 @@
|
|
|
12939
12945
|
command: [{ type: i0.Output }],
|
|
12940
12946
|
admin_role: [{ type: i0.Input }],
|
|
12941
12947
|
sovra_path: [{ type: i0.Input }],
|
|
12948
|
+
edit_comments_in_logs: [{ type: i0.Input }],
|
|
12942
12949
|
button_clicked: [{ type: i0.Output }]
|
|
12943
12950
|
};
|
|
12944
12951
|
|
|
@@ -20781,14 +20788,16 @@
|
|
|
20781
20788
|
}
|
|
20782
20789
|
this.salva();
|
|
20783
20790
|
};
|
|
20784
|
-
dati_aggiuntivi.prototype.open_wkf = function (inser_c) {
|
|
20791
|
+
dati_aggiuntivi.prototype.open_wkf = function (inser_c, edit_c) {
|
|
20785
20792
|
var _this = this;
|
|
20786
20793
|
if (inser_c === void 0) { inser_c = false; }
|
|
20794
|
+
if (edit_c === void 0) { edit_c = true; }
|
|
20787
20795
|
var s_h = this.app_s.getState().body_h - 40 + "px";
|
|
20788
20796
|
var dialogRef = this.m_dialog.open(win_log, {
|
|
20789
20797
|
disableClose: true,
|
|
20790
20798
|
width: "95%",
|
|
20791
20799
|
height: s_h,
|
|
20800
|
+
data: { edit_c: edit_c }
|
|
20792
20801
|
});
|
|
20793
20802
|
setTimeout(function () {
|
|
20794
20803
|
dialogRef.componentInstance.subject =
|