material-react-table-narender 2.13.24 → 2.13.27

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.esm.js CHANGED
@@ -436,7 +436,7 @@ const openEditingCell = ({ cell, table, }) => {
436
436
  };
437
437
  const cellKeyboardShortcuts = ({ cell, cellElements, cellValue, containerElement, event, header, parentElement, table, }) => {
438
438
  var _a, _b, _c, _d, _e, _f, _g, _h;
439
- debugger;
439
+ //debugger;
440
440
  const { getState, setEnableKeyboardShortcuts, } = table;
441
441
  const { enableKeyboardShortcuts } = getState();
442
442
  if (event.altKey && event.key.toLocaleLowerCase() === 'n') {
@@ -532,7 +532,7 @@ const cellKeyboardShortcuts = ({ cell, cellElements, cellValue, containerElement
532
532
  header.column.toggleSorting();
533
533
  }
534
534
  else if ("Enter" === event.key) {
535
- debugger;
535
+ //debugger;
536
536
  event.preventDefault();
537
537
  const input = currentCell.querySelector('input');
538
538
  const select = currentCell.querySelector('select');
@@ -573,7 +573,7 @@ const cellKeyboardShortcuts = ({ cell, cellElements, cellValue, containerElement
573
573
  ].includes(event.key)) {
574
574
  event.preventDefault();
575
575
  // if (['ArrowDown'].includes(event.key)) {
576
- // debugger; // This will pause execution for debugging purposes
576
+ // //debugger; // This will pause execution for debugging purposes
577
577
  // // Select the input element within the MUI Autocomplete component
578
578
  // const autocomplete = currentCell.querySelector('.MuiAutocomplete-root input[type="text"]');
579
579
  // // Check if the current cell is an MUI Autocomplete
@@ -2332,7 +2332,7 @@ const MRT_TableBodyCell = (_a) => {
2332
2332
  const handleKeyDown = (event) => {
2333
2333
  var _a;
2334
2334
  (_a = tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.onKeyDown) === null || _a === void 0 ? void 0 : _a.call(tableCellProps, event);
2335
- debugger;
2335
+ //debugger;
2336
2336
  cellKeyboardShortcuts({
2337
2337
  cell,
2338
2338
  cellValue: cell.getValue(),
@@ -3128,7 +3128,19 @@ const MRT_FilterTextField = (_a) => {
3128
3128
  });
3129
3129
  }
3130
3130
  else {
3131
- column.setFilterValue(newValue !== null && newValue !== void 0 ? newValue : undefined);
3131
+ if (textFieldProps.type === "number") {
3132
+ // column.setFilterValue(newValue === '' ? undefined : newValue);
3133
+ debugger;
3134
+ if (newValue === 0) {
3135
+ column.setFilterValue("0");
3136
+ }
3137
+ else {
3138
+ column.setFilterValue(newValue);
3139
+ }
3140
+ }
3141
+ else {
3142
+ column.setFilterValue(newValue !== null && newValue !== void 0 ? newValue : undefined);
3143
+ }
3132
3144
  }
3133
3145
  }, isTextboxFilter ? (manualFiltering ? 400 : 200) : 1), []);
3134
3146
  const handleChange = (newValue) => {
@@ -4439,7 +4451,7 @@ const MRT_TablePaper = (_a) => {
4439
4451
  const isTableInstanceProp = (props) => props.table !== undefined;
4440
4452
  const MaterialReactTable = (props) => {
4441
4453
  let table;
4442
- debugger;
4454
+ //debugger;
4443
4455
  if (isTableInstanceProp(props)) {
4444
4456
  table = props.table;
4445
4457
  }