material-react-table 0.14.5 → 0.15.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.
@@ -1,8 +1,8 @@
1
1
  import React, { useMemo, forwardRef, useState, useCallback, Fragment, useLayoutEffect, useEffect } from 'react';
2
2
  import { ArrowRight, Cancel, CheckBox, ClearAll, Close, DensityLarge, DensityMedium, DensitySmall, DragHandle, DynamicFeed, Edit, ExpandLess, ExpandMore, FilterAlt, FilterAltOff, FilterList, FilterListOff, FullscreenExit, Fullscreen, KeyboardDoubleArrowDown, MoreHoriz, MoreVert, PushPin, RestartAlt, Save, Search, SearchOff, Sort, ViewColumn, VisibilityOff } from '@mui/icons-material';
3
- import { createTable, getCoreRowModel, getExpandedRowModel, getFacetedRowModel, getFilteredRowModel, getGroupedRowModel, getPaginationRowModel, getSortedRowModel, useTableInstance } from '@tanstack/react-table';
3
+ import { sortingFns, createTable, filterFns, getCoreRowModel, getExpandedRowModel, getFacetedRowModel, getFilteredRowModel, getGroupedRowModel, getPaginationRowModel, getSortedRowModel, useTableInstance } from '@tanstack/react-table';
4
4
  import { Tooltip, IconButton, Menu, MenuItem, Box, FormControlLabel, Switch, Button, Divider, ListItemIcon, Checkbox, debounce, Collapse, TextField, InputAdornment, TablePagination, Chip, Alert, LinearProgress, useMediaQuery, Toolbar, lighten, alpha, Grow, TableSortLabel, TableCell, TableRow, TableHead, darken, Skeleton, TableBody, TableFooter, Table, TableContainer, Paper, Dialog } from '@mui/material';
5
- import { rankItem, rankings } from '@tanstack/match-sorter-utils';
5
+ import { rankItem, rankings, compareItems } from '@tanstack/match-sorter-utils';
6
6
  import { useDrop, useDrag, DndProvider } from 'react-dnd';
7
7
  import { HTML5Backend } from 'react-dnd-html5-backend';
8
8
  import { useVirtual } from 'react-virtual';
@@ -168,7 +168,7 @@ var MRT_ExpandAllButton = function MRT_ExpandAllButton(_ref) {
168
168
  enterDelay: 1000,
169
169
  enterNextDelay: 1000,
170
170
  title: localization.expandAll
171
- }, React.createElement(IconButton, Object.assign({
171
+ }, React.createElement("span", null, React.createElement(IconButton, Object.assign({
172
172
  "aria-label": localization.expandAll,
173
173
  disabled: !getCanSomeRowsExpand() && !renderDetailPanel,
174
174
  onClick: function onClick() {
@@ -184,7 +184,7 @@ var MRT_ExpandAllButton = function MRT_ExpandAllButton(_ref) {
184
184
  transform: "rotate(" + (getIsAllRowsExpanded() ? -180 : getIsSomeRowsExpanded() ? -90 : 0) + "deg)",
185
185
  transition: 'transform 0.2s'
186
186
  }
187
- })));
187
+ }))));
188
188
  };
189
189
 
190
190
  var MRT_ExpandButton = function MRT_ExpandButton(_ref) {
@@ -220,7 +220,7 @@ var MRT_ExpandButton = function MRT_ExpandButton(_ref) {
220
220
  enterDelay: 1000,
221
221
  enterNextDelay: 1000,
222
222
  title: localization.expand
223
- }, React.createElement(IconButton, Object.assign({
223
+ }, React.createElement("span", null, React.createElement(IconButton, Object.assign({
224
224
  "aria-label": localization.expand,
225
225
  disabled: !row.getCanExpand() && !renderDetailPanel,
226
226
  onClick: handleToggleExpand
@@ -234,7 +234,7 @@ var MRT_ExpandButton = function MRT_ExpandButton(_ref) {
234
234
  transform: "rotate(" + (!row.getCanExpand() && !renderDetailPanel ? -90 : row.getIsExpanded() ? -180 : 0) + "deg)",
235
235
  transition: 'transform 0.2s'
236
236
  }
237
- })));
237
+ }))));
238
238
  };
