@theseam/ui-common 0.2.13 → 0.2.14

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.
@@ -1743,8 +1743,8 @@
1743
1743
  // NOTE: If we add an internal column that can be moved then this will need
1744
1744
  // to be changed.
1745
1745
  var internalColumns = columns
1746
- .filter(function (c) { return isInternalColumn(c); })
1747
- .map(function (column, index) { return ({ column: column, index: index }); });
1746
+ .map(function (column, index) { return ({ column: column, index: index }); })
1747
+ .filter(function (x) { return isInternalColumn(x.column); });
1748
1748
  var _loop_1 = function (c) {
1749
1749
  var currentIndex = columns.findIndex(function (x) { return getColumnProp(x) === c.columnProp; });
1750
1750
  if (currentIndex === c.index || currentIndex === -1) {
@@ -2626,12 +2626,14 @@
2626
2626
  : exporter.label + " export is not available.";
2627
2627
  this._toastr.error(msg, 'Data Export');
2628
2628
  }
2629
- var export$ = this._datatable.rows$
2630
- .pipe(operators.take(1), operators.map(function (rows) {
2629
+ var export$ = rxjs.combineLatest([
2630
+ this._datatable.rows$, this._datatable.columns$
2631
+ ]).pipe(operators.take(1), operators.map(function (_a) {
2632
+ var _b = __read(_a, 2), rows = _b[0], columns = _b[1];
2631
2633
  if (exporter.skipDataMapping) {
2632
2634
  return rows;
2633
2635
  }
2634
- return _this._mapExportData(_this._datatable.columns || [], rows);
2636
+ return _this._mapExportData(columns || [], rows);
2635
2637
  }), operators.concatMap(function (data) { return exporter.export(data); }), operators.catchError(function (err) {
2636
2638
  console.error(err);
2637
2639
  return rxjs.of(false);