@symply.io/basic-components 1.7.8 → 1.7.9-beta.2
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.
@@ -237,7 +237,7 @@ var VirtualDataTable = function (props, ref) {
|
|
237
237
|
var left = pinnedLeftCols
|
238
238
|
.slice(0, index)
|
239
239
|
.reduce(function (w, t) { return w + (t.width || 0); }, 0);
|
240
|
-
return (_jsx(TableCell, __assign({ variant: "
|
240
|
+
return (_jsx(TableCell, __assign({ variant: "body", align: align, sx: {
|
241
241
|
position: "sticky",
|
242
242
|
left: left,
|
243
243
|
zIndex: 1,
|
@@ -261,7 +261,7 @@ var VirtualDataTable = function (props, ref) {
|
|
261
261
|
} }, { children: cloneElement(Body, { column: column, row: row, rows: rows, rowIndex: rowIndex, aux: aux }) }), accessor));
|
262
262
|
}), normalCols.map(function (column) {
|
263
263
|
var align = column.align, width = column.width, Body = column.Body, accessor = column.accessor;
|
264
|
-
return (_jsx(TableCell, __assign({ variant: "
|
264
|
+
return (_jsx(TableCell, __assign({ variant: "body", align: align, sx: {
|
265
265
|
width: width,
|
266
266
|
backgroundColor: (onRowClick && rowDataIndex === rowIndex
|
267
267
|
? hover
|
@@ -272,7 +272,7 @@ var VirtualDataTable = function (props, ref) {
|
|
272
272
|
var right = pinnedRightCols
|
273
273
|
.slice(0, pinnedRightCols.length - 1 - index)
|
274
274
|
.reduce(function (w, t) { return w + (t.width || 0); }, 0);
|
275
|
-
return (_jsx(TableCell, __assign({ variant: "
|
275
|
+
return (_jsx(TableCell, __assign({ variant: "body", align: align, sx: {
|
276
276
|
position: "sticky",
|
277
277
|
right: right,
|
278
278
|
zIndex: 1,
|
@@ -307,7 +307,7 @@ var VirtualDataTable = function (props, ref) {
|
|
307
307
|
handleCustomizeRowBgColor,
|
308
308
|
]);
|
309
309
|
var VirtuosoTableComponents = useMemo(function () { return ({
|
310
|
-
EmptyPlaceholder: function () { return (_jsx(TableRow, { children: _jsx(TableCell, __assign({ colSpan: columns.length }, { children: _jsx(Typography, __assign({ align: "center", variant: "body1", fontSize: 14, fontWeight: 600 }, { children: noDataText })) })) })); },
|
310
|
+
EmptyPlaceholder: function () { return (_jsx(TableBody, { children: _jsx(TableRow, { children: _jsx(TableCell, __assign({ colSpan: columns.length }, { children: _jsx(Typography, __assign({ align: "center", variant: "body1", fontSize: 14, fontWeight: 600 }, { children: noDataText })) })) }) })); },
|
311
311
|
Scroller: forwardRef(function (props, ref) { return (_jsx(TableContainer, __assign({}, props, { ref: ref, sx: {
|
312
312
|
maxHeight: "inherit",
|
313
313
|
borderWidth: "thin",
|