@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.
@@ -532,9 +532,7 @@ class ExportHandler {
532
532
  if (!this.est.ExportFunction)
533
533
  return;
534
534
  else
535
- this.est.ExportFunction(async (data, cancel = false) => {
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
  }