react-better-html 1.1.213 → 1.1.214

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
@@ -8621,28 +8621,31 @@ var TableComponent = (0, import_react26.forwardRef)(function Table({
8621
8621
  },
8622
8622
  column.type + column.label + index
8623
8623
  )) }) }),
8624
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("tbody", { children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("tr", { className: "withoutHover", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("td", { className: "noData", colSpan: readyColumns.length, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Loader_default.box, {}) }) }) : dataAfterPagination.length > 0 ? dataAfterPagination.map((item, rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_react26.Fragment, { children: [
8625
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
8626
- "tr",
8627
- {
8628
- className: isInsideTableExpandRow && onClickRow === void 0 && expandColumn === void 0 ? "withoutHover" : void 0,
8629
- style: getRowStyle?.(item, rowIndex),
8630
- onClick: () => onClickRowElement(item, rowIndex),
8631
- children: readyColumns.map((column, colIndex) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
8632
- TdStyledComponent,
8633
- {
8634
- textAlign: column.align,
8635
- onClick: (event) => {
8636
- if (column.clickStopPropagation) event.stopPropagation();
8624
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("tbody", { children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("tr", { className: "withoutHover", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("td", { className: "noData", colSpan: readyColumns.length, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Loader_default.box, {}) }) }) : dataAfterPagination.length > 0 ? dataAfterPagination.map((item, rowIndex) => {
8625
+ const realRowIndex = rowIndex + (pageSize ? (currentPage - 1) * pageSize : 0);
8626
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_react26.Fragment, { children: [
8627
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
8628
+ "tr",
8629
+ {
8630
+ className: isInsideTableExpandRow && onClickRow === void 0 && expandColumn === void 0 ? "withoutHover" : void 0,
8631
+ style: getRowStyle?.(item, realRowIndex),
8632
+ onClick: () => onClickRowElement(item, realRowIndex),
8633
+ children: readyColumns.map((column, colIndex) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
8634
+ TdStyledComponent,
8635
+ {
8636
+ textAlign: column.align,
8637
+ onClick: (event) => {
8638
+ if (column.clickStopPropagation) event.stopPropagation();
8639
+ },
8640
+ children: renderCellContent(column, item, realRowIndex)
8637
8641
  },
8638
- children: renderCellContent(column, item, rowIndex)
8639
- },
8640
- column.type + column.label + colIndex
8641
- ))
8642
- }
8643
- ),
8644
- expandedRows[rowIndex] && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("tr", { className: "withoutHover isExpandRow", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("td", { colSpan: readyColumns.length, children: renderExpandedRow(item, rowIndex) }) })
8645
- ] }, JSON.stringify(item) + rowIndex)) : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("tr", { className: "withoutHover", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("td", { className: "noData", colSpan: readyColumns.length, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text_default.unknown, { children: noDataItemsMessage }) }) }) }),
8642
+ column.type + column.label + colIndex
8643
+ ))
8644
+ }
8645
+ ),
8646
+ expandedRows[realRowIndex] && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("tr", { className: "withoutHover isExpandRow", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("td", { colSpan: readyColumns.length, children: renderExpandedRow(item, realRowIndex) }) })
8647
+ ] }, JSON.stringify(item) + realRowIndex);
8648
+ }) : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("tr", { className: "withoutHover", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("td", { className: "noData", colSpan: readyColumns.length, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text_default.unknown, { children: noDataItemsMessage }) }) }) }),
8646
8649
  withFooter && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("tfoot", { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("tr", { className: "isFooter", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("td", { colSpan: readyColumns.length, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
8647
8650
  Div_default.column,
8648
8651
  {