@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
|
@@ -6575,56 +6575,101 @@ let win_app_logs = class win_app_logs {
|
|
|
6575
6575
|
this.datax = datax;
|
|
6576
6576
|
this.title = "LOGS";
|
|
6577
6577
|
this.data = null;
|
|
6578
|
-
this.
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
|
|
6587
|
-
|
|
6588
|
-
|
|
6589
|
-
|
|
6590
|
-
|
|
6591
|
-
|
|
6592
|
-
|
|
6593
|
-
|
|
6594
|
-
|
|
6595
|
-
|
|
6596
|
-
|
|
6597
|
-
|
|
6598
|
-
|
|
6599
|
-
|
|
6578
|
+
this.b_commento = false;
|
|
6579
|
+
this.columnDefs = [];
|
|
6580
|
+
this.data = datax;
|
|
6581
|
+
if (datax != null)
|
|
6582
|
+
if (datax.b_commento != null)
|
|
6583
|
+
this.b_commento = this.datax.b_commento;
|
|
6584
|
+
if (this.b_commento)
|
|
6585
|
+
this.columnDefs = [
|
|
6586
|
+
{
|
|
6587
|
+
headerName: "Commento",
|
|
6588
|
+
field: "descrizione", filter: 'agTextColumnFilter', filterParams: { newRowsAction: 'keep' }
|
|
6589
|
+
},
|
|
6590
|
+
{
|
|
6591
|
+
headerName: "Utente",
|
|
6592
|
+
field: "utente", filter: 'agTextColumnFilter', filterParams: { newRowsAction: 'keep' }
|
|
6593
|
+
},
|
|
6594
|
+
{
|
|
6595
|
+
headerName: "Tipo",
|
|
6596
|
+
field: "tipo", filter: 'agTextColumnFilter', filterParams: { newRowsAction: 'keep' },
|
|
6597
|
+
cellStyle: (params) => {
|
|
6598
|
+
if (params.value == "INFO")
|
|
6599
|
+
return { 'background-color': '#1E7BB5', 'color': '#FFFFFF', 'font-weight': 'bold', 'text-align': 'center' };
|
|
6600
|
+
if (params.value == "ERROR")
|
|
6601
|
+
return { 'background-color': '#CC0033', 'color': '#FFFFFF', 'font-weight': 'bold', 'text-align': 'center' };
|
|
6602
|
+
if (params.value == "INSERT_DOC"
|
|
6603
|
+
|| params.value == "EDIT_DOC"
|
|
6604
|
+
|| params.value == "DELETE_DOC")
|
|
6605
|
+
return { 'background-color': '#FF8000', 'color': '#FFFFFF', 'font-weight': 'bold', 'text-align': 'center' };
|
|
6606
|
+
return { 'text-align': 'left' };
|
|
6607
|
+
}
|
|
6608
|
+
},
|
|
6609
|
+
{
|
|
6610
|
+
headerName: "Data",
|
|
6611
|
+
field: "data", filter: 'agDateColumnFilter',
|
|
6612
|
+
floatingFilterComponentParams: { suppressFilterButton: true },
|
|
6613
|
+
filterParams: { newRowsAction: 'keep' },
|
|
6614
|
+
cellStyle: (params) => {
|
|
6615
|
+
return { 'text-align': 'left' };
|
|
6616
|
+
},
|
|
6617
|
+
cellRenderer: (params) => {
|
|
6618
|
+
if (params.value == null)
|
|
6619
|
+
return " ------ ";
|
|
6620
|
+
let dt = new Date(params.value);
|
|
6621
|
+
if (dt.getFullYear() == 1970)
|
|
6622
|
+
return " ------ ";
|
|
6623
|
+
else
|
|
6624
|
+
return this.uti.datetime2String(dt);
|
|
6625
|
+
}
|
|
6600
6626
|
}
|
|
6601
|
-
|
|
6602
|
-
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
cellStyle: (params) => {
|
|
6608
|
-
return { 'text-align': 'left' };
|
|
6627
|
+
];
|
|
6628
|
+
else
|
|
6629
|
+
this.columnDefs = [
|
|
6630
|
+
{
|
|
6631
|
+
headerName: "Utente",
|
|
6632
|
+
field: "utente", filter: 'agTextColumnFilter', filterParams: { newRowsAction: 'keep' }
|
|
6609
6633
|
},
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
|
|
6616
|
-
|
|
6617
|
-
|
|
6634
|
+
{
|
|
6635
|
+
headerName: "Tipo",
|
|
6636
|
+
field: "tipo", filter: 'agTextColumnFilter', filterParams: { newRowsAction: 'keep' },
|
|
6637
|
+
cellStyle: (params) => {
|
|
6638
|
+
if (params.value == "INFO")
|
|
6639
|
+
return { 'background-color': '#1E7BB5', 'color': '#FFFFFF', 'font-weight': 'bold', 'text-align': 'center' };
|
|
6640
|
+
if (params.value == "ERROR")
|
|
6641
|
+
return { 'background-color': '#CC0033', 'color': '#FFFFFF', 'font-weight': 'bold', 'text-align': 'center' };
|
|
6642
|
+
if (params.value == "INSERT_DOC"
|
|
6643
|
+
|| params.value == "EDIT_DOC"
|
|
6644
|
+
|| params.value == "DELETE_DOC")
|
|
6645
|
+
return { 'background-color': '#FF8000', 'color': '#FFFFFF', 'font-weight': 'bold', 'text-align': 'center' };
|
|
6646
|
+
return { 'text-align': 'left' };
|
|
6647
|
+
}
|
|
6648
|
+
},
|
|
6649
|
+
{
|
|
6650
|
+
headerName: "Data",
|
|
6651
|
+
field: "data", filter: 'agDateColumnFilter',
|
|
6652
|
+
floatingFilterComponentParams: { suppressFilterButton: true },
|
|
6653
|
+
filterParams: { newRowsAction: 'keep' },
|
|
6654
|
+
cellStyle: (params) => {
|
|
6655
|
+
return { 'text-align': 'left' };
|
|
6656
|
+
},
|
|
6657
|
+
cellRenderer: (params) => {
|
|
6658
|
+
if (params.value == null)
|
|
6659
|
+
return " ------ ";
|
|
6660
|
+
let dt = new Date(params.value);
|
|
6661
|
+
if (dt.getFullYear() == 1970)
|
|
6662
|
+
return " ------ ";
|
|
6663
|
+
else
|
|
6664
|
+
return this.uti.datetime2String(dt);
|
|
6665
|
+
}
|
|
6618
6666
|
}
|
|
6619
|
-
|
|
6620
|
-
];
|
|
6621
|
-
this.data = datax;
|
|
6667
|
+
];
|
|
6622
6668
|
}
|
|
6623
6669
|
close() {
|
|
6624
6670
|
this.dialogRef.close(null);
|
|
6625
6671
|
}
|
|
6626
6672
|
ngAfterViewInit() {
|
|
6627
|
-
console.log('data ', this.data);
|
|
6628
6673
|
if (this.data != null) {
|
|
6629
6674
|
this.datagrid.doFill('applicativo=\'' + this.data.App + '\' and iddocumento=\'' + this.data.K + '\'');
|
|
6630
6675
|
}
|
|
@@ -6646,12 +6691,9 @@ win_app_logs = __decorate([
|
|
|
6646
6691
|
template: `
|
|
6647
6692
|
<div style="width:100%" fxLayout="row" fxLayoutAlign="end start"><img src="assets/icons/x.png" style="cursor: pointer;" (click)="close()" /> </div>
|
|
6648
6693
|
<hr width="100%" size="0.5" color="#DDDDDD">
|
|
6649
|
-
|
|
6650
6694
|
<div [style.height]="(m_appService.getState().body_h-130)+'px'">
|
|
6651
|
-
|
|
6652
6695
|
<div style="width: 100%" [style.height]="(m_appService.getState().body_h-140)+'px'">
|
|
6653
6696
|
<div style="width:100%;height:100%">
|
|
6654
|
-
|
|
6655
6697
|
<FHGrid #dtm [columnDefs]="columnDefs" [init_fill]="false" tbl_name="v_logs" grid_key="logsssddds1"
|
|
6656
6698
|
sort_field="data desc" fields="*"></FHGrid>
|
|
6657
6699
|
</div>
|
|
@@ -6679,11 +6721,12 @@ let FHFormToolBarComponent = class FHFormToolBarComponent {
|
|
|
6679
6721
|
this.mgs_back = 'Back';
|
|
6680
6722
|
this.mgs_edit = 'Edit';
|
|
6681
6723
|
this.mgs_save = 'Save';
|
|
6724
|
+
this.b_commento = false;
|
|
6682
6725
|
this.custom_commands = [];
|
|
6683
6726
|
this.command = new EventEmitter();
|
|
6684
6727
|
}
|
|
6685
6728
|
logs() {
|
|
6686
|
-
let dialogRef = this._dialog.open(win_app_logs, { 'width': '1000px', 'disableClose': true, 'data': { 'App': this.App, 'K': this.K } });
|
|
6729
|
+
let dialogRef = this._dialog.open(win_app_logs, { 'width': '1000px', 'disableClose': true, 'data': { 'App': this.App, 'K': this.K, b_commento: this.b_commento } });
|
|
6687
6730
|
dialogRef.afterClosed().subscribe(result => {
|
|
6688
6731
|
});
|
|
6689
6732
|
}
|
|
@@ -6726,6 +6769,22 @@ __decorate([
|
|
|
6726
6769
|
Input(),
|
|
6727
6770
|
__metadata("design:type", String)
|
|
6728
6771
|
], FHFormToolBarComponent.prototype, "K", void 0);
|
|
6772
|
+
__decorate([
|
|
6773
|
+
Input(),
|
|
6774
|
+
__metadata("design:type", String)
|
|
6775
|
+
], FHFormToolBarComponent.prototype, "mgs_back", void 0);
|
|
6776
|
+
__decorate([
|
|
6777
|
+
Input(),
|
|
6778
|
+
__metadata("design:type", String)
|
|
6779
|
+
], FHFormToolBarComponent.prototype, "mgs_edit", void 0);
|
|
6780
|
+
__decorate([
|
|
6781
|
+
Input(),
|
|
6782
|
+
__metadata("design:type", String)
|
|
6783
|
+
], FHFormToolBarComponent.prototype, "mgs_save", void 0);
|
|
6784
|
+
__decorate([
|
|
6785
|
+
Input(),
|
|
6786
|
+
__metadata("design:type", Boolean)
|
|
6787
|
+
], FHFormToolBarComponent.prototype, "b_commento", void 0);
|
|
6729
6788
|
__decorate([
|
|
6730
6789
|
Input(),
|
|
6731
6790
|
__metadata("design:type", Object)
|
|
@@ -6741,7 +6800,6 @@ FHFormToolBarComponent = __decorate([
|
|
|
6741
6800
|
<div fxLayout="row" fxLayoutGap="3px" [hidden]="is_editing" fxLayoutAlign="start center">
|
|
6742
6801
|
<button mat-flat-button (click)="back()">{{mgs_back}}</button>
|
|
6743
6802
|
<button mat-flat-button color="primary" [hidden]="!editable" (click)="edit()" >{{mgs_edit}}</button>
|
|
6744
|
-
|
|
6745
6803
|
<button [hidden]="!editable" mat-flat-button *ngIf="App!=''" color="accent" (click)="logs()">Logs</button>
|
|
6746
6804
|
</div>
|
|
6747
6805
|
<div fxLayout="row" fxLayoutGap="3px" [hidden]="!is_editing" fxLayoutAlign="start center">
|