@dartech/arsenal-ui 1.4.76 → 1.4.77
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +157 -151
- package/package.json +1 -1
- package/src/lib/Property/UpsertProperty/PropertyValueField/BooleanValueField.d.ts +1 -0
- package/src/lib/Property/UpsertProperty/PropertyValueField/DateTimeValueField.d.ts +1 -0
- package/src/lib/Property/UpsertProperty/PropertyValueField/DateValueField.d.ts +1 -0
- package/src/lib/Property/UpsertProperty/PropertyValueField/JsonValueField.d.ts +1 -0
- package/src/lib/Property/UpsertProperty/PropertyValueField/TimeValueField.d.ts +1 -0
- package/src/lib/Property/ViewProperty/PropertyItem.d.ts +1 -0
- package/src/theme/inputThemeOptions.d.ts +12 -1
- package/src/theme/tableThemeOptions.d.ts +97 -1
package/index.js
CHANGED
@@ -44,8 +44,7 @@ import { toString, parse as parse$1 } from 'duration-fns';
|
|
44
44
|
import InputMask from 'react-input-mask';
|
45
45
|
import Pagination from '@mui/material/Pagination';
|
46
46
|
import MuiTablePagination from '@mui/material/TablePagination';
|
47
|
-
import { useGridApiContext, useGridSelector, gridPageSelector, gridPageCountSelector, gridRowCountSelector, gridPageSizeSelector, GridColumnMenuContainer, GridFilterMenuItem, GridActionsCellItem } from '@mui/x-data-grid';
|
48
|
-
import { DataGrid } from '@mui/x-data-grid/DataGrid';
|
47
|
+
import { useGridApiContext, useGridSelector, gridPageSelector, gridPageCountSelector, gridRowCountSelector, gridPageSizeSelector, GridColumnMenuContainer, GridFilterMenuItem, DataGrid, GridActionsCellItem } from '@mui/x-data-grid';
|
49
48
|
import MuiTable from '@mui/material/Table';
|
50
49
|
import TableBody from '@mui/material/TableBody';
|
51
50
|
import TableCell from '@mui/material/TableCell';
|
@@ -898,8 +897,8 @@ const ControlAutocomplete = _a => {
|
|
898
897
|
}, autocompleteProps));
|
899
898
|
};
|
900
899
|
|
901
|
-
var img$
|
902
|
-
var PopupIcon = img$
|
900
|
+
var img$8 = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.22032 8.46991C4.36094 8.32946 4.55157 8.25057 4.75032 8.25057C4.94907 8.25057 5.13969 8.32946 5.28032 8.46991L12.0003 15.1899L18.7203 8.46991C18.789 8.39622 18.8718 8.33712 18.9638 8.29613C19.0558 8.25514 19.1551 8.23309 19.2558 8.23132C19.3565 8.22954 19.4565 8.24807 19.5499 8.28579C19.6433 8.32351 19.7281 8.37965 19.7994 8.45087C19.8706 8.52209 19.9267 8.60692 19.9644 8.70031C20.0022 8.7937 20.0207 8.89373 20.0189 8.99443C20.0171 9.09513 19.9951 9.19445 19.9541 9.28645C19.9131 9.37845 19.854 9.46125 19.7803 9.52991L12.5303 16.7799C12.3897 16.9204 12.1991 16.9992 12.0003 16.9992C11.8016 16.9992 11.6109 16.9204 11.4703 16.7799L4.22032 9.52991C4.07987 9.38928 4.00098 9.19866 4.00098 8.99991C4.00098 8.80116 4.07987 8.61054 4.22032 8.46991Z' fill='%238B8C9E'/%3e%3c/svg%3e";
|
901
|
+
var PopupIcon = img$8;
|
903
902
|
|
904
903
|
const PopupIconComponent = () => {
|
905
904
|
return jsx("img", {
|
@@ -1567,6 +1566,7 @@ const baseThemeOptions = {
|
|
1567
1566
|
light: '#DBFCEE'
|
1568
1567
|
},
|
1569
1568
|
grey: {
|
1569
|
+
100: '#F7F8FC',
|
1570
1570
|
700: '#101F2B'
|
1571
1571
|
}
|
1572
1572
|
},
|
@@ -1590,26 +1590,22 @@ var baseTheme = createTheme(baseThemeOptions);
|
|
1590
1590
|
|
1591
1591
|
const inputThemeOptions = {
|
1592
1592
|
components: {
|
1593
|
-
|
1594
|
-
// defaultProps: {
|
1595
|
-
// disableElevation: true
|
1596
|
-
// },
|
1597
|
-
// styleOverrides: {
|
1598
|
-
// root: {
|
1599
|
-
// '&.MuiButton-root': {
|
1600
|
-
// // boxShadow: 'none',
|
1601
|
-
// // lineHeight: 1.429
|
1602
|
-
// },
|
1603
|
-
// '&.MuiButton-root:hover': {
|
1604
|
-
// // boxShadow: 'none',
|
1605
|
-
// backgroundColor: '#D15C3B'
|
1606
|
-
// }
|
1607
|
-
// }
|
1608
|
-
// }
|
1609
|
-
// },
|
1610
|
-
MuiButton: {
|
1593
|
+
MuiButtonBase: {
|
1611
1594
|
defaultProps: {
|
1612
1595
|
disableElevation: true
|
1596
|
+
},
|
1597
|
+
styleOverrides: {
|
1598
|
+
root: {
|
1599
|
+
'&.MuiButton-root': {
|
1600
|
+
boxShadow: 'none'
|
1601
|
+
// lineHeight: 1.429
|
1602
|
+
},
|
1603
|
+
|
1604
|
+
'&.MuiButton-root:hover': {
|
1605
|
+
boxShadow: 'none',
|
1606
|
+
backgroundColor: '#D15C3B'
|
1607
|
+
}
|
1608
|
+
}
|
1613
1609
|
}
|
1614
1610
|
},
|
1615
1611
|
MuiInputBase: {
|
@@ -1783,8 +1779,19 @@ const tableThemeOptions = {
|
|
1783
1779
|
MuiTableRow: {
|
1784
1780
|
styleOverrides: {
|
1785
1781
|
root: {
|
1786
|
-
'&:hover': {
|
1787
|
-
|
1782
|
+
// '&:hover': {
|
1783
|
+
// backgroundColor: '#F7F8FC!important',
|
1784
|
+
// },
|
1785
|
+
'&.MuiTableRow-hover': {
|
1786
|
+
'&:hover': {
|
1787
|
+
backgroundColor: '#F6F6F7'
|
1788
|
+
},
|
1789
|
+
'&:active, &:focus': {
|
1790
|
+
backgroundColor: '#EEEEF0'
|
1791
|
+
}
|
1792
|
+
},
|
1793
|
+
'&:active, &:focus': {
|
1794
|
+
backgroundColor: '#EEEEF0'
|
1788
1795
|
}
|
1789
1796
|
}
|
1790
1797
|
}
|
@@ -1793,6 +1800,7 @@ const tableThemeOptions = {
|
|
1793
1800
|
styleOverrides: {
|
1794
1801
|
root: {
|
1795
1802
|
padding: baseTheme.spacing(1, 2),
|
1803
|
+
borderColor: '#26284214',
|
1796
1804
|
'&:first-of-type': {
|
1797
1805
|
paddingLeft: baseTheme.spacing(4)
|
1798
1806
|
}
|
@@ -1813,6 +1821,93 @@ const tableThemeOptions = {
|
|
1813
1821
|
lineHeight: 1
|
1814
1822
|
}
|
1815
1823
|
}
|
1824
|
+
},
|
1825
|
+
MuiTablePagination: {
|
1826
|
+
styleOverrides: {
|
1827
|
+
root: {
|
1828
|
+
'& .MuiInputBase-root': {
|
1829
|
+
border: '1px solid #2628421F',
|
1830
|
+
borderRadius: 4,
|
1831
|
+
minWidth: 58,
|
1832
|
+
height: 32,
|
1833
|
+
paddingRight: baseTheme.spacing(2),
|
1834
|
+
'& .MuiSelect-select': {
|
1835
|
+
paddingRight: '4px !important',
|
1836
|
+
color: baseTheme.palette.secondary.dark,
|
1837
|
+
'&:focus': {
|
1838
|
+
backgroundColor: 'transparent'
|
1839
|
+
}
|
1840
|
+
}
|
1841
|
+
}
|
1842
|
+
}
|
1843
|
+
}
|
1844
|
+
},
|
1845
|
+
MuiPaginationItem: {
|
1846
|
+
styleOverrides: {
|
1847
|
+
root: {
|
1848
|
+
height: 32,
|
1849
|
+
minWidth: 32,
|
1850
|
+
borderRadius: 4,
|
1851
|
+
border: '1px solid transparent',
|
1852
|
+
margin: '0, 2px',
|
1853
|
+
'&.Mui-selected': {
|
1854
|
+
borderColor: '#2628421F',
|
1855
|
+
backgroundColor: '#F7F8FC'
|
1856
|
+
}
|
1857
|
+
}
|
1858
|
+
}
|
1859
|
+
},
|
1860
|
+
MuiDataGrid: {
|
1861
|
+
defaultProps: {
|
1862
|
+
rowHeight: 40,
|
1863
|
+
headerHeight: 40
|
1864
|
+
},
|
1865
|
+
styleOverrides: {
|
1866
|
+
root: {
|
1867
|
+
borderRadius: baseTheme.spacing(3),
|
1868
|
+
width: '100%',
|
1869
|
+
color: baseTheme.palette.secondary.dark,
|
1870
|
+
border: '1px solid #26284214'
|
1871
|
+
},
|
1872
|
+
columnHeaders: {
|
1873
|
+
backgroundColor: baseTheme.palette.grey[100],
|
1874
|
+
borderTopLeftRadius: baseTheme.spacing(3),
|
1875
|
+
borderTopRightRadius: baseTheme.spacing(3)
|
1876
|
+
},
|
1877
|
+
columnHeader: {
|
1878
|
+
'&:focus': {
|
1879
|
+
outline: 'none'
|
1880
|
+
}
|
1881
|
+
},
|
1882
|
+
columnHeaderTitle: {
|
1883
|
+
color: '#6D6E85',
|
1884
|
+
fontWeight: 500
|
1885
|
+
},
|
1886
|
+
row: {
|
1887
|
+
'&:hover': {
|
1888
|
+
backgroundColor: '#F6F6F7'
|
1889
|
+
},
|
1890
|
+
'&:active, &:focus': {
|
1891
|
+
backgroundColor: '#EEEEF0'
|
1892
|
+
}
|
1893
|
+
},
|
1894
|
+
columnSeparator: {
|
1895
|
+
display: 'none'
|
1896
|
+
},
|
1897
|
+
withBorder: {
|
1898
|
+
borderColor: '#26284214'
|
1899
|
+
},
|
1900
|
+
cell: {
|
1901
|
+
textOverflow: 'ellipsis',
|
1902
|
+
wordBreak: 'break-all',
|
1903
|
+
lineHeight: 'unset',
|
1904
|
+
padding: baseTheme.spacing(0, 3),
|
1905
|
+
borderColor: '#26284214',
|
1906
|
+
'&:focus': {
|
1907
|
+
outline: 'none'
|
1908
|
+
}
|
1909
|
+
}
|
1910
|
+
}
|
1816
1911
|
}
|
1817
1912
|
}
|
1818
1913
|
};
|
@@ -2708,8 +2803,8 @@ const ControlSwitch = _a => {
|
|
2708
2803
|
});
|
2709
2804
|
};
|
2710
2805
|
|
2711
|
-
var img$
|
2712
|
-
var DateIcon = img$
|
2806
|
+
var img$7 = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M17.75 3C18.612 3 19.4386 3.34241 20.0481 3.9519C20.6576 4.5614 21 5.38805 21 6.25V17.75C21 18.612 20.6576 19.4386 20.0481 20.0481C19.4386 20.6576 18.612 21 17.75 21H6.25C5.38805 21 4.5614 20.6576 3.9519 20.0481C3.34241 19.4386 3 18.612 3 17.75V6.25C3 5.38805 3.34241 4.5614 3.9519 3.9519C4.5614 3.34241 5.38805 3 6.25 3H17.75ZM19.5 8.5H4.5V17.75C4.5 18.716 5.284 19.5 6.25 19.5H17.75C18.2141 19.5 18.6592 19.3156 18.9874 18.9874C19.3156 18.6592 19.5 18.2141 19.5 17.75V8.5ZM7.75 14.5C8.08152 14.5 8.39946 14.6317 8.63388 14.8661C8.8683 15.1005 9 15.4185 9 15.75C9 16.0815 8.8683 16.3995 8.63388 16.6339C8.39946 16.8683 8.08152 17 7.75 17C7.41848 17 7.10054 16.8683 6.86612 16.6339C6.6317 16.3995 6.5 16.0815 6.5 15.75C6.5 15.4185 6.6317 15.1005 6.86612 14.8661C7.10054 14.6317 7.41848 14.5 7.75 14.5ZM12 14.5C12.3315 14.5 12.6495 14.6317 12.8839 14.8661C13.1183 15.1005 13.25 15.4185 13.25 15.75C13.25 16.0815 13.1183 16.3995 12.8839 16.6339C12.6495 16.8683 12.3315 17 12 17C11.6685 17 11.3505 16.8683 11.1161 16.6339C10.8817 16.3995 10.75 16.0815 10.75 15.75C10.75 15.4185 10.8817 15.1005 11.1161 14.8661C11.3505 14.6317 11.6685 14.5 12 14.5ZM7.75 10.5C8.08152 10.5 8.39946 10.6317 8.63388 10.8661C8.8683 11.1005 9 11.4185 9 11.75C9 12.0815 8.8683 12.3995 8.63388 12.6339C8.39946 12.8683 8.08152 13 7.75 13C7.41848 13 7.10054 12.8683 6.86612 12.6339C6.6317 12.3995 6.5 12.0815 6.5 11.75C6.5 11.4185 6.6317 11.1005 6.86612 10.8661C7.10054 10.6317 7.41848 10.5 7.75 10.5ZM12 10.5C12.3315 10.5 12.6495 10.6317 12.8839 10.8661C13.1183 11.1005 13.25 11.4185 13.25 11.75C13.25 12.0815 13.1183 12.3995 12.8839 12.6339C12.6495 12.8683 12.3315 13 12 13C11.6685 13 11.3505 12.8683 11.1161 12.6339C10.8817 12.3995 10.75 12.0815 10.75 11.75C10.75 11.4185 10.8817 11.1005 11.1161 10.8661C11.3505 10.6317 11.6685 10.5 12 10.5ZM16.25 10.5C16.5815 10.5 16.8995 10.6317 17.1339 10.8661C17.3683 11.1005 17.5 11.4185 17.5 11.75C17.5 12.0815 17.3683 12.3995 17.1339 12.6339C16.8995 12.8683 16.5815 13 16.25 13C15.9185 13 15.6005 12.8683 15.3661 12.6339C15.1317 12.3995 15 12.0815 15 11.75C15 11.4185 15.1317 11.1005 15.3661 10.8661C15.6005 10.6317 15.9185 10.5 16.25 10.5ZM17.75 4.5H6.25C5.78587 4.5 5.34075 4.68437 5.01256 5.01256C4.68437 5.34075 4.5 5.78587 4.5 6.25V7H19.5V6.25C19.5 5.78587 19.3156 5.34075 18.9874 5.01256C18.6592 4.68437 18.2141 4.5 17.75 4.5Z' fill='%238B8C9E'/%3e%3c/svg%3e";
|
2807
|
+
var DateIcon = img$7;
|
2713
2808
|
|
2714
2809
|
const DateIconComponent$1 = () => {
|
2715
2810
|
return jsx("img", {
|
@@ -3293,8 +3388,8 @@ const ControlPeriodInput = ({
|
|
3293
3388
|
});
|
3294
3389
|
};
|
3295
3390
|
|
3296
|
-
var img$
|
3297
|
-
var FlagKz = img$
|
3391
|
+
var img$6 = "data:image/svg+xml,%3csvg width='32' height='24' viewBox='0 0 32 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_6762_5474)'%3e%3crect width='32' height='24' rx='2' fill='white'/%3e%3cmask id='mask0_6762_5474' style='mask-type:luminance' maskUnits='userSpaceOnUse' x='0' y='0' width='32' height='24'%3e%3crect width='32' height='24' rx='2' fill='white'/%3e%3c/mask%3e%3cg mask='url(%23mask0_6762_5474)'%3e%3crect width='32' height='24' fill='%2330C6E0'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M16.0001 16.8002C18.5249 16.8002 20.5716 14.6512 20.5716 12.0002C20.5716 9.34923 18.5249 7.2002 16.0001 7.2002C13.4754 7.2002 11.4287 9.34923 11.4287 12.0002C11.4287 14.6512 13.4754 16.8002 16.0001 16.8002Z' fill='%23FFCD4B'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M14.1352 20.5791L16.0001 17.6561L17.865 20.5791L18.3374 17.096L21.2255 18.8799L20.2118 15.5264L23.5511 15.818L21.252 13.2584L24.381 11.9998L21.252 10.7411L23.5511 8.1816L20.2118 8.47311L21.2255 5.11966L18.3374 6.90359L17.865 3.42041L16.0001 6.34344L14.1352 3.42041L13.6628 6.90359L10.7747 5.11966L11.7884 8.47311L8.44912 8.1816L10.7482 10.7411L7.61914 11.9998L10.7482 13.2584L8.44912 15.818L11.7884 15.5264L10.7747 18.8799L13.6628 17.096L14.1352 20.5791ZM21.3334 11.9998C21.3334 15.0926 18.9456 17.5998 16.0001 17.5998C13.0546 17.5998 10.6668 15.0926 10.6668 11.9998C10.6668 8.90698 13.0546 6.39978 16.0001 6.39978C18.9456 6.39978 21.3334 8.90698 21.3334 11.9998Z' fill='%23FFCD4B'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M1.52393 1.93343C1.52393 1.74934 1.67316 1.6001 1.85726 1.6001H2.7144C2.8985 1.6001 3.04774 1.74934 3.04774 1.93343V2.86676C3.04774 3.05086 2.8985 3.2001 2.7144 3.2001H1.85726C1.67316 3.2001 1.52393 3.05086 1.52393 2.86676V1.93343ZM1.52393 5.13343C1.52393 4.94934 1.67316 4.8001 1.85726 4.8001H2.7144C2.8985 4.8001 3.04774 4.94934 3.04774 5.13343V6.06676C3.04774 6.25086 2.8985 6.4001 2.7144 6.4001H1.85726C1.67316 6.4001 1.52393 6.25086 1.52393 6.06676V5.13343ZM1.85726 8.0001C1.67316 8.0001 1.52393 8.14934 1.52393 8.33343V9.26676C1.52393 9.45086 1.67316 9.6001 1.85726 9.6001H2.7144C2.8985 9.6001 3.04774 9.45086 3.04774 9.26676V8.33343C3.04774 8.14934 2.8985 8.0001 2.7144 8.0001H1.85726ZM1.52393 11.5334C1.52393 11.3493 1.67316 11.2001 1.85726 11.2001H2.7144C2.8985 11.2001 3.04774 11.3493 3.04774 11.5334V12.4668C3.04774 12.6509 2.8985 12.8001 2.7144 12.8001H1.85726C1.67316 12.8001 1.52393 12.6509 1.52393 12.4668V11.5334ZM1.85726 14.4001C1.67316 14.4001 1.52393 14.5493 1.52393 14.7334V15.6668C1.52393 15.8509 1.67316 16.0001 1.85726 16.0001H2.7144C2.8985 16.0001 3.04774 15.8509 3.04774 15.6668V14.7334C3.04774 14.5493 2.8985 14.4001 2.7144 14.4001H1.85726ZM1.52393 17.9334C1.52393 17.7493 1.67316 17.6001 1.85726 17.6001H2.7144C2.8985 17.6001 3.04774 17.7493 3.04774 17.9334V18.8668C3.04774 19.0509 2.8985 19.2001 2.7144 19.2001H1.85726C1.67316 19.2001 1.52393 19.0509 1.52393 18.8668V17.9334ZM1.85726 20.8001C1.67316 20.8001 1.52393 20.9493 1.52393 21.1334V22.0668C1.52393 22.2509 1.67316 22.4001 1.85726 22.4001H2.7144C2.8985 22.4001 3.04774 22.2509 3.04774 22.0668V21.1334C3.04774 20.9493 2.8985 20.8001 2.7144 20.8001H1.85726ZM3.04774 19.5334C3.04774 19.3493 3.19697 19.2001 3.38107 19.2001H4.23821C4.42231 19.2001 4.57154 19.3493 4.57154 19.5334V20.4668C4.57154 20.6509 4.42231 20.8001 4.23821 20.8001H3.38107C3.19697 20.8001 3.04774 20.6509 3.04774 20.4668V19.5334ZM3.38107 16.0001C3.19697 16.0001 3.04774 16.1493 3.04774 16.3334V17.2668C3.04774 17.4509 3.19697 17.6001 3.38107 17.6001H4.23821C4.42231 17.6001 4.57154 17.4509 4.57154 17.2668V16.3334C4.57154 16.1493 4.42231 16.0001 4.23821 16.0001H3.38107ZM3.04774 13.1334C3.04774 12.9493 3.19697 12.8001 3.38107 12.8001H4.23821C4.42231 12.8001 4.57154 12.9493 4.57154 13.1334V14.0668C4.57154 14.2509 4.42231 14.4001 4.23821 14.4001H3.38107C3.19697 14.4001 3.04774 14.2509 3.04774 14.0668V13.1334ZM3.38107 9.6001C3.19697 9.6001 3.04774 9.74934 3.04774 9.93343V10.8668C3.04774 11.0509 3.19697 11.2001 3.38107 11.2001H4.23821C4.42231 11.2001 4.57154 11.0509 4.57154 10.8668V9.93343C4.57154 9.74934 4.42231 9.6001 4.23821 9.6001H3.38107ZM3.04774 6.73343C3.04774 6.54934 3.19697 6.4001 3.38107 6.4001H4.23821C4.42231 6.4001 4.57154 6.54934 4.57154 6.73343V7.66676C4.57154 7.85086 4.42231 8.0001 4.23821 8.0001H3.38107C3.19697 8.0001 3.04774 7.85086 3.04774 7.66676V6.73343ZM3.38107 3.2001C3.19697 3.2001 3.04774 3.34934 3.04774 3.53343V4.46676C3.04774 4.65086 3.19697 4.8001 3.38107 4.8001H4.23821C4.42231 4.8001 4.57154 4.65086 4.57154 4.46676V3.53343C4.57154 3.34934 4.42231 3.2001 4.23821 3.2001H3.38107Z' fill='%23FFCD4B'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_6762_5474'%3e%3crect width='32' height='24' rx='4' fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
3392
|
+
var FlagKz = img$6;
|
3298
3393
|
|
3299
3394
|
const ControlPhoneInput = _a => {
|
3300
3395
|
var {
|
@@ -3371,6 +3466,13 @@ const ControlPhoneInput = _a => {
|
|
3371
3466
|
});
|
3372
3467
|
};
|
3373
3468
|
|
3469
|
+
var img$5 = "data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.99995 8L9.99995 12L14 8H5.99995Z' fill='%236D7C8B'/%3e%3c/svg%3e";
|
3470
|
+
var IconDropDown = img$5;
|
3471
|
+
|
3472
|
+
const SelectArrow$1 = () => jsx("img", {
|
3473
|
+
src: IconDropDown,
|
3474
|
+
alt: ""
|
3475
|
+
});
|
3374
3476
|
const TablePagination = () => {
|
3375
3477
|
const apiRef = useGridApiContext();
|
3376
3478
|
const page = useGridSelector(apiRef, gridPageSelector);
|
@@ -3401,7 +3503,10 @@ const TablePagination = () => {
|
|
3401
3503
|
onRowsPerPageChange: onRowsPerPageChange,
|
3402
3504
|
labelRowsPerPage: "\u0421\u0442\u0440\u043E\u043A \u043D\u0430 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0435",
|
3403
3505
|
labelDisplayedRows: labelDisplayedRows,
|
3404
|
-
ActionsComponent: undefined
|
3506
|
+
ActionsComponent: undefined,
|
3507
|
+
SelectProps: {
|
3508
|
+
IconComponent: SelectArrow$1
|
3509
|
+
}
|
3405
3510
|
}), jsx(Pagination, {
|
3406
3511
|
count: pageCount,
|
3407
3512
|
page: page + 1,
|
@@ -3531,106 +3636,6 @@ const usePagination = initialPageSize => {
|
|
3531
3636
|
};
|
3532
3637
|
var usePagination$1 = usePagination;
|
3533
3638
|
|
3534
|
-
const StyledDataGrid = styled(DataGrid)(({
|
3535
|
-
theme
|
3536
|
-
}) => ({
|
3537
|
-
borderRadius: theme.spacing(3),
|
3538
|
-
width: '100%',
|
3539
|
-
color: theme.palette.mode === 'light' ? 'rgba(0,0,0,.85)' : 'rgba(255,255,255,0.85)',
|
3540
|
-
'& .MuiDataGrid-columnsContainer': {
|
3541
|
-
borderRadius: theme.spacing(3),
|
3542
|
-
border: '1px solid rgba(38, 40, 66, 0.08)'
|
3543
|
-
},
|
3544
|
-
'& .MuiDataGrid-columnHeaders': {
|
3545
|
-
minHeight: '48px !important',
|
3546
|
-
backgroundColor: '#F7F8FC',
|
3547
|
-
borderTopLeftRadius: theme.spacing(3),
|
3548
|
-
borderTopRightRadius: theme.spacing(3)
|
3549
|
-
},
|
3550
|
-
'& .MuiDataGrid-columnHeader, .MuiDataGrid-cell': {
|
3551
|
-
padding: theme.spacing(2.75, 2),
|
3552
|
-
color: '#6D6E85',
|
3553
|
-
'&.Sorted': {
|
3554
|
-
color: '#262842'
|
3555
|
-
},
|
3556
|
-
'&:first-of-type': {
|
3557
|
-
paddingLeft: theme.spacing(4)
|
3558
|
-
},
|
3559
|
-
borderRight: 0,
|
3560
|
-
borderLeft: 0,
|
3561
|
-
minHeight: '48px !important'
|
3562
|
-
},
|
3563
|
-
'& .MuiDataGrid-columnsContainer, .MuiDataGrid-cell': {
|
3564
|
-
padding: theme.spacing(1, 2),
|
3565
|
-
'&:first-of-type': {
|
3566
|
-
paddingLeft: theme.spacing(4)
|
3567
|
-
}
|
3568
|
-
},
|
3569
|
-
'& .MuiDataGrid-row': {
|
3570
|
-
maxHeight: 'none !important',
|
3571
|
-
minHeight: '48px !important',
|
3572
|
-
'&:hover': {
|
3573
|
-
backgroundColor: '#F7F8FC!important'
|
3574
|
-
}
|
3575
|
-
},
|
3576
|
-
'& .MuiDataGrid-cell': {
|
3577
|
-
color: theme.palette.mode === 'light' ? 'rgba(0,0,0,.85)' : 'rgba(255,255,255,0.65)',
|
3578
|
-
'&:focus': {
|
3579
|
-
border: 0
|
3580
|
-
},
|
3581
|
-
maxHeight: 'none !important',
|
3582
|
-
minHeight: '48px !important',
|
3583
|
-
lineHeight: 'unset !important',
|
3584
|
-
// whiteSpace: 'normal !important',
|
3585
|
-
textOverflow: 'ellipsis',
|
3586
|
-
wordBreak: 'break-all',
|
3587
|
-
'& .MuiDataGrid-actionsCell': {
|
3588
|
-
width: '100%',
|
3589
|
-
gridGap: '4px',
|
3590
|
-
flexWrap: 'wrap',
|
3591
|
-
'& > button[aria-label="more"]': {
|
3592
|
-
marginLeft: 'auto'
|
3593
|
-
}
|
3594
|
-
}
|
3595
|
-
},
|
3596
|
-
'& .MuiPaginationItem-root': {
|
3597
|
-
borderRadius: 0
|
3598
|
-
},
|
3599
|
-
'& .MuiDataGrid-virtualScrollerContent': {
|
3600
|
-
height: 'auto !important',
|
3601
|
-
minHeight: '48px !important'
|
3602
|
-
},
|
3603
|
-
'& .MuiDataGrid-virtualScrollerRenderZone': {
|
3604
|
-
position: 'static'
|
3605
|
-
},
|
3606
|
-
'& .MuiDataGrid-renderingZone': {
|
3607
|
-
maxHeight: 'none !important'
|
3608
|
-
},
|
3609
|
-
'& .MuiDataGrid-cell:focus-within, & .MuiDataGrid-cell:focus': {
|
3610
|
-
outline: 'none !important'
|
3611
|
-
},
|
3612
|
-
'& .MuiDataGrid-columnHeader:focus-within, & .MuiDataGrid-columnHeader:focus': {
|
3613
|
-
outline: 'none !important'
|
3614
|
-
},
|
3615
|
-
'& .MuiTablePagination-actions': {
|
3616
|
-
display: 'none !important'
|
3617
|
-
},
|
3618
|
-
'& .MuiDataGrid-iconButtonContainer': {
|
3619
|
-
'& img': {
|
3620
|
-
visibility: 'visible !important',
|
3621
|
-
opacity: '0.5!important'
|
3622
|
-
}
|
3623
|
-
},
|
3624
|
-
'& .Sorted': {
|
3625
|
-
'& .MuiDataGrid-iconButtonContainer': {
|
3626
|
-
'& img': {
|
3627
|
-
visibility: 'visible !important',
|
3628
|
-
opacity: '1!important'
|
3629
|
-
}
|
3630
|
-
}
|
3631
|
-
}
|
3632
|
-
}));
|
3633
|
-
|
3634
3639
|
var img$4 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M3.47341 10.4087C3.3698 10.2747 3.32108 10.1063 3.33715 9.9377C3.35321 9.76909 3.43285 9.61291 3.55989 9.50088C3.68693 9.38886 3.85185 9.3294 4.02115 9.33457C4.19045 9.33974 4.35144 9.40915 4.47141 9.52872L8.00008 13.0574L11.5287 9.52872L11.5914 9.47338C11.7254 9.36978 11.8938 9.32106 12.0624 9.33712C12.231 9.35318 12.3872 9.43282 12.4992 9.55987C12.6113 9.68691 12.6707 9.85183 12.6656 10.0211C12.6604 10.1904 12.591 10.3514 12.4714 10.4714L8.47141 14.4714L8.40874 14.5267C8.28047 14.6262 8.12031 14.6755 7.95829 14.6653C7.79627 14.6551 7.64354 14.5862 7.52874 14.4714L3.52874 10.4714L3.47341 10.4087ZM12.5267 5.59138C12.6304 5.72538 12.6791 5.89379 12.663 6.0624C12.6469 6.23102 12.5673 6.3872 12.4403 6.49922C12.3132 6.61124 12.1483 6.67071 11.979 6.66554C11.8097 6.66037 11.6487 6.59095 11.5287 6.47138L8.00008 2.94272L4.47141 6.47138L4.40874 6.52672C4.27475 6.63032 4.10634 6.67905 3.93773 6.66298C3.76911 6.64692 3.61293 6.56728 3.50091 6.44024C3.38889 6.31319 3.32942 6.14827 3.33459 5.97897C3.33976 5.80967 3.40918 5.64869 3.52874 5.52872L7.52874 1.52872L7.59141 1.47338C7.71968 1.37388 7.87985 1.3246 8.04187 1.33479C8.20388 1.34498 8.35662 1.41393 8.47141 1.52872L12.4714 5.52872L12.5267 5.59138Z' fill='%23262842'/%3e%3c/svg%3e";
|
3635
3640
|
var SortIcon = img$4;
|
3636
3641
|
|
@@ -3723,13 +3728,13 @@ const Table = _a => {
|
|
3723
3728
|
return jsx(Box, Object.assign({
|
3724
3729
|
mt: disableMargin ? 0 : 2
|
3725
3730
|
}, {
|
3726
|
-
children: jsx(
|
3731
|
+
children: jsx(DataGrid, Object.assign({
|
3727
3732
|
autoHeight: true,
|
3728
3733
|
hideFooterPagination: !pagination,
|
3729
3734
|
hideFooter: !pagination,
|
3730
3735
|
disableSelectionOnClick: true,
|
3731
|
-
showColumnRightBorder
|
3732
|
-
showCellRightBorder
|
3736
|
+
// showColumnRightBorder={false}
|
3737
|
+
// showCellRightBorder
|
3733
3738
|
loading: loading,
|
3734
3739
|
rows: rows,
|
3735
3740
|
disableColumnMenu: true,
|
@@ -3872,24 +3877,22 @@ const TableSortLabel = styled(MuiTableSortLabel)(({
|
|
3872
3877
|
}
|
3873
3878
|
}));
|
3874
3879
|
|
3875
|
-
const
|
3876
|
-
|
3877
|
-
|
3878
|
-
|
3879
|
-
|
3880
|
-
|
3881
|
-
|
3882
|
-
|
3883
|
-
|
3884
|
-
|
3885
|
-
|
3886
|
-
};
|
3887
|
-
const SortDescIconComponent = () => {
|
3888
|
-
|
3889
|
-
|
3890
|
-
|
3891
|
-
});
|
3892
|
-
};
|
3880
|
+
const SelectArrow = () => jsx("img", {
|
3881
|
+
src: IconDropDown,
|
3882
|
+
alt: ""
|
3883
|
+
});
|
3884
|
+
const SortIconComponent = () => jsx("img", {
|
3885
|
+
src: SortIcon,
|
3886
|
+
alt: ""
|
3887
|
+
});
|
3888
|
+
const SortAscIconComponent = () => jsx("img", {
|
3889
|
+
src: SortAscIcon,
|
3890
|
+
alt: ""
|
3891
|
+
});
|
3892
|
+
const SortDescIconComponent = () => jsx("img", {
|
3893
|
+
src: SortDescIcon,
|
3894
|
+
alt: ""
|
3895
|
+
});
|
3893
3896
|
function TableInner({
|
3894
3897
|
columns = [],
|
3895
3898
|
rows = [],
|
@@ -3988,7 +3991,7 @@ function TableInner({
|
|
3988
3991
|
textOverflow: 'ellipsis',
|
3989
3992
|
padding: ({
|
3990
3993
|
spacing
|
3991
|
-
}) => spacing(
|
3994
|
+
}) => spacing(1.4, 0)
|
3992
3995
|
}
|
3993
3996
|
}, {
|
3994
3997
|
children: jsx(Box, {
|
@@ -4029,6 +4032,9 @@ function TableInner({
|
|
4029
4032
|
},
|
4030
4033
|
labelRowsPerPage: labelRowsPerPage,
|
4031
4034
|
labelDisplayedRows: labelRowsPerPage ? labelDisplayedRows : undefined,
|
4035
|
+
SelectProps: {
|
4036
|
+
IconComponent: SelectArrow
|
4037
|
+
},
|
4032
4038
|
onPageChange: (_, page) => onPageChange(page),
|
4033
4039
|
onRowsPerPageChange: event => onSizeChange(+event.target.value)
|
4034
4040
|
}) : null]
|
package/package.json
CHANGED
@@ -1,10 +1,21 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
declare const inputThemeOptions: {
|
3
3
|
components: {
|
4
|
-
|
4
|
+
MuiButtonBase: {
|
5
5
|
defaultProps: {
|
6
6
|
disableElevation: boolean;
|
7
7
|
};
|
8
|
+
styleOverrides: {
|
9
|
+
root: {
|
10
|
+
'&.MuiButton-root': {
|
11
|
+
boxShadow: string;
|
12
|
+
};
|
13
|
+
'&.MuiButton-root:hover': {
|
14
|
+
boxShadow: string;
|
15
|
+
backgroundColor: string;
|
16
|
+
};
|
17
|
+
};
|
18
|
+
};
|
8
19
|
};
|
9
20
|
MuiInputBase: {
|
10
21
|
styleOverrides: {
|
@@ -19,7 +19,15 @@ declare const tableThemeOptions: {
|
|
19
19
|
MuiTableRow: {
|
20
20
|
styleOverrides: {
|
21
21
|
root: {
|
22
|
-
'
|
22
|
+
'&.MuiTableRow-hover': {
|
23
|
+
'&:hover': {
|
24
|
+
backgroundColor: string;
|
25
|
+
};
|
26
|
+
'&:active, &:focus': {
|
27
|
+
backgroundColor: string;
|
28
|
+
};
|
29
|
+
};
|
30
|
+
'&:active, &:focus': {
|
23
31
|
backgroundColor: string;
|
24
32
|
};
|
25
33
|
};
|
@@ -29,6 +37,7 @@ declare const tableThemeOptions: {
|
|
29
37
|
styleOverrides: {
|
30
38
|
root: {
|
31
39
|
padding: string;
|
40
|
+
borderColor: string;
|
32
41
|
'&:first-of-type': {
|
33
42
|
paddingLeft: string;
|
34
43
|
};
|
@@ -50,6 +59,93 @@ declare const tableThemeOptions: {
|
|
50
59
|
};
|
51
60
|
};
|
52
61
|
};
|
62
|
+
MuiTablePagination: {
|
63
|
+
styleOverrides: {
|
64
|
+
root: {
|
65
|
+
'& .MuiInputBase-root': {
|
66
|
+
border: string;
|
67
|
+
borderRadius: number;
|
68
|
+
minWidth: number;
|
69
|
+
height: number;
|
70
|
+
paddingRight: string;
|
71
|
+
'& .MuiSelect-select': {
|
72
|
+
paddingRight: string;
|
73
|
+
color: string;
|
74
|
+
'&:focus': {
|
75
|
+
backgroundColor: string;
|
76
|
+
};
|
77
|
+
};
|
78
|
+
};
|
79
|
+
};
|
80
|
+
};
|
81
|
+
};
|
82
|
+
MuiPaginationItem: {
|
83
|
+
styleOverrides: {
|
84
|
+
root: {
|
85
|
+
height: number;
|
86
|
+
minWidth: number;
|
87
|
+
borderRadius: number;
|
88
|
+
border: string;
|
89
|
+
margin: string;
|
90
|
+
'&.Mui-selected': {
|
91
|
+
borderColor: string;
|
92
|
+
backgroundColor: string;
|
93
|
+
};
|
94
|
+
};
|
95
|
+
};
|
96
|
+
};
|
97
|
+
MuiDataGrid: {
|
98
|
+
defaultProps: {
|
99
|
+
rowHeight: number;
|
100
|
+
headerHeight: number;
|
101
|
+
};
|
102
|
+
styleOverrides: {
|
103
|
+
root: {
|
104
|
+
borderRadius: string;
|
105
|
+
width: string;
|
106
|
+
color: string;
|
107
|
+
border: string;
|
108
|
+
};
|
109
|
+
columnHeaders: {
|
110
|
+
backgroundColor: string;
|
111
|
+
borderTopLeftRadius: string;
|
112
|
+
borderTopRightRadius: string;
|
113
|
+
};
|
114
|
+
columnHeader: {
|
115
|
+
'&:focus': {
|
116
|
+
outline: string;
|
117
|
+
};
|
118
|
+
};
|
119
|
+
columnHeaderTitle: {
|
120
|
+
color: string;
|
121
|
+
fontWeight: number;
|
122
|
+
};
|
123
|
+
row: {
|
124
|
+
'&:hover': {
|
125
|
+
backgroundColor: string;
|
126
|
+
};
|
127
|
+
'&:active, &:focus': {
|
128
|
+
backgroundColor: string;
|
129
|
+
};
|
130
|
+
};
|
131
|
+
columnSeparator: {
|
132
|
+
display: string;
|
133
|
+
};
|
134
|
+
withBorder: {
|
135
|
+
borderColor: string;
|
136
|
+
};
|
137
|
+
cell: {
|
138
|
+
textOverflow: string;
|
139
|
+
wordBreak: string;
|
140
|
+
lineHeight: string;
|
141
|
+
padding: string;
|
142
|
+
borderColor: string;
|
143
|
+
'&:focus': {
|
144
|
+
outline: string;
|
145
|
+
};
|
146
|
+
};
|
147
|
+
};
|
148
|
+
};
|
53
149
|
};
|
54
150
|
};
|
55
151
|
export default tableThemeOptions;
|