@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.
- package/bundles/theseam-ui-common-datatable.umd.js +7 -5
- package/bundles/theseam-ui-common-datatable.umd.js.map +1 -1
- package/esm2015/datatable/datatable-export-button/datatable-export-button.component.js +6 -5
- package/esm2015/datatable/models/columns-alterations/order.columns-alteration.js +3 -3
- package/fesm2015/theseam-ui-common-datatable.js +6 -5
- package/fesm2015/theseam-ui-common-datatable.js.map +1 -1
- package/package.json +1 -1
- package/styles/vendor/ngx-datatable/_ngx-datatable.scss +54 -52
|
@@ -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
|
-
.
|
|
1747
|
-
.
|
|
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$ =
|
|
2630
|
-
.
|
|
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(
|
|
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);
|