material-react-table 0.15.1 → 0.16.0
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/MaterialReactTable.d.ts +1 -1
- package/dist/material-react-table.cjs.development.js +5 -5
- package/dist/material-react-table.cjs.development.js.map +1 -1
- package/dist/material-react-table.cjs.production.min.js +1 -1
- package/dist/material-react-table.cjs.production.min.js.map +1 -1
- package/dist/material-react-table.esm.js +5 -5
- package/dist/material-react-table.esm.js.map +1 -1
- package/dist/table/MRT_TableRoot.d.ts +1 -0
- package/dist/utils.d.ts +3 -3
- package/package.json +7 -7
- package/src/MaterialReactTable.tsx +1 -1
- package/src/body/MRT_TableBody.tsx +3 -3
|
@@ -94,9 +94,9 @@ export declare type MRT_ColumnDef<D extends Record<string, any> = {}> = Omit<Col
|
|
|
94
94
|
columns?: MRT_ColumnDef<D>[];
|
|
95
95
|
enableClickToCopy?: boolean;
|
|
96
96
|
enableColumnActions?: boolean;
|
|
97
|
+
enableColumnFilterChangeMode?: boolean;
|
|
97
98
|
enableColumnOrdering?: boolean;
|
|
98
99
|
enableEditing?: boolean;
|
|
99
|
-
enableColumnFilterChangeMode?: boolean;
|
|
100
100
|
enabledColumnFilterOptions?: (MRT_FILTER_OPTION | string)[] | null;
|
|
101
101
|
filterFn?: MRT_FilterFn;
|
|
102
102
|
filterSelectOptions?: (string | {
|
|
@@ -5729,7 +5729,7 @@ var MRT_ToolbarBottom = function MRT_ToolbarBottom(_ref) {
|
|
|
5729
5729
|
};
|
|
5730
5730
|
|
|
5731
5731
|
var MRT_FilterTextField = function MRT_FilterTextField(_ref) {
|
|
5732
|
-
var _localization$filterB, _columnDef$enabledCol, _allowedColumnFilterO, _localization$filterM, _localization
|
|
5732
|
+
var _localization$filterB, _columnDef$enabledCol, _allowedColumnFilterO, _localization$filterM, _localization, _localization$clearFi, _columnDef$filterSele;
|
|
5733
5733
|
|
|
5734
5734
|
var header = _ref.header,
|
|
5735
5735
|
inputIndex = _ref.inputIndex,
|
|
@@ -5877,7 +5877,7 @@ var MRT_FilterTextField = function MRT_FilterTextField(_ref) {
|
|
|
5877
5877
|
helperText: allowColumnChangeMode && !inputIndex && (allowedColumnFilterOptions === undefined || ((_allowedColumnFilterO = allowedColumnFilterOptions == null ? void 0 : allowedColumnFilterOptions.length) != null ? _allowedColumnFilterO : 0) > 0) ? React__default.createElement("label", {
|
|
5878
5878
|
htmlFor: filterId
|
|
5879
5879
|
}, filterFn instanceof Function ? (_localization$filterM = localization.filterMode.replace('{filterType}', // @ts-ignore
|
|
5880
|
-
(_localization
|
|
5880
|
+
(_localization = localization["filter" + (filterFn.name.charAt(0).toUpperCase() + filterFn.name.slice(1))]) != null ? _localization : '')) != null ? _localization$filterM : '' : localization.filterMode.replace('{filterType}', // @ts-ignore
|
|
5881
5881
|
localization["filter" + (filterFn.charAt(0).toUpperCase() + filterFn.slice(1))])) : null,
|
|
5882
5882
|
FormHelperTextProps: {
|
|
5883
5883
|
sx: {
|
|
@@ -7314,7 +7314,7 @@ var rankGlobalFuzzy = function rankGlobalFuzzy(rowA, rowB) {
|
|
|
7314
7314
|
var MRT_TableBody = function MRT_TableBody(_ref) {
|
|
7315
7315
|
var instance = _ref.instance,
|
|
7316
7316
|
tableContainerRef = _ref.tableContainerRef;
|
|
7317
|
-
var
|
|
7317
|
+
var getRowModel = instance.getRowModel,
|
|
7318
7318
|
getPrePaginationRowModel = instance.getPrePaginationRowModel,
|
|
7319
7319
|
getState = instance.getState,
|
|
7320
7320
|
_instance$options = instance.options,
|
|
@@ -7351,8 +7351,8 @@ var MRT_TableBody = function MRT_TableBody(_ref) {
|
|
|
7351
7351
|
return rankedRows;
|
|
7352
7352
|
}
|
|
7353
7353
|
|
|
7354
|
-
return enablePagination ?
|
|
7355
|
-
}, [enableGlobalFilterRankedResults, enableGlobalFilterRankedResults && globalFilter || !enablePagination ? getPrePaginationRowModel().rows :
|
|
7354
|
+
return enablePagination ? getRowModel().rows : getPrePaginationRowModel().rows;
|
|
7355
|
+
}, [enableGlobalFilterRankedResults, enableGlobalFilterRankedResults && globalFilter || !enablePagination ? getPrePaginationRowModel().rows : getRowModel().rows, globalFilter]);
|
|
7356
7356
|
var rowVirtualizer = enableRowVirtualization ? useVirtual(_extends({
|
|
7357
7357
|
overscan: density === 'compact' ? 20 : 10,
|
|
7358
7358
|
size: rows.length,
|