239
239
 
240
240
  var fuzzy = function fuzzy(row, columnId, filterValue, addMeta) {
@@ -329,7 +329,7 @@ notEmpty.autoRemove = function (val) {
329
329
  return !val;
330
330
  };
331
331
 
332
- var defaultFilterFNs = {
332
+ var MRT_FilterFns = {
333
333
  between: between,
334
334
  contains: contains,
335
335
  empty: empty,
@@ -616,7 +616,7 @@ var createDataColumn = function createDataColumn(table, column, currentFilterFns
616
616
  return (// @ts-ignore
617
617
  table.createDataColumn(column.id, _extends({
618
618
  filterFn: currentFilterFns[column.id] instanceof Function ? currentFilterFns[column.id] : // @ts-ignore
619
- defaultFilterFNs[currentFilterFns[column.id]]
619
+ MRT_FilterFns[currentFilterFns[column.id]]
620
620
  }, column))
621
621
  );
622
622
  };
@@ -1539,19 +1539,22 @@ var MRT_ToggleGlobalFilterButton = function MRT_ToggleGlobalFilterButton(_ref) {
1539
1539
  }, rest), showGlobalFilter ? React.createElement(SearchOffIcon, null) : React.createElement(SearchIcon, null)));
1540
1540
  };
1541
1541
 
1542
- var MRT_SearchTextField = function MRT_SearchTextField(_ref) {
1542
+ var MRT_GlobalFilterTextField = function MRT_GlobalFilterTextField(_ref) {
1543
+ var _localization$clearSe;
1544
+
1543
1545
  var instance = _ref.instance;
1544
1546
  var getState = instance.getState,
1545
1547
  setGlobalFilter = instance.setGlobalFilter,
1546
1548
  _instance$options = instance.options,
1549
+ enableGlobalFilterChangeMode = _instance$options.enableGlobalFilterChangeMode,
1547
1550
  _instance$options$ico = _instance$options.icons,
1548
1551
  SearchIcon = _instance$options$ico.SearchIcon,
1549
1552
  CloseIcon = _instance$options$ico.CloseIcon,
1550
- tableId = _instance$options.tableId,
1551
1553
  localization = _instance$options.localization,
1552
1554
  muiSearchTextFieldProps = _instance$options.muiSearchTextFieldProps,
1553
1555
  onGlobalFilterValueChanged = _instance$options.onGlobalFilterValueChanged,
1554
- onGlobalFilterValueChangedDebounced = _instance$options.onGlobalFilterValueChangedDebounced;
1556
+ onGlobalFilterValueChangedDebounced = _instance$options.onGlobalFilterValueChangedDebounced,
1557
+ tableId = _instance$options.tableId;
1555
1558
 
1556
1559
  var _getState = getState(),
1557
1560
  globalFilter = _getState.globalFilter,
@@ -1606,7 +1609,7 @@ var MRT_SearchTextField = function MRT_SearchTextField(_ref) {
1606
1609
  value: searchValue != null ? searchValue : '',
1607
1610
  variant: "standard",
1608
1611
  InputProps: {
1609
- startAdornment: React.createElement(InputAdornment, {
1612
+ startAdornment: enableGlobalFilterChangeMode ? React.createElement(InputAdornment, {
1610
1613
  position: "start"
1611
1614
  }, React.createElement(Tooltip, {
1612
1615
  arrow: true,
@@ -1619,16 +1622,18 @@ var MRT_SearchTextField = function MRT_SearchTextField(_ref) {
1619
1622
  height: '1.75rem',
1620
1623
  width: '1.75rem'
1621
1624
  }
1622
- }, React.createElement(SearchIcon, null)))),
1625
+ }, React.createElement(SearchIcon, null)))) : React.createElement(SearchIcon, null),
1623
1626
  endAdornment: React.createElement(InputAdornment, {
1624
1627
  position: "end"
1625
- }, React.createElement(IconButton, {
1628
+ }, React.createElement(Tooltip, {
1629
+ arrow: true,
1630
+ title: (_localization$clearSe = localization.clearSearch) != null ? _localization$clearSe : ''
1631
+ }, React.createElement("span", null, React.createElement(IconButton, {
1626
1632
  "aria-label": localization.clearSearch,
1627
- disabled: (searchValue == null ? void 0 : searchValue.length) === 0,
1633
+ disabled: !(searchValue != null && searchValue.length),
1628
1634
  onClick: handleClear,
1629
- size: "small",
1630
- title: localization.clearSearch
1631
- }, React.createElement(CloseIcon, null)))
1635
+ size: "small"
1636
+ }, React.createElement(CloseIcon, null)))))
1632
1637
  }
