drf-react-by-schema 0.6.0 → 0.6.1

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.
@@ -605,7 +605,7 @@ const DataGridBySchemaEditable = (0, react_1.forwardRef)((_a, ref) => {
605
605
  }
606
606
  }, rowCount: paginationModel && typeof rowCount !== 'undefined'
607
607
  ? rowCount
608
- : undefined, pageSize: paginationModel ? paginationModel.pageSize : 100, rowsPerPageOptions: [2], filterMode: paginationModel ? 'server' : 'client', onFilterModelChange: paginationModel
608
+ : undefined, pageSize: paginationModel ? paginationModel.pageSize : 100, rowsPerPageOptions: paginationModel ? [paginationModel.pageSize] : [5, 10, 25, 50, 100], filterMode: paginationModel ? 'server' : 'client', onFilterModelChange: paginationModel
609
609
  ? (newFilter) => {
610
610
  if (setPaginationModel && paginationModel) {
611
611
  setPaginationModel(Object.assign(Object.assign({}, paginationModel), { filter: newFilter }));
@@ -54,7 +54,7 @@ const GenericModelList = ({ columnFields, hiddenFields = [], minWidthFields, ind
54
54
  const [data, setData] = (0, react_1.useState)(false);
55
55
  const [visibleRows, setVisibleRows] = (0, react_1.useState)([]);
56
56
  const [hideFooterPagination, setHideFooterPagination] = (0, react_1.useState)(false);
57
- const [paginationModel, setPaginationModel] = (0, react_1.useState)(paginationMode === 'server' ? { page: 0, pageSize: 2 } : undefined);
57
+ const [paginationModel, setPaginationModel] = (0, react_1.useState)(paginationMode === 'server' ? { page: 0, pageSize: 100 } : undefined);
58
58
  const finalCustomColumnOperations = (column) => {
59
59
  if (minWidthFields) {
60
60
  if (Object.prototype.hasOwnProperty.call(minWidthFields, column.field)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drf-react-by-schema",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Components and Tools for building a React App having Django Rest Framework (DRF) as server",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",