@oliasoft-open-source/react-ui-library 3.9.12-beta-1 → 3.9.13-beta-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.
package/dist/index.js CHANGED
@@ -60290,7 +60290,7 @@ const TableScrollWrapper = ({ table: table2, children }) => {
60290
60290
  });
60291
60291
  };
60292
60292
  const Table = (props) => {
60293
- var _a, _b, _c, _d, _e2;
60293
+ var _a, _b, _c, _d, _e2, _f, _g;
60294
60294
  const { onListReorder, table: propTable } = props;
60295
60295
  const {
60296
60296
  fixedWidth,
@@ -60324,8 +60324,8 @@ const Table = (props) => {
60324
60324
  const rowActions = hasRowActions(propRows, headers);
60325
60325
  const colSpan = columnCount + (rowActions ? 1 : 0);
60326
60326
  const [rowsMetaData, setRowsMetaData] = useState([]);
60327
- 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;
60328
- const addEmptyTempRow = ((_e2 = defaultEmptyRow == null ? void 0 : defaultEmptyRow.cells) == null ? void 0 : _e2.length) && onAddRow && isLastPage;
60327
+ 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;
60328
+ const addEmptyTempRow = ((_g = defaultEmptyRow == null ? void 0 : defaultEmptyRow.cells) == null ? void 0 : _g.length) && onAddRow && isLastPage;
60329
60329
  const tempEmptyCells = addEmptyTempRow ? defaultEmptyRow.cells.map((cell2, i) => {
60330
60330
  if ((cell2 == null ? void 0 : cell2.type) === "Input") {
60331
60331
  return {