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
|
@@ -1977,7 +1977,7 @@ var MRT_ToolbarBottom = function MRT_ToolbarBottom(_ref) {
|
|
|
1977
1977
|
};
|
|
1978
1978
|
|
|
1979
1979
|
var MRT_FilterTextField = function MRT_FilterTextField(_ref) {
|
|
1980
|
-
var _localization$filterB, _columnDef$enabledCol, _allowedColumnFilterO, _localization$filterM, _localization
|
|
1980
|
+
var _localization$filterB, _columnDef$enabledCol, _allowedColumnFilterO, _localization$filterM, _localization, _localization$clearFi, _columnDef$filterSele;
|
|
1981
1981
|
|
|
1982
1982
|
var header = _ref.header,
|
|
1983
1983
|
inputIndex = _ref.inputIndex,
|
|
@@ -2125,7 +2125,7 @@ var MRT_FilterTextField = function MRT_FilterTextField(_ref) {
|
|
|
2125
2125
|
helperText: allowColumnChangeMode && !inputIndex && (allowedColumnFilterOptions === undefined || ((_allowedColumnFilterO = allowedColumnFilterOptions == null ? void 0 : allowedColumnFilterOptions.length) != null ? _allowedColumnFilterO : 0) > 0) ? React.createElement("label", {
|
|
2126
2126
|
htmlFor: filterId
|
|
2127
2127
|
}, filterFn instanceof Function ? (_localization$filterM = localization.filterMode.replace('{filterType}', // @ts-ignore
|
|
2128
|
-
(_localization
|
|
2128
|
+
(_localization = localization["filter" + (filterFn.name.charAt(0).toUpperCase() + filterFn.name.slice(1))]) != null ? _localization : '')) != null ? _localization$filterM : '' : localization.filterMode.replace('{filterType}', // @ts-ignore
|
|
2129
2129
|
localization["filter" + (filterFn.charAt(0).toUpperCase() + filterFn.slice(1))])) : null,
|
|
2130
2130
|
FormHelperTextProps: {
|
|
2131
2131
|
sx: {
|
|
@@ -3070,7 +3070,7 @@ var rankGlobalFuzzy = function rankGlobalFuzzy(rowA, rowB) {
|
|
|
3070
3070
|
var MRT_TableBody = function MRT_TableBody(_ref) {
|
|
3071
3071
|
var instance = _ref.instance,
|
|
3072
3072
|
tableContainerRef = _ref.tableContainerRef;
|
|
3073
|
-
var
|
|
3073
|
+
var getRowModel = instance.getRowModel,
|
|
3074
3074
|
getPrePaginationRowModel = instance.getPrePaginationRowModel,
|
|
3075
3075
|
getState = instance.getState,
|
|
3076
3076
|
_instance$options = instance.options,
|
|
@@ -3107,8 +3107,8 @@ var MRT_TableBody = function MRT_TableBody(_ref) {
|
|
|
3107
3107
|
return rankedRows;
|
|
3108
3108
|
}
|
|
3109
3109
|
|
|
3110
|
-
return enablePagination ?
|
|
3111
|
-
}, [enableGlobalFilterRankedResults, enableGlobalFilterRankedResults && globalFilter || !enablePagination ? getPrePaginationRowModel().rows :
|
|
3110
|
+
return enablePagination ? getRowModel().rows : getPrePaginationRowModel().rows;
|
|
3111
|
+
}, [enableGlobalFilterRankedResults, enableGlobalFilterRankedResults && globalFilter || !enablePagination ? getPrePaginationRowModel().rows : getRowModel().rows, globalFilter]);
|
|
3112
3112
|
var rowVirtualizer = enableRowVirtualization ? useVirtual(_extends({
|
|
3113
3113
|
overscan: density === 'compact' ? 20 : 10,
|
|
3114
3114
|
size: rows.length,
|