material-react-table 1.12.0-beta.0 → 1.12.0-beta.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/cjs/index.js +17 -13
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/_locales/cs.d.ts +1 -1
- package/dist/cjs/types/_locales/da.d.ts +1 -1
- package/dist/cjs/types/_locales/de.d.ts +1 -1
- package/dist/cjs/types/_locales/en.d.ts +1 -1
- package/dist/cjs/types/_locales/es.d.ts +1 -1
- package/dist/cjs/types/_locales/fa.d.ts +1 -1
- package/dist/cjs/types/_locales/fi.d.ts +1 -1
- package/dist/cjs/types/_locales/fr.d.ts +1 -1
- package/dist/cjs/types/_locales/hu.d.ts +1 -1
- package/dist/cjs/types/_locales/id.d.ts +1 -1
- package/dist/cjs/types/_locales/it.d.ts +1 -1
- package/dist/cjs/types/_locales/ja.d.ts +1 -1
- package/dist/cjs/types/_locales/nl.d.ts +1 -1
- package/dist/cjs/types/_locales/pl.d.ts +1 -1
- package/dist/cjs/types/_locales/pt-BR.d.ts +1 -1
- package/dist/cjs/types/_locales/pt.d.ts +1 -1
- package/dist/cjs/types/_locales/ro.d.ts +1 -1
- package/dist/cjs/types/_locales/ru.d.ts +1 -1
- package/dist/cjs/types/_locales/sk.d.ts +1 -1
- package/dist/cjs/types/_locales/sr-Cyrl-RS.d.ts +1 -1
- package/dist/cjs/types/_locales/sr-Latn-RS.d.ts +1 -1
- package/dist/cjs/types/_locales/sv.d.ts +1 -1
- package/dist/cjs/types/_locales/tr.d.ts +1 -1
- package/dist/cjs/types/_locales/uk.d.ts +1 -1
- package/dist/cjs/types/_locales/vi.d.ts +1 -1
- package/dist/cjs/types/_locales/zh-Hans.d.ts +1 -1
- package/dist/cjs/types/_locales/zh-Hant.d.ts +1 -1
- package/dist/esm/material-react-table.esm.js +20 -14
- package/dist/esm/material-react-table.esm.js.map +1 -1
- package/dist/esm/types/_locales/cs.d.ts +1 -1
- package/dist/esm/types/_locales/da.d.ts +1 -1
- package/dist/esm/types/_locales/de.d.ts +1 -1
- package/dist/esm/types/_locales/en.d.ts +1 -1
- package/dist/esm/types/_locales/es.d.ts +1 -1
- package/dist/esm/types/_locales/fa.d.ts +1 -1
- package/dist/esm/types/_locales/fi.d.ts +1 -1
- package/dist/esm/types/_locales/fr.d.ts +1 -1
- package/dist/esm/types/_locales/hu.d.ts +1 -1
- package/dist/esm/types/_locales/id.d.ts +1 -1
- package/dist/esm/types/_locales/it.d.ts +1 -1
- package/dist/esm/types/_locales/ja.d.ts +1 -1
- package/dist/esm/types/_locales/nl.d.ts +1 -1
- package/dist/esm/types/_locales/pl.d.ts +1 -1
- package/dist/esm/types/_locales/pt-BR.d.ts +1 -1
- package/dist/esm/types/_locales/pt.d.ts +1 -1
- package/dist/esm/types/_locales/ro.d.ts +1 -1
- package/dist/esm/types/_locales/ru.d.ts +1 -1
- package/dist/esm/types/_locales/sk.d.ts +1 -1
- package/dist/esm/types/_locales/sr-Cyrl-RS.d.ts +1 -1
- package/dist/esm/types/_locales/sr-Latn-RS.d.ts +1 -1
- package/dist/esm/types/_locales/sv.d.ts +1 -1
- package/dist/esm/types/_locales/tr.d.ts +1 -1
- package/dist/esm/types/_locales/uk.d.ts +1 -1
- package/dist/esm/types/_locales/vi.d.ts +1 -1
- package/dist/esm/types/_locales/zh-Hans.d.ts +1 -1
- package/dist/esm/types/_locales/zh-Hant.d.ts +1 -1
- package/dist/index.d.ts +3 -4
- package/locales/cs.d.ts +1 -1
- package/locales/cs.esm.d.ts +1 -1
- package/locales/da.d.ts +1 -1
- package/locales/da.esm.d.ts +1 -1
- package/locales/de.d.ts +1 -1
- package/locales/de.esm.d.ts +1 -1
- package/locales/en.d.ts +1 -1
- package/locales/en.esm.d.ts +1 -1
- package/locales/es.d.ts +1 -1
- package/locales/es.esm.d.ts +1 -1
- package/locales/fa.d.ts +1 -1
- package/locales/fa.esm.d.ts +1 -1
- package/locales/fi.d.ts +1 -1
- package/locales/fi.esm.d.ts +1 -1
- package/locales/fr.d.ts +1 -1
- package/locales/fr.esm.d.ts +1 -1
- package/locales/hu.d.ts +1 -1
- package/locales/hu.esm.d.ts +1 -1
- package/locales/id.d.ts +1 -1
- package/locales/id.esm.d.ts +1 -1
- package/locales/it.d.ts +1 -1
- package/locales/it.esm.d.ts +1 -1
- package/locales/ja.d.ts +1 -1
- package/locales/ja.esm.d.ts +1 -1
- package/locales/nl.d.ts +1 -1
- package/locales/nl.esm.d.ts +1 -1
- package/locales/pl.d.ts +1 -1
- package/locales/pl.esm.d.ts +1 -1
- package/locales/pt-BR.d.ts +1 -1
- package/locales/pt-BR.esm.d.ts +1 -1
- package/locales/pt.d.ts +1 -1
- package/locales/pt.esm.d.ts +1 -1
- package/locales/ro.d.ts +1 -1
- package/locales/ro.esm.d.ts +1 -1
- package/locales/ru.d.ts +1 -1
- package/locales/ru.esm.d.ts +1 -1
- package/locales/sk.d.ts +1 -1
- package/locales/sk.esm.d.ts +1 -1
- package/locales/sr-Cyrl-RS.d.ts +1 -1
- package/locales/sr-Cyrl-RS.esm.d.ts +1 -1
- package/locales/sr-Latn-RS.d.ts +1 -1
- package/locales/sr-Latn-RS.esm.d.ts +1 -1
- package/locales/sv.d.ts +1 -1
- package/locales/sv.esm.d.ts +1 -1
- package/locales/tr.d.ts +1 -1
- package/locales/tr.esm.d.ts +1 -1
- package/locales/uk.d.ts +1 -1
- package/locales/uk.esm.d.ts +1 -1
- package/locales/vi.d.ts +1 -1
- package/locales/vi.esm.d.ts +1 -1
- package/locales/zh-Hans.d.ts +1 -1
- package/locales/zh-Hans.esm.d.ts +1 -1
- package/locales/zh-Hant.d.ts +1 -1
- package/locales/zh-Hant.esm.d.ts +1 -1
- package/package.json +2 -2
- package/src/_locales/cs.ts +1 -1
- package/src/_locales/da.ts +1 -1
- package/src/_locales/de.ts +1 -1
- package/src/_locales/en.ts +1 -1
- package/src/_locales/es.ts +1 -1
- package/src/_locales/fa.ts +1 -1
- package/src/_locales/fi.ts +1 -1
- package/src/_locales/fr.ts +1 -1
- package/src/_locales/hu.ts +1 -1
- package/src/_locales/id.ts +1 -1
- package/src/_locales/it.ts +1 -1
- package/src/_locales/ja.ts +1 -1
- package/src/_locales/nl.ts +1 -1
- package/src/_locales/pl.ts +1 -1
- package/src/_locales/pt-BR.ts +1 -1
- package/src/_locales/pt.ts +1 -1
- package/src/_locales/ro.ts +1 -1
- package/src/_locales/ru.ts +1 -1
- package/src/_locales/sk.ts +1 -1
- package/src/_locales/sr-Cyrl-RS.ts +1 -1
- package/src/_locales/sr-Latn-RS.ts +1 -1
- package/src/_locales/sv.ts +1 -1
- package/src/_locales/tr.ts +1 -1
- package/src/_locales/uk.ts +1 -1
- package/src/_locales/vi.ts +1 -1
- package/src/_locales/zh-Hans.ts +1 -1
- package/src/_locales/zh-Hant.ts +1 -1
- package/src/column.utils.ts +1 -1
- package/src/filterFns.ts +5 -1
- package/src/footer/MRT_TableFooterRow.tsx +5 -1
- package/src/head/MRT_TableHeadRow.tsx +5 -1
- package/src/inputs/MRT_EditCellTextField.tsx +6 -1
- package/src/menus/MRT_ShowHideColumnsMenuItems.tsx +7 -1
package/src/_locales/ru.ts
CHANGED
package/src/_locales/sk.ts
CHANGED
package/src/_locales/sv.ts
CHANGED
package/src/_locales/tr.ts
CHANGED
package/src/_locales/uk.ts
CHANGED
package/src/_locales/vi.ts
CHANGED
package/src/_locales/zh-Hans.ts
CHANGED
package/src/_locales/zh-Hant.ts
CHANGED
package/src/column.utils.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
+
import { alpha, lighten } from '@mui/material/styles';
|
1
2
|
import { type MRT_AggregationFns } from './aggregationFns';
|
2
3
|
import { type MRT_FilterFns } from './filterFns';
|
3
4
|
import { type MRT_SortingFns } from './sortingFns';
|
4
|
-
import { alpha, lighten } from '@mui/material/styles';
|
5
5
|
import { type Row } from '@tanstack/react-table';
|
6
6
|
import { type TableCellProps } from '@mui/material/TableCell';
|
7
7
|
import { type Theme } from '@mui/material/styles';
|
package/src/filterFns.ts
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import {
|
2
|
+
rankItem,
|
3
|
+
rankings,
|
4
|
+
type RankingInfo,
|
5
|
+
} from '@tanstack/match-sorter-utils';
|
2
6
|
import { filterFns, type Row } from '@tanstack/react-table';
|
3
7
|
|
4
8
|
const fuzzy = <TData extends Record<string, any> = {}>(
|
@@ -2,7 +2,11 @@ import TableRow from '@mui/material/TableRow';
|
|
2
2
|
import { lighten } from '@mui/material/styles';
|
3
3
|
import { MRT_TableFooterCell } from './MRT_TableFooterCell';
|
4
4
|
import { type VirtualItem } from '@tanstack/react-virtual';
|
5
|
-
import {
|
5
|
+
import {
|
6
|
+
type MRT_Header,
|
7
|
+
type MRT_HeaderGroup,
|
8
|
+
type MRT_TableInstance,
|
9
|
+
} from '../types';
|
6
10
|
|
7
11
|
interface Props {
|
8
12
|
footerGroup: MRT_HeaderGroup;
|
@@ -2,7 +2,11 @@ import TableRow from '@mui/material/TableRow';
|
|
2
2
|
import { alpha, lighten } from '@mui/material/styles';
|
3
3
|
import { MRT_TableHeadCell } from './MRT_TableHeadCell';
|
4
4
|
import { type VirtualItem } from '@tanstack/react-virtual';
|
5
|
-
import {
|
5
|
+
import {
|
6
|
+
type MRT_Header,
|
7
|
+
type MRT_HeaderGroup,
|
8
|
+
type MRT_TableInstance,
|
9
|
+
} from '../types';
|
6
10
|
|
7
11
|
interface Props {
|
8
12
|
headerGroup: MRT_HeaderGroup;
|
@@ -1,4 +1,9 @@
|
|
1
|
-
import {
|
1
|
+
import {
|
2
|
+
type ChangeEvent,
|
3
|
+
type FocusEvent,
|
4
|
+
type KeyboardEvent,
|
5
|
+
useState,
|
6
|
+
} from 'react';
|
2
7
|
import TextField from '@mui/material/TextField';
|
3
8
|
import MenuItem from '@mui/material/MenuItem';
|
4
9
|
import { type TextFieldProps } from '@mui/material/TextField';
|
@@ -1,4 +1,10 @@
|
|
1
|
-
import {
|
1
|
+
import {
|
2
|
+
type Dispatch,
|
3
|
+
type DragEvent,
|
4
|
+
type SetStateAction,
|
5
|
+
useRef,
|
6
|
+
useState,
|
7
|
+
} from 'react';
|
2
8
|
import Box from '@mui/material/Box';
|
3
9
|
import FormControlLabel from '@mui/material/FormControlLabel';
|
4
10
|
import MenuItem from '@mui/material/MenuItem';
|