@esfaenza/es-table 12.2.26 → 12.2.27

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,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: any[];
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" */
@@ -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": "12.2.26",
3
+ "version": "12.2.27",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },
@@ -14,7 +14,9 @@
14
14
  "@esfaenza/ngx-contextmenu": "^12.2.8",
15
15
  "@esfaenza/preferences": "^12.2.9",
16
16
  "ngx-toastr": "14.2.1",
17
- "ngx-bootstrap": "7.0.0"
17
+ "ngx-bootstrap": "7.0.0",
18
+ "exceljs": "4.3.0",
19
+ "stream": "0.0.2"
18
20
  },
19
21
  "main": "bundles/esfaenza-es-table.umd.js",
20
22
  "module": "fesm2015/esfaenza-es-table.js",