@esfaenza/es-table 15.2.11 → 15.2.12
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/fesm2015/esfaenza-es-table.mjs +2 -4
- package/fesm2015/esfaenza-es-table.mjs.map +1 -1
- package/fesm2020/esfaenza-es-table.mjs +2 -4
- package/fesm2020/esfaenza-es-table.mjs.map +1 -1
- package/lib/components/es-table/es_table.component.d.ts +3 -7
- package/package.json +2 -2
|
@@ -532,9 +532,7 @@ class ExportHandler {
|
|
|
532
532
|
if (!this.est.ExportFunction)
|
|
533
533
|
return;
|
|
534
534
|
else
|
|
535
|
-
this.est.ExportFunction(async (data,
|
|
536
|
-
if (cancel)
|
|
537
|
-
return;
|
|
535
|
+
this.est.ExportFunction(async (data, type) => {
|
|
538
536
|
if (data.length == 0) {
|
|
539
537
|
this.msgExts.simpleWarning(this.est.lc.loc("Cannot export an empty dataset"));
|
|
540
538
|
return;
|
|
@@ -542,7 +540,7 @@ class ExportHandler {
|
|
|
542
540
|
let drcd = this.est.DynamicRowColumnsDefinition;
|
|
543
541
|
let columnsFilter = this.est.ExportOnlyVisibleColumns ? this.est.ColumnsList.filter(t => t.visible).map(t => t.id) : null;
|
|
544
542
|
let csvHeadersOverride = drcd && drcd.length > 0 ? drcd.map(t => { return { label: t.Description, key: t.PropertyName, propKey: t.PropertyName, order: t.ColumnOrder, type: 'string' }; }) : null;
|
|
545
|
-
this.expExts.export(data, format, this.est.ExportFileName, columnsFilter, csvHeadersOverride);
|
|
543
|
+
this.expExts.export(data, format, this.est.ExportFileName, type, columnsFilter, csvHeadersOverride);
|
|
546
544
|
}, format);
|
|
547
545
|
}
|
|
548
546
|
}
|