material-react-table 1.3.2 → 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/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 +1 -1
- 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';
|
package/dist/cjs/index.js
CHANGED
|
@@ -2897,10 +2897,100 @@ const MRT_Localization_EN = {
|
|
|
2897
2897
|
unsorted: 'Unsorted',
|
|
2898
2898
|
};
|
|
2899
2899
|
|
|
2900
|
+
const MRT_Localization_FA = {
|
|
2901
|
+
actions: 'عملیات',
|
|
2902
|
+
and: 'و',
|
|
2903
|
+
cancel: 'انصراف',
|
|
2904
|
+
changeFilterMode: 'تغییر حالت فیلتر',
|
|
2905
|
+
changeSearchMode: 'تغییر حالت جستجو',
|
|
2906
|
+
clearFilter: 'پاک کردن فیلتر',
|
|
2907
|
+
clearSearch: 'پاک کردن جستجو',
|
|
2908
|
+
clearSort: 'پاک کردن مرتب سازی',
|
|
2909
|
+
clickToCopy: 'کپی کردن',
|
|
2910
|
+
columnActions: 'اقدامات ستون',
|
|
2911
|
+
copiedToClipboard: 'کپی به کلیپ بورد',
|
|
2912
|
+
dropToGroupBy: 'حذف گروه بندی {column}',
|
|
2913
|
+
edit: 'ویرایش',
|
|
2914
|
+
expand: 'باز کردن',
|
|
2915
|
+
expandAll: 'باز کردن همه',
|
|
2916
|
+
filterArrIncludes: 'شامل',
|
|
2917
|
+
filterArrIncludesAll: 'شامل همه',
|
|
2918
|
+
filterArrIncludesSome: 'شامل برخی',
|
|
2919
|
+
filterBetween: 'بین',
|
|
2920
|
+
filterBetweenInclusive: 'شامل بین',
|
|
2921
|
+
filterByColumn: 'فیلتر توسط {column}',
|
|
2922
|
+
filterContains: 'شامل',
|
|
2923
|
+
filterEmpty: 'خالی',
|
|
2924
|
+
filterEndsWith: 'به پایان می رسد با',
|
|
2925
|
+
filterEquals: 'مساوی',
|
|
2926
|
+
filterEqualsString: 'مساوی',
|
|
2927
|
+
filterFuzzy: 'درهم',
|
|
2928
|
+
filterGreaterThan: 'بزرگتر از',
|
|
2929
|
+
filterGreaterThanOrEqualTo: 'بزرگتر مساوی با',
|
|
2930
|
+
filterInNumberRange: 'بین',
|
|
2931
|
+
filterIncludesString: 'شامل',
|
|
2932
|
+
filterIncludesStringSensitive: 'شامل',
|
|
2933
|
+
filterLessThan: 'کمتر از',
|
|
2934
|
+
filterLessThanOrEqualTo: 'کمتر مساوی با',
|
|
2935
|
+
filterMode: ' فیلتر :{filterType}',
|
|
2936
|
+
filterNotEmpty: 'خالی نبودن ',
|
|
2937
|
+
filterNotEquals: 'مساوی نبودن با ',
|
|
2938
|
+
filterStartsWith: 'شروع با ',
|
|
2939
|
+
filterWeakEquals: 'مساوی با ',
|
|
2940
|
+
filteringByColumn: 'فیلتر با {column} - {filtertype} {filtervalue}',
|
|
2941
|
+
goToFirstPage: 'صفحه اول',
|
|
2942
|
+
goToLastPage: 'صفحه آخر',
|
|
2943
|
+
goToNextPage: 'صفحه بعد',
|
|
2944
|
+
goToPreviousPage: 'صفحه قبل',
|
|
2945
|
+
grab: 'گرفتن',
|
|
2946
|
+
groupByColumn: 'گروه بندی توسط {column}',
|
|
2947
|
+
groupedBy: 'گروه بندی توسط ',
|
|
2948
|
+
hideAll: 'پنهان کردن همه',
|
|
2949
|
+
hideColumn: 'پنهان کردن ستون {column}',
|
|
2950
|
+
max: 'حداکثر',
|
|
2951
|
+
min: 'حداقل',
|
|
2952
|
+
move: 'حرکت',
|
|
2953
|
+
noRecordsToDisplay: 'موردی برای نمایش نمی باشد.',
|
|
2954
|
+
noResultsFound: 'موردی یافت نشد.',
|
|
2955
|
+
of: 'از',
|
|
2956
|
+
or: 'یا',
|
|
2957
|
+
pinToLeft: 'پین به چپ',
|
|
2958
|
+
pinToRight: 'پین به راست',
|
|
2959
|
+
resetColumnSize: 'تنظیم مجدد اندازه ستون',
|
|
2960
|
+
resetOrder: 'بازنشانی سفارش',
|
|
2961
|
+
rowActions: 'اقدامات ردیف',
|
|
2962
|
+
rowNumber: '#',
|
|
2963
|
+
rowNumbers: 'اعداد ردیف',
|
|
2964
|
+
rowsPerPage: 'تعداد ردیف در هر صفحه',
|
|
2965
|
+
save: 'ذخیره کردن',
|
|
2966
|
+
search: 'جستجو',
|
|
2967
|
+
selectedCountOfRowCountRowsSelected: '{selectedCount} از {rowCount} انتخاب شد',
|
|
2968
|
+
select: 'انتخاب',
|
|
2969
|
+
showAll: 'نمایش همه',
|
|
2970
|
+
showAllColumns: 'نمایش تمام ستون ها',
|
|
2971
|
+
showHideColumns: 'نمایش/مخفی کردن ستون ها',
|
|
2972
|
+
showHideFilters: 'نمایش/مخفی کردن فیلتر ها',
|
|
2973
|
+
showHideSearch: 'نمایش/مخفی کردن جستجو ها',
|
|
2974
|
+
sortByColumnAsc: 'مرتب کردن {column} صعودی ',
|
|
2975
|
+
sortByColumnDesc: 'مرتب کردن نزولی {column} ',
|
|
2976
|
+
sortedByColumnAsc: 'مرتب شده {column} براساس صعودی ',
|
|
2977
|
+
sortedByColumnDesc: 'مرتب شده {column} براساس نزولی ',
|
|
2978
|
+
thenBy: 'سپس توسط ',
|
|
2979
|
+
toggleDensity: 'حجم ردیف ها',
|
|
2980
|
+
toggleFullScreen: 'بزرگنمایی',
|
|
2981
|
+
toggleSelectAll: 'انتخاب همه',
|
|
2982
|
+
toggleSelectRow: 'انتخاب ردیف',
|
|
2983
|
+
toggleVisibility: 'نمایش',
|
|
2984
|
+
ungroupByColumn: 'لغو گروه بندی توسط {column}',
|
|
2985
|
+
unpin: 'پین کردن',
|
|
2986
|
+
unpinAll: 'از پین در آوردن ',
|
|
2987
|
+
unsorted: ' مرتب نشده ',
|
|
2988
|
+
};
|
|
2989
|
+
|
|
2900
2990
|
const MaterialReactTable = (_a) => {
|
|
2901
2991
|
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"]);
|
|
2902
2992
|
const _icons = React.useMemo(() => (Object.assign(Object.assign({}, MRT_Default_Icons), icons)), []);
|
|
2903
|
-
const _localization = React.useMemo(() => (Object.assign(Object.assign({}, MRT_Localization_EN), localization)), [localization]);
|
|
2993
|
+
const _localization = React.useMemo(() => (Object.assign(Object.assign(Object.assign({}, MRT_Localization_EN), MRT_Localization_FA), localization)), [localization]);
|
|
2904
2994
|
const _aggregationFns = React.useMemo(() => (Object.assign(Object.assign({}, MRT_AggregationFns), aggregationFns)), []);
|
|
2905
2995
|
const _filterFns = React.useMemo(() => (Object.assign(Object.assign({}, MRT_FilterFns), filterFns)), []);
|
|
2906
2996
|
const _sortingFns = React.useMemo(() => (Object.assign(Object.assign({}, MRT_SortingFns), sortingFns)), []);
|