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.js
CHANGED
|
@@ -42371,7 +42371,7 @@ const TableEdit = React$5.forwardRef((props, ref) => {
|
|
|
42371
42371
|
const [searchTerm, setSearchTerm] = React$5.useState('');
|
|
42372
42372
|
const tableElement = React$5.useRef(null);
|
|
42373
42373
|
const gridRef = React$5.useRef(null);
|
|
42374
|
-
|
|
42374
|
+
const totalCount = dataSource.length;
|
|
42375
42375
|
const pagingClient = pagingSetting?.allowPaging && (pagingSetting?.pagingClient || !(editDisable || addDisable));
|
|
42376
42376
|
const searchClient = searchSetting?.searchEnable && (searchSetting?.searchClient || !(editDisable || addDisable));
|
|
42377
42377
|
const fieldKey = columns.find((item) => item.isPrimarykey === true)?.field ?? 'id';
|
|
@@ -42724,7 +42724,7 @@ const TableEdit = React$5.forwardRef((props, ref) => {
|
|
|
42724
42724
|
} }, `col-${indexRow}-${indexCol}`) }));
|
|
42725
42725
|
case 'form':
|
|
42726
42726
|
return (jsxRuntime.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) => {
|
|
42727
|
-
row
|
|
42727
|
+
Object.assign(row, val);
|
|
42728
42728
|
handleDataChange(row, col, indexRow);
|
|
42729
42729
|
}, invalid: col.validate && col.validate(row[col.field], row), textAlign: col.textAlign, onKeyDown: (e) => {
|
|
42730
42730
|
return checkKeyDown(e, row, col, indexRow + 1, indexCol + 1);
|