@ballistix.digital/react-components 0.4.24 → 0.4.25
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/dist/index.esm.js +9 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -16807,9 +16807,15 @@ var handleGenerateSheets = function (tables) {
|
|
|
16807
16807
|
});
|
|
16808
16808
|
var excelRows = rows.map(function (row) {
|
|
16809
16809
|
var result = {};
|
|
16810
|
-
Object.keys(row)
|
|
16811
|
-
|
|
16812
|
-
var
|
|
16810
|
+
Object.keys(row)
|
|
16811
|
+
.filter(function (key) {
|
|
16812
|
+
var _a;
|
|
16813
|
+
var cell = columns === null || columns === void 0 ? void 0 : columns.find(function (column) { return column.id === key; });
|
|
16814
|
+
return typeof ((_a = cell.columnDef) === null || _a === void 0 ? void 0 : _a.header) === 'string';
|
|
16815
|
+
})
|
|
16816
|
+
.forEach(function (key) {
|
|
16817
|
+
var _a, _b;
|
|
16818
|
+
var cell = (_b = (_a = columns === null || columns === void 0 ? void 0 : columns.find(function (column) { return column.id === key; })) === null || _a === void 0 ? void 0 : _a.columnDef.meta) === null || _b === void 0 ? void 0 : _b.excel(row[key]);
|
|
16813
16819
|
result[key] = cell;
|
|
16814
16820
|
});
|
|
16815
16821
|
return result;
|