@cutting/material-react-table 4.0.1 → 4.0.3
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.esm.js +35 -69
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +39 -73
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/toolbar/MRT_BottomToolbar.tsx +1 -2
- package/src/components/toolbar/MRT_TablePagination.tsx +1 -2
- package/src/components/toolbar/MRT_TopToolbar.tsx +1 -2
- package/src/icons.ts +1 -35
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
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';
|
|
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, useMediaQuery, InputLabel, Select, Pagination, PaginationItem, Fade, Dialog, DialogTitle, DialogContent, DialogActions, Table, TableContainer, Paper } from '@mui/material';
|
|
3
3
|
import { useMemo, useCallback, useState, memo, useEffect, useRef, Fragment as Fragment$1, useId, useReducer, useLayoutEffect } from 'react';
|
|
4
4
|
import { compareItems, rankItem, rankings } from '@tanstack/match-sorter-utils';
|
|
5
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';
|
|
@@ -10,41 +10,7 @@ import { debounce } from '@mui/material/utils';
|
|
|
10
10
|
import { DatePicker } from '@mui/x-date-pickers/DatePicker';
|
|
11
11
|
import { DateTimePicker } from '@mui/x-date-pickers/DateTimePicker';
|
|
12
12
|
import { TimePicker } from '@mui/x-date-pickers/TimePicker';
|
|
13
|
-
import
|
|
14
|
-
import ArrowRightIcon from '@mui/icons-material/ArrowRight';
|
|
15
|
-
import CancelIcon from '@mui/icons-material/Cancel';
|
|
16
|
-
import ChevronLeftIcon from '@mui/icons-material/ChevronLeft';
|
|
17
|
-
import ChevronRightIcon from '@mui/icons-material/ChevronRight';
|
|
18
|
-
import ClearAllIcon from '@mui/icons-material/ClearAll';
|
|
19
|
-
import CloseIcon from '@mui/icons-material/Close';
|
|
20
|
-
import ContentCopy from '@mui/icons-material/ContentCopy';
|
|
21
|
-
import DensityLargeIcon from '@mui/icons-material/DensityLarge';
|
|
22
|
-
import DensityMediumIcon from '@mui/icons-material/DensityMedium';
|
|
23
|
-
import DensitySmallIcon from '@mui/icons-material/DensitySmall';
|
|
24
|
-
import DragHandleIcon from '@mui/icons-material/DragHandle';
|
|
25
|
-
import DynamicFeedIcon from '@mui/icons-material/DynamicFeed';
|
|
26
|
-
import EditIcon from '@mui/icons-material/Edit';
|
|
27
|
-
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
|
|
28
|
-
import FilterAltIcon from '@mui/icons-material/FilterAlt';
|
|
29
|
-
import FilterListIcon from '@mui/icons-material/FilterList';
|
|
30
|
-
import FilterListOffIcon from '@mui/icons-material/FilterListOff';
|
|
31
|
-
import FirstPageIcon from '@mui/icons-material/FirstPage';
|
|
32
|
-
import FullscreenIcon from '@mui/icons-material/Fullscreen';
|
|
33
|
-
import FullscreenExitIcon from '@mui/icons-material/FullscreenExit';
|
|
34
|
-
import KeyboardDoubleArrowDownIcon from '@mui/icons-material/KeyboardDoubleArrowDown';
|
|
35
|
-
import LastPageIcon from '@mui/icons-material/LastPage';
|
|
36
|
-
import MoreHorizIcon from '@mui/icons-material/MoreHoriz';
|
|
37
|
-
import MoreVertIcon from '@mui/icons-material/MoreVert';
|
|
38
|
-
import PushPinIcon from '@mui/icons-material/PushPin';
|
|
39
|
-
import RestartAltIcon from '@mui/icons-material/RestartAlt';
|
|
40
|
-
import SaveIcon from '@mui/icons-material/Save';
|
|
41
|
-
import SearchIcon from '@mui/icons-material/Search';
|
|
42
|
-
import SearchOffIcon from '@mui/icons-material/SearchOff';
|
|
43
|
-
import SortIcon from '@mui/icons-material/Sort';
|
|
44
|
-
import SyncAltIcon from '@mui/icons-material/SyncAlt';
|
|
45
|
-
import ViewColumnIcon from '@mui/icons-material/ViewColumn';
|
|
46
|
-
import VisibilityOffIcon from '@mui/icons-material/VisibilityOff';
|
|
47
|
-
import useMediaQuery from '@mui/material/useMediaQuery';
|
|
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';
|
|
48
14
|
|
|
49
15
|
/******************************************************************************
|
|
50
16
|
Copyright (c) Microsoft Corporation.
|
|
@@ -3383,40 +3349,40 @@ const MRT_FilterFns = Object.assign(Object.assign({}, filterFns), { between,
|
|
|
3383
3349
|
startsWith });
|
|
3384
3350
|
|
|
3385
3351
|
const MRT_Default_Icons = {
|
|
3386
|
-
ArrowDownwardIcon,
|
|
3387
|
-
ArrowRightIcon,
|
|
3388
|
-
CancelIcon,
|
|
3389
|
-
ChevronLeftIcon,
|
|
3390
|
-
ChevronRightIcon,
|
|
3391
|
-
ClearAllIcon,
|
|
3392
|
-
CloseIcon,
|
|
3352
|
+
ArrowDownwardIcon: ArrowDownward,
|
|
3353
|
+
ArrowRightIcon: ArrowRight,
|
|
3354
|
+
CancelIcon: Cancel,
|
|
3355
|
+
ChevronLeftIcon: ChevronLeft,
|
|
3356
|
+
ChevronRightIcon: ChevronRight,
|
|
3357
|
+
ClearAllIcon: ClearAll,
|
|
3358
|
+
CloseIcon: Close,
|
|
3393
3359
|
ContentCopy,
|
|
3394
|
-
DensityLargeIcon,
|
|
3395
|
-
DensityMediumIcon,
|
|
3396
|
-
DensitySmallIcon,
|
|
3397
|
-
DragHandleIcon,
|
|
3398
|
-
DynamicFeedIcon,
|
|
3399
|
-
EditIcon,
|
|
3400
|
-
ExpandMoreIcon,
|
|
3401
|
-
FilterAltIcon,
|
|
3402
|
-
FilterListIcon,
|
|
3403
|
-
FilterListOffIcon,
|
|
3404
|
-
FirstPageIcon,
|
|
3405
|
-
FullscreenExitIcon,
|
|
3406
|
-
FullscreenIcon,
|
|
3407
|
-
KeyboardDoubleArrowDownIcon,
|
|
3408
|
-
LastPageIcon,
|
|
3409
|
-
MoreHorizIcon,
|
|
3410
|
-
MoreVertIcon,
|
|
3411
|
-
PushPinIcon,
|
|
3412
|
-
RestartAltIcon,
|
|
3413
|
-
SaveIcon,
|
|
3414
|
-
SearchIcon,
|
|
3415
|
-
SearchOffIcon,
|
|
3416
|
-
SortIcon,
|
|
3417
|
-
SyncAltIcon,
|
|
3418
|
-
ViewColumnIcon,
|
|
3419
|
-
VisibilityOffIcon,
|
|
3360
|
+
DensityLargeIcon: DensityLarge,
|
|
3361
|
+
DensityMediumIcon: DensityMedium,
|
|
3362
|
+
DensitySmallIcon: DensitySmall,
|
|
3363
|
+
DragHandleIcon: DragHandle,
|
|
3364
|
+
DynamicFeedIcon: DynamicFeed,
|
|
3365
|
+
EditIcon: Edit,
|
|
3366
|
+
ExpandMoreIcon: ExpandMore,
|
|
3367
|
+
FilterAltIcon: FilterAlt,
|
|
3368
|
+
FilterListIcon: FilterList,
|
|
3369
|
+
FilterListOffIcon: FilterListOff,
|
|
3370
|
+
FirstPageIcon: FirstPage,
|
|
3371
|
+
FullscreenExitIcon: FullscreenExit,
|
|
3372
|
+
FullscreenIcon: Fullscreen,
|
|
3373
|
+
KeyboardDoubleArrowDownIcon: KeyboardDoubleArrowDown,
|
|
3374
|
+
LastPageIcon: LastPage,
|
|
3375
|
+
MoreHorizIcon: MoreHoriz,
|
|
3376
|
+
MoreVertIcon: MoreVert,
|
|
3377
|
+
PushPinIcon: PushPin,
|
|
3378
|
+
RestartAltIcon: RestartAlt,
|
|
3379
|
+
SaveIcon: Save,
|
|
3380
|
+
SearchIcon: Search,
|
|
3381
|
+
SearchOffIcon: SearchOff,
|
|
3382
|
+
SortIcon: Sort,
|
|
3383
|
+
SyncAltIcon: SyncAlt,
|
|
3384
|
+
ViewColumnIcon: ViewColumn,
|
|
3385
|
+
VisibilityOffIcon: VisibilityOff,
|
|
3420
3386
|
};
|
|
3421
3387
|
|
|
3422
3388
|
const MRT_Localization_EN = {
|