@fluxhub/fluxhub-lib 22.0.3 → 22.0.5

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,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, EventEmitter, Output, Input, ChangeDetectionStrategy, Component, ViewChild, Inject, forwardRef, Optional, Pipe, HostListener, Directive, ViewEncapsulation, ViewContainerRef, ElementRef, ViewChildren, HostBinding } from '@angular/core';
2
+ import { Injectable, InjectionToken, inject, EventEmitter, Output, Input, ChangeDetectionStrategy, Component, ViewChild, Inject, forwardRef, Optional, Pipe, HostListener, Directive, ViewEncapsulation, ViewContainerRef, ElementRef, ViewChildren, HostBinding } from '@angular/core';
3
3
  import * as i1$1 from '@angular/common/http';
4
- import { HttpHeaders, HttpEventType, HttpErrorResponse } from '@angular/common/http';
4
+ import { HttpHeaders, HttpErrorResponse, HttpEventType } from '@angular/common/http';
5
5
  import { map, catchError, flatMap, debounceTime, switchMap, filter, take, tap } from 'rxjs/operators';
6
6
  import * as i3$1 from 'ngx-toastr';
7
7
  import * as i3$2 from '@angular/router';
@@ -1564,12 +1564,83 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
1564
1564
  }]
1565
1565
  }], ctorParameters: () => [{ type: i3$1.ToastrService }, { type: i1$1.HttpClient }, { type: i3$2.Router }, { type: AppService }, { type: UtilityService }] });
1566
1566
 
