@fluxhub/fluxhub-lib 19.0.238 → 19.0.239
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.
|
@@ -38582,9 +38582,16 @@ class FHMailArchivedComponent {
|
|
|
38582
38582
|
get _a() { return this.accent; }
|
|
38583
38583
|
get _ad() { return this.accentDark; }
|
|
38584
38584
|
// ---- Dati ----
|
|
38585
|
-
/** Query
|
|
38585
|
+
/** Query di partenza. Deve gia contenere ORDER BY e LIMIT. */
|
|
38586
38586
|
sql = "SELECT_MAIL_ARCH_TUTTE";
|
|
38587
|
-
/**
|
|
38587
|
+
/**
|
|
38588
|
+
* @VAL1 della query di partenza: e il *contesto*, non il filtro dell'utente.
|
|
38589
|
+
* Serve quando il componente vive dentro una scheda gia circoscritta — per
|
|
38590
|
+
* esempio dentro l'anagrafica di un cliente, dove passa l'id di quel cliente.
|
|
38591
|
+
* Lasciarlo vuoto se la query di partenza non ha parametri.
|
|
38592
|
+
*/
|
|
38593
|
+
valoreBase = "";
|
|
38594
|
+
/** Valore digitato dall'utente, passato come @VAL1 alla query del filtro attivo. */
|
|
38588
38595
|
valore = "";
|
|
38589
38596
|
/**
|
|
38590
38597
|
* Filtri offerti dal selettore. Lasciandolo vuoto il componente e una tabella
|
|
@@ -38639,8 +38646,11 @@ class FHMailArchivedComponent {
|
|
|
38639
38646
|
}
|
|
38640
38647
|
else {
|
|
38641
38648
|
p.sql = this.sql;
|
|
38642
|
-
|
|
38643
|
-
|
|
38649
|
+
// il contesto si passa solo se c'e: una query senza parametri non deve
|
|
38650
|
+
// ricevere un @VAL1 che non sa dove mettere
|
|
38651
|
+
const contesto = (this.valoreBase ?? "").trim();
|
|
38652
|
+
p.types = contesto ? ["string"] : [];
|
|
38653
|
+
p.values = contesto ? [contesto] : [];
|
|
38644
38654
|
}
|
|
38645
38655
|
this.errorMsg = "";
|
|
38646
38656
|
this._dataService.doQuery(p).subscribe({
|
|
@@ -38671,7 +38681,7 @@ class FHMailArchivedComponent {
|
|
|
38671
38681
|
return "★".repeat(v) + "☆".repeat(5 - v);
|
|
38672
38682
|
}
|
|
38673
38683
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHMailArchivedComponent, deps: [{ token: QueryService }], target: i0.ɵɵFactoryTarget.Component });
|
|
38674
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: FHMailArchivedComponent, isStandalone: true, selector: "FHMailArchived", inputs: { accent: "accent", accentDark: "accentDark", sql: "sql", 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: `
|
|
38684
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", 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: `
|
|
38675
38685
|
<div class="ma-panel">
|
|
38676
38686
|
<div class="ma-head">
|
|
38677
38687
|
<div class="ma-title">
|
|
@@ -38834,6 +38844,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
38834
38844
|
args: ["style.--fh-ma-accent-dark"]
|
|
38835
38845
|
}], sql: [{
|
|
38836
38846
|
type: Input
|
|
38847
|
+
}], valoreBase: [{
|
|
38848
|
+
type: Input
|
|
38837
38849
|
}], valore: [{
|
|
38838
38850
|
type: Input
|
|
38839
38851
|
}], filtri: [{
|