@mini_7/material-react-table-mcp 4.0.0 → 4.0.1

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.
Files changed (117) hide show
  1. package/README.md +1 -1
  2. package/data/examples/advanced.js +215 -0
  3. package/data/examples/aggregation-and-grouping.js +116 -0
  4. package/data/examples/aggregation-multi.js +89 -0
  5. package/data/examples/alternate-column-filtering.js +38 -0
  6. package/data/examples/alternate-detail-panel.js +65 -0
  7. package/data/examples/alternate-pagination.js +17 -0
  8. package/data/examples/basic.js +86 -0
  9. package/data/examples/chart-detail-panel.js +69 -0
  10. package/data/examples/column-actions-space.js +34 -0
  11. package/data/examples/column-alignment.js +58 -0
  12. package/data/examples/custom-column-actions.js +74 -0
  13. package/data/examples/custom-column-filtering-ui.js +59 -0
  14. package/data/examples/custom-headless.js +85 -0
  15. package/data/examples/custom-top-toolbar.js +60 -0
  16. package/data/examples/customize-display-columns.js +72 -0
  17. package/data/examples/customize-filter-components.js +78 -0
  18. package/data/examples/customize-filter-modes.js +59 -0
  19. package/data/examples/customize-filter-variants.js +98 -0
  20. package/data/examples/customize-global-filter-component.js +37 -0
  21. package/data/examples/customize-remove-column-grouping.js +75 -0
  22. package/data/examples/customize-row-selection.js +43 -0
  23. package/data/examples/customize-table-styles.js +81 -0
  24. package/data/examples/disable-column-actions.js +26 -0
  25. package/data/examples/disable-column-hiding.js +74 -0
  26. package/data/examples/disable-density-toggle.js +37 -0
  27. package/data/examples/dynamic-columns.js +124 -0
  28. package/data/examples/editing-crud-cell.js +288 -0
  29. package/data/examples/editing-crud-modal.js +275 -0
  30. package/data/examples/editing-crud-row.js +255 -0
  31. package/data/examples/editing-crud-table.js +280 -0
  32. package/data/examples/editing-crud-tree.js +328 -0
  33. package/data/examples/enable-cell-actions.js +52 -0
  34. package/data/examples/enable-click-to-copy.js +33 -0
  35. package/data/examples/enable-column-grouping.js +69 -0
  36. package/data/examples/enable-column-ordering.js +37 -0
  37. package/data/examples/enable-column-pinning.js +58 -0
  38. package/data/examples/enable-column-resizing.js +45 -0
  39. package/data/examples/enable-column-virtualization.js +19 -0
  40. package/data/examples/enable-detail-panel-conditionally.js +61 -0
  41. package/data/examples/enable-detail-panel-virtualized.js +64 -0
  42. package/data/examples/enable-expanding-tree.js +87 -0
  43. package/data/examples/enable-filter-facet-values.js +52 -0
  44. package/data/examples/enable-row-dragging.js +102 -0
  45. package/data/examples/enable-row-numbers-original.js +37 -0
  46. package/data/examples/enable-row-numbers-static.js +37 -0
  47. package/data/examples/enable-row-ordering.js +40 -0
  48. package/data/examples/enable-row-pinning-select.js +64 -0
  49. package/data/examples/enable-row-pinning-static.js +39 -0
  50. package/data/examples/enable-row-pinning-sticky.js +57 -0
  51. package/data/examples/enable-row-selection.js +71 -0
  52. package/data/examples/enable-row-virtualization.js +85 -0
  53. package/data/examples/enable-sticky-header.js +47 -0
  54. package/data/examples/expanding-tree-expanded.js +98 -0
  55. package/data/examples/expanding-tree-flat-parse.js +102 -0
  56. package/data/examples/expanding-tree-root-expanded.js +120 -0
  57. package/data/examples/export-to-csv.js +84 -0
  58. package/data/examples/export-to-pdf.js +76 -0
  59. package/data/examples/external-toolbar.js +82 -0
  60. package/data/examples/font-awesome-icons.js +62 -0
  61. package/data/examples/infinite-scrolling.js +137 -0
  62. package/data/examples/lazy-detail-panel.js +164 -0
  63. package/data/examples/lazy-sub-rows.js +118 -0
  64. package/data/examples/linear-progress.js +48 -0
  65. package/data/examples/loading.js +34 -0
  66. package/data/examples/localization-i18n-ar.js +40 -0
  67. package/data/examples/localization-i18n-az.js +38 -0
  68. package/data/examples/localization-i18n-bg.js +38 -0
  69. package/data/examples/localization-i18n-cs.js +38 -0
  70. package/data/examples/localization-i18n-da.js +38 -0
  71. package/data/examples/localization-i18n-de.js +38 -0
  72. package/data/examples/localization-i18n-el.js +38 -0
  73. package/data/examples/localization-i18n-en.js +38 -0
  74. package/data/examples/localization-i18n-es.js +38 -0
  75. package/data/examples/localization-i18n-et.js +38 -0
  76. package/data/examples/localization-i18n-fa.js +40 -0
  77. package/data/examples/localization-i18n-fi.js +38 -0
  78. package/data/examples/localization-i18n-fr.js +38 -0
  79. package/data/examples/localization-i18n-he.js +40 -0
  80. package/data/examples/localization-i18n-hr.js +38 -0
  81. package/data/examples/localization-i18n-hu.js +38 -0
  82. package/data/examples/localization-i18n-hy.js +40 -0
  83. package/data/examples/localization-i18n-id.js +38 -0
  84. package/data/examples/localization-i18n-it.js +38 -0
  85. package/data/examples/localization-i18n-ja.js +38 -0
  86. package/data/examples/localization-i18n-ko.js +38 -0
  87. package/data/examples/localization-i18n-nl.js +38 -0
  88. package/data/examples/localization-i18n-no.js +38 -0
  89. package/data/examples/localization-i18n-np.js +38 -0
  90. package/data/examples/localization-i18n-pl.js +38 -0
  91. package/data/examples/localization-i18n-pt-BR.js +38 -0
  92. package/data/examples/localization-i18n-pt.js +38 -0
  93. package/data/examples/localization-i18n-ro.js +38 -0
  94. package/data/examples/localization-i18n-ru.js +38 -0
  95. package/data/examples/localization-i18n-sk.js +38 -0
  96. package/data/examples/localization-i18n-sr-Cyrl-RS.js +38 -0
  97. package/data/examples/localization-i18n-sr-Latn-RS.js +38 -0
  98. package/data/examples/localization-i18n-sv.js +38 -0
  99. package/data/examples/localization-i18n-tr.js +38 -0
  100. package/data/examples/localization-i18n-uk.js +38 -0
  101. package/data/examples/localization-i18n-vi.js +38 -0
  102. package/data/examples/localization-i18n-zh-hans.js +38 -0
  103. package/data/examples/localization-i18n-zh-hant.js +38 -0
  104. package/data/examples/manual-selection.js +81 -0
  105. package/data/examples/minimal.js +66 -0
  106. package/data/examples/mui-theme.js +109 -0
  107. package/data/examples/multi-sorting.js +48 -0
  108. package/data/examples/persistent-state.js +126 -0
  109. package/data/examples/react-query.js +122 -0
  110. package/data/examples/remote.js +113 -0
  111. package/data/examples/row-actions-buttons.js +54 -0
  112. package/data/examples/row-actions-menu-items.js +36 -0
  113. package/data/examples/single-row-selection.js +74 -0
  114. package/data/examples/virtualized.js +122 -0
  115. package/dist/data.js +31 -9
  116. package/dist/index.js +18 -6
  117. package/package.json +1 -1
