@natoora-libs/core 0.2.48-dev-doug-1 → 0.2.49-dev-doug-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.
|
@@ -6686,11 +6686,18 @@ var useStyles34 = (0, import_mui36.makeStyles)()((theme) => ({
|
|
|
6686
6686
|
borderRadius: "0 0 4px 4px",
|
|
6687
6687
|
width: "100%",
|
|
6688
6688
|
height: paginationHeight,
|
|
6689
|
+
overflow: "hidden",
|
|
6689
6690
|
"& > *": {
|
|
6690
6691
|
margin: theme.spacing(2)
|
|
6691
6692
|
},
|
|
6692
|
-
"& .
|
|
6693
|
-
|
|
6693
|
+
"& .MuiPagination-root": {
|
|
6694
|
+
minWidth: 0
|
|
6695
|
+
},
|
|
6696
|
+
"& .MuiPagination-ul": {
|
|
6697
|
+
flexWrap: "nowrap"
|
|
6698
|
+
},
|
|
6699
|
+
"& .MuiPaginationItem-root": {
|
|
6700
|
+
flexShrink: 0
|
|
6694
6701
|
}
|
|
6695
6702
|
},
|
|
6696
6703
|
fixed: {
|
|
@@ -6710,7 +6717,9 @@ var PaginationForTable = ({
|
|
|
6710
6717
|
pagination,
|
|
6711
6718
|
position = "relative",
|
|
6712
6719
|
style,
|
|
6713
|
-
updateFilters
|
|
6720
|
+
updateFilters,
|
|
6721
|
+
siblingCount = 1,
|
|
6722
|
+
boundaryCount = 1
|
|
6714
6723
|
}) => {
|
|
6715
6724
|
const { classes, cx } = useStyles34();
|
|
6716
6725
|
const handleChange = (event, value) => {
|
|
@@ -6718,7 +6727,7 @@ var PaginationForTable = ({
|
|
|
6718
6727
|
};
|
|
6719
6728
|
const isFixed = position === "fixed";
|
|
6720
6729
|
return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_material54.Paper, { children: /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
|
|
6721
|
-
|
|
6730
|
+
import_material54.Box,
|
|
6722
6731
|
{
|
|
6723
6732
|
style,
|
|
6724
6733
|
className: cx(classes.root, className, {
|
|
@@ -6729,14 +6738,16 @@ var PaginationForTable = ({
|
|
|
6729
6738
|
"Page: ",
|
|
6730
6739
|
page
|
|
6731
6740
|
] }),
|
|
6732
|
-
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
6741
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_material54.Box, { style: { overflowX: "auto", maxWidth: 400 }, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
6733
6742
|
import_material54.Pagination,
|
|
6734
6743
|
{
|
|
6735
6744
|
count: pagination.num_pages,
|
|
6736
|
-
page,
|
|
6737
|
-
onChange: handleChange
|
|
6745
|
+
page: Number(page),
|
|
6746
|
+
onChange: handleChange,
|
|
6747
|
+
siblingCount,
|
|
6748
|
+
boundaryCount
|
|
6738
6749
|
}
|
|
6739
|
-
)
|
|
6750
|
+
) })
|
|
6740
6751
|
]
|
|
6741
6752
|
}
|
|
6742
6753
|
) });
|