react-table-edit 0.4.1 → 0.4.2
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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1529,7 +1529,7 @@ var TableEdit = (0, import_react12.forwardRef)((props, ref) => {
|
|
|
1529
1529
|
const gridRef = (0, import_react12.useRef)();
|
|
1530
1530
|
const lag = window.localStorage.getItem("i18nextLng");
|
|
1531
1531
|
const lang = lag ? lag : "vi";
|
|
1532
|
-
const pagingClient = pagingSetting?.allowPaging && !(editDisable || addDisable);
|
|
1532
|
+
const pagingClient = pagingSetting?.allowPaging && (pagingSetting?.pagingClient || !(editDisable || addDisable));
|
|
1533
1533
|
const searchClient = searchSetting?.searchEnable && !(editDisable || addDisable);
|
|
1534
1534
|
let totalCount = dataSource.length;
|
|
1535
1535
|
const fieldKey = columns.find((item) => item.isPrimarykey === true)?.field ?? "id";
|
|
@@ -2898,7 +2898,7 @@ var TableEdit = (0, import_react12.forwardRef)((props, ref) => {
|
|
|
2898
2898
|
return flagDisplay && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
2899
2899
|
"tr",
|
|
2900
2900
|
{
|
|
2901
|
-
className: (0, import_classnames10.default)("r-row", { "last-row": indexRow === (pagingClient ? totalCount % (pagingSetting?.pageSize ?? 0) : totalCount - 1) }, { "fisrt-row": indexRow === 0 }),
|
|
2901
|
+
className: (0, import_classnames10.default)("r-row", { "last-row": indexRow === (pagingClient ? totalCount % (pagingSetting?.pageSize ?? 0) : totalCount - 1) }, { "fisrt-row": pagingClient ? indexRow % (pagingSetting?.pageSize ?? 0) === 0 : 0 }),
|
|
2902
2902
|
children: contentColumns.map((col, indexCol) => {
|
|
2903
2903
|
return renderContentCol(col, row, indexRow, indexCol, isSelected);
|
|
2904
2904
|
})
|
package/dist/index.mjs
CHANGED
|
@@ -1488,7 +1488,7 @@ var TableEdit = forwardRef2((props, ref) => {
|
|
|
1488
1488
|
const gridRef = useRef2();
|
|
1489
1489
|
const lag = window.localStorage.getItem("i18nextLng");
|
|
1490
1490
|
const lang = lag ? lag : "vi";
|
|
1491
|
-
const pagingClient = pagingSetting?.allowPaging && !(editDisable || addDisable);
|
|
1491
|
+
const pagingClient = pagingSetting?.allowPaging && (pagingSetting?.pagingClient || !(editDisable || addDisable));
|
|
1492
1492
|
const searchClient = searchSetting?.searchEnable && !(editDisable || addDisable);
|
|
1493
1493
|
let totalCount = dataSource.length;
|
|
1494
1494
|
const fieldKey = columns.find((item) => item.isPrimarykey === true)?.field ?? "id";
|
|
@@ -2857,7 +2857,7 @@ var TableEdit = forwardRef2((props, ref) => {
|
|
|
2857
2857
|
return flagDisplay && /* @__PURE__ */ jsx12(
|
|
2858
2858
|
"tr",
|
|
2859
2859
|
{
|
|
2860
|
-
className: classnames6("r-row", { "last-row": indexRow === (pagingClient ? totalCount % (pagingSetting?.pageSize ?? 0) : totalCount - 1) }, { "fisrt-row": indexRow === 0 }),
|
|
2860
|
+
className: classnames6("r-row", { "last-row": indexRow === (pagingClient ? totalCount % (pagingSetting?.pageSize ?? 0) : totalCount - 1) }, { "fisrt-row": pagingClient ? indexRow % (pagingSetting?.pageSize ?? 0) === 0 : 0 }),
|
|
2861
2861
|
children: contentColumns.map((col, indexCol) => {
|
|
2862
2862
|
return renderContentCol(col, row, indexRow, indexCol, isSelected);
|
|
2863
2863
|
})
|