@fluxhub/fluxhub-lib 11.0.29 → 11.0.31
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 +18 -40
- 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 +5 -5
- package/esm2015/lib/controls/fhgridn.js +5 -5
- package/esm2015/lib/controls/fhpickfield.js +3 -3
- package/esm2015/lib/controls/win_user_info.js +10 -42
- package/esm2015/lib/wkf_engine_v2/wkf_header_bar.js +10 -4
- package/esm2015/lib/wkf_engine_v2/wkfdatiaggiuntivi.js +1 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +28 -53
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/win_user_info.d.ts +6 -6
- package/lib/wkf_engine_v2/wkf_header_bar.d.ts +3 -0
- package/package.json +1 -1
|
@@ -2715,8 +2715,8 @@
|
|
|
2715
2715
|
return;
|
|
2716
2716
|
var dialogRef = this.dialog.open(fh_win_picklist, {
|
|
2717
2717
|
disableClose: true,
|
|
2718
|
-
width: "
|
|
2719
|
-
height: "
|
|
2718
|
+
width: "800px",
|
|
2719
|
+
height: "650px", data: {
|
|
2720
2720
|
value_list: JSON.parse(JSON.stringify(this.value_list)),
|
|
2721
2721
|
single_sel: this.single_sel,
|
|
2722
2722
|
vis_buttons: this.vis_buttons,
|
|
@@ -6923,7 +6923,7 @@
|
|
|
6923
6923
|
ss_r +=
|
|
6924
6924
|
this_1.columnDefs[y].field +
|
|
6925
6925
|
" LIKE '%" +
|
|
6926
|
-
|
|
6926
|
+
(arr_F_1[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
|
|
6927
6927
|
"%' ESCAPE '$'";
|
|
6928
6928
|
}
|
|
6929
6929
|
}
|
|
@@ -6936,7 +6936,7 @@
|
|
|
6936
6936
|
ss_r +=
|
|
6937
6937
|
v +
|
|
6938
6938
|
" LIKE '%" +
|
|
6939
|
-
|
|
6939
|
+
(arr_F_1[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
|
|
6940
6940
|
"%' ESCAPE '$'";
|
|
6941
6941
|
}
|
|
6942
6942
|
});
|
|
@@ -7188,7 +7188,7 @@
|
|
|
7188
7188
|
ss_r +=
|
|
7189
7189
|
this_2.columnDefs[y].field +
|
|
7190
7190
|
" LIKE '%" +
|
|
7191
|
-
|
|
7191
|
+
(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
|
|
7192
7192
|
"%' ESCAPE '$'";
|
|
7193
7193
|
}
|
|
7194
7194
|
}
|
|
@@ -7201,7 +7201,7 @@
|
|
|
7201
7201
|
ss_r +=
|
|
7202
7202
|
v +
|
|
7203
7203
|
" LIKE '%" +
|
|
7204
|
-
|
|
7204
|
+
(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
|
|
7205
7205
|
"%' ESCAPE '$'";
|
|
7206
7206
|
}
|
|
7207
7207
|
});
|
|
@@ -14799,33 +14799,6 @@
|
|
|
14799
14799
|
this.dialogRef.close(null);
|
|
14800
14800
|
};
|
|
14801
14801
|
fh_win_user_info.prototype.ngAfterViewInit = function () {
|
|
14802
|
-
var _this = this;
|
|
14803
|
-
setTimeout(function () {
|
|
14804
|
-
if (_this.isadmin == "1")
|
|
14805
|
-
if (_this.appService.dev_mode != null)
|
|
14806
|
-
if (_this.appService.dev_mode == "1")
|
|
14807
|
-
_this.dev_mode = true;
|
|
14808
|
-
var p = new QParam();
|
|
14809
|
-
p.sql = "SELECT_ALLEGATI_DOCUMENTO";
|
|
14810
|
-
p.types = ["string", "string"];
|
|
14811
|
-
p.values = ["FOTO_UTENTI", _this.appService.user];
|
|
14812
|
-
_this._dataService.doQuery(p).subscribe(function (data) {
|
|
14813
|
-
if (data != null)
|
|
14814
|
-
if (data.result_msg == "OK") {
|
|
14815
|
-
if (data.result_data.length > 0) {
|
|
14816
|
-
_this.b_filef = true;
|
|
14817
|
-
_this.foto_ut =
|
|
14818
|
-
_this.appService.COMPANY_SITE_ROOT +
|
|
14819
|
-
"uploads/" +
|
|
14820
|
-
data.result_data[0].App +
|
|
14821
|
-
"/" +
|
|
14822
|
-
data.result_data[0].K +
|
|
14823
|
-
"/" +
|
|
14824
|
-
data.result_data[0].Filename;
|
|
14825
|
-
}
|
|
14826
|
-
}
|
|
14827
|
-
});
|
|
14828
|
-
});
|
|
14829
14802
|
};
|
|
14830
14803
|
fh_win_user_info.prototype.upd_dev = function (dv) {
|
|
14831
14804
|
if (dv) {
|
|
@@ -14841,7 +14814,7 @@
|
|
|
14841
14814
|
}());
|
|
14842
14815
|
fh_win_user_info.decorators = [
|
|
14843
14816
|
{ type: i0.Component, args: [{
|
|
14844
|
-
template: "\n <div
|
|
14817
|
+
template: "\n <div fxLayout=\"column\" fxLayoutGap=\"5px\">\n <table class=\"dialog_header\" style=\"width:100%\"><tr><td>\n{{'INFO UTENTE'}}\n</td>\n<td style=\"text-align:right\">\n <img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"close()\" /></td>\n</table>\n\n\t\t<hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n\n <mat-dialog-content style=\"font-size:12px\">\n <table class=\"fh_table\" style=\"width:100%\">\n <tbody>\n <tr class=\"odd\">\n <td>{{'Nome' | translate}}</td>\n <td>\n <b>{{ user_name }}</b>\n </td>\n </tr>\n <tr class=\"even\">\n <td>{{'Cognome' | translate}}</td>\n <td>\n <b>{{ user_surname }}</b>\n </td>\n </tr>\n <tr class=\"odd\">\n <td>{{'Username' | translate}}</td>\n <td>\n <b>{{ user }}</b>\n </td>\n </tr>\n <tr class=\"even\">\n <td>{{'Email' | translate}}</td>\n <td>\n <b>{{ user_email }}</b>\n </td>\n </tr>\n <tr class=\"odd\">\n <td>{{'Ruoli' | translate}}</td>\n <td>\n <b>{{ user_roles }}</b>\n </td>\n </tr>\n <tr class=\"even\">\n <td>{{'Lingua' | translate}}</td>\n <td>\n <b>{{ user_lang }}</b>\n </td>\n </tr>\n <tr *ngIf=\"isadmin == '1'\" class=\"odd\">\n <td>DEV MODE</td>\n <td>\n <b\n ><mat-checkbox\n [(ngModel)]=\"dev_mode\"\n (ngModelChange)=\"upd_dev(dev_mode)\"\n ></mat-checkbox\n ></b>\n </td>\n </tr>\n </tbody>\n </table>\n <img\n style=\"vertical-align:middle;max-height:300px\"\n *ngIf=\"b_filef\"\n aria-hidden\n src=\"{{ foto_ut }}\"\n />\n </mat-dialog-content>\n</div>\n "
|
|
14845
14818
|
},] }
|
|
14846
14819
|
];
|
|
14847
14820
|
fh_win_user_info.ctorParameters = function () { return [
|
|
@@ -16602,6 +16575,9 @@
|
|
|
16602
16575
|
this.respingi_button = false;
|
|
16603
16576
|
this.procedi_button = true;
|
|
16604
16577
|
this.utility_button = true;
|
|
16578
|
+
this.show_logs = true;
|
|
16579
|
+
this.show_commenti = true;
|
|
16580
|
+
this.show_allegati = true;
|
|
16605
16581
|
this.force_save = false;
|
|
16606
16582
|
this.check_on_save = false;
|
|
16607
16583
|
this.download_button = true;
|
|
@@ -16704,7 +16680,7 @@
|
|
|
16704
16680
|
wkf_header_bar_v2.decorators = [
|
|
16705
16681
|
{ type: i0.Component, args: [{
|
|
16706
16682
|
selector: "wkf_header_bar_v2",
|
|
16707
|
-
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\"\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 "
|
|
16683
|
+
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 "
|
|
16708
16684
|
},] }
|
|
16709
16685
|
];
|
|
16710
16686
|
wkf_header_bar_v2.ctorParameters = function () { return [
|
|
@@ -16719,6 +16695,9 @@
|
|
|
16719
16695
|
respingi_button: [{ type: i0.Input }],
|
|
16720
16696
|
procedi_button: [{ type: i0.Input }],
|
|
16721
16697
|
utility_button: [{ type: i0.Input }],
|
|
16698
|
+
show_logs: [{ type: i0.Input }],
|
|
16699
|
+
show_commenti: [{ type: i0.Input }],
|
|
16700
|
+
show_allegati: [{ type: i0.Input }],
|
|
16722
16701
|
force_save: [{ type: i0.Input }],
|
|
16723
16702
|
check_on_save: [{ type: i0.Input }],
|
|
16724
16703
|
download_button: [{ type: i0.Input }],
|
|
@@ -18176,7 +18155,7 @@
|
|
|
18176
18155
|
ss_r +=
|
|
18177
18156
|
this_1.columnDefs[y].field +
|
|
18178
18157
|
" LIKE '%" +
|
|
18179
|
-
|
|
18158
|
+
(arr_F_1[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
|
|
18180
18159
|
"%' ESCAPE '$'";
|
|
18181
18160
|
}
|
|
18182
18161
|
}
|
|
@@ -18189,7 +18168,7 @@
|
|
|
18189
18168
|
ss_r +=
|
|
18190
18169
|
v +
|
|
18191
18170
|
" LIKE '%" +
|
|
18192
|
-
|
|
18171
|
+
(arr_F_1[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
|
|
18193
18172
|
"%' ESCAPE '$'";
|
|
18194
18173
|
}
|
|
18195
18174
|
});
|
|
@@ -18396,7 +18375,6 @@
|
|
|
18396
18375
|
}
|
|
18397
18376
|
};
|
|
18398
18377
|
FHGridComponentN.prototype.free_search = function () {
|
|
18399
|
-
var _this = this;
|
|
18400
18378
|
if (this.ric_libera == "") {
|
|
18401
18379
|
this.pulisci_filtri();
|
|
18402
18380
|
this.fix_flt_temp = "";
|
|
@@ -18427,7 +18405,7 @@
|
|
|
18427
18405
|
ss_r +=
|
|
18428
18406
|
this_2.columnDefs[y].field +
|
|
18429
18407
|
" LIKE '%" +
|
|
18430
|
-
|
|
18408
|
+
(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
|
|
18431
18409
|
"%' ESCAPE '$'";
|
|
18432
18410
|
}
|
|
18433
18411
|
}
|
|
@@ -18440,7 +18418,7 @@
|
|
|
18440
18418
|
ss_r +=
|
|
18441
18419
|
v +
|
|
18442
18420
|
" LIKE '%" +
|
|
18443
|
-
|
|
18421
|
+
(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
|
|
18444
18422
|
"%' ESCAPE '$'";
|
|
18445
18423
|
}
|
|
18446
18424
|
});
|