material-react-table 1.3.1 → 1.3.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/README.md +0 -4
- package/dist/cjs/MaterialReactTable.d.ts +2 -2
- package/dist/cjs/_locales/fa.d.ts +2 -0
- package/dist/cjs/index.js +91 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/MaterialReactTable.d.ts +2 -2
- package/dist/esm/_locales/fa.d.ts +2 -0
- package/dist/esm/material-react-table.esm.js +91 -1
- package/dist/esm/material-react-table.esm.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/locales/fa.d.ts +2 -0
- package/locales/fa.esm.d.ts +2 -0
- package/locales/fa.esm.js +92 -0
- package/locales/fa.esm.js.map +1 -0
- package/locales/fa.js +96 -0
- package/locales/fa.js.map +1 -0
- package/package.json +2 -2
- package/src/MaterialReactTable.tsx +10 -8
- package/src/_locales/fa.ts +92 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Dispatch, MutableRefObject, ReactNode, SetStateAction } from 'react';
|
|
2
1
|
import type { AlertProps } from '@mui/material/Alert';
|
|
3
2
|
import type { ButtonProps } from '@mui/material/Button';
|
|
4
3
|
import type { CheckboxProps } from '@mui/material/Checkbox';
|
|
@@ -8,17 +7,18 @@ import type { LinearProgressProps } from '@mui/material/LinearProgress';
|
|
|
8
7
|
import type { PaperProps } from '@mui/material/Paper';
|
|
9
8
|
import type { RadioProps } from '@mui/material/Radio';
|
|
10
9
|
import type { SkeletonProps } from '@mui/material/Skeleton';
|
|
10
|
+
import type { TableProps } from '@mui/material/Table';
|
|
11
11
|
import type { TableBodyProps } from '@mui/material/TableBody';
|
|
12
12
|
import type { TableCellProps } from '@mui/material/TableCell';
|
|
13
13
|
import type { TableContainerProps } from '@mui/material/TableContainer';
|
|
14
14
|
import type { TableFooterProps } from '@mui/material/TableFooter';
|
|
15
15
|
import type { TableHeadProps } from '@mui/material/TableHead';
|
|
16
16
|
import type { TablePaginationProps } from '@mui/material/TablePagination';
|
|
17
|
-
import type { TableProps } from '@mui/material/Table';
|
|
18
17
|
import type { TableRowProps } from '@mui/material/TableRow';
|
|
19
18
|
import type { TextFieldProps } from '@mui/material/TextField';
|
|
20
19
|
import type { ToolbarProps } from '@mui/material/Toolbar';
|
|
21
20
|
import type { AggregationFn, Cell, Column, ColumnDef, DeepKeys, FilterFn, Header, HeaderGroup, OnChangeFn, Row, SortingFn, Table, TableOptions, TableState } from '@tanstack/react-table';
|
|
21
|
+
import { Dispatch, MutableRefObject, ReactNode, SetStateAction } from 'react';
|
|
22
22
|
import type { Options as VirtualizerOptions, VirtualItem } from 'react-virtual';
|
|
23
23
|
import { MRT_AggregationFns } from './aggregationFns';
|
|
24
24
|
import { MRT_FilterFns } from './filterFns';
|
|
@@ -2817,10 +2817,100 @@ const MRT_Localization_EN = {
|
|
|
2817
2817
|
unsorted: 'Unsorted',
|
|
2818
2818
|
};
|
|
2819
2819
|
|
|
2820
|
+
const MRT_Localization_FA = {
|
|
2821
|
+
actions: 'عملیات',
|
|
2822
|
+
and: 'و',
|
|
2823
|
+
cancel: 'انصراف',
|
|
2824
|
+
changeFilterMode: 'تغییر حالت فیلتر',
|
|
2825
|
+
changeSearchMode: 'تغییر حالت جستجو',
|
|
2826
|
+
clearFilter: 'پاک کردن فیلتر',
|
|
2827
|
+
clearSearch: 'پاک کردن جستجو',
|
|
2828
|
+
clearSort: 'پاک کردن مرتب سازی',
|
|
2829
|
+
clickToCopy: 'کپی کردن',
|
|
2830
|
+
columnActions: 'اقدامات ستون',
|
|
2831
|
+
copiedToClipboard: 'کپی به کلیپ بورد',
|
|
2832
|
+
dropToGroupBy: 'حذف گروه بندی {column}',
|
|
2833
|
+
edit: 'ویرایش',
|
|
2834
|
+
expand: 'باز کردن',
|
|
2835
|
+
expandAll: 'باز کردن همه',
|
|
2836
|
+
filterArrIncludes: 'شامل',
|
|
2837
|
+
filterArrIncludesAll: 'شامل همه',
|
|
2838
|
+
filterArrIncludesSome: 'شامل برخی',
|
|
2839
|
+
filterBetween: 'بین',
|
|
2840
|
+
filterBetweenInclusive: 'شامل بین',
|
|
2841
|
+
filterByColumn: 'فیلتر توسط {column}',
|
|
2842
|
+
filterContains: 'شامل',
|
|
2843
|
+
filterEmpty: 'خالی',
|
|
2844
|
+
filterEndsWith: 'به پایان می رسد با',
|
|
2845
|
+
filterEquals: 'مساوی',
|
|
2846
|
+
filterEqualsString: 'مساوی',
|
|
2847
|
+
filterFuzzy: 'درهم',
|
|
2848
|
+
filterGreaterThan: 'بزرگتر از',
|
|
2849
|
+
filterGreaterThanOrEqualTo: 'بزرگتر مساوی با',
|
|
2850
|
+
filterInNumberRange: 'بین',
|
|
2851
|
+
filterIncludesString: 'شامل',
|
|
2852
|
+
filterIncludesStringSensitive: 'شامل',
|
|
2853
|
+
filterLessThan: 'کمتر از',
|
|
2854
|
+
filterLessThanOrEqualTo: 'کمتر مساوی با',
|
|
2855
|
+
filterMode: ' فیلتر :{filterType}',
|
|
2856
|
+
filterNotEmpty: 'خالی نبودن ',
|
|
2857
|
+
filterNotEquals: 'مساوی نبودن با ',
|
|
2858
|
+
filterStartsWith: 'شروع با ',
|
|
2859
|
+
filterWeakEquals: 'مساوی با ',
|
|
2860
|
+
filteringByColumn: 'فیلتر با {column} - {filtertype} {filtervalue}',
|
|
2861
|
+
goToFirstPage: 'صفحه اول',
|
|
2862
|
+
goToLastPage: 'صفحه آخر',
|
|
2863
|
+
goToNextPage: 'صفحه بعد',
|
|
2864
|
+
goToPreviousPage: 'صفحه قبل',
|
|
2865
|
+
grab: 'گرفتن',
|
|
2866
|
+
groupByColumn: 'گروه بندی توسط {column}',
|
|
2867
|
+
groupedBy: 'گروه بندی توسط ',
|
|
2868
|
+
hideAll: 'پنهان کردن همه',
|
|
2869
|
+
hideColumn: 'پنهان کردن ستون {column}',
|
|
2870
|
+
max: 'حداکثر',
|
|
2871
|
+
min: 'حداقل',
|
|
2872
|
+
move: 'حرکت',
|
|
2873
|
+
noRecordsToDisplay: 'موردی برای نمایش نمی باشد.',
|
|
2874
|
+
noResultsFound: 'موردی یافت نشد.',
|
|
2875
|
+
of: 'از',
|
|
2876
|
+
or: 'یا',
|
|
2877
|
+
pinToLeft: 'پین به چپ',
|
|
2878
|
+
pinToRight: 'پین به راست',
|
|
2879
|
+
resetColumnSize: 'تنظیم مجدد اندازه ستون',
|
|
2880
|
+
resetOrder: 'بازنشانی سفارش',
|
|
2881
|
+
rowActions: 'اقدامات ردیف',
|
|
2882
|
+
rowNumber: '#',
|
|
2883
|
+
rowNumbers: 'اعداد ردیف',
|
|
2884
|
+
rowsPerPage: 'تعداد ردیف در هر صفحه',
|
|
2885
|
+
save: 'ذخیره کردن',
|
|
2886
|
+
search: 'جستجو',
|
|
2887
|
+
selectedCountOfRowCountRowsSelected: '{selectedCount} از {rowCount} انتخاب شد',
|
|
2888
|
+
select: 'انتخاب',
|
|
2889
|
+
showAll: 'نمایش همه',
|
|
2890
|
+
showAllColumns: 'نمایش تمام ستون ها',
|
|
2891
|
+
showHideColumns: 'نمایش/مخفی کردن ستون ها',
|
|
2892
|
+
showHideFilters: 'نمایش/مخفی کردن فیلتر ها',
|
|
2893
|
+
showHideSearch: 'نمایش/مخفی کردن جستجو ها',
|
|
2894
|
+
sortByColumnAsc: 'مرتب کردن {column} صعودی ',
|
|
2895
|
+
sortByColumnDesc: 'مرتب کردن نزولی {column} ',
|
|
2896
|
+
sortedByColumnAsc: 'مرتب شده {column} براساس صعودی ',
|
|
2897
|
+
sortedByColumnDesc: 'مرتب شده {column} براساس نزولی ',
|
|
2898
|
+
thenBy: 'سپس توسط ',
|
|
2899
|
+
toggleDensity: 'حجم ردیف ها',
|
|
2900
|
+
toggleFullScreen: 'بزرگنمایی',
|
|
2901
|
+
toggleSelectAll: 'انتخاب همه',
|
|
2902
|
+
toggleSelectRow: 'انتخاب ردیف',
|
|
2903
|
+
toggleVisibility: 'نمایش',
|
|
2904
|
+
ungroupByColumn: 'لغو گروه بندی توسط {column}',
|
|
2905
|
+
unpin: 'پین کردن',
|
|
2906
|
+
unpinAll: 'از پین در آوردن ',
|
|
2907
|
+
unsorted: ' مرتب نشده ',
|
|
2908
|
+
};
|
|
2909
|
+
|
|
2820
2910
|
const MaterialReactTable = (_a) => {
|
|
2821
2911
|
var { aggregationFns, autoResetExpanded = false, columnResizeMode = 'onEnd', defaultColumn, defaultDisplayColumn, editingMode = 'modal', enableBottomToolbar = true, enableColumnActions = true, enableColumnFilters = true, enableColumnOrdering = false, enableColumnResizing = false, enableDensityToggle = true, enableExpandAll = true, enableFilters = true, enableFullScreenToggle = true, enableGlobalFilter = true, enableGlobalFilterRankedResults = true, enableGrouping = false, enableHiding = true, enableMultiRowSelection = true, enableMultiSort = true, enablePagination = true, enablePinning = false, enableRowSelection = false, enableSelectAll = true, enableSorting = true, enableStickyHeader = false, enableTableFooter = true, enableTableHead = true, enableToolbarInternalActions = true, enableTopToolbar = true, filterFns, icons, localization, positionActionsColumn = 'first', positionExpandColumn = 'first', positionGlobalFilter = 'right', positionPagination = 'bottom', positionToolbarAlertBanner = 'top', positionToolbarDropZone = 'top', rowNumberMode = 'original', selectAllMode = 'page', sortingFns } = _a, rest = __rest(_a, ["aggregationFns", "autoResetExpanded", "columnResizeMode", "defaultColumn", "defaultDisplayColumn", "editingMode", "enableBottomToolbar", "enableColumnActions", "enableColumnFilters", "enableColumnOrdering", "enableColumnResizing", "enableDensityToggle", "enableExpandAll", "enableFilters", "enableFullScreenToggle", "enableGlobalFilter", "enableGlobalFilterRankedResults", "enableGrouping", "enableHiding", "enableMultiRowSelection", "enableMultiSort", "enablePagination", "enablePinning", "enableRowSelection", "enableSelectAll", "enableSorting", "enableStickyHeader", "enableTableFooter", "enableTableHead", "enableToolbarInternalActions", "enableTopToolbar", "filterFns", "icons", "localization", "positionActionsColumn", "positionExpandColumn", "positionGlobalFilter", "positionPagination", "positionToolbarAlertBanner", "positionToolbarDropZone", "rowNumberMode", "selectAllMode", "sortingFns"]);
|
|
2822
2912
|
const _icons = useMemo(() => (Object.assign(Object.assign({}, MRT_Default_Icons), icons)), []);
|
|
2823
|
-
const _localization = useMemo(() => (Object.assign(Object.assign({}, MRT_Localization_EN), localization)), [localization]);
|
|
2913
|
+
const _localization = useMemo(() => (Object.assign(Object.assign(Object.assign({}, MRT_Localization_EN), MRT_Localization_FA), localization)), [localization]);
|
|
2824
2914
|
const _aggregationFns = useMemo(() => (Object.assign(Object.assign({}, MRT_AggregationFns), aggregationFns)), []);
|
|
2825
2915
|
const _filterFns = useMemo(() => (Object.assign(Object.assign({}, MRT_FilterFns), filterFns)), []);
|
|
2826
2916
|
const _sortingFns = useMemo(() => (Object.assign(Object.assign({}, MRT_SortingFns), sortingFns)), []);
|