@fluxhub/fluxhub-lib 19.0.238 → 19.0.240

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.
@@ -29,9 +29,16 @@ export declare class FHMailArchivedComponent implements AfterViewInit {
29
29
  accentDark: string;
30
30
  get _a(): string;
31
31
  get _ad(): string;
32
- /** Query senza filtro. Deve gia contenere ORDER BY e LIMIT. */
32
+ /** Query di partenza. Deve gia contenere ORDER BY e LIMIT. */
33
33
  sql: string;
34
- /** Valore passato come @VAL1 alla query del filtro attivo. */
34
+ /**
35
+ * @VAL1 della query di partenza: e il *contesto*, non il filtro dell'utente.
36
+ * Serve quando il componente vive dentro una scheda gia circoscritta — per
37
+ * esempio dentro l'anagrafica di un cliente, dove passa l'id di quel cliente.
38
+ * Lasciarlo vuoto se la query di partenza non ha parametri.
39
+ */
40
+ valoreBase: string;
41
+ /** Valore digitato dall'utente, passato come @VAL1 alla query del filtro attivo. */
35
42
  valore: string;
36
43
  /**
37
44
  * Filtri offerti dal selettore. Lasciandolo vuoto il componente e una tabella
@@ -76,5 +83,5 @@ export declare class FHMailArchivedComponent implements AfterViewInit {
76
83
  apri(riga: any): void;
77
84
  stelle(n: any): string;
78
85
  static ɵfac: i0.ɵɵFactoryDeclaration<FHMailArchivedComponent, never>;
79
- static ɵcmp: i0.ɵɵComponentDeclaration<FHMailArchivedComponent, "FHMailArchived", never, { "accent": { "alias": "accent"; "required": false; }; "accentDark": { "alias": "accentDark"; "required": false; }; "sql": { "alias": "sql"; "required": false; }; "valore": { "alias": "valore"; "required": false; }; "filtri": { "alias": "filtri"; "required": false; }; "limite": { "alias": "limite"; "required": false; }; "autoLoad": { "alias": "autoLoad"; "required": false; }; "title": { "alias": "title"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "tuttiLabel": { "alias": "tuttiLabel"; "required": false; }; "cercaLabel": { "alias": "cercaLabel"; "required": false; }; "cercaPlaceholder": { "alias": "cercaPlaceholder"; "required": false; }; "apriTooltip": { "alias": "apriTooltip"; "required": false; }; "senzaOggetto": { "alias": "senzaOggetto"; "required": false; }; "emptyTitle": { "alias": "emptyTitle"; "required": false; }; "emptySub": { "alias": "emptySub"; "required": false; }; "troncatoLabel": { "alias": "troncatoLabel"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; "colData": { "alias": "colData"; "required": false; }; "colOggetto": { "alias": "colOggetto"; "required": false; }; "colCliente": { "alias": "colCliente"; "required": false; }; "colContatti": { "alias": "colContatti"; "required": false; }; "colPratiche": { "alias": "colPratiche"; "required": false; }; "colRilevanza": { "alias": "colRilevanza"; "required": false; }; }, { "apriMail": "apriMail"; }, never, never, true, never>;
86
+ static ɵcmp: i0.ɵɵComponentDeclaration<FHMailArchivedComponent, "FHMailArchived", never, { "accent": { "alias": "accent"; "required": false; }; "accentDark": { "alias": "accentDark"; "required": false; }; "sql": { "alias": "sql"; "required": false; }; "valoreBase": { "alias": "valoreBase"; "required": false; }; "valore": { "alias": "valore"; "required": false; }; "filtri": { "alias": "filtri"; "required": false; }; "limite": { "alias": "limite"; "required": false; }; "autoLoad": { "alias": "autoLoad"; "required": false; }; "title": { "alias": "title"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "tuttiLabel": { "alias": "tuttiLabel"; "required": false; }; "cercaLabel": { "alias": "cercaLabel"; "required": false; }; "cercaPlaceholder": { "alias": "cercaPlaceholder"; "required": false; }; "apriTooltip": { "alias": "apriTooltip"; "required": false; }; "senzaOggetto": { "alias": "senzaOggetto"; "required": false; }; "emptyTitle": { "alias": "emptyTitle"; "required": false; }; "emptySub": { "alias": "emptySub"; "required": false; }; "troncatoLabel": { "alias": "troncatoLabel"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; "colData": { "alias": "colData"; "required": false; }; "colOggetto": { "alias": "colOggetto"; "required": false; }; "colCliente": { "alias": "colCliente"; "required": false; }; "colContatti": { "alias": "colContatti"; "required": false; }; "colPratiche": { "alias": "colPratiche"; "required": false; }; "colRilevanza": { "alias": "colRilevanza"; "required": false; }; }, { "apriMail": "apriMail"; }, never, never, true, never>;
80
87
  }
@@ -0,0 +1,52 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { MatDialogRef } from '@angular/material/dialog';
3
+ import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
4
+ import { AppService } from '../../services/app.service';
5
+ import { FileService } from '../../services/dofile.service';
6
+ import { DialogButton, DialogBeforeCloseEvent } from '../../controls/dialog-base/dialog-base.component';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * Anteprima di una mail archiviata (Mail Archiver).
10
+ *
11
+ * L'archivio conserva l'`.eml` originale, che non si mostra a video: la resa la
12
+ * produce l'utility `mail_reader` lanciata con `exec_app`, che restituisce l'HTML
13
+ * sullo stdout. Nessun file finisce nella docroot — le mail archiviate sarebbero
14
+ * altrimenti scaricabili senza autenticazione.
15
+ */
16
+ export declare class FHMailPreviewComponent implements OnInit {
17
+ dialogRef: MatDialogRef<FHMailPreviewComponent>;
18
+ private fileService;
19
+ private sanitizer;
20
+ appService: AppService;
21
+ data: any;
22
+ titolo: string;
23
+ html: SafeHtml | null;
24
+ errore: string;
25
+ caricamento: boolean;
26
+ scaricando: boolean;
27
+ allegati: any[];
28
+ buttons: DialogButton[];
29
+ private aggiornaPulsanti;
30
+ constructor(dialogRef: MatDialogRef<FHMailPreviewComponent>, fileService: FileService, sanitizer: DomSanitizer, appService: AppService, data: any);
31
+ ngOnInit(): void;
32
+ /**
33
+ * Elenco degli allegati per la barra cliccabile. Chiamata separata e leggera:
34
+ * restituisce solo nomi e pesi, non i byte, che si leggono al momento del
35
+ * download — un allegato da 20 MB non va tirato giu per disegnare un pulsante.
36
+ */
37
+ private caricaAllegati;
38
+ scaricaAllegato(a: any): void;
39
+ peso(byteCount: number): string;
40
+ /** atob non regge gli accenti: si passa dai byte, non dai caratteri. */
41
+ private daBase64;
42
+ onBeforeClose(event: DialogBeforeCloseEvent): void;
43
+ /**
44
+ * Scarica l'.eml originale. Passa da mail_reader --originale invece che da un
45
+ * link diretto: il file sta fuori dalla docroot apposta, e servirlo via URL lo
46
+ * renderebbe scaricabile senza autenticazione.
47
+ */
48
+ private scarica;
49
+ private salvaFile;
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<FHMailPreviewComponent, never>;
51
+ static ɵcmp: i0.ɵɵComponentDeclaration<FHMailPreviewComponent, "FHMailPreview", never, {}, {}, never, never, true, never>;
52
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluxhub/fluxhub-lib",
3
- "version": "19.0.238",
3
+ "version": "19.0.240",
4
4
  "description": "FluxHub components and workflow library",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",
package/public-api.d.ts CHANGED
@@ -113,6 +113,7 @@ export { FHHomeTodoComponent } from './lib/home-components/fh-home-todo/fh-home-
113
113
  export { FHHomeStatsComponent } from './lib/home-components/fh-home-stats/fh-home-stats.component';
114
114
  export { FHHomeDocsComponent } from './lib/home-components/fh-home-docs/fh-home-docs.component';
115
115
  export { FHMailArchivedComponent, FiltroMailArchiviata } from './lib/mail-archiver/fh-mail-archived/fh-mail-archived.component';
116
+ export { FHMailPreviewComponent } from './lib/mail-archiver/fh-mail-preview/fh-mail-preview.component';
116
117
  export { FHAiService } from './lib/ai-components/fh-ai.service';
117
118
  export { FHAiChatComponent } from './lib/ai-components/fh-ai-chat/fh-ai-chat.component';
118
119
  export { FHAiAssistantComponent } from './lib/ai-components/fh-ai-assistant/fh-ai-assistant.component';