1633
1638
  }, textFieldProps)), React.createElement(MRT_FilterOptionMenu, {
1634
1639
  anchorEl: anchorEl,
@@ -1663,7 +1668,7 @@ var MRT_ToolbarInternalButtons = function MRT_ToolbarInternalButtons(_ref) {
1663
1668
  MRT_ToggleFiltersButton: MRT_ToggleFiltersButton,
1664
1669
  MRT_ToggleGlobalFilterButton: MRT_ToggleGlobalFilterButton,
1665
1670
  instance: instance
1666
- })) != null ? _renderToolbarInterna : React.createElement(React.Fragment, null, enableGlobalFilter && positionGlobalFilter === 'right' && React.createElement(MRT_SearchTextField, {
1671
+ })) != null ? _renderToolbarInterna : React.createElement(React.Fragment, null, enableGlobalFilter && positionGlobalFilter === 'right' && React.createElement(MRT_GlobalFilterTextField, {
1667
1672
  instance: instance
1668
1673
  }), enableFilters && enableGlobalFilter && React.createElement(MRT_ToggleGlobalFilterButton, {
1669
1674
  instance: instance
@@ -1889,13 +1894,13 @@ var MRT_ToolbarTop = function MRT_ToolbarTop(_ref2) {
1889
1894
  top: 0,
1890
1895
  width: '100%'
1891
1896
  }
1892
- }, enableGlobalFilter && positionGlobalFilter === 'left' && React.createElement(MRT_SearchTextField, {
1897
+ }, enableGlobalFilter && positionGlobalFilter === 'left' && React.createElement(MRT_GlobalFilterTextField, {
1893
1898
  instance: instance
1894
1899
  }), (_renderToolbarTopCust = renderToolbarTopCustomActions == null ? void 0 : renderToolbarTopCustomActions({
1895
1900
  instance: instance
1896
1901
  })) != null ? _renderToolbarTopCust : React.createElement("span", null), enableToolbarInternalActions ? React.createElement(MRT_ToolbarInternalButtons, {
1897
1902
  instance: instance
1898
- }) : enableGlobalFilter && positionGlobalFilter === 'right' && React.createElement(MRT_SearchTextField, {
1903
+ }) : enableGlobalFilter && positionGlobalFilter === 'right' && React.createElement(MRT_GlobalFilterTextField, {
1899
1904
  instance: instance
1900
1905
  })), enablePagination && ['top', 'both'].includes(positionPagination != null ? positionPagination : '') && React.createElement(MRT_TablePagination, {
1901
1906
  instance: instance,
@@ -1972,13 +1977,14 @@ var MRT_ToolbarBottom = function MRT_ToolbarBottom(_ref) {
1972
1977
  };
1973
1978
 
1974
1979
  var MRT_FilterTextField = function MRT_FilterTextField(_ref) {
1975
- var _localization$filterB, _columnDef$enabledCol, _allowedColumnFilterO, _localization$filterM, _localization$, _allowedColumnFilterO2, _localization$clearFi, _columnDef$filterSele;
1980
+ var _localization$filterB, _columnDef$enabledCol, _allowedColumnFilterO, _localization$filterM, _localization$, _localization$clearFi, _columnDef$filterSele;
1976
1981
 
1977
1982
  var header = _ref.header,
1978
1983
  inputIndex = _ref.inputIndex,
1979
1984
  instance = _ref.instance;
1980
1985
  var getState = instance.getState,
1981
1986
  _instance$options = instance.options,
1987
+ enableColumnFilterChangeMode = _instance$options.enableColumnFilterChangeMode,
1982
1988
  enabledColumnFilterOptions = _instance$options.enabledColumnFilterOptions,
1983
1989
  _instance$options$ico = _instance$options.icons,
1984
1990
  FilterListIcon = _instance$options$ico.FilterListIcon,
@@ -2104,6 +2110,7 @@ var MRT_FilterTextField = function MRT_FilterTextField(_ref) {
2104
2110
  localization["filter" + (filterFn.charAt(0).toUpperCase() + filterFn.slice(1))] : '';
2105
2111
  var filterPlaceholder = inputIndex === undefined ? (_localization$filterB = localization.filterByColumn) == null ? void 0 : _localization$filterB.replace('{column}', String(columnDef.header)) : inputIndex === 0 ? localization.min : inputIndex === 1 ? localization.max : '';
2106
2112
  var allowedColumnFilterOptions = (_columnDef$enabledCol = columnDef == null ? void 0 : columnDef.enabledColumnFilterOptions) != null ? _columnDef$enabledCol : enabledColumnFilterOptions;
2113
+ var allowColumnChangeMode = enableColumnFilterChangeMode && columnDef.enableColumnFilterChangeMode !== false;
2107
2114
  return React.createElement(React.Fragment, null, React.createElement(TextField, Object.assign({
2108
2115
  fullWidth: true,
2109
2116
  id: filterId,
@@ -2115,7 +2122,7 @@ var MRT_FilterTextField = function MRT_FilterTextField(_ref) {
2115
2122
  },
2116
2123
  title: filterPlaceholder
2117
2124
  },
2118
- helperText: !inputIndex && (allowedColumnFilterOptions === undefined || ((_allowedColumnFilterO = allowedColumnFilterOptions == null ? void 0 : allowedColumnFilterOptions.length) != null ? _allowedColumnFilterO : 0) > 0) ? React.createElement("label", {
2125
+ helperText: allowColumnChangeMode && !inputIndex && (allowedColumnFilterOptions === undefined || ((_allowedColumnFilterO = allowedColumnFilterOptions == null ? void 0 : allowedColumnFilterOptions.length) != null ? _allowedColumnFilterO : 0) > 0) ? React.createElement("label", {
2119
2126
  htmlFor: filterId
2120
2127
  }, filterFn instanceof Function ? (_localization$filterM = localization.filterMode.replace('{filterType}', // @ts-ignore
2121
2128
  (_localization$ = localization["filter" + (filterFn.name.charAt(0).toUpperCase() + filterFn.name.slice(1))]) != null ? _localization$ : '')) != null ? _localization$filterM : '' : localization.filterMode.replace('{filterType}', // @ts-ignore
@@ -2127,7 +2134,6 @@ var MRT_FilterTextField = function MRT_FilterTextField(_ref) {
2127
2134
  whiteSpace: 'nowrap'
2128
2135
  }
2129
2136
  },
2130
- label: isSelectFilter && !filterValue ? filterPlaceholder : undefined,
2131
2137
  margin: "none",
2132
2138
  placeholder: filterChipLabel || isSelectFilter ? undefined : filterPlaceholder,
2133
2139
  onChange: handleChange,
@@ -2138,7 +2144,7 @@ var MRT_FilterTextField = function MRT_FilterTextField(_ref) {
2138
2144
  value: filterValue != null ? filterValue : '',
2139
2145
  variant: "standard",
2140
2146
  InputProps: {
2141
- startAdornment: !isSelectFilter && !inputIndex && (allowedColumnFilterOptions === undefined || ((_allowedColumnFilterO2 = allowedColumnFilterOptions == null ? void 0 : allowedColumnFilterOptions.length) != null ? _allowedColumnFilterO2 : 0) > 0) && React.createElement(InputAdornment, {
2147
+ startAdornment: allowColumnChangeMode && !isSelectFilter && !inputIndex && (allowedColumnFilterOptions === undefined || !!(allowedColumnFilterOptions != null && allowedColumnFilterOptions.length)) ? React.createElement(InputAdornment, {
2142
2148
  position: "start"
2143
2149
  }, React.createElement(Tooltip, {
2144
2150
  arrow: true,
@@ -2154,7 +2160,7 @@ var MRT_FilterTextField = function MRT_FilterTextField(_ref) {
2154
2160
  }, React.createElement(FilterListIcon, null)))), filterChipLabel && React.createElement(Chip, {
2155
2161
  onDelete: handleClearFilterChip,
2156
2162
  label: filterChipLabel
2157
- })),
2163
+ })) : React.createElement(FilterListIcon, null),
2158
2164
  endAdornment: !filterChipLabel && React.createElement(InputAdornment, {
2159
2165
  position: "end"
2160
2166
  }, React.createElement(Tooltip, {
@@ -2179,7 +2185,6 @@ var MRT_FilterTextField = function MRT_FilterTextField(_ref) {
2179
2185
  p: 0,
2180
2186
  minWidth: !filterChipLabel ? '8rem' : 'auto',
2181
2187
  width: 'calc(100% + 0.5rem)',
2182
- mt: isSelectFilter && !filterValue ? '-1rem' : undefined,
2183
2188
  '& .MuiSelect-icon': {
2184
2189
  mr: '1.5rem'
2185
2190
  }
@@ -3040,6 +3045,28 @@ var MRT_TableBodyRow = function MRT_TableBodyRow(_ref) {
3040
3045
  }));
3041
3046
  };
3042
3047
 
3048
+ var fuzzy$1 = function fuzzy(rowA, rowB, columnId) {
3049
+ var dir = 0;
3050
+
3051
+ if (rowA.columnFiltersMeta[columnId]) {
3052
+ dir = compareItems(rowA.columnFiltersMeta[columnId], rowB.columnFiltersMeta[columnId]);
3053
+ } // Provide a fallback for when the item ranks are equal
3054
+
3055
+
3056
+ return dir === 0 ? sortingFns.alphanumeric(rowA, rowB, columnId) : dir;
3057
+ };
3058
+
3059
+ var MRT_SortingFns = {
3060
+ fuzzy: fuzzy$1
3061
+ };
3062
+ var rankGlobalFuzzy = function rankGlobalFuzzy(rowA, rowB) {
3063
+ return Math.max.apply(Math, Object.values(rowB.columnFiltersMeta).map(function (v) {
3064
+ return v.rank;
3065
+ })) - Math.max.apply(Math, Object.values(rowA.columnFiltersMeta).map(function (v) {
3066
+ return v.rank;
3067
+ }));
3068
+ };
3069
+
3043
3070
  var MRT_TableBody = function MRT_TableBody(_ref) {
3044
3071
  var instance = _ref.instance,
3045
3072
  tableContainerRef = _ref.tableContainerRef;
@@ -3047,20 +3074,43 @@ var MRT_TableBody = function MRT_TableBody(_ref) {
3047
3074
  getPrePaginationRowModel = instance.getPrePaginationRowModel,
3048
3075
  getState = instance.getState,
3049
3076
  _instance$options = instance.options,
3077
+ enableGlobalFilterRankedResults = _instance$options.enableGlobalFilterRankedResults,
3050
3078
  enablePagination = _instance$options.enablePagination,
3051
3079
  enableRowVirtualization = _instance$options.enableRowVirtualization,
3052
3080
  muiTableBodyProps = _instance$options.muiTableBodyProps,
3053
3081
  virtualizerProps = _instance$options.virtualizerProps;
3054
3082
 
3055
3083
  var _getState = getState(),
3056
- density = _getState.density;
3084
+ density = _getState.density,
3085
+ globalFilter = _getState.globalFilter,
3086
+ pagination = _getState.pagination,
3087
+ sorting = _getState.sorting;
3057
3088
 
3058
3089
  var tableBodyProps = muiTableBodyProps instanceof Function ? muiTableBodyProps({
3059
3090
  instance: instance
3060
3091
  }) : muiTableBodyProps;
3061
- var rows = enablePagination ? getPaginationRowModel().rows : getPrePaginationRowModel().rows;
3092
+
3093
+ var getIsSomeColumnsSorted = function getIsSomeColumnsSorted() {
3094
+ return Object.values(sorting).some(Boolean);
3095
+ };
3096
+
3097
+ var rows = useMemo(function () {
3098
+ if (enableGlobalFilterRankedResults && globalFilter && !getIsSomeColumnsSorted()) {
3099
+ var rankedRows = getPrePaginationRowModel().rows.sort(function (a, b) {
3100
+ return rankGlobalFuzzy(a, b);
3101
+ });
3102
+
3103
+ if (enablePagination) {
3104
+ return rankedRows.slice(0, pagination.pageSize);
3105
+ }
3106
+
3107
+ return rankedRows;
3108
+ }
3109
+
3110
+ return enablePagination ? getPaginationRowModel().rows : getPrePaginationRowModel().rows;
3111
+ }, [enableGlobalFilterRankedResults, enableGlobalFilterRankedResults && globalFilter || !enablePagination ? getPrePaginationRowModel().rows : getPaginationRowModel().rows, globalFilter]);
3062
3112
  var rowVirtualizer = enableRowVirtualization ? useVirtual(_extends({
3063
- overscan: density === 'compact' ? 15 : 5,
3113
+ overscan: density === 'compact' ? 20 : 10,
3064
3114
  size: rows.length,
3065
3115
  parentRef: tableContainerRef
3066
3116
  }, virtualizerProps)) : {};
@@ -3389,8 +3439,7 @@ var MRT_TableRoot = function MRT_TableRoot(props) {
3389
3439
  var table = useMemo(function () {
3390
3440
  return (// @ts-ignore
3391
3441
  createTable().setOptions({
3392
- //@ts-ignore
3393
- filterFns: defaultFilterFNs,
3442
+ filterFns: _extends({}, filterFns, MRT_FilterFns, props.filterFns),
3394
3443
  getCoreRowModel: getCoreRowModel(),
3395
3444
  getExpandedRowModel: getExpandedRowModel(),
3396
3445
  getFacetedRowModel: getFacetedRowModel(),
@@ -3398,10 +3447,7 @@ var MRT_TableRoot = function MRT_TableRoot(props) {
3398
3447
  getGroupedRowModel: getGroupedRowModel(),
3399
3448
  getPaginationRowModel: getPaginationRowModel(),
3400
3449
  getSortedRowModel: getSortedRowModel(),
3401
- getSubRows: function getSubRows(row) {
3402
- return row == null ? void 0 : row.subRows;
3403
- },
3404
- tableId: tableId
3450
+ sortingFns: _extends({}, sortingFns, MRT_SortingFns, props.sortingFns)
3405
3451
  })
3406
3452
  );
3407
3453
  }, []);
@@ -3498,6 +3544,9 @@ var MRT_TableRoot = function MRT_TableRoot(props) {
3498
3544
  //@ts-ignore
3499
3545
  columns: columns,
3500
3546
  data: data,
3547
+ getSubRows: function getSubRows(row) {
3548
+ return row == null ? void 0 : row.subRows;
3549
+ },
3501
3550
  //@ts-ignore
3502
3551
  globalFilterFn: currentGlobalFilterFn,
3503
3552
  initialState: initialState,
@@ -3511,7 +3560,8 @@ var MRT_TableRoot = function MRT_TableRoot(props) {
3511
3560
  isFullScreen: isFullScreen,
3512
3561
  showFilters: showFilters,
3513
3562
  showGlobalFilter: showGlobalFilter
3514
- }, props.state)
3563
+ }, props.state),
3564
+ tableId: tableId
3515
3565
  })), {
3516
3566
  setCurrentEditingCell: (_props$onCurrentEditi = props.onCurrentEditingCellChange) != null ? _props$onCurrentEditi : setCurrentEditingCell,
3517
3567
  setCurrentEditingRow: (_props$onCurrentEditi2 = props.onCurrentEditingRowChange) != null ? _props$onCurrentEditi2 : setCurrentEditingRow,
@@ -3563,7 +3613,7 @@ var MRT_TableRoot = function MRT_TableRoot(props) {
3563
3613
  }));
3564
3614
  };
3565
3615
 
3566
- var _excluded$5 = ["autoResetExpanded", "columnResizeMode", "defaultColumn", "editingMode", "enableColumnActions", "enableColumnFilters", "enableColumnOrdering", "enableColumnResizing", "enableDensityToggle", "enableExpandAll", "enableFilters", "enableFullScreenToggle", "enableGlobalFilter", "enableGrouping", "enableHiding", "enableMultiRowSelection", "enablePagination", "enablePinning", "enableRowSelection", "enableSelectAll", "enableSorting", "enableStickyHeader", "enableTableFooter", "enableTableHead", "enableToolbarBottom", "enableToolbarInternalActions", "enableToolbarTop", "icons", "localization", "persistentStateMode", "positionActionsColumn", "positionGlobalFilter", "positionPagination", "positionToolbarAlertBanner", "rowNumberMode", "selectAllMode"];
3616
+ var _excluded$5 = ["autoResetExpanded", "columnResizeMode", "defaultColumn", "editingMode", "enableColumnActions", "enableColumnFilterChangeMode", "enableColumnFilters", "enableColumnOrdering", "enableColumnResizing", "enableDensityToggle", "enableExpandAll", "enableFilters", "enableFullScreenToggle", "enableGlobalFilter", "enableGlobalFilterChangeMode", "enableGlobalFilterRankedResults", "enableGrouping", "enableHiding", "enableMultiRowSelection", "enableMultiSort", "enablePagination", "enablePinning", "enableRowSelection", "enableSelectAll", "enableSorting", "enableStickyHeader", "enableTableFooter", "enableTableHead", "enableToolbarBottom", "enableToolbarInternalActions", "enableToolbarTop", "icons", "localization", "persistentStateMode", "positionActionsColumn", "positionGlobalFilter", "positionPagination", "positionToolbarAlertBanner", "rowNumberMode", "selectAllMode"];
3567
3617
  var MaterialReactTable = (function (_ref) {
3568
3618
  var _ref$autoResetExpande = _ref.autoResetExpanded,
3569
3619
  autoResetExpanded = _ref$autoResetExpande === void 0 ? false : _ref$autoResetExpande,
@@ -3579,8 +3629,10 @@ var MaterialReactTable = (function (_ref) {
3579
3629
  editingMode = _ref$editingMode === void 0 ? 'row' : _ref$editingMode,
3580
3630
  _ref$enableColumnActi = _ref.enableColumnActions,
3581
3631
  enableColumnActions = _ref$enableColumnActi === void 0 ? true : _ref$enableColumnActi,
3582
- _ref$enableColumnFilt = _ref.enableColumnFilters,
3583
- enableColumnFilters = _ref$enableColumnFilt === void 0 ? true : _ref$enableColumnFilt,
3632
+ _ref$enableColumnFilt = _ref.enableColumnFilterChangeMode,
3633
+ enableColumnFilterChangeMode = _ref$enableColumnFilt === void 0 ? true : _ref$enableColumnFilt,
3634
+ _ref$enableColumnFilt2 = _ref.enableColumnFilters,
3635
+ enableColumnFilters = _ref$enableColumnFilt2 === void 0 ? true : _ref$enableColumnFilt2,
3584
3636
  _ref$enableColumnOrde = _ref.enableColumnOrdering,
3585
3637
  enableColumnOrdering = _ref$enableColumnOrde === void 0 ? false : _ref$enableColumnOrde,
3586
3638
  _ref$enableColumnResi = _ref.enableColumnResizing,
@@ -3595,12 +3647,18 @@ var MaterialReactTable = (function (_ref) {
3595
3647
  enableFullScreenToggle = _ref$enableFullScreen === void 0 ? true : _ref$enableFullScreen,
3596
3648
  _ref$enableGlobalFilt = _ref.enableGlobalFilter,
3597
3649
  enableGlobalFilter = _ref$enableGlobalFilt === void 0 ? true : _ref$enableGlobalFilt,
3650
+ _ref$enableGlobalFilt2 = _ref.enableGlobalFilterChangeMode,
3651
+ enableGlobalFilterChangeMode = _ref$enableGlobalFilt2 === void 0 ? true : _ref$enableGlobalFilt2,
3652
+ _ref$enableGlobalFilt3 = _ref.enableGlobalFilterRankedResults,
3653
+ enableGlobalFilterRankedResults = _ref$enableGlobalFilt3 === void 0 ? true : _ref$enableGlobalFilt3,
3598
3654
  _ref$enableGrouping = _ref.enableGrouping,
3599
3655
  enableGrouping = _ref$enableGrouping === void 0 ? false : _ref$enableGrouping,
3600
3656
  _ref$enableHiding = _ref.enableHiding,
3601
3657
  enableHiding = _ref$enableHiding === void 0 ? true : _ref$enableHiding,
3602
3658
  _ref$enableMultiRowSe = _ref.enableMultiRowSelection,
3603
3659
  enableMultiRowSelection = _ref$enableMultiRowSe === void 0 ? true : _ref$enableMultiRowSe,
3660
+ _ref$enableMultiSort = _ref.enableMultiSort,
3661
+ enableMultiSort = _ref$enableMultiSort === void 0 ? true : _ref$enableMultiSort,
3604
3662
  _ref$enablePagination = _ref.enablePagination,
3605
3663
  enablePagination = _ref$enablePagination === void 0 ? true : _ref$enablePagination,
3606
3664
  _ref$enablePinning = _ref.enablePinning,
@@ -3647,6 +3705,7 @@ var MaterialReactTable = (function (_ref) {
3647
3705
  defaultColumn: defaultColumn,
3648
3706
  editingMode: editingMode,
3649
3707
  enableColumnActions: enableColumnActions,
3708
+ enableColumnFilterChangeMode: enableColumnFilterChangeMode,
3650
3709
  enableColumnFilters: enableColumnFilters,
3651
3710
  enableColumnOrdering: enableColumnOrdering,
3652
3711
  enableColumnResizing: enableColumnResizing,
@@ -3655,9 +3714,12 @@ var MaterialReactTable = (function (_ref) {
3655
3714
  enableFilters: enableFilters,
3656
3715
  enableFullScreenToggle: enableFullScreenToggle,
3657
3716
  enableGlobalFilter: enableGlobalFilter,
3717
+ enableGlobalFilterChangeMode: enableGlobalFilterChangeMode,
3718
+ enableGlobalFilterRankedResults: enableGlobalFilterRankedResults,
3658
3719
  enableGrouping: enableGrouping,
3659
3720
  enableHiding: enableHiding,
3660
3721
  enableMultiRowSelection: enableMultiRowSelection,
3722
+ enableMultiSort: enableMultiSort,
3661
3723
  enablePagination: enablePagination,
3662
3724
  enablePinning: enablePinning,
3663
3725
  enableRowSelection: enableRowSelection,