@fluxhub/fluxhub-lib 9.0.110 → 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.
@@ -1,12 +1,12 @@
1
- import { __decorate, __metadata, __param } from 'tslib';
2
- import { ɵɵdefineInjectable, Injectable, ɵɵinject, Inject, Component, EventEmitter, Input, ViewChild, ElementRef, Output, forwardRef, HostListener, ViewContainerRef, Directive, Pipe, PLATFORM_ID, Optional, NgModule } from '@angular/core';
1
+ import { __decorate, __param, __metadata } 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,60 @@ import { MatTableModule } from '@angular/material/table';
71
71
  import { MatBadgeModule } from '@angular/material/badge';
72
72
  import { QuillModule } from 'ngx-quill';
73
73
 
74
+ let win_show_log_dett = class win_show_log_dett {
75
+ constructor(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
+ close() { this.dialogRef.close(null); }
84
+ ngAfterViewInit() {
85
+ }
86
+ };
87
+ win_show_log_dett.ctorParameters = () => [
88
+ { type: MatDialogRef },
89
+ { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
90
+ ];
91
+ win_show_log_dett = __decorate([
92
+ Component({
93
+ template: `
94
+ <div style="width:100%" fxLayout="row" fxLayoutAlign="end start"><img src="assets/icons/x.png" style="cursor: pointer;" (click)="close()" /> </div>
95
+ <hr width="100%" size="0.5" color="#DDDDDD">
96
+ <h2 mat-dialog-title>DETTAGLIO MODIFICA - {{title}}</h2>
97
+
98
+ <mat-dialog-content style="min-width:700px">
99
+ <table style="width: 90%" class="fh_table">
100
+ <thead>
101
+ <tr>
102
+ <th style="width:20%;">Operazione</th>
103
+ <th style="width:20%;">Campo</th>
104
+ <th style="width:30%;">Old Value</th>
105
+ <th style="width:30%;">New Value</th>
106
+ </tr>
107
+ </thead>
108
+ <tbody>
109
+ <tr *ngFor="let u of modifiche; let odd=odd; let even=even;" [ngClass]="{ odd: odd, even: even }">
110
+ <td>{{u.op}}</td>
111
+ <td>{{u.path}}</td>
112
+ <td>{{u.oldVal}}</td>
113
+ <td>{{u.val}}</td>
114
+ </tr>
115
+ </tbody>
116
+ </table>
117
+
118
+
119
+
120
+ </mat-dialog-content>
121
+
122
+ `
123
+ }),
124
+ __param(1, Inject(MAT_DIALOG_DATA)),
125
+ __metadata("design:paramtypes", [MatDialogRef, Object])
126
+ ], win_show_log_dett);
127
+
74
128
  /**
75
129
  * App service
76
130
  */
@@ -545,7 +599,10 @@ let UtilityService = UtilityService_1 = class UtilityService {
545
599
  if (diff != null || link != null) {
546
600
  p.sql = "INSERT_LOG_N2";
547
601
  p.types = ['string', 'string', 'string', 'string', 'string', 'string'];
548
- p.values = [app, k, descri, operazione, link, JSON.stringify(diff)];
602
+ if (diff != null)
603
+ p.values = [app, k, descri, operazione, link, JSON.stringify(diff)];
604
+ else
605
+ p.values = [app, k, descri, operazione, link, null];
549
606
  }
550
607
  else {
551
608
  p.sql = "INSERT_LOG_N";
@@ -6637,6 +6694,20 @@ let win_app_logs = class win_app_logs {
6637
6694
  else
6638
6695
  return this.uti.datetime2String(dt);
6639
6696
  }
6697
+ }, {
6698
+ headerName: "Dettagli",
6699
+ field: "diff", filter: 'agTextColumnFilter', filterParams: { newRowsAction: 'keep' },
6700
+ cellStyle: function (params) {
6701
+ return { 'text-align': 'center' };
6702
+ },
6703
+ cellRenderer: (params) => {
6704
+ console.log('params.value ', params.value);
6705
+ if (params.value != null)
6706
+ if (params.value != 'null')
6707
+ if (params.value != '')
6708
+ return "<button style=\"width:100%\">DETTAGLI</button>";
6709
+ return "";
6710
+ }
6640
6711
  }
6641
6712
  ];
6642
6713
  else
@@ -6677,6 +6748,20 @@ let win_app_logs = class win_app_logs {
6677
6748
  else
6678
6749
  return this.uti.datetime2String(dt);
6679
6750
  }
6751
+ }, {
6752
+ headerName: "Dettagli",
6753
+ field: "diff", filter: 'agTextColumnFilter', filterParams: { newRowsAction: 'keep' },
6754
+ cellStyle: function (params) {
6755
+ return { 'text-align': 'center' };
6756
+ },
6757
+ cellRenderer: (params) => {
6758
+ console.log('params.value ', params.value);
6759
+ if (params.value != null)
6760
+ if (params.value != 'null')
6761
+ if (params.value != '')
6762
+ return "<button style=\"width:100%\">DETTAGLI</button>";
6763
+ return "";
6764
+ }
6680
6765
  }
6681
6766
  ];
