@cutting/material-react-table 4.0.0 → 4.0.2
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 +103 -114
- package/dist/index.esm.js +35 -114
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +151 -230
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/src/components/body/MRT_TableBody.tsx +2 -2
- package/src/components/body/MRT_TableBodyCell.tsx +2 -2
- package/src/components/body/MRT_TableBodyCellValue.tsx +1 -1
- package/src/components/body/MRT_TableBodyRow.tsx +1 -1
- package/src/components/body/MRT_TableBodyRowPinButton.tsx +1 -1
- package/src/components/body/MRT_TableDetailPanel.tsx +3 -3
- package/src/components/buttons/MRT_ColumnPinningButtons.tsx +3 -3
- package/src/components/buttons/MRT_CopyButton.tsx +2 -2
- package/src/components/buttons/MRT_EditActionButtons.tsx +5 -5
- package/src/components/buttons/MRT_ExpandAllButton.tsx +2 -2
- package/src/components/buttons/MRT_ExpandButton.tsx +2 -2
- package/src/components/buttons/MRT_GrabHandleButton.tsx +2 -2
- package/src/components/buttons/MRT_RowPinButton.tsx +2 -2
- package/src/components/buttons/MRT_ShowHideColumnsButton.tsx +2 -2
- package/src/components/buttons/MRT_ToggleDensePaddingButton.tsx +2 -2
- package/src/components/buttons/MRT_ToggleFiltersButton.tsx +2 -2
- package/src/components/buttons/MRT_ToggleFullScreenButton.tsx +2 -2
- package/src/components/buttons/MRT_ToggleGlobalFilterButton.tsx +2 -2
- package/src/components/buttons/MRT_ToggleRowActionMenuButton.tsx +2 -2
- package/src/components/footer/MRT_TableFooter.tsx +1 -1
- package/src/components/footer/MRT_TableFooterCell.tsx +1 -1
- package/src/components/footer/MRT_TableFooterRow.tsx +1 -1
- package/src/components/head/MRT_TableHead.tsx +1 -1
- package/src/components/head/MRT_TableHeadCell.tsx +2 -2
- package/src/components/head/MRT_TableHeadCellColumnActionsButton.tsx +2 -2
- package/src/components/head/MRT_TableHeadCellFilterContainer.tsx +1 -1
- package/src/components/head/MRT_TableHeadCellFilterLabel.tsx +5 -5
- package/src/components/head/MRT_TableHeadCellResizeHandle.tsx +2 -2
- package/src/components/head/MRT_TableHeadCellSortLabel.tsx +3 -5
- package/src/components/head/MRT_TableHeadRow.tsx +1 -1
- package/src/components/inputs/MRT_EditCellTextField.tsx +2 -2
- package/src/components/inputs/MRT_FilterCheckbox.tsx +3 -3
- package/src/components/inputs/MRT_FilterRangeFields.tsx +1 -1
- package/src/components/inputs/MRT_FilterRangeSlider.tsx +3 -3
- package/src/components/inputs/MRT_FilterTextField.tsx +9 -12
- package/src/components/inputs/MRT_GlobalFilterTextField.tsx +5 -5
- package/src/components/inputs/MRT_SelectCheckbox.tsx +3 -3
- package/src/components/menus/MRT_ActionMenuItem.tsx +4 -4
- package/src/components/menus/MRT_CellActionMenu.tsx +1 -1
- package/src/components/menus/MRT_ColumnActionMenu.tsx +1 -1
- package/src/components/menus/MRT_FilterOptionMenu.tsx +1 -1
- package/src/components/menus/MRT_RowActionMenu.tsx +1 -1
- package/src/components/menus/MRT_ShowHideColumnsMenu.tsx +4 -4
- package/src/components/menus/MRT_ShowHideColumnsMenuItems.tsx +6 -6
- package/src/components/modals/MRT_EditRowModal.tsx +5 -5
- package/src/components/table/MRT_Table.tsx +1 -1
- package/src/components/table/MRT_TableContainer.tsx +1 -3
- package/src/components/table/MRT_TableLoadingOverlay.tsx +2 -4
- package/src/components/table/MRT_TablePaper.tsx +1 -1
- package/src/components/toolbar/MRT_BottomToolbar.tsx +1 -1
- package/src/components/toolbar/MRT_LinearProgressBar.tsx +2 -4
- package/src/components/toolbar/MRT_TablePagination.tsx +9 -9
- package/src/components/toolbar/MRT_ToolbarAlertBanner.tsx +7 -7
- package/src/components/toolbar/MRT_ToolbarDropZone.tsx +3 -3
- package/src/components/toolbar/MRT_ToolbarInternalButtons.tsx +1 -1
- package/src/components/toolbar/MRT_TopToolbar.tsx +1 -1
- package/src/hooks/display-columns/getMRT_RowExpandColumnDef.tsx +2 -2
- package/src/icons.ts +1 -35
package/dist/index.esm.js
CHANGED
|
@@ -1,96 +1,17 @@
|
|
|
1
1
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import TableBody from '@mui/material
|
|
3
|
-
import Typography from '@mui/material/Typography';
|
|
2
|
+
import { Tooltip, Button, TextField, MenuItem, Box, TableCell, Skeleton, TableRow, Collapse, TableBody, Typography, IconButton, CircularProgress, FormControlLabel, Switch, Menu, Divider, ListItemIcon, TableFooter, Radio, Checkbox, Stack, Chip, Alert, AlertTitle, InputAdornment, Autocomplete, Slider, FormHelperText, Grow, Popover, Badge, TableSortLabel, TableHead, LinearProgress, InputLabel, Select, Pagination, PaginationItem, Fade, Dialog, DialogTitle, DialogContent, DialogActions, Table, TableContainer, Paper } from '@mui/material';
|
|
4
3
|
import { useMemo, useCallback, useState, memo, useEffect, useRef, Fragment as Fragment$1, useId, useReducer, useLayoutEffect } from 'react';
|
|
5
4
|
import { compareItems, rankItem, rankings } from '@tanstack/match-sorter-utils';
|
|
6
5
|
import { sortingFns, flexRender as flexRender$1, createRow as createRow$1, aggregationFns, filterFns, getSortedRowModel, getPaginationRowModel, getGroupedRowModel, getFilteredRowModel, getFacetedUniqueValues, getFacetedRowModel, getFacetedMinMaxValues, getExpandedRowModel, getCoreRowModel, useReactTable } from '@tanstack/react-table';
|
|
7
6
|
import { defaultRangeExtractor, useVirtualizer } from '@tanstack/react-virtual';
|
|
8
7
|
import { alpha, darken, lighten, useTheme } from '@mui/material/styles';
|
|
9
|
-
import TableRow from '@mui/material/TableRow';
|
|
10
|
-
import Skeleton from '@mui/material/Skeleton';
|
|
11
|
-
import TableCell from '@mui/material/TableCell';
|
|
12
|
-
import Button from '@mui/material/Button';
|
|
13
|
-
import Tooltip from '@mui/material/Tooltip';
|
|
14
|
-
import MenuItem from '@mui/material/MenuItem';
|
|
15
|
-
import TextField from '@mui/material/TextField';
|
|
16
|
-
import Box from '@mui/material/Box';
|
|
17
8
|
import highlightWords from 'highlight-words';
|
|
18
|
-
import Collapse from '@mui/material/Collapse';
|
|
19
|
-
import IconButton from '@mui/material/IconButton';
|
|
20
|
-
import CircularProgress from '@mui/material/CircularProgress';
|
|
21
|
-
import Divider from '@mui/material/Divider';
|
|
22
|
-
import Menu from '@mui/material/Menu';
|
|
23
|
-
import FormControlLabel from '@mui/material/FormControlLabel';
|
|
24
|
-
import Switch from '@mui/material/Switch';
|
|
25
|
-
import ListItemIcon from '@mui/material/ListItemIcon';
|
|
26
|
-
import TableFooter from '@mui/material/TableFooter';
|
|
27
|
-
import TableHead from '@mui/material/TableHead';
|
|
28
|
-
import Alert from '@mui/material/Alert';
|
|
29
|
-
import AlertTitle from '@mui/material/AlertTitle';
|
|
30
|
-
import Chip from '@mui/material/Chip';
|
|
31
|
-
import Stack from '@mui/material/Stack';
|
|
32
|
-
import Checkbox from '@mui/material/Checkbox';
|
|
33
|
-
import Radio from '@mui/material/Radio';
|
|
34
|
-
import Autocomplete from '@mui/material/Autocomplete';
|
|
35
|
-
import InputAdornment from '@mui/material/InputAdornment';
|
|
36
9
|
import { debounce } from '@mui/material/utils';
|
|
37
10
|
import { DatePicker } from '@mui/x-date-pickers/DatePicker';
|
|
38
11
|
import { DateTimePicker } from '@mui/x-date-pickers/DateTimePicker';
|
|
39
12
|
import { TimePicker } from '@mui/x-date-pickers/TimePicker';
|
|
40
|
-
import
|
|
41
|
-
import Slider from '@mui/material/Slider';
|
|
42
|
-
import Grow from '@mui/material/Grow';
|
|
43
|
-
import Popover from '@mui/material/Popover';
|
|
44
|
-
import Badge from '@mui/material/Badge';
|
|
45
|
-
import TableSortLabel from '@mui/material/TableSortLabel';
|
|
46
|
-
import ArrowDownwardIcon from '@mui/icons-material/ArrowDownward';
|
|
47
|
-
import ArrowRightIcon from '@mui/icons-material/ArrowRight';
|
|
48
|
-
import CancelIcon from '@mui/icons-material/Cancel';
|
|
49
|
-
import ChevronLeftIcon from '@mui/icons-material/ChevronLeft';
|
|
50
|
-
import ChevronRightIcon from '@mui/icons-material/ChevronRight';
|
|
51
|
-
import ClearAllIcon from '@mui/icons-material/ClearAll';
|
|
52
|
-
import CloseIcon from '@mui/icons-material/Close';
|
|
53
|
-
import ContentCopy from '@mui/icons-material/ContentCopy';
|
|
54
|
-
import DensityLargeIcon from '@mui/icons-material/DensityLarge';
|
|
55
|
-
import DensityMediumIcon from '@mui/icons-material/DensityMedium';
|
|
56
|
-
import DensitySmallIcon from '@mui/icons-material/DensitySmall';
|
|
57
|
-
import DragHandleIcon from '@mui/icons-material/DragHandle';
|
|
58
|
-
import DynamicFeedIcon from '@mui/icons-material/DynamicFeed';
|
|
59
|
-
import EditIcon from '@mui/icons-material/Edit';
|
|
60
|
-
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
|
|
61
|
-
import FilterAltIcon from '@mui/icons-material/FilterAlt';
|
|
62
|
-
import FilterListIcon from '@mui/icons-material/FilterList';
|
|
63
|
-
import FilterListOffIcon from '@mui/icons-material/FilterListOff';
|
|
64
|
-
import FirstPageIcon from '@mui/icons-material/FirstPage';
|
|
65
|
-
import FullscreenIcon from '@mui/icons-material/Fullscreen';
|
|
66
|
-
import FullscreenExitIcon from '@mui/icons-material/FullscreenExit';
|
|
67
|
-
import KeyboardDoubleArrowDownIcon from '@mui/icons-material/KeyboardDoubleArrowDown';
|
|
68
|
-
import LastPageIcon from '@mui/icons-material/LastPage';
|
|
69
|
-
import MoreHorizIcon from '@mui/icons-material/MoreHoriz';
|
|
70
|
-
import MoreVertIcon from '@mui/icons-material/MoreVert';
|
|
71
|
-
import PushPinIcon from '@mui/icons-material/PushPin';
|
|
72
|
-
import RestartAltIcon from '@mui/icons-material/RestartAlt';
|
|
73
|
-
import SaveIcon from '@mui/icons-material/Save';
|
|
74
|
-
import SearchIcon from '@mui/icons-material/Search';
|
|
75
|
-
import SearchOffIcon from '@mui/icons-material/SearchOff';
|
|
76
|
-
import SortIcon from '@mui/icons-material/Sort';
|
|
77
|
-
import SyncAltIcon from '@mui/icons-material/SyncAlt';
|
|
78
|
-
import ViewColumnIcon from '@mui/icons-material/ViewColumn';
|
|
79
|
-
import VisibilityOffIcon from '@mui/icons-material/VisibilityOff';
|
|
80
|
-
import Paper from '@mui/material/Paper';
|
|
13
|
+
import { VisibilityOff, ViewColumn, SyncAlt, Sort, SearchOff, Search, Save, RestartAlt, PushPin, MoreVert, MoreHoriz, LastPage, KeyboardDoubleArrowDown, Fullscreen, FullscreenExit, FirstPage, FilterListOff, FilterList, FilterAlt, ExpandMore, Edit, DynamicFeed, DragHandle, DensitySmall, DensityMedium, DensityLarge, ContentCopy, Close, ClearAll, ChevronRight, ChevronLeft, Cancel, ArrowRight, ArrowDownward } from '@mui/icons-material';
|
|
81
14
|
import useMediaQuery from '@mui/material/useMediaQuery';
|
|
82
|
-
import LinearProgress from '@mui/material/LinearProgress';
|
|
83
|
-
import InputLabel from '@mui/material/InputLabel';
|
|
84
|
-
import Pagination from '@mui/material/Pagination';
|
|
85
|
-
import PaginationItem from '@mui/material/PaginationItem';
|
|
86
|
-
import Select from '@mui/material/Select';
|
|
87
|
-
import Fade from '@mui/material/Fade';
|
|
88
|
-
import TableContainer from '@mui/material/TableContainer';
|
|
89
|
-
import Dialog from '@mui/material/Dialog';
|
|
90
|
-
import DialogActions from '@mui/material/DialogActions';
|
|
91
|
-
import DialogContent from '@mui/material/DialogContent';
|
|
92
|
-
import DialogTitle from '@mui/material/DialogTitle';
|
|
93
|
-
import Table from '@mui/material/Table';
|
|
94
15
|
|
|
95
16
|
/******************************************************************************
|
|
96
17
|
Copyright (c) Microsoft Corporation.
|
|
@@ -3429,40 +3350,40 @@ const MRT_FilterFns = Object.assign(Object.assign({}, filterFns), { between,
|
|
|
3429
3350
|
startsWith });
|
|
3430
3351
|
|
|
3431
3352
|
const MRT_Default_Icons = {
|
|
3432
|
-
ArrowDownwardIcon,
|
|
3433
|
-
ArrowRightIcon,
|
|
3434
|
-
CancelIcon,
|
|
3435
|
-
ChevronLeftIcon,
|
|
3436
|
-
ChevronRightIcon,
|
|
3437
|
-
ClearAllIcon,
|
|
3438
|
-
CloseIcon,
|
|
3353
|
+
ArrowDownwardIcon: ArrowDownward,
|
|
3354
|
+
ArrowRightIcon: ArrowRight,
|
|
3355
|
+
CancelIcon: Cancel,
|
|
3356
|
+
ChevronLeftIcon: ChevronLeft,
|
|
3357
|
+
ChevronRightIcon: ChevronRight,
|
|
3358
|
+
ClearAllIcon: ClearAll,
|
|
3359
|
+
CloseIcon: Close,
|
|
3439
3360
|
ContentCopy,
|
|
3440
|
-
DensityLargeIcon,
|
|
3441
|
-
DensityMediumIcon,
|
|
3442
|
-
DensitySmallIcon,
|
|
3443
|
-
DragHandleIcon,
|
|
3444
|
-
DynamicFeedIcon,
|
|
3445
|
-
EditIcon,
|
|
3446
|
-
ExpandMoreIcon,
|
|
3447
|
-
FilterAltIcon,
|
|
3448
|
-
FilterListIcon,
|
|
3449
|
-
FilterListOffIcon,
|
|
3450
|
-
FirstPageIcon,
|
|
3451
|
-
FullscreenExitIcon,
|
|
3452
|
-
FullscreenIcon,
|
|
3453
|
-
KeyboardDoubleArrowDownIcon,
|
|
3454
|
-
LastPageIcon,
|
|
3455
|
-
MoreHorizIcon,
|
|
3456
|
-
MoreVertIcon,
|
|
3457
|
-
PushPinIcon,
|
|
3458
|
-
RestartAltIcon,
|
|
3459
|
-
SaveIcon,
|
|
3460
|
-
SearchIcon,
|
|
3461
|
-
SearchOffIcon,
|
|
3462
|
-
SortIcon,
|
|
3463
|
-
SyncAltIcon,
|
|
3464
|
-
ViewColumnIcon,
|
|
3465
|
-
VisibilityOffIcon,
|
|
3361
|
+
DensityLargeIcon: DensityLarge,
|
|
3362
|
+
DensityMediumIcon: DensityMedium,
|
|
3363
|
+
DensitySmallIcon: DensitySmall,
|
|
3364
|
+
DragHandleIcon: DragHandle,
|
|
3365
|
+
DynamicFeedIcon: DynamicFeed,
|
|
3366
|
+
EditIcon: Edit,
|
|
3367
|
+
ExpandMoreIcon: ExpandMore,
|
|
3368
|
+
FilterAltIcon: FilterAlt,
|
|
3369
|
+
FilterListIcon: FilterList,
|
|
3370
|
+
FilterListOffIcon: FilterListOff,
|
|
3371
|
+
FirstPageIcon: FirstPage,
|
|
3372
|
+
FullscreenExitIcon: FullscreenExit,
|
|
3373
|
+
FullscreenIcon: Fullscreen,
|
|
3374
|
+
KeyboardDoubleArrowDownIcon: KeyboardDoubleArrowDown,
|
|
3375
|
+
LastPageIcon: LastPage,
|
|
3376
|
+
MoreHorizIcon: MoreHoriz,
|
|
3377
|
+
MoreVertIcon: MoreVert,
|
|
3378
|
+
PushPinIcon: PushPin,
|
|
3379
|
+
RestartAltIcon: RestartAlt,
|
|
3380
|
+
SaveIcon: Save,
|
|
3381
|
+
SearchIcon: Search,
|
|
3382
|
+
SearchOffIcon: SearchOff,
|
|
3383
|
+
SortIcon: Sort,
|
|
3384
|
+
SyncAltIcon: SyncAlt,
|
|
3385
|
+
ViewColumnIcon: ViewColumn,
|
|
3386
|
+
VisibilityOffIcon: VisibilityOff,
|
|
3466
3387
|
};
|
|
3467
3388
|
|
|
3468
3389
|
const MRT_Localization_EN = {
|