material-react-table 1.1.0-beta.0 → 1.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/cjs/MaterialReactTable.d.ts +3 -3
- package/dist/cjs/_locales/ja.d.ts +2 -0
- package/dist/cjs/body/MRT_TableBodyCell.d.ts +1 -0
- package/dist/cjs/body/MRT_TableBodyRow.d.ts +1 -0
- package/dist/cjs/index.js +422 -427
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/table/MRT_TableRoot.d.ts +3 -3
- package/dist/esm/MaterialReactTable.d.ts +3 -3
- package/dist/esm/_locales/ja.d.ts +2 -0
- package/dist/esm/body/MRT_TableBodyCell.d.ts +1 -0
- package/dist/esm/body/MRT_TableBodyRow.d.ts +1 -0
- package/dist/esm/material-react-table.esm.js +422 -427
- package/dist/esm/material-react-table.esm.js.map +1 -1
- package/dist/esm/table/MRT_TableRoot.d.ts +3 -3
- package/dist/index.d.ts +35 -35
- package/locales/ja.d.ts +2 -0
- package/locales/ja.esm.d.ts +2 -0
- package/locales/ja.esm.js +92 -0
- package/locales/ja.esm.js.map +1 -0
- package/locales/ja.js +96 -0
- package/locales/ja.js.map +1 -0
- package/package.json +13 -13
- package/src/MaterialReactTable.tsx +6 -6
- package/src/_locales/ja.ts +92 -1
- package/src/body/MRT_TableBody.tsx +6 -2
- package/src/body/MRT_TableBodyCell.tsx +37 -36
- package/src/body/MRT_TableBodyRow.tsx +15 -9
- package/src/head/MRT_TableHeadCell.tsx +19 -16
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { MRT_Cell, MRT_Column, MRT_ColumnDef, MRT_FilterOption, MRT_Row, MRT_TableInstance, MRT_TableState, MaterialReactTableProps, MRT_Localization } from '..';
|
|
3
|
-
export declare const MRT_TableRoot: <TData extends Record<string, any> = {}>(props: Omit<Partial<import("@tanstack/table-core").TableOptions<TData>>, "
|
|
3
|
+
export declare const MRT_TableRoot: <TData extends Record<string, any> = {}>(props: Omit<Partial<import("@tanstack/table-core").TableOptions<TData>>, "initialState" | "state" | "onStateChange" | "data" | "columns" | "defaultColumn" | "enableRowSelection" | "expandRowsFn"> & {
|
|
4
4
|
columnFilterModeOptions?: (string | (string & Record<never, never>))[] | null | undefined;
|
|
5
5
|
columns: MRT_ColumnDef<TData>[];
|
|
6
6
|
data: TData[];
|
|
@@ -13,7 +13,7 @@ export declare const MRT_TableRoot: <TData extends Record<string, any> = {}>(pro
|
|
|
13
13
|
"mrt-row-select": Partial<MRT_ColumnDef<{}>>;
|
|
14
14
|
"mrt-row-numbers": Partial<MRT_ColumnDef<{}>>;
|
|
15
15
|
}> | undefined;
|
|
16
|
-
editingMode?: "
|
|
16
|
+
editingMode?: "row" | "cell" | "table" | "modal" | undefined;
|
|
17
17
|
enableBottomToolbar?: boolean | undefined;
|
|
18
18
|
enableClickToCopy?: boolean | undefined;
|
|
19
19
|
enableColumnActions?: boolean | undefined;
|
|
@@ -45,7 +45,7 @@ export declare const MRT_TableRoot: <TData extends Record<string, any> = {}>(pro
|
|
|
45
45
|
icons?: Partial<import("..").MRT_Icons> | undefined;
|
|
46
46
|
initialState?: Partial<MRT_TableState<TData>> | undefined;
|
|
47
47
|
localization?: Partial<MRT_Localization> | undefined;
|
|
48
|
-
memoMode?: "
|
|
48
|
+
memoMode?: "rows" | "cells" | "table-body" | undefined;
|
|
49
49
|
muiBottomToolbarProps?: import("@mui/material").ToolbarProps<"div", {}> | (({ table }: {
|
|
50
50
|
table: MRT_TableInstance<TData>;
|
|
51
51
|
}) => import("@mui/material").ToolbarProps<"div", {}>) | undefined;
|
|
@@ -2,8 +2,8 @@ import { Dispatch, MutableRefObject, ReactNode, SetStateAction } from 'react';
|
|
|
2
2
|
import type { AlertProps, ButtonProps, CheckboxProps, ChipProps, IconButtonProps, LinearProgressProps, PaperProps, RadioProps, SkeletonProps, TableBodyProps, TableCellProps, TableContainerProps, TableFooterProps, TableHeadProps, TablePaginationProps, TableProps, TableRowProps, TextFieldProps, ToolbarProps } from '@mui/material';
|
|
3
3
|
import type { Cell, Column, ColumnDef, DeepKeys, FilterFn, Header, HeaderGroup, OnChangeFn, Row, SortingFn, Table, TableOptions, TableState } from '@tanstack/react-table';
|
|
4
4
|
import type { Options as VirtualizerOptions, VirtualItem } from 'react-virtual';
|
|
5
|
-
import { MRT_Icons } from './icons';
|
|
6
5
|
import { MRT_FilterFns } from './filterFns';
|
|
6
|
+
import { MRT_Icons } from './icons';
|
|
7
7
|
import { MRT_SortingFns } from './sortingFns';
|
|
8
8
|
/**
|
|
9
9
|
* Most of this file is just TypeScript types
|
|
@@ -329,7 +329,7 @@ export declare type MRT_ColumnDef<TData extends Record<string, any> = {}> = Omit
|
|
|
329
329
|
onSelectFilterMode: (filterMode: MRT_FilterOption) => void;
|
|
330
330
|
table: MRT_TableInstance<TData>;
|
|
331
331
|
}) => ReactNode[];
|
|
332
|
-
sortingFn?: MRT_SortingFn
|
|
332
|
+
sortingFn?: MRT_SortingFn<TData>;
|
|
333
333
|
};
|
|
334
334
|
export declare type MRT_DefinedColumnDef<TData extends Record<string, any> = {}> = Omit<MRT_ColumnDef<TData>, 'id' | 'defaultDisplayColumn'> & {
|
|
335
335
|
defaultDisplayColumn: Partial<MRT_ColumnDef<TData>>;
|
|
@@ -454,7 +454,7 @@ export declare type MaterialReactTableProps<TData extends Record<string, any> =
|
|
|
454
454
|
* @warning This will break some dynamic rendering features. See the memoization guide for more info:
|
|
455
455
|
* @link https://www.material-react-table.com/docs/guides/memoize-components
|
|
456
456
|
*/
|
|
457
|
-
memoMode?: '
|
|
457
|
+
memoMode?: 'cells' | 'rows' | 'table-body';
|
|
458
458
|
muiBottomToolbarProps?: ToolbarProps | (({ table }: {
|
|
459
459
|
table: MRT_TableInstance<TData>;
|
|
460
460
|
}) => ToolbarProps);
|