@esfaenza/es-table 11.2.28 → 11.2.32
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/bundles/esfaenza-es-table.umd.js +189 -100
- package/bundles/esfaenza-es-table.umd.js.map +1 -1
- package/bundles/esfaenza-es-table.umd.min.js +1 -1
- package/bundles/esfaenza-es-table.umd.min.js.map +1 -1
- package/esfaenza-es-table.metadata.json +1 -1
- package/esm2015/lib/components/es-table/es_table.component.js +79 -83
- package/esm2015/lib/core/handlers/classes/ExportHandler.js +64 -7
- package/esm2015/lib/es-table.module.js +1 -3
- package/fesm2015/esfaenza-es-table.js +140 -90
- package/fesm2015/esfaenza-es-table.js.map +1 -1
- package/lib/components/es-table/es_table.component.d.ts +3 -3
- package/lib/core/handlers/classes/ExportHandler.d.ts +8 -2
- package/package.json +4 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { QueryList, ChangeDetectorRef, EventEmitter, OnChanges, SimpleChanges, ElementRef, TemplateRef } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
-
import { UtilityService, ExportService, MessageService, DateService } from '@esfaenza/extensions';
|
|
3
|
+
import { UtilityService, ExportService, MessageService, DateService, CsvHeaders } from '@esfaenza/extensions';
|
|
4
4
|
import { LocalizationService } from '@esfaenza/localizations';
|
|
5
5
|
import { PreferencesService } from '@esfaenza/preferences';
|
|
6
6
|
import { ContextMenuComponent } from '@esfaenza/ngx-contextmenu';
|
|
@@ -343,7 +343,7 @@ export declare class EsTableComponent implements ControlValueAccessor, OnChanges
|
|
|
343
343
|
/** Dati esportati da ngx-csv */
|
|
344
344
|
data: any[];
|
|
345
345
|
/** Header dei dati esportati da ngx-csv */
|
|
346
|
-
headers:
|
|
346
|
+
headers: CsvHeaders[];
|
|
347
347
|
/** Elemento HTML da cliccare per l'esportazione */
|
|
348
348
|
exportDownloader: ElementRef;
|
|
349
349
|
/** Placeholder di menù contestuale per quando non ci sono opzioni nel placeholder "Vero" */
|
|
@@ -440,7 +440,7 @@ export declare class EsTableComponent implements ControlValueAccessor, OnChanges
|
|
|
440
440
|
/** @ignore */
|
|
441
441
|
propagateChange: (_: any) => void;
|
|
442
442
|
/** @ignore */
|
|
443
|
-
writeValue(obj: any): void
|
|
443
|
+
writeValue(obj: any): Promise<void>;
|
|
444
444
|
/** Funzione di trackby per il body che dovrebbe evitare il 90% delle change detection */
|
|
445
445
|
bodyTrackBy: (index: number, item: any) => any;
|
|
446
446
|
/**
|
|
@@ -1,18 +1,24 @@
|
|
|
1
|
-
import { ExportService, MessageService } from "@esfaenza/extensions";
|
|
1
|
+
import { DateService, ExportService, MessageService, UtilityService } from "@esfaenza/extensions";
|
|
2
2
|
import { EsTableComponent } from "../../../components/es-table/es_table.component";
|
|
3
3
|
/** Classe contenente la gestione delle importazioni */
|
|
4
4
|
export declare class ExportHandler {
|
|
5
5
|
private est;
|
|
6
6
|
private expExts;
|
|
7
7
|
private msgExts;
|
|
8
|
+
private utiExts;
|
|
9
|
+
private dateExts;
|
|
10
|
+
/** Cache del modulo per l'esportazione Excel */
|
|
11
|
+
private ExcelJS;
|
|
8
12
|
/** @ignore Costruttore*/
|
|
9
|
-
constructor(est: EsTableComponent, expExts: ExportService, msgExts: MessageService);
|
|
13
|
+
constructor(est: EsTableComponent, expExts: ExportService, msgExts: MessageService, utiExts: UtilityService, dateExts: DateService);
|
|
10
14
|
/**
|
|
11
15
|
* Effettua l'esportazione dei dati
|
|
12
16
|
*
|
|
13
17
|
* @param {string} format Formato di esportazione. Letto solo in modalità Report della tabella
|
|
14
18
|
*/
|
|
15
19
|
tryExport(format?: string): void;
|
|
20
|
+
/** Effettua l'esportazione del file Excel basandosi sul modulo **ExcelJS**, sugli header **this.est.headers** e sui dati **this.est.data** */
|
|
21
|
+
private exportExcel;
|
|
16
22
|
/**
|
|
17
23
|
* Metodo che effettivamente genera gli header e i dati per l'esportazione con **ngx-csv**
|
|
18
24
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esfaenza/es-table",
|
|
3
|
-
"version": "11.2.
|
|
3
|
+
"version": "11.2.32",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"tslib": "^2.0.0"
|
|
6
6
|
},
|
|
@@ -10,12 +10,13 @@
|
|
|
10
10
|
"@angular/material": "~11.2.13",
|
|
11
11
|
"@esfaenza/extensions": "^11.2.19",
|
|
12
12
|
"@esfaenza/localizations": "^11.2.6",
|
|
13
|
-
"@esfaenza/ngx-dragula": "^11.2.5",
|
|
14
13
|
"@ctrl/ngx-csv": "4.0.0",
|
|
15
14
|
"@esfaenza/ngx-contextmenu": "^11.2.5",
|
|
16
15
|
"@esfaenza/preferences": "^11.2.7",
|
|
17
16
|
"ngx-toastr": "13.2.1",
|
|
18
|
-
"ngx-bootstrap": "7.0.0"
|
|
17
|
+
"ngx-bootstrap": "7.0.0",
|
|
18
|
+
"exceljs": "4.3.0",
|
|
19
|
+
"stream": "0.0.2"
|
|
19
20
|
},
|
|
20
21
|
"main": "bundles/esfaenza-es-table.umd.js",
|
|
21
22
|
"module": "fesm2015/esfaenza-es-table.js",
|