material-react-table-narender 2.13.13 → 2.13.15
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.esm.js +16 -9
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +16 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/body/MRT_TableBodyCell.tsx +2 -1
- package/src/components/footer/MRT_TableFooterCell.tsx +4 -2
- package/src/components/head/MRT_TableHeadCell.tsx +2 -1
- package/src/utils/cell.utils.ts +4 -3
package/dist/index.js
CHANGED
@@ -530,12 +530,13 @@ const cellKeyboardShortcuts = ({ cell, cellElements, cellValue, containerElement
|
|
530
530
|
debugger;
|
531
531
|
const { getState, setEnableKeyboardShortcuts, } = table;
|
532
532
|
const { enableKeyboardShortcuts } = getState();
|
533
|
-
if (event.altKey
|
533
|
+
if (event.altKey) {
|
534
534
|
event.preventDefault();
|
535
535
|
setEnableKeyboardShortcuts(!enableKeyboardShortcuts);
|
536
|
-
return;
|
536
|
+
// return;
|
537
537
|
}
|
538
|
-
if (!table.options.enableKeyboardShortcuts)
|
538
|
+
// if (!table.options.enableKeyboardShortcuts) return;
|
539
|
+
if (!enableKeyboardShortcuts)
|
539
540
|
return;
|
540
541
|
if (event.isPropagationStopped())
|
541
542
|
return;
|
@@ -2260,8 +2261,10 @@ const MRT_TableBodyCell = (_a) => {
|
|
2260
2261
|
var _b, _c, _d, _e, _f;
|
2261
2262
|
var { cell, numRows, rowRef, staticColumnIndex, staticRowIndex, table } = _a, rest = __rest(_a, ["cell", "numRows", "rowRef", "staticColumnIndex", "staticRowIndex", "table"]);
|
2262
2263
|
const theme = styles.useTheme();
|
2263
|
-
const { getState, options: { columnResizeDirection, columnResizeMode, createDisplayMode, editDisplayMode, enableCellActions, enableClickToCopy, enableColumnOrdering, enableColumnPinning, enableGrouping,
|
2264
|
-
|
2264
|
+
const { getState, options: { columnResizeDirection, columnResizeMode, createDisplayMode, editDisplayMode, enableCellActions, enableClickToCopy, enableColumnOrdering, enableColumnPinning, enableGrouping,
|
2265
|
+
// enableKeyboardShortcuts,
|
2266
|
+
layoutMode, mrtTheme: { draggingBorderColor }, muiSkeletonProps, muiTableBodyCellProps, }, setHoveredColumn, } = table;
|
2267
|
+
const { enableKeyboardShortcuts, actionCell, columnSizingInfo, creatingRow, density, draggingColumn, draggingRow, editingCell, editingRow, hoveredColumn, hoveredRow, isLoading, showSkeletons, } = getState();
|
2265
2268
|
const { column, row } = cell;
|
2266
2269
|
const { columnDef } = column;
|
2267
2270
|
const { columnDefType } = columnDef;
|
@@ -2652,8 +2655,10 @@ const MRT_TableFooterCell = (_a) => {
|
|
2652
2655
|
var _b, _c, _d;
|
2653
2656
|
var { footer, staticColumnIndex, table } = _a, rest = __rest(_a, ["footer", "staticColumnIndex", "table"]);
|
2654
2657
|
const theme = styles.useTheme();
|
2655
|
-
const { getState, options: { enableColumnPinning, muiTableFooterCellProps,
|
2656
|
-
|
2658
|
+
const { getState, options: { enableColumnPinning, muiTableFooterCellProps,
|
2659
|
+
// enableKeyboardShortcuts,
|
2660
|
+
}, } = table;
|
2661
|
+
const { density, enableKeyboardShortcuts } = getState();
|
2657
2662
|
const { column } = footer;
|
2658
2663
|
const { columnDef } = column;
|
2659
2664
|
const { columnDefType } = columnDef;
|
@@ -3591,8 +3596,10 @@ const MRT_TableHeadCell = (_a) => {
|
|
3591
3596
|
var _b, _c, _d, _f, _g, _h;
|
3592
3597
|
var { columnVirtualizer, header, staticColumnIndex, table } = _a, rest = __rest(_a, ["columnVirtualizer", "header", "staticColumnIndex", "table"]);
|
3593
3598
|
const theme = styles.useTheme();
|
3594
|
-
const { getState, options: { columnFilterDisplayMode, columnResizeDirection, columnResizeMode, enableColumnActions, enableColumnDragging, enableColumnOrdering, enableColumnPinning,
|
3595
|
-
|
3599
|
+
const { getState, options: { columnFilterDisplayMode, columnResizeDirection, columnResizeMode, enableColumnActions, enableColumnDragging, enableColumnOrdering, enableColumnPinning,
|
3600
|
+
// enableKeyboardShortcuts,
|
3601
|
+
enableGrouping, enableMultiSort, layoutMode, mrtTheme: { draggingBorderColor }, muiTableHeadCellProps, }, refs: { tableHeadCellRefs }, setHoveredColumn, } = table;
|
3602
|
+
const { enableKeyboardShortcuts, columnSizingInfo, density, draggingColumn, grouping, hoveredColumn, showColumnFilters, } = getState();
|
3596
3603
|
const { column } = header;
|
3597
3604
|
const { columnDef } = column;
|
3598
3605
|
const { columnDefType } = columnDef;
|