@fluxhub/fluxhub-lib 9.0.109 → 9.0.111
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 +79 -8
- 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_app_logs.js +43 -2
- package/esm2015/lib/controls/win_show_log_dett.js +58 -0
- package/esm2015/lib/fluxhub-lib.module.js +5 -3
- package/esm2015/lib/services/utility.service.js +5 -2
- package/esm2015/public_api.js +2 -1
- package/esm5/lib/controls/win_app_logs.js +43 -2
- package/esm5/lib/controls/win_show_log_dett.js +30 -0
- package/esm5/lib/fluxhub-lib.module.js +5 -3
- package/esm5/lib/services/utility.service.js +5 -2
- package/esm5/public_api.js +2 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +106 -8
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +78 -8
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/win_app_logs.d.ts +1 -0
- package/lib/controls/win_show_log_dett.d.ts +11 -0
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { __decorate,
|
|
2
|
-
import {
|
|
1
|
+
import { __decorate, __param, __metadata, __read, __extends, __assign } from 'tslib';
|
|
2
|
+
import { Inject, Component, ɵɵdefineInjectable, Injectable, ɵɵinject, EventEmitter, Input, ViewChild, ElementRef, Output, forwardRef, HostListener, ViewContainerRef, Directive, Pipe, PLATFORM_ID, Optional, NgModule } from '@angular/core';
|
|
3
|
+
import { MatDialogRef, MAT_DIALOG_DATA, MatDialog, MatDialogModule } from '@angular/material/dialog';
|
|
3
4
|
import { HttpHeaders, HttpClient } from '@angular/common/http';
|
|
4
5
|
import { ToastrService } from 'ngx-toastr';
|
|
5
6
|
import { SimpleCrypt } from 'ngx-simple-crypt';
|
|
6
7
|
import { AES, enc } from 'crypto-js';
|
|
7
8
|
import { getDiff } from 'recursive-diff';
|
|
8
9
|
import { map, catchError, flatMap } from 'rxjs/operators';
|
|
9
|
-
import { MatDialogRef, MAT_DIALOG_DATA, MatDialog, MatDialogModule } from '@angular/material/dialog';
|
|
10
10
|
import { FileUploader, FileUploadModule } from 'ng2-file-upload';
|
|
11
11
|
import { NG_VALUE_ACCESSOR, NgControl, FormsModule } from '@angular/forms';
|
|
12
12
|
import { Router, ActivatedRoute } from '@angular/router';
|
|
@@ -71,6 +71,32 @@ import { MatTableModule } from '@angular/material/table';
|
|
|
71
71
|
import { MatBadgeModule } from '@angular/material/badge';
|
|
72
72
|
import { QuillModule } from 'ngx-quill';
|
|
73
73
|
|
|
74
|
+
var win_show_log_dett = /** @class */ (function () {
|
|
75
|
+
function win_show_log_dett(dialogRef, data) {
|
|
76
|
+
this.dialogRef = dialogRef;
|
|
77
|
+
this.data = data;
|
|
78
|
+
this.modifiche = [];
|
|
79
|
+
this.title = '';
|
|
80
|
+
this.title = data.title.toUpperCase();
|
|
81
|
+
this.modifiche = JSON.parse(data.dt);
|
|
82
|
+
}
|
|
83
|
+
win_show_log_dett.prototype.close = function () { this.dialogRef.close(null); };
|
|
84
|
+
win_show_log_dett.prototype.ngAfterViewInit = function () {
|
|
85
|
+
};
|
|
86
|
+
win_show_log_dett.ctorParameters = function () { return [
|
|
87
|
+
{ type: MatDialogRef },
|
|
88
|
+
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
89
|
+
]; };
|
|
90
|
+
win_show_log_dett = __decorate([
|
|
91
|
+
Component({
|
|
92
|
+
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 <h2 mat-dialog-title>DETTAGLIO MODIFICA - {{title}}</h2>\n\n <mat-dialog-content style=\"min-width:700px\">\n <table style=\"width: 90%\" class=\"fh_table\">\n <thead>\n <tr>\n <th style=\"width:20%;\">Operazione</th>\n <th style=\"width:20%;\">Campo</th>\n <th style=\"width:30%;\">Old Value</th>\n <th style=\"width:30%;\">New Value</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let u of modifiche; let odd=odd; let even=even;\" [ngClass]=\"{ odd: odd, even: even }\">\n <td>{{u.op}}</td>\n <td>{{u.path}}</td>\n <td>{{u.oldVal}}</td>\n <td>{{u.val}}</td>\n </tr>\n </tbody>\n </table>\n\n\n\n</mat-dialog-content>\n\n"
|
|
93
|
+
}),
|
|
94
|
+
__param(1, Inject(MAT_DIALOG_DATA)),
|
|
95
|
+
__metadata("design:paramtypes", [MatDialogRef, Object])
|
|
96
|
+
], win_show_log_dett);
|
|
97
|
+
return win_show_log_dett;
|
|
98
|
+
}());
|
|
99
|
+
|
|
74
100
|
/**
|
|
75
101
|
* App service
|
|
76
102
|
*/
|
|
@@ -559,7 +585,10 @@ var UtilityService = /** @class */ (function () {
|
|
|
559
585
|
if (diff != null || link != null) {
|
|
560
586
|
p.sql = "INSERT_LOG_N2";
|
|
561
587
|
p.types = ['string', 'string', 'string', 'string', 'string', 'string'];
|
|
562
|
-
|
|
588
|
+
if (diff != null)
|
|
589
|
+
p.values = [app, k, descri, operazione, link, JSON.stringify(diff)];
|
|
590
|
+
else
|
|
591
|
+
p.values = [app, k, descri, operazione, link, null];
|
|
563
592
|
}
|
|
564
593
|
else {
|
|
565
594
|
p.sql = "INSERT_LOG_N";
|
|
@@ -6145,6 +6174,20 @@ var win_app_logs = /** @class */ (function () {
|
|
|
6145
6174
|
else
|
|
6146
6175
|
return _this.uti.datetime2String(dt);
|
|
6147
6176
|
}
|
|
6177
|
+
}, {
|
|
6178
|
+
headerName: "Dettagli",
|
|
6179
|
+
field: "diff", filter: 'agTextColumnFilter', filterParams: { newRowsAction: 'keep' },
|
|
6180
|
+
cellStyle: function (params) {
|
|
6181
|
+
return { 'text-align': 'center' };
|
|
6182
|
+
},
|
|
6183
|
+
cellRenderer: function (params) {
|
|
6184
|
+
console.log('params.value ', params.value);
|
|
6185
|
+
if (params.value != null)
|
|
6186
|
+
if (params.value != 'null')
|
|
6187
|
+
if (params.value != '')
|
|
6188
|
+
return "<button style=\"width:100%\">DETTAGLI</button>";
|
|
6189
|
+
return "";
|
|
6190
|
+
}
|
|
6148
6191
|
}
|
|
6149
6192
|
];
|
|
6150
6193
|
else
|
|
@@ -6185,6 +6228,20 @@ var win_app_logs = /** @class */ (function () {
|
|
|
6185
6228
|
else
|
|
6186
6229
|
return _this.uti.datetime2String(dt);
|
|
6187
6230
|
}
|
|
6231
|
+
}, {
|
|
6232
|
+
headerName: "Dettagli",
|
|
6233
|
+
field: "diff", filter: 'agTextColumnFilter', filterParams: { newRowsAction: 'keep' },
|
|
6234
|
+
cellStyle: function (params) {
|
|
6235
|
+
return { 'text-align': 'center' };
|
|
6236
|
+
},
|
|
6237
|
+
cellRenderer: function (params) {
|
|
6238
|
+
console.log('params.value ', params.value);
|
|
6239
|
+
if (params.value != null)
|
|
6240
|
+
if (params.value != 'null')
|
|
6241
|
+
if (params.value != '')
|
|
6242
|
+
return "<button style=\"width:100%\">DETTAGLI</button>";
|
|
6243
|
+
return "";
|
|
6244
|
+
}
|
|
6188
6245
|
}
|
|
6189
6246
|
];
|
|
6190
6247
|
}
|
|
@@ -6196,6 +6253,18 @@ var win_app_logs = /** @class */ (function () {
|
|
|
6196
6253
|
this.datagrid.doFill('applicativo=\'' + this.data.App + '\' and iddocumento=\'' + this.data.K + '\'');
|
|
6197
6254
|
}
|
|
6198
6255
|
};
|
|
6256
|
+
win_app_logs.prototype.cce = function (event) {
|
|
6257
|
+
if (event.colDef.field == 'diff') {
|
|
6258
|
+
if (event.data.diff == null)
|
|
6259
|
+
return;
|
|
6260
|
+
var dialogRef = this
|
|
6261
|
+
.m_dialogRef
|
|
6262
|
+
.open(win_show_log_dett, { data: { dt: event.data.diff, title: event.data.utente + ' del: ' + this.uti.datetime2String(new Date(event.data.data)) } });
|
|
6263
|
+
dialogRef
|
|
6264
|
+
.afterClosed()
|
|
6265
|
+
.subscribe();
|
|
6266
|
+
}
|
|
6267
|
+
};
|
|
6199
6268
|
win_app_logs.ctorParameters = function () { return [
|
|
6200
6269
|
{ type: MatDialogRef },
|
|
6201
6270
|
{ type: MatDialog },
|
|
@@ -6209,7 +6278,7 @@ var win_app_logs = /** @class */ (function () {
|
|
|
6209
6278
|
], win_app_logs.prototype, "datagrid", void 0);
|
|
6210
6279
|
win_app_logs = __decorate([
|
|
6211
6280
|
Component({
|
|
6212
|
-
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=\"
|
|
6281
|
+
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=\"logssaaasddds1\" (cell_clicked)=\"cce($event)\"\n sort_field=\"data desc\" fields=\"*\"></FHGrid>\n </div>\n </div>\n\n </div>\n ",
|
|
6213
6282
|
styles: ["\n\n\n "]
|
|
6214
6283
|
}),
|
|
6215
6284
|
__param(4, Inject(MAT_DIALOG_DATA)),
|
|
@@ -14783,13 +14852,13 @@ var FluxhubLibModule = /** @class */ (function () {
|
|
|
14783
14852
|
QuillModule,
|
|
14784
14853
|
MarkdownModule
|
|
14785
14854
|
],
|
|
14786
|
-
exports: [FHFormToolBarComponent, FHTextArea, CheckboxEditorComponent, FHCheckBox, FHTextInput, FHHelpButton, win_user_info, win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, fhimagepreview, win_show_image, WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
|
|
14855
|
+
exports: [win_show_log_dett, FHFormToolBarComponent, FHTextArea, CheckboxEditorComponent, FHCheckBox, FHTextInput, FHHelpButton, win_user_info, win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, fhimagepreview, win_show_image, WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
|
|
14787
14856
|
FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, NumericEditorComponent,
|
|
14788
14857
|
FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
|
|
14789
14858
|
ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
|
|
14790
14859
|
FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent, wkf_header_bar,
|
|
14791
14860
|
FHListPick, WinWait, FHUserFieldComponent, FHGridJSONComponent, win_salva_annulla, FormBuilderComponent, FormExecuterComponent, FHTableManager],
|
|
14792
|
-
declarations: [FHFormToolBarComponent, FHTextArea, CheckboxEditorComponent, FHCheckBox, FHTextInput, FHHelpButton, win_user_info, win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, FHViewerComponent,
|
|
14861
|
+
declarations: [win_show_log_dett, FHFormToolBarComponent, FHTextArea, CheckboxEditorComponent, FHCheckBox, FHTextInput, FHHelpButton, win_user_info, win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, FHViewerComponent,
|
|
14793
14862
|
win_app_logs, fhimagepreview, win_show_image, WinAskButtonsComponent, FHGridToolBarComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent, wkf_header_bar,
|
|
14794
14863
|
FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, NumericEditorComponent,
|
|
14795
14864
|
FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
|
|
@@ -14802,6 +14871,7 @@ var FluxhubLibModule = /** @class */ (function () {
|
|
|
14802
14871
|
],
|
|
14803
14872
|
entryComponents: [
|
|
14804
14873
|
// Customize dialog must be import here.
|
|
14874
|
+
win_show_log_dett,
|
|
14805
14875
|
win_app_logs,
|
|
14806
14876
|
win_user_info, win_insert_commento, win_manage_roles, win_manage_values, win_show_image, WinAskButtonsComponent, win_salva_annulla, win_assegna, win_conferma, win_select_canale, win_select_level, win_uploads, win_commenti, win_info_doc, win_log, win_recupera_doc, win_riassegna_select_level, win_sostituisci_utente, win_riassegna_select_user, win_commento_sel_notif,
|
|
14807
14877
|
FHPickListComponent,
|
|
@@ -14994,5 +15064,5 @@ var FSResult = /** @class */ (function () {
|
|
|
14994
15064
|
* Generated bundle index. Do not edit.
|
|
14995
15065
|
*/
|
|
14996
15066
|
|
|
14997
|
-
export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, CheckboxEditorComponent, ComboBoxEditor, CurrencyComponent, FHAutoCompleteComponent, FHCheckBox, FHComboboxComponent, FHConfirmComponent, FHConfirmValues, FHCurrencyFieldComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGuard, FHListComponent, FHListPick, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, FHPickListComponent, FHRichText, FHRoleManager, FHTableManager, FHTextArea, FHTextInput, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUserFieldComponent, FHUserPickerComponent, FHWinComboSelect, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WinAskButtonsComponent, WinAskNumberComponent, WinAskTextBigComponent, WinAskTextComponent, WinOutputComponent, WinWait, WkfService, dati_aggiuntivi, fhimagepreview, win_insert_commento, win_mappa, win_salva_annulla, win_show_image, win_time_slider, win_uploads, win_user_info, wkf_header_bar, wkfapp, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 as ɵb, win_select_level as ɵba, win_commenti as ɵbb, win_info_doc as ɵbc, win_log as ɵbd, win_recupera_doc as ɵbe, win_riassegna_select_level as ɵbf, win_riassegna_select_user as ɵbg, win_sostituisci_utente as ɵbh, win_commento_sel_notif as ɵbi, win_manage_values as ɵbj, win_manage_roles as ɵbk, FHComboboxComponentFilter as ɵbl, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4 as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 as ɵe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 as ɵf, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵg, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵh, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 as ɵi, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵj, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6 as ɵk, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 as ɵl, FHHelpButton as ɵm, SafePipe as ɵn, DecimalMask as ɵo, MOMENT_DATE_FORMATS as ɵp, MomentDateAdapter as ɵq, win_grid_help as ɵr, HighlightService as ɵs, FHViewerComponent as ɵt, win_app_logs as ɵv, FHGridToolBarComponent as ɵw, win_assegna as ɵx, win_conferma as ɵy, win_select_canale as ɵz };
|
|
15067
|
+
export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, CheckboxEditorComponent, ComboBoxEditor, CurrencyComponent, FHAutoCompleteComponent, FHCheckBox, FHComboboxComponent, FHConfirmComponent, FHConfirmValues, FHCurrencyFieldComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGuard, FHListComponent, FHListPick, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, FHPickListComponent, FHRichText, FHRoleManager, FHTableManager, FHTextArea, FHTextInput, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUserFieldComponent, FHUserPickerComponent, FHWinComboSelect, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WinAskButtonsComponent, WinAskNumberComponent, WinAskTextBigComponent, WinAskTextComponent, WinOutputComponent, WinWait, WkfService, dati_aggiuntivi, fhimagepreview, win_insert_commento, win_mappa, win_salva_annulla, win_show_image, win_show_log_dett, win_time_slider, win_uploads, win_user_info, wkf_header_bar, wkfapp, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 as ɵb, win_select_level as ɵba, win_commenti as ɵbb, win_info_doc as ɵbc, win_log as ɵbd, win_recupera_doc as ɵbe, win_riassegna_select_level as ɵbf, win_riassegna_select_user as ɵbg, win_sostituisci_utente as ɵbh, win_commento_sel_notif as ɵbi, win_manage_values as ɵbj, win_manage_roles as ɵbk, FHComboboxComponentFilter as ɵbl, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4 as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 as ɵe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 as ɵf, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵg, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵh, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 as ɵi, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵj, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6 as ɵk, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 as ɵl, FHHelpButton as ɵm, SafePipe as ɵn, DecimalMask as ɵo, MOMENT_DATE_FORMATS as ɵp, MomentDateAdapter as ɵq, win_grid_help as ɵr, HighlightService as ɵs, FHViewerComponent as ɵt, win_app_logs as ɵv, FHGridToolBarComponent as ɵw, win_assegna as ɵx, win_conferma as ɵy, win_select_canale as ɵz };
|
|
14998
15068
|
//# sourceMappingURL=fluxhub-fluxhub-lib.js.map
|