react-table-edit 1.4.30 → 1.4.32

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
@@ -43264,7 +43264,7 @@ const TableEdit = React$5.forwardRef((props, ref) => {
43264
43264
  const [datePart, timePart] = stringData.split(' ');
43265
43265
  const [day, month, year] = datePart.split('/');
43266
43266
  const [hour, minute] = timePart.split(':');
43267
- const date = new Date(year, month - 1, day, hour, minute);
43267
+ const date = new Date(Number(year), Number(month) - 1, Number(day), Number(hour), Number(minute));
43268
43268
  if (!isNaN(date.getTime())) {
43269
43269
  if (column.onPaste) {
43270
43270
  dataRow[column.field] = column.onPaste(dataRow, date);
@@ -43281,7 +43281,7 @@ const TableEdit = React$5.forwardRef((props, ref) => {
43281
43281
  }
43282
43282
  }
43283
43283
  else if (column.type === 'numeric') {
43284
- const number = Number(stringData);
43284
+ const number = Number(stringData.replaceAll(formatSetting?.thousandSeparator ?? '.', '').replaceAll(formatSetting?.decimalSeparator ?? ',', '.'));
43285
43285
  if (!isNaN(number)) {
43286
43286
  if (column.onPaste) {
43287
43287
  dataRow[column.field] = column.onPaste(dataRow, number);
@@ -65516,7 +65516,7 @@ const HeaderTableCol = (props) => {
65516
65516
  const headerRef = React$5.useRef(null);
65517
65517
  const order = orderBy.find((item) => item.key === col.field);
65518
65518
  const [openFilter, setOpenFilter] = React$5.useState(false);
65519
- const filter = filterBy.find((item) => item.key === col.field);
65519
+ const filter = filterBy.find((item) => item.key === (col.fieldFilter ?? col.field));
65520
65520
  const handleResize = (e, { size }) => {
65521
65521
  // Update the column width here
65522
65522
  // You might need to update the state or call a callback to update the width