material-react-table 2.13.0 → 2.13.1
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.d.ts +73 -66
- package/dist/index.esm.js +7 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +35 -35
- package/src/components/body/MRT_TableBody.tsx +1 -1
- package/src/components/body/MRT_TableBodyCell.tsx +2 -0
- package/src/components/body/MRT_TableBodyCellValue.tsx +4 -0
- package/src/components/body/MRT_TableBodyRow.tsx +1 -1
- package/src/components/body/MRT_TableDetailPanel.tsx +1 -1
- package/src/components/inputs/MRT_EditCellTextField.tsx +1 -0
- package/src/hooks/useMRT_ColumnVirtualizer.ts +1 -1
- package/src/hooks/useMRT_RowVirtualizer.ts +1 -1
- package/src/types.ts +35 -29
- package/locales/am/index.d.ts +0 -3
- package/locales/am/index.esm.d.ts +0 -3
- package/locales/am/index.esm.js +0 -93
- package/locales/am/index.js +0 -97
- package/locales/am/package.json +0 -6
package/dist/index.js
CHANGED
@@ -1858,6 +1858,8 @@ const MRT_TableBodyCellValue = ({ cell, rowRef, staticColumnIndex, staticRowInde
|
|
1858
1858
|
column,
|
1859
1859
|
row,
|
1860
1860
|
table,
|
1861
|
+
staticColumnIndex,
|
1862
|
+
staticRowIndex,
|
1861
1863
|
})
|
1862
1864
|
: row.getIsGrouped() && !cell.getIsGrouped()
|
1863
1865
|
? null
|
@@ -1867,6 +1869,8 @@ const MRT_TableBodyCellValue = ({ cell, rowRef, staticColumnIndex, staticRowInde
|
|
1867
1869
|
column,
|
1868
1870
|
row,
|
1869
1871
|
table,
|
1872
|
+
staticColumnIndex,
|
1873
|
+
staticRowIndex,
|
1870
1874
|
})
|
1871
1875
|
: undefined;
|
1872
1876
|
const isGroupedValue = renderedCellValue !== undefined;
|
@@ -2022,9 +2026,7 @@ const MRT_EditCellTextField = (_a) => {
|
|
2022
2026
|
: {})), textFieldProps.InputProps), { sx: (theme) => {
|
2023
2027
|
var _a;
|
2024
2028
|
return (Object.assign({ mb: 0 }, parseFromValuesOrFunc((_a = textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.InputProps) === null || _a === void 0 ? void 0 : _a.sx, theme)));
|
2025
|
-
} }), SelectProps: {
|
2026
|
-
MenuProps: { disableScrollLock: true },
|
2027
|
-
}, inputProps: Object.assign({ autoComplete: 'new-password' }, textFieldProps.inputProps), onBlur: handleBlur, onChange: handleChange, onClick: (e) => {
|
2029
|
+
} }), SelectProps: Object.assign({ MenuProps: { disableScrollLock: true } }, textFieldProps.SelectProps), inputProps: Object.assign({ autoComplete: 'new-password' }, textFieldProps.inputProps), onBlur: handleBlur, onChange: handleChange, onClick: (e) => {
|
2028
2030
|
var _a;
|
2029
2031
|
e.stopPropagation();
|
2030
2032
|
(_a = textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.onClick) === null || _a === void 0 ? void 0 : _a.call(textFieldProps, e);
|
@@ -2133,6 +2135,8 @@ const MRT_TableBodyCell = (_a) => {
|
|
2133
2135
|
const cellValueProps = {
|
2134
2136
|
cell,
|
2135
2137
|
table,
|
2138
|
+
staticColumnIndex,
|
2139
|
+
staticRowIndex,
|
2136
2140
|
};
|
2137
2141
|
const handleDoubleClick = (event) => {
|
2138
2142
|
var _a;
|