1567
+ /** Fornito dal portale: `{ provide: FH_ERROR_REPORTER, useValue: (r) => ... }` */
1568
+ const FH_ERROR_REPORTER = new InjectionToken('FH_ERROR_REPORTER');
1569
+ /** Header con cui il server dichiara di aver gia' registrato l'errore. */
1570
+ const FH_EVENT_ID_HEADER = 'X-FH-Event-Id';
1571
+ /** Header con la pagina del portale, letto dal server per arricchire i suoi eventi. */
1572
+ const FH_ROUTE_HEADER = 'X-FH-Route';
1573
+ /** Pagina corrente: i portali usano l'hash routing (/#/home), altrimenti il path. */
1574
+ function fhCurrentRoute() {
1575
+ try {
1576
+ const h = window.location.hash || '';
1577
+ const r = h.startsWith('#') ? h.substring(1) : window.location.pathname;
1578
+ // Va in un header HTTP: solo ASCII stampabile, il resto codificato.
1579
+ return (r.split('?')[0] || '/')
1580
+ .substring(0, 200)
1581
+ .replace(/[^\x20-\x7E]/g, (c) => encodeURIComponent(c));
1582
+ }
1583
+ catch {
1584
+ return '';
1585
+ }
1586
+ }
1587
+ function fhEndpointOf(url) {
1588
+ if (!url)
1589
+ return '';
1590
+ try {
1591
+ // Solo l'ultimo segmento (/doquery, /dogridn): il prefisso del reverse proxy
1592
+ // (/fh3/...) cambia da portale a portale e il backend non lo vede.
1593
+ const segs = new URL(url, window.location.href).pathname.split('/').filter((x) => x);
1594
+ return '/' + (segs[segs.length - 1] || '');
1595
+ }
1596
+ catch {
1597
+ return url;
1598
+ }
1599
+ }
1600
+ /** Invoca il reporter senza mai far fallire la chiamata dati per colpa sua. */
1601
+ function fhReport(reporter, r) {
1602
+ if (!reporter || !r)
1603
+ return;
1604
+ try {
1605
+ reporter(r);
1606
+ }
1607
+ catch {
1608
+ // il monitoraggio non deve mai rompere il portale
1609
+ }
1610
+ }
1611
+ /** Report per un errore di trasporto, o null se non va segnalato. */
1612
+ function fhHttpErrorReport(err, base) {
1613
+ if (!(err instanceof HttpErrorResponse))
1614
+ return null;
1615
+ // 401 lo gestisce l'interceptor (refresh token); 0 e' rete assente o richiesta
1616
+ // interrotta dal cambio pagina: rumore. Si segnalano gli errori del server.
1617
+ if (err.status < 500)
1618
+ return null;
1619
+ return {
1620
+ ...base,
1621
+ kind: 'http',
1622
+ status: err.status,
1623
+ message: `${err.status} ${err.statusText || ''}`.trim(),
1624
+ serverEventId: fhEventId(err.headers),
1625
+ };
1626
+ }
1627
+ function fhEventId(h) {
1628
+ try {
1629
+ return h?.get(FH_EVENT_ID_HEADER) || null;
1630
+ }
1631
+ catch {
1632
+ return null;
1633
+ }
1634
+ }
1635
+
1567
1636
  class QueryService {
1568
1637
  http;
1569
1638
  toastr;
1570
1639
  app_s;
1571
1640
  uti_s;
1572
1641
  headers;
1642
+ // Opzionale: lo fornisce il portale che raccoglie gli errori (vedi error-reporter.ts)
1643
+ reporter = inject(FH_ERROR_REPORTER, { optional: true });
1573
1644
  url = null;
1574
1645
  constructor(http, toastr, app_s, uti_s) {
1575
1646
  this.http = http;
@@ -1594,6 +1665,7 @@ class QueryService {
1594
1665
  this.headers = new HttpHeaders({
1595
1666
  "Content-Type": "application/json",
1596
1667
  Authorization: "Bearer " + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
1668
+ [FH_ROUTE_HEADER]: fhCurrentRoute(),
1597
1669
  });
1598
1670
  if (url_sec == null)
1599
1671
  this.url = this.app_s.API_ENDPOINT + this.app_s.QUERY_ENDPOINT;
@@ -1651,7 +1723,15 @@ class QueryService {
1651
1723
  // se rilevo che sono sono localhost:4200 scrivo su console
1652
1724
  if (isLocalhost) {
1653
1725
  }
1654
- return this.http.post(this.url, post_v, { headers: this.headers }).pipe(map((res) => {
1726
+ const base = {
1727
+ service: "query",
1728
+ endpoint: fhEndpointOf(this.url),
1729
+ key: queryp.sql || "",
1730
+ route: fhCurrentRoute(),
1731
+ displayError,
1732
+ };
1733
+ return this.http.post(this.url, post_v, { headers: this.headers, observe: "response" }).pipe(map((resp) => {
1734
+ const res = resp?.body;
1655
1735
  this.app_s.complete();
1656
1736
  // Handle errors, display if enabled
1657
1737
  let err;
@@ -1662,6 +1742,12 @@ class QueryService {
1662
1742
  err = new Error(res.msg);
1663
1743
  }
1664
1744
  if (err) {
1745
+ fhReport(this.reporter, {
1746
+ ...base,
1747
+ kind: res ? "ko" : "empty",
1748
+ message: err.message || "",
1749
+ serverEventId: fhEventId(resp?.headers),
1750
+ });
1665
1751
  console.error(err);
1666
1752
  if (displayError) {
1667
1753
  console.error(queryp.sql + ' ' + err.message);
@@ -1681,6 +1767,7 @@ class QueryService {
1681
1767
  res.result_data = this.uti_s.convertKeysToLowerCase(res.result_data);
1682
1768
  return res || new QGResult();
1683
1769
  }), catchError((err) => {
1770
+ fhReport(this.reporter, fhHttpErrorReport(err, base));
1684
1771
  let errMsg = err.message
1685
1772
  ? err.message
1686
1773
  : err.status
@@ -10026,6 +10113,8 @@ class GridService {
10026
10113
  toastr;
10027
10114
  uti_s;
10028
10115
  headers;
10116
+ // Opzionale: lo fornisce il portale che raccoglie gli errori (vedi error-reporter.ts)
10117
+ reporter = inject(FH_ERROR_REPORTER, { optional: true });
10029
10118
  constructor(http, app_s, toastr, uti_s) {
10030
10119
  this.http = http;
10031
10120
  this.app_s = app_s;
@@ -10039,13 +10128,22 @@ class GridService {
10039
10128
  this.headers = new HttpHeaders({
10040
10129
  "Content-Type": "application/json",
10041
10130
  Authorization: "Bearer " + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
10131
+ [FH_ROUTE_HEADER]: fhCurrentRoute(),
10042
10132
  });
10043
10133
  if (url_sec == null)
10044
10134
  this.url = this.app_s.API_ENDPOINT + this.app_s.GRID_ENDPOINT;
10045
10135
  else
10046
10136
  this.url = url_sec;
10047
10137
  let post_v = JSON.stringify(queryp);
10048
- return this.http.post(this.url, post_v, { headers: this.headers }).pipe(map((res) => {
10138
+ const base = {
10139
+ service: "grid",
10140
+ endpoint: fhEndpointOf(this.url),
10141
+ key: queryp.kd || queryp.table || "",
10142
+ route: fhCurrentRoute(),
10143
+ displayError,
10144
+ };
10145
+ return this.http.post(this.url, post_v, { headers: this.headers, observe: "response" }).pipe(map((resp) => {
10146
+ const res = resp?.body;
10049
10147
  this.app_s.complete();
10050
10148
  // Handle errors, display if enabled
10051
10149
  let err;
@@ -10056,6 +10154,12 @@ class GridService {
10056
10154
  err = new Error(res.msg);
10057
10155
  }
10058
10156
  if (err) {
10157
+ fhReport(this.reporter, {
10158
+ ...base,
10159
+ kind: res ? "ko" : "empty",
10160
+ message: err.message || "",
10161
+ serverEventId: fhEventId(resp?.headers),
10162
+ });
10059
10163
  console.error(err);
10060
10164
  if (displayError) {
10061
10165
  this.toastr.error(err.message);
@@ -10068,6 +10172,7 @@ class GridService {
10068
10172
  res.result_data = this.uti_s.convertKeysToLowerCase(res.result_data);
10069
10173
  return res || new QGResult();
10070
10174
  }), catchError((err) => {
10175
+ fhReport(this.reporter, fhHttpErrorReport(err, base));
10071
10176
  // In a real world app, we might use a remote logging infrastructure
10072
10177
  // We'd also dig deeper into the error to get a better message
10073
10178
  let errMsg = err.message
@@ -41382,6 +41487,7 @@ const KNOWN_EXT = '3G2|3GA|3GP|7Z|AA|AAC|AC|ACCDB|ACCDT|ADN|AI|AIF|AIFC|AIFF|AIT
41382
41487
  * Colonne attese dalla query (vista `v_fh_mail_archiver`):
41383
41488
  * id, received_at, subject, sender_name, sender_email, client_name,
41384
41489
  * contatti, pratiche, rilevanza, has_attachments, archived_at, archived_by
41490
+ * e, con `mostraNota`, anche `note` (la nota scritta archiviando la mail).
41385
41491
  */
41386
41492
  class FHMailArchivedComponent {
41387
41493
  _dataService;
@@ -41432,6 +41538,13 @@ class FHMailArchivedComponent {
41432
41538
  colContatti = 'Referenti';
41433
41539
  colPratiche = 'Pratiche';
41434
41540
  colRilevanza = 'Ril.';
41541
+ /**
41542
+ * Mostra la nota di archiviazione al posto della colonna Cliente. Pensato per gli
41543
+ * elenchi gia' circoscritti a un cliente (scheda account, pratica), dove il cliente
41544
+ * e' lo stesso su ogni riga. La query deve restituire anche `note`.
41545
+ */
41546
+ mostraNota = false;
41547
+ colNota = 'Nota';
41435
41548
  /**
41436
41549
  * Riga aperta. L'anteprima della mail la gestisce il portale: passa dalla utility
41437
41550
  * mail_reader via exec_app, che e idraulica del singolo server e non ha senso
@@ -41496,7 +41609,7 @@ class FHMailArchivedComponent {
41496
41609
  return '★'.repeat(v) + '☆'.repeat(5 - v);
41497
41610
  }
41498
41611
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FHMailArchivedComponent, deps: [{ token: QueryService }], target: i0.ɵɵFactoryTarget.Component });
41499
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: FHMailArchivedComponent, isStandalone: true, selector: "FHMailArchived", inputs: { accent: "accent", accentDark: "accentDark", sql: "sql", valoreBase: "valoreBase", valore: "valore", filtri: "filtri", limite: "limite", autoLoad: "autoLoad", title: "title", icon: "icon", tuttiLabel: "tuttiLabel", cercaLabel: "cercaLabel", cercaPlaceholder: "cercaPlaceholder", apriTooltip: "apriTooltip", senzaOggetto: "senzaOggetto", emptyTitle: "emptyTitle", emptySub: "emptySub", troncatoLabel: "troncatoLabel", dateFormat: "dateFormat", colData: "colData", colOggetto: "colOggetto", colCliente: "colCliente", colContatti: "colContatti", colPratiche: "colPratiche", colRilevanza: "colRilevanza" }, outputs: { apriMail: "apriMail" }, host: { properties: { "style.--fh-ma-accent": "this._a", "style.--fh-ma-accent-dark": "this._ad" } }, ngImport: i0, template: `
41612
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: FHMailArchivedComponent, isStandalone: true, selector: "FHMailArchived", inputs: { accent: "accent", accentDark: "accentDark", sql: "sql", valoreBase: "valoreBase", valore: "valore", filtri: "filtri", limite: "limite", autoLoad: "autoLoad", title: "title", icon: "icon", tuttiLabel: "tuttiLabel", cercaLabel: "cercaLabel", cercaPlaceholder: "cercaPlaceholder", apriTooltip: "apriTooltip", senzaOggetto: "senzaOggetto", emptyTitle: "emptyTitle", emptySub: "emptySub", troncatoLabel: "troncatoLabel", dateFormat: "dateFormat", colData: "colData", colOggetto: "colOggetto", colCliente: "colCliente", colContatti: "colContatti", colPratiche: "colPratiche", colRilevanza: "colRilevanza", mostraNota: "mostraNota", colNota: "colNota" }, outputs: { apriMail: "apriMail" }, host: { properties: { "style.--fh-ma-accent": "this._a", "style.--fh-ma-accent-dark": "this._ad" } }, ngImport: i0, template: `
41500
41613
  <div class="ma-panel">
41501
41614
  <div class="ma-head">
41502
41615
  <div class="ma-title">
@@ -41543,7 +41656,11 @@ class FHMailArchivedComponent {
41543
41656
  <tr>
41544
41657
  <th class="c-data">{{ colData }}</th>
41545
41658
  <th>{{ colOggetto }}</th>
41546
- <th>{{ colCliente }}</th>
41659
+ @if (mostraNota) {
41660
+ <th class="c-nota">{{ colNota }}</th>
41661
+ } @else {
41662
+ <th>{{ colCliente }}</th>
41663
+ }
41547
41664
  <th>{{ colContatti }}</th>
41548
41665
  <th class="c-prat">{{ colPratiche }}</th>
41549
41666
  <th class="c-ril">{{ colRilevanza }}</th>
@@ -41566,7 +41683,11 @@ class FHMailArchivedComponent {
41566
41683
  </span>
41567
41684
  <span class="ma-mit mono">{{ r.sender_email }}</span>
41568
41685
  </td>
41569
- <td>{{ r.client_name || '-' }}</td>
41686
+ @if (mostraNota) {
41687
+ <td class="c-nota">{{ r.note || '-' }}</td>
41688
+ } @else {
41689
+ <td>{{ r.client_name || '-' }}</td>
41690
+ }
41570
41691
  <td class="ma-piccolo">{{ r.contatti || '-' }}</td>
41571
41692
  <td class="c-prat mono">{{ r.pratiche || '-' }}</td>
41572
41693
  <td
@@ -41605,7 +41726,7 @@ class FHMailArchivedComponent {
41605
41726
  @if (errorMsg) {
41606
41727
  <p class="ma-err">{{ errorMsg }}</p>
41607
41728
  }
41608
- `, isInline: true, styles: [":host{display:block}.ma-panel{background:#fff;border:1px solid rgba(22,18,18,.1);border-radius:10px;padding:14px 16px;display:flex;flex-direction:column;height:100%;box-sizing:border-box}.ma-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-bottom:10px;border-bottom:1px solid rgba(22,18,18,.06);margin-bottom:8px}.ma-title{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#161212;display:flex;align-items:center;gap:8px}.ma-title i{font-size:18px;color:var(--fh-ma-accent, #63b345)}.ma-count{font-family:ui-monospace,Consolas,monospace;font-size:11px;font-weight:700;letter-spacing:0;color:var(--fh-ma-accent-dark, #3f7029)}.ma-filtri{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ma-sel,.ma-val{font-family:Inter,sans-serif;font-size:12.5px;padding:5px 8px;border:1px solid #c9d4cd;border-radius:5px;background:#fff;color:#161212}.ma-val{min-width:190px}.ma-btn{font-family:Inter,sans-serif;font-size:12px;font-weight:600;padding:5px 12px;border:1px solid var(--fh-ma-accent, #63b345);border-radius:5px;background:var(--fh-ma-accent, #63b345);color:#fff;cursor:pointer}.ma-btn:hover{background:var(--fh-ma-accent-dark, #3f7029);border-color:var(--fh-ma-accent-dark, #3f7029)}.ma-sel:focus-visible,.ma-val:focus-visible,.ma-btn:focus-visible,.ma-tab tbody tr:focus-visible{outline:2px solid var(--fh-ma-accent, #63b345);outline-offset:1px}.ma-body{flex:1 1 auto;min-height:0;overflow:auto}.ma-tab{width:100%;border-collapse:collapse;font-family:Inter,sans-serif;font-size:13px}.ma-tab th{position:sticky;top:0;z-index:1;background:#f1f5f3;text-align:left;font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#6b7a72;padding:6px 8px;border-bottom:1px solid #dfe5e1;white-space:nowrap}.ma-tab td{padding:7px 8px;border-bottom:1px solid #eef2ef;vertical-align:top;color:#443d3d;overflow-wrap:anywhere}.ma-tab tbody tr{cursor:pointer;transition:background .12s ease}.ma-tab tbody tr:hover{background:var(--fh-ma-accent-soft, rgba(99, 179, 69, .08))}.mono{font-family:ui-monospace,Consolas,monospace;font-size:11.5px}.c-data{width:92px;white-space:nowrap;color:#6b7a72}.c-prat{width:130px}.c-ril{width:62px;white-space:nowrap}.ma-ogg{display:block;font-weight:600;color:#161212}.ma-clip{font-size:14px;vertical-align:-2px;color:#8c8585}.ma-mit{display:block;margin-top:1px;color:#8c8585}.ma-piccolo{font-size:11.5px;color:#6b7a72}.ma-stelle{color:#161212;letter-spacing:1px}.ma-tetto{margin:8px 0 0;padding:6px 10px;border-radius:5px;background:#fdf8e8;border:1px solid #e6cf8a;color:#6b5200;font-size:11.5px}.ma-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:34px 0;text-align:center}.ma-empty-i{font-size:30px;color:var(--fh-ma-accent-faint, rgba(99, 179, 69, .45))}.ma-empty-t{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:700;color:#5c5454}.ma-empty-s{font-family:Inter,sans-serif;font-size:12px;color:#877d7d}.ma-err{color:#c00;font-size:11px;margin:6px 0 0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i5.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i5.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i5.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i5.SelectControlValueAccessor, selector: "select:not([multiple]):not([ngNoCva])[formControlName],select:not([multiple]):not([ngNoCva])[formControl],select:not([multiple]):not([ngNoCva])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: i10.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.Eager });
41729
+ `, isInline: true, styles: [":host{display:block}.ma-panel{background:#fff;border:1px solid rgba(22,18,18,.1);border-radius:10px;padding:14px 16px;display:flex;flex-direction:column;height:100%;box-sizing:border-box}.ma-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-bottom:10px;border-bottom:1px solid rgba(22,18,18,.06);margin-bottom:8px}.ma-title{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#161212;display:flex;align-items:center;gap:8px}.ma-title i{font-size:18px;color:var(--fh-ma-accent, #63b345)}.ma-count{font-family:ui-monospace,Consolas,monospace;font-size:11px;font-weight:700;letter-spacing:0;color:var(--fh-ma-accent-dark, #3f7029)}.ma-filtri{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ma-sel,.ma-val{font-family:Inter,sans-serif;font-size:12.5px;padding:5px 8px;border:1px solid #c9d4cd;border-radius:5px;background:#fff;color:#161212}.ma-val{min-width:190px}.ma-btn{font-family:Inter,sans-serif;font-size:12px;font-weight:600;padding:5px 12px;border:1px solid var(--fh-ma-accent, #63b345);border-radius:5px;background:var(--fh-ma-accent, #63b345);color:#fff;cursor:pointer}.ma-btn:hover{background:var(--fh-ma-accent-dark, #3f7029);border-color:var(--fh-ma-accent-dark, #3f7029)}.ma-sel:focus-visible,.ma-val:focus-visible,.ma-btn:focus-visible,.ma-tab tbody tr:focus-visible{outline:2px solid var(--fh-ma-accent, #63b345);outline-offset:1px}.ma-body{flex:1 1 auto;min-height:0;overflow:auto}.ma-tab{width:100%;border-collapse:collapse;font-family:Inter,sans-serif;font-size:13px}.ma-tab th{position:sticky;top:0;z-index:1;background:#f1f5f3;text-align:left;font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#6b7a72;padding:6px 8px;border-bottom:1px solid #dfe5e1;white-space:nowrap}.ma-tab td{padding:7px 8px;border-bottom:1px solid #eef2ef;vertical-align:top;color:#443d3d;overflow-wrap:anywhere}.ma-tab tbody tr{cursor:pointer;transition:background .12s ease}.ma-tab tbody tr:hover{background:var(--fh-ma-accent-soft, rgba(99, 179, 69, .08))}.mono{font-family:ui-monospace,Consolas,monospace;font-size:11.5px}.c-data{width:92px;white-space:nowrap;color:#6b7a72}.c-prat{width:130px}.c-nota{width:32%;white-space:pre-line}.c-ril{width:62px;white-space:nowrap}.ma-ogg{display:block;font-weight:600;color:#161212}.ma-clip{font-size:14px;vertical-align:-2px;color:#8c8585}.ma-mit{display:block;margin-top:1px;color:#8c8585}.ma-piccolo{font-size:11.5px;color:#6b7a72}.ma-stelle{color:#161212;letter-spacing:1px}.ma-tetto{margin:8px 0 0;padding:6px 10px;border-radius:5px;background:#fdf8e8;border:1px solid #e6cf8a;color:#6b5200;font-size:11.5px}.ma-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:34px 0;text-align:center}.ma-empty-i{font-size:30px;color:var(--fh-ma-accent-faint, rgba(99, 179, 69, .45))}.ma-empty-t{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:700;color:#5c5454}.ma-empty-s{font-family:Inter,sans-serif;font-size:12px;color:#877d7d}.ma-err{color:#c00;font-size:11px;margin:6px 0 0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i5.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i5.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i5.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i5.SelectControlValueAccessor, selector: "select:not([multiple]):not([ngNoCva])[formControlName],select:not([multiple]):not([ngNoCva])[formControl],select:not([multiple]):not([ngNoCva])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: i10.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.Eager });
41609
41730
  }
41610
41731
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FHMailArchivedComponent, decorators: [{
41611
41732
  type: Component,
@@ -41656,7 +41777,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
41656
41777
  <tr>
41657
41778
  <th class="c-data">{{ colData }}</th>
41658
41779
  <th>{{ colOggetto }}</th>
41659
- <th>{{ colCliente }}</th>
41780
+ @if (mostraNota) {
41781
+ <th class="c-nota">{{ colNota }}</th>
41782
+ } @else {
41783
+ <th>{{ colCliente }}</th>
41784
+ }
41660
41785
  <th>{{ colContatti }}</th>
41661
41786
  <th class="c-prat">{{ colPratiche }}</th>
41662
41787
  <th class="c-ril">{{ colRilevanza }}</th>
@@ -41679,7 +41804,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
41679
41804
  </span>
41680
41805
  <span class="ma-mit mono">{{ r.sender_email }}</span>
41681
41806
  </td>
41682
- <td>{{ r.client_name || '-' }}</td>
41807
+ @if (mostraNota) {
41808
+ <td class="c-nota">{{ r.note || '-' }}</td>
41809
+ } @else {
41810
+ <td>{{ r.client_name || '-' }}</td>
41811
+ }
41683
41812
  <td class="ma-piccolo">{{ r.contatti || '-' }}</td>
41684
41813
  <td class="c-prat mono">{{ r.pratiche || '-' }}</td>
41685
41814
  <td
@@ -41718,7 +41847,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
41718
41847
  @if (errorMsg) {
41719
41848
  <p class="ma-err">{{ errorMsg }}</p>
41720
41849
  }
41721
- `, changeDetection: ChangeDetectionStrategy.Eager, styles: [":host{display:block}.ma-panel{background:#fff;border:1px solid rgba(22,18,18,.1);border-radius:10px;padding:14px 16px;display:flex;flex-direction:column;height:100%;box-sizing:border-box}.ma-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-bottom:10px;border-bottom:1px solid rgba(22,18,18,.06);margin-bottom:8px}.ma-title{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#161212;display:flex;align-items:center;gap:8px}.ma-title i{font-size:18px;color:var(--fh-ma-accent, #63b345)}.ma-count{font-family:ui-monospace,Consolas,monospace;font-size:11px;font-weight:700;letter-spacing:0;color:var(--fh-ma-accent-dark, #3f7029)}.ma-filtri{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ma-sel,.ma-val{font-family:Inter,sans-serif;font-size:12.5px;padding:5px 8px;border:1px solid #c9d4cd;border-radius:5px;background:#fff;color:#161212}.ma-val{min-width:190px}.ma-btn{font-family:Inter,sans-serif;font-size:12px;font-weight:600;padding:5px 12px;border:1px solid var(--fh-ma-accent, #63b345);border-radius:5px;background:var(--fh-ma-accent, #63b345);color:#fff;cursor:pointer}.ma-btn:hover{background:var(--fh-ma-accent-dark, #3f7029);border-color:var(--fh-ma-accent-dark, #3f7029)}.ma-sel:focus-visible,.ma-val:focus-visible,.ma-btn:focus-visible,.ma-tab tbody tr:focus-visible{outline:2px solid var(--fh-ma-accent, #63b345);outline-offset:1px}.ma-body{flex:1 1 auto;min-height:0;overflow:auto}.ma-tab{width:100%;border-collapse:collapse;font-family:Inter,sans-serif;font-size:13px}.ma-tab th{position:sticky;top:0;z-index:1;background:#f1f5f3;text-align:left;font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#6b7a72;padding:6px 8px;border-bottom:1px solid #dfe5e1;white-space:nowrap}.ma-tab td{padding:7px 8px;border-bottom:1px solid #eef2ef;vertical-align:top;color:#443d3d;overflow-wrap:anywhere}.ma-tab tbody tr{cursor:pointer;transition:background .12s ease}.ma-tab tbody tr:hover{background:var(--fh-ma-accent-soft, rgba(99, 179, 69, .08))}.mono{font-family:ui-monospace,Consolas,monospace;font-size:11.5px}.c-data{width:92px;white-space:nowrap;color:#6b7a72}.c-prat{width:130px}.c-ril{width:62px;white-space:nowrap}.ma-ogg{display:block;font-weight:600;color:#161212}.ma-clip{font-size:14px;vertical-align:-2px;color:#8c8585}.ma-mit{display:block;margin-top:1px;color:#8c8585}.ma-piccolo{font-size:11.5px;color:#6b7a72}.ma-stelle{color:#161212;letter-spacing:1px}.ma-tetto{margin:8px 0 0;padding:6px 10px;border-radius:5px;background:#fdf8e8;border:1px solid #e6cf8a;color:#6b5200;font-size:11.5px}.ma-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:34px 0;text-align:center}.ma-empty-i{font-size:30px;color:var(--fh-ma-accent-faint, rgba(99, 179, 69, .45))}.ma-empty-t{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:700;color:#5c5454}.ma-empty-s{font-family:Inter,sans-serif;font-size:12px;color:#877d7d}.ma-err{color:#c00;font-size:11px;margin:6px 0 0}\n"] }]
41850
+ `, changeDetection: ChangeDetectionStrategy.Eager, styles: [":host{display:block}.ma-panel{background:#fff;border:1px solid rgba(22,18,18,.1);border-radius:10px;padding:14px 16px;display:flex;flex-direction:column;height:100%;box-sizing:border-box}.ma-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-bottom:10px;border-bottom:1px solid rgba(22,18,18,.06);margin-bottom:8px}.ma-title{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#161212;display:flex;align-items:center;gap:8px}.ma-title i{font-size:18px;color:var(--fh-ma-accent, #63b345)}.ma-count{font-family:ui-monospace,Consolas,monospace;font-size:11px;font-weight:700;letter-spacing:0;color:var(--fh-ma-accent-dark, #3f7029)}.ma-filtri{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ma-sel,.ma-val{font-family:Inter,sans-serif;font-size:12.5px;padding:5px 8px;border:1px solid #c9d4cd;border-radius:5px;background:#fff;color:#161212}.ma-val{min-width:190px}.ma-btn{font-family:Inter,sans-serif;font-size:12px;font-weight:600;padding:5px 12px;border:1px solid var(--fh-ma-accent, #63b345);border-radius:5px;background:var(--fh-ma-accent, #63b345);color:#fff;cursor:pointer}.ma-btn:hover{background:var(--fh-ma-accent-dark, #3f7029);border-color:var(--fh-ma-accent-dark, #3f7029)}.ma-sel:focus-visible,.ma-val:focus-visible,.ma-btn:focus-visible,.ma-tab tbody tr:focus-visible{outline:2px solid var(--fh-ma-accent, #63b345);outline-offset:1px}.ma-body{flex:1 1 auto;min-height:0;overflow:auto}.ma-tab{width:100%;border-collapse:collapse;font-family:Inter,sans-serif;font-size:13px}.ma-tab th{position:sticky;top:0;z-index:1;background:#f1f5f3;text-align:left;font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#6b7a72;padding:6px 8px;border-bottom:1px solid #dfe5e1;white-space:nowrap}.ma-tab td{padding:7px 8px;border-bottom:1px solid #eef2ef;vertical-align:top;color:#443d3d;overflow-wrap:anywhere}.ma-tab tbody tr{cursor:pointer;transition:background .12s ease}.ma-tab tbody tr:hover{background:var(--fh-ma-accent-soft, rgba(99, 179, 69, .08))}.mono{font-family:ui-monospace,Consolas,monospace;font-size:11.5px}.c-data{width:92px;white-space:nowrap;color:#6b7a72}.c-prat{width:130px}.c-nota{width:32%;white-space:pre-line}.c-ril{width:62px;white-space:nowrap}.ma-ogg{display:block;font-weight:600;color:#161212}.ma-clip{font-size:14px;vertical-align:-2px;color:#8c8585}.ma-mit{display:block;margin-top:1px;color:#8c8585}.ma-piccolo{font-size:11.5px;color:#6b7a72}.ma-stelle{color:#161212;letter-spacing:1px}.ma-tetto{margin:8px 0 0;padding:6px 10px;border-radius:5px;background:#fdf8e8;border:1px solid #e6cf8a;color:#6b5200;font-size:11.5px}.ma-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:34px 0;text-align:center}.ma-empty-i{font-size:30px;color:var(--fh-ma-accent-faint, rgba(99, 179, 69, .45))}.ma-empty-t{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:700;color:#5c5454}.ma-empty-s{font-family:Inter,sans-serif;font-size:12px;color:#877d7d}.ma-err{color:#c00;font-size:11px;margin:6px 0 0}\n"] }]
41722
41851
  }], ctorParameters: () => [{ type: QueryService }], propDecorators: { accent: [{
41723
41852
  type: Input
41724
41853
  }], accentDark: [{
@@ -41775,6 +41904,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
41775
41904
  type: Input
41776
41905
  }], colRilevanza: [{
41777
41906
  type: Input
41907
+ }], mostraNota: [{
41908
+ type: Input
41909
+ }], colNota: [{
41910
+ type: Input
41778
41911
  }], apriMail: [{
41779
41912
  type: Output
41780
41913
  }] } });
@@ -43168,5 +43301,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
43168
43301
  * Generated bundle index. Do not edit.
43169
43302
  */
43170
43303
 
43171
- export { AppMakerService, AppService, ApprovaGridComponent, AuthHttpRequestInterceptor, AuthenticationService, BpmnEditorComponent, CheckboxEditorComponent, ComboBoxEditorComponent, CurrencyComponent, DialogBaseComponent, FHAiAssistantComponent, FHAiChatComponent, FHAiService, FHAutoCompleteComponent, FHCheckBoxComponent, FHColorPickerComponent, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHDateRangePickerComponent, FHFieldPickListComponent, FHFilterComboboxComponent, FHFormBuilderComponent, FHFormExecuterComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGridToolBarComponent, FHGuard, FHHelpButtonComponent, FHHomeDocsComponent, FHHomeLauncherComponent, FHHomeStatsComponent, FHHomeTodoComponent, FHIconPickerComponent, FHImageViewerComponent, FHListComponent, FHLogPanelComponent, FHMailArchivedComponent, FHMailPreviewComponent, FHMultiComboboxComponent, FHNotesPanelComponent, FHNumericFieldComponent, FHPickFieldComponent, FHPickUsersComponent, FHRichTextComponent, FHRoleManagerComponent, FHTableManagerComponent, FHTextAreaComponent, FHTextInputComponent, FHTimePickerComponent, FHToolBarCustomAction, FHToolbarCommandType, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FHWinAppLogsComponent, FHWinAskBigTextComponent, FHWinAskButtonsComponent, FHWinAskNumberComponent, FHWinAskRichTextComponent, FHWinAskTextComponent, FHWinAutoComplete, FHWinComboComponent, FHWinConfirmComponent, FHWinErrorComponent, FHWinGridSelection, FHWinInfoComponent, FHWinListComponent, FHWinMappaComponent, FHWinOutputComponent, FHWinPicklistComponent, FHWinSalvaAnnulla, FHWinSearchListComponent, FHWinSelectByGridComponent, FHWinShowEmail, FHWinShowEmailS3, FHWinShowImage, FHWinShowLog, FHWinShowLogDett, FHWinTimeSlider, FHWinUploadComponent, FHWinUserInfo, FHWinUserPickerComponent, FHWinWaitComponent, FHWorkflowForm, FHWorkflowHeaderBar, FHWorkflowTasksPanel, FHWorkflowView, FSInput, FSResult, FileService, GridService, LocalDBService, MonthYearPickerComponent, NumericEditorComponent, OdbcService, OfficeAutomatorService, OfficeOperation, OfficeResult, QGParam, QGResult, QParam, QResult, QueryOpenService, QueryService, RegistrationService, ReplaceLineBreaks, SafePipe, TextAreaEditorComponent, UtilityService, WkfService, YearPickerComponent, createButtonCommand, createCheckboxCommand, createSpacerCommand, createTableManagerCommand, fh_win_translate, wkfField };
43304
+ export { AppMakerService, AppService, ApprovaGridComponent, AuthHttpRequestInterceptor, AuthenticationService, BpmnEditorComponent, CheckboxEditorComponent, ComboBoxEditorComponent, CurrencyComponent, DialogBaseComponent, FHAiAssistantComponent, FHAiChatComponent, FHAiService, FHAutoCompleteComponent, FHCheckBoxComponent, FHColorPickerComponent, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHDateRangePickerComponent, FHFieldPickListComponent, FHFilterComboboxComponent, FHFormBuilderComponent, FHFormExecuterComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGridToolBarComponent, FHGuard, FHHelpButtonComponent, FHHomeDocsComponent, FHHomeLauncherComponent, FHHomeStatsComponent, FHHomeTodoComponent, FHIconPickerComponent, FHImageViewerComponent, FHListComponent, FHLogPanelComponent, FHMailArchivedComponent, FHMailPreviewComponent, FHMultiComboboxComponent, FHNotesPanelComponent, FHNumericFieldComponent, FHPickFieldComponent, FHPickUsersComponent, FHRichTextComponent, FHRoleManagerComponent, FHTableManagerComponent, FHTextAreaComponent, FHTextInputComponent, FHTimePickerComponent, FHToolBarCustomAction, FHToolbarCommandType, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FHWinAppLogsComponent, FHWinAskBigTextComponent, FHWinAskButtonsComponent, FHWinAskNumberComponent, FHWinAskRichTextComponent, FHWinAskTextComponent, FHWinAutoComplete, FHWinComboComponent, FHWinConfirmComponent, FHWinErrorComponent, FHWinGridSelection, FHWinInfoComponent, FHWinListComponent, FHWinMappaComponent, FHWinOutputComponent, FHWinPicklistComponent, FHWinSalvaAnnulla, FHWinSearchListComponent, FHWinSelectByGridComponent, FHWinShowEmail, FHWinShowEmailS3, FHWinShowImage, FHWinShowLog, FHWinShowLogDett, FHWinTimeSlider, FHWinUploadComponent, FHWinUserInfo, FHWinUserPickerComponent, FHWinWaitComponent, FHWorkflowForm, FHWorkflowHeaderBar, FHWorkflowTasksPanel, FHWorkflowView, FH_ERROR_REPORTER, FH_EVENT_ID_HEADER, FH_ROUTE_HEADER, FSInput, FSResult, FileService, GridService, LocalDBService, MonthYearPickerComponent, NumericEditorComponent, OdbcService, OfficeAutomatorService, OfficeOperation, OfficeResult, QGParam, QGResult, QParam, QResult, QueryOpenService, QueryService, RegistrationService, ReplaceLineBreaks, SafePipe, TextAreaEditorComponent, UtilityService, WkfService, YearPickerComponent, createButtonCommand, createCheckboxCommand, createSpacerCommand, createTableManagerCommand, fh_win_translate, wkfField };
43172
43305
  //# sourceMappingURL=fluxhub-fluxhub-lib.mjs.map