@fluxhub/fluxhub-lib 9.0.95 → 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 +108 -46
- 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/fhrichtext.js +2 -2
- package/esm2015/lib/controls/win_app_logs.js +88 -46
- package/esm5/lib/controls/fhformtoolbar.js +20 -3
- package/esm5/lib/controls/fhrichtext.js +2 -2
- package/esm5/lib/controls/win_app_logs.js +89 -44
- package/fesm2015/fluxhub-fluxhub-lib.js +106 -48
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +108 -46
- 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
|
@@ -6080,56 +6080,101 @@ var win_app_logs = /** @class */ (function () {
|
|
|
6080
6080
|
this.datax = datax;
|
|
6081
6081
|
this.title = "LOGS";
|
|
6082
6082
|
this.data = null;
|
|
6083
|
-
this.
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
|
|
6098
|
-
|
|
6099
|
-
|
|
6100
|
-
|
|
6101
|
-
|
|
6102
|
-
|
|
6103
|
-
|
|
6104
|
-
|
|
6083
|
+
this.b_commento = false;
|
|
6084
|
+
this.columnDefs = [];
|
|
6085
|
+
this.data = datax;
|
|
6086
|
+
if (datax != null)
|
|
6087
|
+
if (datax.b_commento != null)
|
|
6088
|
+
this.b_commento = this.datax.b_commento;
|
|
6089
|
+
if (this.b_commento)
|
|
6090
|
+
this.columnDefs = [
|
|
6091
|
+
{
|
|
6092
|
+
headerName: "Commento",
|
|
6093
|
+
field: "descrizione", filter: 'agTextColumnFilter', filterParams: { newRowsAction: 'keep' }
|
|
6094
|
+
},
|
|
6095
|
+
{
|
|
6096
|
+
headerName: "Utente",
|
|
6097
|
+
field: "utente", filter: 'agTextColumnFilter', filterParams: { newRowsAction: 'keep' }
|
|
6098
|
+
},
|
|
6099
|
+
{
|
|
6100
|
+
headerName: "Tipo",
|
|
6101
|
+
field: "tipo", filter: 'agTextColumnFilter', filterParams: { newRowsAction: 'keep' },
|
|
6102
|
+
cellStyle: function (params) {
|
|
6103
|
+
if (params.value == "INFO")
|
|
6104
|
+
return { 'background-color': '#1E7BB5', 'color': '#FFFFFF', 'font-weight': 'bold', 'text-align': 'center' };
|
|
6105
|
+
if (params.value == "ERROR")
|
|
6106
|
+
return { 'background-color': '#CC0033', 'color': '#FFFFFF', 'font-weight': 'bold', 'text-align': 'center' };
|
|
6107
|
+
if (params.value == "INSERT_DOC"
|
|
6108
|
+
|| params.value == "EDIT_DOC"
|
|
6109
|
+
|| params.value == "DELETE_DOC")
|
|
6110
|
+
return { 'background-color': '#FF8000', 'color': '#FFFFFF', 'font-weight': 'bold', 'text-align': 'center' };
|
|
6111
|
+
return { 'text-align': 'left' };
|
|
6112
|
+
}
|
|
6113
|
+
},
|
|
6114
|
+
{
|
|
6115
|
+
headerName: "Data",
|
|
6116
|
+
field: "data", filter: 'agDateColumnFilter',
|
|
6117
|
+
floatingFilterComponentParams: { suppressFilterButton: true },
|
|
6118
|
+
filterParams: { newRowsAction: 'keep' },
|
|
6119
|
+
cellStyle: function (params) {
|
|
6120
|
+
return { 'text-align': 'left' };
|
|
6121
|
+
},
|
|
6122
|
+
cellRenderer: function (params) {
|
|
6123
|
+
if (params.value == null)
|
|
6124
|
+
return " ------ ";
|
|
6125
|
+
var dt = new Date(params.value);
|
|
6126
|
+
if (dt.getFullYear() == 1970)
|
|
6127
|
+
return " ------ ";
|
|
6128
|
+
else
|
|
6129
|
+
return _this.uti.datetime2String(dt);
|
|
6130
|
+
}
|
|
6105
6131
|
}
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
|
|
6112
|
-
cellStyle: function (params) {
|
|
6113
|
-
return { 'text-align': 'left' };
|
|
6132
|
+
];
|
|
6133
|
+
else
|
|
6134
|
+
this.columnDefs = [
|
|
6135
|
+
{
|
|
6136
|
+
headerName: "Utente",
|
|
6137
|
+
field: "utente", filter: 'agTextColumnFilter', filterParams: { newRowsAction: 'keep' }
|
|
6114
6138
|
},
|
|
6115
|
-
|
|
6116
|
-
|
|
6117
|
-
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
|
|
6139
|
+
{
|
|
6140
|
+
headerName: "Tipo",
|
|
6141
|
+
field: "tipo", filter: 'agTextColumnFilter', filterParams: { newRowsAction: 'keep' },
|
|
6142
|
+
cellStyle: function (params) {
|
|
6143
|
+
if (params.value == "INFO")
|
|
6144
|
+
return { 'background-color': '#1E7BB5', 'color': '#FFFFFF', 'font-weight': 'bold', 'text-align': 'center' };
|
|
6145
|
+
if (params.value == "ERROR")
|
|
6146
|
+
return { 'background-color': '#CC0033', 'color': '#FFFFFF', 'font-weight': 'bold', 'text-align': 'center' };
|
|
6147
|
+
if (params.value == "INSERT_DOC"
|
|
6148
|
+
|| params.value == "EDIT_DOC"
|
|
6149
|
+
|| params.value == "DELETE_DOC")
|
|
6150
|
+
return { 'background-color': '#FF8000', 'color': '#FFFFFF', 'font-weight': 'bold', 'text-align': 'center' };
|
|
6151
|
+
return { 'text-align': 'left' };
|
|
6152
|
+
}
|
|
6153
|
+
},
|
|
6154
|
+
{
|
|
6155
|
+
headerName: "Data",
|
|
6156
|
+
field: "data", filter: 'agDateColumnFilter',
|
|
6157
|
+
floatingFilterComponentParams: { suppressFilterButton: true },
|
|
6158
|
+
filterParams: { newRowsAction: 'keep' },
|
|
6159
|
+
cellStyle: function (params) {
|
|
6160
|
+
return { 'text-align': 'left' };
|
|
6161
|
+
},
|
|
6162
|
+
cellRenderer: function (params) {
|
|
6163
|
+
if (params.value == null)
|
|
6164
|
+
return " ------ ";
|
|
6165
|
+
var dt = new Date(params.value);
|
|
6166
|
+
if (dt.getFullYear() == 1970)
|
|
6167
|
+
return " ------ ";
|
|
6168
|
+
else
|
|
6169
|
+
return _this.uti.datetime2String(dt);
|
|
6170
|
+
}
|
|
6123
6171
|
}
|
|
6124
|
-
|
|
6125
|
-
];
|
|
6126
|
-
this.data = datax;
|
|
6172
|
+
];
|
|
6127
6173
|
}
|
|
6128
6174
|
win_app_logs.prototype.close = function () {
|
|
6129
6175
|
this.dialogRef.close(null);
|
|
6130
6176
|
};
|
|
6131
6177
|
win_app_logs.prototype.ngAfterViewInit = function () {
|
|
6132
|
-
console.log('data ', this.data);
|
|
6133
6178
|
if (this.data != null) {
|
|
6134
6179
|
this.datagrid.doFill('applicativo=\'' + this.data.App + '\' and iddocumento=\'' + this.data.K + '\'');
|
|
6135
6180
|
}
|
|
@@ -6147,7 +6192,7 @@ var win_app_logs = /** @class */ (function () {
|
|
|
6147
6192
|
], win_app_logs.prototype, "datagrid", void 0);
|
|
6148
6193
|
win_app_logs = __decorate([
|
|
6149
6194
|
Component({
|
|
6150
|
-
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
|
|
6195
|
+
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 ",
|
|
6151
6196
|
styles: ["\n\n\n "]
|
|
6152
6197
|
}),
|
|
6153
6198
|
__param(4, Inject(MAT_DIALOG_DATA)),
|
|
@@ -6167,11 +6212,12 @@ var FHFormToolBarComponent = /** @class */ (function () {
|
|
|
6167
6212
|
this.mgs_back = 'Back';
|
|
6168
6213
|
this.mgs_edit = 'Edit';
|
|
6169
6214
|
this.mgs_save = 'Save';
|
|
6215
|
+
this.b_commento = false;
|
|
6170
6216
|
this.custom_commands = [];
|
|
6171
6217
|
this.command = new EventEmitter();
|
|
6172
6218
|
}
|
|
6173
6219
|
FHFormToolBarComponent.prototype.logs = function () {
|
|
6174
|
-
var dialogRef = this._dialog.open(win_app_logs, { 'width': '1000px', 'disableClose': true, 'data': { 'App': this.App, 'K': this.K } });
|
|
6220
|
+
var dialogRef = this._dialog.open(win_app_logs, { 'width': '1000px', 'disableClose': true, 'data': { 'App': this.App, 'K': this.K, b_commento: this.b_commento } });
|
|
6175
6221
|
dialogRef.afterClosed().subscribe(function (result) {
|
|
6176
6222
|
});
|
|
6177
6223
|
};
|
|
@@ -6213,6 +6259,22 @@ var FHFormToolBarComponent = /** @class */ (function () {
|
|
|
6213
6259
|
Input(),
|
|
6214
6260
|
__metadata("design:type", String)
|
|
6215
6261
|
], FHFormToolBarComponent.prototype, "K", void 0);
|
|
6262
|
+
__decorate([
|
|
6263
|
+
Input(),
|
|
6264
|
+
__metadata("design:type", String)
|
|
6265
|
+
], FHFormToolBarComponent.prototype, "mgs_back", void 0);
|
|
6266
|
+
__decorate([
|
|
6267
|
+
Input(),
|
|
6268
|
+
__metadata("design:type", String)
|
|
6269
|
+
], FHFormToolBarComponent.prototype, "mgs_edit", void 0);
|
|
6270
|
+
__decorate([
|
|
6271
|
+
Input(),
|
|
6272
|
+
__metadata("design:type", String)
|
|
6273
|
+
], FHFormToolBarComponent.prototype, "mgs_save", void 0);
|
|
6274
|
+
__decorate([
|
|
6275
|
+
Input(),
|
|
6276
|
+
__metadata("design:type", Boolean)
|
|
6277
|
+
], FHFormToolBarComponent.prototype, "b_commento", void 0);
|
|
6216
6278
|
__decorate([
|
|
6217
6279
|
Input(),
|
|
6218
6280
|
__metadata("design:type", Object)
|
|
@@ -6223,7 +6285,7 @@ var FHFormToolBarComponent = /** @class */ (function () {
|
|
|
6223
6285
|
], FHFormToolBarComponent.prototype, "command", void 0);
|
|
6224
6286
|
FHFormToolBarComponent = __decorate([
|
|
6225
6287
|
Component({
|
|
6226
|
-
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
|
|
6288
|
+
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 ",
|
|
6227
6289
|
styles: ["\n\n "]
|
|
6228
6290
|
}),
|
|
6229
6291
|
__metadata("design:paramtypes", [MatDialog])
|
|
@@ -8792,7 +8854,7 @@ var FHRichText = /** @class */ (function () {
|
|
|
8792
8854
|
], FHRichText.prototype, "blur", void 0);
|
|
8793
8855
|
FHRichText = __decorate([
|
|
8794
8856
|
Component({
|
|
8795
|
-
selector: 'FHRichText', providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT], template: "\n <b *ngIf=\"label!=''\">{{label}}</b>\n <quill-editor [hidden]=\"!enabled\"\n (focus)=\"onFocus($event)\" (ngModelChange)=\"modelch()\"\n (blur)=\"onBlur($event)\"
|
|
8857
|
+
selector: 'FHRichText', providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT], template: "\n <b *ngIf=\"label!=''\">{{label}}</b>\n <quill-editor [hidden]=\"!enabled\"\n (focus)=\"onFocus($event)\" (ngModelChange)=\"modelch()\"\n (blur)=\"onBlur($event)\" theme=\"snow\" format=\"html\" [(ngModel)]=\"value\"></quill-editor>\n <quill-view [content]=\"value\" [hidden]=\"enabled\" format=\"html\" theme=\"snow\" ></quill-view>\n ",
|
|
8796
8858
|
styles: ["\n\n "]
|
|
8797
8859
|
}),
|
|
8798
8860
|
__metadata("design:paramtypes", [])
|