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 +24 -21
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -21
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -8533,28 +8533,31 @@ var TableComponent = forwardRef15(function Table({
|
|
|
8533
8533
|
},
|
|
8534
8534
|
column.type + column.label + index
|
|
8535
8535
|
)) }) }),
|
|
8536
|
-
/* @__PURE__ */ jsx23("tbody", { children: isLoading ? /* @__PURE__ */ jsx23("tr", { className: "withoutHover", children: /* @__PURE__ */ jsx23("td", { className: "noData", colSpan: readyColumns.length, children: /* @__PURE__ */ jsx23(Loader_default.box, {}) }) }) : dataAfterPagination.length > 0 ? dataAfterPagination.map((item, rowIndex) =>
|
|
8537
|
-
|
|
8538
|
-
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
|
-
|
|
8548
|
-
|
|
8536
|
+
/* @__PURE__ */ jsx23("tbody", { children: isLoading ? /* @__PURE__ */ jsx23("tr", { className: "withoutHover", children: /* @__PURE__ */ jsx23("td", { className: "noData", colSpan: readyColumns.length, children: /* @__PURE__ */ jsx23(Loader_default.box, {}) }) }) : dataAfterPagination.length > 0 ? dataAfterPagination.map((item, rowIndex) => {
|
|
8537
|
+
const realRowIndex = rowIndex + (pageSize ? (currentPage - 1) * pageSize : 0);
|
|
8538
|
+
return /* @__PURE__ */ jsxs19(Fragment6, { children: [
|
|
8539
|
+
/* @__PURE__ */ jsx23(
|
|
8540
|
+
"tr",
|
|
8541
|
+
{
|
|
8542
|
+
className: isInsideTableExpandRow && onClickRow === void 0 && expandColumn === void 0 ? "withoutHover" : void 0,
|
|
8543
|
+
style: getRowStyle?.(item, realRowIndex),
|
|
8544
|
+
onClick: () => onClickRowElement(item, realRowIndex),
|
|
8545
|
+
children: readyColumns.map((column, colIndex) => /* @__PURE__ */ jsx23(
|
|
8546
|
+
TdStyledComponent,
|
|
8547
|
+
{
|
|
8548
|
+
textAlign: column.align,
|
|
8549
|
+
onClick: (event) => {
|
|
8550
|
+
if (column.clickStopPropagation) event.stopPropagation();
|
|
8551
|
+
},
|
|
8552
|
+
children: renderCellContent(column, item, realRowIndex)
|
|
8549
8553
|
},
|
|
8550
|
-
|
|
8551
|
-
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
}
|
|
8555
|
-
)
|
|
8556
|
-
|
|
8557
|
-
] }, JSON.stringify(item) + rowIndex)) : /* @__PURE__ */ jsx23("tr", { className: "withoutHover", children: /* @__PURE__ */ jsx23("td", { className: "noData", colSpan: readyColumns.length, children: /* @__PURE__ */ jsx23(Text_default.unknown, { children: noDataItemsMessage }) }) }) }),
|
|
8554
|
+
column.type + column.label + colIndex
|
|
8555
|
+
))
|
|
8556
|
+
}
|
|
8557
|
+
),
|
|
8558
|
+
expandedRows[realRowIndex] && /* @__PURE__ */ jsx23("tr", { className: "withoutHover isExpandRow", children: /* @__PURE__ */ jsx23("td", { colSpan: readyColumns.length, children: renderExpandedRow(item, realRowIndex) }) })
|
|
8559
|
+
] }, JSON.stringify(item) + realRowIndex);
|
|
8560
|
+
}) : /* @__PURE__ */ jsx23("tr", { className: "withoutHover", children: /* @__PURE__ */ jsx23("td", { className: "noData", colSpan: readyColumns.length, children: /* @__PURE__ */ jsx23(Text_default.unknown, { children: noDataItemsMessage }) }) }) }),
|
|
8558
8561
|
withFooter && /* @__PURE__ */ jsx23("tfoot", { children: /* @__PURE__ */ jsx23("tr", { className: "isFooter", children: /* @__PURE__ */ jsx23("td", { colSpan: readyColumns.length, children: /* @__PURE__ */ jsxs19(
|
|
8559
8562
|
Div_default.column,
|
|
8560
8563
|
{
|