@mamrp/components 1.7.5 → 1.7.6
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.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -253,8 +253,9 @@ type TapleProps = {
|
|
|
253
253
|
selectedRows?: GridRowSelectionModel;
|
|
254
254
|
setSelectedRows?: Dispatch<SetStateAction<GridRowSelectionModel>>;
|
|
255
255
|
isRowSelectable?: (params: GridRowParams) => boolean;
|
|
256
|
+
disablePageSizeChange?: boolean;
|
|
256
257
|
};
|
|
257
|
-
declare const Table: ({ pagingmode, totalRows, rows, columns, paginationModel, setPaginationModel, loading, rowId, _tools, _CustomFooter, rowInPage, highlightedRowId, evenRowBgColor, sortFieldMapping, setsortQuery, sortQuery, fontSize, checkboxSelection, selectedRows, setSelectedRows, isRowSelectable, ...rest }: TapleProps) => React__default.JSX.Element;
|
|
258
|
+
declare const Table: ({ pagingmode, totalRows, rows, columns, paginationModel, setPaginationModel, loading, rowId, _tools, _CustomFooter, rowInPage, highlightedRowId, evenRowBgColor, sortFieldMapping, setsortQuery, sortQuery, fontSize, checkboxSelection, selectedRows, setSelectedRows, isRowSelectable, disablePageSizeChange, ...rest }: TapleProps) => React__default.JSX.Element;
|
|
258
259
|
|
|
259
260
|
type FormInputNumberProps<T extends FieldValues> = {
|
|
260
261
|
control: Control<T>;
|
package/dist/index.d.ts
CHANGED
|
@@ -253,8 +253,9 @@ type TapleProps = {
|
|
|
253
253
|
selectedRows?: GridRowSelectionModel;
|
|
254
254
|
setSelectedRows?: Dispatch<SetStateAction<GridRowSelectionModel>>;
|
|
255
255
|
isRowSelectable?: (params: GridRowParams) => boolean;
|
|
256
|
+
disablePageSizeChange?: boolean;
|
|
256
257
|
};
|
|
257
|
-
declare const Table: ({ pagingmode, totalRows, rows, columns, paginationModel, setPaginationModel, loading, rowId, _tools, _CustomFooter, rowInPage, highlightedRowId, evenRowBgColor, sortFieldMapping, setsortQuery, sortQuery, fontSize, checkboxSelection, selectedRows, setSelectedRows, isRowSelectable, ...rest }: TapleProps) => React__default.JSX.Element;
|
|
258
|
+
declare const Table: ({ pagingmode, totalRows, rows, columns, paginationModel, setPaginationModel, loading, rowId, _tools, _CustomFooter, rowInPage, highlightedRowId, evenRowBgColor, sortFieldMapping, setsortQuery, sortQuery, fontSize, checkboxSelection, selectedRows, setSelectedRows, isRowSelectable, disablePageSizeChange, ...rest }: TapleProps) => React__default.JSX.Element;
|
|
258
259
|
|
|
259
260
|
type FormInputNumberProps<T extends FieldValues> = {
|
|
260
261
|
control: Control<T>;
|
package/dist/index.js
CHANGED
|
@@ -3619,6 +3619,7 @@ var Table = ({
|
|
|
3619
3619
|
selectedRows,
|
|
3620
3620
|
setSelectedRows,
|
|
3621
3621
|
isRowSelectable,
|
|
3622
|
+
disablePageSizeChange = false,
|
|
3622
3623
|
...rest
|
|
3623
3624
|
}) => {
|
|
3624
3625
|
const [sortModel, setSortModel] = import_react19.default.useState([]);
|
|
@@ -3736,7 +3737,7 @@ var Table = ({
|
|
|
3736
3737
|
autoHeight: true,
|
|
3737
3738
|
...shouldShowPagination && { rowCount: totalRows },
|
|
3738
3739
|
...shouldShowPagination && {
|
|
3739
|
-
pageSizeOptions: [5, 10, 25, 50, 75, 100]
|
|
3740
|
+
pageSizeOptions: disablePageSizeChange ? [paginationModel?.pageSize || 5] : [5, 10, 25, 50, 75, 100]
|
|
3740
3741
|
},
|
|
3741
3742
|
...shouldShowPagination && {
|
|
3742
3743
|
slotProps: {
|
|
@@ -3748,6 +3749,7 @@ var Table = ({
|
|
|
3748
3749
|
disableColumnMenu: true,
|
|
3749
3750
|
disableColumnFilter: true,
|
|
3750
3751
|
loading,
|
|
3752
|
+
...disablePageSizeChange && { hideFooterRowsPerPage: true },
|
|
3751
3753
|
localeText: {
|
|
3752
3754
|
noRowsLabel: "\u0647\u06CC\u0686 \u062F\u0627\u062F\u0647\u200C\u0627\u06CC \u06CC\u0627\u0641\u062A \u0646\u0634\u062F!",
|
|
3753
3755
|
noResultsOverlayLabel: "\u0647\u06CC\u0686 \u062F\u0627\u062F\u0647\u200C\u0627\u06CC \u06CC\u0627\u0641\u062A \u0646\u0634\u062F!",
|