@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.
- package/esm2020/lib/components/es-table/es_table.component.mjs +1 -1
- package/esm2020/lib/core/handlers/ExportHandler.mjs +3 -5
- package/esm2020/lib/domain/externals/appsearch/AppSearch.mjs +15 -3
- package/fesm2015/esfaenza-es-table.mjs +16 -6
- package/fesm2015/esfaenza-es-table.mjs.map +1 -1
- package/fesm2020/esfaenza-es-table.mjs +16 -6
- package/fesm2020/esfaenza-es-table.mjs.map +1 -1
- package/lib/components/es-table/es_table.component.d.ts +3 -7
- package/lib/domain/externals/appsearch/AppSearch.d.ts +7 -1
- package/package.json +2 -2
|
@@ -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
|
-
|
|
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
|
|
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.
|
|
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.
|
|
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",
|