@oliasoft-open-source/react-ui-library 3.9.11 → 3.9.12

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.js CHANGED
@@ -58721,7 +58721,7 @@ const TableScrollWrapper = ({ table: table2, children }) => {
58721
58721
  });
58722
58722
  };
58723
58723
  const Table = (props) => {
58724
- var _a, _b, _c, _d, _e2;
58724
+ var _a, _b, _c, _d, _e2, _f, _g;
58725
58725
  const { onListReorder, table: propTable } = props;
58726
58726
  const {
58727
58727
  fixedWidth,
@@ -58755,8 +58755,8 @@ const Table = (props) => {
58755
58755
  const rowActions = hasRowActions(propRows, headers);
58756
58756
  const colSpan = columnCount + (rowActions ? 1 : 0);
58757
58757
  const [rowsMetaData, setRowsMetaData] = useState([]);
58758
- const isLastPage = footer2 ? ((_a = footer2 == null ? void 0 : footer2.pagination) == null ? void 0 : _a.selectedPage) >= ((_b = footer2 == null ? void 0 : footer2.pagination) == null ? void 0 : _b.rowCount) / ((_d = (_c = footer2 == null ? void 0 : footer2.pagination) == null ? void 0 : _c.rowsPerPage) == null ? void 0 : _d.value) : true;
58759
- const addEmptyTempRow = ((_e2 = defaultEmptyRow == null ? void 0 : defaultEmptyRow.cells) == null ? void 0 : _e2.length) && onAddRow && isLastPage;
58758
+ const isLastPage = footer2 ? ((_b = (_a = footer2 == null ? void 0 : footer2.pagination) == null ? void 0 : _a.rowsPerPage) == null ? void 0 : _b.value) === 0 || ((_c = footer2 == null ? void 0 : footer2.pagination) == null ? void 0 : _c.selectedPage) >= ((_d = footer2 == null ? void 0 : footer2.pagination) == null ? void 0 : _d.rowCount) / ((_f = (_e2 = footer2 == null ? void 0 : footer2.pagination) == null ? void 0 : _e2.rowsPerPage) == null ? void 0 : _f.value) : true;
58759
+ const addEmptyTempRow = ((_g = defaultEmptyRow == null ? void 0 : defaultEmptyRow.cells) == null ? void 0 : _g.length) && onAddRow && isLastPage;
58760
58760
  const tempEmptyCells = addEmptyTempRow ? defaultEmptyRow.cells.map((cell2, i) => {
58761
58761
  if ((cell2 == null ? void 0 : cell2.type) === "Input") {
58762
58762
  return {