@ceed/cds 1.2.8-next.2 → 1.2.8-next.3

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.cjs CHANGED
@@ -3335,21 +3335,23 @@ var BodyCell = (props) => {
3335
3335
  )
3336
3336
  );
3337
3337
  };
3338
- var BodyRow = (props) => {
3339
- const { tableId, columns, rowId, editMode, noWrap, row } = props;
3340
- return /* @__PURE__ */ import_react24.default.createElement(import_react24.default.Fragment, null, columns.map((column, i) => /* @__PURE__ */ import_react24.default.createElement(
3341
- BodyCell,
3342
- {
3343
- ...column,
3344
- tableId,
3345
- key: `${rowId}_${column.field.toString()}_${i}`,
3346
- row,
3347
- rowId,
3348
- editMode,
3349
- noWrap
3350
- }
3351
- )));
3352
- };
3338
+ var BodyRow = (0, import_react24.memo)(
3339
+ (props) => {
3340
+ const { tableId, columns, rowId, editMode, noWrap, row } = props;
3341
+ return /* @__PURE__ */ import_react24.default.createElement(import_react24.default.Fragment, null, columns.map((column, i) => /* @__PURE__ */ import_react24.default.createElement(
3342
+ BodyCell,
3343
+ {
3344
+ ...column,
3345
+ tableId,
3346
+ key: `${rowId}_${column.field.toString()}_${i}`,
3347
+ row,
3348
+ rowId,
3349
+ editMode,
3350
+ noWrap
3351
+ }
3352
+ )));
3353
+ }
3354
+ );
3353
3355
  function useDataTableRenderer({
3354
3356
  rows: _rows,
3355
3357
  columns: columnsProp,
@@ -3666,7 +3668,7 @@ function Component(props, apiRef) {
3666
3668
  getScrollElement: () => parentRef.current,
3667
3669
  estimateSize: () => 32,
3668
3670
  measureElement: (element) => element.clientHeight,
3669
- overscan: 5
3671
+ overscan: 10
3670
3672
  });
3671
3673
  const paginationModel = (0, import_react24.useMemo)(() => ({ page, pageSize }), [page, pageSize]);
3672
3674
  const totalSize = virtualizer.getTotalSize();
package/dist/index.js CHANGED
@@ -3297,21 +3297,23 @@ var BodyCell = (props) => {
3297
3297
  )
3298
3298
  );
3299
3299
  };
3300
- var BodyRow = (props) => {
3301
- const { tableId, columns, rowId, editMode, noWrap, row } = props;
3302
- return /* @__PURE__ */ React22.createElement(React22.Fragment, null, columns.map((column, i) => /* @__PURE__ */ React22.createElement(
3303
- BodyCell,
3304
- {
3305
- ...column,
3306
- tableId,
3307
- key: `${rowId}_${column.field.toString()}_${i}`,
3308
- row,
3309
- rowId,
3310
- editMode,
3311
- noWrap
3312
- }
3313
- )));
3314
- };
3300
+ var BodyRow = memo(
3301
+ (props) => {
3302
+ const { tableId, columns, rowId, editMode, noWrap, row } = props;
3303
+ return /* @__PURE__ */ React22.createElement(React22.Fragment, null, columns.map((column, i) => /* @__PURE__ */ React22.createElement(
3304
+ BodyCell,
3305
+ {
3306
+ ...column,
3307
+ tableId,
3308
+ key: `${rowId}_${column.field.toString()}_${i}`,
3309
+ row,
3310
+ rowId,
3311
+ editMode,
3312
+ noWrap
3313
+ }
3314
+ )));
3315
+ }
3316
+ );
3315
3317
  function useDataTableRenderer({
3316
3318
  rows: _rows,
3317
3319
  columns: columnsProp,
@@ -3628,7 +3630,7 @@ function Component(props, apiRef) {
3628
3630
  getScrollElement: () => parentRef.current,
3629
3631
  estimateSize: () => 32,
3630
3632
  measureElement: (element) => element.clientHeight,
3631
- overscan: 5
3633
+ overscan: 10
3632
3634
  });
3633
3635
  const paginationModel = useMemo8(() => ({ page, pageSize }), [page, pageSize]);
3634
3636
  const totalSize = virtualizer.getTotalSize();