@fluxhub/fluxhub-lib 10.0.14 → 10.0.15

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.
@@ -1832,6 +1832,10 @@ class FHUploadS3Component {
1832
1832
  this.change = new EventEmitter();
1833
1833
  this.upload_ended = new EventEmitter();
1834
1834
  this.call_upload = new EventEmitter();
1835
+ this.hasBaseDropZoneOver = false;
1836
+ this.hasAnotherDropZoneOver = false;
1837
+ this.lascia_il_file = 'Lascia il file per confermarmare upload';
1838
+ this.trascina_il_file = 'Trascina un file qui o Clicca per avviare upload';
1835
1839
  this.multi_list = false;
1836
1840
  this.allow_delete = false;
1837
1841
  this.loading = false;
@@ -1879,6 +1883,12 @@ class FHUploadS3Component {
1879
1883
  }
1880
1884
  };
1881
1885
  }
1886
+ onFileDrop(o) {
1887
+ }
1888
+ fileOverBase(e) {
1889
+ console.log(e);
1890
+ this.hasBaseDropZoneOver = e;
1891
+ }
1882
1892
  call_up() {
1883
1893
  this.call_upload.emit({
1884
1894
  App: this.App,
@@ -2095,8 +2105,7 @@ FHUploadS3Component.decorators = [
2095
2105
  { type: Component, args: [{
2096
2106
  selector: "FHUploadS3",
2097
2107
  template: `
2098
-
2099
- <div *ngIf="loading" fxLayout="row">
2108
+ <div *ngIf="loading" fxLayout="row">
2100
2109
  WAIT
2101
2110
  </div>
2102
2111
  <div
@@ -2117,7 +2126,7 @@ FHUploadS3Component.decorators = [
2117
2126
  ></FHComboBox
2118
2127
  >&nbsp;&nbsp;
2119
2128
  </div>
2120
- <!-- <mat-form-field
2129
+ <mat-form-field
2121
2130
  [hidden]="!show_descri"
2122
2131
  style="width: 100%"
2123
2132
  appearance="outline"
@@ -2129,9 +2138,9 @@ FHUploadS3Component.decorators = [
2129
2138
  name="descrizione"
2130
2139
  [(ngModel)]="descrizione"
2131
2140
  />
2132
- </mat-form-field>-->
2141
+ </mat-form-field>
2133
2142
  &nbsp;&nbsp;&nbsp;&nbsp;
2134
- <div
2143
+ <!-- <div
2135
2144
  style="width:140px"
2136
2145
  fxLayout="row"
2137
2146
  fxLayoutAlign="start start"
@@ -2142,11 +2151,11 @@ FHUploadS3Component.decorators = [
2142
2151
  multiple
2143
2152
  ng2FileSelect
2144
2153
  [uploader]="uploader"
2145
- name="file-fh{{id_component}}"
2146
- id="file-fh{{id_component}}"
2154
+ name="file-fh{{ id_component }}"
2155
+ id="file-fh{{ id_component }}"
2147
2156
  class="inputfile inputfile-fh"
2148
2157
  />
2149
- <label for="file-fh{{id_component}}" style="width:210px"
2158
+ <label for="file-fh{{ id_component }}" style="width:210px"
2150
2159
  ><svg
2151
2160
  xmlns="http://www.w3.org/2000/svg"
2152
2161
  width="20"
@@ -2155,21 +2164,39 @@ FHUploadS3Component.decorators = [
2155
2164
  >
2156
2165
  <path
2157
2166
  d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"
2158
- /></svg
2159
- ><span style="font-size: 12px">&nbsp;&nbsp;&nbsp;Upload</span></label
2160
- >
2167
+ /></svg><span style="font-size: 12px">&nbsp;&nbsp;&nbsp;Upload</span></label>
2161
2168
  </div>
2169
+ -->
2170
+ <div class="my-drop-zone" style="width:130px" fxLayout="row" [matTooltip]="hasBaseDropZoneOver ? lascia_il_file : trascina_il_file" fxLayoutAlign="center start">
2171
+ <label for="uploader-input" ng2FileDrop style="font-weight:bold"
2172
+ [ngClass]="{'over-drop-zone': hasBaseDropZoneOver}" for="file-fh{{ id_component }}"
2173
+ (onFileDrop)="onFileDrop($event)"
2174
+ (fileOver)="fileOverBase($event)" [uploader]="uploader">
2175
+ <div fxLayoutAlign="center center" fxLayout="row">
2176
+ <mat-icon>{{!hasBaseDropZoneOver?'backup':'thumb_up'}}</mat-icon>
2177
+
2178
+ &nbsp;<span style="font-size: 14px">&nbsp;&nbsp;Upload</span></div></label></div>
2179
+ <input type="file"
2180
+ ng2FileSelect
2181
+ [multiple]="false"
2182
+ [uploader]="uploader"
2183
+ name="file-fh{{ id_component }}"
2184
+ id="file-fh{{ id_component }}"
2185
+ (onFileSelected)="onFileDrop($event)"
2186
+ id="uploader-input" style="display:none"/>
2162
2187
  <div fxLayout="row" fxLayoutAlign="start start">
2188
+ &nbsp;&nbsp;&nbsp;&nbsp;
2163
2189
  <button
2164
- mat-flat-button
2190
+ mat-raised-button
2165
2191
  *ngIf="b_edit_loaded"
2166
2192
  (click)="download_all()"
2167
- style="font-size: 12px"
2193
+ style="font-size: 12px;font-weight:bold" color="accent"
2194
+
2168
2195
  >
2169
2196
  {{ label_b }}</button
2170
2197
  >&nbsp;&nbsp;&nbsp;
2171
2198
  <button
2172
- mat-flat-button
2199
+ mat-raised-button
2173
2200
  *ngIf="id != null && allow_delete"
2174
2201
  (click)="del_doc()"
2175
2202
  color="warn"
@@ -2182,7 +2209,7 @@ FHUploadS3Component.decorators = [
2182
2209
  <label>{{ label }}:</label>
2183
2210
  <div *ngIf="label != descrizione">{{ descrizione }}</div>
2184
2211
  <button
2185
- mat-flat-button
2212
+ mat-raised-button
2186
2213
  *ngIf="b_edit_loaded"
2187
2214
  (click)="download_all()"
2188
2215
  style="font-size: 12px;background-color: #F5F5F5"
@@ -2216,7 +2243,9 @@ FHUploadS3Component.propDecorators = {
2216
2243
  change: [{ type: Output }],
2217
2244
  upload_ended: [{ type: Output }],
2218
2245
  call_upload: [{ type: Output }],
2219
- cmb_tipo: [{ type: ViewChild, args: ["cmb_tipo",] }]
2246
+ cmb_tipo: [{ type: ViewChild, args: ["cmb_tipo",] }],
2247
+ lascia_il_file: [{ type: Input }],
2248
+ trascina_il_file: [{ type: Input }]
2220
2249
  };
2221
2250
 
2222
2251
  class FSInput {
@@ -2512,6 +2541,102 @@ FileService.ctorParameters = () => [
2512
2541
  { type: ToastrService }
2513
2542
  ];
2514
2543
 
2544
+ class win_show_email_s3 {
2545
+ constructor(dialogRef, _fileservice, m_appService, data) {
2546
+ this.dialogRef = dialogRef;
2547
+ this._fileservice = _fileservice;
2548
+ this.m_appService = m_appService;
2549
+ this.data = data;
2550
+ this.allegati = [];
2551
+ this.App = "";
2552
+ this.K = "";
2553
+ this.email_obj = {};
2554
+ this.title = "ANTEPRIMA EMAIL";
2555
+ this.web_url = '';
2556
+ this.local_dir = '';
2557
+ this.web_url = data.web_url;
2558
+ this.local_dir = data.local_dir;
2559
+ let fs = new FSInput();
2560
+ fs.command = "exec_app";
2561
+ fs.p1 = "Email_Reader_S3";
2562
+ fs.p2 = this.web_url + '|' + this.local_dir + '|' + data.filename;
2563
+ this._fileservice.doQuery(fs).subscribe((data) => {
2564
+ this.email_obj = JSON.parse(data.msg);
2565
+ this.allegati = this.email_obj.allegati.split('||');
2566
+ });
2567
+ }
2568
+ init_w() {
2569
+ }
2570
+ open_all(u) {
2571
+ window.open(this.web_url);
2572
+ }
2573
+ }
2574
+ win_show_email_s3.decorators = [
2575
+ { type: Component, args: [{
2576
+ template: `
2577
+ <div style="width:100%" fxLayout="row" fxLayoutAlign="end start"><img src="assets/icons/x.png" style="cursor: pointer;" (click)="dialogRef.close(null)" /> </div><br>
2578
+ <div style="width:1000px;overflow:auto;" [style.height]="(m_appService.getState().body_h-240)+'px'">
2579
+ <mat-toolbar color="primary">{{title}}
2580
+ <span class="fill-remaining-space"></span>
2581
+
2582
+ </mat-toolbar>
2583
+ <br>
2584
+
2585
+ <div style="width:100%;height:500px">
2586
+ <div style="width:100%;height:100%">
2587
+ <div fxLayout="column">
2588
+ <div fxLayout="row">
2589
+ <div style="width:100px">From:</div>
2590
+ <div  [innerHTML]="email_obj.from" ></div>
2591
+ </div>
2592
+ <div fxLayout="row">
2593
+ <div style="width:100px">To:</div>
2594
+ <div  [innerHTML]="email_obj.to" ></div>
2595
+ </div>
2596
+ <div fxLayout="row">
2597
+ <div style="width:100px">CC:</div>
2598
+ <div  [innerHTML]="email_obj.cc" ></div>
2599
+ </div>
2600
+ <div fxLayout="row">
2601
+ <div style="width:100px">Subject:</div>
2602
+ <div  [innerHTML]="email_obj.subject" ></div>
2603
+ </div>
2604
+ <div style="width:100px">Body:</div>
2605
+ <div style="overflow:auto;" [style.height]="(m_appService.getState().body_h-490)+'px'">
2606
+ <div fxLayout="row" [hidden]="email_obj.is_html=='NO'">
2607
+
2608
+ <div  [innerHTML]="email_obj.body" ></div>
2609
+ </div>
2610
+ <div fxLayout="row" [hidden]="email_obj.is_html=='SI'">
2611
+
2612
+ <div>{{email_obj.body}}</div>
2613
+ </div>
2614
+ </div>
2615
+ <hr style="width:100%">
2616
+ <div fxLayout="row" fxLayoutGap="10px">
2617
+ <div style="width:100px">Allegati:</div>
2618
+ <div *ngFor="let u of allegati" >
2619
+ <button mat-raised-button color="primary" (click)="open_all(u)">{{u}}</button>
2620
+ </div>
2621
+
2622
+
2623
+
2624
+ </div>
2625
+
2626
+
2627
+ </div>
2628
+ </div>
2629
+ </div>
2630
+ `
2631
+ },] }
2632
+ ];
2633
+ win_show_email_s3.ctorParameters = () => [
2634
+ { type: MatDialogRef },
2635
+ { type: FileService },
2636
+ { type: AppService },
2637
+ { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
2638
+ ];
2639
+
2515
2640
  class FHUploadPanelS3Component {
2516
2641
  constructor(_appservice, _dataService, toastr, dialog, fileService, uti) {
2517
2642
  this._appservice = _appservice;
@@ -2577,6 +2702,26 @@ class FHUploadPanelS3Component {
2577
2702
  }
2578
2703
  });
2579
2704
  }
2705
+ preview_email(ax) {
2706
+ let p = new FSInput();
2707
+ p.command = "exec_app";
2708
+ p.p1 = "s3_downloader";
2709
+ p.p2 = ax.uiid +
2710
+ "|" +
2711
+ this._appservice.user;
2712
+ this.fileService.doQuery(p).subscribe((data) => {
2713
+ if (data != null)
2714
+ if (data.result_msg == "OK") {
2715
+ let str_mg = data.msg.split('|');
2716
+ if (str_mg[0] == 'OK') {
2717
+ let dialogRef = this.dialog.open(win_show_email_s3, { data: { web_url: str_mg[1], local_dir: this._appservice.LOCAL_PATH + '\\' + this._appservice.user + '\\',
2718
+ filename: str_mg[1].split('/')[str_mg[1].split('/').length - 1] } });
2719
+ dialogRef.afterClosed().subscribe((result) => {
2720
+ });
2721
+ }
2722
+ }
2723
+ });
2724
+ }
2580
2725
  edit_tipo(ax) {
2581
2726
  let p = new QParam();
2582
2727
  p.sql = this.m_p_tipo;
@@ -2875,6 +3020,14 @@ FHUploadPanelS3Component.decorators = [
2875
3020
  {{ app.dt_ins | date: "dd/MM/yyyy HH:mm:ss" }}
2876
3021
  </td>
2877
3022
  <td style="text-align:center">
3023
+
3024
+ <button [hidden]="app.Filename.indexOf('.eml')==-1 && app.Filename.indexOf('.msg')==-1"
3025
+ mat-icon-button
3026
+ matTooltip="Preview"
3027
+ (click)="preview_email(app)"
3028
+ >
3029
+ <mat-icon>visibility</mat-icon>
3030
+ </button>
2878
3031
  <button
2879
3032
  mat-icon-button
2880
3033
  matTooltip="Download File"
@@ -2997,6 +3150,14 @@ FHUploadPanelS3Component.decorators = [
2997
3150
  {{ app.dt_ins | date: "dd/MM/yyyy HH:mm:ss" }}
2998
3151
  </td>
2999
3152
  <td style="text-align:center">
3153
+
3154
+ <button [hidden]="app.Filename.indexOf('.eml')==-1 && app.Filename.indexOf('.msg')==-1"
3155
+ mat-icon-button
3156
+ matTooltip="Preview"
3157
+ (click)="preview_email(app)"
3158
+ >
3159
+ <mat-icon>visibility</mat-icon>
3160
+ </button>
3000
3161
  <button
3001
3162
  mat-icon-button
3002
3163
  matTooltip="Download File"
@@ -20001,7 +20162,7 @@ FluxhubLibModule.decorators = [
20001
20162
  win_salva_annulla,
20002
20163
  FormBuilderComponent,
20003
20164
  FormExecuterComponent,
20004
- FHTableManager, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component, win_show_email
20165
+ FHTableManager, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component, win_show_email, win_show_email_s3
20005
20166
  ],
20006
20167
  declarations: [
20007
20168
  win_show_log_dett,
@@ -20079,7 +20240,7 @@ FluxhubLibModule.decorators = [
20079
20240
  FHTableManager,
20080
20241
  win_manage_values,
20081
20242
  win_manage_roles,
20082
- FHComboboxComponentFilter, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component, win_show_email
20243
+ FHComboboxComponentFilter, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component, win_show_email, win_show_email_s3
20083
20244
  ],
20084
20245
  providers: [HighlightService, DragulaService],
20085
20246
  entryComponents: [
@@ -20121,7 +20282,7 @@ FluxhubLibModule.decorators = [
20121
20282
  WinAskTextBigComponent,
20122
20283
  WinOutputComponent,
20123
20284
  FHListPick, FHPickListComponent,
20124
- WinWait, win_show_email
20285
+ WinWait, win_show_email, win_show_email_s3
20125
20286
  ],
20126
20287
  },] }
20127
20288
  ];
@@ -20307,5 +20468,5 @@ class FSResult {
20307
20468
  * Generated bundle index. Do not edit.
20308
20469
  */
20309
20470
 
20310
- 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, FHPickFieldComponent, FHPickListComponent, FHRichText, FHRoleManager, FHTableManager, FHTextArea, FHTextInput, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, 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_email, win_show_image, win_show_log_dett, win_time_slider, win_uploads, win_user_info, wkf_header_bar, wkfapp, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 as ɵb, win_select_canale as ɵba, win_select_level as ɵbb, win_commenti as ɵbc, win_info_doc as ɵbd, win_log as ɵbe, win_recupera_doc as ɵbf, win_riassegna_select_level as ɵbg, win_riassegna_select_user as ɵbh, win_sostituisci_utente as ɵbi, win_commento_sel_notif as ɵbj, win_manage_values as ɵbk, win_manage_roles as ɵbl, FHComboboxComponentFilter as ɵbm, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 as ɵf, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6 as ɵg, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵh, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵi, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4 as ɵj, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵk, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 as ɵl, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a as ɵm, FHHelpButton as ɵn, SafePipe as ɵo, DecimalMask as ɵp, MOMENT_DATE_FORMATS as ɵq, MomentDateAdapter as ɵr, win_grid_help as ɵs, HighlightService as ɵt, FHViewerComponent as ɵu, win_app_logs as ɵw, FHGridToolBarComponent as ɵx, win_assegna as ɵy, win_conferma as ɵz };
20471
+ 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, FHPickFieldComponent, FHPickListComponent, FHRichText, FHRoleManager, FHTableManager, FHTextArea, FHTextInput, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, 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_email, win_show_email_s3, win_show_image, win_show_log_dett, win_time_slider, win_uploads, win_user_info, wkf_header_bar, wkfapp, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 as ɵb, win_select_canale as ɵba, win_select_level as ɵbb, win_commenti as ɵbc, win_info_doc as ɵbd, win_log as ɵbe, win_recupera_doc as ɵbf, win_riassegna_select_level as ɵbg, win_riassegna_select_user as ɵbh, win_sostituisci_utente as ɵbi, win_commento_sel_notif as ɵbj, win_manage_values as ɵbk, win_manage_roles as ɵbl, FHComboboxComponentFilter as ɵbm, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 as ɵf, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6 as ɵg, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵh, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵi, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4 as ɵj, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵk, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 as ɵl, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a as ɵm, FHHelpButton as ɵn, SafePipe as ɵo, DecimalMask as ɵp, MOMENT_DATE_FORMATS as ɵq, MomentDateAdapter as ɵr, win_grid_help as ɵs, HighlightService as ɵt, FHViewerComponent as ɵu, win_app_logs as ɵw, FHGridToolBarComponent as ɵx, win_assegna as ɵy, win_conferma as ɵz };
20311
20472
  //# sourceMappingURL=fluxhub-fluxhub-lib.js.map