6682
6767
  }
@@ -6688,6 +6773,18 @@ let win_app_logs = class win_app_logs {
6688
6773
  this.datagrid.doFill('applicativo=\'' + this.data.App + '\' and iddocumento=\'' + this.data.K + '\'');
6689
6774
  }
6690
6775
  }
6776
+ cce(event) {
6777
+ if (event.colDef.field == 'diff') {
6778
+ if (event.data.diff == null)
6779
+ return;
6780
+ let dialogRef = this
6781
+ .m_dialogRef
6782
+ .open(win_show_log_dett, { data: { dt: event.data.diff, title: event.data.utente + ' del: ' + this.uti.datetime2String(new Date(event.data.data)) } });
6783
+ dialogRef
6784
+ .afterClosed()
6785
+ .subscribe();
6786
+ }
6787
+ }
6691
6788
  };
6692
6789
  win_app_logs.ctorParameters = () => [
6693
6790
  { type: MatDialogRef },
@@ -6708,7 +6805,7 @@ win_app_logs = __decorate([
6708
6805
  <div [style.height]="(m_appService.getState().body_h-130)+'px'">
6709
6806
  <div style="width: 100%" [style.height]="(m_appService.getState().body_h-140)+'px'">
6710
6807
  <div style="width:100%;height:100%">
6711
- <FHGrid #dtm [columnDefs]="columnDefs" [init_fill]="false" tbl_name="v_logs" grid_key="logsssddds1"
6808
+ <FHGrid #dtm [columnDefs]="columnDefs" [init_fill]="false" tbl_name="v_logs" grid_key="logssaaasddds1" (cell_clicked)="cce($event)"
6712
6809
  sort_field="data desc" fields="*"></FHGrid>
6713
6810
  </div>
6714
6811
  </div>
@@ -16567,13 +16664,13 @@ FluxhubLibModule = FluxhubLibModule_1 = __decorate([
16567
16664
  QuillModule,
16568
16665
  MarkdownModule
16569
16666
  ],
16570
- 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,
16667
+ 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,
16571
16668
  FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, NumericEditorComponent,
16572
16669
  FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
16573
16670
  ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
16574
16671
  FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent, wkf_header_bar,
16575
16672
  FHListPick, WinWait, FHUserFieldComponent, FHGridJSONComponent, win_salva_annulla, FormBuilderComponent, FormExecuterComponent, FHTableManager],
16576
- declarations: [FHFormToolBarComponent, FHTextArea, CheckboxEditorComponent, FHCheckBox, FHTextInput, FHHelpButton, win_user_info, win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, FHViewerComponent,
16673
+ declarations: [win_show_log_dett, FHFormToolBarComponent, FHTextArea, CheckboxEditorComponent, FHCheckBox, FHTextInput, FHHelpButton, win_user_info, win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, FHViewerComponent,
16577
16674
  win_app_logs, fhimagepreview, win_show_image, WinAskButtonsComponent, FHGridToolBarComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent, wkf_header_bar,
16578
16675
  FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, NumericEditorComponent,
16579
16676
  FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
@@ -16586,6 +16683,7 @@ FluxhubLibModule = FluxhubLibModule_1 = __decorate([
16586
16683
  ],
16587
16684
  entryComponents: [
16588
16685
  // Customize dialog must be import here.
16686
+ win_show_log_dett,
16589
16687
  win_app_logs,
16590
16688
  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,
16591
16689
  FHPickListComponent,
@@ -16772,5 +16870,5 @@ class FSResult {
16772
16870
  * Generated bundle index. Do not edit.
16773
16871
  */
16774
16872
 
16775
- 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 };
16873
+ 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 };
16776
16874
  //# sourceMappingURL=fluxhub-fluxhub-lib.js.map