@esfaenza/es-table 15.2.11 → 15.2.13

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,4 +1,4 @@
1
- import { QueryList, ChangeDetectorRef, EventEmitter, OnChanges, SimpleChanges, ElementRef, TemplateRef } from '@angular/core';
1
+ import { QueryList, ChangeDetectorRef, EventEmitter, OnChanges, SimpleChanges, ElementRef, TemplateRef, Type } from '@angular/core';
2
2
  import { ControlValueAccessor, NgControl } from '@angular/forms';
3
3
  import { UtilityService, ExportService, MessageService, DateService, ClipboardService } from '@esfaenza/extensions';
4
4
  import { LocalizationService } from '@esfaenza/localizations';
@@ -243,12 +243,8 @@ export declare class EsTableComponent implements ControlValueAccessor, OnChanges
243
243
  ExportFileName: string;
244
244
  /** Classe (HTML) di default della tabella */
245
245
  TableClass: any;
246
- /**
247
- * Funzione da utilizzare in esportazione. Nel formato "Report" avrà un unico parametro "Formato" e nessun valore di ritorno.
248
- *
249
- * Nel formato "View" ha come parametro una callback con i dati completi da esportare (dato che di default la ricerca è paginata)
250
- */
251
- ExportFunction: any;
246
+ /** Funzione da utilizzare in esportazione. Ha come parametro una callback con i dati completi da esportare (dato che di default la ricerca è paginata) */
247
+ ExportFunction: (callback: (data: any[], type: Type<any>) => void, format: "CSV" | "XLSX") => void;
252
248
  /** Indica di esportare solo le colonne attualmente visibili della view */
253
249
  ExportOnlyVisibleColumns: boolean;
254
250
  /** @deprecated Indica la presenza di raggruppamenti a livello di header */
@@ -83,6 +83,12 @@ export declare class AppSearch<T> {
83
83
  * @param {AppSearch<any>} aps AppSearch da resettare
84
84
  */
85
85
  static reset(aps: AppSearch<any>): void;
86
+ /**
87
+ * Partendo da un appsearch con filtri impostati permette di crearne la stessa versione solo con la ricerca impostata a "tutto"
88
+ *
89
+ * @param {AppSearch<any>} aps AppSearch da cui partire
90
+ */
91
+ static toSelectAll(aps: AppSearch<any>): any;
86
92
  /**
87
93
  * Permette di ottenere un nuovo riferimento all'AppSearch passata come parametro.
88
94
  * Internamente utilizza il JSON.parse(JSON.stringify(X)) con la differenza che prima stacca il riferimento agli items per evitare di
@@ -90,5 +96,5 @@ export declare class AppSearch<T> {
90
96
  *
91
97
  * @param {AppSearch<any>} aps AppSearch di cui estrarre un nuovo riferimento equivalente
92
98
  */
93
- static newref(aps: AppSearch<any>): any;
99
+ static newref(aps: AppSearch<any>, retainItems?: boolean): any;
94
100
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esfaenza/es-table",
3
- "version": "15.2.11",
3
+ "version": "15.2.13",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },
@@ -9,7 +9,7 @@
9
9
  "@angular/core": "^15.2.9",
10
10
  "@angular/material": "^15.2.9",
11
11
  "@esfaenza/localizations": "^15.2.8",
12
- "@esfaenza/extensions": "^15.2.10",
12
+ "@esfaenza/extensions": "^15.2.13",
13
13
  "@esfaenza/forms-and-validations": "^15.2.7",
14
14
  "@esfaenza/ngx-contextmenu": "^15.2.0",
15
15
  "@esfaenza/preferences": "^15.2.0",