@@ -0,0 +1,40 @@
1
+ //Import Material React Table and its Types
2
+ import { MaterialReactTable } from 'material-react-table';
3
+ //Import Material React Table Translations
4
+ import { MRT_Localization_AR } from 'material-react-table/locales/ar';
5
+ //mock data
6
+ import { data } from './makeData';
7
+ const columns = [
8
+ //column definitions...
9
+ {
10
+ accessorKey: 'firstName',
11
+ header: 'الاسم الأول',
12
+ },
13
+ {
14
+ accessorKey: 'lastName',
15
+ header: 'اسم العائلة',
16
+ enableClickToCopy: true,
17
+ },
18
+ {
19
+ accessorKey: 'age',
20
+ header: 'العمر',
21
+ },
22
+ //end
23
+ ];
24
+ const Example = () => {
25
+ return (<MaterialReactTable columns={columns} data={data} defaultColumn={{ size: 250 }} columnResizeDirection="rtl" enableColumnFilterModes enableColumnOrdering enableColumnResizing enableEditing enableColumnPinning enableRowActions enableRowSelection enableSelectAll={false} initialState={{ showColumnFilters: true, showGlobalFilter: true }} localization={MRT_Localization_AR}/>);
26
+ };
27
+ //App.tsx or similar
28
+ import { createTheme, ThemeProvider, useTheme } from '@mui/material';
29
+ import { arSA } from '@mui/material/locale';
30
+ const ExampleWithThemeProvider = () => {
31
+ const theme = useTheme(); //replace with your theme/createTheme
32
+ return (
33
+ //Setting Material UI locale as best practice to result in better accessibility
34
+ <ThemeProvider theme={createTheme({ ...theme, direction: 'rtl' }, arSA)}>
35
+ <div style={{ direction: 'rtl' }}>
36
+ <Example />
37
+ </div>
38
+ </ThemeProvider>);
39
+ };
40
+ export default ExampleWithThemeProvider;
@@ -0,0 +1,38 @@
1
+ //Import Material React Table and its Types
2
+ import { MaterialReactTable } from 'material-react-table';
3
+ //Import Material React Table Translations
4
+ import { MRT_Localization_AZ } from 'material-react-table/locales/az';
5
+ //mock data
6
+ import { data } from './makeData';
7
+ const columns = [
8
+ //column definitions...
9
+ {
10
+ accessorKey: 'firstName',
11
+ header: 'Ad',
12
+ },
13
+ {
14
+ accessorKey: 'lastName',
15
+ header: 'Soyad',
16
+ enableClickToCopy: true,
17
+ },
18
+ {
19
+ accessorKey: 'age',
20
+ header: 'Yaş',
21
+ },
22
+ //end
23
+ ];
24
+ const Example = () => {
25
+ return (<MaterialReactTable columns={columns} data={data} enableColumnFilterModes enableColumnOrdering enableEditing enableColumnPinning enableRowActions enableRowSelection enableSelectAll={false} initialState={{ showColumnFilters: true, showGlobalFilter: true }} localization={MRT_Localization_AZ}/>);
26
+ };
27
+ //App.tsx or similar
28
+ import { createTheme, ThemeProvider, useTheme } from '@mui/material';
29
+ import { azAZ } from '@mui/material/locale';
30
+ const ExampleWithThemeProvider = () => {
31
+ const theme = useTheme(); //replace with your theme/createTheme
32
+ return (
33
+ //Setting Material UI locale as best practice to result in better accessibility
34
+ <ThemeProvider theme={createTheme(theme, azAZ)}>
35
+ <Example />
36
+ </ThemeProvider>);
37
+ };
38
+ export default ExampleWithThemeProvider;
@@ -0,0 +1,38 @@
1
+ //Import Material React Table and its Types
2
+ import { MaterialReactTable } from 'material-react-table';
3
+ //Import Material React Table Translations
4
+ import { MRT_Localization_BG } from 'material-react-table/locales/bg';
5
+ //mock data
6
+ import { data } from './makeData';
7
+ const columns = [
8
+ //column definitions...
9
+ {
10
+ accessorKey: 'firstName',
11
+ header: 'Първо име',
12
+ },
13
+ {
14
+ accessorKey: 'lastName',
15
+ header: 'Фамилия',
16
+ enableClickToCopy: true,
17
+ },
18
+ {
19
+ accessorKey: 'age',
20
+ header: 'Възраст',
21
+ },
22
+ //end
23
+ ];
24
+ const Example = () => {
25
+ return (<MaterialReactTable columns={columns} data={data} enableColumnFilterModes enableColumnOrdering enableEditing enableColumnPinning enableRowActions enableRowSelection enableSelectAll={false} initialState={{ showColumnFilters: true, showGlobalFilter: true }} localization={MRT_Localization_BG}/>);
26
+ };
27
+ //App.tsx or similar
28
+ import { createTheme, ThemeProvider, useTheme } from '@mui/material';
29
+ import { bgBG } from '@mui/material/locale';
30
+ const ExampleWithThemeProvider = () => {
31
+ const theme = useTheme(); //replace with your theme/createTheme
32
+ return (
33
+ //Setting Material UI locale as best practice to result in better accessibility
34
+ <ThemeProvider theme={createTheme(theme, bgBG)}>
35
+ <Example />
36
+ </ThemeProvider>);
37
+ };
38
+ export default ExampleWithThemeProvider;
@@ -0,0 +1,38 @@
1
+ //Import Material React Table and its Types
2
+ import { MaterialReactTable } from 'material-react-table';
3
+ //Import Material React Table Translations
4
+ import { MRT_Localization_CS } from 'material-react-table/locales/cs';
5
+ //mock data
6
+ import { data } from './makeData';
7
+ const columns = [
8
+ //column definitions...
9
+ {
10
+ accessorKey: 'firstName',
11
+ header: 'Jméno',
12
+ },
13
+ {
14
+ accessorKey: 'lastName',
15
+ header: 'Příjmení',
16
+ enableClickToCopy: true,
17
+ },
18
+ {
19
+ accessorKey: 'age',
20
+ header: 'Stáří',
21
+ },
22
+ //end
23
+ ];
24
+ const Example = () => {
25
+ return (<MaterialReactTable columns={columns} data={data} enableColumnFilterModes enableColumnOrdering enableEditing enableColumnPinning enableRowActions enableRowSelection enableSelectAll={false} initialState={{ showColumnFilters: true, showGlobalFilter: true }} localization={MRT_Localization_CS}/>);
26
+ };
27
+ //App.tsx or similar
28
+ import { createTheme, ThemeProvider, useTheme } from '@mui/material';
29
+ import { csCZ } from '@mui/material/locale';
30
+ const ExampleWithThemeProvider = () => {
31
+ const theme = useTheme(); //replace with your theme/createTheme
32
+ return (
33
+ //Setting Material UI locale as best practice to result in better accessibility
34
+ <ThemeProvider theme={createTheme(theme, csCZ)}>
35
+ <Example />
36
+ </ThemeProvider>);
37
+ };
38
+ export default ExampleWithThemeProvider;
@@ -0,0 +1,38 @@
1
+ //Import Material React Table and its Types
2
+ import { MaterialReactTable } from 'material-react-table';
3
+ //Import Material React Table Translations
4
+ import { MRT_Localization_DA } from 'material-react-table/locales/da';
5
+ //mock data
6
+ import { data } from './makeData';
7
+ const columns = [
8
+ //column definitions...
9
+ {
10
+ accessorKey: 'firstName',
11
+ header: 'Fornavn',
12
+ },
13
+ {
14
+ accessorKey: 'lastName',
15
+ header: 'Efternavn',
16
+ enableClickToCopy: true,
17
+ },
18
+ {
19
+ accessorKey: 'age',
20
+ header: 'Alder',
21
+ },
22
+ //end
23
+ ];
24
+ const Example = () => {
25
+ return (<MaterialReactTable columns={columns} data={data} enableColumnFilterModes enableColumnOrdering enableEditing enableColumnPinning enableRowActions enableRowSelection enableSelectAll={false} initialState={{ showColumnFilters: true, showGlobalFilter: true }} localization={MRT_Localization_DA}/>);
26
+ };
27
+ //App.tsx or similar
28
+ import { createTheme, ThemeProvider, useTheme } from '@mui/material';
29
+ import { daDK } from '@mui/material/locale';
30
+ const ExampleWithThemeProvider = () => {
31
+ const theme = useTheme(); //replace with your theme/createTheme
32
+ return (
33
+ //Setting Material UI locale as best practice to result in better accessibility
34
+ <ThemeProvider theme={createTheme(theme, daDK)}>
35
+ <Example />
36
+ </ThemeProvider>);
37
+ };
38
+ export default ExampleWithThemeProvider;
@@ -0,0 +1,38 @@
1
+ //Import Material React Table and its Types
2
+ import { MaterialReactTable } from 'material-react-table';
3
+ //Import Material React Table Translations
4
+ import { MRT_Localization_DE } from 'material-react-table/locales/de';
5
+ //mock data
6
+ import { data } from './makeData';
7
+ const columns = [
8
+ //column definitions...
9
+ {
10
+ accessorKey: 'firstName',
11
+ header: 'Vorname',
12
+ },
13
+ {
14
+ accessorKey: 'lastName',
15
+ header: 'Nachname',
16
+ enableClickToCopy: true,
17
+ },
18
+ {
19
+ accessorKey: 'age',
20
+ header: 'Das Alter',
21
+ },
22
+ //end
23
+ ];
24
+ const Example = () => {
25
+ return (<MaterialReactTable columns={columns} data={data} enableColumnFilterModes enableColumnOrdering enableEditing enableColumnPinning enableRowActions enableRowSelection enableSelectAll={false} initialState={{ showColumnFilters: true, showGlobalFilter: true }} localization={MRT_Localization_DE}/>);
26
+ };
27
+ //App.tsx or similar
28
+ import { createTheme, ThemeProvider, useTheme } from '@mui/material';
29
+ import { deDE } from '@mui/material/locale';
30
+ const ExampleWithThemeProvider = () => {
31
+ const theme = useTheme(); //replace with your theme/createTheme
32
+ return (
33
+ //Setting Material UI locale as best practice to result in better accessibility
34
+ <ThemeProvider theme={createTheme(theme, deDE)}>
35
+ <Example />
36
+ </ThemeProvider>);
37
+ };
38
+ export default ExampleWithThemeProvider;
@@ -0,0 +1,38 @@
1
+ //Import Material React Table and its Types
2
+ import { MaterialReactTable } from 'material-react-table';
3
+ //Import Material React Table Translations
4
+ import { MRT_Localization_EL } from 'material-react-table/locales/el';
5
+ //mock data
6
+ import { data } from './makeData';
7
+ const columns = [
8
+ //column definitions...
9
+ {
10
+ accessorKey: 'firstName',
11
+ header: 'First Name',
12
+ },
13
+ {
14
+ accessorKey: 'lastName',
15
+ header: 'Last Name',
16
+ enableClickToCopy: true,
17
+ },
18
+ {
19
+ accessorKey: 'age',
20
+ header: 'Age',
21
+ },
22
+ //end
23
+ ];
24
+ const Example = () => {
25
+ return (<MaterialReactTable columns={columns} data={data} enableColumnFilterModes enableColumnOrdering enableEditing enableColumnPinning enableRowActions enableRowSelection enableSelectAll={false} initialState={{ showColumnFilters: true, showGlobalFilter: true }} localization={MRT_Localization_EL}/>);
26
+ };
27
+ //App.tsx or similar
28
+ import { createTheme, ThemeProvider, useTheme } from '@mui/material';
29
+ import { elGR } from '@mui/material/locale';
30
+ const ExampleWithThemeProvider = () => {
31
+ const theme = useTheme(); //replace with your theme/createTheme
32
+ return (
33
+ //Setting Material UI locale as best practice to result in better accessibility
34
+ <ThemeProvider theme={createTheme(theme, elGR)}>
35
+ <Example />
36
+ </ThemeProvider>);
37
+ };
38
+ export default ExampleWithThemeProvider;
@@ -0,0 +1,38 @@
1
+ //Import Material React Table and its Types
2
+ import { MaterialReactTable } from 'material-react-table';
3
+ //Import Material React Table Translations
4
+ import { MRT_Localization_EN } from 'material-react-table/locales/en';
5
+ //mock data
6
+ import { data } from './makeData';
7
+ const columns = [
8
+ //column definitions...
9
+ {
10
+ accessorKey: 'firstName',
11
+ header: 'First Name',
12
+ },
13
+ {
14
+ accessorKey: 'lastName',
15
+ header: 'Last Name',
16
+ enableClickToCopy: true,
17
+ },
18
+ {
19
+ accessorKey: 'age',
20
+ header: 'Age',
21
+ },
22
+ //end
23
+ ];
24
+ const Example = () => {
25
+ return (<MaterialReactTable columns={columns} data={data} enableColumnFilterModes enableColumnOrdering enableEditing enableColumnPinning enableRowActions enableRowSelection enableSelectAll={false} initialState={{ showColumnFilters: true, showGlobalFilter: true }} localization={MRT_Localization_EN}/>);
26
+ };
27
+ //App.tsx or similar
28
+ import { createTheme, ThemeProvider, useTheme } from '@mui/material';
29
+ import { enUS } from '@mui/material/locale';
30
+ const ExampleWithThemeProvider = () => {
31
+ const theme = useTheme(); //replace with your theme/createTheme
32
+ return (
33
+ //Setting Material UI locale as best practice to result in better accessibility
34
+ <ThemeProvider theme={createTheme(theme, enUS)}>
35
+ <Example />
36
+ </ThemeProvider>);
37
+ };
38
+ export default ExampleWithThemeProvider;
@@ -0,0 +1,38 @@
1
+ //Import Material React Table and its Types
2
+ import { MaterialReactTable } from 'material-react-table';
3
+ //Import Material React Table Translations
4
+ import { MRT_Localization_ES } from 'material-react-table/locales/es';
5
+ //mock data
6
+ import { data } from './makeData';
7
+ const columns = [
8
+ //column definitions...
9
+ {
10
+ accessorKey: 'firstName',
11
+ header: 'Primer nombre',
12
+ },
13
+ {
14
+ accessorKey: 'lastName',
15
+ header: 'Apellido',
16
+ enableClickToCopy: true,
17
+ },
18
+ {
19
+ accessorKey: 'age',
20
+ header: 'Años',
21
+ },
22
+ //end
23
+ ];
24
+ const Example = () => {
25
+ return (<MaterialReactTable columns={columns} data={data} enableColumnFilterModes enableColumnOrdering enableEditing enableColumnPinning enableRowActions enableRowSelection enableSelectAll={false} initialState={{ showColumnFilters: true, showGlobalFilter: true }} localization={MRT_Localization_ES}/>);
26
+ };
27
+ //App.tsx or similar
28
+ import { createTheme, ThemeProvider, useTheme } from '@mui/material';
29
+ import { esES } from '@mui/material/locale';
30
+ const ExampleWithThemeProvider = () => {
31
+ const theme = useTheme(); //replace with your theme/createTheme
32
+ return (
33
+ //Setting Material UI locale as best practice to result in better accessibility
34
+ <ThemeProvider theme={createTheme(theme, esES)}>
35
+ <Example />
36
+ </ThemeProvider>);
37
+ };
38
+ export default ExampleWithThemeProvider;
@@ -0,0 +1,38 @@
1
+ //Import Material React Table and its Types
2
+ import { MaterialReactTable } from 'material-react-table';
3
+ //Import Material React Table Translations
4
+ import { MRT_Localization_ET } from 'material-react-table/locales/et';
5
+ //mock data
6
+ import { data } from './makeData';
7
+ const columns = [
8
+ //column definitions...
9
+ {
10
+ accessorKey: 'firstName',
11
+ header: 'Eesnimi',
12
+ },
13
+ {
14
+ accessorKey: 'lastName',
15
+ header: 'Perekonnanimi',
16
+ enableClickToCopy: true,
17
+ },
18
+ {
19
+ accessorKey: 'age',
20
+ header: 'Vanus',
21
+ },
22
+ //end
23
+ ];
24
+ const Example = () => {
25
+ return (<MaterialReactTable columns={columns} data={data} enableColumnFilterModes enableColumnOrdering enableEditing enableColumnPinning enableRowActions enableRowSelection enableSelectAll={false} initialState={{ showColumnFilters: true, showGlobalFilter: true }} localization={MRT_Localization_ET}/>);
26
+ };
27
+ //App.tsx or similar
28
+ import { createTheme, ThemeProvider, useTheme } from '@mui/material';
29
+ import { etEE } from '@mui/material/locale';
30
+ const ExampleWithThemeProvider = () => {
31
+ const theme = useTheme(); //replace with your theme/createTheme
32
+ return (
33
+ //Setting Material UI locale as best practice to result in better accessibility
34
+ <ThemeProvider theme={createTheme(theme, etEE)}>
35
+ <Example />
36
+ </ThemeProvider>);
37
+ };
38
+ export default ExampleWithThemeProvider;
@@ -0,0 +1,40 @@
1
+ //Import Material React Table and its Types
2
+ import { MaterialReactTable } from 'material-react-table';
3
+ //Import Material React Table Translations
4
+ import { MRT_Localization_FA } from 'material-react-table/locales/fa';
5
+ //mock data
6
+ import { data } from './makeData';
7
+ const columns = [
8
+ //column definitions...
9
+ {
10
+ accessorKey: 'firstName',
11
+ header: 'نام',
12
+ },
13
+ {
14
+ accessorKey: 'lastName',
15
+ header: 'نام خانوادگی',
16
+ enableClickToCopy: true,
17
+ },
18
+ {
19
+ accessorKey: 'age',
20
+ header: 'سن',
21
+ },
22
+ //end
23
+ ];
24
+ const Example = () => {
25
+ return (<MaterialReactTable columns={columns} data={data} defaultColumn={{ size: 250 }} columnResizeDirection="rtl" enableColumnFilterModes enableColumnOrdering enableColumnResizing enableEditing enableColumnPinning enableRowActions enableRowSelection enableSelectAll={false} initialState={{ showColumnFilters: true, showGlobalFilter: true }} localization={MRT_Localization_FA}/>);
26
+ };
27
+ //App.tsx or similar
28
+ import { createTheme, ThemeProvider, useTheme } from '@mui/material';
29
+ import { faIR } from '@mui/material/locale';
30
+ const ExampleWithThemeProvider = () => {
31
+ const theme = useTheme(); //replace with your theme/createTheme
32
+ return (
33
+ //Setting Material UI locale as best practice to result in better accessibility
34
+ <ThemeProvider theme={createTheme({ ...theme, direction: 'rtl' }, faIR)}>
35
+ <div style={{ direction: 'rtl' }}>
36
+ <Example />
37
+ </div>
38
+ </ThemeProvider>);
39
+ };
40
+ export default ExampleWithThemeProvider;
@@ -0,0 +1,38 @@
1
+ //Import Material React Table and its Types
2
+ import { MaterialReactTable } from 'material-react-table';
3
+ //Import Material React Table Translations
4
+ import { MRT_Localization_FI } from 'material-react-table/locales/fi';
5
+ //mock data
6
+ import { data } from './makeData';
7
+ const columns = [
8
+ //column definitions...
9
+ {
10
+ accessorKey: 'firstName',
11
+ header: 'Etunimi',
12
+ },
13
+ {
14
+ accessorKey: 'lastName',
15
+ header: 'Sukunimi',
16
+ enableClickToCopy: true,
17
+ },
18
+ {
19
+ accessorKey: 'age',
20
+ header: 'Ikä',
21
+ },
22
+ //end
23
+ ];
24
+ const Example = () => {
25
+ return (<MaterialReactTable columns={columns} data={data} enableColumnFilterModes enableColumnOrdering enableEditing enableColumnPinning enableRowActions enableRowSelection enableSelectAll={false} initialState={{ showColumnFilters: true, showGlobalFilter: true }} localization={MRT_Localization_FI}/>);
26
+ };
27
+ //App.tsx or similar
28
+ import { createTheme, ThemeProvider, useTheme } from '@mui/material';
29
+ import { fiFI } from '@mui/material/locale';
30
+ const ExampleWithThemeProvider = () => {
31
+ const theme = useTheme(); //replace with your theme/createTheme
32
+ return (
33
+ //Setting Material UI locale as best practice to result in better accessibility
34
+ <ThemeProvider theme={createTheme(theme, fiFI)}>
35
+ <Example />
36
+ </ThemeProvider>);
37
+ };
38
+ export default ExampleWithThemeProvider;
@@ -0,0 +1,38 @@
1
+ //Import Material React Table and its Types
2
+ import { MaterialReactTable } from 'material-react-table';
3
+ //Import Material React Table Translations
4
+ import { MRT_Localization_FR } from 'material-react-table/locales/fr';
5
+ //mock data
6
+ import { data } from './makeData';
7
+ const columns = [
8
+ //column definitions...
9
+ {
10
+ accessorKey: 'firstName',
11
+ header: 'Prénom',
12
+ },
13
+ {
14
+ accessorKey: 'lastName',
15
+ header: 'Nom de famille',
16
+ enableClickToCopy: true,
17
+ },
18
+ {
19
+ accessorKey: 'age',
20
+ header: 'Âge',
21
+ },
22
+ //end
23
+ ];
24
+ const Example = () => {
25
+ return (<MaterialReactTable columns={columns} data={data} enableColumnFilterModes enableColumnOrdering enableEditing enableColumnPinning enableRowActions enableRowSelection enableSelectAll={false} initialState={{ showColumnFilters: true, showGlobalFilter: true }} localization={MRT_Localization_FR}/>);
26
+ };
27
+ //App.tsx or similar
28
+ import { createTheme, ThemeProvider, useTheme } from '@mui/material';
29
+ import { frFR } from '@mui/material/locale';
30
+ const ExampleWithThemeProvider = () => {
31
+ const theme = useTheme(); //replace with your theme/createTheme
32
+ return (
33
+ //Setting Material UI locale as best practice to result in better accessibility
34
+ <ThemeProvider theme={createTheme(theme, frFR)}>
35
+ <Example />
36
+ </ThemeProvider>);
37
+ };
38
+ export default ExampleWithThemeProvider;
@@ -0,0 +1,40 @@
1
+ //Import Material React Table and its Types
2
+ import { MaterialReactTable } from 'material-react-table';
3
+ //Import Material React Table Translations
4
+ import { MRT_Localization_HE } from 'material-react-table/locales/he';
5
+ //mock data
6
+ import { data } from './makeData';
7
+ const columns = [
8
+ //column definitions...
9
+ {
10
+ accessorKey: 'firstName',
11
+ header: 'שם פרטי',
12
+ },
13
+ {
14
+ accessorKey: 'lastName',
15
+ header: 'שם משפחה',
16
+ enableClickToCopy: true,
17
+ },
18
+ {
19
+ accessorKey: 'age',
20
+ header: 'גיל',
21
+ },
22
+ //end
23
+ ];
24
+ const Example = () => {
25
+ return (<MaterialReactTable columns={columns} data={data} defaultColumn={{ size: 250 }} columnResizeDirection="rtl" enableColumnFilterModes enableColumnOrdering enableColumnResizing enableEditing enableColumnPinning enableRowActions enableRowSelection enableSelectAll={false} initialState={{ showColumnFilters: true, showGlobalFilter: true }} localization={MRT_Localization_HE}/>);
26
+ };
27
+ //App.tsx or similar
28
+ import { createTheme, ThemeProvider, useTheme } from '@mui/material';
29
+ import { heIL } from '@mui/material/locale';
30
+ const ExampleWithThemeProvider = () => {
31
+ const theme = useTheme(); //replace with your theme/createTheme
32
+ return (
33
+ //Setting Material UI locale as best practice to result in better accessibility
34
+ <ThemeProvider theme={createTheme({ ...theme, direction: 'rtl' }, heIL)}>
35
+ <div style={{ direction: 'rtl' }}>
36
+ <Example />
37
+ </div>
38
+ </ThemeProvider>);
39
+ };
40
+ export default ExampleWithThemeProvider;
@@ -0,0 +1,38 @@
1
+ //Import Material React Table and its Types
2
+ import { MaterialReactTable } from 'material-react-table';
3
+ //Import Material React Table Translations
4
+ import { MRT_Localization_HR } from 'material-react-table/locales/hr';
5
+ //mock data
6
+ import { data } from './makeData';
7
+ const columns = [
8
+ //column definitions...
9
+ {
10
+ accessorKey: 'firstName',
11
+ header: 'Ime',
12
+ },
13
+ {
14
+ accessorKey: 'lastName',
15
+ header: 'Prezime',
16
+ enableClickToCopy: true,
17
+ },
18
+ {
19
+ accessorKey: 'age',
20
+ header: 'Godine',
21
+ },
22
+ //end
23
+ ];
24
+ const Example = () => {
25
+ return (<MaterialReactTable columns={columns} data={data} enableColumnFilterModes enableColumnOrdering enableEditing enableColumnPinning enableRowActions enableRowSelection enableSelectAll={false} initialState={{ showColumnFilters: true, showGlobalFilter: true }} localization={MRT_Localization_HR}/>);
26
+ };
27
+ //App.tsx or similar
28
+ import { createTheme, ThemeProvider, useTheme } from '@mui/material';
29
+ import { hrHR } from '@mui/material/locale';
30
+ const ExampleWithThemeProvider = () => {
31
+ const theme = useTheme(); //replace with your theme/createTheme
32
+ return (
33
+ //Setting Material UI locale as best practice to result in better accessibility
34
+ <ThemeProvider theme={createTheme(theme, hrHR)}>
35
+ <Example />
36
+ </ThemeProvider>);
37
+ };
38
+ export default ExampleWithThemeProvider;
@@ -0,0 +1,38 @@
1
+ //Import Material React Table and its Types
2
+ import { MaterialReactTable } from 'material-react-table';
3
+ //Import Material React Table Translations
4
+ import { MRT_Localization_HU } from 'material-react-table/locales/hu';
5
+ //mock data
6
+ import { data } from './makeData';
7
+ const columns = [
8
+ //column definitions...
9
+ {
10
+ accessorKey: 'firstName',
11
+ header: 'Keresztnév',
12
+ },
13
+ {
14
+ accessorKey: 'lastName',
15
+ header: 'Vezetéknév',
16
+ enableClickToCopy: true,
17
+ },
18
+ {
19
+ accessorKey: 'age',
20
+ header: 'Kor',
21
+ },
22
+ //end
23
+ ];
24
+ const Example = () => {
25
+ return (<MaterialReactTable columns={columns} data={data} enableColumnFilterModes enableColumnOrdering enableEditing enableColumnPinning enableRowActions enableRowSelection enableSelectAll={false} initialState={{ showColumnFilters: true, showGlobalFilter: true }} localization={MRT_Localization_HU}/>);
26
+ };
27
+ //App.tsx or similar
28
+ import { createTheme, ThemeProvider, useTheme } from '@mui/material';
29
+ import { huHU } from '@mui/material/locale';
30
+ const ExampleWithThemeProvider = () => {
31
+ const theme = useTheme(); //replace with your theme/createTheme
32
+ return (
33
+ //Setting Material UI locale as best practice to result in better accessibility
34
+ <ThemeProvider theme={createTheme(theme, huHU)}>
35
+ <Example />
36
+ </ThemeProvider>);
37
+ };
38
+ export default ExampleWithThemeProvider;
@@ -0,0 +1,40 @@
1
+ //Import Material React Table and its Types
2
+ import { MaterialReactTable } from 'material-react-table';
3
+ //Import Material React Table Translations
4
+ import { MRT_Localization_HY } from 'material-react-table/locales/hy';
5
+ //mock data
6
+ import { data } from './makeData';
7
+ const columns = [
8
+ //column definitions...
9
+ {
10
+ accessorKey: 'firstName',
11
+ header: 'Անուն',
12
+ },
13
+ {
14
+ accessorKey: 'lastName',
15
+ header: 'Ազգանուն',
16
+ enableClickToCopy: true,
17
+ },
18
+ {
19
+ accessorKey: 'age',
20
+ header: 'Տարիք',
21
+ },
22
+ //end
23
+ ];
24
+ const Example = () => {
25
+ return (<MaterialReactTable columns={columns} data={data} defaultColumn={{ size: 250 }} columnResizeDirection="rtl" enableColumnFilterModes enableColumnOrdering enableColumnResizing enableEditing enableColumnPinning enableRowActions enableRowSelection enableSelectAll={false} initialState={{ showColumnFilters: true, showGlobalFilter: true }} localization={MRT_Localization_HY}/>);
26
+ };
27
+ //App.tsx or similar
28
+ import { createTheme, ThemeProvider, useTheme } from '@mui/material';
29
+ import { hyAM } from '@mui/material/locale';
30
+ const ExampleWithThemeProvider = () => {
31
+ const theme = useTheme(); //replace with your theme/createTheme
32
+ return (
33
+ //Setting Material UI locale as best practice to result in better accessibility
34
+ <ThemeProvider theme={createTheme({ ...theme, direction: 'rtl' }, hyAM)}>
35
+ <div style={{ direction: 'rtl' }}>
36
+ <Example />
37
+ </div>
38
+ </ThemeProvider>);
39
+ };
40
+ export default ExampleWithThemeProvider;