@fluxhub/fluxhub-lib 9.0.96 → 9.0.97
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 +107 -45
- 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/fhformtoolbar.js +19 -3
- package/esm2015/lib/controls/win_app_logs.js +88 -46
- package/esm5/lib/controls/fhformtoolbar.js +20 -3
- package/esm5/lib/controls/win_app_logs.js +89 -44
- package/fesm2015/fluxhub-fluxhub-lib.js +105 -47
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +107 -45
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhformtoolbar.d.ts +1 -0
- package/lib/controls/win_app_logs.d.ts +2 -45
- package/package.json +1 -1
|
@@ -6213,56 +6213,101 @@
|
|
|
6213
6213
|
this.datax = datax;
|
|
6214
6214
|
this.title = "LOGS";
|
|
6215
6215
|
this.data = null;
|
|
6216
|
-
this.
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
|
|
6216
|
+
this.b_commento = false;
|
|
6217
|
+
this.columnDefs = [];
|
|
6218
|
+
this.data = datax;
|
|
6219
|
+
if (datax != null)
|
|
6220
|
+
if (datax.b_commento != null)
|
|
6221
|
+
this.b_commento = this.datax.b_commento;
|
|
6222
|
+
if (this.b_commento)
|
|
6223
|
+
this.columnDefs = [
|
|
6224
|
+
{
|
|
6225
|
+
headerName: "Commento",
|
|
6226
|
+
field: "descrizione", filter: 'agTextColumnFilter', filterParams: { newRowsAction: 'keep' }
|
|
6227
|
+
},
|
|
6228
|
+
{
|
|
6229
|
+
headerName: "Utente",
|
|
6230
|
+
field: "utente", filter: 'agTextColumnFilter', filterParams: { newRowsAction: 'keep' }
|
|
6231
|
+
},
|
|
6232
|
+
{
|
|
6233
|
+
headerName: "Tipo",
|
|
6234
|
+
field: "tipo", filter: 'agTextColumnFilter', filterParams: { newRowsAction: 'keep' },
|
|
6235
|
+
cellStyle: function (params) {
|
|
6236
|
+
if (params.value == "INFO")
|
|
6237
|
+
return { 'background-color': '#1E7BB5', 'color': '#FFFFFF', 'font-weight': 'bold', 'text-align': 'center' };
|
|
6238
|
+
if (params.value == "ERROR")
|
|
6239
|
+
return { 'background-color': '#CC0033', 'color': '#FFFFFF', 'font-weight': 'bold', 'text-align': 'center' };
|
|
6240
|
+
if (params.value == "INSERT_DOC"
|
|
6241
|
+
|| params.value == "EDIT_DOC"
|
|
6242
|
+
|| params.value == "DELETE_DOC")
|
|
6243
|
+
return { 'background-color': '#FF8000', 'color': '#FFFFFF', 'font-weight': 'bold', 'text-align': 'center' };
|
|
6244
|
+
return { 'text-align': 'left' };
|
|
6245
|
+
}
|
|
6246
|
+
},
|
|
6247
|
+
{
|
|
6248
|
+
headerName: "Data",
|
|
6249
|
+
field: "data", filter: 'agDateColumnFilter',
|
|
6250
|
+
floatingFilterComponentParams: { suppressFilterButton: true },
|
|
6251
|
+
filterParams: { newRowsAction: 'keep' },
|
|
6252
|
+
cellStyle: function (params) {
|
|
6253
|
+
return { 'text-align': 'left' };
|
|
6254
|
+
},
|
|
6255
|
+
cellRenderer: function (params) {
|
|
6256
|
+
if (params.value == null)
|
|
6257
|
+
return " ------ ";
|
|
6258
|
+
var dt = new Date(params.value);
|
|
6259
|
+
if (dt.getFullYear() == 1970)
|
|
6260
|
+
return " ------ ";
|
|
6261
|
+
else
|
|
6262
|
+
return _this.uti.datetime2String(dt);
|
|
6263
|
+
}
|
|
6238
6264
|
}
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
cellStyle: function (params) {
|
|
6246
|
-
return { 'text-align': 'left' };
|
|
6265
|
+
];
|
|
6266
|
+
else
|
|
6267
|
+
this.columnDefs = [
|
|
6268
|
+
{
|
|
6269
|
+
headerName: "Utente",
|
|
6270
|
+
field: "utente", filter: 'agTextColumnFilter', filterParams: { newRowsAction: 'keep' }
|
|
6247
6271
|
},
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6272
|
+
{
|
|
6273
|
+
headerName: "Tipo",
|
|
6274
|
+
field: "tipo", filter: 'agTextColumnFilter', filterParams: { newRowsAction: 'keep' },
|
|
6275
|
+
cellStyle: function (params) {
|
|
6276
|
+
if (params.value == "INFO")
|
|
6277
|
+
return { 'background-color': '#1E7BB5', 'color': '#FFFFFF', 'font-weight': 'bold', 'text-align': 'center' };
|
|
6278
|
+
if (params.value == "ERROR")
|
|
6279
|
+
return { 'background-color': '#CC0033', 'color': '#FFFFFF', 'font-weight': 'bold', 'text-align': 'center' };
|
|
6280
|
+
if (params.value == "INSERT_DOC"
|
|
6281
|
+
|| params.value == "EDIT_DOC"
|
|
6282
|
+
|| params.value == "DELETE_DOC")
|
|
6283
|
+
return { 'background-color': '#FF8000', 'color': '#FFFFFF', 'font-weight': 'bold', 'text-align': 'center' };
|
|
6284
|
+
return { 'text-align': 'left' };
|
|
6285
|
+
}
|
|
6286
|
+
},
|
|
6287
|
+
{
|
|
6288
|
+
headerName: "Data",
|
|
6289
|
+
field: "data", filter: 'agDateColumnFilter',
|
|
6290
|
+
floatingFilterComponentParams: { suppressFilterButton: true },
|
|
6291
|
+
filterParams: { newRowsAction: 'keep' },
|
|
6292
|
+
cellStyle: function (params) {
|
|
6293
|
+
return { 'text-align': 'left' };
|
|
6294
|
+
},
|
|
6295
|
+
cellRenderer: function (params) {
|
|
6296
|
+
if (params.value == null)
|
|
6297
|
+
return " ------ ";
|
|
6298
|
+
var dt = new Date(params.value);
|
|
6299
|
+
if (dt.getFullYear() == 1970)
|
|
6300
|
+
return " ------ ";
|
|
6301
|
+
else
|
|
6302
|
+
return _this.uti.datetime2String(dt);
|
|
6303
|
+
}
|
|
6256
6304
|
}
|
|
6257
|
-
|
|
6258
|
-
];
|
|
6259
|
-
this.data = datax;
|
|
6305
|
+
];
|
|
6260
6306
|
}
|
|
6261
6307
|
win_app_logs.prototype.close = function () {
|
|
6262
6308
|
this.dialogRef.close(null);
|
|
6263
6309
|
};
|
|
6264
6310
|
win_app_logs.prototype.ngAfterViewInit = function () {
|
|
6265
|
-
console.log('data ', this.data);
|
|
6266
6311
|
if (this.data != null) {
|
|
6267
6312
|
this.datagrid.doFill('applicativo=\'' + this.data.App + '\' and iddocumento=\'' + this.data.K + '\'');
|
|
6268
6313
|
}
|
|
@@ -6280,7 +6325,7 @@
|
|
|
6280
6325
|
], win_app_logs.prototype, "datagrid", void 0);
|
|
6281
6326
|
win_app_logs = __decorate([
|
|
6282
6327
|
core.Component({
|
|
6283
|
-
template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\"><img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"close()\" /> </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n
|
|
6328
|
+
template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\"><img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"close()\" /> </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n <div [style.height]=\"(m_appService.getState().body_h-130)+'px'\">\n <div style=\"width: 100%\" [style.height]=\"(m_appService.getState().body_h-140)+'px'\">\n <div style=\"width:100%;height:100%\">\n <FHGrid #dtm [columnDefs]=\"columnDefs\" [init_fill]=\"false\" tbl_name=\"v_logs\" grid_key=\"logsssddds1\"\n sort_field=\"data desc\" fields=\"*\"></FHGrid>\n </div>\n </div>\n\n </div>\n ",
|
|
6284
6329
|
styles: ["\n\n\n "]
|
|
6285
6330
|
}),
|
|
6286
6331
|
__param(4, core.Inject(dialog.MAT_DIALOG_DATA)),
|
|
@@ -6300,11 +6345,12 @@
|
|
|
6300
6345
|
this.mgs_back = 'Back';
|
|
6301
6346
|
this.mgs_edit = 'Edit';
|
|
6302
6347
|
this.mgs_save = 'Save';
|
|
6348
|
+
this.b_commento = false;
|
|
6303
6349
|
this.custom_commands = [];
|
|
6304
6350
|
this.command = new core.EventEmitter();
|
|
6305
6351
|
}
|
|
6306
6352
|
FHFormToolBarComponent.prototype.logs = function () {
|
|
6307
|
-
var dialogRef = this._dialog.open(win_app_logs, { 'width': '1000px', 'disableClose': true, 'data': { 'App': this.App, 'K': this.K } });
|
|
6353
|
+
var dialogRef = this._dialog.open(win_app_logs, { 'width': '1000px', 'disableClose': true, 'data': { 'App': this.App, 'K': this.K, b_commento: this.b_commento } });
|
|
6308
6354
|
dialogRef.afterClosed().subscribe(function (result) {
|
|
6309
6355
|
});
|
|
6310
6356
|
};
|
|
@@ -6346,6 +6392,22 @@
|
|
|
6346
6392
|
core.Input(),
|
|
6347
6393
|
__metadata("design:type", String)
|
|
6348
6394
|
], FHFormToolBarComponent.prototype, "K", void 0);
|
|
6395
|
+
__decorate([
|
|
6396
|
+
core.Input(),
|
|
6397
|
+
__metadata("design:type", String)
|
|
6398
|
+
], FHFormToolBarComponent.prototype, "mgs_back", void 0);
|
|
6399
|
+
__decorate([
|
|
6400
|
+
core.Input(),
|
|
6401
|
+
__metadata("design:type", String)
|
|
6402
|
+
], FHFormToolBarComponent.prototype, "mgs_edit", void 0);
|
|
6403
|
+
__decorate([
|
|
6404
|
+
core.Input(),
|
|
6405
|
+
__metadata("design:type", String)
|
|
6406
|
+
], FHFormToolBarComponent.prototype, "mgs_save", void 0);
|
|
6407
|
+
__decorate([
|
|
6408
|
+
core.Input(),
|
|
6409
|
+
__metadata("design:type", Boolean)
|
|
6410
|
+
], FHFormToolBarComponent.prototype, "b_commento", void 0);
|
|
6349
6411
|
__decorate([
|
|
6350
6412
|
core.Input(),
|
|
6351
6413
|
__metadata("design:type", Object)
|
|
@@ -6356,7 +6418,7 @@
|
|
|
6356
6418
|
], FHFormToolBarComponent.prototype, "command", void 0);
|
|
6357
6419
|
FHFormToolBarComponent = __decorate([
|
|
6358
6420
|
core.Component({
|
|
6359
|
-
selector: 'FHFormToolBar', template: "\n <div fxLayout.xs=\"column\" fxLayoutGap=\"3px\">\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" [hidden]=\"is_editing\" fxLayoutAlign=\"start center\">\n <button mat-flat-button (click)=\"back()\">{{mgs_back}}</button> \n <button mat-flat-button color=\"primary\" [hidden]=\"!editable\" (click)=\"edit()\" >{{mgs_edit}}</button>\n
|
|
6421
|
+
selector: 'FHFormToolBar', template: "\n <div fxLayout.xs=\"column\" fxLayoutGap=\"3px\">\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" [hidden]=\"is_editing\" fxLayoutAlign=\"start center\">\n <button mat-flat-button (click)=\"back()\">{{mgs_back}}</button> \n <button mat-flat-button color=\"primary\" [hidden]=\"!editable\" (click)=\"edit()\" >{{mgs_edit}}</button>\n <button [hidden]=\"!editable\" mat-flat-button *ngIf=\"App!=''\" color=\"accent\" (click)=\"logs()\">Logs</button>\n</div>\n<div fxLayout=\"row\" fxLayoutGap=\"3px\" [hidden]=\"!is_editing\" fxLayoutAlign=\"start center\">\n <button mat-flat-button (click)=\"back_ask_save()\">{{mgs_back}}</button> \n <button mat-flat-button color=\"primary\" [hidden]=\"!show_save\" (click)=\"save()\">{{mgs_save}}</button>\n <div *ngIf=\"custom_commands.length>0\" fxLayoutGap=\"3px\" fxLayout=\"row\" fxLayoutAlign=\"end center\">\n\n <div *ngFor=\"let app of custom_commands\">\n\n <button mat-flat-button [color]=\"app.color\" (click)=\"exec_command(app.command)\"><mat-icon *ngIf=\"app.icon!=null\">{{app.icon}}</mat-icon>{{app.label}}</button>\n </div>\n</div>\n <button mat-flat-button *ngIf=\"App!=''\" color=\"accent\" (click)=\"logs()\" >Logs</button>\n\n</div>\n</div>\n ",
|
|
6360
6422
|
styles: ["\n\n "]
|
|
6361
6423
|
}),
|
|
6362
6424
|
__metadata("design:paramtypes", [dialog.MatDialog])
|