material-react-table 2.0.5 → 2.1.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/index.d.ts +2 -1
- package/dist/index.esm.js +616 -545
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +614 -543
- package/dist/index.js.map +1 -1
- package/locales/fr/index.esm.js +1 -1
- package/locales/fr/index.js +1 -1
- package/locales/he/index.d.ts +3 -0
- package/locales/he/index.esm.d.ts +3 -0
- package/locales/he/index.esm.js +93 -0
- package/locales/he/index.js +97 -0
- package/locales/he/package.json +6 -0
- package/package.json +25 -25
- package/src/body/MRT_TableBodyCell.tsx +22 -19
- package/src/body/MRT_TableBodyCellValue.tsx +9 -9
- package/src/body/MRT_TableBodyRow.tsx +13 -13
- package/src/buttons/MRT_RowPinButton.tsx +2 -2
- package/src/buttons/MRT_ToggleDensePaddingButton.tsx +2 -2
- package/src/footer/MRT_TableFooterCell.tsx +2 -2
- package/src/head/MRT_TableHeadCell.tsx +25 -20
- package/src/head/MRT_TableHeadCellResizeHandle.tsx +19 -9
- package/src/hooks/useMRT_DisplayColumns.tsx +172 -125
- package/src/hooks/useMRT_TableOptions.ts +8 -0
- package/src/inputs/MRT_EditCellTextField.tsx +3 -1
- package/src/inputs/MRT_FilterCheckbox.tsx +2 -2
- package/src/inputs/MRT_FilterTextField.tsx +17 -17
- package/src/inputs/MRT_SelectCheckbox.tsx +2 -2
- package/src/locales/fr.ts +1 -1
- package/src/locales/he.ts +94 -0
- package/src/menus/MRT_ShowHideColumnsMenuItems.tsx +2 -2
- package/src/style.utils.ts +2 -2
- package/src/toolbar/MRT_TablePagination.tsx +8 -4
- package/src/toolbar/MRT_ToolbarAlertBanner.tsx +6 -6
- package/src/types.ts +2 -2
- package/dist/types/MaterialReactTable.d.ts +0 -7
- package/dist/types/aggregationFns.d.ts +0 -11
- package/dist/types/body/MRT_TableBody.d.ts +0 -13
- package/dist/types/body/MRT_TableBodyCell.d.ts +0 -15
- package/dist/types/body/MRT_TableBodyCellValue.d.ts +0 -8
- package/dist/types/body/MRT_TableBodyRow.d.ts +0 -18
- package/dist/types/body/MRT_TableBodyRowGrabHandle.d.ts +0 -10
- package/dist/types/body/MRT_TableBodyRowPinButton.d.ts +0 -8
- package/dist/types/body/MRT_TableDetailPanel.d.ts +0 -13
- package/dist/types/body/index.d.ts +0 -7
- package/dist/types/buttons/MRT_ColumnPinningButtons.d.ts +0 -8
- package/dist/types/buttons/MRT_CopyButton.d.ts +0 -8
- package/dist/types/buttons/MRT_EditActionButtons.d.ts +0 -9
- package/dist/types/buttons/MRT_ExpandAllButton.d.ts +0 -7
- package/dist/types/buttons/MRT_ExpandButton.d.ts +0 -8
- package/dist/types/buttons/MRT_GrabHandleButton.d.ts +0 -12
- package/dist/types/buttons/MRT_RowPinButton.d.ts +0 -10
- package/dist/types/buttons/MRT_ShowHideColumnsButton.d.ts +0 -7
- package/dist/types/buttons/MRT_ToggleDensePaddingButton.d.ts +0 -7
- package/dist/types/buttons/MRT_ToggleFiltersButton.d.ts +0 -7
- package/dist/types/buttons/MRT_ToggleFullScreenButton.d.ts +0 -7
- package/dist/types/buttons/MRT_ToggleGlobalFilterButton.d.ts +0 -7
- package/dist/types/buttons/MRT_ToggleRowActionMenuButton.d.ts +0 -9
- package/dist/types/buttons/index.d.ts +0 -13
- package/dist/types/column.utils.d.ts +0 -127
- package/dist/types/filterFns.d.ts +0 -69
- package/dist/types/footer/MRT_TableFooter.d.ts +0 -11
- package/dist/types/footer/MRT_TableFooterCell.d.ts +0 -8
- package/dist/types/footer/MRT_TableFooterRow.d.ts +0 -12
- package/dist/types/footer/index.d.ts +0 -3
- package/dist/types/head/MRT_TableHead.d.ts +0 -11
- package/dist/types/head/MRT_TableHeadCell.d.ts +0 -8
- package/dist/types/head/MRT_TableHeadCellColumnActionsButton.d.ts +0 -8
- package/dist/types/head/MRT_TableHeadCellFilterContainer.d.ts +0 -8
- package/dist/types/head/MRT_TableHeadCellFilterLabel.d.ts +0 -8
- package/dist/types/head/MRT_TableHeadCellGrabHandle.d.ts +0 -10
- package/dist/types/head/MRT_TableHeadCellResizeHandle.d.ts +0 -8
- package/dist/types/head/MRT_TableHeadCellSortLabel.d.ts +0 -8
- package/dist/types/head/MRT_TableHeadRow.d.ts +0 -12
- package/dist/types/head/index.d.ts +0 -9
- package/dist/types/hooks/index.d.ts +0 -4
- package/dist/types/hooks/useMRT_DisplayColumns.d.ts +0 -9
- package/dist/types/hooks/useMRT_Effects.d.ts +0 -2
- package/dist/types/hooks/useMRT_TableInstance.d.ts +0 -2
- package/dist/types/hooks/useMRT_TableOptions.d.ts +0 -22
- package/dist/types/icons.d.ts +0 -36
- package/dist/types/index.d.ts +0 -18
- package/dist/types/inputs/MRT_EditCellTextField.d.ts +0 -8
- package/dist/types/inputs/MRT_FilterCheckbox.d.ts +0 -8
- package/dist/types/inputs/MRT_FilterRangeFields.d.ts +0 -8
- package/dist/types/inputs/MRT_FilterRangeSlider.d.ts +0 -8
- package/dist/types/inputs/MRT_FilterTextField.d.ts +0 -9
- package/dist/types/inputs/MRT_GlobalFilterTextField.d.ts +0 -7
- package/dist/types/inputs/MRT_SelectCheckbox.d.ts +0 -9
- package/dist/types/inputs/index.d.ts +0 -7
- package/dist/types/locales/am.d.ts +0 -2
- package/dist/types/locales/ar.d.ts +0 -2
- package/dist/types/locales/az.d.ts +0 -2
- package/dist/types/locales/bg.d.ts +0 -2
- package/dist/types/locales/cs.d.ts +0 -2
- package/dist/types/locales/da.d.ts +0 -2
- package/dist/types/locales/de.d.ts +0 -2
- package/dist/types/locales/en.d.ts +0 -2
- package/dist/types/locales/es.d.ts +0 -2
- package/dist/types/locales/et.d.ts +0 -2
- package/dist/types/locales/fa.d.ts +0 -2
- package/dist/types/locales/fi.d.ts +0 -2
- package/dist/types/locales/fr.d.ts +0 -2
- package/dist/types/locales/hu.d.ts +0 -2
- package/dist/types/locales/hy.d.ts +0 -2
- package/dist/types/locales/id.d.ts +0 -2
- package/dist/types/locales/it.d.ts +0 -2
- package/dist/types/locales/ja.d.ts +0 -2
- package/dist/types/locales/ko.d.ts +0 -2
- package/dist/types/locales/nl.d.ts +0 -2
- package/dist/types/locales/no.d.ts +0 -2
- package/dist/types/locales/np.d.ts +0 -2
- package/dist/types/locales/pl.d.ts +0 -2
- package/dist/types/locales/pt-BR.d.ts +0 -2
- package/dist/types/locales/pt.d.ts +0 -2
- package/dist/types/locales/ro.d.ts +0 -2
- package/dist/types/locales/ru.d.ts +0 -2
- package/dist/types/locales/sk.d.ts +0 -2
- package/dist/types/locales/sr-Cyrl-RS.d.ts +0 -2
- package/dist/types/locales/sr-Latn-RS.d.ts +0 -2
- package/dist/types/locales/sv.d.ts +0 -2
- package/dist/types/locales/tr.d.ts +0 -2
- package/dist/types/locales/uk.d.ts +0 -2
- package/dist/types/locales/vi.d.ts +0 -2
- package/dist/types/locales/zh-Hans.d.ts +0 -2
- package/dist/types/locales/zh-Hant.d.ts +0 -2
- package/dist/types/menus/MRT_ColumnActionMenu.d.ts +0 -20
- package/dist/types/menus/MRT_FilterOptionMenu.d.ts +0 -13
- package/dist/types/menus/MRT_RowActionMenu.d.ts +0 -12
- package/dist/types/menus/MRT_ShowHideColumnsMenu.d.ts +0 -10
- package/dist/types/menus/MRT_ShowHideColumnsMenuItems.d.ts +0 -12
- package/dist/types/menus/index.d.ts +0 -5
- package/dist/types/modals/MRT_EditRowModal.d.ts +0 -8
- package/dist/types/modals/index.d.ts +0 -1
- package/dist/types/sortingFns.d.ts +0 -12
- package/dist/types/style.utils.d.ts +0 -32
- package/dist/types/table/MRT_Table.d.ts +0 -7
- package/dist/types/table/MRT_TableContainer.d.ts +0 -7
- package/dist/types/table/MRT_TableLoadingOverlay.d.ts +0 -7
- package/dist/types/table/MRT_TablePaper.d.ts +0 -7
- package/dist/types/table/index.d.ts +0 -5
- package/dist/types/toolbar/MRT_BottomToolbar.d.ts +0 -7
- package/dist/types/toolbar/MRT_LinearProgressBar.d.ts +0 -8
- package/dist/types/toolbar/MRT_TablePagination.d.ts +0 -14
- package/dist/types/toolbar/MRT_ToolbarAlertBanner.d.ts +0 -8
- package/dist/types/toolbar/MRT_ToolbarDropZone.d.ts +0 -7
- package/dist/types/toolbar/MRT_ToolbarInternalButtons.d.ts +0 -7
- package/dist/types/toolbar/MRT_TopToolbar.d.ts +0 -6
- package/dist/types/toolbar/index.d.ts +0 -7
- package/dist/types/types.d.ts +0 -854
- package/dist/types/useMaterialReactTable.d.ts +0 -2
|
@@ -14,6 +14,7 @@ const defaultRowsPerPage = [5, 10, 15, 20, 25, 30, 50, 100];
|
|
|
14
14
|
interface Props<TData extends MRT_RowData>
|
|
15
15
|
extends Partial<
|
|
16
16
|
PaginationProps & {
|
|
17
|
+
disabled?: boolean;
|
|
17
18
|
rowsPerPageOptions?: { label: string; value: number }[] | number[];
|
|
18
19
|
showRowsPerPage?: boolean;
|
|
19
20
|
}
|
|
@@ -61,6 +62,7 @@ export const MRT_TablePagination = <TData extends MRT_RowData>({
|
|
|
61
62
|
|
|
62
63
|
const {
|
|
63
64
|
SelectProps,
|
|
65
|
+
disabled = false,
|
|
64
66
|
rowsPerPageOptions = defaultRowsPerPage,
|
|
65
67
|
showFirstButton = showFirstLastPageButtons,
|
|
66
68
|
showLastButton = showFirstLastPageButtons,
|
|
@@ -97,6 +99,7 @@ export const MRT_TablePagination = <TData extends MRT_RowData>({
|
|
|
97
99
|
</InputLabel>
|
|
98
100
|
<Select
|
|
99
101
|
disableUnderline
|
|
102
|
+
disabled={disabled}
|
|
100
103
|
id="mrt-rows-per-page"
|
|
101
104
|
inputProps={{ 'aria-label': localization.rowsPerPage }}
|
|
102
105
|
label={localization.rowsPerPage}
|
|
@@ -129,6 +132,7 @@ export const MRT_TablePagination = <TData extends MRT_RowData>({
|
|
|
129
132
|
{paginationDisplayMode === 'pages' ? (
|
|
130
133
|
<Pagination
|
|
131
134
|
count={numberOfPages}
|
|
135
|
+
disabled={disabled}
|
|
132
136
|
onChange={(_e, newPageIndex) => setPageIndex(newPageIndex - 1)}
|
|
133
137
|
page={pageIndex + 1}
|
|
134
138
|
renderItem={(item) => (
|
|
@@ -162,7 +166,7 @@ export const MRT_TablePagination = <TData extends MRT_RowData>({
|
|
|
162
166
|
{showFirstButton && (
|
|
163
167
|
<IconButton
|
|
164
168
|
aria-label={localization.goToFirstPage}
|
|
165
|
-
disabled={pageIndex <= 0}
|
|
169
|
+
disabled={pageIndex <= 0 || disabled}
|
|
166
170
|
onClick={() => setPageIndex(0)}
|
|
167
171
|
size="small"
|
|
168
172
|
>
|
|
@@ -171,7 +175,7 @@ export const MRT_TablePagination = <TData extends MRT_RowData>({
|
|
|
171
175
|
)}
|
|
172
176
|
<IconButton
|
|
173
177
|
aria-label={localization.goToPreviousPage}
|
|
174
|
-
disabled={pageIndex <= 0}
|
|
178
|
+
disabled={pageIndex <= 0 || disabled}
|
|
175
179
|
onClick={() => setPageIndex(pageIndex - 1)}
|
|
176
180
|
size="small"
|
|
177
181
|
>
|
|
@@ -179,7 +183,7 @@ export const MRT_TablePagination = <TData extends MRT_RowData>({
|
|
|
179
183
|
</IconButton>
|
|
180
184
|
<IconButton
|
|
181
185
|
aria-label={localization.goToNextPage}
|
|
182
|
-
disabled={lastRowIndex >= totalRowCount}
|
|
186
|
+
disabled={lastRowIndex >= totalRowCount || disabled}
|
|
183
187
|
onClick={() => setPageIndex(pageIndex + 1)}
|
|
184
188
|
size="small"
|
|
185
189
|
>
|
|
@@ -188,7 +192,7 @@ export const MRT_TablePagination = <TData extends MRT_RowData>({
|
|
|
188
192
|
{showLastButton && (
|
|
189
193
|
<IconButton
|
|
190
194
|
aria-label={localization.goToLastPage}
|
|
191
|
-
disabled={lastRowIndex >= totalRowCount}
|
|
195
|
+
disabled={lastRowIndex >= totalRowCount || disabled}
|
|
192
196
|
onClick={() => setPageIndex(numberOfPages - 1)}
|
|
193
197
|
size="small"
|
|
194
198
|
>
|
|
@@ -100,8 +100,8 @@ export const MRT_ToolbarAlertBanner = <TData extends MRT_RowData>({
|
|
|
100
100
|
mb: stackAlertBanner
|
|
101
101
|
? 0
|
|
102
102
|
: positionToolbarAlertBanner === 'bottom'
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
? '-1rem'
|
|
104
|
+
: undefined,
|
|
105
105
|
p: 0,
|
|
106
106
|
position: 'relative',
|
|
107
107
|
right: 0,
|
|
@@ -124,10 +124,10 @@ export const MRT_ToolbarAlertBanner = <TData extends MRT_RowData>({
|
|
|
124
124
|
positionToolbarAlertBanner !== 'head-overlay'
|
|
125
125
|
? '0.5rem 1rem'
|
|
126
126
|
: density === 'spacious'
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
127
|
+
? '0.75rem 1.25rem'
|
|
128
|
+
: density === 'comfortable'
|
|
129
|
+
? '0.5rem 0.75rem'
|
|
130
|
+
: '0.25rem 0.5rem',
|
|
131
131
|
}}
|
|
132
132
|
>
|
|
133
133
|
{alertProps?.children}
|
package/src/types.ts
CHANGED
|
@@ -113,8 +113,8 @@ export type MRT_ColumnHelper<TData extends MRT_RowData> = {
|
|
|
113
113
|
TValue extends TAccessor extends AccessorFn<TData, infer TReturn>
|
|
114
114
|
? TReturn
|
|
115
115
|
: TAccessor extends DeepKeys<TData>
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
? DeepValue<TData, TAccessor>
|
|
117
|
+
: never,
|
|
118
118
|
>(
|
|
119
119
|
accessor: TAccessor,
|
|
120
120
|
column: MRT_DisplayColumnDef<TData, TValue>,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type MRT_RowData, type MRT_TableInstance, type MRT_TableOptions, type Xor } from './types';
|
|
2
|
-
type TableInstanceProp<TData extends MRT_RowData> = {
|
|
3
|
-
table: MRT_TableInstance<TData>;
|
|
4
|
-
};
|
|
5
|
-
type Props<TData extends MRT_RowData> = Xor<TableInstanceProp<TData>, MRT_TableOptions<TData>>;
|
|
6
|
-
export declare const MaterialReactTable: <TData extends MRT_RowData>(props: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const MRT_AggregationFns: {
|
|
2
|
-
sum: import("@tanstack/react-table").AggregationFn<any>;
|
|
3
|
-
min: import("@tanstack/react-table").AggregationFn<any>;
|
|
4
|
-
max: import("@tanstack/react-table").AggregationFn<any>;
|
|
5
|
-
extent: import("@tanstack/react-table").AggregationFn<any>;
|
|
6
|
-
mean: import("@tanstack/react-table").AggregationFn<any>;
|
|
7
|
-
median: import("@tanstack/react-table").AggregationFn<any>;
|
|
8
|
-
unique: import("@tanstack/react-table").AggregationFn<any>;
|
|
9
|
-
uniqueCount: import("@tanstack/react-table").AggregationFn<any>;
|
|
10
|
-
count: import("@tanstack/react-table").AggregationFn<any>;
|
|
11
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type VirtualItem, type Virtualizer } from '@tanstack/react-virtual';
|
|
2
|
-
import { type TableBodyProps } from '@mui/material/TableBody';
|
|
3
|
-
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
|
4
|
-
interface Props<TData extends MRT_RowData> extends TableBodyProps {
|
|
5
|
-
columnVirtualizer?: Virtualizer<HTMLDivElement, HTMLTableCellElement>;
|
|
6
|
-
table: MRT_TableInstance<TData>;
|
|
7
|
-
virtualColumns?: VirtualItem[];
|
|
8
|
-
virtualPaddingLeft?: number;
|
|
9
|
-
virtualPaddingRight?: number;
|
|
10
|
-
}
|
|
11
|
-
export declare const MRT_TableBody: <TData extends MRT_RowData>({ columnVirtualizer, table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export declare const Memo_MRT_TableBody: <TData extends MRT_RowData>({ columnVirtualizer, table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type RefObject } from 'react';
|
|
2
|
-
import { type TableCellProps } from '@mui/material/TableCell';
|
|
3
|
-
import { type MRT_Cell, type MRT_RowData, type MRT_TableInstance } from '../types';
|
|
4
|
-
interface Props<TData extends MRT_RowData> extends TableCellProps {
|
|
5
|
-
cell: MRT_Cell<TData>;
|
|
6
|
-
measureElement?: (element: HTMLTableCellElement) => void;
|
|
7
|
-
numRows?: number;
|
|
8
|
-
rowIndex: number;
|
|
9
|
-
rowRef: RefObject<HTMLTableRowElement>;
|
|
10
|
-
table: MRT_TableInstance<TData>;
|
|
11
|
-
virtualIndex?: number;
|
|
12
|
-
}
|
|
13
|
-
export declare const MRT_TableBodyCell: <TData extends MRT_RowData>({ cell, measureElement, numRows, rowIndex, rowRef, table, virtualIndex, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export declare const Memo_MRT_TableBodyCell: <TData extends MRT_RowData>({ cell, measureElement, numRows, rowIndex, rowRef, table, virtualIndex, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
import { type MRT_Cell, type MRT_RowData, type MRT_TableInstance } from '../types';
|
|
3
|
-
interface Props<TData extends MRT_RowData> {
|
|
4
|
-
cell: MRT_Cell<TData>;
|
|
5
|
-
table: MRT_TableInstance<TData>;
|
|
6
|
-
}
|
|
7
|
-
export declare const MRT_TableBodyCellValue: <TData extends MRT_RowData>({ cell, table, }: Props<TData>) => ReactNode;
|
|
8
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type VirtualItem, type Virtualizer } from '@tanstack/react-virtual';
|
|
2
|
-
import { type MRT_Row, type MRT_RowData, type MRT_TableInstance } from '../types';
|
|
3
|
-
interface Props<TData extends MRT_RowData> {
|
|
4
|
-
columnVirtualizer?: Virtualizer<HTMLDivElement, HTMLTableCellElement>;
|
|
5
|
-
measureElement?: (element: HTMLTableRowElement) => void;
|
|
6
|
-
numRows?: number;
|
|
7
|
-
pinnedRowIds?: string[];
|
|
8
|
-
row: MRT_Row<TData>;
|
|
9
|
-
rowIndex: number;
|
|
10
|
-
table: MRT_TableInstance<TData>;
|
|
11
|
-
virtualColumns?: VirtualItem[];
|
|
12
|
-
virtualPaddingLeft?: number;
|
|
13
|
-
virtualPaddingRight?: number;
|
|
14
|
-
virtualRow?: VirtualItem;
|
|
15
|
-
}
|
|
16
|
-
export declare const MRT_TableBodyRow: <TData extends MRT_RowData>({ columnVirtualizer, measureElement, numRows, pinnedRowIds, row, rowIndex, table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, virtualRow, }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export declare const Memo_MRT_TableBodyRow: <TData extends MRT_RowData>({ columnVirtualizer, measureElement, numRows, pinnedRowIds, row, rowIndex, table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, virtualRow, }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type RefObject } from 'react';
|
|
2
|
-
import { type IconButtonProps } from '@mui/material/IconButton';
|
|
3
|
-
import { type MRT_Row, type MRT_RowData, type MRT_TableInstance } from '../types';
|
|
4
|
-
interface Props<TData extends MRT_RowData> extends IconButtonProps {
|
|
5
|
-
row: MRT_Row<TData>;
|
|
6
|
-
rowRef: RefObject<HTMLTableRowElement>;
|
|
7
|
-
table: MRT_TableInstance<TData>;
|
|
8
|
-
}
|
|
9
|
-
export declare const MRT_TableBodyRowGrabHandle: <TData extends MRT_RowData>({ row, rowRef, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type IconButtonProps } from '@mui/material/IconButton';
|
|
2
|
-
import { type MRT_Row, type MRT_RowData, type MRT_TableInstance } from '../types';
|
|
3
|
-
interface Props<TData extends MRT_RowData> extends IconButtonProps {
|
|
4
|
-
row: MRT_Row<TData>;
|
|
5
|
-
table: MRT_TableInstance<TData>;
|
|
6
|
-
}
|
|
7
|
-
export declare const MRT_TableBodyRowPinButton: <TData extends MRT_RowData>({ row, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type RefObject } from 'react';
|
|
2
|
-
import { type VirtualItem } from '@tanstack/react-virtual';
|
|
3
|
-
import { type TableCellProps } from '@mui/material/TableCell';
|
|
4
|
-
import { type MRT_Row, type MRT_RowData, type MRT_TableInstance } from '../types';
|
|
5
|
-
interface Props<TData extends MRT_RowData> extends TableCellProps {
|
|
6
|
-
parentRowRef: RefObject<HTMLTableRowElement>;
|
|
7
|
-
row: MRT_Row<TData>;
|
|
8
|
-
rowIndex: number;
|
|
9
|
-
table: MRT_TableInstance<TData>;
|
|
10
|
-
virtualRow?: VirtualItem;
|
|
11
|
-
}
|
|
12
|
-
export declare const MRT_TableDetailPanel: <TData extends MRT_RowData>({ parentRowRef, row, rowIndex, table, virtualRow, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from './MRT_TableBody';
|
|
2
|
-
export * from './MRT_TableBodyCell';
|
|
3
|
-
export * from './MRT_TableBodyCellValue';
|
|
4
|
-
export * from './MRT_TableBodyRow';
|
|
5
|
-
export * from './MRT_TableBodyRowGrabHandle';
|
|
6
|
-
export * from './MRT_TableBodyRowPinButton';
|
|
7
|
-
export * from './MRT_TableDetailPanel';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type BoxProps } from '@mui/material/Box';
|
|
2
|
-
import { type MRT_Column, type MRT_RowData, type MRT_TableInstance } from '../types';
|
|
3
|
-
interface Props<TData extends MRT_RowData> extends BoxProps {
|
|
4
|
-
column: MRT_Column<TData>;
|
|
5
|
-
table: MRT_TableInstance<TData>;
|
|
6
|
-
}
|
|
7
|
-
export declare const MRT_ColumnPinningButtons: <TData extends MRT_RowData>({ column, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type ButtonProps } from '@mui/material/Button';
|
|
2
|
-
import { type MRT_Cell, type MRT_RowData, type MRT_TableInstance } from '../types';
|
|
3
|
-
interface Props<TData extends MRT_RowData> extends ButtonProps {
|
|
4
|
-
cell: MRT_Cell<TData>;
|
|
5
|
-
table: MRT_TableInstance<TData>;
|
|
6
|
-
}
|
|
7
|
-
export declare const MRT_CopyButton: <TData extends MRT_RowData>({ cell, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type BoxProps } from '@mui/material/Box';
|
|
2
|
-
import { type MRT_Row, type MRT_RowData, type MRT_TableInstance } from '../types';
|
|
3
|
-
interface Props<TData extends MRT_RowData> extends BoxProps {
|
|
4
|
-
row: MRT_Row<TData>;
|
|
5
|
-
table: MRT_TableInstance<TData>;
|
|
6
|
-
variant?: 'icon' | 'text';
|
|
7
|
-
}
|
|
8
|
-
export declare const MRT_EditActionButtons: <TData extends MRT_RowData>({ row, table, variant, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type IconButtonProps } from '@mui/material/IconButton';
|
|
2
|
-
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
|
3
|
-
interface Props<TData extends MRT_RowData> extends IconButtonProps {
|
|
4
|
-
table: MRT_TableInstance<TData>;
|
|
5
|
-
}
|
|
6
|
-
export declare const MRT_ExpandAllButton: <TData extends MRT_RowData>({ table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type IconButtonProps } from '@mui/material/IconButton';
|
|
2
|
-
import { type MRT_Row, type MRT_RowData, type MRT_TableInstance } from '../types';
|
|
3
|
-
interface Props<TData extends MRT_RowData> extends IconButtonProps {
|
|
4
|
-
row: MRT_Row<TData>;
|
|
5
|
-
table: MRT_TableInstance<TData>;
|
|
6
|
-
}
|
|
7
|
-
export declare const MRT_ExpandButton: <TData extends MRT_RowData>({ row, table, }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type DragEventHandler } from 'react';
|
|
2
|
-
import { type IconButtonProps } from '@mui/material/IconButton';
|
|
3
|
-
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
|
4
|
-
interface Props<TData extends MRT_RowData> extends IconButtonProps {
|
|
5
|
-
iconButtonProps?: IconButtonProps;
|
|
6
|
-
location?: 'column' | 'row';
|
|
7
|
-
onDragEnd: DragEventHandler<HTMLButtonElement>;
|
|
8
|
-
onDragStart: DragEventHandler<HTMLButtonElement>;
|
|
9
|
-
table: MRT_TableInstance<TData>;
|
|
10
|
-
}
|
|
11
|
-
export declare const MRT_GrabHandleButton: <TData extends MRT_RowData>({ iconButtonProps, location, onDragEnd, onDragStart, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type RowPinningPosition } from '@tanstack/react-table';
|
|
2
|
-
import { type IconButtonProps } from '@mui/material/IconButton';
|
|
3
|
-
import { type MRT_Row, type MRT_RowData, type MRT_TableInstance } from '../types';
|
|
4
|
-
interface Props<TData extends MRT_RowData> extends IconButtonProps {
|
|
5
|
-
pinningPosition: RowPinningPosition;
|
|
6
|
-
row: MRT_Row<TData>;
|
|
7
|
-
table: MRT_TableInstance<TData>;
|
|
8
|
-
}
|
|
9
|
-
export declare const MRT_RowPinButton: <TData extends MRT_RowData>({ pinningPosition, row, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type IconButtonProps } from '@mui/material/IconButton';
|
|
2
|
-
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
|
3
|
-
interface Props<TData extends MRT_RowData> extends IconButtonProps {
|
|
4
|
-
table: MRT_TableInstance<TData>;
|
|
5
|
-
}
|
|
6
|
-
export declare const MRT_ShowHideColumnsButton: <TData extends MRT_RowData>({ table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type IconButtonProps } from '@mui/material/IconButton';
|
|
2
|
-
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
|
3
|
-
interface Props<TData extends MRT_RowData> extends IconButtonProps {
|
|
4
|
-
table: MRT_TableInstance<TData>;
|
|
5
|
-
}
|
|
6
|
-
export declare const MRT_ToggleDensePaddingButton: <TData extends MRT_RowData>({ table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type IconButtonProps } from '@mui/material/IconButton';
|
|
2
|
-
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
|
3
|
-
interface Props<TData extends MRT_RowData> extends IconButtonProps {
|
|
4
|
-
table: MRT_TableInstance<TData>;
|
|
5
|
-
}
|
|
6
|
-
export declare const MRT_ToggleFiltersButton: <TData extends MRT_RowData>({ table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type IconButtonProps } from '@mui/material/IconButton';
|
|
2
|
-
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
|
3
|
-
interface Props<TData extends MRT_RowData> extends IconButtonProps {
|
|
4
|
-
table: MRT_TableInstance<TData>;
|
|
5
|
-
}
|
|
6
|
-
export declare const MRT_ToggleFullScreenButton: <TData extends MRT_RowData>({ table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type IconButtonProps } from '@mui/material/IconButton';
|
|
2
|
-
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
|
3
|
-
interface Props<TData extends MRT_RowData> extends IconButtonProps {
|
|
4
|
-
table: MRT_TableInstance<TData>;
|
|
5
|
-
}
|
|
6
|
-
export declare const MRT_ToggleGlobalFilterButton: <TData extends MRT_RowData>({ table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type IconButtonProps } from '@mui/material/IconButton';
|
|
2
|
-
import { type MRT_Cell, type MRT_Row, type MRT_RowData, type MRT_TableInstance } from '../types';
|
|
3
|
-
interface Props<TData extends MRT_RowData> extends IconButtonProps {
|
|
4
|
-
cell: MRT_Cell<TData>;
|
|
5
|
-
row: MRT_Row<TData>;
|
|
6
|
-
table: MRT_TableInstance<TData>;
|
|
7
|
-
}
|
|
8
|
-
export declare const MRT_ToggleRowActionMenuButton: <TData extends MRT_RowData>({ cell, row, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export * from './MRT_ColumnPinningButtons';
|
|
2
|
-
export * from './MRT_CopyButton';
|
|
3
|
-
export * from './MRT_EditActionButtons';
|
|
4
|
-
export * from './MRT_ExpandAllButton';
|
|
5
|
-
export * from './MRT_ExpandButton';
|
|
6
|
-
export * from './MRT_GrabHandleButton';
|
|
7
|
-
export * from './MRT_RowPinButton';
|
|
8
|
-
export * from './MRT_ShowHideColumnsButton';
|
|
9
|
-
export * from './MRT_ToggleDensePaddingButton';
|
|
10
|
-
export * from './MRT_ToggleFiltersButton';
|
|
11
|
-
export * from './MRT_ToggleFullScreenButton';
|
|
12
|
-
export * from './MRT_ToggleGlobalFilterButton';
|
|
13
|
-
export * from './MRT_ToggleRowActionMenuButton';
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
import { type Renderable, type Row } from '@tanstack/react-table';
|
|
3
|
-
import { type Range } from '@tanstack/react-virtual';
|
|
4
|
-
import { type MRT_AggregationFns } from './aggregationFns';
|
|
5
|
-
import { type MRT_FilterFns } from './filterFns';
|
|
6
|
-
import { type MRT_SortingFns } from './sortingFns';
|
|
7
|
-
import { type MRT_Column, type MRT_ColumnDef, type MRT_ColumnHelper, type MRT_ColumnOrderState, type MRT_DefinedColumnDef, type MRT_DisplayColumnIds, type MRT_FilterOption, type MRT_GroupingState, type MRT_Row, type MRT_RowData, type MRT_TableInstance, type MRT_TableOptions } from './types';
|
|
8
|
-
export declare const getColumnId: <TData extends MRT_RowData>(columnDef: MRT_ColumnDef<TData>) => string;
|
|
9
|
-
export declare const getAllLeafColumnDefs: <TData extends MRT_RowData>(columns: MRT_ColumnDef<TData>[]) => MRT_ColumnDef<TData>[];
|
|
10
|
-
export declare const prepareColumns: <TData extends MRT_RowData>({ aggregationFns, columnDefs, columnFilterFns, defaultDisplayColumn, filterFns, sortingFns, }: {
|
|
11
|
-
aggregationFns: {
|
|
12
|
-
sum: import("@tanstack/react-table").AggregationFn<any>;
|
|
13
|
-
min: import("@tanstack/react-table").AggregationFn<any>;
|
|
14
|
-
max: import("@tanstack/react-table").AggregationFn<any>;
|
|
15
|
-
extent: import("@tanstack/react-table").AggregationFn<any>;
|
|
16
|
-
mean: import("@tanstack/react-table").AggregationFn<any>;
|
|
17
|
-
median: import("@tanstack/react-table").AggregationFn<any>;
|
|
18
|
-
unique: import("@tanstack/react-table").AggregationFn<any>;
|
|
19
|
-
uniqueCount: import("@tanstack/react-table").AggregationFn<any>;
|
|
20
|
-
count: import("@tanstack/react-table").AggregationFn<any>;
|
|
21
|
-
} & Record<string, import("@tanstack/react-table").AggregationFn<any>>;
|
|
22
|
-
columnDefs: MRT_ColumnDef<TData>[];
|
|
23
|
-
columnFilterFns: {
|
|
24
|
-
[key: string]: MRT_FilterOption;
|
|
25
|
-
};
|
|
26
|
-
defaultDisplayColumn: Partial<MRT_ColumnDef<TData>>;
|
|
27
|
-
filterFns: {
|
|
28
|
-
between: {
|
|
29
|
-
<TData_1 extends MRT_RowData>(row: Row<TData_1>, id: string, filterValues: [string | number, string | number]): boolean;
|
|
30
|
-
autoRemove(val: any): boolean;
|
|
31
|
-
};
|
|
32
|
-
betweenInclusive: {
|
|
33
|
-
<TData_2 extends MRT_RowData>(row: Row<TData_2>, id: string, filterValues: [string | number, string | number]): boolean;
|
|
34
|
-
autoRemove(val: any): boolean;
|
|
35
|
-
};
|
|
36
|
-
contains: {
|
|
37
|
-
<TData_3 extends MRT_RowData>(row: Row<TData_3>, id: string, filterValue: string | number): boolean;
|
|
38
|
-
autoRemove(val: any): boolean;
|
|
39
|
-
};
|
|
40
|
-
empty: {
|
|
41
|
-
<TData_4 extends MRT_RowData>(row: Row<TData_4>, id: string, _filterValue: string | number): boolean;
|
|
42
|
-
autoRemove(val: any): boolean;
|
|
43
|
-
};
|
|
44
|
-
endsWith: {
|
|
45
|
-
<TData_5 extends MRT_RowData>(row: Row<TData_5>, id: string, filterValue: string | number): boolean;
|
|
46
|
-
autoRemove(val: any): boolean;
|
|
47
|
-
};
|
|
48
|
-
equals: {
|
|
49
|
-
<TData_6 extends MRT_RowData>(row: Row<TData_6>, id: string, filterValue: string | number): boolean;
|
|
50
|
-
autoRemove(val: any): boolean;
|
|
51
|
-
};
|
|
52
|
-
fuzzy: {
|
|
53
|
-
<TData_7 extends MRT_RowData>(row: Row<TData_7>, columnId: string, filterValue: string | number, addMeta: (item: import("@tanstack/match-sorter-utils").RankingInfo) => void): boolean;
|
|
54
|
-
autoRemove(val: any): boolean;
|
|
55
|
-
};
|
|
56
|
-
greaterThan: {
|
|
57
|
-
<TData_8 extends MRT_RowData>(row: Row<TData_8>, id: string, filterValue: string | number): boolean;
|
|
58
|
-
autoRemove(val: any): boolean;
|
|
59
|
-
};
|
|
60
|
-
greaterThanOrEqualTo: {
|
|
61
|
-
<TData_9 extends MRT_RowData>(row: Row<TData_9>, id: string, filterValue: string | number): boolean;
|
|
62
|
-
autoRemove(val: any): boolean;
|
|
63
|
-
};
|
|
64
|
-
lessThan: {
|
|
65
|
-
<TData_10 extends MRT_RowData>(row: Row<TData_10>, id: string, filterValue: string | number): boolean;
|
|
66
|
-
autoRemove(val: any): boolean;
|
|
67
|
-
};
|
|
68
|
-
lessThanOrEqualTo: {
|
|
69
|
-
<TData_11 extends MRT_RowData>(row: Row<TData_11>, id: string, filterValue: string | number): boolean;
|
|
70
|
-
autoRemove(val: any): boolean;
|
|
71
|
-
};
|
|
72
|
-
notEmpty: {
|
|
73
|
-
<TData_12 extends MRT_RowData>(row: Row<TData_12>, id: string, _filterValue: string | number): boolean;
|
|
74
|
-
autoRemove(val: any): boolean;
|
|
75
|
-
};
|
|
76
|
-
notEquals: {
|
|
77
|
-
<TData_13 extends MRT_RowData>(row: Row<TData_13>, id: string, filterValue: string | number): boolean;
|
|
78
|
-
autoRemove(val: any): boolean;
|
|
79
|
-
};
|
|
80
|
-
startsWith: {
|
|
81
|
-
<TData_14 extends MRT_RowData>(row: Row<TData_14>, id: string, filterValue: string | number): boolean;
|
|
82
|
-
autoRemove(val: any): boolean;
|
|
83
|
-
};
|
|
84
|
-
includesString: import("@tanstack/react-table").FilterFn<any>;
|
|
85
|
-
includesStringSensitive: import("@tanstack/react-table").FilterFn<any>;
|
|
86
|
-
equalsString: import("@tanstack/react-table").FilterFn<any>;
|
|
87
|
-
arrIncludes: import("@tanstack/react-table").FilterFn<any>;
|
|
88
|
-
arrIncludesAll: import("@tanstack/react-table").FilterFn<any>;
|
|
89
|
-
arrIncludesSome: import("@tanstack/react-table").FilterFn<any>;
|
|
90
|
-
weakEquals: import("@tanstack/react-table").FilterFn<any>;
|
|
91
|
-
inNumberRange: import("@tanstack/react-table").FilterFn<any>;
|
|
92
|
-
} & Record<string, import("@tanstack/react-table").FilterFn<any>>;
|
|
93
|
-
sortingFns: {
|
|
94
|
-
fuzzy: <TData_15 extends MRT_RowData>(rowA: Row<TData_15>, rowB: Row<TData_15>, columnId: string) => number;
|
|
95
|
-
alphanumeric: import("@tanstack/react-table").SortingFn<any>;
|
|
96
|
-
alphanumericCaseSensitive: import("@tanstack/react-table").SortingFn<any>;
|
|
97
|
-
text: import("@tanstack/react-table").SortingFn<any>;
|
|
98
|
-
textCaseSensitive: import("@tanstack/react-table").SortingFn<any>;
|
|
99
|
-
datetime: import("@tanstack/react-table").SortingFn<any>;
|
|
100
|
-
basic: import("@tanstack/react-table").SortingFn<any>;
|
|
101
|
-
} & Record<string, import("@tanstack/react-table").SortingFn<any>>;
|
|
102
|
-
}) => MRT_DefinedColumnDef<TData>[];
|
|
103
|
-
export declare const reorderColumn: <TData extends MRT_RowData>(draggedColumn: MRT_Column<TData>, targetColumn: MRT_Column<TData>, columnOrder: MRT_ColumnOrderState) => MRT_ColumnOrderState;
|
|
104
|
-
export declare const showExpandColumn: <TData extends MRT_RowData>(props: MRT_TableOptions<TData>, grouping?: MRT_GroupingState) => boolean;
|
|
105
|
-
export declare const getLeadingDisplayColumnIds: <TData extends MRT_RowData>(props: MRT_TableOptions<TData>) => MRT_DisplayColumnIds[];
|
|
106
|
-
export declare const getTrailingDisplayColumnIds: <TData extends MRT_RowData>(props: MRT_TableOptions<TData>) => MRT_DisplayColumnIds[];
|
|
107
|
-
export declare const getDefaultColumnOrderIds: <TData extends MRT_RowData>(props: MRT_TableOptions<TData>) => string[];
|
|
108
|
-
export declare const getDefaultColumnFilterFn: <TData extends MRT_RowData>(columnDef: MRT_ColumnDef<TData>) => MRT_FilterOption;
|
|
109
|
-
export declare const getIsFirstColumn: <TData extends MRT_RowData>(column: MRT_Column<TData>, table: MRT_TableInstance<TData>) => boolean;
|
|
110
|
-
export declare const getIsLastColumn: <TData extends MRT_RowData>(column: MRT_Column<TData>, table: MRT_TableInstance<TData>) => boolean;
|
|
111
|
-
export declare const getIsLastLeftPinnedColumn: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>, column: MRT_Column<TData>) => boolean;
|
|
112
|
-
export declare const getIsFirstRightPinnedColumn: <TData extends MRT_RowData>(column: MRT_Column<TData>) => boolean;
|
|
113
|
-
export declare const getTotalRight: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>, column: MRT_Column<TData>) => number;
|
|
114
|
-
export declare const getCanRankRows: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>) => boolean | undefined;
|
|
115
|
-
export declare const parseFromValuesOrFunc: <T, U>(fn: T | ((arg: U) => T) | undefined, arg: U) => T | undefined;
|
|
116
|
-
export declare const flexRender: (Comp: Renderable<any>, props: any) => JSX.Element | ReactNode;
|
|
117
|
-
export declare const createRow: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>, originalRow?: TData | undefined) => MRT_Row<TData>;
|
|
118
|
-
export declare const extraIndexRangeExtractor: (range: Range, draggingIndex: number) => number[];
|
|
119
|
-
export declare function createMRTColumnHelper<TData extends MRT_RowData>(): MRT_ColumnHelper<TData>;
|
|
120
|
-
export declare const getValueAndLabel: (option: {
|
|
121
|
-
label?: string;
|
|
122
|
-
text?: string;
|
|
123
|
-
value: string;
|
|
124
|
-
} | string) => {
|
|
125
|
-
label: string;
|
|
126
|
-
value: string;
|
|
127
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { type RankingInfo } from '@tanstack/match-sorter-utils';
|
|
2
|
-
import { type Row } from '@tanstack/react-table';
|
|
3
|
-
import { type MRT_RowData } from './types';
|
|
4
|
-
export declare const MRT_FilterFns: {
|
|
5
|
-
between: {
|
|
6
|
-
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValues: [number | string, number | string]): boolean;
|
|
7
|
-
autoRemove(val: any): boolean;
|
|
8
|
-
};
|
|
9
|
-
betweenInclusive: {
|
|
10
|
-
<TData_1 extends MRT_RowData>(row: Row<TData_1>, id: string, filterValues: [number | string, number | string]): boolean;
|
|
11
|
-
autoRemove(val: any): boolean;
|
|
12
|
-
};
|
|
13
|
-
contains: {
|
|
14
|
-
<TData_2 extends MRT_RowData>(row: Row<TData_2>, id: string, filterValue: number | string): boolean;
|
|
15
|
-
autoRemove(val: any): boolean;
|
|
16
|
-
};
|
|
17
|
-
empty: {
|
|
18
|
-
<TData_3 extends MRT_RowData>(row: Row<TData_3>, id: string, _filterValue: number | string): boolean;
|
|
19
|
-
autoRemove(val: any): boolean;
|
|
20
|
-
};
|
|
21
|
-
endsWith: {
|
|
22
|
-
<TData_4 extends MRT_RowData>(row: Row<TData_4>, id: string, filterValue: number | string): boolean;
|
|
23
|
-
autoRemove(val: any): boolean;
|
|
24
|
-
};
|
|
25
|
-
equals: {
|
|
26
|
-
<TData_5 extends MRT_RowData>(row: Row<TData_5>, id: string, filterValue: number | string): boolean;
|
|
27
|
-
autoRemove(val: any): boolean;
|
|
28
|
-
};
|
|
29
|
-
fuzzy: {
|
|
30
|
-
<TData_6 extends MRT_RowData>(row: Row<TData_6>, columnId: string, filterValue: number | string, addMeta: (item: RankingInfo) => void): boolean;
|
|
31
|
-
autoRemove(val: any): boolean;
|
|
32
|
-
};
|
|
33
|
-
greaterThan: {
|
|
34
|
-
<TData_7 extends MRT_RowData>(row: Row<TData_7>, id: string, filterValue: number | string): boolean;
|
|
35
|
-
autoRemove(val: any): boolean;
|
|
36
|
-
};
|
|
37
|
-
greaterThanOrEqualTo: {
|
|
38
|
-
<TData_8 extends MRT_RowData>(row: Row<TData_8>, id: string, filterValue: number | string): boolean;
|
|
39
|
-
autoRemove(val: any): boolean;
|
|
40
|
-
};
|
|
41
|
-
lessThan: {
|
|
42
|
-
<TData_9 extends MRT_RowData>(row: Row<TData_9>, id: string, filterValue: number | string): boolean;
|
|
43
|
-
autoRemove(val: any): boolean;
|
|
44
|
-
};
|
|
45
|
-
lessThanOrEqualTo: {
|
|
46
|
-
<TData_10 extends MRT_RowData>(row: Row<TData_10>, id: string, filterValue: number | string): boolean;
|
|
47
|
-
autoRemove(val: any): boolean;
|
|
48
|
-
};
|
|
49
|
-
notEmpty: {
|
|
50
|
-
<TData_11 extends MRT_RowData>(row: Row<TData_11>, id: string, _filterValue: number | string): boolean;
|
|
51
|
-
autoRemove(val: any): boolean;
|
|
52
|
-
};
|
|
53
|
-
notEquals: {
|
|
54
|
-
<TData_12 extends MRT_RowData>(row: Row<TData_12>, id: string, filterValue: number | string): boolean;
|
|
55
|
-
autoRemove(val: any): boolean;
|
|
56
|
-
};
|
|
57
|
-
startsWith: {
|
|
58
|
-
<TData_13 extends MRT_RowData>(row: Row<TData_13>, id: string, filterValue: number | string): boolean;
|
|
59
|
-
autoRemove(val: any): boolean;
|
|
60
|
-
};
|
|
61
|
-
includesString: import("@tanstack/react-table").FilterFn<any>;
|
|
62
|
-
includesStringSensitive: import("@tanstack/react-table").FilterFn<any>;
|
|
63
|
-
equalsString: import("@tanstack/react-table").FilterFn<any>;
|
|
64
|
-
arrIncludes: import("@tanstack/react-table").FilterFn<any>;
|
|
65
|
-
arrIncludesAll: import("@tanstack/react-table").FilterFn<any>;
|
|
66
|
-
arrIncludesSome: import("@tanstack/react-table").FilterFn<any>;
|
|
67
|
-
weakEquals: import("@tanstack/react-table").FilterFn<any>;
|
|
68
|
-
inNumberRange: import("@tanstack/react-table").FilterFn<any>;
|
|
69
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type VirtualItem } from '@tanstack/react-virtual';
|
|
2
|
-
import { type TableFooterProps } from '@mui/material/TableFooter';
|
|
3
|
-
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
|
4
|
-
interface Props<TData extends MRT_RowData> extends TableFooterProps {
|
|
5
|
-
table: MRT_TableInstance<TData>;
|
|
6
|
-
virtualColumns?: VirtualItem[];
|
|
7
|
-
virtualPaddingLeft?: number;
|
|
8
|
-
virtualPaddingRight?: number;
|
|
9
|
-
}
|
|
10
|
-
export declare const MRT_TableFooter: <TData extends MRT_RowData>({ table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type TableCellProps } from '@mui/material/TableCell';
|
|
2
|
-
import { type MRT_Header, type MRT_RowData, type MRT_TableInstance } from '../types';
|
|
3
|
-
interface Props<TData extends MRT_RowData> extends TableCellProps {
|
|
4
|
-
footer: MRT_Header<TData>;
|
|
5
|
-
table: MRT_TableInstance<TData>;
|
|
6
|
-
}
|
|
7
|
-
export declare const MRT_TableFooterCell: <TData extends MRT_RowData>({ footer, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type VirtualItem } from '@tanstack/react-virtual';
|
|
2
|
-
import { type TableRowProps } from '@mui/material/TableRow';
|
|
3
|
-
import { type MRT_HeaderGroup, type MRT_RowData, type MRT_TableInstance } from '../types';
|
|
4
|
-
interface Props<TData extends MRT_RowData> extends TableRowProps {
|
|
5
|
-
footerGroup: MRT_HeaderGroup<TData>;
|
|
6
|
-
table: MRT_TableInstance<TData>;
|
|
7
|
-
virtualColumns?: VirtualItem[];
|
|
8
|
-
virtualPaddingLeft?: number;
|
|
9
|
-
virtualPaddingRight?: number;
|
|
10
|
-
}
|
|
11
|
-
export declare const MRT_TableFooterRow: <TData extends MRT_RowData>({ footerGroup, table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
-
export {};
|