react-table-edit 1.4.5 → 1.4.6
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -42343,7 +42343,7 @@ const TableEdit = forwardRef((props, ref) => {
|
|
|
42343
42343
|
const [searchTerm, setSearchTerm] = useState('');
|
|
42344
42344
|
const tableElement = useRef(null);
|
|
42345
42345
|
const gridRef = useRef(null);
|
|
42346
|
-
|
|
42346
|
+
const totalCount = dataSource.length;
|
|
42347
42347
|
const pagingClient = pagingSetting?.allowPaging && (pagingSetting?.pagingClient || !(editDisable || addDisable));
|
|
42348
42348
|
const searchClient = searchSetting?.searchEnable && (searchSetting?.searchClient || !(editDisable || addDisable));
|
|
42349
42349
|
const fieldKey = columns.find((item) => item.isPrimarykey === true)?.field ?? 'id';
|
|
@@ -42696,7 +42696,7 @@ const TableEdit = forwardRef((props, ref) => {
|
|
|
42696
42696
|
} }, `col-${indexRow}-${indexCol}`) }));
|
|
42697
42697
|
case 'form':
|
|
42698
42698
|
return (jsx(EditForm, { id: `${idTable}-col${indexCol + 1}-row${indexRow + 1}`, ...col.formSettings, field: col.field, displayValue: col.formSettings?.displayValue ? col.formSettings?.displayValue(row) : '', placeholder: col.placeholder ? t(col.placeholder) : '', rowData: row, indexRow: indexRow, onChange: (val) => {
|
|
42699
|
-
row
|
|
42699
|
+
Object.assign(row, val);
|
|
42700
42700
|
handleDataChange(row, col, indexRow);
|
|
42701
42701
|
}, invalid: col.validate && col.validate(row[col.field], row), textAlign: col.textAlign, onKeyDown: (e) => {
|
|
42702
42702
|
return checkKeyDown(e, row, col, indexRow + 1, indexCol + 1);
|